:root {
    /* First, we convert our color to perceptual grayscale by taking only the lightness channel from lch */
    --primary-color-grayscale: oklch(from var(--primary-color) l 0 0);

    /*
      In hwb, grayscale colors have a complimentary w b channels where w + b = 100%
      If we subtract 50 from both w and b we get one negative and one positive value.
      Then we multiply each by a large value (999) to make sure the values are well below 0 or above 100.
      The resulting color will be black or white.
    */
    --primary-color-black-or-white: hwb(from var(--primary-color-grayscale) h calc(((w - 50) * 999)) calc(((b - 50) * 999)));

    /* Finally, we swap the new w and b values to invert the black to white or vice versa */
    --primary-contrast-color: hwb(from var(--primary-color-black-or-white) h b w);
}

/* Main container for horizontal scrolling */

.invoice-item:after {
    content: 'Merchant: ' attr(data-percent) ' %' attr(data-amount);
    position: absolute;
    width: 100%;
    font-size: 12px;
    background: #f1f1f1;
    bottom: 0;
    text-align: center;
    left: 50%;
    transform: translate(-50%, 0);
}

.icon-button:hover {
    scale: 1.2;
    color: dodgerblue;
}

.icon-button {
    transition: 150ms;
    color: black;
    scale: 1;
    cursor: pointer;
}

.signature-modal .modal-footer {
    background-color: #f8f9fa !important;
    padding: 1rem 2rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

td:has(.floating-cell) {
    position: relative;
}

.floating-cell.center {
    left: 50%;
    transform: translateX(-50%);
}

.floating-cell.running-balance {
    font-size: 12px;
    opacity: 0.6;
}

.floating-cell {
    position: absolute;
    bottom: -8px;
    background: #f1f1f1;
    padding: 2px 10px;
    border-radius: 4px;
    pointer-events: none;
    display: flex;
    justify-content: center; /* Center content horizontally */
    width: auto; /* Let content determine width */
    z-index: 20;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    left: 12px
}

.signature-modal .modal-footer .btn {
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease;
}

.signature-modal .modal-footer .btn:hover {
    transform: translateY(-1px);
}

.signature-modal .modal-footer .modal-close {
    background-color: #e74c3c;
    color: white !important;
}

.signature-modal .modal-footer .apply-btn {
    background-color: var(--primary-color);
    color: white !important;
}

/* Signature Pad Ink Color */
.signature-pad-ink {
    color: #2c3e50;
}

/* Signature Modal Styling */
.signature-modal.modal {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    max-width: 452px;
}

.signature-modal .modal-content {
    padding: 2rem;
    position: relative;
}

.signature-modal h4 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 1rem;
}

.signature-canvas-container {
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
    margin: 1rem 0;
}

.signature-canvas-container:hover {
    border-color: var(--accent-color);
    background-color: #fff;
}

.signature-modal canvas {
    width: 100% !important;
    height: 200px !important;
    cursor: crosshair;
}

.signature-hint {
    color: #95a5a6;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

.sidenav {
    z-index: 9999999;
}

tr.duplicate.info-row td:first-child::before {
    background: #f44336;
    color: white;
}

body {
    background: #f1f1f1;
}

main {
    padding-top: 100px;
}

ul ul ul {
    margin-left: 24px;
}

stat-cell {
    min-width: 200px;
    /*min-height: 260px;*/
}

.stat-value {
    margin: 1rem;
}


status-filter-button[disabled] {
    opacity: 0.5;
    transition: 200ms;
}

status-filter-button.active {
    filter: grayscale(100%);
}

status-filter-button[disabled], status-filter-button.active {
    color: white;
    transition: 200ms;
    pointer-events: none;
    cursor: inherit;
}

.pagination li.disabled * {
    pointer-events: none;
    color: #0d3440;
}

* {
    font-family: 'FallingSky', 'Roboto';;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 200% !important; /* Adjust as needed */
}

p, td, th {
    font-size: 90% !important;
    margin: 5px 0 !important;
}

.tooltipped.rev-item:after {
    content: "\e88f";
    font-family: 'Material Icons';
    font-size: 16px;
    color: var(--primary-color);
    margin-left: 8px;
}

.tooltipped.rev-item:before {
    content: "\e889";
    font-family: 'Material Icons';
    font-size: 16px;
    color: var(--primary-color);
    margin-right: 8px;
}

.rev-item {
    display: flex;
}

.rev-created-text {
    color: var(--primary-color);
}

.rev-deleted-text {
    color: #f00;
}

.rev-modified-text {
    color: var(--accent-color);
}

.selectable {
    cursor: pointer;
    transition: 200ms;
}

.selectable:hover {
    cursor: pointer;
    color: var(--primary-color) !important;
}

.day.selected {
    border: 2px solid #f00 !important;
    transition: 100ms;
}

.transition-margin {
    transition: margin-left 200ms ease;
}

.quick-access li.quick-access-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    cursor: pointer;
}

