/* ================= GLOBAL RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #BF6FFD;
    --primary-dark: #1E0036;
    --primary-light: #2c7da0;
    --secondary: #2e7d32;
    --warning: #ed6c02;
    --danger: #d32f2f;
    --info: #0288d1;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
    --shadow-xl: 0 25px 50px rgba(0,0,0,0.15);
}

/* =====================================================
   BODY
===================================================== */
body:not(.login-body) {
    min-height: 100vh;
    background: var(--gray-100);
}

/* =====================================================
   DASHBOARD LAYOUT
===================================================== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* =====================================================
   SIDEBAR
===================================================== */
.sidebar {
    width: 260px;
    background: var(--primary-dark);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    gap: 0.5rem;
}

.logo span {
    background: var(--primary-light);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-size: 0.8rem;
}

.nav-menu {
    padding: 1.5rem 0;
}

.nav-item {
    padding: 0.85rem 1.5rem;
    display: block;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: 0.3s;
}

.nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.nav-item.active {
    background: var(--primary);
    border-left: 4px solid white;
    color: white;
}


/* Payroll table action buttons - uniform style */
.payroll-table button[onclick*="openBonusModal"],
.payroll-table button[onclick*="openTempBonusModal"],
button[onclick*="openBonusModal"],
button[onclick*="openTempBonusModal"] {
    padding: 8px 10px !important;
    background: #f0f4f8 !important;
    color: #1e4a6d !important;
    border: 1px solid #d8e0e8 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.15s ease !important;
}

button[onclick*="openBonusModal"]:hover,
button[onclick*="openTempBonusModal"]:hover {
    background: #e3eaf2 !important;
    border-color: #b8c5d4 !important;
    transform: translateY(-1px);
}



/* =====================================================
   MAIN CONTENT
===================================================== */
.main {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    background: var(--gray-100);
}

.main-content {
    padding: 20px 30px;
}

/* =====================================================
   PAGE HEADER
===================================================== */
.page-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    padding: 20px 30px;
    border-radius: 0 0 16px 16px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--gray-200);
}

.page-header h1 {
    font-size: 26px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.page-header .add-btn {
    background: var(--primary);
    color: white;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.page-header .add-btn:hover {
    background: var(--primary-dark);
}

/* =====================================================
   CARDS
===================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
    border: 1px solid var(--gray-200);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-light);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
}

.card-label {
    color: var(--gray-600);
}

/* =====================================================
   BUTTONS
===================================================== */
.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: var(--secondary);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* =====================================================
   LOGIN PAGE
===================================================== */
.login-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1e4a6d, #2c7da0);
}

.login-card {
    background: white;
    width: 380px;
    padding: 40px 30px;
    border-radius: 18px;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.login-logo {
    width: 110px;
    margin-bottom: 15px;
}

.login-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.login-subtitle {
    font-size: 13px;
    color: #777;
    margin-bottom: 25px;
}

.login-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.login-card input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30,74,109,0.1);
}

.login-card button {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: var(--primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.login-card button:hover {
    background: var(--primary-dark);
}

/* =====================================================
   EMPLOYEES DIRECTORY
===================================================== */
.directory-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-md);
}

.directory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.directory-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 10px 40px 10px 15px;
    border-radius: 30px;
    border: 1px solid var(--gray-300);
    width: 260px;
    font-size: 14px;
    outline: none;
}

.search-box input:focus {
    border-color: var(--primary);
}

.search-box span {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}

.table-responsive {
    overflow-x: auto;
}

/* Employee Table */
.employee-table {
    width: 100%;
    border-collapse: collapse;
}

.employee-table th {
    text-align: left;
    padding: 15px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
    background: var(--gray-50);
}

.employee-table td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
    vertical-align: middle;
}

.employee-table tr:hover {
    background: var(--gray-50);
}

/* Employee Cell */
.employee-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.employee-avatar-wrapper {
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.employee-avatar-wrapper:hover {
    opacity: 0.8;
}

.employee-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.employee-avatar-image {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.emp-details {
    line-height: 1.4;
    min-width: 180px;
}

.emp-name {
    font-weight: 600;
    color: var(--gray-800);
}

.emp-cnic {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 2px;
}

.emp-email {
    color: var(--gray-800);
}

.emp-phone {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 2px;
}

.emp-salary {
    font-weight: 600;
    color: var(--primary);
}

/* Status Badge */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-badge.active {
    background: #e8f5e9;
    color: var(--secondary);
}

.status-badge.inactive {
    background: #ffebee;
    color: var(--danger);
}

/* Action Icons */
.action-icons {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.action-btn:hover {
    background: var(--gray-200);
}

.action-btn.view:hover {
    background: #e3f2fd;
    color: var(--info);
}

.action-btn.edit:hover {
    background: #fff3e0;
    color: var(--warning);
}

.action-btn.delete:hover {
    background: #ffebee;
    color: var(--danger);
}

/* =====================================================
   MODAL STYLES
===================================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex !important;
}

.modal-content {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow-xl);
    z-index: 10000;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gray-800);
}

.close {
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-500);
    transition: 0.3s;
    line-height: 1;
}

.close:hover {
    color: var(--danger);
}

/* Profile Container */
.profile-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Profile Header */
.profile-header-section {
    display: flex;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 2rem;
    border-radius: 16px;
    color: white;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.profile-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 10px;
    padding: 4px;
    text-align: center;
    opacity: 0;
    transition: 0.3s;
}

.profile-avatar-large:hover .upload-hint {
    opacity: 1;
}

.profile-header-info {
    flex: 1;
}

.profile-name-large {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-title-large {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
}

.profile-badges {
    display: flex;
    gap: 0.5rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    color: var(--gray-600);
    font-weight: 500;
    transition: 0.3s;
    font-size: 14px;
}

.tab:hover {
    background: var(--gray-100);
}

.tab.active {
    background: var(--primary);
    color: white;
}

/* Profile Tabs Content */
.profile-tab {
    display: none;
}

.profile-tab.active {
    display: block !important;
}

/* Section Cards */
.section-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.detail-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-800);
}

/* History Tables */
.history-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 1.5rem 0 0.75rem 0;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.history-table th {
    background: var(--gray-100);
    padding: 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.history-table td {
    padding: 12px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 13px;
}

.history-table tr:last-child td {
    border-bottom: none;
}

.no-data {
    color: var(--gray-500);
    font-style: italic;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 6px;
}

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.badge-success {
    background: #e8f5e9;
    color: var(--secondary);
}

.badge-info {
    background: #e3f2fd;
    color: var(--info);
}

.badge-warning {
    background: #fff3e0;
    color: var(--warning);
}

.badge-danger {
    background: #ffebee;
    color: var(--danger);
}

.badge-primary {
    background: #e1f5fe;
    color: var(--primary);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--gray-800);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s;
    z-index: 3000;
    max-width: 350px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background: var(--secondary);
}

.toast-error {
    background: var(--danger);
}

.toast-warning {
    background: var(--warning);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s;
}

/* Confirmation Dialog */
.confirm-dialog {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.confirm-icon {
    font-size: 3rem;
    color: var(--warning);
    margin-bottom: 1rem;
}

.confirm-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.confirm-message {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}


/* =====================================================
   EMPLOYEE FORM STYLES (EDIT/ADD)
===================================================== */
.employee-form {
    width: 100%;
}

.employee-form h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

.employee-form h3:first-of-type {
    margin-top: 0;
}

.employee-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--gray-700);
}

.employee-form input,
.employee-form select,
.employee-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.employee-form input:focus,
.employee-form select:focus,
.employee-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30,74,109,0.1);
}

.employee-form input[readonly] {
    background: var(--gray-100);
    cursor: not-allowed;
}

.employee-form textarea {
    min-height: 80px;
    resize: vertical;
}

/* Form Grid Layout */
.employee-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Form Buttons */
.employee-form .form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.employee-form .btn-cancel {
    padding: 12px 25px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.employee-form .btn-cancel:hover {
    background: #5a6268;
}

.employee-form .btn-submit {
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.employee-form .btn-submit:hover {
    background: var(--primary-dark);
}

/* Required field indicator */
.employee-form label:after {
    content: " *";
    color: var(--danger);
    display: none;
}

.employee-form label[for*="required"]:after,
.employee-form .required:after {
    display: inline;
}


.form-control {
    width:100%;
    padding:10px;
    border:1px solid #ddd;
    border-radius:8px;
}


/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .main {
        margin-left: 0;
        width: 100%;
    }

    .main-content {
        padding: 15px;
    }

    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .directory-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .search-box input {
        width: 100%;
    }

    .profile-header-section {
        flex-direction: column;
        text-align: center;
    }

    .tabs {
        justify-content: center;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 15px 20px;
    }

    .modal-content {
        padding: 1.5rem;
    }
    
    .action-icons {
        flex-wrap: wrap;
    }
}


/* ============================================================================
   CONSOLIDATED PAGE STYLES  (moved here 2026-07-14)
   ----------------------------------------------------------------------------
   Everything below was cut from <style> blocks in individual PHP files.
   Nothing was removed — rules identical to the base stylesheet above were
   deduplicated, and every page-specific rule is scoped to a body class
   (body.page-<name>, set automatically by index.php) so each page keeps
   exactly the styling it had when the CSS lived in that page's own file.
   :where() keeps selector specificity unchanged, so the cascade behaves
   the same as before.
   ============================================================================ */

/* ==================== Shell — index.php (global: layout modal, toasts) ==================== */

/* Modal styles */

#employeeModal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }

#employeeModal.active {
            display: flex !important;
        }

.modal-content {
            background: white;
            border-radius: 20px;
            width: 90%;
            max-width: 1000px;
            max-height: 90vh;
            overflow-y: auto;
            padding: 20px;
            position: relative;
        }

/* Toast Container */

#toastContainer {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 10000;
        }

.toast-message {
            min-width: 300px;
            padding: 15px 20px;
            margin-bottom: 10px;
            border-radius: 8px;
            color: white;
            font-weight: 500;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            animation: slideIn 0.3s ease;
        }

.toast-message.success {
            background: #4CAF50;
        }

.toast-message.error {
            background: #f44336;
        }

.toast-message.info {
            background: #2196F3;
        }

@keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

@keyframes slideOut {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(100%);
                opacity: 0;
            }
        }

/* ==================== Shared keyframes (deduped — was defined identically in dashboard + payroll) ==================== */

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== Dashboard (page-dashboard) ==================== */

body:where(.page-dashboard) {
            background: var(--gray-100);
            overflow-x: hidden;
        }

:where(body.page-dashboard) .main-content {
            flex: 1;
            margin-left: 150px;
            padding: 20px;
            transition: margin-left 0.3s;
        }

/* Welcome Header */

:where(body.page-dashboard) .welcome-header {
            /*background: linear-gradient(135deg, var(--primary), var(--primary-light));*/
            background: linear-gradient(100.55deg, #1E0036 0%, #773DA4 50%, #BF6FFD 100%);
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 25px;
            color: white;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: var(--shadow-xl);
            position: relative;
            overflow: hidden;
        }

:where(body.page-dashboard) .welcome-header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: rotate 20s linear infinite;
        }

:where(body.page-dashboard) .welcome-text {
            position: relative;
            z-index: 2;
        }

:where(body.page-dashboard) .welcome-text h1 {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 5px;
        }

:where(body.page-dashboard) .welcome-text p {
            font-size: 14px;
            opacity: 0.9;
        }

:where(body.page-dashboard) .welcome-actions {
            position: relative;
            z-index: 2;
            display: flex;
            gap: 12px;
        }

:where(body.page-dashboard) .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
            text-decoration: none;
        }

:where(body.page-dashboard) .btn-primary {
            background: white;
            color: var(--primary);
        }

:where(body.page-dashboard) .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-lg);
        }

:where(body.page-dashboard) .btn-secondary {
            background: rgba(255,255,255,0.2);
            color: white;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.3);
        }

:where(body.page-dashboard) .btn-secondary:hover {
            background: rgba(255,255,255,0.3);
            transform: translateY(-3px);
        }

/* Stats Grid - First Row (3 Cards) */

:where(body.page-dashboard) .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-bottom: 30px;
        }

:where(body.page-dashboard) .stat-card {
            background: white;
            border-radius: 16px;
            padding: 20px;
            box-shadow: var(--shadow-md);
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }

:where(body.page-dashboard) .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }

:where(body.page-dashboard) .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 5px;
            height: 100%;
        }

:where(body.page-dashboard) .card-1::before { background: var(--primary); }

:where(body.page-dashboard) .card-2::before { background: var(--success); }

:where(body.page-dashboard) .card-3::before { background: var(--warning); }

:where(body.page-dashboard) .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

:where(body.page-dashboard) .card-header h3 {
            font-size: 14px;
            color: var(--gray-500);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

:where(body.page-dashboard) .card-header i {
            font-size: 24px;
            color: var(--gray-400);
        }

/* Clock Card */

:where(body.page-dashboard) .clock-display {
            text-align: center;
            padding: 10px 0;
        }

:where(body.page-dashboard) .clock-date {
            font-size: 16px;
            color: var(--gray-600);
            margin-bottom: 10px;
        }

:where(body.page-dashboard) .clock-time {
            font-size: 36px;
            font-weight: 700;
            color: var(--primary);
            font-family: monospace;
            letter-spacing: 2px;
            background: var(--gray-100);
            padding: 10px;
            border-radius: 10px;
            display: inline-block;
        }

:where(body.page-dashboard) .clock-seconds {
            font-size: 20px;
            color: var(--warning);
            margin-left: 5px;
        }

:where(body.page-dashboard) .clock-greeting {
            margin-top: 10px;
            font-size: 14px;
            color: var(--gray-600);
        }

/* Attendance Card */

:where(body.page-dashboard) .attendance-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-top: 10px;
        }

:where(body.page-dashboard) .attendance-item {
            text-align: center;
        }

:where(body.page-dashboard) .attendance-value {
            font-size: 28px;
            font-weight: 700;
        }

:where(body.page-dashboard) .attendance-label {
            font-size: 12px;
            color: var(--gray-500);
        }

:where(body.page-dashboard) .attendance-present { color: var(--success); }

:where(body.page-dashboard) .attendance-absent { color: var(--danger); }

:where(body.page-dashboard) .attendance-late { color: var(--warning); }

:where(body.page-dashboard) .attendance-halfday { color: var(--info); }

/* Pending Tasks Card */

:where(body.page-dashboard) .pending-list {
            margin-top: 10px;
        }

:where(body.page-dashboard) .pending-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px dashed var(--gray-200);
        }

:where(body.page-dashboard) .pending-item:last-child {
            border-bottom: none;
        }

:where(body.page-dashboard) .pending-label {
            font-size: 13px;
            color: var(--gray-600);
        }

:where(body.page-dashboard) .pending-badge {
            background: var(--primary);
            color: white;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
        }

:where(body.page-dashboard) .pending-badge.warning { background: var(--warning); }

:where(body.page-dashboard) .pending-badge.danger { background: var(--danger); }

:where(body.page-dashboard) .total-pending {
            margin-top: 15px;
            text-align: center;
            font-size: 14px;
            font-weight: 600;
            color: var(--primary);
        }

/* Filter Section */

:where(body.page-dashboard) .filter-section {
            background: white;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 25px;
            box-shadow: var(--shadow-md);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

:where(body.page-dashboard) .filter-controls {
            display: flex;
            gap: 10px;
            align-items: center;
        }

:where(body.page-dashboard) .filter-select {
            padding: 10px 15px;
            border: 1px solid var(--gray-200);
            border-radius: 10px;
            font-size: 14px;
            min-width: 120px;
            background: white;
        }

:where(body.page-dashboard) .filter-select:focus {
            border-color: var(--primary);
            outline: none;
        }

:where(body.page-dashboard) .apply-btn {
            padding: 10px 20px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 500;
        }

:where(body.page-dashboard) .apply-btn:hover {
            background: var(--primary-dark);
        }

:where(body.page-dashboard) .total-badge {
            background: var(--gray-100);
            padding: 8px 20px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 600;
            color: var(--primary);
        }

:where(body.page-dashboard) .total-badge span {
            color: var(--gray-800);
            margin-left: 5px;
        }

/* Charts Row */

:where(body.page-dashboard) .charts-row {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 20px;
            margin-bottom: 30px;
        }

:where(body.page-dashboard) .chart-container {
            background: white;
            border-radius: 16px;
            padding: 20px;
            box-shadow: var(--shadow-md);
        }

:where(body.page-dashboard) .line-chart {
            height: 350px;
        }

/* Fixed Pie Chart */

:where(body.page-dashboard) .pie-chart {
            height: 380px;
            display: flex;
            flex-direction: column;
        }

:where(body.page-dashboard) .pie-chart h3 {
            margin: 0 0 15px;
            font-size: 16px;
            color: var(--gray-800);
            text-align: center;
        }

:where(body.page-dashboard) .chart-wrapper {
            flex: 1;
            min-height: 200px;
            position: relative;
        }

:where(body.page-dashboard) .chart-legend {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-top: 15px;
            padding-top: 10px;
            border-top: 1px solid var(--gray-200);
            flex-wrap: wrap;
        }

:where(body.page-dashboard) .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--gray-50);
            padding: 6px 16px;
            border-radius: 30px;
            font-size: 13px;
            font-weight: 500;
            box-shadow: 0 2px 4px rgba(0,0,0,0.03);
        }

:where(body.page-dashboard) .legend-color {
            width: 14px;
            height: 14px;
            border-radius: 4px;
        }

:where(body.page-dashboard) .legend-color.payroll { background: #1e4a6d; }

:where(body.page-dashboard) .legend-color.expenses { background: #f59e0b; }

:where(body.page-dashboard) .legend-color.upwork { background: #10b981; }

/* Two Columns Section */

:where(body.page-dashboard) .two-columns {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 30px;
        }

:where(body.page-dashboard) .column-card {
            background: white;
            border-radius: 16px;
            padding: 20px;
            box-shadow: var(--shadow-md);
        }

:where(body.page-dashboard) .column-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--gray-200);
        }

:where(body.page-dashboard) .column-header h2 {
            font-size: 18px;
            font-weight: 600;
            color: var(--gray-800);
            display: flex;
            align-items: center;
            gap: 8px;
        }

:where(body.page-dashboard) .column-header h2 i {
            color: var(--primary);
        }

:where(body.page-dashboard) .birthday-header h2 i {
            color: var(--birthday);
        }

:where(body.page-dashboard) .view-all {
            color: var(--primary);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
        }

:where(body.page-dashboard) .view-all:hover {
            text-decoration: underline;
        }

/* Table Styles */

:where(body.page-dashboard) .compact-table {
            width: 100%;
            border-collapse: collapse;
        }

:where(body.page-dashboard) .compact-table th {
            text-align: left;
            padding: 12px 10px;
            background: var(--gray-50);
            color: var(--gray-600);
            font-size: 13px;
            font-weight: 600;
            border-bottom: 2px solid var(--gray-200);
        }

:where(body.page-dashboard) .compact-table td {
            padding: 12px 10px;
            border-bottom: 1px solid var(--gray-200);
            font-size: 14px;
        }

:where(body.page-dashboard) .compact-table tbody tr:hover {
            background: var(--gray-50);
        }

:where(body.page-dashboard) .employee-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

:where(body.page-dashboard) .employee-avatar {
            width: 35px;
            height: 35px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
            font-weight: 600;
            overflow: hidden;
            flex-shrink: 0;
        }

:where(body.page-dashboard) .employee-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

:where(body.page-dashboard) .birthday-avatar {
            background: linear-gradient(135deg, var(--birthday), #ff1493);
        }

:where(body.page-dashboard) .status-badge {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }

:where(body.page-dashboard) .status-badge.sent {
            background: #d1fae5;
            color: #065f46;
        }

:where(body.page-dashboard) .status-badge.pending {
            background: #fff3cd;
            color: #856404;
        }

:where(body.page-dashboard) .birthday-badge {
            background: #ffe4f0;
            color: #d43f7a;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            display: inline-block;
        }

:where(body.page-dashboard) .amount-cell {
            font-weight: 600;
            color: var(--primary);
        }

:where(body.page-dashboard) .empty-state {
            text-align: center;
            padding: 30px;
            color: var(--gray-500);
        }

:where(body.page-dashboard) .empty-state i {
            font-size: 40px;
            margin-bottom: 10px;
            color: var(--gray-400);
        }

/* Responsive */

@media (max-width: 1200px) {
:where(body.page-dashboard) .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }

:where(body.page-dashboard) .charts-row {
                grid-template-columns: 1fr;
            }

:where(body.page-dashboard) .two-columns {
                grid-template-columns: 1fr;
            }
}

@media (max-width: 768px) {
:where(body.page-dashboard) .main-content {
                margin-left: 0;
            }

:where(body.page-dashboard) .welcome-header {
                flex-direction: column;
                text-align: center;
                gap: 15px;
            }

:where(body.page-dashboard) .stats-grid {
                grid-template-columns: 1fr;
            }

:where(body.page-dashboard) .filter-section {
                flex-direction: column;
            }

:where(body.page-dashboard) .filter-controls {
                flex-wrap: wrap;
            }
}

/* ==================== Attendance (page-attendance) ==================== */

:where(body.page-attendance) #att-app *, :where(body.page-attendance) #att-app *::before, :where(body.page-attendance) #att-app *::after { box-sizing: border-box; }

:where(body.page-attendance) #att-app {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding: 24px;
}

:where(body.page-attendance) .att-page { max-width: 1500px; margin: 0 auto; }

/* HERO */

:where(body.page-attendance) .att-hero {
  background: linear-gradient(135deg, #0b2b3f 0%, #134963 50%, #1a5d7f 100%);
  border-radius: 20px;
  padding: 32px 36px;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow-lg);
}

:where(body.page-attendance) .att-hero::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}

:where(body.page-attendance) .att-hero::after {
  content: ''; position: absolute; bottom: -50%; left: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}

:where(body.page-attendance) .att-hero-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; position: relative; z-index: 1; flex-wrap: wrap;
}

:where(body.page-attendance) .att-hero-title h1 {
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em;
  margin: 0 0 6px; display: flex; align-items: center; gap: 12px;
}

