/* ============================================================
   RSD Payroll System — site.css
   Color palette:
     Main background  : #163F8B
     Sidebar active   : #266DF1 @ 60%
     Button light     : #C9DAFF
     Button primary   : #266DF1
     White            : #FFFFFF
     Black            : #000000
   ============================================================ */

/* ── Base ───────────────────────────────────────────────── */
body {
    margin: 0;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    color: #000;
}

/* ── App shell ──────────────────────────────────────────── */
.app-layout {
    display: flex;
    height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar {
    width: 230px;
    min-width: 230px;
    background: #ffffff;
    border-right: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
}

.logo-container {
    height: 120px;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid #266DF1;
}

    .logo-container img {
        width: 180px;
    }

/* Nav menu */
.menu {
    list-style: none;
    padding: 10px;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

    .menu li {
        margin-bottom: 6px;
    }

        .menu li a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 11px 12px;
            border-radius: 8px;
            text-decoration: none;
            color: #333;
            font-size: 14px;
            transition: background .15s;
        }

        .menu > li.active > a {
            background: #C9DAFF;
            color: #163F8B;
            font-weight: 600;
            box-shadow: 0 2px 10px rgba(38, 109, 241, .2);
        }

        .menu li a:hover {
            background: #f5f8ff;
            color: #163F8B;
        }

/* Sidebar profile card */
.profile-wrap {
    position: relative;
    margin-top: auto;
}

.profile-card {
    width: 100%;
    border: none;
    border-top: 1px solid #eee;
    background: #fff;
    padding: 14px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.profile-card:focus-visible {
    outline: 2px solid #266DF1;
    outline-offset: -2px;
}

.profile-card:hover,
.profile-card.active {
    background: #f5f8ff;
    color: inherit;
}

.profile-card-text {
    min-width: 0;
    flex: 1;
}

.profile-card-text .user-name,
.profile-card-text .user-role {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-card-chevron {
    color: #888;
    font-size: 12px;
    flex-shrink: 0;
}

a.profile-card {
    text-decoration: none;
}

.profile-card img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #266DF1;
    flex-shrink: 0;
}

.profile-avatar-initials {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #C9DAFF;
    color: #163F8B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid #266DF1;
    flex-shrink: 0;
}

.user-name {
    font-weight: 600;
    font-size: 13px;
    color: #000;
}

.user-role {
    font-size: 12px;
    color: #888;
}

.profile-view-card {
    max-width: 760px;
}

.profile-view-head {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-view-name {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #163F8B;
}

.profile-view-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.profile-view-dot {
    margin: 0 6px;
    color: #b0b8c8;
}

.profile-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 28px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eef1f6;
}

.profile-view-wide {
    grid-column: 1 / -1;
}

.profile-view-label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 4px;
    display: block;
}

.profile-view-grid .form-ctrl {
    width: 100%;
}

.profile-view-value {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    word-break: break-word;
}

.profile-view-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eef1f6;
}

.profile-cancel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 18px;
    border-radius: 6px;
    border: 1.5px solid #d5dbe6;
    background: #fff;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

    .profile-cancel-btn:hover {
        background: #f4f6fa;
        color: #1a202c;
    }

.btn-signout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 18px;
    border-radius: 6px;
    border: 1.5px solid #f1b3b3;
    background: #fff;
    color: #b42318;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.btn-signout:hover {
    background: #fde8e8;
    color: #b42318;
}

/* ── Dashboard ────────────────────────────────────────── */
.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-welcome {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.dash-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.dash-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

.dash-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #EEF3FF;
    color: #266DF1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.dash-stat-number {
    font-size: 20px;
    font-weight: 700;
    color: #163F8B;
    line-height: 1.2;
}

.dash-stat-label {
    font-size: 12.5px;
    color: #555;
}

.dash-panels-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dash-panel {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

.dash-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.dash-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: #163F8B;
}

.dash-add-schedule-btn {
    padding: 6px 16px;
    font-size: 12.5px;
}

.dash-schedule-modal {
    width: 520px;
    text-align: left;
}

/* ── Main content area ──────────────────────────────────── */
.content-area {
    flex: 1;
    background: #163F8B;
    overflow-y: auto;
    padding: 0 28px 28px;
}

/* ── Page label (small caps above card) ─────────────────── */
.page-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #aabde0;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* ── Topbar (bell / back row) ─────────────────────────────
   Logo block is 10px + 120px + 2px border = 132px.
   Index cards start on that border line (same as Back).
   The bell is pinned to the top-right of the content area. */
.content-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.content-topbar .bell-btn {
    margin-left: auto;
}

.bell-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    color: #266DF1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

    .bell-btn:hover {
        background: #e5e5e5;
    }

/* ── White card (used in all pages) ─────────────────────── */
.page-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
}

/* ── Back button ─────────────────────────────────────────── */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1.5px solid #C9DAFF;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #163F8B;
    text-decoration: none;
    margin-bottom: 0;
    position: static;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(38, 109, 241, .15);
}

    .btn-back:hover {
        background: #f0f5ff;
        color: #163F8B;
    }

/* ── Primary blue button ─────────────────────────────────── */
.btn-primary-blue {
    background: #2654F2;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    height: 38px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background .15s;
}

    .btn-primary-blue:hover {
        background: #1B3FBF;
        color: #ffffff;
    }

.btn-primary-blue-block {
    background: #2654F2;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 28px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 18px;
    display: block;
    width: 100%;
    transition: background .15s;
}

    .btn-primary-blue-block:hover {
        background: #1B3FBF;
        color: #ffffff;
    }

/* ── Outline / filter button ─────────────────────────────── */
.btn-outline-blue {
    border: none;
    background: #2654F2;
    color: #ffffff;
    border-radius: 6px;
    height: 38px;
    min-width: 160px;
    width: auto;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s;
}

    .btn-outline-blue:hover {
        background: #1B3FBF;
        color: #ffffff;
    }

/* ── Employee list card head ─────────────────────────────── */
.emp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.emp-title {
    font-size: 20px;
    font-weight: 700;
    color: #2654F2;
}

.emp-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}


/* ── Search box ──────────────────────────────────────────── */
.list-controls-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.list-controls-left {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
<<<<<<< HEAD
    gap: 1px;
=======
    gap: 0;
>>>>>>> 7c31a7093576d7bb694d2147b89f49740a3493e1
    flex: 0 1 auto;
    min-width: 0;
}

.list-controls-left > .dropdown {
    flex-shrink: 0;
    margin-left: 6px;
}

.list-controls-left .search-wrap,
.list-controls-left .search-wrap-wide {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    margin: 0;
}

.list-controls-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    margin-left: auto;
    gap: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

    .list-controls-actions .dropdown,
    .list-controls-actions .btn-primary-blue {
        flex-shrink: 0;
    }