.tab-link {
    display: flex;
    align-items: center; /* Aligns the icon and text vertically */
}

.tab-link a {
    white-space: nowrap;
}

.tab-link i.material-icons {
    margin-right: 8px; /* Adds some space between the icon and the text */
    font-size: 20px; /* Adjust the size of the icon as needed */
    vertical-align: middle; /* Aligns it to the middle of the text */
}

.tab-link i.material-icons:last-child {
    margin-left: 12px;
    cursor: pointer;
}

.tab-link i.material-icons:last-child:hover {
    color: var(--secondary-color);
    transition: 200ms;
}


@media print {
    @page {
        size: landscape;
    }

    body {
        width: 100%;
        height: 100%;
        font-size: 14pt;
        color: black;
    }

    .charts .col {
        width: 100% !important;
    }

    .navbar, .footer, .sidebar, .navigation, .section > .row.center.valign-wrapper:first-child, .stat-buttons {
        display: none;
    }
}

.content {
    box-sizing: border-box;
    height: fit-content;
    overflow: auto;
}

.student-search .swal2-html-container {
    height: 600px !important;
}

.select-wrapper ul {
    max-height: 400px;
}

#qr-modal .modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#qrcode {
    margin: auto;
}

.datepicker-modal, .datepicker-container {
    height: 100% !important;
}

.led-red {
    margin: 20px auto;
    width: 12px;
    height: 12px;
    background-color: #f90;
    border-radius: 50%;
    box-shadow: #000 0 -1px 7px 1px, inset #600 0 -1px 9px, #F00 0 2px 12px;
}

.led-green {
    margin: 20px auto;
    width: 12px;
    height: 12px;
    background-color: #690;
    border-radius: 50%;
    box-shadow: #000 0 -1px 7px 1px, inset #460 0 -1px 9px, #7D0 0 2px 12px;
}

.modal.modal-fixed-footer {
    overflow-y: hidden;
}

.modal.modal-fixed-footer .modal-content {
    overflow-y: auto;
    margin-bottom: 64px;
}

.modal {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #ddd;
}

.modal-header {
    border-bottom: 1px solid #ddd;
    padding: 20px;
    text-align: left;
}

.modal-header h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    margin: 0;
}

.modal-body {
    padding: 20px;
}

.alert-modal {
    width: 30% !important;
}

thead.sticky {
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
    z-index: 100;
}

.month-prev, .month-next {
    align-items: center;
    justify-content: center;
    display: flex;
}

.month-prev > svg, .month-next > svg {
    fill: var(--primary-color);
    margin: auto;
}

.month-next {
    justify-content: right;
}

.scrollable {
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

#map {
    height: 300px;
}

.sorting:after {
    font-family: 'Material Icons';
    content: '\e8d5';
}

.row.stats {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.sorting.sorting_asc:after {
    font-family: "Material Icons";
    content: '\e5d8';
}

.sorting.sorting_desc:after {
    font-family: "Material Icons";
    content: '\e5db';
}

.logo {
    width: auto;
    height: 35vh;
}

.center-grid {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
}

button {
    font-size: 28px;
    margin-top: 24px;
    display: grid;
    grid-template-columns: 2fr 8fr 1fr;
    grid-template-rows: 1fr;
}

button:focus {
    background: var(--primary-color);
}

.btn-block {
    min-width: 100%;
}

.custom-dropdown {
    min-width: 140px;
}

.dropdown-list {
    min-width: 200px;
    width: 100%;
}

/*Disable browser default autocomplete*/
.chip input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    outline: none;
    background: transparent;
}

.copyright {
    position: fixed;
    left: 24px;
    bottom: 0;
    color: white;
}

.copyright a {
    color: white;
    font-weight: 700;
    text-decoration: underline;
}

/* width */
::-webkit-scrollbar {
    width: 12px;
}