:where(body.page-attendance) .att-hero-title h1 svg { width: 32px; height: 32px; }

:where(body.page-attendance) .att-hero-subtitle { color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 400; }

:where(body.page-attendance) .att-hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

:where(body.page-attendance) .att-glass-select, :where(body.page-attendance) .att-glass-btn {
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white; padding: 10px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 500; font-family: inherit;
  cursor: pointer; transition: all 0.2s; outline: none;
}

:where(body.page-attendance) .att-glass-select option { color: var(--text); }

:where(body.page-attendance) .att-glass-btn:hover, :where(body.page-attendance) .att-glass-select:hover {
  background: rgba(255,255,255,0.28); transform: translateY(-1px);
}

:where(body.page-attendance) .att-glass-btn.primary { background: white; color: var(--primary); font-weight: 600; border-color: white; }

:where(body.page-attendance) .att-glass-btn.primary:hover { background: #f9fafb; }

:where(body.page-attendance) .att-glass-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }

:where(body.page-attendance) .att-glass-btn svg { width: 16px; height: 16px; }

/* BANNER */

:where(body.page-attendance) .att-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: 12px;
  margin-bottom: 24px; font-size: 13.5px; font-weight: 500;
  border: 1px solid;
}

:where(body.page-attendance) .att-banner-warning { background: var(--late-soft); color: #92400e; border-color: var(--late-bg); }

:where(body.page-attendance) .att-banner-success { background: var(--present-soft); color: #065f46; border-color: var(--present-bg); }

:where(body.page-attendance) .att-banner svg { width: 20px; height: 20px; flex-shrink: 0; }

:where(body.page-attendance) .att-banner strong { font-weight: 700; }

/* SECTION */

:where(body.page-attendance) .att-section-title {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: 14px;
}

/* STATS */

:where(body.page-attendance) .att-stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px; margin-bottom: 32px;
}

:where(body.page-attendance) .att-stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
  position: relative; overflow: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

:where(body.page-attendance) .att-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

:where(body.page-attendance) .att-stat-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 14px;
}

:where(body.page-attendance) .att-stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

:where(body.page-attendance) .att-stat-icon svg { width: 22px; height: 22px; }

:where(body.page-attendance) .att-stat.present .att-stat-icon { background: var(--present-bg); color: var(--present); }

:where(body.page-attendance) .att-stat.late    .att-stat-icon { background: var(--late-bg);    color: var(--late); }

:where(body.page-attendance) .att-stat.halfday .att-stat-icon { background: var(--halfday-bg); color: var(--halfday); }

:where(body.page-attendance) .att-stat.absent  .att-stat-icon { background: var(--absent-bg);  color: var(--absent); }

:where(body.page-attendance) .att-stat.leave   .att-stat-icon { background: var(--leave-bg);   color: var(--leave); }

:where(body.page-attendance) .att-stat-trend {
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 20px;
  background: var(--surface-2); color: var(--text-muted);
}

:where(body.page-attendance) .att-stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }

:where(body.page-attendance) .att-stat-value { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--text); }

:where(body.page-attendance) .att-stat-bar { height: 4px; background: var(--surface-2); border-radius: 4px; margin-top: 12px; overflow: hidden; }

:where(body.page-attendance) .att-stat-bar-fill { height: 100%; border-radius: 4px; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); }

:where(body.page-attendance) .att-stat.present .att-stat-bar-fill { background: var(--present); }

:where(body.page-attendance) .att-stat.late    .att-stat-bar-fill { background: var(--late); }

:where(body.page-attendance) .att-stat.halfday .att-stat-bar-fill { background: var(--halfday); }

:where(body.page-attendance) .att-stat.absent  .att-stat-bar-fill { background: var(--absent); }

:where(body.page-attendance) .att-stat.leave   .att-stat-bar-fill { background: var(--leave); }

/* CONTROLS */

:where(body.page-attendance) .att-controls {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 14px 18px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; box-shadow: var(--shadow-sm);
}

:where(body.page-attendance) .att-pills { display: flex; gap: 6px; flex-wrap: wrap; }

:where(body.page-attendance) .att-pill {
  padding: 7px 14px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 12.5px; font-weight: 500; cursor: pointer;
  transition: all 0.15s; display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-family: inherit;
}

:where(body.page-attendance) .att-pill .att-pill-dot { width: 7px; height: 7px; border-radius: 50%; }

:where(body.page-attendance) .att-pill.all     .att-pill-dot { background: var(--text-muted); }

:where(body.page-attendance) .att-pill.present .att-pill-dot { background: var(--present); }

:where(body.page-attendance) .att-pill.late    .att-pill-dot { background: var(--late); }

:where(body.page-attendance) .att-pill.halfday .att-pill-dot { background: var(--halfday); }

:where(body.page-attendance) .att-pill.absent  .att-pill-dot { background: var(--absent); }

:where(body.page-attendance) .att-pill.leave   .att-pill-dot { background: var(--leave); }

:where(body.page-attendance) .att-pill:hover { border-color: var(--border-strong); background: var(--surface-2); }

:where(body.page-attendance) .att-pill.active { color: white; border-color: transparent; }

:where(body.page-attendance) .att-pill.active.all { background: var(--text); }

:where(body.page-attendance) .att-pill.active.present { background: var(--present); }

:where(body.page-attendance) .att-pill.active.late { background: var(--late); }

:where(body.page-attendance) .att-pill.active.halfday { background: var(--halfday); }

:where(body.page-attendance) .att-pill.active.absent { background: var(--absent); }

:where(body.page-attendance) .att-pill.active.leave { background: var(--leave); }

:where(body.page-attendance) .att-pill.active .att-pill-dot { background: white; }

:where(body.page-attendance) .att-pill-count {
  font-size: 11px; font-weight: 700;
  background: rgba(0,0,0,0.06); padding: 1px 7px; border-radius: 10px;
}

:where(body.page-attendance) .att-pill.active .att-pill-count { background: rgba(255,255,255,0.25); }

:where(body.page-attendance) .att-search { position: relative; min-width: 240px; }

:where(body.page-attendance) .att-search input {
  width: 100%; padding: 9px 12px 9px 36px;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 13px; font-family: inherit; background: var(--surface-2);
  outline: none; transition: all 0.15s;
}

:where(body.page-attendance) .att-search input:focus {
  border-color: var(--primary); background: white;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

:where(body.page-attendance) .att-search svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; color: var(--text-soft); pointer-events: none;
}

/* TABLE */

:where(body.page-attendance) .att-table-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-md);
}

:where(body.page-attendance) .att-table-scroll { overflow-x: auto; max-height: 640px; overflow-y: auto; }

:where(body.page-attendance) .att-table-scroll::-webkit-scrollbar { height: 10px; width: 10px; }

:where(body.page-attendance) .att-table-scroll::-webkit-scrollbar-track { background: var(--surface-2); }

:where(body.page-attendance) .att-table-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

:where(body.page-attendance) .att-table-scroll::-webkit-scrollbar-thumb:hover { background: var(--text-soft); }

:where(body.page-attendance) .att-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 1400px; }

:where(body.page-attendance) .att-table thead { position: sticky; top: 0; z-index: 20; }

:where(body.page-attendance) .att-table th {
  background: var(--surface-2); padding: 14px 8px;
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  text-align: center; white-space: nowrap;
}

:where(body.page-attendance) .att-table th.day-h { min-width: 42px; position: relative; }

:where(body.page-attendance) .att-table th.day-h .day-num { font-size: 13px; font-weight: 700; color: var(--text); display: block; }

:where(body.page-attendance) .att-table th.day-h .day-name { font-size: 10px; opacity: 0.75; font-weight: 500; }

:where(body.page-attendance) .att-table th.day-h.weekend { background: #fffbeb; }

:where(body.page-attendance) .att-table th.day-h.weekend .day-num { color: #92400e; }

:where(body.page-attendance) .att-table th.day-h.today {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
}

:where(body.page-attendance) .att-table th.day-h.today .day-num, :where(body.page-attendance) .att-table th.day-h.today .day-name { color: white; }

:where(body.page-attendance) .att-table td {
  padding: 0; border-bottom: 1px solid var(--surface-2);
  text-align: center; height: 56px; vertical-align: middle;
}

:where(body.page-attendance) .att-table tbody tr { transition: background 0.1s; }

:where(body.page-attendance) .att-table tbody tr:hover { background: var(--surface-2); }

:where(body.page-attendance) .att-table tbody tr:last-child td { border-bottom: none; }

:where(body.page-attendance) .att-table .col-employee {
  position: sticky; left: 0; z-index: 5;
  background: var(--surface); text-align: left !important;
  padding: 12px 18px !important; min-width: 240px;
  box-shadow: 4px 0 12px -4px rgba(15,23,42,0.06);
  border-right: 1px solid var(--border);
}

:where(body.page-attendance) .att-table tbody tr:hover .col-employee { background: var(--surface-2); }

:where(body.page-attendance) .att-table th.col-employee { background: var(--surface-2) !important; }

:where(body.page-attendance) .att-emp-info { display: flex; align-items: center; gap: 12px; }

:where(body.page-attendance) .att-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #0b2b3f, #1a5d7f);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 600; font-size: 13px; flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(11,43,63,0.25); border: 2px solid white;
  overflow: hidden;
}

:where(body.page-attendance) .att-avatar img { width: 100%; height: 100%; object-fit: cover; }

:where(body.page-attendance) .att-avatar.c1 { background: linear-gradient(135deg, #f43f5e, #ec4899); }

:where(body.page-attendance) .att-avatar.c2 { background: linear-gradient(135deg, #f59e0b, #ef4444); }

:where(body.page-attendance) .att-avatar.c3 { background: linear-gradient(135deg, #10b981, #06b6d4); }

:where(body.page-attendance) .att-avatar.c4 { background: linear-gradient(135deg, #8b5cf6, #d946ef); }

:where(body.page-attendance) .att-avatar.c5 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }

:where(body.page-attendance) .att-avatar.c6 { background: linear-gradient(135deg, #14b8a6, #84cc16); }

:where(body.page-attendance) .att-avatar.c7 { background: linear-gradient(135deg, #f97316, #facc15); }

:where(body.page-attendance) .att-emp-name { font-weight: 600; font-size: 14px; color: var(--text); }

:where(body.page-attendance) .att-cell {
  width: 38px; height: 38px; margin: 0 auto;
  border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

:where(body.page-attendance) .att-cell:hover { transform: scale(1.12); box-shadow: var(--shadow-md); }

:where(body.page-attendance) .att-cell.present { background: var(--present-bg);  color: var(--present); }

:where(body.page-attendance) .att-cell.late { background: var(--late-bg);     color: var(--late); }

:where(body.page-attendance) .att-cell.half_day { background: var(--halfday-bg); color: var(--halfday); }

:where(body.page-attendance) .att-cell.absent { background: var(--absent-bg);   color: var(--absent); }

:where(body.page-attendance) .att-cell.leave { background: var(--leave-bg);    color: var(--leave); }

:where(body.page-attendance) .att-cell.unmarked { background: transparent; color: var(--border-strong); font-size: 18px; }

:where(body.page-attendance) .att-cell.unmarked:hover { background: var(--surface-2); color: var(--text-muted); }

:where(body.page-attendance) .att-table td.is-today .att-cell::after {
  content: ''; position: absolute; inset: -3px;
  border: 2px solid var(--primary); border-radius: 12px; pointer-events: none;
}

:where(body.page-attendance) .att-table td.is-weekend { background: rgba(254,243,199,0.18); }

:where(body.page-attendance) .att-table .col-summary {
  position: sticky; right: 0; z-index: 5; background: var(--surface);
  min-width: 200px; box-shadow: -4px 0 12px -4px rgba(15,23,42,0.06);
  border-left: 1px solid var(--border); padding: 10px 14px !important;
}

:where(body.page-attendance) .att-table tbody tr:hover .col-summary { background: var(--surface-2); }

:where(body.page-attendance) .att-table th.col-summary { background: var(--surface-2) !important; }

:where(body.page-attendance) .att-sum-chips { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }

:where(body.page-attendance) .att-sum-chip {
  font-size: 10.5px; font-weight: 700; padding: 3px 8px;
  border-radius: 20px; display: inline-flex; align-items: center; gap: 3px;
}

:where(body.page-attendance) .att-sum-chip.present { background: var(--present-bg);  color: #065f46; }

:where(body.page-attendance) .att-sum-chip.late { background: var(--late-bg);     color: #92400e; }

:where(body.page-attendance) .att-sum-chip.half_day { background: var(--halfday-bg); color: #5b21b6; }

:where(body.page-attendance) .att-sum-chip.absent { background: var(--absent-bg);   color: #9f1239; }

:where(body.page-attendance) .att-sum-chip.leave { background: var(--leave-bg);    color: #075985; }

/* POPOVER */

:where(body.page-attendance) .att-pop-backdrop { display: none; position: fixed; inset: 0; z-index: 99; }

:where(body.page-attendance) .att-pop-backdrop.show { display: block; }

:where(body.page-attendance) .att-popover {
  position: absolute; width: 340px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-xl); z-index: 100;
  opacity: 0; transform: translateY(-6px) scale(0.97);
  pointer-events: none; transition: opacity 0.18s, transform 0.18s;
}

:where(body.page-attendance) .att-popover.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

:where(body.page-attendance) .att-pop-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px 14px; border-bottom: 1px solid var(--border);
}

:where(body.page-attendance) .att-pop-avatar { width: 40px; height: 40px; flex-shrink: 0; }

:where(body.page-attendance) .att-pop-name { font-size: 14.5px; font-weight: 600; color: var(--text); }

:where(body.page-attendance) .att-pop-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

:where(body.page-attendance) .att-pop-close {
  margin-left: auto; width: 28px; height: 28px; border-radius: 8px;
  background: transparent; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-soft); transition: all 0.15s;
}

:where(body.page-attendance) .att-pop-close:hover { background: var(--surface-2); color: var(--text); }

:where(body.page-attendance) .att-pop-close svg { width: 16px; height: 16px; }

:where(body.page-attendance) .att-pop-body { padding: 16px 18px; }

:where(body.page-attendance) .att-pop-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); margin-bottom: 8px;
}

:where(body.page-attendance) .att-status-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 6px; margin-bottom: 18px;
}

:where(body.page-attendance) .att-status-opt {
  border: 1.5px solid var(--border); background: var(--surface);
  border-radius: 10px; padding: 10px 4px; cursor: pointer;
  text-align: center; transition: all 0.15s;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: inherit;
}

:where(body.page-attendance) .att-status-opt:hover { transform: translateY(-1px); border-color: var(--border-strong); }

:where(body.page-attendance) .att-status-opt .opt-icon { font-size: 18px; line-height: 1; }

:where(body.page-attendance) .att-status-opt .opt-name { font-size: 10.5px; font-weight: 600; color: var(--text-muted); }

:where(body.page-attendance) .att-status-opt.selected.present { background: var(--present-bg);  border-color: var(--present); }

:where(body.page-attendance) .att-status-opt.selected.late { background: var(--late-bg);     border-color: var(--late); }

:where(body.page-attendance) .att-status-opt.selected.half_day { background: var(--halfday-bg); border-color: var(--halfday); }

:where(body.page-attendance) .att-status-opt.selected.absent { background: var(--absent-bg);   border-color: var(--absent); }

:where(body.page-attendance) .att-status-opt.selected.leave { background: var(--leave-bg);    border-color: var(--leave); }

:where(body.page-attendance) .att-status-opt.selected .opt-name { color: var(--text); }

:where(body.page-attendance) .att-time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }

:where(body.page-attendance) .att-time-field label {
  display: block; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); margin-bottom: 6px;
}

:where(body.page-attendance) .att-time-field input {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 13px;
  background: var(--surface-2); outline: none;
}

:where(body.page-attendance) .att-time-field input:focus {
  border-color: var(--primary); background: white;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

:where(body.page-attendance) .att-pop-actions { display: flex; gap: 8px; }

:where(body.page-attendance) .att-btn {
  flex: 1; padding: 10px 14px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface);
  font-family: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  color: var(--text);
}

:where(body.page-attendance) .att-btn:hover { background: var(--surface-2); }

:where(body.page-attendance) .att-btn.primary {
  background: var(--primary); color: white;
  border-color: var(--primary); flex: 2;
}

:where(body.page-attendance) .att-btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

:where(body.page-attendance) .att-btn.danger { color: var(--absent); }

:where(body.page-attendance) .att-btn.danger:hover { background: var(--absent-soft); border-color: var(--absent-bg); }

:where(body.page-attendance) .att-btn svg { width: 14px; height: 14px; }

/* TOAST */

:where(body.page-attendance) .att-toast-stack {
  position: fixed; top: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px; z-index: 200;
}

:where(body.page-attendance) .att-toast {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-xl); min-width: 280px;
  animation: attToastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

:where(body.page-attendance) .att-toast.removing { animation: attToastOut 0.25s forwards; }

:where(body.page-attendance) .att-toast .t-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

:where(body.page-attendance) .att-toast .t-icon svg { width: 16px; height: 16px; }

:where(body.page-attendance) .att-toast.success .t-icon { background: var(--present-bg); color: var(--present); }

:where(body.page-attendance) .att-toast.error   .t-icon { background: var(--absent-bg);  color: var(--absent); }

:where(body.page-attendance) .att-toast.info    .t-icon { background: var(--leave-bg);   color: var(--leave); }

@keyframes attToastIn { from {opacity:0; transform:translateX(40px);} to {opacity:1; transform:translateX(0);} }

@keyframes attToastOut { to {opacity:0; transform:translateX(40px);} }

@media (max-width: 1100px) {
:where(body.page-attendance) .att-stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
:where(body.page-attendance) #att-app { padding: 14px; }

:where(body.page-attendance) .att-stats-grid { grid-template-columns: repeat(2, 1fr); }

:where(body.page-attendance) .att-hero-row { flex-direction: column; align-items: stretch; }

:where(body.page-attendance) .att-controls { flex-direction: column; align-items: stretch; }

:where(body.page-attendance) .att-search { min-width: 0; }

:where(body.page-attendance) .att-popover { width: calc(100vw - 28px); }
}

/* ==================== Payroll (page-payroll) ==================== */

/* ===== PREMIUM STYLING (COMPACT) ===== */

body:where(.page-payroll) {
            background: var(--gray-100);
        }

:where(body.page-payroll) .main-content {
            padding: 15px;
        }

:where(body.page-payroll) .main {
            flex: 1;
            margin-left: 150px;
        }

/* ===== PREMIUM HEADER (COMPACT) ===== */

:where(body.page-payroll) .premium-header {
            background: linear-gradient(135deg, #1e4a6d, #2c7da0);
            border-radius: 16px;
            padding: 25px 30px;
            margin-bottom: 20px;
            box-shadow: var(--shadow-lg);
            color: white;
            position: relative;
            overflow: hidden;
        }

:where(body.page-payroll) .premium-header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: rotate 20s linear infinite;
        }

/* @keyframes rotate — deduped, defined once in the shared keyframes section above */

:where(body.page-payroll) .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            z-index: 2;
        }

:where(body.page-payroll) .premium-title {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 5px;
        }

:where(body.page-payroll) .premium-subtitle {
            font-size: 14px;
            opacity: 0.9;
        }

:where(body.page-payroll) .header-stats {
            display: flex;
            align-items: center;
            gap: 25px;
            background: rgba(255,255,255,0.1);
            backdrop-filter: blur(10px);
            padding: 15px 25px;
            border-radius: 40px;
            border: 1px solid rgba(255,255,255,0.2);
        }

:where(body.page-payroll) .stat-item {
            text-align: center;
            min-width: 100px;
        }

:where(body.page-payroll) .stat-label {
            font-size: 12px;
            opacity: 0.8;
            display: block;
            margin-bottom: 5px;
        }

:where(body.page-payroll) .stat-value-large {
            font-size: 22px;
            font-weight: 700;
        }

:where(body.page-payroll) .stat-divider {
            width: 1px;
            height: 35px;
            background: rgba(255,255,255,0.2);
        }

/* ===== FILTERS CARD (COMPACT) ===== */

:where(body.page-payroll) .filters-card {
            background: white;
            border-radius: 12px;
            padding: 15px 20px;
            margin-bottom: 20px;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--gray-200);
        }

:where(body.page-payroll) .filters-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

:where(body.page-payroll) .filter-group {
            display: flex;
            align-items: center;
            gap: 12px;
        }

:where(body.page-payroll) .filter-label {
            font-weight: 600;
            color: var(--gray-800);
            font-size: 13px;
        }

:where(body.page-payroll) .custom-select-wrapper {
            position: relative;
            min-width: 220px;
        }

:where(body.page-payroll) .custom-select {
            width: 100%;
            padding: 10px 35px 10px 14px;
            background: var(--gray-50);
            border: 1px solid var(--gray-300);
            border-radius: 8px;
            font-size: 13px;
            color: var(--gray-800);
            appearance: none;
            cursor: pointer;
        }

:where(body.page-payroll) .custom-select:hover {
            border-color: var(--primary);
        }

:where(body.page-payroll) .select-arrow {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray-500);
            font-size: 10px;
        }

:where(body.page-payroll) .btn-view {
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 10px 20px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
        }

:where(body.page-payroll) .btn-view:hover {
            background: var(--primary-dark);
        }

:where(body.page-payroll) .filter-badges {
            display: flex;
            gap: 8px;
        }

:where(body.page-payroll) .badge {
            padding: 5px 14px;
            border-radius: 25px;
            font-size: 12px;
            font-weight: 500;
        }

:where(body.page-payroll) .badge-current {
            background: #e8f5e9;
            color: var(--success);
        }

/* ===== STATS GRID (COMPACT) ===== */

:where(body.page-payroll) .stats-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }

:where(body.page-payroll) .stat-card {
            background: white;
            border-radius: 12px;
            padding: 18px;
            display: flex;
            align-items: center;
            gap: 15px;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--gray-200);
            transition: all 0.3s;
        }

:where(body.page-payroll) .stat-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }

:where(body.page-payroll) .stat-icon {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            color: white;
            flex-shrink: 0;
        }

/* Deduction icon - red theme */

:where(body.page-payroll) .stat-icon.deduction-icon {
            background: linear-gradient(135deg, var(--danger), #ef5350);
        }

:where(body.page-payroll) .stat-content .stat-label {
            font-size: 12px;
            color: var(--gray-600);
            margin-bottom: 4px;
        }

:where(body.page-payroll) .stat-content .stat-value {
            font-size: 18px;
            font-weight: 700;
            color: var(--gray-800);
        }

/* Bonus badge style */

:where(body.page-payroll) .bonus-badge-mini {
            background: #e8f5e9;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 11px;
            color: var(--success);
            font-weight: 600;
            white-space: nowrap;
        }

/* Deduction badge style */

:where(body.page-payroll) .deduction-badge-mini {
            background: #ffebee;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 11px;
            color: var(--danger);
            font-weight: 600;
            white-space: nowrap;
        }

/* ===== TABLE CARD (COMPACT) ===== */

:where(body.page-payroll) .table-card {
            background: white;
            border-radius: 16px;
            padding: 20px;
            box-shadow: var(--shadow-md);
            border: 1px solid var(--gray-200);
        }

:where(body.page-payroll) .table-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

:where(body.page-payroll) .table-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--gray-800);
        }

:where(body.page-payroll) .table-subtitle {
            font-size: 13px;
            color: var(--gray-600);
            margin-top: 2px;
        }

/* Temp employee badge */

:where(body.page-payroll) .temp-badge {
            background: #ff9800;
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 4px;
            margin-left: 6px;
            vertical-align: middle;
        }

/* Remove button */

:where(body.page-payroll) .btn-remove-temp {
            background: var(--danger);
            color: white;
            border: none;
            border-radius: 4px;
            padding: 4px 8px;
            font-size: 11px;
            cursor: pointer;
        }

:where(body.page-payroll) .btn-remove-temp:hover {
            background: #b71c1c;
        }

/* Popup form */

:where(body.page-payroll) .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            align-items: center;
            justify-content: center;
        }

:where(body.page-payroll) .modal-content {
            background: white;
            padding: 25px;
            border-radius: 16px;
            max-width: 450px;
            width: 90%;
            box-shadow: var(--shadow-lg);
        }

:where(body.page-payroll) .modal-content h3 {
            margin-bottom: 20px;
            color: var(--primary);
        }

:where(body.page-payroll) .modal-content input, :where(body.page-payroll) .modal-content textarea {
            width: 100%;
            padding: 10px 14px;
            margin-bottom: 15px;
            border: 1px solid var(--gray-300);
            border-radius: 8px;
            font-size: 14px;
        }

:where(body.page-payroll) .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 15px;
        }

:where(body.page-payroll) .btn-primary, :where(body.page-payroll) .btn-secondary {
            padding: 8px 18px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            border: none;
        }

:where(body.page-payroll) .btn-secondary {
            background: var(--gray-200);
            color: var(--gray-800);
        }

:where(body.page-payroll) .btn-secondary:hover {
            background: var(--gray-300);
        }

/* ===== COMPACT TABLE ===== */

:where(body.page-payroll) .compact-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }

