﻿html, body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;

}

:root {
    --bs-font-sans-serif: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
.go-btn img {
    width: 20px;
    height: 20px;
    display: block;
    margin: auto;
    cursor: pointer;
}
/*sidebar mobile view*/
/* ===== SIDEBAR MOBILE FIX ===== */
@media (max-width: 768px) {

    .sidebar {
        position: fixed;
        left: -220px;
        top: 0;
        width: 220px;
        height: 100%;
        background: #ffffff;
        z-index: 1000;
        transition: 0.3s ease;
        box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    }

        .sidebar.open {
            left: 0;
        }

    .page {
        flex-direction: column;
    }
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.3); /* lighter */
        z-index: 999;
    }
    .menu-toggle {
        background: none;
        border: none;
        font-size: 22px;
        color: black;
        margin-right: 10px;
        z-index: 1001;
    }
}
@media (max-width: 768px) {
    .page {
        flex-direction: column;
    }
}
/* ===== MENU BUTTON ===== */


/* Hide on desktop */
@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}


.sidebar.collapsed ~ main .pagination-parent {
    left: 80px;
}
html, body {
    height: 100%;
    margin: 0;
}
/*sidebar css code start here*/
/* Menu Item */
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 14px;
    color: #656565;
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
}
    .menu-item i {
        font-size: 18px;
    }
    .menu-item:hover {
        background: #F3F8FF;
        color: #2563EB;
    }
    .menu-item.active {
        background: #EFF9FF;
        color: #176DE3;
        font-weight: 500;
        font-size: 14px;
    }
.sidebar-user {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    background: #F9FAFB;
}

    .sidebar-user img {
        width: 42px;
        height: 42px;
        border-radius: 50%;
    }

    .sidebar-user .info {
        flex: 1;
        margin-left: 10px;
    }

    .sidebar-user .name {
        margin: 0;
        font-size: 15px;
        font-weight: 600;
    }

.logout {
    font-size: 20px;
    cursor: pointer;
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
h1:focus {
    outline: none;
}

/*.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}*/

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
    font-size:12px;
}
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/*for scrollbar*/
/* GLOBAL SCROLLBAR STYLE */

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

::-webkit-scrollbar-thumb {
    background: #9ca3af; 
    border-radius: 8px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #6b7280;
    }

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #9ca3af #f1f1f1;
}
.table-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
}

    .table-scroll-container::-webkit-scrollbar {
        height: 10px;
    }

    .table-scroll-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .table-scroll-container::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }

        .table-scroll-container::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

.table-scroll-container {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.modal.show {
    animation: fadeIn 0.2s ease-in;
}

@@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
.scroll-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    min-height: 0; 
}
.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}
.toast-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 2147483647 !important; /* maximum possible z-index */
    pointer-events: all !important;
    isolation: isolate;
}

.toast {
    position: relative !important;
    z-index: 2147483647 !important;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 12px;
    color: #fff;
    min-width: 260px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
    .toast.success {
        background-color: #16a34a;
    }

    .toast.error {
        background-color: #dc2626;
    }
.toast-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}
/*for empty table message*/
.empty-row td {
    height: calc(100vh - 88px);
    padding: 0;
}
.empty-table-message {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 14px;
    font-weight: 500;
    color: #656565;
    width:100%;
}
.custom-table tbody td.table-empty-center {
    text-align: center !important;
    color: #656565 !important;
    border: none !important;
    padding: 20px !important;
    font-size: 14px !important;
    font-weight: 500;
}
/* ================= ADD MODAL ================= */
.public-body-modal {
    border-radius: 16px;
    border: none;
    background-color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

    /* ================= MODAL HEADER ================= */
    .public-body-modal .modal-header {
        padding: 7px 10px;
        border-bottom: 1px solid #E5E7EB;
    }

    .public-body-modal .modal-title {
        font-size: 14px;
        font-weight: 500;
        color: #242424;
    }

    /* Close button */
    .public-body-modal .btn-close {
        box-shadow: none;
        outline: none;
        opacity: 0.8;
    }

        .public-body-modal .btn-close:hover {
            opacity: 1;
        }

/* ================= SECTION TITLE ================= */
.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #242424;
    margin-bottom: 4px;
}
/* ================= FORM LABELS ================= */
.public-body-modal .form-label {
    font-size: 13px;
    font-weight: 500;
    color: #242424;
    margin-bottom: 6px;
}

/* ================= INPUTS / SELECT / TEXTAREA ================= */
.public-body-modal .input-area,
.public-body-modal .input-select,
.public-body-modal .input-area {
    font-size: 12px;
    border-radius: 8px;
    padding: 5px 8px;
    box-shadow: none;
    background-color: #EFEFEF;
}
    /* Placeholder */
.public-body-modal .form-control::placeholder,
.public-body-modal textarea::placeholder {
    color: #dee2e6;
    font-size: 12px;
    font-weight: 500;
}

/* ================= SELECT PLACEHOLDER ================= */

/* Default placeholder state */
.public-body-modal .form-select {
    color: #656565;
    font-size: 12px;
    font-weight: 500;
}
    /* When actual value is selected */
    .public-body-modal .form-select:not(:has(option:checked[disabled])) {
        color: #242424;
        font-weight: 500;
    }
    /* Disabled placeholder option */
    .public-body-modal .form-select option[disabled] {
        color: #dee2e6;
    }
    /* Focus state */
    .public-body-modal .form-control:focus,
    .public-body-modal .form-select:focus,
    .public-body-modal textarea:focus {
        border-color: #176DE3;
        box-shadow: none;
        outline: none;
    }
/* ================= CHECKBOX ================= */
.public-body-modal .form-check-input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
    .public-body-modal .form-check-input:focus {
        box-shadow: none;
        border-color: #176DE3;
    }