/* Track */
::-webkit-scrollbar-track {
    background: rgba(240, 248, 255, 0.49);
    -webkit-backdrop-filter: blur(4px);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

.hiddenfile {
    width: 0px;
    height: 0px;
    overflow: hidden;
}


ul.select-dropdown,
ul.dropdown-content {
    min-width: 30% !important;
    max-width: 100% !important;
    min-height: 48px !important;

    li > span {
        white-space: nowrap;
    }
}

.form-block {
    background: rgba(255, 255, 255, 0.8);
}

.sub-tab {
    background: var(--primary-color) !important;
}

.clear-button.active {
    opacity: 1;
}

.clear-button:hover {
    background-color: #f1f1f1; /* Add a hover effect */
}

.clear-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    margin-left: 8px; /* Add some space between input and button */
}

.clear-button:hover {
    background-color: #f1f1f1; /* Add a hover effect */
}

.tabs-icon {
    font-size: 10px;
    overflow: hidden;
}

.tabs-icon i {
    display: block;
    margin-top: 5px;
    margin-bottom: -15px;
    font-size: 24px;
}

.tabs-icon a.active {
    background-color: #F3F3F3;
}

/* OVERWRITE MATERIAL CSS MIN WIDTH FOR MOBILE */
.tabs .tab {
    min-width: 50px !important
}

.tabs .tab-hide {
    display: none;
}

.no-pd {
    padding: 0 !important
}

#room-modal {
    width: 80% !important;
    height: 80% !important;
    max-width: 100%;
    max-height: 80%;
}

.modal.modal-fixed-footer .modal-footer {
    top: calc(100% - 56px);
}

.modal.modal-fixed-footer .modal-content:not(.datepicker-container) {
    height: calc(100% - 112px) !important;
}

.datepicker {
    height: 100%;
}

.payment-modal, #room-modal, #add-role-modal, #modal-request, #student-invoice-modal, #student-receipts-modal, #student-payment-modal, #email-modal, #bulk-payments-modal, #maintenance-modal, #bulkImportModal {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100% !important;
    top: 0 !important;
}

#letterhead, #letterhead-css-editor, #footer-css-editor, #footer {
    height: 500px;
    width: 794px;
    background: whitesmoke;
}

@keyframes flipInX {
    from {
        transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
        animation-timing-function: ease-in;
        opacity: 0;
    }

    40% {
        transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
        animation-timing-function: ease-in;
    }

    60% {
        transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
        opacity: 1;
    }

    80% {
        transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
    }

    to {
        transform: perspective(400px);
    }
}

.flipInX {
    backface-visibility: visible !important;
    animation-name: flipInX;
}

.export-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 36px;
    padding: 0 1rem;
    background-color: var(--primary-color);
    border-radius: 4px;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.export-btn:hover {
    background-color: var(--accent-color);
}

/*Autocomplete*/
.input-field:has(.autocomplete)::after {
    font-family: 'Material Icons';
    font-size: 18px;
    color: #9e9e9e;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-field:has(.autocomplete):not(.loading)::after {
    content: '\e8b6';
    color: #9e9e9e;
}

.input-field:has(.autocomplete.error)::after {
    content: '\e002' !important;
    color: #f44336; /* Error color */
}

/* Spinning effect for loading state */
.input-field:has(.autocomplete.loading)::after {
    animation: spin-translate 1s infinite linear;
    color: var(--primary-color); /* Optional: Highlight color for loading */
    /* Unicode for Material Icons spinner */
    transform: translateY(50%);
    content: '\e5d5';
}

/* Class to animate the spinner (other elements) */
.spinner {
    animation: spin 1s infinite linear;
}

.spinner {
    transform: translateY(50%);
    margin: auto;
}