.search-wrap-wide {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

    .search-wrap-wide input {
        width: 520px;
        height: 38px;
        box-sizing: border-box;
    }

/* Users/Employees search ends between the name column and the next column
   (User/Role, Employee/Job). */
.user-index-card,
.emp-index-card {
    container-type: inline-size;
}

.user-index-card .emp-table,
.emp-index-card .emp-table {
    table-layout: fixed;
}

.user-index-card .emp-table th:nth-child(1),
.emp-index-card .emp-table th:nth-child(1) { width: 13%; } /* ID */
.user-index-card .emp-table th:nth-child(2),
.emp-index-card .emp-table th:nth-child(2) { width: 22%; } /* User / Employee */
.user-index-card .emp-table th:nth-child(3),
.emp-index-card .emp-table th:nth-child(3) { width: 14%; } /* Role / Job */
.user-index-card .emp-table th:nth-child(4),
.emp-index-card .emp-table th:nth-child(4) { width: 20%; } /* Email / Assigned */
.user-index-card .emp-table th:nth-child(5),
.emp-index-card .emp-table th:nth-child(5) { width: 12%; } /* Date Added */
.user-index-card .emp-table th:nth-child(6),
.emp-index-card .emp-table th:nth-child(6) { width: 10%; } /* Status */
.user-index-card .emp-table th:nth-child(7),
.emp-index-card .emp-table th:nth-child(7) { width: 9%; }  /* Action */

.user-index-card .search-wrap-wide input,
.emp-index-card .search-wrap-wide input,
.search-stretch-card .search-wrap-wide input {
    width: 42cqw;
}

.search-stretch-card {
    container-type: inline-size;
}

.search-stretch-card .genpay-select-wrap {
    max-width: none;
    width: 42cqw;
}

.search-stretch-card .genpay-autocomplete,
.search-stretch-card .genpay-autocomplete .form-ctrl {
    width: 100%;
}

.mb-3 {
    margin-bottom: 18px;
}

/* ── Search box (base) ───────────────────────────────────── */
.search-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

    .search-wrap input {
        border: 1px solid #c5c9d1;
        border-radius: 6px;
        padding: 8px 38px 8px 14px;
        font-size: 13px;
        width: 200px;
        height: 38px;
        outline: none;
        color: #000;
        background: #fff;
        transition: border-color .15s;
    }

        .search-wrap input:focus {
            border-color: #266DF1;
        }

    .search-wrap i {
        position: absolute;
        right: 12px;
        left: auto;
        top: 50%;
        transform: translateY(-50%);
        color: #9aa3b5;
        font-size: 14px;
        pointer-events: none;
    }

/* ── Filter dropdown menu ────────────────────────────────── */
.filter-menu {
    min-width: 160px;
    border: 1px solid #dce8ff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(38, 109, 241, .12);
    padding: 6px 0;
}

    .filter-menu .dropdown-item {
        font-size: 14px;
        min-height: 38px;
        padding: 0 18px;
        display: flex;
        align-items: center;
        color: #163F8B;
    }

    .filter-menu .dropdown-item:hover,
    .filter-menu .dropdown-item.active {
       background: #C9DAFF;
       color: #163F8B;
    }

/* ── Status toggle button (Edit pages) ───────────────────── */
.status-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
    margin-top: 8px;
}

/* Currently Active → clicking sets to Inactive */
.status-toggle-inactive {
    background: #d4f7e0;
    color: #0d7a3e;
    border: 1.5px solid #a3e9c0;
}

.status-toggle-inactive:hover {
    background: #0d7a3e;
    color: #fff;
}

.status-toggle-inactive i {
    font-size: 16px;
}

/* Currently Inactive → clicking sets to Active */
.status-toggle-active {
    background: #fde8e8;
    color: #c0392b;
    border: 1.5px solid #fecaca;
}

.status-toggle-active:hover {
    background: #c0392b;
    color: #fff;
}

.status-toggle-active i {
    font-size: 16px;
}

/* ── Employee table ──────────────────────────────────────── */
.emp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .emp-table thead tr {
        background: #EEF3FF;
    }

    .emp-table th {
        padding: 12px 14px;
        font-size: 12px;
        font-weight: 600;
        color: #6b87c0;
        text-align: left;
        border-bottom: 1.5px solid #dce8ff;
        white-space: nowrap;
    }

    .emp-table td {
        padding: 12px 14px;
        border-bottom: 1px solid #f0f4ff;
        color: #000;
        vertical-align: middle;
    }

    .emp-table tr:last-child td {
        border-bottom: none;
    }

    .emp-table tbody tr:hover td {
        background: #f8fbff;
    }

/* ── Table checkbox ──────────────────────────────────────── */
.tbl-check {
    width: 16px;
    height: 16px;
    accent-color: #266DF1;
    cursor: pointer;
    vertical-align: middle;
}

/* ── Employee avatar in table ────────────────────────────── */
.emp-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #C9DAFF;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