:where(body.page-payroll) .compact-table th {
            text-align: left;
            padding: 12px 10px;
            color: var(--gray-600);
            font-weight: 600;
            border-bottom: 2px solid var(--gray-200);
        }

:where(body.page-payroll) .compact-table td {
            padding: 12px 10px;
            border-bottom: 1px solid var(--gray-200);
            vertical-align: middle;
        }

:where(body.page-payroll) .compact-table tbody tr:hover {
            background: var(--gray-50);
        }

/* Employee Info with Image */

:where(body.page-payroll) .employee-info-compact {
            display: flex;
            align-items: center;
            gap: 12px;
        }

:where(body.page-payroll) .employee-avatar-wrapper {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            overflow: hidden;
            flex-shrink: 0;
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            display: flex;
            align-items: center;
            justify-content: center;
        }

:where(body.page-payroll) .employee-avatar-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

:where(body.page-payroll) .employee-avatar-initials {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 14px;
        }

:where(body.page-payroll) .emp-role {
            font-size: 11px;
            color: var(--gray-600);
        }

/* Badges */

:where(body.page-payroll) .badge-day {
            background: var(--gray-200);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            white-space: nowrap;
        }

:where(body.page-payroll) .badge-day.active {
            background: #e8f5e9;
            color: var(--success);
        }

:where(body.page-payroll) .commission-badge-mini {
            background: #fff3e0;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 11px;
            color: var(--warning);
            font-weight: 600;
            white-space: nowrap;
        }

:where(body.page-payroll) .total-cell {
            font-weight: 700;
            color: var(--primary);
        }

/* ===== STATUS DROPDOWN WITH COLORS (NEW) ===== */

:where(body.page-payroll) .status-select-mini {
            padding: 5px 8px;
            border: 1px solid var(--gray-300);
            border-radius: 20px;
            font-size: 11px;
            background: white;
            cursor: pointer;
            width: 100px;
            font-weight: 600;
            transition: all 0.2s ease;
        }

/* PENDING - Orange */

:where(body.page-payroll) .status-select-mini.status-pending {
            background: #fff3e0;
            color: var(--warning);
            border-color: #ffcc80;
        }

/* SENT - Blue */

:where(body.page-payroll) .status-select-mini.status-sent {
            background: #e3f2fd;
            color: #0288d1;
            border-color: #90caf9;
        }

/* DONE - Green */

:where(body.page-payroll) .status-select-mini.status-done {
            background: #e8f5e9;
            color: var(--success);
            border-color: #a5d6a7;
        }

:where(body.page-payroll) .status-badge-mini {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            display: inline-block;
            width: 80px;
            text-align: center;
        }

:where(body.page-payroll) .status-badge-mini.warning {
            background: #fff3e0;
            color: var(--warning);
        }

:where(body.page-payroll) .status-badge-mini.info {
            background: #e3f2fd;
            color: #0288d1;
        }

:where(body.page-payroll) .status-badge-mini.success {
            background: #e8f5e9;
            color: var(--success);
        }

/* Actions */

:where(body.page-payroll) .action-group-mini {
            display: flex;
            gap: 4px;
        }

:where(body.page-payroll) .action-btn-mini {
            width: 30px;
            height: 30px;
            border-radius: 6px;
            background: var(--gray-100);
            border: 1px solid var(--gray-300);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: var(--gray-600);
            font-size: 14px;
        }

:where(body.page-payroll) .action-btn-mini:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

:where(body.page-payroll) .action-btn-mini.commission:hover {
            background: var(--warning);
            border-color: var(--warning);
        }

:where(body.page-payroll) .action-btn-mini.bonus:hover {
            background: var(--success);
            border-color: var(--success);
        }

:where(body.page-payroll) .action-btn-mini.deduction:hover {
            background: var(--danger);
            border-color: var(--danger);
        }

/* Notification Toast */

:where(body.page-payroll) .notification-toast {
            position: fixed;
            top: 20px;
            right: 20px;
            background: white;
            border-radius: 8px;
            padding: 12px 20px;
            box-shadow: var(--shadow-lg);
            display: flex;
            align-items: center;
            gap: 10px;
            z-index: 9999;
            transform: translateX(400px);
            transition: transform 0.3s ease;
            border-left: 4px solid var(--success);
        }

:where(body.page-payroll) .notification-toast.show {
            transform: translateX(0);
        }

:where(body.page-payroll) .notification-toast.error {
            border-left-color: var(--danger);
        }

:where(body.page-payroll) .notification-toast i {
            font-size: 20px;
        }

:where(body.page-payroll) .notification-toast.success i {
            color: var(--success);
        }

:where(body.page-payroll) .notification-toast.error i {
            color: var(--danger);
        }

:where(body.page-payroll) .notification-toast span {
            font-size: 14px;
            font-weight: 500;
            color: var(--gray-800);
        }

/* Responsive */

@media (max-width: 1200px) {
:where(body.page-payroll) .stats-grid {
                grid-template-columns: repeat(3, 1fr);
            }
}

@media (max-width: 768px) {
:where(body.page-payroll) .header-content {
                flex-direction: column;
                gap: 15px;
            }

:where(body.page-payroll) .stats-grid {
                grid-template-columns: 1fr;
            }

:where(body.page-payroll) .filters-container {
                flex-direction: column;
                align-items: stretch;
            }

:where(body.page-payroll) .filter-group {
                flex-direction: column;
                align-items: stretch;
            }

:where(body.page-payroll) .custom-select-wrapper {
                width: 100%;
            }
}

/* ==================== Payroll weekend calculation (page-payroll_calculate) ==================== */