/* Keyframes for spinning animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-translate {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Info Cards Styling */
.info-card {
    background: var(--surface-background-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    padding: 16px;
    height: 100px;
    margin-bottom: 20px;
}

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.info-card-icon i {
    color: white;
    font-size: 24px;
}

.info-card-icon.returning {
    background-color: var(--primary-color);
}

.info-card-icon.lease {
    background-color: var(--secondary-color);
}

.info-card-icon.agency {
    background-color: var(--accent-color);
}

.info-card-icon.verified {
    background-color: var(--primary-dark);
}

.info-card-content {
    flex: 1;
}

.info-card-content span {
    color: #4a4a4a;
    font-size: 0.9rem;
}

/* Content Cards Styling */
.content-card {
    background: var(--surface-background-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    border-style: none;
}

.content-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.content-card-header i, .content-card-header .material-symbols {
    color: var(--primary-color);
    margin-right: 12px;
}

.content-card-header span {
    font-size: 24px;
    color: var(--primary-dark-color);
    font-weight: 500;
}

.content-card-body {
    padding: 20px;
}

.content-card-item {
    padding: 12px;
}

.content-card-table {
    padding: 0;
}

/*Room Shit*/

/* Section Styles */
.section-header {
    margin: 16px 0;
}

.collapsible.collapse {
    border: none;
    box-shadow: none;
    -webkit-box-shadow: none;
    margin: auto;
    background: transparent;
}

.collapse-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: 4px;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s;
    border-bottom: 0;
    /*    Turn off box shadow*/
    box-shadow: none;

}

.collapse-trigger:hover {
    background: var(--primary-dark-color) !important;
}

.collapse-trigger i {
    margin-right: 8px;
    transition: transform 0.3s;
}

.collapse-trigger.active i {
    transform: rotate(180deg);
}

.section-content {
    display: none;
    padding: 16px 0;
}

.section-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* Responsive Adjustments */
@media only screen and (max-width: 600px) {
    .modern-tabs .tab a {
        padding: 8px;
    }

    .modern-tabs .tab a i {
        margin-right: 0;
    }

    .modern-tabs .tab a span {
        display: none;
    }
}

tr.maintenance-item.completed td:nth-child(2) {
    height: 76px;
}

tr.maintenance-item td {
    min-width: 1%;
}

tr.maintenance-item td:nth-child(2) {
    min-width: 99%;
}

tr.maintenance-item td:last-child {
    min-width: 100px;
}

tr.maintenance-item td {
    text-align: left !important;
}

tr.maintenance-item td:first-child, tr.maintenance-item td:nth-child(3) {
    position: absolute;
    text-align: center;
    left: 0;
    right: 0;
    color: white;
    bottom: 0;
    padding-top: 2px;
    padding-bottom: 2px;
    background: var(--primary-color);
}

a.view-button {
    font-size: 28px;
    color: white;
    cursor: pointer;
}

a.view-button:hover {
    color: var(--primary-dark-color);
}

.collapsible.content-card {
    margin-top: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.action-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    margin-top: 1rem;
    gap: 1rem;
}

.linked-column {
    color: var(--accent-color);
    cursor: pointer;
}

.linked-column:hover {
    color: var(--secondary-color);
    transition: 200ms;
}

.modal-footer.action-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    justify-content: center;
}

/*input-field:has(.autocomplete)*/

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    gap: 1rem;
}

.icon-wrapper i {
    font-size: 20px;
}

.relational-item::before {
    content: '\e152';
    font-family: 'Material Icons';
    font-size: 12px;
    color: var(--tag-color);
    position: absolute;
    left: 4px;
}


.relational-item + span {
    padding: 4px 1px;
    display: unset;
    cursor: pointer;
    border: 2px solid;
    border-radius: 4px;
    color: var(--tag-color);
    border-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-top: auto;
    position: absolute;
    font-size: 20px !important;
    height: 32px;
}

.relational-item + span:hover {
    background: var(--tag-color);
    color: white;
    transition: 200ms;
}

.relational-item {
    position: relative;
    display: inline-block;
    height: 32px;
    padding: 4px 8px;
    padding-left: 16px;
    border: 2px solid;
    border-radius: 4px;
    margin-left: 12px;
    border-right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    text-color: var(--text-color);
    white-space: collapse;
    overflow: auto;
    text-overflow: ellipsis;
}

.relational-item:hover, .ledger-item.highlight .relational-item {
    background: var(--tag-color);
    color: white;
    transition: 200ms;
}

.relational-item:hover::after, .ledger-item.highlight .relational-item::after {
    color: white;
    opacity: 1;
}

.resizable-box {
    resize: vertical; /* Could also be horizontal, vertical, or none */
    overflow: auto; /* Ensures scrollbars appear if content exceeds the new size */
    height: 200px;
    border: 1px solid #ccc;
}

.file-actions span {
    font-size: 28px;
}

#statement-view ul {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

#statement-view ul li {
    list-style: none;
    margin: auto;
    font-size: 24px;
}