.emp-avatar-initials {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #C9DAFF;
    color: #163F8B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

.emp-name-cell {
    display: flex;
    align-items: center;
}

/* ── Status pills ────────────────────────────────────────── */
.badge-active {
    background: #d4f7e0;
    color: #0d7a3e;
    border-radius: 20px;
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-inactive {
    background: #fde8e8;
    color: #c0392b;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-ongoing {
    background: #22c55e;
    color: #ffffff;
    border-radius: 20px;
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-finished {
    background: #2654F2;
    color: #ffffff;
    border-radius: 20px;
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-hold {
    background: #f59e0b;
    color: #ffffff;
    border-radius: 20px;
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ── Toast notifications ─────────────────────────────────── */
.rsd-toast {
    color: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    min-width: 300px;
    font-size: 13.5px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 5s ease, transform 0.3s ease;
}

.rsd-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.rsd-toast-success {
    background: #0d7a3e;
}

.rsd-toast-error {
    background: #c0392b;
}

.rsd-toast .toast-body {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
}

.rsd-toast-copy {
    flex: 1 1 160px;
}

.rsd-toast-action {
    margin-left: auto;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.rsd-toast-action:hover {
    color: #fff;
    background: rgba(255, 255, 255, .28);
}

/* ── Action icon buttons ─────────────────────────────────── */
.action-btn {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s, color .15s;
}

/* ── Action column alignment ─────────────────────────────── */
.emp-table th:last-child,
.emp-table td:last-child {
    text-align: center;
}

.emp-table td:last-child {
    display: table-cell;
    vertical-align: middle;
}

.action-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.action-edit {
    background: #EEF3FF;
    color: #266DF1;
}

.action-edit:hover {
    background: #266DF1;
    color: #fff;
}

.action-delete {
    background: #fde8e8;
    color: #e53935;
    margin-left: 4px;
}

.action-delete:hover {
    background: #e53935;
    color: #fff;
}

/* ── Form layout (Create / Edit pages) ──────────────────── */
.form-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 32px;
    max-width: 880px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

.form-row-3 {
    grid-template-columns: 5fr 5fr 2fr;
}

.form-row-3b {
    grid-template-columns: 5fr 3fr 4fr;
}

.form-row-eq3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-row-2 {
    grid-template-columns: 1fr 1fr;
}

.form-row-1 {
    grid-template-columns: 1fr;
}

/* Form label */
.form-lbl {
    font-size: 12px;
    font-weight: 600;
    color: #000;
    margin-bottom: 5px;
    display: block;
}

/* Form input / select */
.form-ctrl {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #C9DAFF;
    border-radius: 8px;
    font-size: 13px;
    color: #000;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}

    .form-ctrl::placeholder {
        color: #9aa8c3;
    }

    .form-ctrl:focus {
        border-color: #266DF1;
        box-shadow: 0 0 0 3px rgba(38, 109, 241, .1);
    }

    .form-ctrl.is-invalid {
        border-color: #e53935;
        box-shadow: 0 0 0 3px rgba(229, 57, 53, .12);
    }

    .form-ctrl.is-invalid:focus {
        border-color: #e53935;
        box-shadow: 0 0 0 3px rgba(229, 57, 53, .18);
    }

    .form-ctrl:disabled,
    .form-ctrl.is-disabled,
    input.form-ctrl:read-only {
        background: #e9edf3;
        color: #8b93a7;
        border-color: #d5dbe6;
        cursor: not-allowed;
        box-shadow: none;
    }

.form-lbl.is-disabled {
    color: #8b93a7;
}

.field-error {
    display: block;
    min-height: 0;
    margin-top: 4px;
    font-size: 11.5px;
    font-weight: 500;
    color: #c0392b;
    line-height: 1.3;
}

.req-star {
    color: #e53935;
    font-weight: 700;
}

select.form-ctrl {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23266DF1' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* File picker row */
.file-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-choose-btn {
    background: #2654F2;
    border: none;
    border-radius: 7px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}

    .file-choose-btn:hover {
        background: #1B3FBF;
        color: #ffffff;
    }

.file-name-lbl {
    font-size: 12px;
    color: #9ab0d8;
}

.form-hint-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #EEF3FF;
    border: 1px solid #C9DAFF;
    color: #163F8B;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 14px;
}

.form-hint-box i {
    margin-top: 2px;
    color: #266DF1;
}

.invite-link-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #EEF3FF;
    border: 1px solid #C9DAFF;
    color: #163F8B;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 16px;
}

.invite-link-box i {
    margin-top: 2px;
    color: #266DF1;
    font-size: 18px;
}

.invite-link-copy {
    flex: 1;
    min-width: 0;
}

.invite-link-copy input {
    width: 100%;
    margin: 8px 0;
    border: 1px solid #C9DAFF;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
    color: #163F8B;
    background: #fff;
}

.invite-resend-form {
    margin-top: 12px;
}

/* ── Edit page — photo circle preview ───────────────────── */
/* ── Edit Employee layout (photo left + fields right) ────── */
.edit-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.edit-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    width: 110px;
}

.edit-photo-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #266DF1;
}

.edit-photo-initials {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #C9DAFF;
    border: 3px solid #266DF1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #163F8B;
    font-weight: 700;
}

.edit-photo-change-btn {
    font-size: 11px;
    color: #266DF1;
    cursor: pointer;
    text-decoration: underline;
    text-align: center;
}

    .edit-photo-change-btn:hover {
        color: #1B52BD;
    }

.edit-fields-col {
    flex: 1;
    min-width: 0;
}

/*Pagination*/
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.page-link {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px;
    color: #163F8B;
    text-decoration: none;
    padding: 0 6px;
    transition: background .15s;
}

    .page-link:hover {
        background: #EEF3FF;
    }

    .page-link.active {
        background: #266DF1;
        color: #fff;
        font-weight: 600;
    }

    .page-link.disabled {
        pointer-events: none;
        color: #c9d6ee;
    }

.page-ellipsis {
    color: #9ab0d8;
    font-size: 13px;
    padding: 0 2px;
}

/* ── Delete confirmation overlay ─────────────────────────── */
.del-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(22, 63, 139, 0.55);
    backdrop-filter: blur(2px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

    .del-overlay.open {
        display: flex;
    }

.del-modal {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    width: 380px;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    animation: modalPop .2s ease;
}

@keyframes modalPop {
    from {
        transform: scale(.92);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.del-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fde8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.del-icon {
    font-size: 28px;
    color: #e53935;
}

.del-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.del-msg {
    font-size: 13.5px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
}

    .del-msg strong {
        color: #163F8B;
    }

.del-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.del-btn-cancel {
    padding: 10px 28px;
    border-radius: 8px;
    border: 1.5px solid #C9DAFF;
    background: #fff;
    color: #163F8B;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

    .del-btn-cancel:hover {
        background: #f0f5ff;
    }

.del-btn-delete {
    padding: 10px 28px;
    border-radius: 8px;
    border: none;
    background: #e53935;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

    .del-btn-delete:hover {
        background: #c0392b;
    }



/* ── Form-level error banner ─────────────────────────────── */
.form-error-box {
    background: #fde8e8;
    border: 1.5px solid #f5b5b5;
    color: #c0392b;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}


/* ── Password input with eye toggle ─────────────────────── */
.pwd-wrap {
    position: relative;
}

    .pwd-wrap .form-ctrl {
        padding-right: 38px;
    }

.pwd-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ab0d8;
    font-size: 15px;
    user-select: none;
}

    .pwd-eye:hover {
        color: #266DF1;
    }

/* ── Edit layout (photo left + fields right) ─────────────── */
.edit-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.edit-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    width: 110px;
}

.edit-photo-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #266DF1;
}

.edit-photo-initials {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #C9DAFF;
    border: 3px solid #266DF1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #163F8B;
    font-weight: 700;
}

.edit-photo-change-lbl {
    font-size: 11px;
    color: #266DF1;
    cursor: pointer;
    text-decoration: underline;
    text-align: center;
}

    .edit-photo-change-lbl:hover {
        color: #1B52BD;
    }

.edit-fields-col {
    flex: 1;
    min-width: 0;
}


/* ── Edit Employee layout (photo left + fields right) ────── */
.edit-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.edit-photo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    width: 110px;
}

.edit-photo-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #266DF1;
}

.edit-photo-initials {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #C9DAFF;
    border: 3px solid #266DF1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #163F8B;
    font-weight: 700;
}

.edit-photo-change-btn {
    font-size: 11px;
    color: #266DF1;
    cursor: pointer;
    text-decoration: underline;
    text-align: center;
}

.edit-photo-change-btn:hover {
    color: #1B52BD;
}

.edit-fields-col {
    flex: 1;
    min-width: 0;
}


.proj-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 20px 16px;
    padding: 8px 0;
}

.proj-folder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 6px;
    border-radius: 10px;
    transition: background .15s;
    position: relative;
}

.proj-folder-card:hover {
    background: #EEF3FF;
}

.proj-folder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.proj-folder-name {
    font-size: 12px;
    font-weight: 500;
    color: #163F8B;
    text-align: center;
    word-break: break-word;
    line-height: 1.4;
    max-width: 100px;
}

.proj-folder-name a {
    color: inherit;
    text-decoration: none;
}

.proj-folder-name a:hover {
    text-decoration: underline;
    color: #266DF1;
}

.proj-folder-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity .15s;
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
}

.proj-folder-card:hover .proj-folder-actions {
    opacity: 1;
}

/* ── Projects page ───────────────────────────────────────── */
.proj-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.proj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 24px 16px;
    padding: 8px 0;
}

.proj-folder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px 12px;
    border-radius: 10px;
    position: relative;
    transition: background .15s;
}

.proj-folder-card:hover {
    background: #EEF3FF;
}

.proj-folder-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    width: 100%;
}

.proj-folder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s;
}

.proj-folder-card:hover .proj-folder-icon {
    transform: scale(1.05);
}

.proj-folder-name {
    font-size: 12px;
    font-weight: 600;
    color: #163F8B;
    text-align: center;
    word-break: break-word;
    line-height: 1.4;
    max-width: 100px;
}

.proj-folder-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity .15s;
}

.proj-folder-card:hover .proj-folder-actions {
    opacity: 1;
}

/* ── Project form styles ─────────────────────────────────── */
.proj-budget-input {
    position: relative;
    display: flex;
    align-items: center;
}

.proj-peso {
    position: absolute;
    left: 12px;
    color: #163F8B;
    font-weight: 600;
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}

.proj-budget-field {
    padding-left: 26px !important;
}

.proj-monthly-table {
    border: 1.5px solid #C9DAFF;
    border-radius: 8px;
    overflow: hidden;
}

.proj-month-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #EEF3FF;
}

    .proj-month-row:last-of-type {
        border-bottom: none;
    }

.proj-month-label {
    font-size: 13px;
    color: #163F8B;
    font-weight: 500;
    min-width: 140px;
}

.proj-month-input {
    width: 200px;
}

.proj-month-amount {
    font-size: 13px;
    color: #000;
    font-weight: 500;
}

.btn-save-budget {
    background: #2654F2;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    padding: 6px 18px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    margin: 8px 14px 10px;
    display: inline-block;
    transition: background .15s;
}

    .btn-save-budget:hover {
        background: #1B3FBF;
        color: #ffffff;
    }

/* ── Project view page ───────────────────────────────────── */
.proj-view-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 14px;
}

.proj-view-group {
    margin-bottom: 14px;
}

.proj-view-field {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #C9DAFF;
    border-radius: 8px;
    font-size: 13px;
    color: #000;
    background: #FAFCFF;
    min-height: 38px;
}

.proj-view-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.proj-view-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.proj-view-toolbar .proj-view-actions {
    margin-bottom: 0;
}

.proj-status-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.proj-status-line .form-lbl {
    display: inline;
    margin-bottom: 0;
}

.proj-status-line .badge-ongoing {
    background: #22c55e;
    color: #ffffff;
    padding: 6px 18px;
    font-size: 12.5px;
}

.proj-status-line .badge-hold {
    background: #f59e0b;
    color: #ffffff;
    padding: 6px 18px;
    font-size: 12.5px;
}

.proj-status-line .badge-finished {
    background: #2654F2;
    color: #ffffff;
    padding: 6px 18px;
    font-size: 12.5px;
}

.proj-view-field-muted {
    color: #9ab0d8;
    font-size: 12.5px;
}

.proj-emp-count {
    font-size: 12px;
    color: #6b87c0;
}

/* ── Assigned Employees action buttons ─────────────────── */
.emp-action-btns {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.emp-action-btns .btn-outline-blue,
.emp-action-btns .btn-primary-blue {
    background: #2654F2;
    color: #ffffff;
    border: none;
}

/* ── Wide overlay modal (employee lists) ─────────────────── */
.emp-modal {
    width: 640px;
    max-width: 94vw;
    max-height: 82vh;
    overflow-y: auto;
    text-align: left;
    padding: 28px 30px 30px;
}

.emp-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.emp-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #000;
}