body:where(.page-payroll_calculate) { font-family: Arial; padding:20px; background:#f4f4f4; }

:where(body.page-payroll_calculate) .container { max-width:700px; margin:0 auto; background:white; padding:25px; border-radius:12px; }

:where(body.page-payroll_calculate) .info { display:flex; gap:20px; margin:20px 0; }

:where(body.page-payroll_calculate) .info-box { flex:1; background:#f0f0f0; padding:15px; text-align:center; border-radius:8px; }

:where(body.page-payroll_calculate) #calendar { display:grid; grid-template-columns:repeat(7,1fr); gap:5px; margin:20px 0; }

:where(body.page-payroll_calculate) .date-box { padding:15px; text-align:center; border:2px solid #ddd; cursor:pointer; background:white; border-radius:5px; }

:where(body.page-payroll_calculate) .date-box.weekend { background:#fff3cd; border-color:#ffc107; }

:where(body.page-payroll_calculate) .date-box.selected { background:#007bff; color:white; border-color:#0056b3; }

:where(body.page-payroll_calculate) .btn { padding:10px 20px; border:none; border-radius:5px; cursor:pointer; margin:5px; }

:where(body.page-payroll_calculate) .btn-primary { background:#007bff; color:white; }

:where(body.page-payroll_calculate) .btn-danger { background:#dc3545; color:white; }

:where(body.page-payroll_calculate) .btn-success { background:#28a745; color:white; }

/* ==================== Leave management (page-leave_management) ==================== */

:where(body.page-leave_management) * { margin:0; padding:0; box-sizing:border-box; font-family:'Segoe UI',sans-serif; }

body:where(.page-leave_management) { background: var(--gray-100); }

:where(body.page-leave_management) .main { margin-left: 150px; padding: 20px; }

:where(body.page-leave_management) .main-content { max-width: 1400px; margin: 0 auto; }

:where(body.page-leave_management) .page-header {
            background: white; border-radius: 16px; padding: 25px 30px;
            margin-bottom: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            display: flex; justify-content: space-between; align-items: center;
            flex-wrap: wrap; gap: 15px;
        }

:where(body.page-leave_management) .page-title { font-size: 24px; font-weight: 700; color: var(--primary); }

:where(body.page-leave_management) .page-title i { margin-right: 10px; color: var(--warning); }

:where(body.page-leave_management) .stats-grid {
            display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
            margin-bottom: 25px;
        }

:where(body.page-leave_management) .stat-card {
            background: white; border-radius: 16px; padding: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05); border-left: 5px solid var(--primary);
        }

:where(body.page-leave_management) .stat-number { font-size: 28px; font-weight: 700; color: var(--primary); }

:where(body.page-leave_management) .stat-label { color: var(--gray-600); font-size: 14px; margin-top: 5px; }

:where(body.page-leave_management) .section-title {
            font-size: 18px; font-weight: 600; color: var(--primary);
            margin: 20px 0 15px; padding-bottom: 10px;
            border-bottom: 2px solid var(--gray-200);
            display: flex; justify-content: space-between; align-items: center;
        }

:where(body.page-leave_management) .employees-grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 15px; margin-bottom: 30px;
        }

:where(body.page-leave_management) .employee-card {
            background: white; border-radius: 12px; padding: 15px;
            border: 1px solid var(--gray-200); transition: all 0.3s;
        }

:where(body.page-leave_management) .employee-card:hover {
            box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-color: var(--primary);
        }

:where(body.page-leave_management) .employee-header {
            display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
        }

:where(body.page-leave_management) .employee-avatar {
            width: 50px; height: 50px; border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), #3b82f6);
            display: flex; align-items: center; justify-content: center;
            color: white; font-weight: 600; font-size: 18px; flex-shrink: 0;
        }

:where(body.page-leave_management) .employee-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

:where(body.page-leave_management) .employee-details { flex: 1; }

:where(body.page-leave_management) .employee-details h4 { font-size: 16px; font-weight: 600; color: var(--gray-800); }

:where(body.page-leave_management) .employee-details p { font-size: 12px; color: var(--gray-600); }

:where(body.page-leave_management) .doj-badge {
            display: inline-block;
            background: #e0f2fe;
            color: #0369a1;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 10px;
            font-weight: 600;
            margin-top: 4px;
        }

:where(body.page-leave_management) .leave-bar { margin: 10px 0; }

:where(body.page-leave_management) .leave-label {
            display: flex; justify-content: space-between;
            font-size: 12px; margin-bottom: 3px;
        }

:where(body.page-leave_management) .progress-fill { height: 100%; border-radius: 4px; }

:where(body.page-leave_management) .sick-fill { background: var(--warning); }

:where(body.page-leave_management) .casual-fill { background: var(--success); }

:where(body.page-leave_management) .action-buttons {
            display: flex; gap: 8px; margin-top: 15px; flex-wrap: wrap;
        }

:where(body.page-leave_management) .btn {
            padding: 6px 12px; border: none; border-radius: 6px;
            font-size: 12px; font-weight: 500; cursor: pointer;
            text-decoration: none; display: inline-flex; align-items: center;
            gap: 5px; transition: all 0.2s;
        }

:where(body.page-leave_management) .btn-success { background: var(--success); color: white; }

:where(body.page-leave_management) .btn-info { background: var(--info); color: white; }

:where(body.page-leave_management) .btn:hover { opacity: 0.9; transform: scale(1.02); }

:where(body.page-leave_management) .info-text {
            font-size: 11px;
            color: var(--gray-600);
            margin-top: 5px;
        }

@media (max-width: 768px) {
:where(body.page-leave_management) .main { margin-left: 0; }

:where(body.page-leave_management) .stats-grid { grid-template-columns: 1fr; }

:where(body.page-leave_management) .employees-grid { grid-template-columns: 1fr; }
}

:where(body.page-leave_management) .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

:where(body.page-leave_management) .modal-content {
    background: white;
    padding: 25px;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

:where(body.page-leave_management) .modal-content h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

:where(body.page-leave_management) .modal-content .form-group {
    margin-bottom: 15px;
}

:where(body.page-leave_management) .modal-content label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 5px;
}

:where(body.page-leave_management) .modal-content input, :where(body.page-leave_management) .modal-content select, :where(body.page-leave_management) .modal-content textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
}

:where(body.page-leave_management) .modal-content input:focus, :where(body.page-leave_management) .modal-content select:focus, :where(body.page-leave_management) .modal-content textarea:focus {
    border-color: var(--primary);
    outline: none;
}

:where(body.page-leave_management) .modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

:where(body.page-leave_management) .alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

:where(body.page-leave_management) .alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #059669;
}

:where(body.page-leave_management) .alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

:where(body.page-leave_management) .search-box {
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    width: 250px;
}

:where(body.page-leave_management) .search-box:focus {
    border-color: var(--primary);
    outline: none;
}

:where(body.page-leave_management) .stats-grid .stat-card:nth-child(1), :where(body.page-leave_management) .stats-grid .stat-card:nth-child(2) {
    display: none;
}

/* ==================== Leave history (page-leave_history) ==================== */

:where(body.page-leave_history) * { margin:0; padding:0; box-sizing:border-box; font-family:'Segoe UI',sans-serif; }

body:where(.page-leave_history) { background: var(--gray-100); }

:where(body.page-leave_history) .main { margin-left: 150px; padding: 20px; }

:where(body.page-leave_history) .main-content { max-width: 1200px; margin: 0 auto; }

:where(body.page-leave_history) .page-header {
            background: white; border-radius: 16px; padding: 25px 30px;
            margin-bottom: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            display: flex; justify-content: space-between; align-items: center;
        }

:where(body.page-leave_history) .page-title { font-size: 24px; font-weight: 700; color: var(--primary); }

:where(body.page-leave_history) .page-title i { margin-right: 10px; color: var(--warning); }

:where(body.page-leave_history) .employee-card {
            background: white; border-radius: 16px; padding: 20px;
            margin-bottom: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            display: flex; align-items: center; gap: 20px;
        }

:where(body.page-leave_history) .employee-avatar {
            width: 80px; height: 80px; border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), #3b82f6);
            display: flex; align-items: center; justify-content: center;
            color: white; font-size: 32px; font-weight: 600;
        }

:where(body.page-leave_history) .employee-info h2 { font-size: 24px; color: var(--gray-800); }

:where(body.page-leave_history) .employee-info p { color: var(--gray-600); margin-top: 5px; }

:where(body.page-leave_history) .balance-grid {
            display: grid; grid-template-columns: repeat(3, 1fr);
            gap: 15px; margin-bottom: 25px;
        }

:where(body.page-leave_history) .balance-card {
            background: white; border-radius: 12px; padding: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            border-left: 4px solid var(--primary);
        }

:where(body.page-leave_history) .balance-card h4 { color: var(--gray-600); font-size: 14px; }

:where(body.page-leave_history) .balance-number { font-size: 24px; font-weight: 700; color: var(--primary); margin: 5px 0; }

:where(body.page-leave_history) .balance-label { font-size: 12px; color: var(--gray-600); }

:where(body.page-leave_history) .history-grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px; margin-bottom: 30px;
        }

:where(body.page-leave_history) .history-card {
            background: white; border-radius: 12px; padding: 15px;
            border: 1px solid var(--gray-200);
        }

:where(body.page-leave_history) .month-year {
            font-size: 16px; font-weight: 600; color: var(--primary);
            margin-bottom: 10px; padding-bottom: 5px;
            border-bottom: 1px solid var(--gray-200);
        }

:where(body.page-leave_history) .stats {
            display: flex; gap: 15px;
        }

:where(body.page-leave_history) .stat-item { flex: 1; text-align: center; }

:where(body.page-leave_history) .stat-label { font-size: 11px; color: var(--gray-600); }

:where(body.page-leave_history) .stat-value { font-size: 18px; font-weight: 700; }

:where(body.page-leave_history) .table-card {
            background: white; border-radius: 16px; padding: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

:where(body.page-leave_history) .table-title {
            font-size: 18px; font-weight: 600; color: var(--primary);
            margin-bottom: 15px; padding-bottom: 10px;
            border-bottom: 2px solid var(--gray-200);
            display: flex; justify-content: space-between; align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

:where(body.page-leave_history) .bulk-actions {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
        }

:where(body.page-leave_history) .bulk-select {
            display: flex;
            align-items: center;
            gap: 5px;
        }

:where(body.page-leave_history) .bulk-btn {
            padding: 6px 12px;
            border: none;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }

:where(body.page-leave_history) .bulk-btn:hover {
            opacity: 0.9;
            transform: scale(1.02);
        }

:where(body.page-leave_history) .bulk-delete {
            background: var(--danger);
            color: white;
        }

:where(body.page-leave_history) .bulk-approve {
            background: var(--success);
            color: white;
        }

:where(body.page-leave_history) .bulk-reject {
            background: var(--warning);
            color: white;
        }

:where(body.page-leave_history) .leave-table {
            width: 100%; border-collapse: collapse;
        }

:where(body.page-leave_history) .leave-table th {
            text-align: left; padding: 12px; background: #f9fafb;
            color: var(--gray-600); font-weight: 600; font-size: 13px;
            border-bottom: 2px solid var(--gray-200);
        }

:where(body.page-leave_history) .leave-table td {
            padding: 12px; border-bottom: 1px solid var(--gray-200);
        }

:where(body.page-leave_history) .leave-table tbody tr:hover { background: #f9fafb; }

:where(body.page-leave_history) .checkbox-col {
            width: 40px;
            text-align: center;
        }

:where(body.page-leave_history) .status-badge {
            padding: 4px 12px; border-radius: 20px; font-size: 12px;
            font-weight: 500; display: inline-block;
        }

:where(body.page-leave_history) .status-pending { background: #fef3c7; color: #d97706; }

:where(body.page-leave_history) .status-approved { background: #d1fae5; color: #059669; }

:where(body.page-leave_history) .status-rejected { background: #fee2e2; color: #dc2626; }

:where(body.page-leave_history) .btn {
            padding: 8px 16px; border: none; border-radius: 8px;
            background: var(--primary); color: white; text-decoration: none;
            display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
            font-size: 14px;
        }

:where(body.page-leave_history) .btn:hover { background: var(--primary-dark); }

:where(body.page-leave_history) .btn-sm {
            padding: 4px 8px;
            font-size: 12px;
        }

:where(body.page-leave_history) .btn-edit {
            background: var(--info);
        }

:where(body.page-leave_history) .btn-delete {
            background: var(--danger);
        }

:where(body.page-leave_history) .action-buttons {
            display: flex;
            gap: 5px;
        }

:where(body.page-leave_history) .alert {
            padding: 15px 20px; border-radius: 10px; margin-bottom: 20px;
            display: flex; align-items: center; gap: 10px;
        }

:where(body.page-leave_history) .alert-success {
            background: #d1fae5; color: #065f46; border-left: 4px solid #059669;
        }

:where(body.page-leave_history) .alert-error {
            background: #fee2e2; color: #991b1b; border-left: 4px solid #dc2626;
        }

:where(body.page-leave_history) .alert-warning {
            background: #fff3cd; color: #856404; border-left: 4px solid #ffc107;
        }

:where(body.page-leave_history) .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            align-items: center;
            justify-content: center;
        }

:where(body.page-leave_history) .modal-content {
            background: white;
            padding: 25px;
            border-radius: 16px;
            width: 90%;
            max-width: 450px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        }

:where(body.page-leave_history) .modal-content h3 {
            margin-bottom: 15px;
            color: var(--primary);
        }

:where(body.page-leave_history) .modal-content .form-group {
            margin-bottom: 15px;
        }

:where(body.page-leave_history) .modal-content label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: var(--gray-600);
            margin-bottom: 5px;
        }

:where(body.page-leave_history) .modal-content input, :where(body.page-leave_history) .modal-content select, :where(body.page-leave_history) .modal-content textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid var(--gray-200);
            border-radius: 8px;
            font-size: 14px;
        }

:where(body.page-leave_history) .modal-content input:focus, :where(body.page-leave_history) .modal-content select:focus, :where(body.page-leave_history) .modal-content textarea:focus {
            border-color: var(--primary);
            outline: none;
        }

:where(body.page-leave_history) .modal-actions {
            display: flex;
            gap: 10px;
            margin-top: 20px;
        }

:where(body.page-leave_history) .employee-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 600;
    overflow: hidden;  /* ✅ Important for image */
}

:where(body.page-leave_history) .employee-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* ✅ Makes image fit properly */
}

@media (max-width: 768px) {
:where(body.page-leave_history) .main { margin-left: 0; }

:where(body.page-leave_history) .balance-grid { grid-template-columns: 1fr; }

:where(body.page-leave_history) .employee-card { flex-direction: column; text-align: center; }

:where(body.page-leave_history) .bulk-actions { justify-content: center; }
}

/* ==================== Reports (page-reports) ==================== */

body:where(.page-reports) {
            background: var(--gray-100);
            overflow-x: hidden;
        }

:where(body.page-reports) .main {
            margin-left: 150px;
            padding: 20px;
            transition: margin-left 0.3s ease;
            min-height: 100vh;
            background: var(--gray-100);
            width: calc(100% - 150px);
        }

:where(body.page-reports) .main-content {
            max-width: 1400px;
            margin: 0 auto;
        }

/* Page Header */

:where(body.page-reports) .page-header {
            background: white;
            border-radius: 16px;
            padding: 20px 30px;
            margin-bottom: 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            box-shadow: var(--shadow-md);
        }

:where(body.page-reports) .page-header h1 {
            font-size: 24px;
            font-weight: 600;
            color: var(--primary);
            margin: 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

:where(body.page-reports) .filter-section {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
        }

:where(body.page-reports) .month-select, :where(body.page-reports) .year-select {
            padding: 10px 15px;
            border: 1px solid var(--gray-200);
            border-radius: 10px;
            font-size: 14px;
            min-width: 120px;
            background: white;
        }

:where(body.page-reports) .month-select:focus, :where(body.page-reports) .year-select:focus {
            border-color: var(--primary);
            outline: none;
        }

:where(body.page-reports) .filter-action-btn {
            padding: 10px 20px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s;
        }

:where(body.page-reports) .filter-action-btn:hover {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

:where(body.page-reports) .export-btn {
            background: var(--success);
        }

:where(body.page-reports) .export-btn:hover {
            background: #0d9488;
        }

/* Cards Grid - Updated for 5 cards */

:where(body.page-reports) .cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

:where(body.page-reports) .card {
            background: white;
            border-radius: 16px;
            padding: 25px;
            box-shadow: var(--shadow-md);
            border-left: 5px solid var(--primary);
            transition: transform 0.3s;
        }

:where(body.page-reports) .card:nth-child(1) {
            border-left-color: var(--primary);
        }

:where(body.page-reports) .card:nth-child(2) {
            border-left-color: var(--warning);
        }

:where(body.page-reports) .card:nth-child(3) {
            border-left-color: var(--danger);
        }

:where(body.page-reports) .card:nth-child(4) {
            border-left-color: var(--success);
        }

:where(body.page-reports) .card:nth-child(5) {
            border-left-color: var(--purple);
        }

:where(body.page-reports) .card-value {
            font-size: 28px;
            font-weight: 700;
            color: var(--gray-800);
            margin-bottom: 5px;
        }

:where(body.page-reports) .card-label {
            color: var(--gray-500);
            font-size: 14px;
        }

:where(body.page-reports) .card-label i {
            margin-right: 5px;
            color: var(--primary);
        }

/* Directory Card */

:where(body.page-reports) .directory-card {
            background: white;
            border-radius: 16px;
            padding: 25px;
            box-shadow: var(--shadow-md);
            margin-bottom: 30px;
        }

:where(body.page-reports) .directory-card h3 {
            font-size: 18px;
            font-weight: 600;
            color: var(--primary);
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--gray-200);
            display: flex;
            align-items: center;
            gap: 10px;
        }

:where(body.page-reports) .directory-card h3 i {
            color: var(--warning);
        }

/* Table Styles */

:where(body.page-reports) .employee-table th {
            text-align: left;
            padding: 15px 12px;
            background: var(--gray-50);
            color: var(--gray-600);
            font-weight: 600;
            font-size: 13px;
            border-bottom: 2px solid var(--gray-200);
        }

:where(body.page-reports) .employee-table td {
            padding: 12px;
            border-bottom: 1px solid var(--gray-200);
        }

:where(body.page-reports) .employee-table tbody tr:hover {
            background: var(--gray-50);
        }

:where(body.page-reports) .badge-info {
            background: #e3f2fd;
            color: var(--info);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }

:where(body.page-reports) .badge-purple {
            background: #f3e8ff;
            color: var(--purple);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }

:where(body.page-reports) .action-btn {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: var(--gray-100);
            color: var(--gray-600);
            text-decoration: none;
            transition: all 0.2s;
        }

:where(body.page-reports) .action-btn:hover {
            background: var(--primary);
            color: white;
        }

/* Total Row */

:where(body.page-reports) .total-row {
            background: #f0f7ff !important;
            font-weight: bold;
        }

:where(body.page-reports) .total-row td {
            color: var(--primary);
            font-size: 15px;
        }

/* Responsive */

@media (max-width: 992px) {
:where(body.page-reports) .main {
                margin-left: 0;
                width: 100%;
            }
}

@media (max-width: 768px) {
:where(body.page-reports) .page-header {
                flex-direction: column;
                align-items: flex-start;
            }

:where(body.page-reports) .filter-section {
                width: 100%;
            }

:where(body.page-reports) .cards-grid {
                grid-template-columns: 1fr;
            }

:where(body.page-reports) .employee-table {
                font-size: 13px;
            }
}

/* ==================== Subscriptions (page-subscriptions) ==================== */

body:where(.page-subscriptions) { background: var(--gray-100); overflow-x: hidden; }

:where(body.page-subscriptions) .main {
            margin-left: 0; padding: 20px;
            transition: margin-left 0.3s ease;
            min-height: 100vh; background: var(--gray-100);
            width: 100%; overflow-x: auto;
        }

:where(body.page-subscriptions) .main-content { max-width: 1400px; margin: 0 auto; }

:where(body.page-subscriptions) .page-header {
            background: white; border-radius: 16px; padding: 20px 30px;
            margin-bottom: 25px; display: flex; justify-content: space-between;
            align-items: center; box-shadow: var(--shadow-md);
        }

:where(body.page-subscriptions) .page-header h1 {
            font-size: 24px; font-weight: 600; color: var(--primary);
            margin: 0; display: flex; align-items: center; gap: 10px;
        }

:where(body.page-subscriptions) .page-header h1 i { color: var(--warning); }

:where(body.page-subscriptions) .header-actions { display: flex; gap: 15px; }

:where(body.page-subscriptions) .btn {
            padding: 10px 20px; border: none; border-radius: 10px;
            font-size: 14px; font-weight: 500; cursor: pointer;
            display: inline-flex; align-items: center; gap: 8px;
            transition: all 0.3s;
        }

:where(body.page-subscriptions) .btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

:where(body.page-subscriptions) .btn-success { background: var(--success); color: white; }

:where(body.page-subscriptions) .btn-success:hover { background: #0d9488; }

:where(body.page-subscriptions) .stats-grid {
            display: grid; grid-template-columns: repeat(4, 1fr);
            gap: 20px; margin-bottom: 25px;
        }

:where(body.page-subscriptions) .stat-card {
            background: white; border-radius: 16px; padding: 20px;
            box-shadow: var(--shadow-md); display: flex;
            align-items: center; gap: 15px; transition: 0.3s;
        }

:where(body.page-subscriptions) .stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

:where(body.page-subscriptions) .stat-icon {
            width: 60px; height: 60px; border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            font-size: 28px;
        }

:where(body.page-subscriptions) .stat-icon.active { background: #e8f5e9; color: var(--success); }

:where(body.page-subscriptions) .stat-icon.expiring { background: #fff3e0; color: var(--warning); }

:where(body.page-subscriptions) .stat-icon.total { background: #e3f2fd; color: var(--info); }

:where(body.page-subscriptions) .stat-icon.cost { background: #f3e5f5; color: #8b5cf6; }

:where(body.page-subscriptions) .stat-info h3 { font-size: 14px; color: var(--gray-500); margin-bottom: 5px; }

:where(body.page-subscriptions) .stat-info .stat-value { font-size: 28px; font-weight: 700; color: var(--gray-800); }

:where(body.page-subscriptions) .stat-info .stat-label { font-size: 12px; color: var(--gray-500); margin-top: 5px; }

:where(body.page-subscriptions) .filter-section {
            background: white; border-radius: 16px; padding: 20px;
            margin-bottom: 25px; box-shadow: var(--shadow-md);
            display: flex; justify-content: space-between; align-items: center;
            flex-wrap: wrap; gap: 15px;
        }

:where(body.page-subscriptions) .filter-tabs {
            display: flex; gap: 10px; background: var(--gray-100);
            padding: 5px; border-radius: 40px;
        }

:where(body.page-subscriptions) .filter-tab {
            padding: 8px 20px; border-radius: 30px; font-size: 14px;
            font-weight: 500; cursor: pointer; transition: 0.2s;
            color: var(--gray-600);
        }

:where(body.page-subscriptions) .filter-tab:hover { background: white; color: var(--primary); box-shadow: var(--shadow-sm); }

:where(body.page-subscriptions) .filter-tab.active { background: var(--primary); color: white; }

:where(body.page-subscriptions) .search-box { position: relative; min-width: 300px; }

:where(body.page-subscriptions) .search-box input {
            width: 100%; padding: 12px 20px 12px 45px;
            border: 1px solid var(--gray-200); border-radius: 40px;
            font-size: 14px; transition: 0.3s;
        }

:where(body.page-subscriptions) .search-box input:focus {
            border-color: var(--primary); outline: none;
            box-shadow: 0 0 0 3px rgba(30,74,109,0.1);
        }

:where(body.page-subscriptions) .search-box i {
            position: absolute; left: 15px; top: 50%;
            transform: translateY(-50%); color: var(--gray-400);
        }

:where(body.page-subscriptions) .alert {
            padding: 15px 20px; border-radius: 10px; margin-bottom: 20px;
            display: flex; align-items: center; gap: 10px;
        }

:where(body.page-subscriptions) .alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid #059669; }

:where(body.page-subscriptions) .alert-error { background: #fee2e2; color: #991b1b; border-left: 4px solid #dc2626; }

:where(body.page-subscriptions) .table-card {
            background: white; border-radius: 16px; padding: 20px;
            box-shadow: var(--shadow-md); overflow: hidden;
        }

:where(body.page-subscriptions) .table-header {
            display: flex; justify-content: space-between; align-items: center;
            margin-bottom: 20px; flex-wrap: wrap; gap: 15px;
        }

:where(body.page-subscriptions) .table-title { display: flex; align-items: center; gap: 10px; }

:where(body.page-subscriptions) .table-title h2 { font-size: 18px; font-weight: 600; color: var(--gray-800); }

:where(body.page-subscriptions) .badge-count {
            background: var(--gray-200); color: var(--gray-600);
            padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500;
        }

:where(body.page-subscriptions) .subscriptions-table { width: 100%; border-collapse: collapse; min-width: 1200px; }

:where(body.page-subscriptions) .subscriptions-table th {
            text-align: left; padding: 15px 12px; background: var(--gray-50);
            color: var(--gray-600); font-weight: 600; font-size: 13px;
            border-bottom: 2px solid var(--gray-200); white-space: nowrap;
        }

:where(body.page-subscriptions) .subscriptions-table td {
            padding: 15px 12px; border-bottom: 1px solid var(--gray-200);
            vertical-align: middle; font-size: 14px;
        }

:where(body.page-subscriptions) .subscriptions-table tbody tr:hover { background: var(--gray-50); }

:where(body.page-subscriptions) .subscriptions-table tbody tr.expired { background: #fff5f5; }

:where(body.page-subscriptions) .subscriptions-table tbody tr.expiring { background: #fffbeb; }

:where(body.page-subscriptions) .service-info { display: flex; align-items: center; gap: 10px; }

:where(body.page-subscriptions) .service-icon {
            width: 40px; height: 40px; border-radius: 10px;
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            color: white; display: flex; align-items: center; justify-content: center; font-size: 18px;
        }

:where(body.page-subscriptions) .service-name { font-weight: 600; color: var(--gray-800); }

:where(body.page-subscriptions) .service-category { font-size: 11px; color: var(--gray-500); }

:where(body.page-subscriptions) .status-badge {
            padding: 5px 12px; border-radius: 30px; font-size: 12px;
            font-weight: 600; display: inline-block;
        }

:where(body.page-subscriptions) .status-active { background: #e8f5e9; color: var(--success); }

:where(body.page-subscriptions) .status-expiring { background: #fff3e0; color: var(--warning); }

:where(body.page-subscriptions) .status-expired { background: #ffebee; color: var(--danger); }

:where(body.page-subscriptions) .payment-info { display: flex; align-items: center; gap: 8px; }

:where(body.page-subscriptions) .card-mask {
            background: var(--gray-200); padding: 3px 8px;
            border-radius: 4px; font-family: monospace; font-size: 12px;
        }

:where(body.page-subscriptions) .progress-mini {
            width: 80px; height: 6px; background: var(--gray-200);
            border-radius: 3px; overflow: hidden; margin-top: 5px;
        }

:where(body.page-subscriptions) .progress-mini-fill { height: 100%; border-radius: 3px; }

:where(body.page-subscriptions) .progress-mini-fill.active { background: var(--success); }

:where(body.page-subscriptions) .progress-mini-fill.warning { background: var(--warning); }

:where(body.page-subscriptions) .progress-mini-fill.danger { background: var(--danger); }

:where(body.page-subscriptions) .amount-cell { font-weight: 600; color: var(--primary); }

:where(body.page-subscriptions) .billing-cycle { font-size: 11px; color: var(--gray-500); }

:where(body.page-subscriptions) .action-buttons { display: flex; gap: 6px; }

:where(body.page-subscriptions) .action-btn {
            width: 32px; height: 32px; border-radius: 6px; border: none;
            background: var(--gray-100); color: var(--gray-600); cursor: pointer;
            transition: 0.2s; display: flex; align-items: center; justify-content: center;
            font-size: 14px;
        }

:where(body.page-subscriptions) .action-btn:hover { background: var(--primary); color: white; transform: scale(1.1); }

:where(body.page-subscriptions) .action-btn.delete:hover { background: var(--danger); }

:where(body.page-subscriptions) .modal.active { display: flex; }

:where(body.page-subscriptions) .modal-content {
            background: white; border-radius: 20px; width: 90%;
            max-width: 600px; max-height: 90vh; overflow-y: auto;
            box-shadow: var(--shadow-xl);
        }

:where(body.page-subscriptions) .modal-header {
            padding: 20px 25px; border-bottom: 2px solid var(--gray-200);
            display: flex; justify-content: space-between; align-items: center;
        }

:where(body.page-subscriptions) .modal-header h2 { margin: 0; color: var(--primary); font-size: 20px; }

:where(body.page-subscriptions) .modal-close {
            background: none; border: none; font-size: 28px;
            cursor: pointer; color: var(--gray-500);
        }

:where(body.page-subscriptions) .modal-body { padding: 25px; }

:where(body.page-subscriptions) .form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

:where(body.page-subscriptions) .form-group { margin-bottom: 20px; }

:where(body.page-subscriptions) .form-group.full-width { grid-column: span 2; }

:where(body.page-subscriptions) .form-group label {
            display: block; font-size: 13px; font-weight: 600;
            color: var(--gray-700); margin-bottom: 5px;
        }

:where(body.page-subscriptions) .form-group input, :where(body.page-subscriptions) .form-group select, :where(body.page-subscriptions) .form-group textarea {
            width: 100%; padding: 12px; border: 1px solid var(--gray-300);
            border-radius: 10px; font-size: 14px; transition: 0.3s;
        }

:where(body.page-subscriptions) .form-group input:focus, :where(body.page-subscriptions) .form-group select:focus, :where(body.page-subscriptions) .form-group textarea:focus {
            border-color: var(--primary); outline: none;
            box-shadow: 0 0 0 3px rgba(30,74,109,0.1);
        }

:where(body.page-subscriptions) .form-row { display: flex; gap: 15px; align-items: center; }

:where(body.page-subscriptions) .card-input-wrapper { position: relative; flex: 1; }

:where(body.page-subscriptions) .card-input-wrapper input { padding-right: 60px; }

:where(body.page-subscriptions) .card-type {
            position: absolute; right: 12px; top: 50%;
            transform: translateY(-50%); color: var(--gray-400); font-size: 20px;
        }

:where(body.page-subscriptions) .modal-actions { display: flex; gap: 15px; justify-content: flex-end; margin-top: 30px; }

:where(body.page-subscriptions) .btn-secondary {
            background: var(--gray-200); color: var(--gray-700);
            padding: 12px 25px; border: none; border-radius: 10px;
            font-weight: 600; cursor: pointer;
        }

:where(body.page-subscriptions) .btn-secondary:hover { background: var(--gray-300); }

:where(body.page-subscriptions) .delete-modal { max-width: 400px; }

:where(body.page-subscriptions) .empty-state { text-align: center; padding: 60px 20px; }

:where(body.page-subscriptions) .empty-state i { font-size: 80px; color: var(--gray-300); margin-bottom: 20px; }

:where(body.page-subscriptions) .empty-state h3 { color: var(--gray-700); margin-bottom: 10px; }

:where(body.page-subscriptions) .empty-state p { color: var(--gray-500); margin-bottom: 25px; }

:where(body.page-subscriptions) .hint-text { color: #6c757d; display: block; margin-top: 5px; font-size: 11px; }

:where(body.page-subscriptions) .hint-text i { margin-right: 3px; }

@media (max-width: 1200px) {
:where(body.page-subscriptions) .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
:where(body.page-subscriptions) .main { margin-left: 0; width: 100%; padding: 15px; }
}

@media (max-width: 768px) {
:where(body.page-subscriptions) .stats-grid { grid-template-columns: 1fr; }

:where(body.page-subscriptions) .filter-section { flex-direction: column; }

:where(body.page-subscriptions) .search-box { width: 100%; min-width: auto; }

:where(body.page-subscriptions) .filter-tabs { width: 100%; overflow-x: auto; }
}

/* ==================== Upwork commissions (page-upwork_commissions) ==================== */

body:where(.page-upwork_commissions) {
            background: var(--gray-100);
        }

:where(body.page-upwork_commissions) .main {
            margin-left: 150px;
            padding: 20px;
        }

:where(body.page-upwork_commissions) .main-content {
            max-width: 1400px;
            margin: 0 auto;
        }

/* Page Header */

:where(body.page-upwork_commissions) .page-header {
            background: white;
            border-radius: 16px;
            padding: 20px 25px;
            margin-bottom: 25px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

:where(body.page-upwork_commissions) .page-title {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
        }

:where(body.page-upwork_commissions) .page-title i {
            margin-right: 10px;
            color: #f59e0b;
        }

:where(body.page-upwork_commissions) .filter-section {
            display: flex;
            gap: 12px;
            align-items: center;
            flex-wrap: wrap;
        }

:where(body.page-upwork_commissions) .filter-select {
            padding: 10px 15px;
            border: 1px solid var(--gray-200);
            border-radius: 10px;
            font-size: 14px;
            min-width: 150px;
            background: white;
        }

:where(body.page-upwork_commissions) .filter-select:focus {
            border-color: var(--primary);
            outline: none;
        }

:where(body.page-upwork_commissions) .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
        }

:where(body.page-upwork_commissions) .btn-success {
            background: var(--success);
            color: white;
        }

:where(body.page-upwork_commissions) .btn-success:hover {
            background: #0d9488;
        }

/* Stats Cards */

:where(body.page-upwork_commissions) .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
            margin-bottom: 25px;
        }

:where(body.page-upwork_commissions) .stat-card {
            background: white;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            border-left: 5px solid var(--primary);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

:where(body.page-upwork_commissions) .stat-info h3 {
            font-size: 14px;
            color: var(--gray-600);
            margin-bottom: 5px;
        }

:where(body.page-upwork_commissions) .stat-info .stat-value {
            font-size: 28px;
            font-weight: 700;
            color: var(--primary);
        }

:where(body.page-upwork_commissions) .stat-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary), #3b82f6);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 30px;
            color: white;
        }

/* Form Card */

:where(body.page-upwork_commissions) .form-card {
            background: white;
            border-radius: 16px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }

:where(body.page-upwork_commissions) .form-card h3 {
            margin-bottom: 20px;
            color: var(--primary);
            font-size: 18px;
        }

:where(body.page-upwork_commissions) .commission-form {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
        }

:where(body.page-upwork_commissions) .form-group {
            display: flex;
            flex-direction: column;
        }

:where(body.page-upwork_commissions) .form-group label {
            font-size: 13px;
            font-weight: 600;
            color: var(--gray-600);
            margin-bottom: 5px;
        }

:where(body.page-upwork_commissions) .form-group input, :where(body.page-upwork_commissions) .form-group select, :where(body.page-upwork_commissions) .form-group textarea {
            padding: 10px 12px;
            border: 1px solid var(--gray-200);
            border-radius: 8px;
            font-size: 14px;
        }

:where(body.page-upwork_commissions) .form-group input:focus, :where(body.page-upwork_commissions) .form-group select:focus, :where(body.page-upwork_commissions) .form-group textarea:focus {
            border-color: var(--primary);
            outline: none;
        }

/* Table Card */

:where(body.page-upwork_commissions) .table-card {
            background: white;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }

:where(body.page-upwork_commissions) .table-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 10px;
        }

:where(body.page-upwork_commissions) .table-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--primary);
        }

:where(body.page-upwork_commissions) .commission-table {
            width: 100%;
            border-collapse: collapse;
        }

:where(body.page-upwork_commissions) .commission-table th {
            text-align: left;
            padding: 12px 10px;
            background: #f9fafb;
            color: var(--gray-600);
            font-weight: 600;
            font-size: 13px;
            border-bottom: 2px solid var(--gray-200);
        }

:where(body.page-upwork_commissions) .commission-table td {
            padding: 12px 10px;
            border-bottom: 1px solid var(--gray-200);
            vertical-align: middle;
        }

:where(body.page-upwork_commissions) .commission-table tbody tr:hover {
            background: #f9fafb;
        }

:where(body.page-upwork_commissions) .employee-info {
            display: flex;
            align-items: center;
            gap: 10px;
        }

:where(body.page-upwork_commissions) .employee-avatar-wrapper {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            overflow: hidden;
            background: linear-gradient(135deg, var(--primary), #3b82f6);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            flex-shrink: 0;
        }

:where(body.page-upwork_commissions) .employee-avatar-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

:where(body.page-upwork_commissions) .employee-avatar-initials {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            color: white;
        }

:where(body.page-upwork_commissions) .employee-name {
            font-weight: 600;
            color: var(--gray-800);
        }

:where(body.page-upwork_commissions) .employee-designation {
            font-size: 11px;
            color: var(--gray-600);
        }

:where(body.page-upwork_commissions) .profile-badge {
            background: var(--gray-100);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            display: inline-block;
        }

:where(body.page-upwork_commissions) .status-badge {
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
            border: none;
            cursor: pointer;
        }

:where(body.page-upwork_commissions) .status-pending {
            background: #fef3c7;
            color: #d97706;
        }

:where(body.page-upwork_commissions) .status-paid {
            background: #d1fae5;
            color: #059669;
        }

:where(body.page-upwork_commissions) .action-buttons {
            display: flex;
            gap: 5px;
        }

:where(body.page-upwork_commissions) .action-btn {
            width: 32px;
            height: 32px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            cursor: pointer;
            background: var(--gray-100);
            color: var(--gray-600);
            transition: all 0.2s;
            text-decoration: none;
        }

:where(body.page-upwork_commissions) .action-btn:hover {
            background: var(--primary);
            color: white;
        }

:where(body.page-upwork_commissions) .action-btn.delete:hover {
            background: var(--danger);
        }

/* Alert Messages */

:where(body.page-upwork_commissions) .alert {
            padding: 15px 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

:where(body.page-upwork_commissions) .alert-success {
            background: #d1fae5;
            color: #065f46;
            border-left: 4px solid #059669;
        }

:where(body.page-upwork_commissions) .alert-error {
            background: #fee2e2;
            color: #991b1b;
            border-left: 4px solid #dc2626;
        }

:where(body.page-upwork_commissions) .month-indicator {
            background: var(--gray-200);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
        }

:where(body.page-upwork_commissions) .total-amount {
            background: #f0f9ff;
            padding: 15px;
            border-radius: 10px;
            text-align: right;
            font-size: 18px;
            font-weight: 700;
            color: var(--primary);
            margin-top: 20px;
        }

/* Modal Styles */

:where(body.page-upwork_commissions) .modal {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.6);
            align-items: center;
            justify-content: center;
        }

:where(body.page-upwork_commissions) .modal.active {
            display: flex;
        }

:where(body.page-upwork_commissions) .modal-content {
            background: white;
            padding: 25px;
            border-radius: 16px;
            max-width: 500px;
            width: 90%;
            max-height: 85vh;
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            animation: modalFadeIn 0.3s;
        }

@keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }

:where(body.page-upwork_commissions) .modal .form-group {
            margin-bottom: 15px;
        }

:where(body.page-upwork_commissions) .modal .form-group label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: #4b5563;
            margin-bottom: 5px;
        }

:where(body.page-upwork_commissions) .modal .form-group input, :where(body.page-upwork_commissions) .modal .form-group select, :where(body.page-upwork_commissions) .modal .form-group textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            font-size: 14px;
        }

:where(body.page-upwork_commissions) .modal .form-group input:focus, :where(body.page-upwork_commissions) .modal .form-group select:focus, :where(body.page-upwork_commissions) .modal .form-group textarea:focus {
            border-color: var(--primary);
            outline: none;
        }

:where(body.page-upwork_commissions) .modal .button-group {
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            margin-top: 20px;
        }

:where(body.page-upwork_commissions) .modal .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
        }

:where(body.page-upwork_commissions) .modal .btn-primary {
            background: var(--primary);
            color: white;
        }

:where(body.page-upwork_commissions) .modal .btn-secondary {
            background: #e5e7eb;
            color: #4b5563;
        }

/* Loading spinner */

:where(body.page-upwork_commissions) .loading-spinner {
            text-align: center;
            padding: 40px;
        }

:where(body.page-upwork_commissions) .loading-spinner i {
            font-size: 40px;
            color: var(--primary);
            animation: spin 1s linear infinite;
        }

@keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

/* Error message */

:where(body.page-upwork_commissions) .error-message {
            text-align: center;
            padding: 30px;
            color: #dc2626;
        }

:where(body.page-upwork_commissions) .error-message i {
            font-size: 40px;
            margin-bottom: 10px;
        }

@media (max-width: 768px) {
:where(body.page-upwork_commissions) .main {
                margin-left: 0;
            }

:where(body.page-upwork_commissions) .commission-form {
                grid-template-columns: 1fr;
            }
}

/* ==================== Employees list (page-employees) ==================== */

/* Action icons styling */

:where(body.page-employees) .action-icons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

:where(body.page-employees) .action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
}

:where(body.page-employees) .action-btn.view {
    background: #e3f2fd;
    color: #1976d2;
}

:where(body.page-employees) .action-btn.edit {
    background: #fff3e0;
    color: #f57c00;
}

:where(body.page-employees) .action-btn.delete {
    background: #ffebee;
    color: #d32f2f;
}

:where(body.page-employees) .action-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

:where(body.page-employees) .employee-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    color: #495057;
}

:where(body.page-employees) .employee-table td {
    vertical-align: middle;
}

/* Status Badge Styles */

:where(body.page-employees) .status-active {
    background: #e8f5e9;
    color: #2e7d32;
}

:where(body.page-employees) .status-inactive {
    background: #ffebee;
    color: #c62828;
}

/* ✅ FIXED: Light red for inactive rows - using CSS class */

:where(body.page-employees) .inactive-row {
    background-color: #fff0f0 !important;  /* Light red */
}

:where(body.page-employees) .inactive-row:hover {
    background-color: #ffe0e0 !important;  /* Slightly darker on hover */
}

/* Search Box */

:where(body.page-employees) .search-box {
    position: relative;
    width: 300px;
}

:where(body.page-employees) .search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

:where(body.page-employees) .search-box span {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #999;
}

/* Directory Header */

:where(body.page-employees) .directory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

/* Responsive */

@media (max-width: 768px) {
:where(body.page-employees) .directory-header {
        flex-direction: column;
        align-items: flex-start;
    }

:where(body.page-employees) .search-box {
        width: 100%;
    }
}

/* ==================== Employee add (page-employee_add) ==================== */

:where(body.page-employee_add) .emp-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

:where(body.page-employee_add) .emp-form input, :where(body.page-employee_add) .emp-form select, :where(body.page-employee_add) .emp-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    width: 100%;
    font-size: 14px;
}

:where(body.page-employee_add) .emp-form input:focus, :where(body.page-employee_add) .emp-form select:focus, :where(body.page-employee_add) .emp-form textarea:focus {
    border-color: #1e4a6d;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30,74,109,0.1);
}

:where(body.page-employee_add) .emp-form label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

:where(body.page-employee_add) .emp-form h3 {
    font-size: 1.2rem;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

/* ==================== Employee edit modal (fetched on page-employees) ==================== */

:where(body.page-employees) .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 20px; }

:where(body.page-employees) .form-group { margin-bottom: 0; }

:where(body.page-employees) .form-group.full-width { grid-column: 1 / -1; }

:where(body.page-employees) .form-group label { display: block; margin-bottom: 5px; font-weight: 500; color: #333; }

:where(body.page-employees) .form-group input, :where(body.page-employees) .form-group select, :where(body.page-employees) .form-group textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px;
}

:where(body.page-employees) .form-group input:focus, :where(body.page-employees) .form-group select:focus, :where(body.page-employees) .form-group textarea:focus {
    border-color: #1e4a6d; outline: none; box-shadow: 0 0 0 3px rgba(30,74,109,0.1);
}

:where(body.page-employees) .badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; }

:where(body.page-employees) .badge-success { background: #e8f5e9; color: #2e7d32; }

:where(body.page-employees) .badge-warning { background: #fff3e0; color: #ed6c02; }

/* ==================== Increments (page-increments) ==================== */

/* Action icons styling */

:where(body.page-increments) .action-icons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

:where(body.page-increments) .action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

:where(body.page-increments) .action-btn.edit {
    background: #fff3e0;
    color: #ed6c02;
}

:where(body.page-increments) .action-btn.delete {
    background: #ffebee;
    color: #d32f2f;
}

:where(body.page-increments) .action-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

:where(body.page-increments) .employee-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

:where(body.page-increments) .employee-table td {
    vertical-align: middle;
}

:where(body.page-increments) .badge-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

:where(body.page-increments) .badge-info {
    background: #e3f2fd;
    color: #0288d1;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

:where(body.page-increments) .emp-salary {
    font-weight: 600;
    color: #1e4a6d;
}

/* ==================== Increment add (page-increment_add) ==================== */

:where(body.page-increment_add) .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

:where(body.page-increment_add) .form-control:focus {
    border-color: #1e4a6d;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30,74,109,0.1);
}

/* ==================== Inventory (page-inventory) ==================== */

:where(body.page-inventory) .unassigned-row {
        opacity: 0.9;
        background-color: #f9f9f9;
    }

:where(body.page-inventory) .unassigned-row:hover {
        background-color: #f0f0f0;
    }

:where(body.page-inventory) .employee-avatar-wrapper {
        border-radius: 50%;
        overflow: hidden;
        flex-shrink: 0;
    }

:where(body.page-inventory) .employee-avatar-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

:where(body.page-inventory) .employee-cell {
        display: flex;
        align-items: center;
        gap: 10px;
    }

:where(body.page-inventory) .action-icons {
        display: flex;
        gap: 5px;
    }

:where(body.page-inventory) .action-btn {
        transition: all 0.2s;
    }

:where(body.page-inventory) .action-btn:hover {
        transform: scale(1.1);
        opacity: 0.9;
    }

/* ==================== Documents (page-documents) ==================== */

:where(body.page-documents) .docs-page { padding: 20px; max-width: 1600px; margin: 0 auto; }

:where(body.page-documents) .docs-header {
    background: linear-gradient(135deg, #1e4a6d 0%, #2c7da0 100%);
    border-radius: 18px; padding: 28px; color: white;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 20px; margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(30,74,109,0.2);
    position: relative; overflow: hidden;
}

:where(body.page-documents) .docs-header::after {
    content: ''; position: absolute; top: 0; right: 0;
    width: 300px; height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent 70%);
}

:where(body.page-documents) .docs-header-content h1 { margin: 0 0 4px 0; font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }

:where(body.page-documents) .docs-header-content p { margin: 0; opacity: 0.9; font-size: 14px; }

:where(body.page-documents) .docs-header-stats { display: flex; gap: 16px; }

:where(body.page-documents) .dh-stat {
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.18);
    padding: 14px 20px; border-radius: 12px; text-align: center; min-width: 90px;
}

:where(body.page-documents) .dh-stat-value { font-size: 22px; font-weight: 700; }

:where(body.page-documents) .dh-stat-label { font-size: 11px; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

:where(body.page-documents) .docs-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 2px solid #e8edf2; }

:where(body.page-documents) .docs-tab {
    padding: 12px 22px; background: transparent; color: #6c757d;
    border: none; cursor: pointer; font-size: 14px; font-weight: 600;
    border-bottom: 3px solid transparent; margin-bottom: -2px;
    transition: all 0.18s ease; font-family: inherit;
}

:where(body.page-documents) .docs-tab:hover { color: #1e4a6d; }

:where(body.page-documents) .docs-tab.active { color: #1e4a6d; border-bottom-color: #1e4a6d; }

:where(body.page-documents) .btn-primary {
    padding: 10px 20px; background: linear-gradient(135deg, #1e4a6d, #2c7da0);
    color: white; border: none; border-radius: 10px; cursor: pointer;
    font-weight: 600; font-size: 14px; transition: all 0.18s ease;
    box-shadow: 0 4px 12px rgba(30,74,109,0.25); font-family: inherit;
}

:where(body.page-documents) .btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(30,74,109,0.35); }

:where(body.page-documents) .btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }

:where(body.page-documents) .btn-secondary {
    padding: 10px 18px; background: white; color: #6c757d;
    border: 1.5px solid #e0e6ed; border-radius: 10px; cursor: pointer;
    font-weight: 600; font-size: 14px; font-family: inherit;
}

:where(body.page-documents) .btn-secondary:hover { background: #f8fafc; border-color: #c7cfd8; color: #1e4a6d; }

:where(body.page-documents) .btn-mini {
    padding: 6px 12px; background: white; color: #1e4a6d;
    border: 1px solid #d8e0e8; border-radius: 7px; cursor: pointer;
    font-size: 12px; font-weight: 600; font-family: inherit;
}

:where(body.page-documents) .btn-mini:hover { background: #f0f4f8; border-color: #1e4a6d; }

:where(body.page-documents) .gen-layout { display: grid; grid-template-columns: 380px 1fr; gap: 20px; }

@media (max-width: 1100px) {
:where(body.page-documents) .gen-layout { grid-template-columns: 1fr; }
}

:where(body.page-documents) .gen-form-panel {
    background: white; border-radius: 14px; padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid #e8edf2; height: fit-content;
}

:where(body.page-documents) .gen-step { margin-bottom: 18px; }

:where(body.page-documents) .gen-step-header {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 700; color: #1e4a6d;
    margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.4px;
}

:where(body.page-documents) .gen-step-num {
    width: 22px; height: 22px;
    background: linear-gradient(135deg, #1e4a6d, #2c7da0); color: white;
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
}

:where(body.page-documents) .gen-select {
    width: 100%; padding: 11px 14px; border: 1.5px solid #e0e6ed;
    border-radius: 10px; font-size: 14px; background: #fafbfc;
    color: #1e4a6d; cursor: pointer; font-family: inherit; box-sizing: border-box;
}

:where(body.page-documents) .gen-select:focus { outline: none; border-color: #1e4a6d; background: white; }

:where(body.page-documents) .gen-field {
    background: #fafbfc; padding: 11px 12px; border-radius: 10px;
    border: 1px solid #e8edf2; margin-bottom: 9px;
}

:where(body.page-documents) .gen-field.auto-filled { background: linear-gradient(135deg, #f0f9f1, #e8f5e9); border-color: #c8e6c9; }

:where(body.page-documents) .gen-field label {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; font-weight: 600; color: #1e4a6d; margin-bottom: 5px;
}

:where(body.page-documents) .auto-tag, :where(body.page-documents) .manual-tag { font-size: 9px; padding: 2px 7px; border-radius: 8px; text-transform: uppercase; font-weight: 700; color: white; }

:where(body.page-documents) .auto-tag { background: #2e7d32; }

:where(body.page-documents) .manual-tag { background: #ed6c02; }

:where(body.page-documents) .gen-field input, :where(body.page-documents) .gen-field textarea {
    width: 100%; padding: 8px 11px; border: 1px solid #d8e0e8;
    border-radius: 7px; font-size: 13px; background: white;
    font-family: inherit; box-sizing: border-box;
}

:where(body.page-documents) .gen-field input:focus, :where(body.page-documents) .gen-field textarea:focus { outline: none; border-color: #1e4a6d; }

:where(body.page-documents) .gen-field textarea { resize: vertical; min-height: 50px; }

:where(body.page-documents) .gen-actions { display: flex; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #f0f3f6; }

:where(body.page-documents) .gen-actions .btn-primary, :where(body.page-documents) .gen-actions .btn-secondary { flex: 1; padding: 10px; font-size: 13px; }

:where(body.page-documents) .gen-preview-panel {
    background: white; border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid #e8edf2;
    display: flex; flex-direction: column; min-height: 600px;
}

:where(body.page-documents) .gen-preview-header {
    padding: 14px 20px; border-bottom: 1px solid #e8edf2;
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(135deg, #f8fafc, #eef2f6);
    border-radius: 14px 14px 0 0; font-weight: 700; color: #1e4a6d; font-size: 14px;
}

:where(body.page-documents) .gen-preview-actions { display: flex; gap: 6px; }

:where(body.page-documents) .gen-preview-body { flex: 1; padding: 20px; background: #f5f7fa; border-radius: 0 0 14px 14px; overflow-y: auto; }

:where(body.page-documents) .gen-preview-empty {
    height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; color: #94a3b8; text-align: center;
}

/* Letter page in preview — same styling as the actual letter */

:where(body.page-documents) .letter-page {
    background: white url('../../assets/images/letterhead.png') no-repeat;
    background-size: 100% calc(100% / max(1, var(--num-pages, 1)));
    background-repeat: repeat-y;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border-radius: 4px;
    padding: 70px 50px 50px 50px;
    background-size: 100% 990px;
    min-height: 990px;
}

:where(body.page-documents) .letter-page .letter-content {
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 11px;
    line-height: 1.5;
    color: #2c3e50;
}

:where(body.page-documents) .letter-page .letter-content p { margin: 0 0 8px 0; text-align: justify; }

:where(body.page-documents) .letter-page .letter-content ol, :where(body.page-documents) .letter-page .letter-content ul { padding-left: 24px; margin: 0 0 10px 0; }

:where(body.page-documents) .letter-page .letter-content ol li, :where(body.page-documents) .letter-page .letter-content ul li { margin-bottom: 5px; }

:where(body.page-documents) .letter-page .letter-content h3 { font-size: 13px; font-weight: 700; margin: 10px 0 6px; color: #1e4a6d; }

:where(body.page-documents) .ph-missing { background: #fff3cd; color: #856404; padding: 1px 6px; border-radius: 3px; font-size: 0.85em; font-style: italic; }

:where(body.page-documents) .tpl-actions-bar { display: flex; gap: 12px; margin-bottom: 20px; align-items: center; }

:where(body.page-documents) .tpl-search {
    flex: 1; padding: 11px 16px; border: 1.5px solid #e0e6ed;
    border-radius: 10px; font-size: 14px; background: white; font-family: inherit; box-sizing: border-box;
}

:where(body.page-documents) .tpl-search:focus { outline: none; border-color: #1e4a6d; }

:where(body.page-documents) .tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

:where(body.page-documents) .tpl-card {
    background: white; border-radius: 14px; padding: 18px;
    border: 1px solid #e8edf2; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.18s ease; display: flex; flex-direction: column;
}

:where(body.page-documents) .tpl-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(30,74,109,0.12); }

:where(body.page-documents) .tpl-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

:where(body.page-documents) .tpl-card-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #1e4a6d, #2c7da0); color: white;
    border-radius: 11px; display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0; box-shadow: 0 4px 10px rgba(30,74,109,0.2);
}

:where(body.page-documents) .tpl-card-meta { flex: 1; min-width: 0; }

:where(body.page-documents) .tpl-card-title { font-weight: 700; color: #1e4a6d; font-size: 15px; }

:where(body.page-documents) .tpl-card-type { font-size: 11px; color: #6c757d; text-transform: uppercase; letter-spacing: 0.4px; margin-top: 2px; }

:where(body.page-documents) .tpl-card-desc { font-size: 13px; color: #6c757d; line-height: 1.5; margin-bottom: 14px; min-height: 38px; }

:where(body.page-documents) .tpl-card-stats { display: flex; gap: 16px; padding: 10px 0; border-top: 1px solid #f0f3f6; margin-bottom: 12px; }

:where(body.page-documents) .tpl-stat { text-align: center; flex: 1; }

:where(body.page-documents) .tpl-stat-num { display: block; font-size: 18px; font-weight: 700; color: #1e4a6d; }

:where(body.page-documents) .tpl-stat-label { font-size: 10px; color: #94a3b8; text-transform: uppercase; }

:where(body.page-documents) .tpl-card-actions { display: flex; gap: 6px; margin-top: auto; }

:where(body.page-documents) .btn-edit {
    flex: 1; padding: 8px 12px; background: #f0f4f8; color: #1e4a6d;
    border: 1px solid #d8e0e8; border-radius: 7px; cursor: pointer;
    font-weight: 600; font-size: 12px; font-family: inherit;
}

:where(body.page-documents) .btn-edit:hover { background: #e3eaf2; border-color: #1e4a6d; }

:where(body.page-documents) .btn-delete {
    padding: 8px 12px; background: #fff5f5; color: #d32f2f;
    border: 1px solid #ffcdd2; border-radius: 7px; cursor: pointer;
    font-size: 14px; font-family: inherit;
}

:where(body.page-documents) .btn-delete:hover { background: #ffebee; }

:where(body.page-documents) .tpl-modal-overlay {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; background: rgba(0,0,0,0.5);
    z-index: 9999; justify-content: center; align-items: center; padding: 20px;
}

:where(body.page-documents) .tpl-modal-overlay.active { display: flex; }

:where(body.page-documents) .tpl-modal {
    background: white; width: 100%; max-width: 820px; max-height: 92vh;
    border-radius: 18px; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
}

:where(body.page-documents) .tpl-modal-header {
    background: linear-gradient(135deg, #1e4a6d, #2c7da0);
    color: white; padding: 18px 22px;
    display: flex; justify-content: space-between; align-items: center;
}

:where(body.page-documents) .tpl-modal-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }

:where(body.page-documents) .tpl-modal-close {
    background: rgba(255,255,255,0.18); color: white; border: none;
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    font-size: 20px; line-height: 1; font-family: inherit;
}

:where(body.page-documents) .tpl-modal-close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }

:where(body.page-documents) .tpl-modal-body { padding: 22px; overflow-y: auto; flex: 1; }

:where(body.page-documents) .tpl-modal-footer {
    padding: 16px 22px; border-top: 1px solid #e8edf2;
    display: flex; justify-content: flex-end; gap: 10px; background: #fafbfc;
}

:where(body.page-documents) .tpl-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }

:where(body.page-documents) .tpl-form-field { margin-bottom: 14px; }

:where(body.page-documents) .tpl-form-field label { display: block; font-size: 13px; font-weight: 600; color: #1e4a6d; margin-bottom: 6px; }

:where(body.page-documents) .tpl-form-field input {
    width: 100%; padding: 10px 13px; border: 1.5px solid #e0e6ed;
    border-radius: 9px; font-size: 14px; background: #fafbfc; font-family: inherit; box-sizing: border-box;
}

:where(body.page-documents) .tpl-form-field input:focus { outline: none; border-color: #1e4a6d; background: white; }

:where(body.page-documents) .tpl-hint { font-size: 11px; color: #94a3b8; font-weight: 400; margin-left: 6px; }

:where(body.page-documents) .tpl-hint code { background: #f0f4f8; padding: 1px 6px; border-radius: 4px; color: #1e4a6d; font-size: 11px; }

/* ============== RICH TEXT TOOLBAR ============== */

:where(body.page-documents) .rich-toolbar {
    display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
    background: #f8fafc; border: 1.5px solid #e0e6ed; border-bottom: none;
    border-radius: 9px 9px 0 0; padding: 8px 10px;
}

:where(body.page-documents) .rt-btn {
    background: white; color: #1e4a6d; border: 1px solid #d8e0e8;
    padding: 5px 10px; border-radius: 6px; cursor: pointer;
    font-size: 12px; font-family: inherit; min-width: 28px;
    transition: all 0.15s ease;
}

:where(body.page-documents) .rt-btn:hover { background: #1e4a6d; color: white; border-color: #1e4a6d; }

:where(body.page-documents) .rt-sep { width: 1px; height: 18px; background: #d8e0e8; margin: 0 3px; }

:where(body.page-documents) .tpl-placeholder-bar {
    background: #f8fafc; padding: 8px 10px;
    border-left: 1.5px solid #e0e6ed; border-right: 1.5px solid #e0e6ed;
    display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
}

:where(body.page-documents) .tpl-ph-btn {
    background: white; color: #1e4a6d; border: 1px solid #d8e0e8;
    padding: 3px 8px; border-radius: 5px; cursor: pointer;
    font-size: 10px; font-family: 'Courier New', monospace; font-weight: 600;
    transition: all 0.15s ease;
}

:where(body.page-documents) .tpl-ph-btn:hover { background: #1e4a6d; color: white; border-color: #1e4a6d; }

/* ============== CONTENTEDITABLE EDITOR ============== */

:where(body.page-documents) .rich-editor {
    width: 100%; min-height: 320px; max-height: 480px;
    padding: 14px 16px;
    border: 1.5px solid #e0e6ed; border-top: none;
    border-radius: 0 0 9px 9px;
    font-family: 'Times New Roman', serif; font-size: 13px; line-height: 1.55;
    background: white; color: #2c3e50;
    overflow-y: auto;
    outline: none;
}

:where(body.page-documents) .rich-editor:focus { border-color: #1e4a6d; box-shadow: inset 0 0 0 2px rgba(30,74,109,0.08); }

:where(body.page-documents) .rich-editor p { margin: 0 0 8px 0; }

:where(body.page-documents) .rich-editor ol, :where(body.page-documents) .rich-editor ul { padding-left: 28px; margin: 0 0 10px 0; }

:where(body.page-documents) .rich-editor li { margin-bottom: 5px; }

:where(body.page-documents) .rich-editor h3 { font-size: 15px; font-weight: 700; margin: 10px 0 6px; color: #1e4a6d; }

:where(body.page-documents) .rich-editor strong { font-weight: 700; }

:where(body.page-documents) .rich-editor em { font-style: italic; }

:where(body.page-documents) .tpl-detected-box {
    margin-top: 12px;
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 1px solid #ffe69c; border-radius: 10px; padding: 12px 14px;
}

:where(body.page-documents) .tpl-detected-label { font-size: 12px; font-weight: 700; color: #856404; margin-bottom: 8px; }

:where(body.page-documents) .tpl-detected-list { display: flex; flex-wrap: wrap; gap: 6px; }

:where(body.page-documents) .ph-pill {
    background: white; border: 1px solid #ffe69c;
    padding: 4px 8px; border-radius: 6px; font-size: 11px;
    font-family: 'Courier New', monospace; color: #1e4a6d;
    display: inline-flex; align-items: center; gap: 5px;
}

:where(body.page-documents) .ph-auto, :where(body.page-documents) .ph-manual {
    font-size: 9px; padding: 1px 5px; border-radius: 8px;
    font-family: -apple-system, sans-serif; text-transform: uppercase; font-weight: 700;
}

:where(body.page-documents) .ph-auto { background: #2e7d32; color: white; }

:where(body.page-documents) .ph-manual { background: #ed6c02; color: white; }

:where(body.page-documents) .his-filters {
    background: white; padding: 14px; border-radius: 12px;
    border: 1px solid #e8edf2; margin-bottom: 18px;
    display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}

:where(body.page-documents) .his-filter-input {
    padding: 9px 12px; border: 1.5px solid #e0e6ed;
    border-radius: 9px; font-size: 13px; background: #fafbfc; font-family: inherit;
}

:where(body.page-documents) .his-filter-input:focus { outline: none; border-color: #1e4a6d; }

:where(body.page-documents) .his-empty {
    background: white; border-radius: 14px; padding: 60px 30px;
    text-align: center; border: 1px solid #e8edf2; color: #94a3b8;
}

:where(body.page-documents) .his-empty h3 { color: #1e4a6d; margin: 12px 0 6px; }

:where(body.page-documents) .his-table-wrap { background: white; border-radius: 14px; border: 1px solid #e8edf2; overflow: hidden; }

:where(body.page-documents) .his-table { width: 100%; border-collapse: collapse; }

:where(body.page-documents) .his-table thead { background: linear-gradient(135deg, #f8fafc, #eef2f6); }

:where(body.page-documents) .his-table th {
    padding: 13px 16px; text-align: left; font-size: 12px; font-weight: 700;
    color: #1e4a6d; text-transform: uppercase; letter-spacing: 0.4px;
    border-bottom: 2px solid #e8edf2;
}

:where(body.page-documents) .his-table td { padding: 14px 16px; border-bottom: 1px solid #f0f3f6; font-size: 13px; vertical-align: middle; }

:where(body.page-documents) .his-table tbody tr:hover { background: #fafbfc; }

:where(body.page-documents) .his-emp-name { font-weight: 600; color: #1e4a6d; }

:where(body.page-documents) .his-emp-desg { font-size: 11px; color: #94a3b8; margin-top: 2px; }

:where(body.page-documents) .his-badge {
    display: inline-block; padding: 4px 10px; background: #e8f4f8;
    color: #1e4a6d; border-radius: 8px; font-size: 11px; font-weight: 600;
}

:where(body.page-documents) .his-date { color: #1e4a6d; font-weight: 500; }

:where(body.page-documents) .his-time { font-size: 11px; color: #94a3b8; margin-top: 2px; }

:where(body.page-documents) .his-action {
    display: inline-block; padding: 5px 9px; border-radius: 6px;
    font-size: 11px; font-weight: 600; text-decoration: none; cursor: pointer;
    margin-right: 4px; border: 1px solid; background: white; font-family: inherit;
}

:where(body.page-documents) .btn-view { color: #0288d1; border-color: #b3e5fc; }

:where(body.page-documents) .btn-view:hover { background: #e1f5fe; }

:where(body.page-documents) .btn-pdf { color: #d32f2f; border-color: #ffcdd2; }

:where(body.page-documents) .btn-pdf:hover { background: #ffebee; }

:where(body.page-documents) .btn-word { color: #1565c0; border-color: #bbdefb; }

:where(body.page-documents) .btn-word:hover { background: #e3f2fd; }

:where(body.page-documents) .btn-del { color: #d32f2f; border-color: #ffcdd2; }

:where(body.page-documents) .btn-del:hover { background: #ffebee; }

/* ==================== Users (page-users) ==================== */

:where(body.page-users) .users-management-page {
    padding: 24px;
    box-sizing: border-box;
}

:where(body.page-users) .users-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

:where(body.page-users) .users-management-header h1 {
    margin: 0;
    color: #12344d;
    font-size: 27px;
}

:where(body.page-users) .users-add-btn, :where(body.page-users) .users-primary-btn, :where(body.page-users) .users-secondary-btn {
    border: 0;
    border-radius: 7px;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
}

:where(body.page-users) .users-add-btn, :where(body.page-users) .users-primary-btn {
    background: #1e4a6d;
    color: #fff;
}

:where(body.page-users) .users-add-btn:hover, :where(body.page-users) .users-primary-btn:hover {
    background: #12344d;
}

:where(body.page-users) .users-secondary-btn {
    background: #6c757d;
    color: #fff;
}

:where(body.page-users) .users-alert {
    padding: 13px 16px;
    margin-bottom: 18px;
    border-radius: 8px;
}

:where(body.page-users) .users-alert-success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

:where(body.page-users) .users-alert-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

:where(body.page-users) .users-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

:where(body.page-users) .users-table {
    width: 100%;
    min-width: 930px;
    border-collapse: collapse;
}

:where(body.page-users) .users-table th {
    background: #12344d;
    color: #fff;
    text-align: left;
    padding: 13px;
    white-space: nowrap;
}

:where(body.page-users) .users-table td {
    padding: 13px;
    border-bottom: 1px solid #edf0f2;
    vertical-align: middle;
}

:where(body.page-users) .users-table tbody tr:hover {
    background: #f8fafc;
}

:where(body.page-users) .users-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

:where(body.page-users) .users-role-admin { background: #1e4a6d; color: #fff; }

:where(body.page-users) .users-role-hr { background: #28a745; color: #fff; }

:where(body.page-users) .users-status-active { background: #d4edda; color: #155724; }

:where(body.page-users) .users-status-inactive { background: #f8d7da; color: #721c24; }

:where(body.page-users) .users-actions {
    display: flex;
    gap: 7px;
    align-items: center;
}

:where(body.page-users) .users-icon-btn {
    background: #fff;
    border: 1px solid #dce2e7;
    border-radius: 6px;
    padding: 7px 9px;
    cursor: pointer;
    font-size: 16px;
}

:where(body.page-users) .users-icon-btn:hover { background: #f1f5f9; }

:where(body.page-users) .users-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.58);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

:where(body.page-users) .users-modal.active { display: flex; }

:where(body.page-users) .users-modal-box {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    padding: 23px;
    box-sizing: border-box;
}

:where(body.page-users) .users-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

:where(body.page-users) .users-modal-head h2 { margin: 0; color: #12344d; }

:where(body.page-users) .users-modal-close {
    border: 0;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: #64748b;
}

:where(body.page-users) .users-field { margin-bottom: 15px; }

:where(body.page-users) .users-field label {
    display: block;
    margin-bottom: 6px;
    color: #334155;
    font-weight: 600;
}

:where(body.page-users) .users-field input, :where(body.page-users) .users-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d5dce3;
    border-radius: 7px;
    box-sizing: border-box;
}

:where(body.page-users) .users-password-wrap {
    position: relative;
}

:where(body.page-users) .users-password-wrap input {
    padding-right: 48px;
}

:where(body.page-users) .users-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 36px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #475569;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

:where(body.page-users) .users-password-toggle:hover {
    background: #eef2f7;
    color: #12344d;
}

:where(body.page-users) .users-password-toggle:focus {
    outline: 2px solid #1e4a6d;
    outline-offset: 1px;
}

:where(body.page-users) .users-password-wrap input::-ms-reveal, :where(body.page-users) .users-password-wrap input::-ms-clear {
    display: none;
}

:where(body.page-users) .users-field small {
    display: block;
    color: #64748b;
    margin-top: 5px;
}

:where(body.page-users) .users-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 768px) {
:where(body.page-users) .users-management-page { padding: 15px; }

:where(body.page-users) .users-management-header { align-items: stretch; flex-direction: column; }

:where(body.page-users) .users-add-btn { width: 100%; }
}

/* ==================== Leave edit (page-leave_edit) ==================== */

/* Modern Edit Form Styling */

:where(body.page-leave_edit) .edit-form-container {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        max-width: 450px;
        margin: 0 auto;
        padding: 10px;
    }

:where(body.page-leave_edit) .form-group {
        margin-bottom: 20px;
        position: relative;
    }

:where(body.page-leave_edit) .form-group label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #1e293b;
        margin-bottom: 6px;
        letter-spacing: 0.3px;
    }

:where(body.page-leave_edit) .form-group label i {
        margin-right: 6px;
        color: #1e4a6d;
        font-size: 14px;
    }

:where(body.page-leave_edit) .form-control {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
        font-size: 14px;
        transition: all 0.3s ease;
        background-color: #f8fafc;
        color: #1e293b;
    }

:where(body.page-leave_edit) .form-control:hover {
        border-color: #94a3b8;
        background-color: #fff;
    }

:where(body.page-leave_edit) .form-control:focus {
        border-color: #1e4a6d;
        outline: none;
        box-shadow: 0 0 0 4px rgba(30, 74, 109, 0.1);
        background-color: #fff;
    }

:where(body.page-leave_edit) select.form-control {
        appearance: none;
        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='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 15px center;
        background-size: 16px;
        padding-right: 45px;
    }

:where(body.page-leave_edit) textarea.form-control {
        min-height: 80px;
        resize: vertical;
    }

:where(body.page-leave_edit) .days-badge {
        background: linear-gradient(135deg, #f59e0b, #f97316);
        color: white;
        padding: 12px 15px;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        text-align: center;
        border: none;
        width: 100%;
    }

:where(body.page-leave_edit) .days-badge i {
        margin-right: 8px;
        font-size: 18px;
    }

:where(body.page-leave_edit) .readonly-field {
        background-color: #f1f5f9;
        border: 2px dashed #cbd5e1;
        color: #475569;
        cursor: not-allowed;
    }

:where(body.page-leave_edit) .button-group {
        display: flex;
        gap: 12px;
        margin-top: 25px;
        padding-top: 15px;
        border-top: 2px solid #e2e8f0;
    }

:where(body.page-leave_edit) .btn {
        flex: 1;
        padding: 12px 20px;
        border: none;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

:where(body.page-leave_edit) .btn-primary {
        background: linear-gradient(135deg, #1e4a6d, #2c7da0);
        color: white;
        box-shadow: 0 4px 12px rgba(30, 74, 109, 0.2);
    }

:where(body.page-leave_edit) .btn-primary:hover {
        background: linear-gradient(135deg, #0b2b3f, #1e4a6d);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(30, 74, 109, 0.3);
    }

:where(body.page-leave_edit) .btn-primary:active {
        transform: translateY(0);
    }

:where(body.page-leave_edit) .btn-secondary {
        background: #f1f5f9;
        color: #475569;
        border: 2px solid #e2e8f0;
    }

:where(body.page-leave_edit) .btn-secondary:hover {
        background: #e2e8f0;
        border-color: #cbd5e1;
        transform: translateY(-2px);
    }

:where(body.page-leave_edit) .btn-secondary:active {
        transform: translateY(0);
    }

:where(body.page-leave_edit) .btn i {
        font-size: 16px;
    }

/* Status colors */

:where(body.page-leave_edit) .status-pending {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }

:where(body.page-leave_edit) .status-approved {
        background: linear-gradient(135deg, #10b981, #059669);
    }

:where(body.page-leave_edit) .status-rejected {
        background: linear-gradient(135deg, #ef4444, #dc2626);
    }

/* Animation */

@keyframes slideInLeaveEdit {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

:where(body.page-leave_edit) .edit-form-container {
        animation: slideInLeaveEdit 0.3s ease;
    }

/* Form header */

:where(body.page-leave_edit) .form-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #e2e8f0;
    }

:where(body.page-leave_edit) .form-header h3 {
        color: #1e4a6d;
        font-size: 18px;
        font-weight: 600;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }

:where(body.page-leave_edit) .form-header h3 i {
        color: #f59e0b;
    }

/* Error message */

:where(body.page-leave_edit) .error-message {
        background: #fee2e2;
        color: #dc2626;
        padding: 12px;
        border-radius: 12px;
        margin-bottom: 20px;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        border-left: 4px solid #dc2626;
    }

:where(body.page-leave_edit) .error-message i {
        font-size: 18px;
    }

/* Success message */

:where(body.page-leave_edit) .success-message {
        background: #d1fae5;
        color: #059669;
        padding: 12px;
        border-radius: 12px;
        margin-bottom: 20px;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        border-left: 4px solid #059669;
    }

:where(body.page-leave_edit) .success-message i {
        font-size: 18px;
    }

/* Info tooltip */

:where(body.page-leave_edit) .info-tooltip {
        position: relative;
        display: inline-block;
        margin-left: 5px;
        color: #94a3b8;
        cursor: help;
    }

:where(body.page-leave_edit) .info-tooltip:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #1e293b;
        color: white;
        padding: 5px 10px;
        border-radius: 6px;
        font-size: 12px;
        white-space: nowrap;
        z-index: 1000;
    }

/* ==================== Payroll bonus modal (fetched on page-payroll) ==================== */

:where(body.page-payroll) * { box-sizing: border-box; }

body:where(.page-payroll) {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: rgba(0, 0, 0, 0.5);
            margin: 0;
            padding: 20px;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

:where(body.page-payroll) .modal-box {
            background: white;
            width: 100%;
            max-width: 480px;
            border-radius: 18px;
            overflow: hidden;
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
            animation: bmSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

@keyframes bmSlideUp {
            from { transform: translateY(30px) scale(0.96); opacity: 0; }
            to { transform: translateY(0) scale(1); opacity: 1; }
        }

/* ========== HEADER ========== */

:where(body.page-payroll) .bm-header {
            background: linear-gradient(135deg, #1e4a6d 0%, #2c7da0 100%);
            color: white;
            padding: 22px 24px;
            display: flex;
            align-items: center;
            gap: 14px;
            position: relative;
        }

:where(body.page-payroll) .bm-header::after {
            content: '';
            position: absolute;
            top: 0; right: 0;
            width: 140px; height: 100%;
            background: radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 70%);
            pointer-events: none;
        }

:where(body.page-payroll) .bm-icon-wrap {
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.18);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 26px;
            flex-shrink: 0;
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

:where(body.page-payroll) .bm-titles { flex: 1; min-width: 0; }

:where(body.page-payroll) .bm-title {
            font-size: 20px;
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: -0.3px;
            margin: 0;
        }

:where(body.page-payroll) .bm-subtitle {
            font-size: 12px;
            opacity: 0.85;
            margin-top: 3px;
            font-weight: 400;
        }

:where(body.page-payroll) .bm-close {
            background: rgba(255, 255, 255, 0.15);
            color: white;
            border: none;
            width: 34px;
            height: 34px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 22px;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s ease;
            flex-shrink: 0;
            z-index: 1;
            font-family: inherit;
        }

:where(body.page-payroll) .bm-close:hover {
            background: rgba(255, 255, 255, 0.28);
            transform: rotate(90deg);
        }

/* ========== EMPLOYEE CARD ========== */

:where(body.page-payroll) .bm-employee-card {
            background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
            margin: 22px 24px 0;
            padding: 16px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            gap: 14px;
            border: 1px solid #e8edf2;
        }

:where(body.page-payroll) .bm-emp-avatar {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #1e4a6d, #2c7da0);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 16px;
            flex-shrink: 0;
            box-shadow: 0 4px 10px rgba(30, 74, 109, 0.25);
        }

:where(body.page-payroll) .bm-emp-info { flex: 1; min-width: 0; }

:where(body.page-payroll) .bm-emp-name {
            font-size: 16px;
            font-weight: 700;
            color: #1e4a6d;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

:where(body.page-payroll) .bm-period-pill {
            display: inline-block;
            margin-top: 6px;
            background: white;
            color: #1e4a6d;
            font-size: 11px;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 20px;
            border: 1px solid #d8e0e8;
        }

/* ========== CURRENT BONUS BADGE ========== */

:where(body.page-payroll) .bm-current-bonus {
            margin: 16px 24px 0;
            background: linear-gradient(135deg, #e8f5e9 0%, #d4edda 100%);
            border: 1px solid #c8e6c9;
            padding: 12px 16px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

:where(body.page-payroll) .bm-current-bonus-label {
            font-size: 12px;
            color: #2e7d32;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }

:where(body.page-payroll) .bm-current-bonus-value {
            font-size: 18px;
            font-weight: 700;
            color: #2e7d32;
        }

/* ========== FORM ========== */

:where(body.page-payroll) .bm-form { padding: 22px 24px 24px; }

:where(body.page-payroll) .bm-field { margin-bottom: 16px; }

:where(body.page-payroll) .bm-label {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            font-weight: 600;
            color: #1e4a6d;
            margin-bottom: 7px;
        }

:where(body.page-payroll) .bm-label-required {
            background: #ffebee;
            color: #d32f2f;
            font-size: 10px;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 10px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

:where(body.page-payroll) .bm-label-optional {
            background: #f0f4f8;
            color: #6c757d;
            font-size: 10px;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 10px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

:where(body.page-payroll) .bm-input-wrap {
            position: relative;
            display: flex;
            align-items: center;
        }

:where(body.page-payroll) .bm-input-prefix {
            position: absolute;
            left: 14px;
            color: #6c757d;
            font-weight: 700;
            font-size: 14px;
            pointer-events: none;
            z-index: 1;
        }

:where(body.page-payroll) .bm-form input[type="number"], :where(body.page-payroll) .bm-form textarea {
            width: 100%;
            padding: 12px 14px;
            border: 1.5px solid #e0e6ed;
            border-radius: 11px;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.18s ease;
            background: #fafbfc;
            color: #1e4a6d;
            font-family: inherit;
        }

:where(body.page-payroll) .bm-form input[type="number"] {
            padding-left: 48px;
            font-size: 16px;
            font-weight: 600;
        }

:where(body.page-payroll) .bm-form textarea {
            resize: vertical;
            min-height: 70px;
            line-height: 1.5;
        }

:where(body.page-payroll) .bm-form input[type="number"]:focus, :where(body.page-payroll) .bm-form textarea:focus {
            border-color: #1e4a6d;
            background: white;
            outline: none;
            box-shadow: 0 0 0 4px rgba(30, 74, 109, 0.08);
        }

:where(body.page-payroll) .bm-form input[type="number"]::-webkit-outer-spin-button, :where(body.page-payroll) .bm-form input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

:where(body.page-payroll) .bm-form input[type="number"] { -moz-appearance: textfield; }

:where(body.page-payroll) .bm-hint {
            font-size: 11px;
            color: #94a3b8;
            margin-top: 5px;
            padding-left: 2px;
        }

/* ========== ACTIONS ========== */

:where(body.page-payroll) .bm-actions {
            display: flex;
            gap: 10px;
            margin-top: 22px;
            padding-top: 18px;
            border-top: 1px solid #f0f3f6;
        }

:where(body.page-payroll) .bm-btn-cancel {
            flex: 1;
            padding: 12px 18px;
            background: white;
            color: #6c757d;
            border: 1.5px solid #e0e6ed;
            border-radius: 11px;
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.15s ease;
            font-family: inherit;
        }

:where(body.page-payroll) .bm-btn-cancel:hover {
            background: #f8fafc;
            border-color: #c7cfd8;
            color: #1e4a6d;
        }

:where(body.page-payroll) .bm-btn-save {
            flex: 1.6;
            padding: 12px 18px;
            background: linear-gradient(135deg, #1e4a6d 0%, #2c7da0 100%);
            color: white;
            border: none;
            border-radius: 11px;
            cursor: pointer;
            font-weight: 700;
            font-size: 14px;
            transition: all 0.18s ease;
            box-shadow: 0 6px 16px rgba(30, 74, 109, 0.28);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            font-family: inherit;
        }

:where(body.page-payroll) .bm-btn-save:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 8px 22px rgba(30, 74, 109, 0.4);
        }

:where(body.page-payroll) .bm-btn-save:active:not(:disabled) { transform: translateY(0); }

:where(body.page-payroll) .bm-btn-save:disabled { opacity: 0.65; cursor: not-allowed; }

:where(body.page-payroll) .bm-btn-remove {
            margin-top: 12px;
            width: 100%;
            padding: 11px;
            background: white;
            color: #d32f2f;
            border: 1.5px solid #ffcdd2;
            border-radius: 11px;
            cursor: pointer;
            font-weight: 600;
            font-size: 13px;
            transition: all 0.15s ease;
            font-family: inherit;
        }

:where(body.page-payroll) .bm-btn-remove:hover {
            background: #ffebee;
            border-color: #d32f2f;
        }

@media (max-width: 540px) {
:where(body.page-payroll) .modal-box { border-radius: 14px; }

:where(body.page-payroll) .bm-header { padding: 18px; }

:where(body.page-payroll) .bm-employee-card { margin: 18px 18px 0; padding: 14px; }

:where(body.page-payroll) .bm-form { padding: 18px; }

:where(body.page-payroll) .bm-title { font-size: 18px; }
}

/* ==================== Payroll temp-employee bonus modal (fetched on page-payroll) ==================== */

body:where(.page-payroll) { font-family: Arial, sans-serif; }

:where(body.page-payroll) .container { padding: 20px; }

:where(body.page-payroll) .header { background: #ff9800; color: white; padding: 15px; border-radius: 8px; margin-bottom: 20px; text-align: center; }

:where(body.page-payroll) .form-group { margin-bottom: 15px; }

:where(body.page-payroll) label { display: block; margin-bottom: 5px; font-weight: bold; }

:where(body.page-payroll) input, :where(body.page-payroll) textarea { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; }

:where(body.page-payroll) button { background: #4caf50; color: white; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; }

:where(body.page-payroll) .remove-btn { background: #dc3545; margin-top: 10px; }

:where(body.page-payroll) .close-btn { float: right; font-size: 20px; cursor: pointer; background: none; border: none; }

:where(body.page-payroll) .current-bonus { background: #e8f5e9; padding: 10px; border-radius: 4px; margin-bottom: 15px; }

/* ==================== Login page (login.php — body.login-body) ==================== */

/* Compatibility shield — this page did not load the base stylesheet before the
   consolidation. Revert the base-wide rules (the universal * rule, the legacy
   .login-body rule, body:not(.login-body)) so this page renders exactly as it
   did when its CSS lived in its own <style> block. */
body.login-body { all: revert; }
:where(body.login-body) * { margin: revert; padding: revert; font-family: revert; box-sizing: revert; }


body.login-body {
            --navy-950: #061722;
            --navy-900: #071f2e;
            --navy-850: #092a3e;
            --blue-700: #155f83;
            --blue-600: #2382aa;
            --blue-500: #35a5cf;
            --blue-400: #65c5e8;
            --blue-300: #9adff5;
            --white: #f8fcff;
            --muted: #9db6c5;
            --panel: rgba(6, 27, 41, 0.92);
            --line: rgba(147, 216, 242, 0.14);
            --line-strong: rgba(101, 197, 232, 0.44);
            --input: rgba(255,255,255,0.06);
            --input-focus: rgba(255,255,255,0.095);
            --danger-bg: rgba(244, 63, 94, 0.12);
            --danger-line: rgba(251, 113, 133, 0.30);
            --danger-text: #fecdd3;
            --shadow: 0 42px 110px rgba(0,12,21,0.58);
        }

:where(body.login-body) * { box-sizing: border-box; }

html:has(body.login-body), body.login-body { min-height: 100%; }

body.login-body {
            margin: 0;
            min-height: 100vh;
            padding: 28px;
            display: grid;
            place-items: center;
            overflow-x: hidden;
            color: var(--white);
            font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background:
                radial-gradient(circle at 13% 18%, rgba(53,165,207,.22), transparent 27%),
                radial-gradient(circle at 88% 13%, rgba(101,197,232,.17), transparent 24%),
                radial-gradient(circle at 56% 112%, rgba(35,130,170,.16), transparent 30%),
                linear-gradient(135deg, var(--navy-950) 0%, #0a2e44 48%, var(--blue-700) 100%);
        }

body.login-body::before {
            content: "";
            position: fixed;
            inset: 0;
            pointer-events: none;
            opacity: .58;
            background-image:
                linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
            background-size: 44px 44px;
            mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 88%);
        }

:where(body.login-body) .login-frame {
            width: min(1160px, 96vw);
            min-height: 710px;
            display: grid;
            grid-template-columns: 1.08fr .92fr;
            overflow: hidden;
            position: relative;
            z-index: 1;
            border: 1px solid var(--line);
            border-radius: 34px;
            background: var(--panel);
            box-shadow: var(--shadow);
            backdrop-filter: blur(24px);
        }

:where(body.login-body) .visual-panel {
            position: relative;
            overflow: hidden;
            padding: 44px 54px 40px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            border-right: 1px solid var(--line);
            background:
                linear-gradient(145deg, rgba(101,197,232,.10), transparent 35%),
                linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
        }

:where(body.login-body) .visual-panel::before {
            content: "";
            position: absolute;
            width: 330px;
            height: 330px;
            right: -105px;
            top: -105px;
            border-radius: 50%;
            border: 1px solid rgba(154,223,245,.15);
            background: rgba(53,165,207,.045);
            box-shadow: 0 0 0 44px rgba(53,165,207,.025), 0 0 0 88px rgba(53,165,207,.018);
        }

:where(body.login-body) .brand-row {
            position: relative;
            z-index: 4;
            display: flex;
            align-items: center;
            gap: 19px;
        }

:where(body.login-body) .brand-logo-wrap {
            width: 94px;
            height: 94px;
            display: grid;
            place-items: center;
            border-radius: 26px;
            border: 1px solid rgba(154,223,245,.22);
            background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.035));
            box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 38px rgba(0,0,0,.24);
        }

:where(body.login-body) .brand-logo {
            width: 80px;
            height: 80px;
            object-fit: contain;
            filter: drop-shadow(0 9px 18px rgba(0,0,0,.25));
        }

:where(body.login-body) .brand-name {
            margin: 0;
            font-size: 32px;
            line-height: 1;
            letter-spacing: -1px;
            font-weight: 900;
        }

:where(body.login-body) .brand-name span {
            color: var(--blue-400);
        }

:where(body.login-body) .brand-subtitle {
            display: block;
            margin-top: 9px;
            color: var(--muted);
            font-size: 12px;
            letter-spacing: .55px;
        }

:where(body.login-body) .mascot-stage {
            position: relative;
            z-index: 3;
            min-height: 430px;
            display: grid;
            place-items: center;
            padding: 8px 0;
        }

:where(body.login-body) .mascot-halo {
            position: absolute;
            width: 390px;
            height: 390px;
            border-radius: 50%;
            border: 1px solid rgba(101,197,232,.14);
            background: radial-gradient(circle, rgba(53,165,207,.19) 0%, rgba(53,165,207,.06) 48%, transparent 72%);
            box-shadow: 0 0 0 24px rgba(53,165,207,.018), inset 0 0 65px rgba(101,197,232,.045);
        }

/*
        |--------------------------------------------------------------------------
        | Static Ninja Mascot — full image, no cropping
        |--------------------------------------------------------------------------
        */

:where(body.login-body) .ninja-wrap {
            position: relative;
            z-index: 3;
            width: min(350px, 88%);
            height: 410px;
            display: flex;
            align-items: center;
            justify-content: center;
            filter: drop-shadow(0 30px 42px rgba(0,0,0,.32));
        }

:where(body.login-body) .ninja-image {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center center;
            border: 0;
            border-radius: 0;
            box-shadow: none;
            background: transparent;
        }

:where(body.login-body) .visual-copy {
            position: relative;
            z-index: 3;
            max-width: 520px;
            padding-top: 30px;
        }

:where(body.login-body) .visual-kicker {
            color: var(--blue-400);
            font-size: 12px;
            font-weight: 900;
            letter-spacing: 2.4px;
            text-transform: uppercase;
        }

:where(body.login-body) .visual-title {
            margin: 12px 0;
            font-size: clamp(35px, 4vw, 42px);
            line-height: 1.03;
            letter-spacing: -1.8px;
        }

:where(body.login-body) .visual-title span { color: var(--blue-300); }

:where(body.login-body) .visual-text {
            margin: 0;
            max-width: 485px;
            color: var(--muted);
            font-size: 15px;
            line-height: 1.7;
        }

:where(body.login-body) .form-panel {
            padding: 64px 68px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: linear-gradient(180deg, rgba(4,17,27,.70), rgba(4,17,27,.90));
        }

:where(body.login-body) .form-header { margin-bottom: 31px; }

:where(body.login-body) .form-kicker {
            color: var(--blue-400);
            font-size: 12px;
            font-weight: 900;
            letter-spacing: 2.1px;
            text-transform: uppercase;
        }

:where(body.login-body) .form-title {
            margin: 10px 0 8px;
            font-size: 38px;
            line-height: 1.1;
            letter-spacing: -1.15px;
        }

:where(body.login-body) .form-subtitle {
            margin: 0;
            color: var(--muted);
            font-size: 14px;
            line-height: 1.65;
        }

:where(body.login-body) .login-error {
            display: flex;
            gap: 10px;
            align-items: flex-start;
            margin-bottom: 18px;
            padding: 13px 14px;
            border-radius: 14px;
            background: var(--danger-bg);
            border: 1px solid var(--danger-line);
            color: var(--danger-text);
            font-size: 13px;
            line-height: 1.45;
        }

:where(body.login-body) .field { margin-bottom: 18px; }

:where(body.login-body) .field-label {
            display: block;
            margin: 0 0 8px 2px;
            color: #dcebf2;
            font-size: 12px;
            font-weight: 800;
        }

:where(body.login-body) .field-wrap { position: relative; }

:where(body.login-body) .field-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            width: 19px;
            height: 19px;
            transform: translateY(-50%);
            color: #7f9bad;
            pointer-events: none;
        }

:where(body.login-body) .field-input {
            width: 100%;
            height: 57px;
            padding: 0 50px 0 48px;
            border-radius: 16px;
            border: 1px solid var(--line);
            background: var(--input);
            color: var(--white);
            font-size: 14px;
            outline: none;
            transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
        }

:where(body.login-body) .field-input::placeholder { color: #718b9b; }

:where(body.login-body) .field-input:focus {
            background: var(--input-focus);
            border-color: var(--line-strong);
            box-shadow: 0 0 0 4px rgba(53,165,207,.10);
            transform: translateY(-1px);
        }

:where(body.login-body) .password-toggle {
            position: absolute;
            top: 50%;
            right: 11px;
            width: 36px;
            height: 36px;
            transform: translateY(-50%);
            display: grid;
            place-items: center;
            border: 0;
            border-radius: 11px;
            background: transparent;
            color: #819baa;
            cursor: pointer;
        }

:where(body.login-body) .password-toggle:hover, :where(body.login-body) .password-toggle:focus-visible {
            color: var(--blue-300);
            background: rgba(53,165,207,.10);
            outline: none;
        }

:where(body.login-body) .password-toggle svg { width: 19px; height: 19px; }

:where(body.login-body) .login-button {
            width: 100%;
            min-height: 57px;
            margin-top: 7px;
            border: 1px solid rgba(154,223,245,.55);
            border-radius: 16px;
            color: var(--navy-950);
            background: linear-gradient(135deg, var(--blue-300) 0%, var(--blue-400) 48%, var(--blue-500) 100%);
            font-size: 14px;
            font-weight: 900;
            cursor: pointer;
            box-shadow: 0 18px 38px rgba(53,165,207,.22);
        }

:where(body.login-body) .security-note {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 19px;
            color: #6f8b9c;
            font-size: 12px;
        }

:where(body.login-body) .security-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--blue-400);
            box-shadow: 0 0 14px rgba(101,197,232,.72);
        }

@media (max-width: 940px) {
body.login-body { padding: 18px; }

:where(body.login-body) .login-frame { width: min(740px,96vw); min-height: auto; grid-template-columns: 1fr; }

:where(body.login-body) .visual-panel { min-height: 455px; padding: 30px 34px 26px; border-right: 0; border-bottom: 1px solid var(--line); }

:where(body.login-body) .brand-logo-wrap { width: 76px; height: 76px; }

:where(body.login-body) .brand-logo { width: 64px; height: 64px; }

:where(body.login-body) .brand-name { font-size: 26px; }

:where(body.login-body) .mascot-stage { min-height: 330px; }

:where(body.login-body) .ninja-wrap { width: 270px; height: 320px; }

:where(body.login-body) .mascot-halo { width: 295px; height: 295px; }

:where(body.login-body) .visual-copy { display: none; }

:where(body.login-body) .form-panel { padding: 42px 36px 38px; }
}

@media (max-width: 560px) {
body.login-body { padding: 12px; }

:where(body.login-body) .login-frame { border-radius: 25px; }

:where(body.login-body) .visual-panel { min-height: 405px; padding: 23px 20px 19px; }

:where(body.login-body) .brand-row { gap: 13px; }

:where(body.login-body) .brand-logo-wrap { width: 64px; height: 64px; border-radius: 19px; }

:where(body.login-body) .brand-logo { width: 54px; height: 54px; }

:where(body.login-body) .brand-name { font-size: 22px; }

:where(body.login-body) .brand-subtitle { font-size: 10px; }

:where(body.login-body) .mascot-stage { min-height: 280px; }

:where(body.login-body) .ninja-wrap { width: 220px; height: 270px; }

:where(body.login-body) .mascot-halo { width: 245px; height: 245px; }

:where(body.login-body) .form-panel { padding: 34px 22px 28px; }

:where(body.login-body) .form-title { font-size: 31px; }
}

/* ==================== default.php (standalone page — body.default-page) ==================== */

/* Compatibility shield — this page did not load the base stylesheet before the
   consolidation. Revert the base-wide rules (the universal * rule, the legacy
   .login-body rule, body:not(.login-body)) so this page renders exactly as it
   did when its CSS lived in its own <style> block. */
body.default-page { all: revert; }
:where(body.default-page) * { margin: revert; padding: revert; font-family: revert; box-sizing: revert; }


body.default-page {
                margin: 0px;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                width: 100vw;
                height: 100vh;
                min-height: 675px;
                background-color: #F4F5FF;
            }

:where(body.default-page) p {
                width: 100%;
                left: 0px;
                font-size: 16px;
                font-family: 'DM Sans', sans-serif;
                font-weight: 400;
                letter-spacing: 0px;
                text-align: center;
                vertical-align: top;
                max-width: 550px;
                color: #727586;
                margin: 0px;
            }

:where(body.default-page) a:hover {
                cursor: pointer;
                color: #673DE6;
                text-decoration: underline;
            }

:where(body.default-page) h1 {
                font-family: 'DM Sans', sans-serif;
                font-size: 24px;
                font-weight: 700;
                letter-spacing: 0px;
                text-align: center;
                margin: 8px;
            }

:where(body.default-page) .content {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                width: 100%;
                height: 100%;
            }

:where(body.default-page) .ic-launch {
                margin-left: 10.5px;
                width: 21px !important;
                height: 20px !important;
            }

:where(body.default-page) .link-container {
                margin-top: 32px;
                margin-bottom: 32px;
            }

:where(body.default-page) .link {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;
                font-family: 'DM Sans', sans-serif;
                font-style: normal;
                font-weight: 700;
                font-size: 14px;
                color: #673DE6;
                margin-top: 8px;
                text-decoration: none;
            }

:where(body.default-page) .main-image {
                width: 100%;
                max-width: 650px;
                max-height: 406px;
                height: auto;
            }

:where(body.default-page) .navigation {
                width: 100%;
                height: 72px;
                display: flex;
                margin: 0;
                padding: 0;
                flex-direction: row;
                align-items: center;
                justify-content: center;
                background-color: #36344D;
            }

@media screen and (max-width: 580px) and (min-width: 0px) {
:where(body.default-page) h1, :where(body.default-page) p, :where(body.default-page) .link-container {
                    width: 80%;
                }
}

@media screen and (min-width: 650px) and (min-height: 0px) and (max-height: 750px) {
:where(body.default-page) .link-container {
                    margin-top: 12px;
                }

:where(body.default-page) h1 {
                    margin-top: 0px;
                    margin-bottom: 0px;
                }
}


/* ==================== Inline-style utilities ====================
   Extracted from static style="" attributes across the app (2026-07-14).
   display:* declarations were left inline on purpose — JavaScript toggles
   them (including el.style.display = '' restores that must fall back to
   the element's default, not to a class). Placed last in this file so a
   utility wins ties against page rules, exactly like the inline style did.
   ================================================================== */

.sx-46eaee { position: relative; }  /* 1x, e.g. layouts/sidebar.php */
.sx-1bf71b { gap: 10px; align-items: center; margin: 0; }  /* 1x, e.g. modules/attendance/index.php */
.sx-7aa509 { max-width: 600px; margin: 0 auto; background: white; border-radius: 20px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }  /* 2x, e.g. modules/bd_commission/add.php */
.sx-e1a562 { justify-content: space-between; align-items: center; margin-bottom: 30px; }  /* 2x, e.g. modules/bd_commission/add.php */
.sx-e897e1 { color: #ed6c02; }  /* 4x, e.g. modules/bd_commission/add.php */
.sx-45fb0f { background: #6c757d; color: white; padding: 10px 20px; border-radius: 8px; text-decoration: none; }  /* 2x, e.g. modules/bd_commission/add.php */
.sx-05640c { background: #f5f5f5; padding: 15px; border-radius: 10px; margin-bottom: 25px; }  /* 1x, e.g. modules/bd_commission/add.php */
.sx-aad29c { margin-bottom: 20px; }  /* 12x, e.g. modules/bd_commission/add.php */
.sx-9cd106 { margin-bottom: 8px; font-weight: 600; }  /* 6x, e.g. modules/bd_commission/add.php */
.sx-231a09 { width: 100%; padding: 12px; border: 2px solid #f39c12; border-radius: 8px; font-size: 16px; }  /* 2x, e.g. modules/bd_commission/add.php */
.sx-44b4b3 { width: 100%; padding: 12px; border: 2px solid #ddd; border-radius: 8px; }  /* 4x, e.g. modules/bd_commission/add.php */
.sx-a25874 { gap: 15px; justify-content: flex-end; }  /* 4x, e.g. modules/bd_commission/add.php */
.sx-3ef072 { padding: 12px 25px; background: #6c757d; color: white; border: none; border-radius: 8px; cursor: pointer; text-decoration: none; }  /* 2x, e.g. modules/bd_commission/add.php */
.sx-fe6075 { padding: 12px 25px; background: linear-gradient(135deg, #ed6c02, #f39c12); color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; }  /* 2x, e.g. modules/bd_commission/add.php */
.sx-2240bc { gap: 20px; align-items: center; background: #f5f5f5; padding: 15px; border-radius: 10px; margin-bottom: 25px; }  /* 1x, e.g. modules/bd_commission/edit.php */
.sx-3f8428 { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #ed6c02, #f39c12); align-items: center; justify-content: center; color: white; font-size: 1.5rem; font-weight: 600; }  /* 2x, e.g. modules/bd_commission/edit.php */
.sx-09cf65 { font-size: 1.5rem; font-weight: 600; }  /* 2x, e.g. modules/bd_commission/edit.php */
.sx-618c58 { gap: 15px; }  /* 2x, e.g. modules/bd_commission/index.php */
.sx-53c86e { text-align: center; padding: 40px; }  /* 1x, e.g. modules/bd_commission/index.php */
.sx-e79288 { color: #999; }  /* 4x, e.g. modules/bd_commission/index.php */
.sx-e6d778 { color: #1e4a6d; font-weight: 700; }  /* 1x, e.g. modules/bd_commission/index.php */
.sx-405467 { max-width: 500px; }  /* 5x, e.g. modules/bd_commission/index.php */
.sx-e4277c { justify-content: space-between; align-items: center; padding: 20px; background: linear-gradient(135deg, #ed6c02, #f39c12); }  /* 1x, e.g. modules/bd_commission/list.php */
.sx-53cddb { color: white; margin: 0; }  /* 1x, e.g. modules/bd_commission/list.php */
.sx-449064 { padding: 20px; }  /* 6x, e.g. modules/bd_commission/list.php */
.sx-4e090e { gap: 20px; align-items: center; background: #f5f5f5; padding: 15px; border-radius: 10px; margin-bottom: 20px; }  /* 1x, e.g. modules/bd_commission/list.php */
.sx-57e43c { color: #666; }  /* 2x, e.g. modules/bd_commission/list.php */
.sx-cbbd37 { color: #ed6c02; font-weight: 700; }  /* 1x, e.g. modules/bd_commission/list.php */
.sx-758469 { background: white; border-radius: 10px; border: 1px solid #eee; padding: 20px; }  /* 1x, e.g. modules/bd_commission/list.php */
.sx-dec8eb { text-align: center; padding: 30px; color: #999; }  /* 1x, e.g. modules/bd_commission/list.php */
.sx-b9358d { width: 100%; border-collapse: collapse; }  /* 1x, e.g. modules/bd_commission/list.php */
.sx-67aead { border-bottom: 1px solid #eee; }  /* 1x, e.g. modules/bd_commission/list.php */
.sx-da621e { background: #1e4a6d; color: white; border: none; border-radius: 4px; padding: 6px 12px; cursor: pointer; margin-right: 5px; text-decoration: none; }  /* 1x, e.g. modules/bd_commission/list.php */
.sx-3b0094 { background: #d32f2f; color: white; border: none; border-radius: 4px; padding: 6px 12px; cursor: pointer; text-decoration: none; }  /* 1x, e.g. modules/bd_commission/list.php */
.sx-8ee65b { gap: 10px; justify-content: flex-end; margin-top: 20px; }  /* 1x, e.g. modules/bd_commission/list.php */
.sx-67a5c1 { padding: 10px 20px; background: #ed6c02; color: white; border: none; border-radius: 5px; cursor: pointer; text-decoration: none; }  /* 1x, e.g. modules/bd_commission/list.php */
.sx-0c8a9b { text-align: center; margin-top: 15px; padding-top: 10px; border-top: 1px solid var(--gray-200); }  /* 1x, e.g. modules/dashboard.php */
.sx-b1b911 { gap: 10px; align-items: center; }  /* 3x, e.g. modules/dashboard.php */
.sx-4b474a { font-size: 48px; opacity: 0.2; }  /* 1x, e.g. modules/documents/index.php */
.sx-d944d8 { text-decoration: none; align-items: center; }  /* 1x, e.g. modules/documents/index.php */
.sx-d495c2 { font-size: 64px; opacity: 0.2; }  /* 1x, e.g. modules/documents/index.php */
.sx-1631dc { background: #6c757d; }  /* 2x, e.g. modules/employees/add.php */
.sx-fa9464 { text-align: center; margin-bottom: 30px; }  /* 1x, e.g. modules/employees/add.php */
.sx-27a15e { flex-direction: column; align-items: center; gap: 15px; }  /* 1x, e.g. modules/employees/add.php */
.sx-7d61e1 { width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, #1e4a6d, #2c7da0); align-items: center; justify-content: center; color: white; font-size: 3rem; font-weight: 600; overflow: hidden; }  /* 1x, e.g. modules/employees/add.php */
.sx-b2f3d6 { background: #1e4a6d; }  /* 2x, e.g. modules/employees/add.php */
.sx-77243a { margin: 20px 0 10px; color: #1e4a6d; }  /* 1x, e.g. modules/employees/add.php */
.sx-46d43a { margin: 30px 0 10px; color: #1e4a6d; }  /* 4x, e.g. modules/employees/add.php */
.sx-e6c398 { grid-column: 1 / -1; padding: 12px; }  /* 1x, e.g. modules/employees/add.php */
.sx-9cf01c { margin-bottom: 5px; }  /* 3x, e.g. modules/employees/add.php */
.sx-962b0b { gap: 15px; justify-content: flex-end; margin-top: 30px; }  /* 1x, e.g. modules/employees/add.php */
.sx-436643 { padding: 12px 25px; background: #6c757d; color: white; border-radius: 8px; text-decoration: none; }  /* 1x, e.g. modules/employees/add.php */
.sx-da77cb { padding: 12px 25px; background: #1e4a6d; color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; }  /* 3x, e.g. modules/employees/add.php */
.sx-29a3a3 { gap: 10px; margin: 20px 0; border-bottom: 2px solid #eee; padding-bottom: 10px; flex-wrap: wrap; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-394d48 { padding: 8px 16px; border: none; background: #1e4a6d; color: white; border-radius: 5px; cursor: pointer; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-096d5e { padding: 8px 16px; border: none; background: #6c757d; color: white; border-radius: 5px; cursor: pointer; }  /* 7x, e.g. modules/employees/edit_modal.php */
.sx-8e418c { align-items: center; gap: 30px; flex-wrap: wrap; }  /* 1x, e.g. modules/employees/edit_modal.php */
.sx-6f17b4 { width: 90px; height: 90px; border-radius: 50%; overflow: hidden; border: 3px solid #1e4a6d; }  /* 1x, e.g. modules/employees/edit_modal.php */
.sx-670166 { width: 100%; height: 100%; object-fit: cover; }  /* 14x, e.g. modules/employees/edit_modal.php */
.sx-dd707c { width: 100%; height: 100%; background: linear-gradient(135deg, #1e4a6d, #2c7da0); align-items: center; justify-content: center; color: white; font-size: 2rem; font-weight: 600; }  /* 1x, e.g. modules/employees/edit_modal.php */
.sx-b70cc7 { margin-top: 10px; font-size: 12px; color: #666; }  /* 1x, e.g. modules/employees/edit_modal.php */
.sx-baffaf { gap: 15px; justify-content: flex-end; margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }  /* 1x, e.g. modules/employees/edit_modal.php */
.sx-2b64cf { padding: 12px 25px; background: #6c757d; color: white; border: none; border-radius: 8px; cursor: pointer; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-5f5eec { background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 10px; padding: 14px; margin-bottom: 12px; }  /* 1x, e.g. modules/employees/edit_modal.php */
.sx-9e0c5e { margin: 0 0 12px 0; color: #1e4a6d; font-size: 14px; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-fda70d { gap: 12px; align-items: flex-start; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-8d02b3 { width: 80px; height: 80px; border-radius: 8px; overflow: hidden; flex-shrink: 0; border: 1px solid #ddd; cursor: zoom-in; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-f85972 { width: 100%; height: 100%; background: #f0f0f0; align-items: center; justify-content: center; font-size: 30px; color: #ccc; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-a2e4a4 { flex: 1; }  /* 4x, e.g. modules/employees/edit_modal.php */
.sx-b1e213 { gap: 6px; margin-top: 8px; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-9a2465 { padding: 6px 12px; background: #4caf50; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 12px; font-weight: 600; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-74a37c { background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 10px; padding: 14px; margin-bottom: 18px; }  /* 1x, e.g. modules/employees/edit_modal.php */
.sx-a14a05 { background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 10px; padding: 16px; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-31e911 { justify-content: space-between; align-items: center; margin-bottom: 14px; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-03a053 { color: #1e4a6d; margin: 0; font-size: 14px; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-03c8c8 { padding: 6px 12px; background: #1e4a6d; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 12px; font-weight: 600; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-076ed0 { background: white; border: 1.5px dashed #1e4a6d; border-radius: 8px; padding: 14px; margin-bottom: 12px; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-e7b913 { gap: 7px; justify-content: flex-end; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-31132f { padding: 7px 14px; background: #6c757d; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 12px; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-d1646d { padding: 7px 14px; background: #4caf50; color: white; border: none; border-radius: 5px; cursor: pointer; font-size: 12px; font-weight: 600; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-3059be { text-align: center; padding: 22px; color: #999; font-size: 13px; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-0c35e2 { align-items: center; justify-content: space-between; background: white; padding: 10px 12px; border-radius: 7px; margin-bottom: 7px; border: 1px solid #e0e0e0; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-08dc1b { align-items: center; gap: 10px; flex: 1; min-width: 0; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-9def25 { width: 36px; height: 36px; border-radius: 5px; overflow: hidden; cursor: zoom-in; flex-shrink: 0; border: 1px solid #ddd; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-a437a6 { min-width: 0; overflow: hidden; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-190429 { font-weight: 600; color: #333; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-4980ff { font-size: 10px; color: #888; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-ec2870 { gap: 5px; flex-shrink: 0; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-accc88 { padding: 5px 9px; background: #e3f2fd; color: #0288d1; border-radius: 5px; text-decoration: none; font-size: 11px; font-weight: 600; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-d38d93 { padding: 5px 9px; background: #e8f5e9; color: #2e7d32; border-radius: 5px; text-decoration: none; font-size: 11px; font-weight: 600; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-eae93e { padding: 5px 9px; background: #ffebee; color: #d32f2f; border: none; border-radius: 5px; cursor: pointer; font-size: 11px; font-weight: 600; }  /* 2x, e.g. modules/employees/edit_modal.php */
.sx-84709f { position: fixed; top: 20px; right: 20px; background: white; border-radius: 8px; padding: 12px 18px; box-shadow: 0 4px 16px rgba(0,0,0,0.15); z-index: 99999; border-left: 4px solid #4caf50; font-weight: 500; font-size: 14px; }  /* 1x, e.g. modules/employees/edit_modal.php */
.sx-97cabc { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }  /* 1x, e.g. modules/employees/get_employee.php */
.sx-1299db { background: #f8f9fa; border: 1px solid #e0e0e0; border-radius: 10px; padding: 12px; align-items: center; gap: 12px; }  /* 2x, e.g. modules/employees/get_employee.php */
.sx-a2fd15 { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; flex-shrink: 0; border: 1px solid #ddd; cursor: zoom-in; }  /* 2x, e.g. modules/employees/get_employee.php */
.sx-db19aa { flex: 1; min-width: 0; }  /* 2x, e.g. modules/employees/get_employee.php */
.sx-3602be { font-weight: 600; font-size: 13px; color: #1e4a6d; }  /* 2x, e.g. modules/employees/get_employee.php */
.sx-097657 { padding: 3px 9px; background: #e8f5e9; color: #2e7d32; border-radius: 4px; text-decoration: none; font-size: 11px; font-weight: 600; margin-top: 4px; }  /* 2x, e.g. modules/employees/get_employee.php */
.sx-afb898 { width: 56px; height: 56px; border-radius: 8px; background: #f0f0f0; align-items: center; justify-content: center; flex-shrink: 0; font-size: 22px; color: #ccc; }  /* 2x, e.g. modules/employees/get_employee.php */
.sx-7318b6 { font-weight: 600; font-size: 13px; color: #999; }  /* 2x, e.g. modules/employees/get_employee.php */
.sx-47bb1b { align-items: center; gap: 12px; }  /* 2x, e.g. modules/employees/index.php */
.sx-4091a2 { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #1e4a6d, #2c7da0); }  /* 2x, e.g. modules/employees/index.php */
.sx-8d8472 { width: 100%; height: 100%; align-items: center; justify-content: center; color: white; font-weight: 600; font-size: 14px; }  /* 3x, e.g. modules/employees/index.php */
.sx-988413 { font-weight: 600; color: #333; }  /* 2x, e.g. modules/employees/index.php */
.sx-d76b32 { font-size: 12px; color: #666; }  /* 1x, e.g. modules/employees/index.php */
.sx-1736ee { color: #333; }  /* 1x, e.g. modules/employees/index.php */
.sx-2628ba { font-size: 12px; color: #666; margin-top: 2px; }  /* 1x, e.g. modules/employees/index.php */
.sx-98695a { font-weight: 600; color: #1e4a6d; }  /* 1x, e.g. modules/employees/index.php */
.sx-ad5cc8 { margin-top: 20px; padding-top: 15px; border-top: 1px solid #eee; gap: 20px; font-size: 14px; }  /* 1x, e.g. modules/employees/index.php */
.sx-e1afe4 { font-weight: 600; }  /* 9x, e.g. modules/employees/index.php */
.sx-9bee12 { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 9999; justify-content: center; align-items: center; }  /* 1x, e.g. modules/employees/index.php */
.sx-ce9d81 { background: white; border-radius: 20px; width: 90%; max-width: 1000px; max-height: 90vh; overflow-y: auto; padding: 20px; position: relative; }  /* 1x, e.g. modules/employees/index.php */
.sx-304186 { justify-content: space-between; align-items: center; margin-bottom: 20px; }  /* 5x, e.g. modules/expenses/add_modal.php */
.sx-69fc43 { margin: 0; color: #1e4a6d; }  /* 4x, e.g. modules/expenses/add_modal.php */
.sx-edd56d { margin-bottom: 15px; }  /* 34x, e.g. modules/expenses/add_modal.php */
.sx-22b3c5 { margin-bottom: 5px; font-weight: 600; }  /* 36x, e.g. modules/expenses/add_modal.php */
.sx-2722f5 { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; }  /* 19x, e.g. modules/expenses/add_modal.php */
.sx-8d29c6 { color: #666; margin-top: 5px; }  /* 2x, e.g. modules/expenses/add_modal.php */
.sx-daa2ef { gap: 10px; }  /* 4x, e.g. modules/expenses/add_modal.php */
.sx-bbda47 { flex: 1; padding: 14px; background: #1e4a6d; color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; }  /* 3x, e.g. modules/expenses/add_modal.php */
.sx-29159e { flex: 1; padding: 14px; background: #6c757d; color: white; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; }  /* 3x, e.g. modules/expenses/add_modal.php */
.sx-bcce50 { flex: 1; padding: 14px; background: #1e4a6d; color: white; border: none; border-radius: 8px; cursor: pointer; }  /* 1x, e.g. modules/expenses/edit_modal.php */
.sx-667500 { flex: 1; padding: 14px; background: #6c757d; color: white; border: none; border-radius: 8px; cursor: pointer; }  /* 1x, e.g. modules/expenses/edit_modal.php */
.sx-8d56f8 { width: 100px; padding: 10px; border: 1px solid #ddd; border-radius: 8px; }  /* 1x, e.g. modules/expenses/index.php */
.sx-7fc649 { width: 120px; padding: 10px; border: 1px solid #ddd; border-radius: 8px; }  /* 1x, e.g. modules/expenses/index.php */
.sx-c6794b { padding: 10px 20px; background: #1e4a6d; color: white; border: none; border-radius: 8px; cursor: pointer; }  /* 1x, e.g. modules/expenses/index.php */
.sx-61d875 { padding: 10px 20px; background: #28a745; color: white; border: none; border-radius: 8px; cursor: pointer; text-decoration: none; align-items: center; gap: 5px; }  /* 1x, e.g. modules/expenses/index.php */
.sx-8fb4e4 { color: #2e7d32; }  /* 2x, e.g. modules/expenses/index.php */
.sx-2a6ef2 { background: #2e7d32; }  /* 2x, e.g. modules/expenses/index.php */
.sx-9ff5bc { background: #ed6c02; }  /* 1x, e.g. modules/expenses/index.php */
.sx-29e39c { padding: 5px 12px; background: #17a2b8; color: white; text-decoration: none; border-radius: 5px; font-size: 12px; font-weight: 500; }  /* 1x, e.g. modules/expenses/index.php */
.sx-c68d43 { gap: 20px; }  /* 2x, e.g. modules/increments/add_modal.php */
.sx-5b077f { padding: 12px 25px; background: #6c757d; color: white; border: none; border-radius: 8px; }  /* 1x, e.g. modules/increments/add_modal.php */
.sx-a068c4 { padding: 12px 25px; background: #1e4a6d; color: white; border: none; border-radius: 8px; }  /* 1x, e.g. modules/increments/add_modal.php */
.sx-a50a17 { margin-bottom: 20px; padding: 15px; background: #f8f9fa; border-radius: 8px; }  /* 2x, e.g. modules/increments/edit.php */
.sx-19eb79 { gap: 15px; justify-content: flex-end; margin-top: 20px; }  /* 1x, e.g. modules/increments/edit_modal.php */
.sx-5604ae { color: #0288d1; }  /* 1x, e.g. modules/inventory/index.php */
.sx-e25552 { background: #0288d1; }  /* 1x, e.g. modules/inventory/index.php */
.sx-9d0f39 { width: 5%; }  /* 1x, e.g. modules/inventory/index.php */
.sx-835612 { width: 10%; }  /* 2x, e.g. modules/inventory/index.php */
.sx-4e2272 { width: 12%; }  /* 2x, e.g. modules/inventory/index.php */
.sx-682690 { width: 15%; }  /* 1x, e.g. modules/inventory/index.php */
.sx-55abdc { width: 18%; }  /* 1x, e.g. modules/inventory/index.php */
.sx-d215ed { width: 8%; }  /* 3x, e.g. modules/inventory/index.php */
.sx-754e01 { background: #f0f0f0; padding: 4px 8px; border-radius: 4px; font-family: monospace; font-size: 12px; }  /* 1x, e.g. modules/inventory/index.php */
.sx-e84bde { gap: 8px; }  /* 2x, e.g. modules/inventory/index.php */
.sx-8b83dd { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, #1e4a6d, #2c7da0); }  /* 1x, e.g. modules/inventory/index.php */
.sx-8d4d6c { font-weight: 500; }  /* 1x, e.g. modules/inventory/index.php */
.sx-e23e96 { max-width: 600px; }  /* 2x, e.g. modules/inventory/index.php */
.sx-436be5 { border-left-color: var(--success); }  /* 1x, e.g. modules/leave/hr_dashboard.php */
.sx-271b26 { border-left-color: var(--info); }  /* 1x, e.g. modules/leave/hr_dashboard.php */
.sx-343b37 { grid-column: 1/-1; text-align: center; padding: 40px; }  /* 1x, e.g. modules/leave/hr_dashboard.php */
.sx-d5f09f { margin-top: 10px; }  /* 1x, e.g. modules/leave/hr_dashboard.php */
.sx-ac6437 { color: var(--warning); }  /* 3x, e.g. modules/leave/hr_dashboard.php */
.sx-449fea { margin: 10px 0; font-size: 13px; background: #f0f9ff; padding: 8px; border-radius: 6px; }  /* 1x, e.g. modules/leave/hr_dashboard.php */
.sx-7af5c3 { flex: 1; background: var(--gray-200); }  /* 1x, e.g. modules/leave/hr_dashboard.php */
.sx-701da7 { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }  /* 1x, e.g. modules/leave/leave_history.php */
.sx-76bbe1 { margin: 20px 0 10px; }  /* 1x, e.g. modules/leave/leave_history.php */
.sx-deb52f { grid-column: 1/-1; text-align: center; padding: 40px; background: white; border-radius: 12px; }  /* 1x, e.g. modules/leave/leave_history.php */
.sx-c571ed { color: var(--success); }  /* 3x, e.g. modules/leave/leave_history.php */
.sx-25d229 { justify-content: space-between; }  /* 1x, e.g. modules/payroll/calculate.php */
.sx-cc8fd8 { font-size: 24px; border: none; background: none; cursor: pointer; }  /* 1x, e.g. modules/payroll/calculate.php */
.sx-0cb62f { text-align: center; margin: 20px 0; }  /* 1x, e.g. modules/payroll/calculate.php */
.sx-8ad12c { margin: 20px 0; padding: 15px; background: #f9f9f9; border-radius: 5px; }  /* 1x, e.g. modules/payroll/calculate.php */
.sx-b984d4 { gap: 10px; justify-content: flex-end; }  /* 2x, e.g. modules/payroll/calculate.php */
.sx-150b7a { margin-bottom: 18px; color: #555; font-size: 14px; }  /* 2x, e.g. modules/payroll/deduction_modal.php */
.sx-774896 { font-size: 13px; font-weight: 600; }  /* 7x, e.g. modules/payroll/deduction_modal.php */
.sx-9b8ddc { font-size: 12px; color: #888; margin: -5px 0 10px; }  /* 2x, e.g. modules/payroll/deduction_modal.php */
.sx-213001 { text-align: center; padding: 40px; background: white; border-radius: 16px; }  /* 1x, e.g. modules/payroll/index.php */
.sx-ebb365 { margin-top: 15px; }  /* 1x, e.g. modules/payroll/index.php */
.sx-8286d6 { background-color: #fff8e7; }  /* 1x, e.g. modules/payroll/index.php */
.sx-265158 { background: #ff9800; }  /* 1x, e.g. modules/payroll/index.php */
.sx-8c4236 { clear: both; }  /* 1x, e.g. modules/payroll/temp_bonus_modal.php */
.sx-f491e9 { gap: 10px; align-items: center; flex-wrap: wrap; }  /* 2x, e.g. modules/reports/index.php */
.sx-9dd251 { color: #999; margin-bottom: 20px; }  /* 1x, e.g. modules/subscriptions/index.php */
.sx-8ae10d { background: none; border: none; font-size: 24px; cursor: pointer; color: #666; }  /* 1x, e.g. modules/upwork_commissions/edit_modal.php */
.sx-8ff14a { background: #f0f9ff; padding: 15px; border-radius: 10px; margin-bottom: 20px; }  /* 1x, e.g. modules/upwork_commissions/edit_modal.php */
.sx-e9a672 { font-size: 13px; font-weight: 600; margin-bottom: 5px; }  /* 5x, e.g. modules/upwork_commissions/edit_modal.php */
.sx-20f4fb { padding: 10px 20px; background: #e5e7eb; border: none; border-radius: 5px; cursor: pointer; }  /* 1x, e.g. modules/upwork_commissions/edit_modal.php */
.sx-51e7cb { padding: 10px 20px; background: #1e4a6d; color: white; border: none; border-radius: 5px; cursor: pointer; }  /* 1x, e.g. modules/upwork_commissions/edit_modal.php */
.sx-1e0f28 { font-size: 13px; color: var(--gray-600); margin-top: 5px; }  /* 2x, e.g. modules/upwork_commissions/index.php */
.sx-d6e6ce { background: #f59e0b; }  /* 1x, e.g. modules/upwork_commissions/index.php */
.sx-1adfef { margin-right: 10px; }  /* 1x, e.g. modules/upwork_commissions/index.php */
.sx-0a6c82 { align-items: flex-end; }  /* 1x, e.g. modules/upwork_commissions/index.php */
.sx-a9f800 { width: 100%; }  /* 1x, e.g. modules/upwork_commissions/index.php */
.sx-304460 { color: #9ca3af; }  /* 2x, e.g. modules/upwork_commissions/index.php */