.file-actions span:hover {
    color: var(--primary-dark-color);
    transition: 200ms;
    transform: scale(1.1);
}

.action-menu /* MaterializeCSS Waves Effect Override */
.waves-effect.waves-light .waves-ripple {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Optional Loading State */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.action-icon {
    cursor: pointer;
}


/*Room item css*/

.room-item-menu {
    font-size: 24px;
    display: contents;
}

.room-item-button {
    float: right;
    vertical-align: middle;
    margin-left: 10px;
}

.room-item-button:hover {
    opacity: 0.8;
    transition: 300ms;
}

.toast-error p a:hover {
    background: var(--primary-dark-color);
}


.error {
    border: 1px solid #f44336;
    border-radius: 5px;
    margin: 10px;
    padding: 10px;
}

.error-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.error-header i {
    color: #f44336;
    margin-right: 10px;
}

.error-body {
    display: flex;
    flex-direction: column;
}

.error-body hr {
    margin: 10px 0;
}

.auto-updater::after {
    font-family: "Material Icons";
    font-size: 24px;
    display: inline-block;
    position: absolute;
    right: 0;
    top: 6px;
}

/*Auto updater*/
.auto-updater.updating::after {
    content: "\e88b"; /* Hourglass icon */
    color: var(--secondary-color);
    animation: spin 1s infinite linear;
}

.auto-updater.updated::after {
    content: "\e5ca"; /* Checkmark icon */
    color: var(--primary-color);
}

.auto-updater.error::after {
    content: "\e001"; /* Error icon */
    color: #f44336;
}

.border-info {
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    transition: 500ms;
}

.border-info.success {
    border: 1px solid #66bb6a !important;
    box-shadow: 0 0 0 1px #66bb6a !important;
}

.border-info.danger {
    border: 1px solid #f44336 !important;
    box-shadow: 0 0 0 1px #f44336 !important;
}

/* Scope styles to NSFAS modal */
.nsfas-verification-modal {
    max-width: 600px;
    overflow: hidden;
}

.file-upload-container .input-field {
    margin-bottom: 20px;
}

.file-upload-container {
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.file-upload-container:hover {
    border-color: var(--primary-color);
}

.file-upload-container .file-label {
    color: #777;
    font-size: 1.2rem;
    display: block;
}

/*TODO: Change name to something more de*/
.file-upload .file-input {
    display: none;
}

.file-upload .file-name {
    margin-top: 10px;
    color: #444;
    font-size: 0.9rem;
    font-style: italic;
}

/* Drop Zone Styling */
.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    background-color: var(--primary-background-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    margin-bottom: 15px; /* Space before download link */
}

.drop-zone:hover, .drop-zone.dragover {
    background-color: var(--primary-color, #e3f2fd);
    border-color: #9e9e9e;
}

.drop-zone p {
    margin: 5px 0;
    color: var(--secondary-text-color);
}


/* Summary Header */
.summary-header {
    padding: 15px !important; /* Override card-panel padding */
    margin-bottom: 20px;
    border: 1px solid #b2dfdb; /* Teal border */
}

.summary-header h6 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #00796b; /* Darker Teal */
}

.summary-header p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.file-upload .modal-footer .btn-flat {
    color: var(--primary-text-color);
}

.file-upload .modal-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* --- Utility for hidden elements (if needed) --- */
.visually-hidden {
    display: none !important;
}

/**
Leave
 */

.validation-message-container {
    justify-content: center; /* Center the content (icon + text) horizontally */
    align-items: center; /* Align the content (icon + text) vertically */
    padding: 12px 8px; /* Add some padding for better spacing */
    gap: 8px; /* Space between the icon and the text */
}

#leave-validation {
    margin-left: auto;
    margin-right: auto;
}

.adv.progress:has(.determinate) {
    height: 25px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.adv.progress .determinate {
    background-color: #4CAF50;
    height: 100%;
    transition: width 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adv.progress .determinate span {
    color: white;
    font-weight: bold;
}


/*****************************************
* Chips in tables style *
*****************************************/
/* Generic styles for columns containing chips (e.g., roles, permissions) */
.app-chips-column {
    white-space: normal !important;
    line-height: 1.4 !important;
    vertical-align: top !important;
    padding: 8px !important;
    overflow: hidden; /* Ensures content doesn't spill out */
}

/* Base style for all custom application chips */
/* This works in conjunction with Materialize's built-in '.chip' class */
.app-chip {
    margin: 2px 2px 2px 0 !important;
    font-size: 11px !important;
    padding: 0 8px !important;
    height: 24px !important;
    line-height: 24px !important;
    display: inline-block;
}

/* Specific style for the "+X more" chip */
.app-chips-column .more-chip {
    font-style: italic;
    background-color: #e0e0e0; /* A light grey background */
    color: #666; /* Darker grey text */
    cursor: help; /* Indicate it's interactive for more info */
}

/* Custom tooltip for the entire column (shows all items) */
.app-column-tooltip {
    position: absolute;
    background: rgba(33, 33, 33, 0.95); /* Dark, semi-transparent background */
    color: white;
    padding: 12px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Ensure it's on top */
    max-width: 350px; /* Slightly wider to accommodate more info */
    font-size: 12px;
    line-height: 1.4;
    pointer-events: none; /* Allows clicks to pass through to elements behind if not hovered */
    opacity: 0;
    animation: tooltipFadeIn 0.2s forwards; /* Smooth fade-in animation */
}

.app-column-tooltip-header {
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Separator for the header */
}

/* Container for each individual item within the tooltip (e.g., for each role) */
.app-column-tooltip-item-container {
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1); /* Subtle separator between roles */
}

.app-column-tooltip-item-container:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none; /* No border for the last item */
}

.app-column-tooltip-role-name {
    font-weight: bold;
    margin-bottom: 4px;
    color: #a7ffeb; /* A light, contrasting color for role names */
}

.app-column-tooltip-role-permissions {
    margin-top: 4px;
}


/* Style for chips *within* the column-level tooltip (e.g., permissions within a role) */
.app-column-tooltip-sub-chip {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2); /* Light background for chips within tooltip */
    padding: 2px 6px;
    margin: 1px 2px 1px 0;
    border-radius: 2px;
    font-size: 10px; /* Slightly smaller for nested chips */
    line-height: 1; /* Adjust line height for smaller chips */
    white-space: nowrap; /* Prevent breaking */
}