.public-body-modal .form-check-label {
    font-size: 12px;
    color: #374151;
}
/* ================= MODAL BODY ================= */
.custom-public-body-modal {
    max-width: 660px;
}
.public-body-modal .modal-body {
    background-color: #ffffff;
    padding: 10px;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ================= MODAL FOOTER ================= */
.public-body-modal .modal-footer {
    padding: 5px 15px;
    border-top: 1px solid #E5E7EB;
}

/* ================= BUTTONS ================= */

/* Cancel Button */
.public-body-modal .button-cancle {
    border-radius: 8px;
    color: #242424;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 15px;
    border: 1px solid #DCDCDC;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: none;
}
/* Save Button */
.public-body-modal .button-save {
     border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 15px;
    color: #ffff;
    border:none;
    background-color: #176DE3;
}
    /* Remove focus / active border */
    .public-body-modal .btn-primary:focus,
    .public-body-modal .btn-primary:active,
    .public-body-modal .btn-primary:focus-visible {
        outline: none;
        box-shadow: none;
    }
    /* ================= ICON STYLE ================= */
    .public-body-modal .btn-primary i {
        font-size: 16px;
        color: #ffffff;
        font-weight: 700;
        text-shadow: 0 0 1px rgba(0, 0, 0, 0.35);
        line-height: 1;
    }
.form-control:focus,
.form-select:focus {
    box-shadow: none;
    border-color: #EFEFEF;
    cursor: pointer;
}
/* Style all input date fields */
input[type="date"].form-control,
input[type="date"].custom-input,
input[type="time"].custom-input,
input[type="time"].form-control {
    background-color: #EFEFEF;
    border: 1px solid #EFEFEF;
    font-size: 12px;
    border-radius: 8px;
    padding: 5px 10px;
    font-weight: 500;
    cursor: pointer;
    color: #656565 !important;
    height:36px;
}

/* Date/time filled → dark */
input[type="date"].date-filled,
input[type="time"].date-filled {
    color: #242424 !important;
}

/* Empty state → gray */
input[type="date"].date-empty,
input[type="time"].date-empty {
    color: #656565 !important;
}
/* ================= FORCE FIX: ACTIVITY MODAL HEIGHT ================= */
.public-body-modal.activity-modal .modal-body {
    height: auto !important;
    max-height: 65vh !important;
    overflow-y: auto !important;
}
.public-body-modal.activity-modal {
    height: auto !important;
}
    .public-body-modal.activity-modal textarea {
        min-height: 90px;
    }

.signatory-radio {
    display: flex;
    align-items: center;
    gap: 6px;
}
/* ================= MULTI SELECT ================= */
.multi-select-container {
    min-height: 31px;
    background-color: #EFEFEF;
    border-radius: 8px;
    padding: 6px 36px 6px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    cursor: pointer;
    position: relative;
}
    .multi-select-container .placeholder {
        font-size: 12px;
        font-weight: 500;
        color: #dee2e6;
    }
    .multi-select-container .caret {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        color: #242424;
        pointer-events: none;
    }
/* ================= CHIPS ================= */
.chip {
    background-color: #E5E7EB;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #656565;
}

    .chip .remove {
        cursor: pointer;
        font-size: 12px;
        color: #6B7280;
        line-height: 1;
    }

        .chip .remove:hover {
            color: #DC2626;
        }

/* ===== MULTI SELECT DROPDOWN (FIXED) ===== */
.dropdown-overlay {
    position: fixed;
    inset: 0;
    z-index: 1040;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 6px;
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Dropdown item */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    color: #242424;
}

.placeholder {
    background-color: transparent;
}

.dropdown-item:hover {
    background-color: #F3F4F6;
}

/* Checkbox */
.dropdown-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}
/* ================= LOGIN PAGE ================= */
/* Card */
.login-card {
    max-width: 450px;
    width: 450px !important;
    min-width: 450px !important;
    border-radius: 12px;
}
/* Title */
.login-title {
    color: #ff854b;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Login Button */
.login-btn {
    background-color: #d58762;
    color: #ffffff;
    font-weight: 500;
    border: none;
}

    .login-btn:hover,
    .login-btn:focus {
        background-color: #c67855;
        color: #ffffff;
    }

/* ================= INPUT WITH ICON ================= */

.user-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 16px;
}

/* Input padding for icon */
.username-input {
    padding-left: 36px;
}

/* Remove focus glow (login page only) */
.login-card .form-control:focus {
    outline: none;
    box-shadow: none;
    border-color: #DCDCDC;
}
/* =================================================
   LOGIN PAGE – REMOVE BLUE FOCUS BORDER COMPLETELY
   ================================================= */

/* INPUTS */
.login-card input,
.login-card textarea,
.login-card select,
.login-card .form-control {
    outline: none !important;
    box-shadow: none !important;
    border-color: #DCDCDC !important;
}

    /* INPUT FOCUS */
    .login-card input:focus,
    .login-card input:focus-visible,
    .login-card textarea:focus,
    .login-card textarea:focus-visible,
    .login-card select:focus,
    .login-card select:focus-visible,
    .login-card .form-control:focus,
    .login-card .form-control:focus-visible {
        outline: none !important;
        box-shadow: none !important;
        border-color: #DCDCDC !important;
    }

/* BUTTON */
.login-card button,
.login-card .btn {
    outline: none !important;
    box-shadow: none !important;
}

    .login-card button:focus,
    .login-card button:focus-visible,
    .login-card button:active,
    .login-card .btn:focus,
    .login-card .btn:focus-visible,
    .login-card .btn:active {
        outline: none !important;
        box-shadow: none !important;
    }

/* CHECKBOX */
.login-card .form-check-input:focus {
    outline: none !important;
    box-shadow: none !important;
}
:root {
    --bs-focus-ring-color: transparent !important;
    --bs-focus-ring-width: 0 !important;
}

/*full calendar code here*/
.calendar-sidebar {
    width: 260px;
    background: #fff;
    border: 1px solid #DCDCDC;
    padding: 16px;
    border-radius: 16px;
    height: 100%;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.user-list {
    list-style: none;
    padding: 0;
    font-size: 12px;
}

    .user-list li {
        margin-bottom: 8px;
    }
.user-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 0;
}
.user-item input {
    display: none;
}
    .user-item input[type="checkbox"] {
        display: none;
    }
        /* Checked state */
        .user-item input[type="checkbox"]:checked + .check {
            background-color: currentColor;
            border-color: currentColor;
        }
/* Custom checkbox box */
.user-item .check {
    width: 16px;
    height: 16px;
    min-width: 16px; 
    border-radius: 4px;
    border: 2px solid currentColor;
    background-color: #fff;
    position: relative;
    transition: all 0.2s ease;
}
/* Checkmark icon */
.user-item input[type="checkbox"]:checked + .check::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
/* Checked state - fill with parent color */
.user-item input:checked + .check {
    background-color: currentColor;
    border-color: currentColor;
}
/* Checkmark */
.user-item input:checked + .check::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.user-item .name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: inherit;
}

/* Custom header bar */
.custom-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: white;
}