/* Close button — circular, top-right of header row */
.emp-modal-close {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: #EEF3FF;
    color: #266DF1;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}

    .emp-modal-close:hover {
        background: #e53935;
        color: #fff;
    }

.emp-search {
    width: 100%;
    margin-bottom: 16px;
}

    .emp-search input {
        width: 100%;
        box-sizing: border-box;
    }

/* ── Employee tables inside modal — fixed layout so columns fit ── */
.emp-table-view,
.emp-table-add {
    table-layout: fixed;
    width: 100%;
}

    .emp-table-view td,
    .emp-table-view th,
    .emp-table-add td,
    .emp-table-add th {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .emp-table-view th:nth-child(1),
        .emp-table-view td:nth-child(1) {
            width: 34%;
        }

        .emp-table-view th:nth-child(2),
        .emp-table-view td:nth-child(2) {
            width: 24%;
        }

        .emp-table-view th:nth-child(3),
        .emp-table-view td:nth-child(3) {
            width: 16%;
        }

        .emp-table-view th:nth-child(4),
        .emp-table-view td:nth-child(4) {
            width: 15%;
        }

        .emp-table-view th:nth-child(5),
        .emp-table-view td:nth-child(5) {
            width: 11%;
        }

        .emp-table-add th:nth-child(1),
        .emp-table-add td:nth-child(1) {
            width: 50%;
        }

        .emp-table-add th:nth-child(2),
        .emp-table-add td:nth-child(2) {
            width: 30%;
        }

        .emp-table-add th:nth-child(3),
        .emp-table-add td:nth-child(3) {
            width: 20%;
        }

/* ── Add button ───────────────────────────────────────────── */
button.add-emp-btn {
    background: #2654F2;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
}

    button.add-emp-btn:hover {
        background: #1B3FBF;
        color: #ffffff;
    }

    button.add-emp-btn:disabled {
        opacity: .6;
        cursor: default;
    }

/* ── Remove button ────────────────────────────────────────── */
button.remove-emp-btn {
    background: #fde8e8;
    color: #e53935;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

    button.remove-emp-btn:hover {
        background: #e53935;
        color: #fff;
    }

    button.remove-emp-btn:disabled {
        opacity: .6;
        cursor: default;
    }

/* ── Clickable status badge (toggle Active/Inactive) ─────── */
button.badge-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-block;
}

    button.badge-btn:hover {
        opacity: .8;
    }

    button.badge-btn:disabled {
        opacity: .5;
        cursor: default;
    }

/* ── Sidebar submenu (Payroll Staff) ─────────────────────── */
.menu-dropdown-toggle {
    position: relative;
    cursor: pointer;
}

.menu-chevron {
    margin-left: auto;
    font-size: 11px;
    transition: transform .15s;
}

.menu-dropdown-toggle[aria-expanded="true"] .menu-chevron {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    padding-left: 34px;
    margin: 2px 0 6px;
}

    .submenu li a {
        display: block;
        padding: 8px 10px;
        font-size: 13px;
        color: #6b87c0;
        text-decoration: none;
        border-radius: 6px;
    }

        .submenu li a:hover {
            background: none;
            color: #266DF1;
        }

    .submenu li.active a {
        background: none;
        box-shadow: none;
        color: #266DF1;
        font-weight: 600;
    }

    .menu li a.menu-dropdown-toggle.active {
        background: #C9DAFF;
        color: #163F8B;
        font-weight: 600;
    }

.menu-logout {
    padding: 0 10px 10px;
}

    .menu-logout a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 12px;
        border-radius: 8px;
        text-decoration: none;
        color: #333;
        font-size: 14px;
    }

        .menu-logout a:hover {
            background: #f5f8ff;
            color: #163F8B;
        }




/* ── To-do task card ─────────────────────────────────────── */
.task-page-card {
    height: fit-content;
    padding: 22px 24px 18px;
}

.task-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #266DF1;
    margin-bottom: 14px;
}

.task-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 13.5px;
}

    .task-table thead tr {
        background: #DCE5FF;
    }

    .task-table th,
    .task-table td {
        padding: 12px 14px;
        vertical-align: middle;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .task-table th {
        font-size: 13px;
        font-weight: 600;
        color: #163F8B;
        text-align: left;
        white-space: nowrap;
    }

    .task-table td {
        border-bottom: 1px solid #f0f4ff;
        color: #111;
    }

    .task-table th:nth-child(1),
    .task-table td:nth-child(1) {
        width: 24%;
    }

    .task-table th:nth-child(2),
    .task-table td:nth-child(2) {
        width: 26%;
    }

    .task-table th:nth-child(3),
    .task-table td:nth-child(3),
    .task-table th:nth-child(4),
    .task-table td:nth-child(4) {
        width: 18%;
        text-align: center;
    }

    .task-table th:nth-child(5),
    .task-table td:nth-child(5) {
        width: 120px;
        text-align: center;
    }

    .task-table tbody tr:last-child td {
        border-bottom: none;
    }

    .task-table tbody tr:hover td {
        background: #f8fbff;
    }

    .task-table .task-empty {
        text-align: center;
        color: #6b87c0;
        padding: 28px 14px;
    }

.task-check-form {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.task-check-form .tbl-check {
    width: 18px;
    height: 18px;
}

.task-pending {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #c0392b;
}

.task-approval-modal {
    width: min(460px, 94vw);
}


/*payroll staff*/
/* ── Generate Payroll — project search + employee table ─── */
.genpay-controls {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 10px;
}

.genpay-select-wrap {
    max-width: 320px;
    flex: 1;
    position: relative;
}

/* ── Generate Payroll — custom autocomplete ─────────────── */
.genpay-autocomplete {
    position: relative;
}

.genpay-suggest-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #C9DAFF;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(38, 109, 241, .15);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: 220px;
    overflow-y: auto;
    z-index: 40;
}

.genpay-suggest-list li {
    padding: 9px 14px;
    font-size: 13px;
    color: #163F8B;
    cursor: pointer;
    transition: background .12s;
}

.genpay-suggest-list li:hover {
    background: #EEF3FF;
}

.genpay-suggest-list li.genpay-suggest-empty {
    color: #9ab0d8;
    cursor: default;
}

.genpay-suggest-list li.genpay-suggest-empty:hover {
    background: none;
}

.genpay-suggest-list .suggest-name {
    display: block;
}

.genpay-suggest-list .suggest-meta {
    display: block;
    font-size: 11px;
    color: #7a93c4;
    margin-top: 2px;
}

.genpay-suggest-list .suggest-match {
    color: #266DF1;
    font-weight: 700;
    background: #e8f0ff;
}

.genpay-fallback-note {
    background: #FFF8E1;
    color: #8a6d00;
    border: 1px solid #ffe58a;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12.5px;
    margin-bottom: 16px;
}

.btn-primary-blue-solid {
    background: #2654F2;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 9px 26px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    height: 38px;
    transition: background .15s;
}

.btn-primary-blue-solid:hover {
    background: #1B3FBF;
    color: #ffffff;
}

.btn-generate-pill {
    background: #266DF1;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 5px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background .15s;
}

.btn-generate-pill:hover {
    background: #1B52BD;
    color: #fff;
    text-decoration: none;
}

.btn-generate-pill:disabled,
.btn-generate-disabled {
    background: #c5c9d1;
    color: #fff;
    pointer-events: none;
    cursor: default;
}

.btn-generate-done {
    background: #0d7a3e !important;
}

.emp-table tr.row-generated td {
    background: #f0f2f5;
    color: #8b93a7;
}

/* ── Payroll slip card ───────────────────────────────────── */
.slip-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 32px;
    max-width: 880px;
    margin: 0 auto;
}

.slip-generate-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.slip-generate-row .form-ctrl {
    width: 100%;
}

.slip-generate-row .btn-primary-blue-block {
    width: 100%;
    margin-top: 4px;
}

.slip-title {
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #266DF1;
    margin-bottom: 20px;
}

.slip-row3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.slip-value {
    font-size: 13.5px;
    font-weight: 600;
    color: #266DF1;
}