.app-column-tooltip-sub-chip-empty {
    font-style: italic;
    color: #ccc;
    font-size: 10px;
}


/* Hover effect for the entire column */
.app-chips-column:hover {
    background-color: rgba(0, 0, 0, 0.02); /* Subtle highlight on hover */
}

/* Animation for the tooltip */
@keyframes tooltipFadeIn {
    to {
        opacity: 1;
    }
}

/* Specific styles for .permissions-column or .role-column if needed */
.permissions-column {
    /* Example: Add specific border or background if needed for permissions */
}

.role-column {
    /* Example: Add specific text color or font weight if needed for roles */
}

/* If you need specific styling for chips *within* these columns, you can do: */
.permissions-column .permission-chip {
    /* Example: Specific color for permission chips */
    background-color: #ffe0b2; /* Light orange */
    color: #e65100; /* Dark orange text */
}

.role-column .role-chip {
    /* Example: Specific color for role chips */
    background-color: #e8f5e9; /* Light green */
    color: #2e7d32; /* Dark green text */
}

/* Delete icon styling */
.delete-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    color: #adb5bd; /* Subtle grey */
    font-size: 20px;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Hover effect for the delete icon */
.delete-icon:hover {
    color: #e53935; /* A strong red on hover */
    transform: scale(1.15); /* Slightly enlarge on hover */
}

.selection-start {
    background-color: #ffd29e !important; /* A distinct color for the start date */
    border-radius: 50%;
}

/* --- Compact FullCalendar Styles --- */
/* Reduce the font size of the month titles (e.g., "September") */
.fc-multimonth-title {
    font-size: 1.1em !important;
    font-weight: 600 !important;
}

/* Reduce padding and font size of the day headers (Sun, Mon, Tue) */
.fc .fc-col-header-cell-cushion {
    font-size: 0.8em;
    padding: 4px;
}

/* Reduce the height of the day cells */
.fc .fc-daygrid-day-frame {
    min-height: auto; /* Allow the cell to shrink */
    padding: 2px !important;
}

/* Reduce the font size of the day numbers */
.fc .fc-daygrid-day-number {
    font-size: 0.85em;
    padding: 4px;
}

/* Reduce space around the main view */
.fc {
    max-width: 1100px;
    margin: 0 auto;
}