.header-left-section {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.date-picker-wrapper {
    position: relative;
}

.current-date-button {
    display: flex;
    align-items: center;
    padding: 0;
    font-size: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
}

.nav-button-inline {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #666;
}

#calendarTitle {
    padding: 0 16px;
    min-width: 140px;
    text-align: center;
}
.fc-event.pto-calendar-event {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

    .fc-event.pto-calendar-event:hover {
        background: transparent !important;
    }

.fc-pto-card {
    border-radius: 6px;
    padding: 6px 8px;
}
.fc-event.custom-calendar-event {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

    .fc-event.custom-calendar-event:hover {
        background: transparent !important;
    }


.fc-custom-event {
    display: flex;
    flex-direction: column; 
    /*    width: 100%;*/
    box-sizing: border-box;
    border-radius: 6px;
    padding: 6px 8px;
}
.fc-timegrid-event.custom-calendar-event {
    background: transparent !important;
    border: none !important;
}

.fc-timegrid-event .fc-custom-event {
    width: 100%;
    height: 100% !important;
    min-height: unset !important;
}
/* Ensure the harness fills correctly */
.fc-timegrid-event-harness > .fc-timegrid-event {
    inset: 2px !important;
}
/*added this*/
.fc-timegrid-event-harness {
    margin-right: 2px;
}

.fc-timegrid-col-events {
    margin: 0 !important;
}

/* Month view only */
.fc-daygrid .fc-event.custom-calendar-event {
    width: 100% !important;
}

/* Day & Week view */
/*.fc-timegrid .fc-event.custom-calendar-event {
    width: auto !important;
}*/




.fc-pto-card,
.fc-custom-event {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.date-picker-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    display: none;
    min-width: 320px;
    z-index: 1000;
}

    .date-picker-dropdown.show {
        display: block;
    }

.mini-calendar {
    padding: 20px;
}

.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.day-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    cursor: pointer;
    padding: 8px;
}

    .day-cell.selected {
        background: #1976d2;
        color: white;
    }

    .day-cell:hover {
        background: #f0f0f0;
    }

    .day-cell.selected:hover {
        background: #1565c0;
    }

.header-right-section {
    display: flex;
    align-items: center;
    gap: 12px;
}


.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}
.user-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-item {
    margin-bottom: 8px;
}
    .user-item label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        border-radius: 6px;
        transition: background 0.2s;
        font-size: 12px;
        color: #242424;
    }

    .user-item input[type="checkbox"] {
        display: none;
    }

    .user-item .check {
        width: 16px;
        height: 16px;
        border: 2px solid currentColor;
        border-radius: 4px;
        position: relative;
        transition: all 0.2s;
    }

    .user-item input[type="checkbox"]:checked + .check {
        background: currentColor;
    }

        .user-item input[type="checkbox"]:checked + .check::after {
            position: absolute;
            top: 0px;
            left: 4px;
            color: white;
            font-size: 12px;
            font-weight: bold;
        }

    .user-item .name {
        flex: 1;
        font-size: 14px;
    }
.loading-message,
.error-message {
    padding: 16px;
    text-align: center;
    color: #666;
}

.error-message {
    color: #dc2626;
}

.retry-btn {
    margin-top: 8px;
    padding: 6px 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    .retry-btn:hover {
        background: #1d4ed8;
    }

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .error-banner button {
        background: none;
        border: none;
        color: #dc2626;
        font-size: 18px;
        cursor: pointer;
        padding: 0 4px;
    }
    .add-pto-btn:hover {
        background: #1d4ed8;
    }

    .add-pto-btn:active {
        background: #1e40af;
    }
/* MINI CALENDAR HEADER */
.mini-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.mini-nav-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    color: #666;
}
    .mini-nav-btn:hover {
        color: #333;
        background: #f5f5f5;
        border-radius: 4px;
    }

.mini-calendar-title {
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

    .mini-calendar-title:hover {
        color: #2563eb;
    }

@media (max-width: 768px) {

    /* ✅ STACK LAYOUT */
    .calendar-layout {
        display: flex;
        flex-direction: column !important;
        gap: 12px;
        padding: 10px;
    }

    /* ✅ FIX SIDEBAR (MAIN ISSUE) */
    .calendar-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important; /* ✅ remove fixed height */
        max-height: none !important; /* 🔥 IMPORTANT FIX */
        display: block !important;
        overflow: visible !important; /* 🔥 allow content */

        position: relative !important;
        top: unset !important;
        padding: 12px;
    }

        .calendar-sidebar .user-list {
            max-height: 200px; 
            overflow-y: auto;
            flex: unset !important;
        }
    .calendar-main {
        height: auto !important; 
        min-height: auto !important;
        overflow: visible !important;
    }
    #calendar {
        overflow-x: auto !important; 
        overflow-y: visible !important;
    }
    .calendar-card {
        width: 100%;
    }

    /* ✅ FIX HEADER BREAKING */
    .unified-calendar-header {
        flex-wrap: wrap !important;
        gap: 8px;
        padding: 10px;
    }

    /* Toolbar wrap */
    .blazor-calendar-toolbar {
        flex-wrap: wrap !important;
        gap: 8px;
        justify-content: space-between;
        width: 100%;
    }

    /* Buttons adjust */
    .view-buttons {
        width: 100%;
        justify-content: space-between;
    }

    /* Optional: smaller calendar cells */
    .fc .fc-daygrid-day {
        min-height: 80px;
    }
}
/*CALENDAR CSS*/
.calendar-layout {
    display: flex;
    gap: 15px;
    padding: 12px 12px 30px;
    background: #f5f5f5;
    min-height: calc(100vh - 50px);
    box-sizing: border-box;
    align-items: flex-start;
}
/* ══════════════════════════════════════════════════════
               SIDEBAR — fixed height, title pinned, list scrolls
               ══════════════════════════════════════════════════════ */
.calendar-sidebar {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #DCDCDC;
    border-radius: 16px;
    padding: 16px;
    /* Fill viewport height minus top bar */
    height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* clip — children scroll */
    position: sticky;
    top: 12px; /* stick while page scrolls */
}

.sidebar-title {
    font-weight: 600;
    font-size: 15px;
    color: #111827;
    margin-bottom: 12px;
    flex-shrink: 0; /* always visible */
}
/* Scrollable user list */
.calendar-sidebar .user-list {
    flex: 1 1 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    list-style: none;
}
/* ══════════════════════════════════════════════════════
               CALENDAR MAIN
               ══════════════════════════════════════════════════════ */
.calendar-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: calc(100vh - 90px);
    overflow: hidden;
}
/* ══════════════════════════════════════════════════════
               CALENDAR CARD
               ══════════════════════════════════════════════════════ */
.calendar-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}
/* ══════════════════════════════════════════════════════
               UNIFIED HEADER — date nav LEFT + toolbar RIGHT
               ══════════════════════════════════════════════════════ */
.unified-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    position: sticky;
    top: 0;
    z-index: 20;
    /* NO flex-wrap — force single row always */
    flex-wrap: nowrap;
    min-height: 52px; /* reserve height even before JS injects the date nav */
}
/* Left slot — takes up space so toolbar doesn't drift left */
#calendarTitleWrapper {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-width: 200px; /* reserve space before JS fills it */
}

#calendar {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
/* Blazor toolbar — always flush right, never wraps to next line */
.blazor-calendar-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    flex-shrink: 0;
    margin-left: auto;
    padding: 0;
}
/* ── Toggle ── */
.show-pto-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 18px;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .toggle-switch .slider {
        position: absolute;
        cursor: pointer;
        inset: 0;
        background: #d1d5db;
        border-radius: 22px;
        transition: background .3s;
    }

        .toggle-switch .slider::before {
            content: "";
            position: absolute;
            height: 12px;
            width: 12px;
            left: 3px;
            bottom: 3px;
            background: #fff;
            border-radius: 50%;
            transition: transform .3s;
            box-shadow: 0 1px 3px rgba(0,0,0,.2);
        }

    .toggle-switch input:checked + .slider {
        background: #2563eb;
    }

        .toggle-switch input:checked + .slider::before {
            transform: translateX(18px);
        }