.slip-schedule-hint {
    background: #eef4ff;
    border: 1px solid #c5d8ff;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #163F8B;
    line-height: 1.4;
}

.slip-schedule-hint-warn {
    background: #fff4e5;
    border-color: #f0c36d;
    color: #8a5a00;
}

/* ── Pending Payroll — status rows & pills ──────────────── */
.row-correction td {
    background: #ffe4c4 !important;
}

.row-draft td {
    background: #eef0f2 !important;
}

.row-submitted td {
    background: #d4f7e0 !important;
}

.status-pill {
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 11.5px;
    font-weight: 700;
}

.status-correction {
    background: #ffdca0;
    color: #a15c00;
}

.status-draft {
    background: #e2e5ea;
    color: #444;
}

.status-submitted {
    background: #b6f0c9;
    color: #0d7a3e;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    border: none;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    margin-left: 4px;
}

.pill-submit {
    background: #0d7a3e;
    color: #fff;
}

    .pill-submit:hover {
        background: #0a5c2f;
        color: #fff;
    }

.pill-view {
    background: #266DF1;
    color: #fff;
}

    .pill-view:hover {
        background: #1B52BD;
        color: #fff;
    }

.pill-delete {
    background: #e53935;
    color: #fff;
}

    .pill-delete:hover {
        background: #c0392b;
        color: #fff;
    }

/* ── View Payroll page ───────────────────────────────────── */
.viewpay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.payslip-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 34px;
    max-width: 620px;
    margin: 0 auto;
}

.payslip-title {
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #266DF1;
}

.payslip-subtitle {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #000;
    margin-bottom: 16px;
}

.payslip-section-lbl {
    font-size: 12.5px;
    font-weight: 700;
    color: #0d7a3e;
    border-bottom: 1px solid #eef0f2;
    padding-bottom: 6px;
    margin: 16px 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payslip-period {
    font-size: 11.5px;
    font-weight: 500;
    color: #266DF1;
}

.payslip-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 6px;
}

.payslip-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
}

.payslip-line-strong {
    border-top: 1px solid #eef0f2;
    padding-top: 8px;
    font-weight: 700;
}

.payslip-lbl {
    color: #444;
}

.payslip-val {
    color: #266DF1;
    font-weight: 600;
}

.payslip-footer {
    margin-top: 18px;
    font-size: 11.5px;
    color: #266DF1;
    font-weight: 600;
}

/* ── Admin payslip approve / return actions ─────────────── */
.payslip-approve-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 22px;
}

.btn-approve {
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 32px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

    .btn-approve:hover {
        background: #16a34a;
    }

.btn-return {
    background: #f59e0b;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

    .btn-return:hover {
        background: #d97706;
    }

.review-slip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
}

.review-slip-col .payslip-card {
    max-width: none;
    margin: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.review-slip-col .payslip-approve-row {
    margin-top: 14px;
}

.hidden-token-form {
    display: none;
}

.del-icon-success {
    background: #d4f7e0;
}

.del-icon-success-i {
    color: #0d7a3e;
    font-size: 28px;
}

.btn-return-confirm {
    background: #E1962B;
}

.btn-result-ok {
    background: #266DF1;
}

@media (max-width: 980px) {
    .review-slip-grid {
        grid-template-columns: 1fr;
    }
}

.correction-modal {
    text-align: left;
}

.correction-textarea {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    margin: 14px 0;
}

/* ── Admin dashboard ──────────────────────────────────────── */
.dash-welcome {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.dash-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 20px;
}

.dash-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #EEF3FF;
    color: #266DF1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.dash-stat-num {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.dash-stat-lbl {
    font-size: 11.5px;
    color: #6b87c0;
}

.dash-panels-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    align-items: start;
}

.dash-panel {
    background: #fff;
    border-radius: 12px;
    padding: 18px 20px;
}

.dash-panel-title {
    font-size: 14px;
    font-weight: 700;
    color: #163F8B;
    margin-bottom: 12px;
}

.dash-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

    .dash-mini-table th {
        text-align: left;
        color: #6b87c0;
        font-weight: 600;
        padding: 6px 8px;
        border-bottom: 1px solid #eef0f2;
    }

    .dash-mini-table td {
        padding: 8px;
        border-bottom: 1px solid #f5f7fb;
    }

/* ── Correction reason banner ────────────────────────────── */
.correction-banner {
    background: #FFF3E0;
    border: 1px solid #FFD59A;
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 18px;
}

.correction-banner-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #A15C00;
    margin-bottom: 6px;
}

.correction-banner-text {
    font-size: 13px;
    color: #6b4d00;
    line-height: 1.5;
}

/* ── Admin View Payroll / Prediction ─────────────────────── */
.vp-filters {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 14px;
    align-items: end;
    margin-bottom: 22px;
    overflow: visible;
    text-align: left;
}

.vp-filters .form-lbl {
    display: block;
    text-align: left;
}

.vp-filter-submit {
    padding-bottom: 1px;
}

.vp-period-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vp-period-card {
    border: 1.5px solid #d7e3ff;
    border-radius: 10px;
    overflow: hidden;
}

.vp-period-head,
.vp-period-body {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1.2fr 140px;
    gap: 8px;
    align-items: center;
    padding: 10px 16px;
    text-align: left;
}

.vp-period-head span,
.vp-period-body span {
    text-align: left;
    min-width: 0;
}

.vp-period-head span:last-child,
.vp-period-body span:last-child {
    text-align: center;
}

.vp-period-head {
    background: #dce8ff;
    font-size: 12px;
    font-weight: 700;
    color: #163F8B;
}

.vp-period-body {
    background: #eef4ff;
    font-size: 13px;
}

.pred-forecast-head,
.pred-forecast-body {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 1.1fr 1.1fr 110px;
    gap: 8px;
    align-items: center;
    padding: 10px 16px;
    text-align: left;
}

.pred-forecast-head {
    background: #dce8ff;
    font-size: 12px;
    font-weight: 700;
    color: #163F8B;
}

.pred-forecast-body {
    background: #eef4ff;
    font-size: 13px;
    color: #163F8B;
}

.pred-result-panel {
    width: min(460px, 100%);
}

.pred-result-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    font-size: 14px;
    color: #5b6b8c;
    border-bottom: 1px solid #eef2f8;
}

.pred-result-row strong {
    color: #163F8B;
    font-weight: 700;
    text-align: right;
}

.pred-risk {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff6e8;
    color: #8a5a00;
}

.pred-risk i {
    font-size: 20px;
    color: #e67e22;
}

.pred-risk-warn {
    background: #fdecea;
    color: #9b1c1c;
}

.pred-risk-warn i,
.pred-risk-warn .pred-risk-title {
    color: #c0392b;
}

.pred-anomaly-flag,
.pred-previous-flag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

.pred-anomaly-flag {
    background: #fdecea;
    color: #c0392b;
}

.pred-previous-flag {
    background: #e8eef8;
    color: #4a5d82;
}

.pred-forecast-previous .pred-forecast-body {
    background: #f4f7fb;
}

.pred-risk-title {
    font-weight: 700;
    color: #8a4b00;
}

.pred-risk-detail {
    font-size: 13px;
    margin-top: 2px;
}

.pred-result-footer {
    margin-top: 18px;
    font-size: 13px;
    color: #5b6b8c;
}

.pred-result-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #7a93c4;
}

.pred-result-footer span {
    color: #266DF1;
    font-weight: 700;
}

.vp-detail-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.vp-inline-back {
    margin-bottom: 12px;
    position: static;
}

.vp-detail-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin: 4px 0 20px;
}

.vp-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #266DF1;
    line-height: 1.2;
}

.vp-detail-dates {
    font-size: 13px;
    color: #4a4a4a;
    margin-top: 6px;
}

.vp-detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
}

.vp-btn-pdf,
.vp-btn-send {
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    height: 38px;
    white-space: nowrap;
}

.vp-btn-pdf {
    background: #fff;
    color: #111;
    border: 1.5px solid #111;
}

.vp-btn-pdf:hover {
    background: #f5f5f5;
    color: #111;
}

.vp-btn-send {
    background: #22a35a;
    color: #fff;
    border: none;
}

.vp-btn-send:hover {
    background: #1b8448;
    color: #fff;
}