/* ── Add PTO ── */
.add-pto-btn {
    padding: 7px 16px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background .2s;
}

    .add-pto-btn:hover {
        background: #1d4ed8;
    }
/* ── View switcher ── */
.view-buttons {
    display: flex;
    background: #EFEFEF;
    border-radius: 10px;
    padding: 3px;
}

.view-btn {
    border: none;
    padding: 5px 18px;
    cursor: pointer;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    border-radius: 7px;
    transition: background .15s;
}

    .view-btn.active {
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,.1);
        color: #111827;
    }
/* ══════════════════════════════════════════════════════
               MULTI-DATE MODAL
               ══════════════════════════════════════════════════════ */
.pto-modal-wide {
    width: min(860px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    overflow: visible !important;
}

.multi-date-layout {
    display: flex;
    gap: 20px;
    min-height: 320px;
}

.multi-date-calendar-panel {
    flex: 0 0 240px;
}

.mini-modal-calendar {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.mini-modal-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9fafb;
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
}

.mini-modal-cal-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

.mini-modal-cal-grid {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    padding: 8px;
    gap: 2px;
}

.mini-cal-day-header {
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
    padding: 4px 0;
}

.mini-cal-day {
    font-size: 12px;
    text-align: center;
    padding: 5px 2px;
    border-radius: 6px;
    cursor: pointer;
    color: #374151;
    transition: background .15s, color .15s;
    user-select: none;
}

    .mini-cal-day:hover {
        background: #eff6ff;
        color: #2563eb;
    }

    .mini-cal-day.today {
        font-weight: 700;
        color: #2563eb;
    }

    .mini-cal-day.selected {
        background: #2563eb;
        color: #fff !important;
        font-weight: 600;
    }

.mini-cal-hint {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    margin-top: 6px;
}

.multi-date-entries-panel {
    flex: 1;
    min-width: 0;
}

.no-dates-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #9ca3af;
    gap: 8px;
    font-size: 14px;
}

    .no-dates-hint span {
        font-size: 32px;
    }

.date-entries-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.date-entry-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    flex-wrap: wrap;
}

.date-entry-label {
    display: flex;
    flex-direction: column;
    min-width: 48px;
}

.date-entry-day {
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.date-entry-date {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.date-entry-fullday-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    white-space: nowrap;
}

.date-entry-fullday-label {
    font-size: 12px;
    font-weight: 500;
}

.date-entry-times {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.date-entry-times-placeholder {
    flex: 1;
}

.time-input-sm {
    width: 110px !important;
    font-size: 12px !important;
    padding: 4px 8px !important;
}

.time-sep {
    color: #6b7280;
    font-weight: 600;
}

.fullday-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    padding: 2px 10px;
}

.date-entry-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    transition: background .15s;
}

    .date-entry-remove:hover {
        background: #fee2e2;
    }

.pto-delete-btn {
    background: #dc2626;
    color: #fff;
    margin-right: auto;
}

    .pto-delete-btn:hover {
        background: #b91c1c;
    }
/* PTO MODAL STYLES */
.pto-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.2s;
}

    .pto-modal-overlay[style*="flex"] {
        display: flex !important;
    }

.pto-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.3s;
}

@@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pto-modal-header {
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pto-modal-title {
    font-size: 14px;
    font-weight: 500;
    color: #242424;
}

.pto-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}
    .pto-close-btn:hover {
        background: #f3f4f6;
        color: #111827;
    }
.pto-modal-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: visible !important;
}
.pto-modal-overlay .autocomplete-dropdown {
    z-index: 10000 !important;
}
.pto-form-group {
    display: flex;
    flex-direction: column;
}

    .pto-form-group label {
        font-weight: 500;
        font-size: 13px;
        color: #242424;
        margin-bottom: 4px;
    }