.vp-employee-table thead tr {
    background: #dce8ff;
}

.vp-employee-table th {
    color: #163F8B;
}

.vp-employee-table tbody tr:nth-child(even) td {
    background: #f4f8ff;
}

.vp-slip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.gen-modal {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px 24px;
    width: min(460px, calc(100vw - 32px));
    box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
}

.gen-modal-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #266DF1;
    margin-bottom: 16px;
}

.gen-modal-text {
    font-size: 14px;
    margin-bottom: 16px;
}

.gen-modal-text strong {
    color: #266DF1;
}

.gen-modal-period-lbl {
    font-weight: 700;
    margin-bottom: 4px;
}

.gen-modal-period {
    color: #266DF1;
    font-weight: 600;
    margin-bottom: 22px;
}

.gen-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.gen-modal-btn {
    width: auto;
    margin: 0;
}

.gen-modal-cancel {
    background: #8a8a8a;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 28px;
    font-size: 13px;
    cursor: pointer;
}

.gen-modal-cancel:hover {
    background: #6f6f6f;
}

.send-file-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 22px;
    font-weight: 600;
}

.send-file-row i {
    font-size: 28px;
    color: #266DF1;
}

.pred-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.pred-back {
    margin-bottom: 0;
    position: static;
}

.pred-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 16px;
}

.pred-project {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.pred-dates {
    color: #d5e2ff;
    font-size: 14px;
    margin-top: 4px;
}

.pred-actions {
    display: flex;
    gap: 10px;
}

.pred-btn-pdf,
.pred-btn-send {
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    height: 38px;
}

.pred-btn-pdf {
    background: #FF0000;
    color: #ffffff;
}

.pred-btn-pdf:hover {
    background: #CC0000;
    color: #ffffff;
}

.pred-btn-send {
    background: #22a35a;
    color: #fff;
}

.pred-btn-send:hover {
    background: #1b8448;
    color: #fff;
}

.pred-card {
    min-height: 420px;
}

.pred-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.pred-slip {
    border: 1.5px solid #266DF1;
    border-radius: 4px;
    padding: 12px 14px 10px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    display: block;
}

.pred-slip:hover {
    box-shadow: 0 6px 16px rgba(22, 63, 139, .12);
}

.mini-title {
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: #266DF1;
}

.mini-sub {
    text-align: center;
    font-size: 11px;
    color: #000;
    margin-bottom: 8px;
}

.mini-section {
    font-size: 10.5px;
    font-weight: 700;
    color: #0d7a3e;
    border-bottom: 1px solid #111;
    padding-bottom: 3px;
    margin: 8px 0 6px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.mini-period {
    font-size: 9.5px;
    font-weight: 600;
    color: #266DF1;
}

.mini-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
    font-size: 10.5px;
}

.mini-fields {
    display: grid;
    grid-template-columns: 118px 1fr;
    row-gap: 3px;
    column-gap: 8px;
    font-size: 10.5px;
}

.mini-fields-gap {
    margin-top: 6px;
}

.mini-net {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 8px;
    font-size: 10.5px;
    border-top: 1px solid #111;
    margin-top: 8px;
    padding-top: 6px;
}

.mini-lbl { color: #111; }
.mini-val { color: #266DF1; font-weight: 600; }

.mini-footer {
    margin-top: 8px;
    font-size: 10px;
    color: #266DF1;
    font-weight: 600;
}

.pred-pager {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #fff;
    margin-top: 16px;
    font-weight: 600;
}

.pred-pager-arrows {
    display: flex;
    gap: 28px;
}

.pred-pager a,
.pred-pager span.disabled {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

.pred-pager span.disabled {
    opacity: .4;
}

@media (max-width: 900px) {
    .vp-filters,
    .vp-period-head,
    .vp-period-body,
    .pred-forecast-head,
    .pred-forecast-body,
    .pred-grid,
    .pred-heading-row,
    .vp-detail-heading {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .vp-detail-actions {
        justify-content: flex-start;
    }
}

/* ── Import Attendance ───────────────────────────────────── */
.att-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #266DF1;
    margin-bottom: 18px;
}

.att-list-toolbar {
    justify-content: flex-start;
    margin-top: 8px;
}

.att-list-toolbar .btn-outline-blue,
.att-list-toolbar .btn-outline-blue:focus,
.att-list-toolbar .btn-outline-blue:active {
    background: #2654F2;
    color: #ffffff;
    border: none;
}

.att-import-row {
    margin-bottom: 14px;
}

.att-field {
    max-width: 720px;
}

.att-field-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.att-grow {
    flex: 1;
    min-width: 0;
}

.btn-choose-file {
    background: #e8eaee;
    color: #333;
    border: none;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    height: 38px;
}

.btn-choose-file:hover {
    background: #d8dbe1;
}

.att-preview-meta {
    font-size: 12.5px;
    color: #5b6f94;
}

.att-table-wrap {
    overflow-x: auto;
}

.att-table th,
.att-table td {
    white-space: nowrap;
}

.att-table .att-empty {
    color: #9aa3b5;
    letter-spacing: 1px;
}

.att-row-unmatched td {
    background: #fff4f4;
}

.att-row-issue td {
    background: #fff8f0;
}

.att-row-unmatched.att-row-issue td {
    background: #fff4f4;
}

.att-issue-flag {
    margin-left: 8px;
    color: #c05621;
    font-size: 13px;
    vertical-align: middle;
}

.att-time-flag {
    color: #c05621;
    font-weight: 600;
}

.att-issue-note {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.4;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 8px 10px;
}

.att-status-complete {
    background: #b6f0c9;
    color: #0d7a3e;
}

.att-status-halfday,
.att-status-incomplete {
    background: #cfe2ff;
    color: #1b52bd;
}

.att-status-late {
    background: #ffe58a;
    color: #8a6d00;
}

.att-status-early {
    background: #e4d7ff;
    color: #5b3cc4;
}

.att-status-absent {
    background: #ffc9c9;
    color: #b42318;
}

.att-action-link {
    background: none;
    border: none;
    color: #266DF1;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.att-action-link:hover {
    text-decoration: underline;
}

.att-action-link.is-locked,
.att-action-link:disabled {
    color: #9aa4b5;
    cursor: not-allowed;
    text-decoration: none;
    pointer-events: none;
}

.att-preview-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
}

.att-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #163F8B;
    grid-column: 2;
    justify-self: center;
    min-height: 32px;
}

.att-preview-footer > .att-pager:first-child {
    grid-column: 2;
}

.att-preview-footer > :last-child:not(.att-pager) {
    grid-column: 3;
    justify-self: end;
}

.att-page-btn {
    border: 0;
    background: transparent;
    color: #163F8B;
    border-radius: 6px;
    min-width: 28px;
    height: 32px;
    padding: 0 4px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.att-page-btn:hover:not(:disabled) {
    color: #266DF1;
}

.att-page-btn:disabled {
    opacity: .35;
    cursor: default;
}

.btn-import-attendance {
    background: #22a35a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-import-attendance:hover {
    background: #1b8448;
}

.btn-import-attendance:disabled {
    background: #9ecfb0;
    cursor: default;
}

.att-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.att-edit-grid label,
.att-edit-status {
    font-size: 12px;
    font-weight: 600;
    color: #163F8B;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.att-edit-status {
    grid-column: 1 / -1;
}

.att-edit-sub {
    font-size: 13px;
    color: #5b6f94;
    margin: -8px 0 18px;
}

.att-edit-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.att-card-table thead th {
    text-align: center;
}

.att-time-input {
    min-width: 118px;
    padding: 6px 8px;
    height: 36px;
}

.att-day-cell {
    min-width: 140px;
}

.att-day-label {
    font-weight: 700;
    color: #163F8B;
}

.att-day-full {
    font-size: 11px;
    color: #7a93c4;
    margin-top: 2px;
}

.att-weekend .att-day-label {
    color: #c0392b;
}

.att-day-focus td {
    background: #eef4ff;
}

.att-edit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(22, 63, 139, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 24px;
}

.att-edit-overlay[hidden] {
    display: none;
}

.att-edit-panel {
    width: min(720px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    box-shadow: 0 16px 40px rgba(22, 63, 139, 0.18);
}

.att-edit-live {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #163F8B;
}

.att-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.att-summary-chip {
    background: #f3f7ff;
    border: 1px solid #d7e4ff;
    border-radius: 10px;
    padding: 10px 12px;
}

.att-summary-chip span {
    display: block;
    font-size: 11px;
    color: #5b6f94;
    font-weight: 600;
}

.att-summary-chip strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    color: #163F8B;
}

.att-quick-btn {
    background: #eef4ff;
    color: #266DF1;
    border: 1px solid #c9daff;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}

.att-quick-btn:hover {
    background: #dce8ff;
}

.att-edit-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.att-hours-cell {
    text-align: center;
    font-weight: 700;
    color: #163F8B;
}

.att-ot-hours {
    font-size: 11px;
    font-weight: 600;
    color: #7a93c4;
}

.att-ot-pending-hours {
    color: #b45309;
}

.att-ot-rejected-hours {
    color: #b42318;
}

.att-ot-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
}

.att-ot-btn {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 20px;
    border: 1px solid #c5d0e6;
    background: #fff;
    color: #163F8B;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.att-ot-btn:hover {
    background: #f4f7ff;
}

.att-ot-authorize {
    border-color: #86d3a8;
    color: #0d7a3e;
}

.att-ot-authorize:hover {
    background: #e8f8ee;
}

.att-ot-reject {
    border-color: #f0b4b4;
    color: #b42318;
}

.att-ot-reject:hover {
    background: #fff4f4;
}

.att-ot-status {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.att-ot-pending {
    background: #fff4de;
    color: #9a6700;
}

.att-ot-approved {
    background: #d4f7e0;
    color: #0d7a3e;
}

.att-ot-rejected {
    background: #ffc9c9;
    color: #b42318;
}

.att-row-ot-pending td {
    background: #fffaf0;
}

.att-ot-confirm-reject {
    background: #b42318 !important;
}

.att-action-cell {
    white-space: nowrap;
    vertical-align: middle;
}

.att-quick-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    white-space: normal;
}

.att-row-edited td {
    background: #f3f8ff;
}

.att-project-banner {
    background: #e8f8ee;
    border: 1px solid #b6f0c9;
    color: #0d7a3e;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12.5px;
    margin: 0 0 14px;
    max-width: 720px;
}

.att-extract-bar {
    background: #f3f7ff;
    border: 1px solid #dce8ff;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 4px 0 14px;
    font-size: 12.5px;
    color: #163F8B;
}

.att-extract-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.att-stat {
    background: #fff;
    border: 1px solid #dce8ff;
    color: #163F8B;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
}

.att-stat-ok {
    background: #e8f8ee;
    border-color: #b6f0c9;
    color: #0d7a3e;
}

.att-stat-warn {
    background: #fff4f4;
    border-color: #ffd0d0;
    color: #b42318;
}

.att-extract-dropped {
    margin-top: 8px;
    color: #7a3a36;
}

.att-extract-kept {
    color: #0d7a3e;
}

.att-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin-bottom: 18px;
}

.att-filter-grid .att-field {
    max-width: none;
}

.att-records-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.att-footer-actions {
    justify-self: end;
}

.att-summary-wide {
    grid-template-columns: repeat(4, minmax(110px, 1fr));
}

@media (max-width: 900px) {
    .att-edit-meta {
        grid-template-columns: 1fr 1fr;
    }

    .att-summary,
    .att-summary-wide {
        grid-template-columns: 1fr 1fr;
    }

    .att-filter-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Notifications / sticky page header ──────────────────── */
.dash-header,
.content-topbar,
.pred-topbar {
    box-sizing: border-box;
    background: #163F8B;
    border-bottom: none;
    overflow: visible;
}

/* Form / detail pages: Back top edge stays on the logo border. */
.content-topbar:has(.btn-back),
.pred-topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    height: auto;
    min-height: 0;
    margin: 132px -28px 16px;
    padding: 0 28px 12px;
}

.content-topbar.page-sticky-bar {
    position: sticky;
    top: 0;
    z-index: 80;
    background: #163F8B;
}

/* Index / dashboard: occupy the logo block so the card starts on the border. */
.content-topbar:not(:has(.btn-back)),
.dash-header {
    position: relative;
    z-index: 80;
    height: 132px;
    min-height: 132px;
    margin: 0 -28px 0;
    padding: 0 28px;
}

.dash-header .dash-welcome {
    margin: 0;
    padding-right: 61px;
    line-height: 1.2;
}

.notif-bell-wrap {
    position: fixed;
    /* Logo is 10px + 120px. Center the 45px bell on that block. */
    top: calc(10px + (120px - 45px) / 2);
    right: 28px;
    display: inline-flex;
    flex-shrink: 0;
    z-index: 90;
}

.content-topbar > .bell-btn,
.dash-header > .bell-btn,
.pred-topbar > .bell-btn {
    position: fixed;
    top: calc(10px + (120px - 45px) / 2);
    right: 28px;
    z-index: 90;
}

.content-topbar .notif-bell-wrap,
.dash-header .notif-bell-wrap,
.pred-topbar .notif-bell-wrap {
    margin-left: auto;
}

.content-topbar .btn-back {
    margin-bottom: 0;
    position: static;
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #266DF1;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.notif-badge[hidden],
.notif-panel[hidden],
.report-preview[hidden] {
    display: none !important;
}

.notif-panel {
    position: absolute;
    top: 54px;
    right: 0;
    width: min(500px, calc(100vw - 270px));
    max-height: min(70vh, 560px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
    z-index: 200;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notif-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 10px;
    font-size: 18px;
    font-weight: 700;
    color: #163F8B;
}

.notif-panel-head i {
    color: #266DF1;
}

.notif-panel-list {
    overflow-y: auto;
    padding: 0 8px 8px;
}

.notif-item,
.notif-page-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: transparent;
    border: none;
    text-align: left;
    padding: 10px 10px;
    border-radius: 10px;
    cursor: pointer;
}

.notif-item:hover,
.notif-page-item:hover {
    background: #f4f7ff;
}

.notif-item-copy,
.notif-page-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notif-item-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.notif-item-title {
    font-weight: 700;
    color: #111;
    font-size: 13px;
}

.notif-item-time {
    color: #888;
    font-size: 11px;
    white-space: nowrap;
}

.notif-item-msg {
    color: #444;
    font-size: 12.5px;
    line-height: 1.45;
}

.notif-item .notif-item-msg,
.notif-page-item .notif-item-msg {
    display: block;
    overflow: visible;
    white-space: normal;
}

.notif-item.is-read,
.notif-page-item.is-read {
    opacity: .7;
}

.notif-unread-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #266DF1;
    margin-top: 6px;
    flex-shrink: 0;
}

.notif-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
}

.notif-icon-send { background: #E8F0FF; color: #266DF1; }
.notif-icon-ok { background: #E7F8EE; color: #22c55e; }
.notif-icon-cal { background: #E8F6FF; color: #38bdf8; }
.notif-icon-warn { background: #FFF4E5; color: #f59e0b; }
.notif-icon-doc { background: #FFF4E5; color: #f59e0b; }
.notif-icon-task { background: #E8F0FF; color: #266DF1; }
.notif-icon-reject { background: #FDECEC; color: #ef4444; }

.notif-view-all {
    display: block;
    text-align: center;
    padding: 12px;
    color: #266DF1;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid #eef2f7;
}

.notif-empty {
    padding: 24px 12px;
    text-align: center;
    color: #888;
}

.notif-page-card {
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.notif-page-title,
.report-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #266DF1;
    margin-bottom: 16px;
}

.notif-filter-bar {
    background: #ececec;
    border-radius: 6px;
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 8px;
}

.notif-filter-tabs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notif-filter-tab {
    border: none;
    background: transparent;
    color: #5b6b8a;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 0;
}

.notif-filter-tab:hover {
    color: #163F8B;
}

.notif-filter-tab.is-active,
.notif-filter-active {
    font-weight: 600;
    color: #163F8B;
}

.notif-unread-count {
    font-size: 12px;
    color: #5b6b8a;
}

.notif-mark-all {
    border: none;
    background: transparent;
    color: #333;
    cursor: pointer;
}

.notif-mark-all:hover,
.notif-view-all:hover {
    text-decoration: underline;
}

.notif-page-list {
    flex: 1;
}

.notif-page-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 8px;
}

.notif-page-item.is-read {
    opacity: .7;
}

.notif-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 16px;
}

.notif-pager .att-page-btn {
    text-decoration: none;
}

/* ── Attendance correction modal ─────────────────────────── */
.corr-modal {
    width: min(860px, 94vw);
    text-align: left;
    background: #fff;
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
}

.corr-title {
    font-size: 22px;
    font-weight: 700;
    color: #163F8B;
}

.corr-meta {
    margin: 8px 0 14px;
    font-size: 13px;
    line-height: 1.6;
}

.corr-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 14px;
}

.corr-table th,
.corr-table td {
    border: 1px solid #111;
    padding: 8px 10px;
    text-align: center;
    font-size: 13px;
}

.corr-reason {
    margin: 8px 0 18px;
    font-size: 14px;
}

.corr-return-wrap {
    margin-top: 8px;
}

.corr-return-wrap .form-lbl {
    margin-bottom: 6px;
}

.corr-return-wrap textarea {
    margin-bottom: 14px;
    resize: vertical;
}

.corr-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.corr-actions .btn-approve,
.corr-actions .btn-return {
    min-width: 210px;
    border-radius: 10px;
    padding: 12px 20px;
}

/* ── Reports ─────────────────────────────────────────────── */
.report-page-card {
    min-height: 560px;
    display: flex;
    flex-direction: column;
}

.report-form {
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-form .form-lbl {
    margin-top: 10px;
}

.report-form .form-lbl:first-child {
    margin-top: 0;
}

.report-generate-btn {
    margin-top: 14px;
    width: fit-content;
    border-radius: 8px;
}

.report-preview {
    margin-top: 22px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 16px;
    overflow: auto;
}

.report-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #163F8B;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th,
.report-table td {
    border: 1px solid #222;
    padding: 6px 8px;
    font-size: 13px;
}

.report-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 8px 0 12px;
    font-size: 13px;
}

.report-total {
    margin-top: 12px;
    font-weight: 700;
}

.report-section-title {
    margin: 16px 0 8px;
    font-weight: 700;
    color: #163F8B;
}

.report-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    margin: 8px 0 16px;
    font-size: 13px;
}

.report-info-lbl {
    display: block;
    font-size: 12px;
    color: #667085;
}

.report-under {
    color: #0d7a3e;
    font-weight: 600;
}

.report-over {
    color: #b42318;
    font-weight: 600;
}

.report-bottom-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 28px;
    padding-top: 28px;
}

.report-download-btn,
.report-print-btn {
    min-width: 210px;
    border: none;
    border-radius: 10px;
    padding: 12px 28px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
}

.report-download-btn {
    background: #FF0000;
    color: #ffffff;
}

.report-print-btn {
    background: #2654F2;
    color: #ffffff;
}

.report-download-btn:hover {
    background: #CC0000;
    color: #ffffff;
}

.report-print-btn:hover {
    background: #1B3FBF;
    color: #ffffff;
}

.ca-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 14px;
    margin: 22px 0 18px;
}

.ca-kpi {
    background: #f3f7ff;
    border: 1px solid #d7e4ff;
    border-radius: 10px;
    padding: 14px 16px;
}

.ca-kpi span {
    display: block;
    font-size: 12px;
    color: #5b6f94;
    font-weight: 600;
}

.ca-kpi strong {
    display: block;
    margin-top: 6px;
    font-size: 20px;
    color: #163F8B;
}

.ca-emp-head {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.ca-emp-head-tight {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    margin-bottom: 16px;
}

.ca-emp-link {
    font-size: 14px;
    font-weight: 700;
    color: #266DF1;
}

.ca-amount-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ca-amount-wrap span {
    font-weight: 700;
    color: #163F8B;
}

.ca-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 32, 72, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 80;
    padding: 20px;
}

.ca-overlay[hidden] {
    display: none;
}

.ca-panel {
    width: min(560px, 100%);
    background: #fff;
    border-radius: 12px;
    padding: 22px 24px 20px;
}

.ca-panel-sm {
    width: min(440px, 100%);
}

.ca-panel-center {
    text-align: center;
}

.ca-panel-title {
    font-size: 20px;
    font-weight: 700;
    color: #163F8B;
    margin-bottom: 16px;
}

.ca-panel-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.ca-panel-actions-center {
    justify-content: center;
}

.ca-btn-cancel {
    height: 38px;
    padding: 0 18px;
    border-radius: 6px;
    border: 1.5px solid #1a1a1a;
    background: #fff;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.ca-success-icon {
    width: 64px;
    height: 64px;
    margin: 4px auto 12px;
    border-radius: 50%;
    background: #d4f7e0;
    color: #0d7a3e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.ca-success-msg {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.45;
}

.ca-panel-title-dark {
    color: #111;
}

.ca-success-icon {
    background: #22c55e;
    color: #fff;
}

.ca-summary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 14px;
    padding: 16px 18px;
    border: 1px solid #d7e4ff;
    border-radius: 10px;
}

.ca-summary-person {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.ca-emp-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #266DF1;
    flex-shrink: 0;
}

.ca-emp-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #C9DAFF;
    color: #163F8B;
    font-weight: 700;
    font-size: 20px;
}