.pto-input {
    padding: 5px 12px;
    background-color: #EFEFEF;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    border: none;
}

    .pto-input:focus {
        outline: none;
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

.pto-date-row,
.pto-time-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pto-modal-footer {
    padding: 8px 9px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.pto-btn {
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.pto-cancel-btn {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

    .pto-cancel-btn:hover {
        background: #f9fafb;
    }

.pto-save-btn {
    background: #2563eb;
    color: white;
}

    .pto-save-btn:hover {
        background: #1d4ed8;
    }

    .pto-save-btn:active {
        background: #1e40af;
    }
/* Main table */
.fc-scrollgrid {
    border-color: #E5E7EB !important;
}
/* All table borders */
.fc .fc-scrollgrid-section > * {
    border-color: #E5E7EB !important;
}
/* Day header row (Sun, Mon, Tue, etc.) */
.fc .fc-col-header-cell {
    padding: 12px 8px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    color: #6B7280 !important;
    background: #F9FAFB !important;
    border-color: #E5E7EB !important;
    text-transform: uppercase;
}
.fc .fc-col-header-cell-cushion {
    padding: 0;
    color: #6B7280;
    text-decoration: none;
}
/* Day cells */
.fc .fc-daygrid-day {
    border-color: #E5E7EB !important;
    min-height: 120px;
}
/* Day frame (inner container) */
.fc .fc-daygrid-day-frame {
    padding: 8px 6px;
    min-height: 120px;
}
/* Day number (1, 2, 3, etc.) */
.fc .fc-daygrid-day-number {
    padding: 4px 8px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    text-decoration: none;
}
/* Today cell */
.fc .fc-day-today {
    background-color: #F0F9FF !important;
}
    .fc .fc-day-today .fc-daygrid-day-number {
        background: #2563EB;
        color: white !important;
        border-radius: 50%;
        width: 26px;
        height: 26px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
    }
/* Other month days */
.fc .fc-day-other .fc-daygrid-day-number {
    color: #9CA3AF !important;
}
/* REMOVE faded disabled look */
.fc-event,
.fc-daygrid-block-event,
.fc-daygrid-event {
    opacity: 1 !important;
    visibility: visible !important;
}
/* ================= EVENT STYLING ================= */

/* Event wrapper spacing */
.fc-daygrid-event-harness {
     margin-bottom: 6px !important;
}
/* Custom event card */
.fc-custom-event {
    background: #F8FAFC;
    border-left: 4px solid #2563EB;
    border-radius: 6px;
    padding: 5px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 100%;
    overflow: hidden;
    word-break: break-word;
    white-space: normal;
    opacity: 1 !important;
    visibility: visible !important;
}
.fc-event-time {
    font-size: 10px !important;
    font-weight: 600 !important;
    white-space: nowrap;
}
/* Event block */
.fc-event {
    border: none !important;
    border-left: 3px solid currentColor !important;
    border-radius: 3px !important;
    padding: 3px 6px !important;
    margin: 0 2px 2px 2px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    background-color: currentColor !important;
    opacity: 0.15;
    transition: opacity 0.2s;
}
/* Event title */
.fc-custom-event .fc-event-title {
    color: #1F2937 !important;
    font-weight: 500;
}
.fc-event-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Custom event content */
.custom-event {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    font-size: 11px;
    font-weight: 500;
    color: #374151;
}

/* Main table */
.fc-scrollgrid {
    border-color: #E5E7EB !important; 
}

/* All table borders */
.fc .fc-scrollgrid-section > * {
    border-color: #E5E7EB !important;
}

/* Day header row (Sun, Mon, Tue, etc.) */
.fc .fc-col-header-cell {
    padding: 10px 8px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    color: #6B7280 !important;
    background: #F9FAFB !important;
    border-color: #E5E7EB !important;
}

.fc .fc-col-header-cell-cushion {
    padding: 0;
    color: #6B7280;
    text-decoration: none;
    text-transform: capitalize;
}
 
/* Day cells */
.fc .fc-daygrid-day {
    border-color: #E5E7EB !important;
    min-height: 100px;
    background: #fff !important;
}

/* Day frame (inner container) */
.fc .fc-daygrid-day-frame {
    padding: 6px 4px;
    min-height: 100px;
}

/* Day number (1, 2, 3, etc.) */
.fc .fc-daygrid-day-top {
    flex-direction: row;
    justify-content: flex-start;
}

.fc .fc-daygrid-day-number {
    padding: 2px 6px !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #111827 !important;
    text-decoration: none;
}

/* Today cell */
.fc .fc-day-today {
    background-color: #fff !important;
}

    .fc .fc-day-today .fc-daygrid-day-number {
        background: #2563EB;
        color: white !important;
        border-radius: 4px;
        padding: 2px 8px !important;
        font-weight: 500 !important;
    }

/* Other month days */
.fc .fc-day-other {
    background: #FAFAFA;
}

    .fc .fc-day-other .fc-daygrid-day-number {
        color: #9CA3AF !important;
    }
/* ================= EVENT STYLING (CRITICAL FIX) ================= */
/* Remove all default event styling */
.fc-event {
    border: none !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 0 2px 0 !important;
}
/* Event harness */
.fc-daygrid-event-harness {
    margin: 0 2px 2px 2px !important;
}
/* Block event */
.fc-daygrid-block-event {
    border: none !important;
    border-radius: 2px !important;
    padding: 2px 4px !important;
    background: rgba(37, 99, 235, 0.1) !important; 
    border-left: 2px solid #2563EB !important; 
}
.fc-daygrid-event .fc-event-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 0 !important;
    max-width: 100%;
}
/* Event time */
.fc-event-time {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #111827 !important;
}
.fc-event-title {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    line-height: 1.3;
}
/* Custom event rendering */
.fc-daygrid-event {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

    .fc-daygrid-event .fc-event-main {
        display: flex;
        align-items: center;
        gap: 4px;
        padding: 0 !important;
    }
.fc-event:hover {
    background: rgba(37, 99, 235, 0.15) !important;
}
/* ================= MORE EVENTS LINK ================= */
.fc .fc-daygrid-day-bottom {
    margin-top: 2px;
    font-size: 11px;
}
.fc .fc-daygrid-more-link {
    font-size: 10px !important;
    color: #2563EB !important;
    font-weight: 500 !important;
    padding: 2px 4px !important;
    border-radius: 2px;
    background: transparent !important;
    text-decoration: none !important;
}
    .fc .fc-daygrid-more-link:hover {
        background-color: #EFF6FF !important;
    }
/* ================= CALENDAR CARD WRAPPER ================= */
/*.calendar-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #E5E7EB;
}*/
/* ================= DELETE MODAL ================= */
.delete-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.delete-modal {
    background: white;
    border-radius: 16px;
    width: 420px;
}
.delete-body {
    padding: 13px 0 13px;
    text-align: center;
}
.delete-title {
    font-size: 12px;
    font-weight: 500;
    color: #242424;
    padding: 10px 10px;
    border-bottom: 1px solid #DCDCDC;
}
.delete-actions {
    display: flex;
    gap: 12px;
    justify-content: end;
    padding: 5px 13px 0 10px;
}
.buttoncancel {
    background-color: white;
    color: #242424;
    border: 1px solid #DCDCDC;
    padding: 5px 15px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 12px;
}
    /* HOVER */
    .buttoncancel:hover {
        background-color: #f3f4f6;
        color: #242424;
        border-color: #D1D5DB;
    }
    /* FOCUS / ACTIVE */
    .buttoncancel:focus,
    .buttoncancel:active {
        background-color: #f3f4f6 !important;
        box-shadow: none !important;
        outline: none !important;
    }
.buttondelete {
    background-color: #DC2626;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 12px;
}
    /* HOVER */
    .buttondelete:hover {
        background-color: #b91c1c;
        color: white;
    }
    /* FOCUS / ACTIVE */
    .buttondelete:focus,
    .buttondelete:active {
        background-color: #b91c1c !important;
        box-shadow: none !important;
        outline: none !important;
    }
.loader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
   
}
/* Loader card */
.loader-box {
    background: white;
    padding: 24px 36px;
    border-radius: 12px;
    text-align: center;
}

.loader-text {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
}
.loader-overlay {
    pointer-events: all;
}
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}


    /* Spinner spacing */
    .loader-wrapper .spinner-border {
        width: 3rem;
        height: 3rem;
    }

/* Loader text */
.loader-text {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #176DE3;
}

/* ================= FILTER ================= */

.filter-icon {
    margin-left: 6px;
    cursor: pointer;
    color: #656565;
}

.filter-dropdown {
    position: absolute;
    top: 24px;
    z-index: 50;
    width: 320px;
    background: white;
    border-radius: 8px;
    border: 1px solid #DCDCDC;
    box-shadow: 0 10px 25px rgba(15,23,42,0.18);
}

    .filter-dropdown.right {
        right: 0;
        left: auto;
    }
    /* LEFT DEFAULT */
    .filter-dropdown.left {
        left: 0;
        right: auto;
    }

.filter-search {
    padding: 10px;
}
.search-icon{
    position: absolute;
    top: 16%;
    left: 18px;
    transform: translateY(-50%);
    color: #989898;
}
.filter-input {
    width: 100%;
    padding: 6px 8px 6px 26px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 12px;
}

.search-icon {
    position: absolute;
    top: 16%;
    left: 18px;
    transform: translateY(-50%);
    color: #989898;
}

/* ================= FILTER OPTIONS ================= */

.filter-options {
    padding: 0 10px;
    font-size: 12px;
}

.filter-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

    .filter-option.active {
        background-color: #EFF9FF;
    }

    .filter-option .left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

.check-icon {
    color: #2563eb;
    font-size: 18px;
}

/* ================= FILTER FOOTER ================= */

.filter-footer {
    padding: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-clear {
    background: none;
    border: none;
    color: #176DE3;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}

.btn-apply {
    background-color: #176DE3;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}

/* ================= DATE FILTER ================= */

.date-filter {
    padding: 10px;
    display: flex;
    gap: 8px;
}

.date-select,
.date-input {
    flex: 1;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 12px;
    background: #efefef;
}
@media (max-width: 1024px) {

    .date-filter {
        flex-direction: column !important; /* 🔥 STACK */
        gap: 6px;
    }

    .date-select,
    .date-input {
        width: 100% !important; /* 🔥 FULL WIDTH */
    }
}
/*at a glance page input box css*/
.new-input {
    background-color: #EFEFEF;
    border: 1px solid #EFEFEF;
    font-size: 12px;
    border-radius: 8px;
    padding: 8px 10px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}
    .new-input:focus,
    .new-input:active {
        outline: none !important;
        box-shadow: none !important;
        border-color: #EFEFEF !important;
        background-color: #EFEFEF;
    }
/*manager user tabs header add group button */
.btn-add-group {
    background-color: #ffffff;
    border: 1px solid #DCDCDC;
    color: #242424;
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

    /* Icon color */
    .btn-add-group i {
        color: #242424;
        font-size: 16px;
    }
    /* Hover */
    .btn-add-group:hover {
        background-color: #ffff;
        color: #242424;
        border: 1px solid #DCDCDC !important;
    }
        /* Icon hover */
        .btn-add-group:hover i {
            color: #242424;
        }

    /* Remove bootstrap focus glow */
    .btn-add-group:focus,
    .btn-add-group:active {
        outline: none !important;
        box-shadow: none !important;
    }
/*project component excel upload table css*/
/* ===== Excel Preview Popup Scroll Fix ===== */
.excel-preview-wrapper {
    max-height: 65vh;
    overflow-x: auto;
    overflow-y: auto;
    margin:10px;
}
    .excel-preview-wrapper .data-table {
        table-layout: auto !important;
        border-collapse: collapse;
        font-size: 12px;
    }
    /* Table should be wider than modal */
    .excel-preview-wrapper table {
        min-width: 2400px;
        table-layout: fixed;
    }
    /* Header width control */
    .excel-preview-wrapper th {
        white-space: nowrap;
        padding: 10px;
        font-size: 13px;
    }

    /* Data cell width control */
    .excel-preview-wrapper td {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 8px 10px;
        font-size: 13px;
    }

    /* Sticky header inside popup */
    .excel-preview-wrapper thead th {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 5;
    }

    /* Filter icon spacing */
    .excel-preview-wrapper .filter-icon {
        margin-left: 6px;
    }

/* Status pill */
.status-pill {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}
.validation-msg {
    font-size: 12px;
    font-weight: 500;
}

.fc-custom-tooltip .fc-tt-title {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
    line-height: 1.4;
}

.fc-custom-tooltip .fc-tt-row {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
    color: #475569;
    align-items: flex-start;
}

.fc-custom-tooltip .fc-tt-label {
    font-weight: 600;
    color: #94a3b8;
    min-width: 74px;
    flex-shrink: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-top: 1px;
}
/*dropdown css */
.custom-autocomplete {
    position: relative;
}

/*.autocomplete-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}*/
.autocomplete-input-wrapper {
    position: relative;
}
.custom-autocomplete.dropdown-open .autocomplete-input-wrapper {
    z-index: 1086;
}
    /* ===== Input box matches Radzen dropdown style ===== */
.autocomplete-input-wrapper .form-control {
    border-radius: 8px !important;
    border: 1px solid #EFEFEF !important;
    background-color: #EFEFEF !important;
    min-height: 36px;
    font-size: 13px !important;
    font-weight: 500;
    padding: 3px 56px 3px 10px !important;
    color: #656565;
}

        .autocomplete-input-wrapper .form-control:focus {
            border: 1px solid #4f8cff !important;
            box-shadow: 0 0 0 2px rgba(79, 140, 255, 0.15) !important;
            outline: none !important;
        }

    .autocomplete-input-wrapper .form-control::placeholder {
        color: #656565 !important;
        font-size: 12px !important;
    }

/* ===== Icons ===== */
.autocomplete-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    font-size: 13px;
    line-height: 1;
    z-index: 10;
}

    .autocomplete-icon:hover {
        color: #333;
    }

.clear-icon {
    right: 30px;
    font-size: 14px;
}

.chevron-icon {
    right: 10px;
    font-size: 13px;
}

/* ===== Dropdown panel matches Radzen panel style ===== */
.autocomplete-dropdown {
    position: absolute;
    left: 0;
    top: calc(100% + 4px);
    width: 100%;
    min-width: 100%;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
    max-height: 260px;
    overflow-y: auto;
    box-sizing: border-box !important;
    overflow-x: hidden;
    z-index: 1085;
}
/* When value is selected, input text becomes #242424 */
.autocomplete-input-wrapper .form-control.has-value,
.autocomplete-input-wrapper .form-control:not(:placeholder-shown) {
    color: #242424 !important;
}
/* Selected / filled state */
.autocomplete-input-wrapper .form-control.selected {
    color: #242424 !important;
}
/* Placeholder shown = no selection yet → gray */
.autocomplete-input-wrapper .form-control:placeholder-shown {
    color: #656565 !important;
}

/* Placeholder NOT shown = value selected → dark */
.autocomplete-input-wrapper .form-control:not(:placeholder-shown) {
    color: #242424 !important;
}
/* ===== Items match Radzen item style ===== */
.autocomplete-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    padding: 8px 12px;
    font-size:13px;
}

    .autocomplete-item:hover {
        background: #eef4ff !important;
        color: #242424 !important;
    }

.autocomplete-no-result {
    padding: 8px 12px;
    color: #999;
    font-size: 12px;
}
.autocomplete-dropdown.floating-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    min-width: 0;
    z-index: 12000;
}
/* ===== Backdrop ===== */
.autocomplete-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    background: transparent;
}
.rz-dropdown-chips .rz-chip,
.rz-multiselect .rz-chip {
    background-color: #ffffff !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 999px !important;
    color: #374151 !important;
}
.rz-dropdown-chips .rz-chip .rz-chip-text {
    font-size: 11px;
    color: #656565;
}
/* open upward when needed */
.autocomplete-dropdown.open-up:not(.floating-menu) {
    top: auto;
    bottom: calc(100% + 4px);
}
/* ===== MULTI SELECT CHIP DROPDOWN ===== */
.rz-dropdown {
    background-color: #EFEFEF !important;
    border: 1px solid #EFEFEF !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    min-height: 36px !important;
    height: auto !important;
    max-height: none !important;
    padding: 0 36px 0 8px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}
.rz-dropdown-chips-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    align-items: center !important;
    width: 100% !important;
    padding: 5px 0 0 0 !important;
    margin: 0 !important;
    min-height: unset !important;
}
/* empty state */
.rz-dropdown.rz-state-empty {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 36px 0 8px !important;
    align-items: center !important;
    display: flex !important;
}

    /* when chips present — auto height */
.rz-dropdown.rz-dropdown-chips:not(.rz-state-empty) {
    height: auto !important;
    min-height: 36px !important;
    padding: 6px 36px 4px 8px !important;
    align-items: center !important;  
}
.rz-dropdown.rz-state-empty .rz-dropdown-clear-icon,
.rz-dropdown.rz-state-empty ~ .rz-dropdown-clear-icon,
.rz-dropdown.rz-state-empty .notranslate.rz-dropdown-clear-icon {
    display: none !important;
}
.rz-dropdown-clear-icon {
    display: none !important;
}
.rz-dropdown:hover,
.rz-dropdown:focus {
    border-color: #d0d0d0 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ===== CHIPS INSIDE DROPDOWN ===== */
.rz-chip {
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 0px 8px !important;
    cursor: pointer !important;
}

.rz-chip-remove {
    cursor: pointer !important;
    font-size: 10px !important;
}

/* ===== DROPDOWN PANEL ===== */
.rz-dropdown-panel {
    border-radius: 8px !important;
    border: 1px solid #d0d0d0 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

/* ===== DROPDOWN ITEMS ===== */
.rz-dropdown-item {
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

    .rz-dropdown-item:hover {
        background-color: #f5f5f5 !important;
    }
.rz-dropdown-chips .rz-chip .rz-button {
    margin: 0;
    padding: 0 !important;
    background-color: transparent !important;
    border: none !important;
    color: #242424 !important;
    min-width: unset !important;
    min-height: unset !important;
    height: auto !important;
    line-height: normal !important;
}
    .rz-dropdown-chips .rz-chip .rz-button .rzi {
        display: inline !important;
        font-size: 10px !important;
        color: #242424 !important;
    }

    .rz-dropdown-chips .rz-chip .rz-button:hover .rzi {
        color: #000000 !important;
    }
/* ===== PLACEHOLDER STYLE (MATCH ITEM STYLE) ===== */
.rz-dropdown .rz-dropdown-label,
.rz-dropdown .rz-placeholder,
.rz-multiselect .rz-multiselect-label,
.rz-multiselect .rz-placeholder,
.rz-dropdown-label.rz-inputtext {
    color: #656565 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    opacity: 1 !important;
    text-align: left !important;
    width: 100% !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: normal !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
li.rz-multiselect-item.rz-state-highlight {
    background: #eef4ff !important;
    color: #242424 !important;
    font-weight:500;
    font-size:13px;
}
.rz-multiselect-item-content {
    color: #242424 !important;
    font-weight: 500;
    font-size: 13px;
}
.rz-multiselect-panel .rz-multiselect-item:hover {
    background: #eef4ff !important;
    color: #242424 !important;
    font-weight: 500;
}
.notranslate.rz-chkbox-box.rz-state-active {
    background-color: #9ca3af !important;
    border-color: #9ca3af !important;
}
/* when nothing selected (Radzen adds empty class) */
.rz-dropdown.rz-state-empty .rz-dropdown-label,
.rz-multiselect.rz-state-empty .rz-multiselect-label {
    color: #656565 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

/* wrapper */
.multi-select-wrapper {
    position: relative;
}

    /* hide default radzen icon */
    .multi-select-wrapper .rzi {
        display: none !important;
    }

    /* remove any existing ::after on trigger */
    .multi-select-wrapper .rz-multiselect-trigger::after,
    .multi-select-wrapper .rz-dropdown-trigger::after {
        display: none !important;
    }

    /* put arrow on the OUTER wrapper instead */
    .multi-select-wrapper::after {
        content: "";
        position: absolute;
        right: 11px;
        /*        top: 50%;*/
        top: 10px !important;
        /*        transform: translateY(-50%);*/
        transform: none !important;
        width: 16px;
        height: 16px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-size: contain;
        pointer-events: none;
        z-index: 10;
    }
/* fix placeholder alignment */
.rz-dropdown.rz-state-empty .rz-dropdown-label,
.rz-dropdown.rz-state-empty .rz-placeholder,
.rz-dropdown-label.rz-inputtext {
    text-align: left !important;
    width: 100% !important;
    display: block !important;
    padding: 0px !important;
    color: #656565 !important;
    font-size: 12px !important;
    line-height: 34px !important;
}
.multi-select-wrapper .rz-multiselect-trigger,
.multi-select-wrapper .rz-dropdown-trigger {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    min-height: unset !important;
    padding: 0 !important;
    width: auto !important;
    justify-content: flex-start !important;
}

    .multi-select-wrapper .rz-multiselect-trigger::after,
    .multi-select-wrapper .rz-dropdown-trigger::after {
        content: "";
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 7px solid #6b7280;
        position: absolute;
        right: 9px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .multi-select-wrapper .rz-multiselect-trigger .rzi,
    .multi-select-wrapper .rz-dropdown-trigger .rzi {
        display: none !important;
    }
    /* hide the default radzen arrow icon inside trigger */
    .rz-multiselect-trigger .rzi,
    .rz-dropdown-trigger .rzi {
        display: none !important;
    }

/* Multiselect - placeholder (nothing selected) → gray */
.rz-dropdown.rz-state-empty .rz-dropdown-label,
.rz-dropdown.rz-state-empty .rz-placeholder,
.rz-multiselect.rz-state-empty .rz-multiselect-label,
.rz-multiselect.rz-state-empty .rz-placeholder {
    color: #656565 !important;
}

/* Multiselect - after selection (chips present) → dark */
.rz-dropdown:not(.rz-state-empty) .rz-dropdown-label,
.rz-multiselect:not(.rz-state-empty) .rz-multiselect-label {
    color: #242424 !important;
}

/* Chip text color after selection */
.rz-dropdown-chips .rz-chip .rz-chip-text,
.rz-multiselect .rz-chip .rz-chip-text {
    color: #242424 !important;
}
/* Allow multiselect to expand with chips */
/* ===== MULTI SELECT EXPAND WITH CHIPS ===== */
.multi-select-wrapper .rz-dropdown,
.multi-select-wrapper .rz-dropdown.rz-dropdown-chips:not(.rz-state-empty) {
    height: auto !important;
    min-height: 36px !important;
    max-height: none !important;
/*    padding: 6px 36px 6px 8px !important;*/
    flex-wrap: wrap !important;
    overflow: visible !important;
    align-items: flex-start !important;
}

.multi-select-wrapper .rz-dropdown-chips-wrapper {
    flex-wrap: wrap !important;
    overflow: visible !important;
    white-space: normal !important;
    width: 100% !important;
    gap: 4px !important;
    padding: 2px 0 !important;
}

/* Keep empty state fixed height */
.multi-select-wrapper .rz-dropdown.rz-state-empty {
    height: 36px !important;
    align-items: center !important;
    padding: 0 36px 0 8px !important;
}

textarea {
    resize: none;
    background-color: #EFEFEF;
    border: 1px solid #EFEFEF;
    font-size: 12px;
    border-radius: 8px;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    color: #242424;
}
label {
    font-weight: 500;
    font-size: 13px;
    color: #242424;
    margin-bottom: 4px;
}
.custom-input {
    background-color: #EFEFEF;
    border: 1px solid #EFEFEF;
    font-size: 13px;
    border-radius: 8px;
    padding: 8px 10px;
    font-weight: 500;
    cursor: pointer;
    color: #656565;
}
/* After user types a value */
input:not(:placeholder-shown),
textarea:not(:placeholder-shown) {
    color: #242424;
}
/* INPUT + TEXTAREA PLACEHOLDER SAME STYLE */
.custom-input::placeholder,
textarea::placeholder {
    color: #656565 !important;
    font-weight: 500;
    font-size: 13px;
}
    .custom-input:focus,
    textarea:focus {
        background-color: #EFEFEF !important;
        border: 1px solid #EFEFEF !important;
        outline: none !important;
        box-shadow: none !important;
    }
.custom-input.bg-white {
    background-color: #ffffff !important;
    border:none !important;
}
/*for sub contractor an dgeneral contractor remove input border bg color*/
.custom-input.bg-white {
    background-color: #ffffff !important;
    border: none !important;
}
    .custom-input.bg-white:focus {
        background-color: #ffffff !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }


/* ═══════════════════════════════════════════════════════════
   PTO EVENT STYLES — Month / Week / Day views
   Add these to your calendar.css / site.css
   ═══════════════════════════════════════════════════════════ */

/* ── Remove FC default chrome from PTO events ── */
.pto-calendar-event {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

    .pto-calendar-event .fc-event-main {
        padding: 0 !important;
        overflow: hidden;
    }
    /* Hide the FC-generated time that appears before custom html */
    .pto-calendar-event .fc-event-time {
        display: none !important;
    }

/* ═══════════════════════════════════════════════
   PILL — month view + all-day row in week/day
   Shows: ✕  7:00 AM - 2:00 PM • Anthony Walk
   ═══════════════════════════════════════════════ */
.fc-pto-pill {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    height: 22px;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.fc-pto-x {
    font-size: 10px;
    flex-shrink: 0;
    opacity: 0.75;
    font-weight: 700;
}

/* Time label in pill (bold) */
.fc-pto-time-label {
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Bullet separator */
.fc-pto-sep {
    opacity: 0.5;
    flex-shrink: 0;
    font-size: 10px;
}

/* Name in pill */
.fc-pto-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   PTO EVENT STYLES
   ═══════════════════════════════════════════════════════════ */

/* ── Strip FC default chrome from ALL events ── */
.pto-calendar-event,
.custom-calendar-event {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    /* CRITICAL: margin-bottom ensures cards don't overlap when stacked */
    margin-bottom: 2px !important;
}
.pto-calendar-event .fc-event-main,
.custom-calendar-event .fc-event-main {
    padding: 0 !important;
    overflow: visible !important;
}
/* Hide FC auto-generated time prefix */
.pto-calendar-event .fc-event-time {
    display: none !important;
}

/* ── Force FC event rows to not overlap ── */
.fc-daygrid-event-harness {
    position: relative !important;
    margin-bottom: 2px !important;
}
/* Remove FC's default overlap stacking in month view */
.fc-daygrid-event-harness-abs {
    position: relative !important;
    top: auto !important;
}

/* ═══════════════════════════════════════════════
   PTO CARD — solid background, 2-line block
   Line 1: ✕  Full Day / 7:00 AM - 2:00 PM
   Line 2:    Anthony Walk
   ═══════════════════════════════════════════════ */
.fc-pto-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 6px;
    /* height auto so it wraps content, no fixed height that causes overlap */
    min-height: 38px;
    overflow: hidden;
    cursor: pointer;
    box-sizing: border-box;
    width: 100%;
    /* Solid background set via inline style — this ensures full opacity */
}
/*added css for reason*/
.fc-pto-card-reason {
    font-size: 11px;
    color: #555;
    margin-top: 2px;
    font-weight:bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Line 1: ✕  7:00 AM - 2:00 PM  (colored) */
.fc-pto-card-time {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
    line-height: 1.4;
}

.fc-pto-x {
    font-size: 10px;
    flex-shrink: 0;
    font-style: normal;
    font-weight: 900;
}

/* Line 2: name */
.fc-pto-card-name {
    font-size: 12px;
    font-weight: 500;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    padding-left: 13px;
}

/* ═══════════════════════════════════════════════
   REGULAR (non-PTO) EVENTS
   ═══════════════════════════════════════════════ */
.fc-custom-event {
    background: #fff;
    border-radius: 4px;
    padding: 2px 6px;
    border-left: 3px solid currentColor;
    overflow: hidden;
    height:auto;
    min-height: 34px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.fc-event-time {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.fc-event-title {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}
.calendar-card .unified-calendar-header {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

/* ── Tooltip ── */
.fc-tt-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    color: #111;
}
.fc-tt-row {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: #333;
    margin-bottom: 2px;
}
.fc-tt-label {
    font-weight: 600;
    color: #888;
    min-width: 65px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.4px;
}

/* =========================================
   FULLCALENDAR HARD FIX (DO NOT REMOVE)
   ========================================= */

/* Reset forced width */
/*.fc-timegrid-event {
    width: auto !important;
}*/

/* Reset harness positioning */
/*.fc-timegrid-event-harness {
    left: auto !important;
    right: auto !important;
}*/

/* Reset height override */
/*.fc-timegrid-event,
.fc-timegrid-event-harness {
    height: auto !important;
}*/

/* Reset custom event width */
/*.fc-event.custom-calendar-event {
    width: auto !important;
}*/

/* Let FullCalendar control layout */
.fc-timegrid-event .fc-event-main {
    height: 100% !important;
    padding: 0 !important;
}

/* Your UI stays intact */
.fc-pto-card,
.fc-custom-event {
    height: auto;
/*    width:auto;*/
    display: flex;
    flex-direction: column;
}
/* FIX WIDTH COLLAPSE */
/*.fc-timegrid-event-harness {
    left: 0 !important;
    right: 0 !important;
}*/
/* Ensure timeGrid (day/week) events show full blocks (not thin lines) */
.fc-timegrid .fc-event.custom-calendar-event {
    background-color: transparent !important;
    color: inherit !important;
    padding: 4px 8px !important;
    opacity: 1 !important;
    border: none !important;
}