.ca-emp-name {
    font-size: 16px;
    font-weight: 700;
    color: #163F8B;
}

.ca-emp-meta {
    font-size: 13px;
    color: #5b6f94;
    margin-top: 2px;
}

.ca-summary-metrics {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.ca-summary-metrics > div {
    padding: 0 22px;
    border-left: 1px solid #d7e4ff;
}

.ca-summary-metrics span {
    display: block;
    font-size: 12px;
    color: #5b6f94;
    font-weight: 600;
}

.ca-summary-metrics strong {
    display: block;
    margin-top: 6px;
    font-size: 20px;
    color: #163F8B;
}

.ca-status-unpaid {
    background: #ffd8a8;
    color: #c05621;
}

.ca-status-paid {
    background: #b6f0c9;
    color: #0d7a3e;
}

.ca-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: nowrap;
}

.emp-table th.ca-action-head,
.emp-table td.ca-action-cell {
    text-align: left;
    width: 1%;
    min-width: 168px;
    white-space: nowrap;
    vertical-align: middle;
}

.ca-row-actions .pill-btn {
    margin-left: 0;
}

.ca-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    border-radius: 20px;
    border: 1px solid #c5d0e6;
    background: #fff;
    color: #4a5568;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
}

.ca-view-btn:hover {
    background: #f4f7ff;
    color: #163F8B;
}

.ca-footer-deduct {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.ca-footer-deduct .form-hint-box {
    margin: 0;
    flex: 1;
    min-width: 240px;
}

.ca-confirm-body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ca-confirm-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #266DF1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.ca-confirm-copy,
.ca-confirm-warn {
    margin: 0;
    font-size: 14px;
    color: #333;
    line-height: 1.45;
}

.ca-confirm-warn {
    margin-top: 8px;
}

.ca-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}

.ca-view-wide {
    grid-column: 1 / -1;
}

.notif-icon-bell {
    background: #f3f4f6;
    color: #111;
}

.notif-item[data-kind="CashAdvanceDeduction"] .notif-item-title,
.notif-item[data-kind="CashAdvanceAdded"] .notif-item-title,
.notif-page-item[data-kind="CashAdvanceDeduction"] .notif-item-title,
.notif-page-item[data-kind="CashAdvanceAdded"] .notif-item-title {
    color: #266DF1;
}

.profile-photo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.profile-photo-btn {
    border: none;
    background: none;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: #266DF1;
    cursor: pointer;
    text-decoration: underline;
}

.profile-photo-btn:hover {
    color: #1B52BD;
}

@media (max-width: 760px) {
    .ca-kpi-row,
    .ca-emp-head,
    .ca-emp-head-tight,
    .ca-summary-card,
    .ca-summary-metrics,
    .ca-view-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .ca-summary-metrics > div {
        padding: 10px 0 0;
        border-left: none;
        border-top: 1px solid #d7e4ff;
        width: 100%;
    }
}
