/* HR/Core shared interface CSS */
/* Shared HR and core platform components. */

:root {
    --apple-primary: #D42027;
    --apple-primary-hover: #B31E24;
    --apple-primary-light: rgba(212, 32, 39, 0.1);
    --apple-gray: #8E8E93;
    --apple-light-gray: #F2F2F7;
    --apple-dark-gray: #1C1C1E;
    --apple-success: #34C759;
    --apple-success-hover: #30B350;
    --apple-warning: #FF9500;
    --apple-danger: #FF3B30;
    --apple-border: #E5E5EA;
    --apple-shadow: 0;
    --apple-border-radius: 12px;

    /* Offset for fixed main navbar (used by sticky elements) */
    --app-fixed-header-offset: 72px;
}

/* Card Components */
.apple-card {
    background: white;
    border-radius: var(--apple-border-radius);
    border: 1px solid var(--apple-border);
    box-shadow: var(--apple-shadow);
    overflow: hidden;
}

/* Sticky header inside a scrollable card (opt-in via classes) */
.apple-sticky-card {
    max-height: calc(100vh - var(--app-fixed-header-offset) - 1rem);
    overflow: hidden;
}

/* Use alongside Bootstrap .sticky-top when a fixed navbar exists */
.apple-sticky-under-header {
    top: var(--app-fixed-header-offset) !important;
}

.apple-sticky-card-header {
    position: sticky;
    top: 0;
    z-index: 5;
}

.apple-sticky-card-body {
    overflow-y: auto;
}

/* Card headers */
.apple-card-header--gradient {
    background: linear-gradient(135deg,
        var(--company-primary, var(--apple-primary)) 0%,
        var(--company-primary-hover, var(--apple-primary-hover)) 100%
    );
    color: #fff;
    border-radius: var(--apple-border-radius) var(--apple-border-radius) 0 0;
    padding: 1.5rem;
    border-bottom: none;
}

/* Tabs (Apple style) */
.nav-tabs.nav-tabs-apple {
    border-bottom: 2px solid var(--apple-border);
    margin-bottom: 0;
    background: transparent;
}

.nav-tabs.nav-tabs-apple .nav-link {
    border: none;
    border-radius: 0;
    padding: 1rem 2rem;
    font-weight: 600;
    color: var(--apple-gray);
    transition: all 0.3s ease;
    position: relative;
    background: transparent;
}

.nav-tabs.nav-tabs-apple .nav-link:hover {
    color: var(--company-primary, var(--apple-primary));
    background: transparent;
    border: none;
}

.nav-tabs.nav-tabs-apple .nav-link.active {
    color: var(--company-primary, var(--apple-primary));
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--company-primary, var(--apple-primary));
}

.tab-content.tab-content-apple {
    background: #fff;
    border-radius: 0 0 var(--apple-border-radius) var(--apple-border-radius);
}

.apple-tab-content {
    background: #fff;
    border-radius: var(--apple-border-radius);
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border: 1px solid var(--apple-border);
    overflow: hidden;
}

.apple-tab-header {
    background: #f8f9fa;
    border-bottom: 1px solid var(--apple-border);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apple-tab-header h5 {
    margin: 0;
    font-weight: 600;
    color: #2c3e50;
}

.apple-tab-body {
    padding: 24px;
}

.apple-sub-tabs {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
}

.apple-sub-tabs .nav-link {
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--apple-gray);
    font-weight: 500;
    font-size: 0.875rem;
    padding: 10px 16px;
    margin: 0 2px;
    transition: all 0.2s ease;
}

.apple-sub-tabs .nav-link:hover {
    background: var(--apple-light-gray);
    color: var(--apple-dark-gray);
}

.apple-sub-tabs .nav-link.active {
    background: #fff;
    color: var(--company-primary, var(--apple-primary));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.apple-search-box {
    background: #fff;
    border: 1px solid var(--apple-border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 100%;
}

.apple-search-box:focus {
    outline: none;
    border-color: var(--company-primary, var(--apple-primary));
    box-shadow: 0 0 0 3px var(--company-primary-light, var(--apple-primary-light));
}

/* Prevent tab hash scroll jumps (scoped to HRM setup page wrapper) */
.hrm-setup-page .tab-pane {
    scroll-margin-top: 0;
}

.hrm-setup-page .apple-tab-content,
.hrm-setup-page .tab-content,
.hrm-setup-page [id^="branch"],
.hrm-setup-page [id^="department"],
.hrm-setup-page [id^="job-"],
.hrm-setup-page [id^="employment"],
.hrm-setup-page [id^="allowance"],
.hrm-setup-page [id^="deduction"],
.hrm-setup-page [id^="bpjs"],
.hrm-setup-page [id^="payslip"],
.hrm-setup-page [id^="leave"],
.hrm-setup-page [id^="overtime"],
.hrm-setup-page [id^="banks"] {
    scroll-margin-top: 0 !important;
}

/* -----------------------------
    HR Employee Setup components
    (kept generic so views don't need inline CSS)
    ----------------------------- */

#searchEmployee { min-width: 180px; }

@media (max-width: 768px) {
    #searchEmployee { min-width: 140px; }
}

@media (min-width: 768px) {
    #sortBy { min-width: 220px; }
}

.sort-order-select { width: 120px; }

.filter-icon { font-size: 0.95rem; }

.filter-select { min-width: 160px; }

.import-preview-table-container {
    max-height: 240px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.employee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}

.employee-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-weight: 600;
    cursor: pointer;
}

.avatar-modal-image {
    max-height: 240px;
    object-fit: cover;
}

/* Avatar Approvals helpers */
.avatar-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--company-primary);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.avatar-preview:hover {
    transform: scale(1.05);
}

.avatar-preview--empty {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--apple-light-gray);
    border: 1px dashed var(--apple-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--apple-gray);
    font-size: 0.85rem;
}

.current-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--apple-border);
}

.modal-avatar-image {
    max-height: 70vh;
    border-radius: 1rem;
}

/* Company brand color text helper */
.text-company-primary {
    color: var(--company-primary) !important;
}

/* Company-themed Stats Cards (used across HR pages) */
.stats-card--company {
    background: #fff !important;
    color: var(--gray-800, #5a5c69) !important;
    border: 1px solid var(--apple-border, #E5E5EA);
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border-radius: 0.75rem;
    padding: 1.1rem;
    height: 100% !important;
    min-height: 96px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card--company:hover {
    box-shadow: 0 0.25rem 2rem 0 rgba(58, 59, 69, 0.2);
    transform: translateY(-2px);
}

.stats-card--company .stats-content {
    padding: 0;
}

.stats-card--company .stats-label {
    color: var(--gray-600, #858796) !important;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stats-card--company .stats-number {
    color: var(--company-primary) !important;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 0;
}

.stats-card--company .floating-icon {
    color: var(--company-primary) !important;
    opacity: 0.15;
    font-size: 2.1rem;
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
}

/* Filter Card */
.filter-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.filter-card:hover {
    background: var(--surface-hover);
    box-shadow: var(--shadow-medium);
}

/* Tables */
.elegant-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--apple-border);
    font-size: 0.95rem;
    width: 100%;
    background: white;
}

.elegant-table thead th {
    background: var(--apple-light-gray);
    color: var(--apple-dark-gray);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    border: none;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
}

.elegant-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--apple-border);
}

.elegant-table tbody tr:hover {
    /* Use a neutral light-gray hover to avoid using the company's primary (red) color here */
    background-color: var(--apple-light-gray);
    /* Keep hover subtle: no lift or colored shadow */
    transform: none;
    box-shadow: none;
}

.elegant-table tbody tr:last-child {
    border-bottom: none;
}

.elegant-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: none;
}

.elegant-table tfoot {
    background: var(--apple-light-gray);
    font-weight: 600;
}

.elegant-table tfoot td {
    padding: 1rem;
    border-top: 2px solid var(--apple-border);
}

/* Table Footer Row */
.elegant-table-footer {
    background: var(--apple-light-gray) !important;
}

.elegant-table-footer td {
    font-weight: 600;
    background: var(--apple-light-gray);
}

/* Apple Table Variants */
.apple-table {
    background: white;
    border-radius: var(--apple-border-radius);
    overflow: hidden;
    box-shadow: var(--apple-shadow);
    border: 1px solid var(--apple-border);
}

.apple-table-header {
    background: var(--apple-light-gray);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--apple-border);
    font-weight: 600;
    color: var(--apple-dark-gray);
}

.apple-table-row {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--apple-border);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.apple-table-row:hover {
    background-color: var(--apple-primary-light);
}

.apple-table-row:last-child {
    border-bottom: none;
}

/* Table Cell Types */
.table-cell-primary {
    font-weight: 600;
    color: var(--apple-primary);
}

.table-cell-success {
    color: var(--apple-success);
    font-weight: 500;
}

.table-cell-warning {
    color: var(--apple-warning);
    font-weight: 500;
}

.table-cell-danger {
    color: var(--apple-danger);
    font-weight: 500;
}

.table-cell-muted {
    color: var(--apple-gray);
    font-size: 0.875rem;
}

/* Nested Tables */
.nested-table {
    background: rgba(248, 249, 250, 0.5);
    border-radius: 8px;
    border: 1px solid var(--apple-border);
    margin: 0.5rem 0;
}

.nested-table thead th {
    background: rgba(248, 249, 250, 0.8);
    font-size: 0.75rem;
    padding: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nested-table tbody td {
    padding: 0.75rem;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(229, 229, 234, 0.5);
}

.nested-table tbody tr:hover {
    background-color: rgba(212, 32, 39, 0.05);
}

/* Table Responsive Wrapper */
.table-responsive {
    border-radius: var(--apple-border-radius);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: var(--apple-light-gray);
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--apple-gray);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--apple-primary);
}

/* ==================== Payroll: Payslip Page Components ==================== */

/* Bulk selection action bar (payslip table) */
.payslip-page .bulk-action-bar {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--apple-light-gray), #ffffff);
    border: 1px solid var(--apple-border);
    border-left: 4px solid var(--company-primary, var(--apple-primary));
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: apple-slide-down 0.25s ease;
}

.payslip-page .bulk-action-bar.active {
    display: flex !important;
}

.payslip-page #selectedCount {
    font-weight: 500;
    color: var(--company-primary, var(--apple-primary));
}

@keyframes apple-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal look helpers */
.apple-modal-content {
    border-radius: 0.75rem;
    overflow: hidden;
}

.apple-modal-header--soft {
    background: linear-gradient(to right, var(--apple-light-gray), #ffffff);
}

/* Payroll modal sections */
#generatePayslipModal .section-card,
#payrollPeriodStatusModal .section-card {
    background: #ffffff;
    border: 1px solid var(--apple-border);
    border-radius: 0.5rem;
    padding: 1.25rem;
    transition: box-shadow 0.2s ease;
}

#generatePayslipModal .section-card:hover,
#payrollPeriodStatusModal .section-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#generatePayslipModal .section-header-clean,
#payrollPeriodStatusModal .section-header-clean {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--company-primary, var(--apple-primary));
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--apple-border);
}

#generatePayslipModal .section-header-clean i,
#payrollPeriodStatusModal .section-header-clean i {
    font-size: 1rem;
    margin-right: 0.5rem;
}

#generatePayslipModal .period-option-card {
    display: block;
    padding: 1rem;
    border: 2px solid var(--apple-border);
    border-radius: 0.5rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

#generatePayslipModal .period-option-card:hover {
    border-color: var(--company-primary, var(--apple-primary));
    background: var(--apple-light-gray);
}

#generatePayslipModal .period-option-card input[type="radio"] {
    position: absolute;
    top: 1rem;
    right: 1rem;
    margin: 0;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: var(--company-primary, var(--apple-primary));
}

/* Active state - subtle */
#generatePayslipModal .period-option-card:has(input:checked) {
    border-color: var(--company-primary, var(--apple-primary));
    background: var(--apple-light-gray);
    box-shadow: 0 0 0 3px var(--company-primary-light, rgba(212, 32, 39, 0.1));
}

#generatePayslipModal .period-content {
    padding-right: 2rem;
}

#generatePayslipModal .period-content .option-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    color: var(--apple-dark-gray);
}

#generatePayslipModal .period-content .option-title i {
    color: var(--apple-gray);
}

#generatePayslipModal .period-option-card:has(input:checked) .period-content .option-title,
#generatePayslipModal .period-option-card:has(input:checked) .period-content .option-title i {
    color: var(--company-primary, var(--apple-primary));
}

#generatePayslipModal .info-alert-cutoff {
    background: var(--company-primary-light, rgba(212, 32, 39, 0.1));
    border: 1px solid color-mix(in srgb, var(--company-primary, var(--apple-primary)) 35%, #fff);
    border-left: 3px solid var(--company-primary, var(--apple-primary));
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--company-primary, var(--apple-primary)) 70%, #111);
}

#generatePayslipModal .info-alert-success {
    background: color-mix(in srgb, var(--apple-success) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--apple-success) 25%, #fff);
    border-left: 3px solid var(--apple-success);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--apple-success) 80%, #111);
}

#generatePayslipModal .employee-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--apple-border);
    border-radius: 0.375rem;
    padding: 0.5rem;
    background: var(--apple-light-gray);
}

#generatePayslipModal .employee-item {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    border-radius: 0.25rem;
    background: #ffffff;
    border: 1px solid var(--apple-border);
    transition: all 0.15s ease;
}

#generatePayslipModal .employee-item:hover {
    border-color: var(--company-primary, var(--apple-primary));
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

#generatePayslipModal .employee-item label {
    cursor: pointer;
    margin-bottom: 0;
}

#generatePayslipModal .employee-item .form-check-input {
    margin-top: 0.25rem;
}

#generatePayslipModal .option-box {
    padding: 0.75rem;
    background: #ffffff;
    border: 1px solid var(--apple-border);
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

#generatePayslipModal .option-box:hover {
    border-color: color-mix(in srgb, var(--apple-border) 75%, #111);
}

#generatePayslipModal .option-box .form-check-input {
    margin-top: 0.3rem;
}

#generatePayslipModal .option-box label {
    cursor: pointer;
    margin-bottom: 0;
    width: 100%;
}

#generatePayslipModal .employee-list::-webkit-scrollbar {
    width: 6px;
}

#generatePayslipModal .employee-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

#generatePayslipModal .employee-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.22);
    border-radius: 10px;
}

#generatePayslipModal .employee-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Export format modal cards */
#exportFormatModal .export-option-card {
    position: relative;
    padding: 1.75rem 1.5rem;
    border: 2px solid var(--apple-border);
    border-radius: 0.75rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

#exportFormatModal .export-option-card:hover {
    border-color: var(--company-primary, var(--apple-primary));
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--company-primary-light-15, rgba(212, 32, 39, 0.15));
}

#exportFormatModal .export-option-card:active {
    transform: translateY(-2px);
}

#exportFormatModal .icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.25rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
    color: #ffffff;
}

#exportFormatModal .csv-icon {
    background: var(--apple-success);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--apple-success) 30%, transparent);
}

#exportFormatModal .excel-icon {
    background: linear-gradient(135deg, var(--company-primary, var(--apple-primary)), var(--company-primary-hover, var(--apple-primary-hover)));
    box-shadow: 0 4px 12px var(--company-primary-light-15, rgba(212, 32, 39, 0.15));
}

#exportFormatModal .export-option-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

#exportFormatModal .option-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--apple-dark-gray);
    margin-bottom: 1rem;
}

#exportFormatModal .option-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    text-align: left;
}

#exportFormatModal .option-features li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--apple-gray);
}

#exportFormatModal .best-for {
    display: inline-block;
    background: var(--apple-light-gray);
    color: var(--apple-gray);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

#exportFormatModal .export-info-note {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--company-primary-light-15, rgba(212, 32, 39, 0.15));
    border: 1px solid var(--company-primary, var(--apple-primary));
    border-radius: 0.5rem;
    color: var(--company-primary, var(--apple-primary));
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    #exportFormatModal .export-option-card {
        margin-bottom: 1rem;
    }
}

/* SweetAlert2 content helpers (payslip page) */
.payslip-swal-details {
    text-align: left;
    font-size: 0.9em;
    margin-top: 10px;
}

.payslip-generation-results {
    text-align: left;
    max-height: 350px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.payslip-generation-row {
    margin-bottom: 6px;
}

/* Forms */
.form-control, .form-select {
    border: 1px solid var(--apple-border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--company-primary, var(--apple-primary));
    box-shadow: 0 0 0 3px var(--company-primary-light, var(--apple-primary-light));
}

/* Journal Code */
.journal-code {
    background: var(--apple-light-gray);
    border: 1px solid var(--apple-border);
    color: var(--apple-dark-gray);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Alerts */
.alert-apple-success {
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    color: var(--apple-success);
    border-radius: 8px;
    padding: 1rem;
}

.alert-apple-danger {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: var(--apple-danger);
    border-radius: 8px;
    padding: 1rem;
}

.alert-apple-primary {
    background: var(--apple-primary-light);
    border: 1px solid rgba(212, 32, 39, 0.3);
    color: var(--apple-primary);
    border-radius: 8px;
    padding: 1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--apple-gray);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Badges */
/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    line-height: 1;
    vertical-align: middle;
    text-transform: none;
    text-align: center;
    white-space: nowrap;
}

/* Use company primary when provided, fallback to apple primary */
.badge-primary,
.apple-badge.bg-primary {
    background: var(--company-primary, var(--apple-primary));
    color: #fff;
    border: none;
}
.badge-primary-outline {
    background: transparent;
    color: var(--company-primary, var(--apple-primary));
    border: 1px solid var(--company-primary, var(--apple-primary));
}

.badge-success,
.apple-badge.bg-success {
    background: var(--apple-success);
    color: #fff;
    border: none;
}

.badge-warning,
.apple-badge.bg-warning {
    background: var(--apple-warning);
    color: #fff;
    border: none;
}

.badge-danger,
.apple-badge.bg-danger {
    background: var(--apple-danger);
    color: #fff;
    border: none;
}

.badge-secondary,
.apple-badge.bg-secondary {
    background: var(--apple-gray);
    color: #fff;
    border: none;
}

.badge-light {
    background: #f8f9fa;
    color: var(--apple-dark-gray);
    border: 1px solid var(--apple-border);
}

.badge-dark {
    background: #111;
    color: #fff;
    border: none;
}

/* Support Bootstrap-style bg-* and legacy badge-* classes when used together with .badge */
.badge.bg-primary, .badge.badge-primary, .badge.bg-success, .badge.badge-success,
.badge.bg-warning, .badge.badge-warning, .badge.bg-danger, .badge.badge-danger,
.badge.bg-secondary, .badge.badge-secondary, .badge.bg-light, .badge.badge-light,
.badge.bg-dark, .badge.badge-dark {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.badge.bg-primary, .badge.badge-primary { background: var(--company-primary, var(--apple-primary)); color: #fff; border: none; }
.badge.bg-success, .badge.badge-success { background: var(--apple-success); color: #fff; border: none; }
.badge.bg-info, .badge.badge-info { background: #007AFF; color: #fff; border: none; }
.badge.bg-warning, .badge.badge-warning { background: var(--apple-warning); color: #fff; border: none; }
.badge.bg-danger, .badge.badge-danger { background: var(--apple-danger); color: #fff; border: none; }
.badge.bg-secondary, .badge.badge-secondary { background: var(--apple-gray); color: #fff; border: none; }
.badge.bg-light, .badge.badge-light { background: #f8f9fa; color: var(--apple-dark-gray); border: 1px solid var(--apple-border); }
.badge.bg-dark, .badge.badge-dark { background: #111; color: #fff; border: none; }

/* High-specificity overrides to ensure badges render colored backgrounds even when other CSS (Bootstrap/legacy) is present. */
/* Target combinations used across the app: .badge, .bg-*, .badge-* and apple-badge variants inside common containers. */
.apple-card .badge.bg-primary, .apple-card span.badge.bg-primary,
.elegant-table .badge.bg-primary, .elegant-table span.badge.bg-primary,
.badge.bg-primary, .badge.badge-primary, span.badge.bg-primary,
.apple-badge.bg-primary {
    background: var(--company-primary, var(--apple-primary)) !important;
    color: #fff !important;
    border: none !important;
}

.apple-card .badge.bg-info, .apple-card span.badge.bg-info,
.elegant-table .badge.bg-info, .elegant-table span.badge.bg-info,
.badge.bg-info, .badge.badge-info, span.badge.bg-info,
.apple-badge.bg-info {
    background: #007AFF !important;
    color: #fff !important;
    border: none !important;
}

.apple-card .badge.bg-success, .apple-card span.badge.bg-success,
.elegant-table .badge.bg-success, .elegant-table span.badge.bg-success,
.badge.bg-success, .badge.badge-success, span.badge.bg-success,
.apple-badge.bg-success {
    background: var(--apple-success) !important;
    color: #fff !important;
    border: none !important;
}

.apple-card .badge.bg-warning, .apple-card span.badge.bg-warning,
.elegant-table .badge.bg-warning, .elegant-table span.badge.bg-warning,
.badge.bg-warning, .badge.badge-warning, span.badge.bg-warning,
.apple-badge.bg-warning {
    background: var(--apple-warning) !important;
    color: #fff !important;
    border: none !important;
}

.apple-card .badge.bg-danger, .apple-card span.badge.bg-danger,
.elegant-table .badge.bg-danger, .elegant-table span.badge.bg-danger,
.badge.bg-danger, .badge.badge-danger, span.badge.bg-danger,
.apple-badge.bg-danger {
    background: var(--apple-danger) !important;
    color: #fff !important;
    border: none !important;
}

.apple-card .badge.bg-secondary, .apple-card span.badge.bg-secondary,
.elegant-table .badge.bg-secondary, .elegant-table span.badge.bg-secondary,
.badge.bg-secondary, .badge.badge-secondary, span.badge.bg-secondary,
.apple-badge.bg-secondary {
    background: var(--apple-gray) !important;
    color: #fff !important;
    border: none !important;
}

.apple-card .badge.bg-light, .apple-card span.badge.bg-light,
.elegant-table .badge.bg-light, .elegant-table span.badge.bg-light,
.badge.bg-light, .badge.badge-light, span.badge.bg-light,
.apple-badge.bg-light {
    background: #f8f9fa !important;
    color: var(--apple-dark-gray) !important;
    border: 1px solid var(--apple-border) !important;
}

.apple-card .badge.bg-dark, .apple-card span.badge.bg-dark,
.elegant-table .badge.bg-dark, .elegant-table span.badge.bg-dark,
.badge.bg-dark, .badge.badge-dark, span.badge.bg-dark,
.apple-badge.bg-dark {
    background: #111 !important;
    color: #fff !important;
    border: none !important;
}

/* Small / pill variants */
.badge-sm {
    padding: 0.125rem 0.4rem;
    font-size: 0.675rem;
}
.badge-pill {
    border-radius: 999px;
}

/* Ensure good contrast on hover */
.badge:hover {
    filter: brightness(0.95);
    text-decoration: none;
}

/* Accessible outline focus */
.badge:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

/* HR Admin (Holidays) small UI helpers */
.icon-circle {
    background: linear-gradient(135deg, var(--apple-light-gray) 0%, rgba(229, 229, 234, 0.9) 100%);
    border: 1px solid rgba(229, 229, 234, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.date-info .fw-semibold {
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
}

.date-info .day-name {
    font-size: 0.75rem;
}

.holiday-id {
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    background: var(--apple-light-gray);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--apple-gray);
}

/* Holidays table column sizing (keep table readable on horizontal scroll) */
#holidaysTable th,
#holidaysTable td {
    white-space: nowrap;
}

#holidaysTable th:nth-child(1),
#holidaysTable td:nth-child(1) {
    min-width: 200px;
    white-space: normal;
    max-width: 260px;
    word-break: break-word;
}

#holidaysTable th:nth-child(2),
#holidaysTable td:nth-child(2) { min-width: 120px; }

#holidaysTable th:nth-child(3),
#holidaysTable td:nth-child(3) { min-width: 120px; }

#holidaysTable th:nth-child(4),
#holidaysTable td:nth-child(4) { min-width: 120px; }

#holidaysTable th:nth-child(5),
#holidaysTable td:nth-child(5) { min-width: 100px; }

#holidaysTable th:nth-child(6),
#holidaysTable td:nth-child(6) { min-width: 110px; }

/* HR Admin (Overtime) small helpers */
#overtimeTable th:nth-child(1),
#overtimeTable td:nth-child(1) {
    width: 50px;
}

.overtime-reason {
    max-width: 150px;
    display: inline-block;
    vertical-align: top;
}

/* HR Payroll (Set Salary) table helpers */
#salaryTable {
    min-width: 1400px;
}

#salaryTable tbody td:nth-child(3),
#salaryTable tbody td:nth-child(6) {
    white-space: normal;
    min-width: 150px;
}


/* Utility Classes */
.hover-bg-light:hover {
    background-color: var(--apple-primary-light) !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Account Dropdown */
.account-dropdown {
    border-top: none !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0 0 12px 12px;
}

.account-dropdown-item {
    border-radius: 0 !important;
}

.position-relative {
    position: relative;
}

.form-control:focus + .account-dropdown {
    border-color: var(--apple-primary);
}

/* Custom Scrollbar */
.elegant-table::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.elegant-table::-webkit-scrollbar-track {
    background: var(--apple-light-gray);
    border-radius: 4px;
}

.elegant-table::-webkit-scrollbar-thumb {
    background: var(--apple-gray);
    border-radius: 4px;
}

.elegant-table::-webkit-scrollbar-thumb:hover {
    background: var(--apple-primary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .apple-card {
        margin: 0 -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .filter-card {
        margin: 0 -15px 1.5rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Chart of Accounts Specific Styles */
.account-hierarchy {
    border-left: 3px solid var(--apple-primary);
    margin-left: 10px;
    padding-left: 15px;
}

.balance-editable {
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
}

.balance-editable:hover {
    background-color: var(--apple-primary-light);
    padding: 2px 6px;
}

/* Account row padding for hierarchy */
.ps-2 { padding-left: 0.5rem !important; }
.ps-4 { padding-left: 1rem !important; }
.ps-6 { padding-left: 1.5rem !important; }
.ps-8 { padding-left: 2rem !important; }
.ps-10 { padding-left: 2.5rem !important; }

/* Pagination Styling */
.pagination {
    margin-bottom: 0;
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.5rem;
    --bs-pagination-font-size: 0.875rem;
    --bs-pagination-border-radius: 8px;
}

.pagination .page-link {
    padding: var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);
    font-size: var(--bs-pagination-font-size);
    border-radius: var(--bs-pagination-border-radius);
    margin: 0 2px;
    border: 1px solid var(--apple-border);
    color: var(--apple-gray);
    background: white;
    transition: all 0.2s ease;
    min-width: 2.5rem;
    text-align: center;
}

.pagination .page-link:hover {
    background-color: var(--apple-primary-light);
    border-color: var(--apple-primary);
    color: var(--apple-primary);
    text-decoration: none;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background-color: var(--apple-primary);
    border-color: var(--apple-primary);
    color: white;
    font-weight: 600;
}

.pagination .page-item.disabled .page-link {
    color: rgba(142, 142, 147, 0.5);
    background-color: var(--apple-light-gray);
    border-color: var(--apple-border);
    cursor: not-allowed;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
}

.pagination-wrapper .pagination {
    margin: 0;
}

/* Responsive pagination */
@media (max-width: 576px) {
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
        min-width: 2rem;
    }
    
    .pagination .page-item:not(.active):not(.disabled) {
        display: none;
    }
    
    .pagination .page-item.active,
    .pagination .page-item.disabled,
    .pagination .page-item:first-child,
    .pagination .page-item:last-child {
        display: block;
    }
}

/* Account Details Specific Styles */
.balance-display {
    font-size: 1.1rem !important;
}

.account-info-grid .row {
    margin-bottom: 1rem;
}

.account-info-label {
    font-weight: 600;
    color: var(--apple-dark-gray);
}

/* Report-Specific Styles */
.report-table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--apple-border-radius);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--apple-border);
    font-size: 0.95rem;
    width: 100%;
}

.report-table thead th {
    background: var(--apple-light-gray);
    color: var(--apple-dark-gray);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    border: none;
    text-align: left;
}

.report-table tbody tr {
    transition: all 0.2s ease;
}

.report-table tbody tr:hover {
    background-color: var(--apple-primary-light);
}

.report-table tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--apple-border);
    vertical-align: middle;
}

.report-table tbody tr:last-child td {
    border-bottom: none;
}

.section-header {
    background: linear-gradient(135deg, var(--apple-primary) 0%, #B31E24 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.section-total {
    background: var(--apple-light-gray);
    font-weight: 600;
    border-top: 2px solid var(--apple-border);
}

.grand-total {
    background: linear-gradient(135deg, var(--apple-success) 0%, #30B350 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.negative-amount {
    color: var(--apple-danger) !important;
}

.positive-amount {
    color: var(--apple-success) !important;
}

.revenue-header {
    background: linear-gradient(135deg, #34C759 0%, #30B350 100%);
}

.cogs-header {
    background: linear-gradient(135deg, #FF9500 0%, #FF8C00 100%);
}

.other-income-header {
    background: linear-gradient(135deg, var(--apple-primary) 0%, #B31E24 100%);
}

.other-expense-header {
    background: linear-gradient(135deg, #8E8E93 0%, #6D6D70 100%);
}

/* Report Section Font Sizes */
.report-section-total {
    font-size: 1.1em !important;
}

.report-gross-profit {
    font-size: 1.2em !important;
}

.report-net-income {
    font-size: 1.4em !important;
}

/* Print Styles */
@media print {
    .filter-card { 
        display: none !important; 
    }
    .apple-card { 
        border: none !important; 
        box-shadow: none !important; 
    }
    body { 
        font-size: 12px; 
    }
}

/* Fixed Assets Module Styles */

/* Stats Cards for Fixed Assets */
.stats-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--shadow-light);
    height: 120px;
}

.stats-card:hover {
    box-shadow: var(--shadow-medium);
}

.stats-card:hover .stats-content {
    transform: scale(1.02);
}

.stats-content {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
}

.stats-card.stats-total {
    background: var(--primary-gradient);
}

.stats-card.stats-active {
    background: var(--success-gradient);
}

.stats-card.stats-cost {
    background: var(--info-gradient);
}

.stats-card.stats-value {
    background: var(--warning-gradient);
}

.stats-card.stats-depreciating {
    background: var(--warning-gradient);
}

.stats-card.stats-fully-depreciated {
    background: var(--success-gradient);
}

.stats-card.stats-monthly {
    background: var(--info-gradient);
}

.floating-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    opacity: 0.2;
    transition: opacity 0.2s ease;
}

.stats-card:hover .floating-icon {
    opacity: 0.3;
}

/* Asset Specific Styles */
.asset-number-highlight {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 28px;
    padding: 0 10px;
    font-family: 'SF Mono', Monaco, monospace;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.08) 0%, rgba(0, 122, 255, 0.12) 100%);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 8px;
    color: #007AFF;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    cursor: pointer;
}

.asset-number-highlight:hover {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.12) 0%, rgba(0, 122, 255, 0.18) 100%);
    border-color: rgba(0, 122, 255, 0.3);
    transform: scale(1.02);
}

.category-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    margin-right: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.asset-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.3;
}

.asset-location {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

/* Enhanced Apple Badge Styling for Fixed Assets */
.apple-badge.bg-light {
    background: linear-gradient(135deg, rgba(142, 142, 147, 0.12) 0%, rgba(142, 142, 147, 0.18) 100%) !important;
    color: #1D1D1F !important;
    border: 1px solid rgba(142, 142, 147, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.apple-badge.bg-success {
    background: linear-gradient(135deg, #34C759 0%, #30D158 100%) !important;
    box-shadow: 0 2px 4px rgba(52, 199, 89, 0.3);
}

.apple-badge.bg-danger {
    background: linear-gradient(135deg, #FF3B30 0%, #FF453A 100%) !important;
    box-shadow: 0 2px 4px rgba(255, 59, 48, 0.3);
}

.apple-badge.bg-warning {
    background: linear-gradient(135deg, #FF9500 0%, #FF9F0A 100%) !important;
    box-shadow: 0 2px 4px rgba(255, 149, 0, 0.3);
}

/* Asset Form Controls */
.input-group-apple .input-group-text {
    min-height: 42px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 249, 250, 0.9);
    border: 1px solid var(--border-color);
    border-right: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.input-group .form-control-apple {
    min-height: 42px;
}

/* Asset Detail Modal Styles */
.info-group {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-group:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    display: block;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Asset Number Settings Modal Styles */
.block-item {
    user-select: none;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.block-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.block-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

.remove-block {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.block-item:hover .remove-block {
    opacity: 1;
}

#asset-number-blocks {
    border: 2px dashed rgba(0, 122, 255, 0.2);
    transition: border-color 0.2s ease;
    border-radius: 8px;
}

#asset-number-blocks:hover {
    border-color: rgba(0, 122, 255, 0.4);
}

#asset-number-preview {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Enhanced table row hover effect for assets */
.elegant-table tbody tr:hover .asset-name {
    color: var(--apple-blue);
    transition: color 0.2s ease;
}

/* Stats Labels */
.stats-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stats-label {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.progress-bar-apple {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(135deg, #34C759 0%, #30D158 100%);
    transition: width 0.3s ease;
}

.progress-apple {
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.depreciation-percentage {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Report-specific Apple-style classes - replacing old Bootstrap colors */

/* Account Type Badges - using Apple red theme */
.account-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 28px;
    border-radius: 8px;
    padding: 0 12px;
    font-weight: 500;
    font-size: 0.75rem;
    text-align: center;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.badge-asset,
.badge-income {
    background: linear-gradient(135deg, var(--apple-red) 0%, #c41e3a 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(212, 32, 39, 0.3);
}

.badge-liability,
.badge-expense {
    background: linear-gradient(135deg, rgba(212, 32, 39, 0.15) 0%, rgba(212, 32, 39, 0.25) 100%);
    color: var(--apple-red);
    border: 1px solid rgba(212, 32, 39, 0.3);
}

.badge-equity {
    background: linear-gradient(135deg, rgba(29, 29, 31, 0.8) 0%, rgba(44, 44, 46, 0.8) 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Report Section Headers */
.section-header {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(212, 32, 39, 0.1);
}

.section-header i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
    color: var(--apple-red);
}

/* Report totals and summaries */
.report-total-row {
    background: linear-gradient(135deg, rgba(212, 32, 39, 0.05) 0%, rgba(212, 32, 39, 0.1) 100%);
    border: 1px solid rgba(212, 32, 39, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.report-major-total {
    background: linear-gradient(135deg, var(--apple-red) 0%, #c41e3a 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(212, 32, 39, 0.3);
}

.report-profit {
    background: linear-gradient(135deg, rgba(212, 32, 39, 0.1) 0%, rgba(212, 32, 39, 0.15) 100%);
    border: 2px solid var(--apple-red);
    color: var(--apple-red);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(212, 32, 39, 0.2);
}

.report-loss {
    background: linear-gradient(135deg, rgba(29, 29, 31, 0.8) 0%, rgba(44, 44, 46, 0.8) 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Remove old font size classes and use unified styling */
.report-section-total,
.report-gross-profit,
.report-net-income {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

.report-net-income {
    font-size: 1.3rem !important;
}

/* Account line items */
.account-line {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
}

.account-line:hover {
    background: rgba(212, 32, 39, 0.02);
}

.account-parent {
    font-weight: 600;
    color: var(--text-primary);
}

.account-child {
    margin-left: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.account-amount {
    font-family: 'SF Mono', Monaco, monospace;
    font-weight: 500;
}

/* Balance amounts - using Apple red theme */
.amount-positive {
    color: var(--apple-red);
    font-weight: 600;
}

.amount-negative {
    color: var(--text-secondary);
    font-weight: 500;
}

.amount-zero {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Remove old bootstrap color overrides */
.text-success,
.text-warning,
.text-danger,
.text-info,
.text-secondary {
    color: var(--text-primary) !important;
}

.bg-success,
.bg-warning,
.bg-danger,
.bg-info {
    background: none !important;
}

/* Formal Paper Report Styling */
.paper-preview {
    background: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    max-width: 210mm; /* A4 width */
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.paper-content {
    padding: 25mm 20mm; /* A4 margins */
    min-height: 297mm; /* A4 height */
    background: white;
    font-family: 'Times New Roman', serif;
    color: #000;
    line-height: 1.4;
}

/* Company Header */
.company-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.company-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: var(--apple-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.company-name {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.company-address {
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
}

/* Report Title */
.report-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin: 30px 0 10px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.report-date {
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

/* Page Header Layout */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #000;
}

.header-left {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.company-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid #ddd;
    padding: 5px;
}

.company-info {
    flex: 1;
}

.company-name {
    font-size: 16pt;
    font-weight: bold;
    color: #000;
    margin-bottom: 5px;
    font-family: 'Times New Roman', serif;
}

.company-address {
    font-size: 11pt;
    color: #333;
    line-height: 1.3;
    font-family: 'Times New Roman', serif;
}

.header-right {
    text-align: right;
}

.report-generated {
    font-size: 11pt;
    color: #333;
    font-family: 'Times New Roman', serif;
    line-height: 1.3;
}

/* Report Title Section */
.report-title-section {
    text-align: center;
    margin-bottom: 25px;
}

.report-title {
    font-size: 18pt;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Times New Roman', serif;
}

.report-date {
    font-size: 13pt;
    color: #333;
    font-family: 'Times New Roman', serif;
    margin-bottom: 0;
}

/* PDF Table Styling */
.pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 11pt;
    font-family: 'Times New Roman', serif;
}

.pdf-table th {
    background: #f0f0f0;
    border: 1px solid #000;
    padding: 8px 6px;
    text-align: left;
    font-weight: bold;
    font-size: 10pt;
    text-transform: uppercase;
    font-family: 'Times New Roman', serif;
}

.pdf-table td {
    border: 1px solid #333;
    padding: 5px 6px;
    vertical-align: top;
    font-family: 'Times New Roman', serif;
}

.pdf-table .amount {
    text-align: right;
    font-family: 'Times New Roman', serif;
    font-weight: normal;
}

.pdf-table .account-name {
    padding-left: 10px;
    font-family: 'Times New Roman', serif;
}

.pdf-table .section-header {
    background: #e0e0e0;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Times New Roman', serif;
    border: 2px solid #000;
    padding: 8px 6px;
}

.pdf-table .section-header-row td {
    background: #e0e0e0;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Times New Roman', serif;
    border: 2px solid #000;
    padding: 8px 6px;
}

.pdf-table .section-header-cell {
    background: #e0e0e0;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Times New Roman', serif;
    border: 2px solid #000;
    padding: 8px 6px;
}

.pdf-table .subsection-header td {
    background: #f5f5f5;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Times New Roman', serif;
    border-top: 1px solid #000;
    padding: 6px;
}

.pdf-table .subsection-header-cell {
    background: #f5f5f5;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Times New Roman', serif;
    border-top: 1px solid #000;
    padding: 6px;
}

.pdf-table .subtotal-row td {
    border-top: 1px solid #000;
    background: #f8f8f8;
    font-weight: bold;
    padding: 6px;
    font-family: 'Times New Roman', serif;
}

.pdf-table .subtotal-label {
    text-align: right;
    font-weight: bold;
    font-family: 'Times New Roman', serif;
    padding-right: 15px;
}

.pdf-table .subtotal-amount {
    font-weight: bold;
    font-family: 'Times New Roman', serif;
}

.pdf-table .total-row td {
    border-top: 2px solid #000;
    background: #f0f0f0;
    font-weight: bold;
    padding: 8px 6px;
    font-family: 'Times New Roman', serif;
}

.pdf-table .total-label {
    text-align: right;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Times New Roman', serif;
    padding-right: 15px;
}

.pdf-table .total-amount {
    font-weight: bold;
    font-family: 'Times New Roman', serif;
}

.pdf-table .grand-total-row td {
    border-top: 3px double #000;
    background: #e0e0e0;
    font-weight: bold;
    padding: 10px 6px;
    font-family: 'Times New Roman', serif;
}

.pdf-table .grand-total-label {
    text-align: right;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Times New Roman', serif;
    padding-right: 15px;
}

.pdf-table .grand-total-amount {
    font-weight: bold;
    font-family: 'Times New Roman', serif;
    border-bottom: 3px double #000;
}

/* Balance Sheet Horizontal Layout */
.balance-sheet-horizontal {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.balance-sheet-left,
.balance-sheet-right {
    flex: 1;
}

.balance-sheet-left .pdf-table,
.balance-sheet-right .pdf-table {
    margin: 0;
}

/* Print Styles for Balance Sheet */
@media print {
    .balance-sheet-horizontal {
        display: flex;
        gap: 15px;
        margin: 15px 0;
        page-break-inside: avoid;
    }
    
    .balance-sheet-left,
    .balance-sheet-right {
        flex: 1;
        min-width: 0;
    }
    
    .balance-sheet-left .pdf-table,
    .balance-sheet-right .pdf-table {
        margin: 0;
        font-size: 10pt;
    }
    
    .pdf-table td,
    .pdf-table th {
        padding: 3px 4px;
    }
}

/* -----------------------------
   Responsive helpers
   - tablet breakpoint: <= 992px
   - mobile breakpoint: <= 768px
   These rules make cards, headers, tables and forms adapt to small screens.
   ----------------------------- */

/* Tablet adjustments */
@media (max-width: 991.98px) {
    .apple-card { border-radius: 10px; }
    .filter-card { padding: 1rem; }
    .apple-table-row { padding: .75rem 1rem; }
    .elegant-table thead th { font-size: 0.72rem; padding: .75rem; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    :root { --apple-border-radius: 10px; }

    /* Hide company-themed stats cards on mobile */
    .stats-card--company {
        display: none !important;
    }

    /* Also hide the stats row wrapper to avoid empty vertical gaps */
    .stats-cards-row {
        display: none !important;
        margin-bottom: 0 !important;
    }

    /* Cards & filter spacing */
    .apple-card { border-radius: var(--apple-border-radius); margin: 0 0 1rem 0; }
    /* increase card body padding on mobile for better touch spacing */
    .apple-card .card-body, .filter-card { padding: 1.1rem; }

    /* Tables: allow horizontal scrolling and reduce padding */
    .elegant-table, .apple-table, .nested-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .elegant-table tbody td, .elegant-table thead th, .apple-table-row, .nested-table tbody td { padding: .6rem .8rem; }
    .elegant-table thead th { position: relative; top: auto; }

    /* Stack table rows for apple-table variant */
    .apple-table-row { display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }

    /* Sidebar / layout helpers: collapse multi-column into single column */
    .balance-sheet-horizontal { display: block; }
    .balance-sheet-left, .balance-sheet-right { width: 100%; }

    /* Form controls and inputs full width */
    .form-control, input[type="text"], textarea, select { width: 100%; box-sizing: border-box; }

    /* Reduce breadcrumbs and helper text sizes */

    /* Make modal/dialog content more comfortable on small screens */
    .modal-dialog { margin: .5rem; max-width: 100%; }

}

/* Utility: ensure primary-color based accents don't look too heavy on small screens */
@media (max-width: 768px) {
    .apple-primary-tint { background: var(--apple-primary-light); }
}

/* ==================== Payroll: Transfer Page Helpers ==================== */

.transfer-page .transfer-col-no {
    width: 60px;
}

.transfer-page .transfer-col-action {
    width: 120px;
}

.transfer-page .transfer-drag-handle {
    cursor: grab;
}

.transfer-page .transfer-columns-key {
    font-size: 11px;
}

.transfer-page .transfer-columns-item.is-fixed {
    opacity: 0.7;
}

.transfer-page .dropdown-menu {
    z-index: 2000;
}

/* ==================== Leave: Apply Page Components ==================== */

.leave-apply-page .leave-type-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.leave-apply-page .leave-type-card * {
    pointer-events: none;
}

.leave-apply-page .leave-type-card:hover {
    border-color: var(--company-primary, var(--apple-primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.leave-apply-page .leave-type-card.selected {
    border-color: var(--company-primary, var(--apple-primary));
    background: var(--company-primary-light, var(--apple-primary-light));
    box-shadow: 0 0 0 2px var(--company-primary-light, var(--apple-primary-light));
}

.leave-apply-page .leave-type-description {
    min-height: 40px;
}

.leave-apply-page .balance-indicator {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.leave-apply-page .balance-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(
        90deg,
        var(--company-primary, var(--apple-primary)),
        var(--company-primary-hover, var(--apple-primary-hover))
    );
    border-radius: 3px;
    transition: width 0.3s ease;
}

.leave-apply-page .balance-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.leave-apply-page .balance-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.leave-apply-page .working-days-counter {
    /* fallback (older browsers) */
    background: var(--company-primary-light, var(--apple-primary-light));
    /* 10% opacity tint of primary */
    background: color-mix(in srgb, var(--company-primary, var(--apple-primary)) 10%, transparent);
    border: 1px solid var(--company-primary, var(--apple-primary));
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.leave-apply-page .tip-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.leave-apply-page .recent-item {
    padding: 0.75rem;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

@media (max-width: 1200px) {
    .leave-apply-page .leave-type-card {
        height: auto;
        min-height: 120px;
    }
}

@media (max-width: 768px) {
    .leave-apply-page .leave-type-card {
        height: auto;
        min-height: 110px;
    }

    .leave-apply-page .working-days-counter {
        padding: 1rem;
    }
}

/* ==================== Leave: History Page Helpers ==================== */

.leave-history-page .leave-history-reason,
.employee-leave-history-page .leave-history-reason {
    max-width: 200px;
}

.leave-history-page .leave-history-progress,
.employee-leave-history-page .leave-history-progress {
    height: 12px;
}

@media (max-width: 768px) {
    /* On mobile the global CSS hides .stats-card--company; hide the wrapper too to avoid empty gaps */
    .leave-history-page .leave-history-stats,
    .employee-leave-history-page .leave-history-stats {
        display: none !important;
        margin-bottom: 0 !important;
    }

    /* Keep spacing between filter card and table similar to other cards */
    .leave-history-page .leave-history-filter-card,
    .employee-leave-history-page .leave-history-filter-card {
        margin-bottom: 1rem !important;
    }

}

/* ==================== Leave: Balance Page Components ==================== */

.leave-balance-page .balance-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: all 0.3s ease;
}

.leave-balance-page .balance-card:hover {
    box-shadow: 0 0.25rem 2rem 0 rgba(58, 59, 69, 0.2);
    transform: translateY(-4px);
}

.leave-balance-page .leave-type-icon {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.leave-balance-page .leave-type-icon--primary {
    background: var(--company-primary, var(--apple-primary));
}

.leave-balance-page .leave-type-icon--center {
    margin-left: auto;
    margin-right: auto;
}

.leave-balance-page .progress-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.leave-balance-page .progress-circle svg {
    transform: rotate(-90deg);
}

.leave-balance-page .progress-circle circle {
    fill: none;
    stroke-width: 8;
}

.leave-balance-page .progress-circle .bg {
    stroke: #f0f0f0;
}

.leave-balance-page .progress-circle .progress {
    stroke: var(--company-primary, var(--apple-primary));
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s ease;
}

.leave-balance-page .balance-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.leave-balance-page .balance-number .days {
    font-size: 2rem;
    font-weight: 700;
    color: var(--company-primary, var(--apple-primary));
    line-height: 1;
}

.leave-balance-page .balance-number .label {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

.leave-balance-page .calendar-view {
    background: #fff;
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e9ecef;
}

.leave-balance-page .calendar-header {
    background: var(--company-primary, var(--apple-primary));
    color: #fff;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
}

.leave-balance-page .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
}

.leave-balance-page .calendar-day {
    background: #fff;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.leave-balance-page .calendar-day.header {
    background: #f8f9fa;
    font-weight: 600;
    color: #666;
    min-height: auto;
    padding: 0.5rem;
}

.leave-balance-page .calendar-day.leave {
    background: #ffebee;
    color: #c62828;
}

.leave-balance-page .calendar-day.weekend {
    background: #f5f5f5;
    color: #999;
}

.leave-balance-page .calendar-day:hover:not(.header) {
    background: var(--company-primary-light, var(--apple-primary-light));
    transform: scale(1.05);
}

.leave-balance-page .leave-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    padding: 1rem 0;
}

.leave-balance-page .legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leave-balance-page .legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.leave-balance-page .legend-color--leave {
    background: #ffebee;
}

.leave-balance-page .legend-color--weekend {
    background: #f5f5f5;
}

.leave-balance-page .legend-color--work {
    background: #fff;
    border: 1px solid #ddd;
}

.leave-balance-page .leave-balance-progress {
    height: 12px;
}

.leave-balance-page .leave-balance-empty-icon {
    font-size: 4rem;
    opacity: 0.3;
    color: #ddd;
}

@media (max-width: 768px) {
    .leave-balance-page .balance-card {
        padding: 1.5rem 1rem;
    }

    .leave-balance-page .progress-circle {
        width: 100px;
        height: 100px;
    }

    .leave-balance-page .progress-circle svg {
        width: 100px;
        height: 100px;
    }

    .leave-balance-page .balance-number .days {
        font-size: 1.5rem;
    }

    .leave-balance-page .leave-legend {
        flex-direction: column;
        gap: 1rem;
    }

    .leave-balance-page .calendar-day {
        min-height: 50px;
        padding: 0.5rem;
    }
}

/* ==================== Employee: Dashboard Page Components ==================== */

.employee-dashboard-page .dashboard-time {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--company-primary, var(--apple-primary));
    letter-spacing: 0.05em;
    line-height: 1;
}

.employee-dashboard-page .dashboard-date {
    color: var(--apple-gray);
}

.employee-dashboard-page .dashboard-info-panel {
    border-radius: var(--apple-border-radius);
    border: 1px solid color-mix(in srgb, var(--company-primary, var(--apple-primary)) 18%, var(--apple-border));
    background: var(--company-primary-light, var(--apple-primary-light));
    background: color-mix(in srgb, var(--company-primary, var(--apple-primary)) 7%, white);
}

.employee-dashboard-page .dashboard-avatar-preview {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.employee-dashboard-page .dashboard-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px dashed rgba(0, 0, 0, 0.15);
    color: var(--apple-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    text-align: center;
    padding: 0.25rem;
}

.employee-dashboard-page .dashboard-alert {
    border-radius: var(--apple-border-radius);
    border: 1px solid var(--apple-border);
}

.employee-dashboard-page .dashboard-alert.dashboard-alert-warning {
    background: color-mix(in srgb, var(--apple-warning) 10%, white);
    border-left: 4px solid var(--apple-warning);
}

.employee-dashboard-page .dashboard-alert.dashboard-alert-danger {
    background: color-mix(in srgb, var(--apple-danger) 10%, white);
    border-left: 4px solid var(--apple-danger);
}

.employee-dashboard-page .dashboard-dayoff-alert {
    border-radius: 10px;
    background: var(--apple-light-gray);
    border: 1px solid var(--apple-border);
}

/* Welcome card */
.employee-dashboard-page .welcome-card {
    background: linear-gradient(135deg,
        var(--company-primary, var(--apple-primary)) 0%,
        var(--company-primary-hover, var(--apple-primary-hover)) 100%
    );
    color: #fff;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.employee-dashboard-page .welcome-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    z-index: 1;
}

.employee-dashboard-page .welcome-content {
    position: relative;
    z-index: 2;
}

.employee-dashboard-page .welcome-mobile-schedule {
    margin-bottom: 1rem;
}

.employee-dashboard-page .welcome-mobile-shift-name {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.2px;
}

.employee-dashboard-page .welcome-mobile-shift-datetime {
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 400;
    font-size: 1.25rem;
    line-height: 1.2;
    opacity: 0.98;
}

.employee-dashboard-page .welcome-mobile-shift-datetime i {
    font-size: 1.15rem;
    opacity: 0.95;
}

.employee-dashboard-page .dashboard-welcome-stat {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.employee-dashboard-page .dashboard-avatar-container {
    width: 130px;
    height: 130px;
    border-radius: 999px;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.employee-dashboard-page .dashboard-avatar-img {
    object-fit: cover;
}

@media (max-width: 768px) {
    .employee-dashboard-page .welcome-mobile-shift-name {
        font-size: 12px;
        font-weight: 400;
    }

    .employee-dashboard-page .welcome-mobile-shift-datetime {
        font-size: 14px;
        font-weight: 600;
    }

    /* Dashboard alerts: add breathing room between icon/content/action on phones */
    .employee-dashboard-page .dashboard-alert .row.align-items-center {
        row-gap: 0.75rem;
    }

    /* Only make Today's Schedule more compact on phones */
    .employee-dashboard-page .schedule-info {
        padding: 1rem;
        border-radius: 0.875rem;
    }

    .employee-dashboard-page .schedule-info.compact h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    /* List layout on phones */
    .employee-dashboard-page .compact .schedule-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .employee-dashboard-page .compact .schedule-item {
        padding: 0.625rem;
    }

    .employee-dashboard-page .info-label {
        font-size: 0.7rem;
    }

    .employee-dashboard-page .info-value {
        font-size: 0.825rem;
    }

}

/* Schedule card */
.employee-dashboard-page .schedule-info {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--apple-border);
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    height: 100%;
}

.employee-dashboard-page .schedule-info.compact h5 {
    color: var(--company-primary, var(--apple-primary));
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--apple-border);
}

.employee-dashboard-page .compact .schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.employee-dashboard-page .compact .schedule-item {
    padding: 0.75rem;
    background: var(--apple-light-gray);
    border-radius: 0.5rem;
    border-left: 3px solid var(--company-primary, var(--apple-primary));
}

.employee-dashboard-page .info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--apple-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.employee-dashboard-page .info-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--apple-dark-gray);
}

/* Action cards */
.employee-dashboard-page .action-card {
    background: #fff;
    border: 1px solid var(--apple-border);
    height: 100%;
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

/* Icon circles (scoped to dashboard to avoid changing other pages) */
.employee-dashboard-page .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #fff;
    border: none;
}

.employee-dashboard-page .icon-circle.primary {
    background: linear-gradient(135deg,
        var(--company-primary, var(--apple-primary)) 0%,
        var(--company-primary-hover, var(--apple-primary-hover)) 100%
    );
}

.employee-dashboard-page .icon-circle.success {
    background: linear-gradient(135deg,
        var(--apple-success) 0%,
        color-mix(in srgb, var(--apple-success) 70%, #000) 100%
    );
}

.employee-dashboard-page .icon-circle.warning {
    background: linear-gradient(135deg,
        var(--apple-warning) 0%,
        color-mix(in srgb, var(--apple-warning) 70%, #000) 100%
    );
}

.employee-dashboard-page .icon-circle.danger {
    background: linear-gradient(135deg,
        var(--apple-danger) 0%,
        color-mix(in srgb, var(--apple-danger) 70%, #000) 100%
    );
}

.employee-dashboard-page .dashboard-icon-circle-sm {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    margin: 0;
}

/* Metric cards */
.employee-dashboard-page .metric-card {
    background: linear-gradient(145deg, #ffffff 0%, var(--apple-light-gray) 100%);
    border-radius: 1rem;
    border: 1px solid var(--apple-border);
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.employee-dashboard-page .metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,
        var(--company-primary, var(--apple-primary)),
        var(--company-primary-hover, var(--apple-primary-hover))
    );
}

.employee-dashboard-page .metric-card.status-metric::before {
    background: linear-gradient(90deg,
        var(--apple-success),
        color-mix(in srgb, var(--apple-success) 70%, #000)
    );
}

.employee-dashboard-page .metric-card.hours-metric::before {
    background: linear-gradient(90deg,
        var(--company-primary, var(--apple-primary)),
        var(--company-primary-hover, var(--apple-primary-hover))
    );
}

.employee-dashboard-page .metric-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.employee-dashboard-page .metric-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.employee-dashboard-page .status-bg {
    background: linear-gradient(135deg,
        var(--apple-success),
        color-mix(in srgb, var(--apple-success) 70%, #000)
    );
}

.employee-dashboard-page .hours-bg {
    background: linear-gradient(135deg,
        var(--company-primary, var(--apple-primary)),
        var(--company-primary-hover, var(--apple-primary-hover))
    );
}

.employee-dashboard-page .metric-category {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--apple-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.25rem;
}

.employee-dashboard-page .metric-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--apple-dark-gray);
    margin: 0;
}

.employee-dashboard-page .metric-body {
    padding: 0 2rem 2rem;
}

/* Status display */
.employee-dashboard-page .status-display {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.employee-dashboard-page .dashboard-main-status,
.employee-dashboard-page .main-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.employee-dashboard-page .dashboard-main-status--success {
    background: linear-gradient(135deg,
        var(--apple-success),
        color-mix(in srgb, var(--apple-success) 70%, #000)
    );
}

.employee-dashboard-page .dashboard-main-status--warning {
    background: linear-gradient(135deg,
        var(--apple-warning),
        color-mix(in srgb, var(--apple-warning) 70%, #000)
    );
}

.employee-dashboard-page .dashboard-main-status--danger {
    background: linear-gradient(135deg,
        var(--apple-danger),
        color-mix(in srgb, var(--apple-danger) 70%, #000)
    );
}

.employee-dashboard-page .dashboard-main-status--secondary {
    background: linear-gradient(135deg,
        var(--apple-gray),
        color-mix(in srgb, var(--apple-gray) 70%, #000)
    );
}

.employee-dashboard-page .status-alerts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.employee-dashboard-page .alert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.employee-dashboard-page .alert-badge.pending {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--company-primary, var(--apple-primary)) 75%, #000),
        var(--company-primary, var(--apple-primary))
    );
    color: #fff;
    border: 1px solid color-mix(in srgb, var(--company-primary, var(--apple-primary)) 20%, black);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--company-primary, var(--apple-primary)) 25%, transparent);
}

/* Ensure icons inside pending alert badges are white and visible */
.employee-dashboard-page .alert-badge.pending i,
.employee-dashboard-page .alert-badge.pending .fa,
.employee-dashboard-page .alert-badge.pending svg {
    color: #ffffff !important;
}

.employee-dashboard-page .alert-badge.late-flash {
    background: linear-gradient(135deg,
        var(--apple-danger),
        color-mix(in srgb, var(--apple-danger) 70%, #000)
    );
    color: #fff;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--apple-danger) 25%, transparent);
}

.employee-dashboard-page .alert-badge.out-of-range {
    background: linear-gradient(135deg,
        var(--apple-warning),
        color-mix(in srgb, var(--apple-warning) 70%, #000)
    );
    color: #fff;
}

.employee-dashboard-page .status-notes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.employee-dashboard-page .status-note {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border-left: 4px solid;
    font-size: 0.875rem;
    line-height: 1.4;
}

.employee-dashboard-page .status-note.clockin-note {
    background: color-mix(in srgb, var(--apple-success) 10%, white);
    border-left-color: var(--apple-success);
    color: color-mix(in srgb, var(--apple-success) 70%, #000);
}

.employee-dashboard-page .status-note.clockout-note {
    background: color-mix(in srgb, var(--apple-danger) 10%, white);
    border-left-color: var(--apple-danger);
    color: color-mix(in srgb, var(--apple-danger) 70%, #000);
}

.employee-dashboard-page .status-note.out-of-range-note {
    background: color-mix(in srgb, var(--apple-warning) 10%, white);
    border-left-color: var(--apple-warning);
    color: color-mix(in srgb, var(--apple-warning) 70%, #000);
}

.employee-dashboard-page .status-note-icon {
    color: inherit;
    margin-right: 0.5rem;
    opacity: 0.85;
}

.employee-dashboard-page .status-note-label {
    font-weight: 700;
}

.employee-dashboard-page .location-info {
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--apple-gray);
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    font-family: 'Monaco', 'Menlo', monospace;
}

.employee-dashboard-page .work-time-container {
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--apple-border);
    border-radius: 1rem;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.employee-dashboard-page .work-time-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 1rem 1rem 0 0;
}

.employee-dashboard-page .work-time-container.completed::before {
    background: linear-gradient(90deg,
        var(--apple-success),
        color-mix(in srgb, var(--apple-success) 70%, #000)
    );
}

.employee-dashboard-page .work-time-container.working::before,
.employee-dashboard-page .work-time-container.active::before {
    background: linear-gradient(90deg,
        var(--company-primary, var(--apple-primary)),
        var(--company-primary-hover, var(--apple-primary-hover))
    );
    animation: progress-shimmer 2s infinite;
}

.employee-dashboard-page .work-time-container.not-working::before,
.employee-dashboard-page .work-time-container.not-started::before {
    background: linear-gradient(90deg,
        var(--apple-gray),
        color-mix(in srgb, var(--apple-gray) 70%, #000)
    );
}

@keyframes progress-shimmer {
    0% { opacity: 0.65; }
    50% { opacity: 1; }
    100% { opacity: 0.65; }
}

.employee-dashboard-page .main-time-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.employee-dashboard-page .time-number {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.75rem;
    color: var(--apple-dark-gray);
}

.employee-dashboard-page .work-time-container.completed .time-number {
    color: var(--apple-success);
}

.employee-dashboard-page .work-time-container.working .time-number,
.employee-dashboard-page .work-time-container.active .time-number {
    color: var(--company-primary, var(--apple-primary));
}

.employee-dashboard-page .work-time-container.not-working .time-number,
.employee-dashboard-page .work-time-container.not-started .time-number {
    color: var(--apple-gray);
}

.employee-dashboard-page .time-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--apple-gray);
}

.employee-dashboard-page .break-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4px;
    color: var(--apple-warning);
    font-weight: 600;
    font-size: 0.875rem;
}

.employee-dashboard-page .work-time-container.completed .time-status {
    color: var(--apple-success);
}

.employee-dashboard-page .work-time-container.working .time-status,
.employee-dashboard-page .work-time-container.active .time-status {
    color: var(--company-primary, var(--apple-primary));
}

.employee-dashboard-page .dashboard-progress {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.employee-dashboard-page .dashboard-progress-bar {
    width: 0;
    border-radius: 4px;
    background: linear-gradient(90deg,
        var(--company-primary, var(--apple-primary)),
        var(--company-primary-hover, var(--apple-primary-hover))
    );
    animation: progress-glow 2s infinite;
}

@keyframes progress-glow {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

/* Attendance photo thumbnails */
.employee-dashboard-page .attendance-photo-preview {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.employee-dashboard-page .attendance-photo-preview.is-clockin {
    border-color: var(--apple-success);
}

.employee-dashboard-page .attendance-photo-preview.is-clockout {
    border-color: var(--apple-danger);
}

.employee-dashboard-page .attendance-photo-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--company-primary, var(--apple-primary)) 25%, transparent);
}

/* Attendance: History Page (Employee) */

.attendance-history-page .attendance-photo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.attendance-history-page .attendance-photo:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(58, 59, 69, 0.3);
}

.attendance-history-page .time-display {
    font-weight: 600;
    font-family: var(--bs-font-monospace, monospace);
}

.attendance-history-page .duration-display {
    background: var(--apple-light-gray);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--company-primary, var(--apple-primary));
}

.attendance-history-page .schedule-info .fw-semibold {
    color: var(--company-primary, var(--apple-primary)) !important;
}

.attendance-history-page .attendance-shift-name {
    font-size: 0.8rem;
}

.attendance-history-page .location-info {
    font-size: 0.875rem;
}

.attendance-history-page .address-text {
    font-size: 0.8rem;
    color: var(--gray-600, #858796);
}

/* Status badges (outline style using existing theme variables) */
.attendance-history-page .status-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    background: var(--apple-light-gray);
}

.attendance-history-page .status-badge.present {
    color: var(--apple-success) !important;
    border: 1px solid var(--apple-success);
}

.attendance-history-page .status-badge.late {
    color: var(--apple-warning) !important;
    border: 1px solid var(--apple-warning);
}

.attendance-history-page .status-badge.absent {
    color: var(--apple-danger) !important;
    border: 1px solid var(--apple-danger);
}

.attendance-history-page .status-badge.pending {
    background: var(--company-primary-light, var(--apple-primary-light)) !important;
    color: #ffffff !important;
    border: 1px solid var(--company-primary, var(--apple-primary));
}

/* Ensure any icon inside pending badges is white */
.attendance-history-page .status-badge.pending i,
.attendance-history-page .status-badge.pending .fa,
.attendance-history-page .status-badge.pending svg {
    color: #ffffff !important;
}

/* Make small IN/OUT badges use colored text + border on this page */
.attendance-history-page .badge-sm.bg-success {
    background: transparent !important;
    color: var(--apple-success) !important;
    border: 1px solid var(--apple-success) !important;
}

.attendance-history-page .badge-sm.bg-danger {
    background: transparent !important;
    color: var(--apple-danger) !important;
    border: 1px solid var(--apple-danger) !important;
}

.attendance-history-page .table-responsive .elegant-table tbody tr:hover .badge-sm {
    box-shadow: none !important;
}

.attendance-history-page .elegant-table tbody tr:hover {
    background-color: var(--company-primary-light-15, var(--apple-primary-light));
    box-shadow: 0 2px 8px var(--company-primary-light-15, var(--apple-primary-light));
}

/* Pagination chevrons sizing (page-scoped) */
.attendance-history-page .pagination-wrapper .pagination .page-link {
    font-size: 0.9rem !important;
    padding: 0.35rem 0.6rem !important;
    min-width: 2.2rem !important;
    line-height: 1 !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.attendance-history-page .pagination-wrapper .pagination .page-link i,
.attendance-history-page .pagination-wrapper .pagination .page-link svg,
.attendance-history-page .pagination-wrapper .pagination .page-link .fas,
.attendance-history-page .pagination-wrapper .pagination .page-link .fa {
    font-size: 0.95rem !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.attendance-history-page .pagination-wrapper .pagination {
    gap: 0.25rem;
}

.attendance-history-page .pagination-wrapper .pagination .page-item:first-child .page-link,
.attendance-history-page .pagination-wrapper .pagination .page-item:last-child .page-link {
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
}

.attendance-history-page .pagination-wrapper .pagination .page-item:first-child .page-link svg,
.attendance-history-page .pagination-wrapper .pagination .page-item:first-child .page-link i.fas.fa-chevron-left,
.attendance-history-page .pagination-wrapper .pagination .page-item:first-child .page-link i.fa-angle-left,
.attendance-history-page .pagination-wrapper .pagination .page-item:last-child .page-link svg,
.attendance-history-page .pagination-wrapper .pagination .page-item:last-child .page-link i.fas.fa-chevron-right,
.attendance-history-page .pagination-wrapper .pagination .page-item:last-child .page-link i.fa-angle-right {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.attendance-history-page .attendance-photo-modal-img {
    max-height: 70vh;
}

/* Mobile spacing alignment: keep consistent gap from top bar to hero */
@media (max-width: 768px) {
}

/* Employee: Profile Page */

.employee-profile-page .profile-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid #fff;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.employee-profile-page .profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Pending avatar thumbnail (if shown) */
.employee-profile-page .pending-avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px dashed rgba(0, 0, 0, 0.06);
    box-shadow: none;
}

/* Avatar status badges (if shown) */
.employee-profile-page .avatar-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
}

.employee-profile-page .avatar-status-badge.pending {
    background: linear-gradient(90deg,
        var(--company-primary, var(--apple-primary)),
        var(--company-primary-hover, var(--apple-primary-hover))
    );
    animation: employee-profile-pulse 2s infinite;
}

.employee-profile-page .avatar-status-badge.rejected {
    background: linear-gradient(90deg, var(--apple-danger), color-mix(in srgb, var(--apple-danger) 80%, #000));
}

@keyframes employee-profile-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.05); }
    70% { box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

/* Header badges in hero */
.employee-profile-page .profile-hero-badge {
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.employee-profile-page .profile-hero-badge--active {
    background: #fff;
    color: var(--company-primary, var(--apple-primary));
}

.employee-profile-page .profile-hero-badge--joined {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 1);
    color: #fff;
}

/* Section header + divider */
.employee-profile-page .section-header {
    color: var(--company-primary, var(--apple-primary));
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
}

.employee-profile-page .section-header i {
    color: var(--company-primary, var(--apple-primary));
    margin-right: 0.5rem;
}

.employee-profile-page .section-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--company-primary, var(--apple-primary)) 0%, rgba(0, 0, 0, 0.1) 100%);
    border-radius: 3px;
    margin: 2rem 0;
    border: none;
}

/* Info rows */
.employee-profile-page .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--apple-border);
}

.employee-profile-page .info-item:last-child {
    border-bottom: none;
}

.employee-profile-page .info-label {
    font-weight: 500;
    color: var(--apple-dark-gray);
    display: flex;
    align-items: center;
}

.employee-profile-page .info-label i {
    margin-right: 0.5rem;
    color: var(--company-primary, var(--apple-primary));
    width: 20px;
    text-align: center;
}

.employee-profile-page .info-value {
    font-weight: 400;
    color: var(--apple-dark-gray);
    text-align: right;
}

/* Status badges (profile pages) */
.employee-profile-page .status-badge {
    font-size: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.employee-profile-page .status-badge-active {
    background: var(--apple-success) !important;
    color: #fff !important;
}

.employee-profile-page .status-badge-joined {
    background: var(--apple-gray) !important;
    color: #fff !important;
}

/* Photo/map modal content */
.employee-dashboard-page .dashboard-photo-map-img {
    max-height: 75vh;
    max-width: 100%;
}

.employee-dashboard-page .dashboard-photo-map {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
}

.employee-dashboard-page .dashboard-map-marker-icon {
    color: var(--apple-warning);
}

/* ==================== Admin: Dashboard Page Components ==================== */

.admin-dashboard-page .dashboard-time {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.05em;
    line-height: 1;
}

.admin-dashboard-page .dashboard-date {
    color: rgba(255, 255, 255, 0.9);
}

/* Welcome card / Hero header for admin */
.admin-dashboard-page .welcome-card {
    background: linear-gradient(135deg,
        var(--company-primary, var(--apple-primary)) 0%,
        var(--company-primary-hover, var(--apple-primary-hover)) 100%
    );
    color: #fff;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.admin-dashboard-page .welcome-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    z-index: 1;
}

.admin-dashboard-page .welcome-content {
    position: relative;
    z-index: 2;
}

/* Stats cards */
.admin-dashboard-page .stats-card {
    border-left: 4px solid var(--company-primary, var(--apple-primary));
    background: #fff;
    height: 100%;
    border-radius: var(--apple-border-radius);
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

/* Action cards */
.admin-dashboard-page .action-card {
    background: #fff;
    border: 1px solid var(--apple-border);
    height: 100%;
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

/* Icon circles */
.admin-dashboard-page .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: #fff;
    border: none;
}

.admin-dashboard-page .icon-circle.primary {
    background: linear-gradient(135deg,
        var(--company-primary, var(--apple-primary)) 0%,
        var(--company-primary-hover, var(--apple-primary-hover)) 100%
    );
}

.admin-dashboard-page .icon-circle.success {
    background: linear-gradient(135deg,
        var(--apple-success) 0%,
        color-mix(in srgb, var(--apple-success) 70%, #000) 100%
    );
}

.admin-dashboard-page .icon-circle.warning {
    background: linear-gradient(135deg,
        var(--apple-warning) 0%,
        color-mix(in srgb, var(--apple-warning) 70%, #000) 100%
    );
}

.admin-dashboard-page .icon-circle.danger {
    background: linear-gradient(135deg,
        var(--apple-danger) 0%,
        color-mix(in srgb, var(--apple-danger) 70%, #000) 100%
    );
}

.admin-dashboard-page .icon-circle.info {
    background: linear-gradient(135deg, #36b9cc 0%, #258391 100%);
}

/* Metric cards */
.admin-dashboard-page .metric-card {
    background: linear-gradient(145deg, #ffffff 0%, var(--apple-light-gray) 100%);
    border-radius: 1rem;
    border: 1px solid var(--apple-border);
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.admin-dashboard-page .metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,
        var(--company-primary, var(--apple-primary)),
        var(--company-primary-hover, var(--apple-primary-hover))
    );
}

.admin-dashboard-page .metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--company-primary, var(--apple-primary));
}

.admin-dashboard-page .metric-label {
    font-size: 0.9rem;
    color: var(--apple-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Schedule info card */
.admin-dashboard-page .schedule-info {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--apple-border);
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    height: 100%;
}

.admin-dashboard-page .schedule-info.compact h5 {
    color: var(--company-primary, var(--apple-primary));
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--apple-border);
}

.admin-dashboard-page .compact .schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.admin-dashboard-page .compact .schedule-item {
    padding: 0.75rem;
    background: var(--apple-light-gray);
    border-radius: 0.5rem;
    border-left: 3px solid var(--company-primary, var(--apple-primary));
}

.admin-dashboard-page .info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--apple-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.admin-dashboard-page .info-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--apple-dark-gray);
}

/* Status badges */
.admin-dashboard-page .status-badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

/* Alert styles */
.admin-dashboard-page .dashboard-alert {
    border-radius: var(--apple-border-radius);
    border: 1px solid var(--apple-border);
}

.admin-dashboard-page .dashboard-alert.dashboard-alert-warning {
    background: color-mix(in srgb, var(--apple-warning) 10%, white);
    border-left: 4px solid var(--apple-warning);
}

.admin-dashboard-page .dashboard-alert.dashboard-alert-danger {
    background: color-mix(in srgb, var(--apple-danger) 10%, white);
    border-left: 4px solid var(--apple-danger);
}

/* Work time container */
.admin-dashboard-page .work-time-container {
    padding: 1.75rem;
    background: #fff;
    border: 1px solid var(--apple-border);
    border-radius: 1rem;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.admin-dashboard-page .work-time-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 1rem 1rem 0 0;
}

.admin-dashboard-page .work-time-container.completed::before {
    background: linear-gradient(90deg,
        var(--apple-success),
        color-mix(in srgb, var(--apple-success) 70%, #000)
    );
}

.admin-dashboard-page .work-time-container.working::before,
.admin-dashboard-page .work-time-container.active::before {
    background: linear-gradient(90deg,
        var(--company-primary, var(--apple-primary)),
        var(--company-primary-hover, var(--apple-primary-hover))
    );
    animation: progress-shimmer 2s infinite;
}

.admin-dashboard-page .work-time-container.not-started::before {
    background: linear-gradient(90deg,
        var(--apple-gray),
        color-mix(in srgb, var(--apple-gray) 70%, #000)
    );
}

.admin-dashboard-page .time-number {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.75rem;
    color: var(--apple-dark-gray);
}

.admin-dashboard-page .work-time-container.completed .time-number {
    color: var(--apple-success);
}

.admin-dashboard-page .work-time-container.working .time-number,
.admin-dashboard-page .work-time-container.active .time-number {
    color: var(--company-primary, var(--apple-primary));
}

.admin-dashboard-page .work-time-container.not-started .time-number {
    color: var(--apple-gray);
}

.admin-dashboard-page .time-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--apple-gray);
}

/* Progress bar */
.admin-dashboard-page .dashboard-progress {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-dashboard-page .dashboard-progress-bar {
    width: 0;
    border-radius: 4px;
    background: linear-gradient(90deg,
        var(--company-primary, var(--apple-primary)),
        var(--company-primary-hover, var(--apple-primary-hover))
    );
    animation: progress-glow 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-dashboard-page .schedule-info {
        padding: 1rem;
        border-radius: 0.875rem;
    }

    .admin-dashboard-page .schedule-info.compact h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .admin-dashboard-page .compact .schedule-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .admin-dashboard-page .compact .schedule-item {
        padding: 0.625rem;
    }

    .admin-dashboard-page .info-label {
        font-size: 0.7rem;
    }

    .admin-dashboard-page .info-value {
        font-size: 0.825rem;
    }
}

/* ==================== Employee: Calendar Page Components ==================== */

/* Calendar Card */
.employee-calendar-page .calendar-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: all 0.3s ease;
}

.employee-calendar-page .calendar-card:hover {
    box-shadow: 0 0.25rem 2rem 0 rgba(58, 59, 69, 0.2);
}

/* Calendar Legend */
.employee-calendar-page .calendar-legend {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.employee-calendar-page .legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.employee-calendar-page .legend-item:last-child {
    margin-bottom: 0;
}

.employee-calendar-page .legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 0.75rem;
}

.employee-calendar-page .legend-public {
    background: #c82333;
}

.employee-calendar-page .legend-leave {
    background: #20c997;
}

.employee-calendar-page .legend-holiday {
    background: #0d6efd;
}

.employee-calendar-page .legend-event {
    background: #fd7e14;
}

.employee-calendar-page .calendar-legend .legend-color.legend-holiday {
    background-color: #0d6efd !important;
    border: 1px solid rgba(13,110,253,0.15);
}

.employee-calendar-page .calendar-legend .legend-color.legend-public {
    background-color: #c82333 !important;
    border: 1px solid rgba(200,35,51,0.15);
}

.employee-calendar-page .calendar-legend .legend-color.legend-leave {
    background-color: #20c997 !important;
    border: 1px solid rgba(32,201,151,0.15);
}

.employee-calendar-page .calendar-legend .legend-color.legend-event {
    background-color: #fd7e14 !important;
    border: 1px solid rgba(253,126,20,0.15);
}

/* Stats Cards with company theme */
.employee-calendar-page .stats-card.stats-total,
.employee-calendar-page .stats-card.stats-monthly,
.employee-calendar-page .stats-card.stats-active,
.employee-calendar-page .stats-card.stats-depreciating,
.employee-calendar-page .stats-card.stats-canceled {
    background: white !important;
    color: var(--gray-800, #5a5c69) !important;
    border: 1px solid var(--apple-border, #E5E5EA);
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border-radius: 0.75rem;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.employee-calendar-page .stats-card:hover {
    box-shadow: 0 0.25rem 2rem 0 rgba(58, 59, 69, 0.2);
    transform: translateY(-2px);
}

.employee-calendar-page .stats-card .stats-content {
    padding: 0;
}

.employee-calendar-page .stats-card .stats-label {
    color: var(--gray-600, #858796) !important;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.employee-calendar-page .stats-card .stats-value {
    color: var(--gray-800, #5a5c69) !important;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0;
}

/* FullCalendar customization */
.employee-calendar-page .fc-theme-standard .fc-scrollgrid {
    border: none;
}

.employee-calendar-page .fc-theme-standard td,
.employee-calendar-page .fc-theme-standard th {
    border-color: #e9ecef;
}

.employee-calendar-page .fc-header-toolbar {
    margin-bottom: 1.5rem;
}

.employee-calendar-page .fc-daygrid-day.fc-day-today {
    background-color: var(--company-primary-light) !important;
}

/* Make all calendar text black by default and remove underlines on date numbers */
.employee-calendar-page .fc-theme-standard,
.employee-calendar-page .fc-theme-standard .fc-col-header-cell,
.employee-calendar-page .fc-theme-standard .fc-daygrid-day-number,
.employee-calendar-page .fc-theme-standard .fc-daygrid-day-top {
    color: #000 !important;
}

.employee-calendar-page .fc-theme-standard .fc-daygrid-day-number,
.employee-calendar-page .fc-theme-standard .fc-col-header-cell-cushion {
    text-decoration: none !important;
}

/* Weekend day numbers in red */
.employee-calendar-page .fc-daygrid-day.fc-day-sat .fc-daygrid-day-number,
.employee-calendar-page .fc-daygrid-day.fc-day-sun .fc-daygrid-day-number {
    color: #dc3545 !important;
}

/* Holiday-marked day (added via JS) */
.employee-calendar-page .holiday-day .fc-daygrid-day-number {
    color: #dc3545 !important;
}

.employee-calendar-page .holiday-company .fc-daygrid-day-number {
    color: #0d6efd !important;
}

.employee-calendar-page .holiday-public .fc-daygrid-day-number {
    color: #c82333 !important;
}

.employee-calendar-page .leave-event {
    border-radius: 4px !important;
}

.employee-calendar-page .holiday-event {
    border-radius: 4px !important;
}

.employee-calendar-page .attendance-event {
    border-radius: 4px !important;
}

.employee-calendar-page .fc-event-title {
    font-weight: 500;
}

.employee-calendar-page .employee-calendar-mobile {
    margin-bottom: 1.5rem;
}

.employee-calendar-page .attendance-month-switcher {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: clamp(12px, 3.8vw, 16px);
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.12);
    display: flex;
    justify-content: space-between;
    margin-bottom: clamp(0.65rem, 2.8vw, 1rem);
    padding: clamp(0.65rem, 2.8vw, 1rem);
}

.employee-calendar-page .attendance-month-switcher h2 {
    color: #111827;
    font-size: clamp(1rem, 4.6vw, 1.35rem);
    font-weight: 700;
    margin: 0;
    min-width: 0;
    text-align: center;
}

.employee-calendar-page .attendance-month-button {
    align-items: center;
    background: var(--apple-light-gray, #f8f9fa);
    border-radius: clamp(9px, 3vw, 12px);
    color: #111827;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: clamp(0.8rem, 3.6vw, 1rem);
    height: clamp(34px, 11vw, 48px);
    justify-content: center;
    text-decoration: none;
    width: clamp(34px, 11vw, 48px);
}

.employee-calendar-page .attendance-mobile-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: clamp(12px, 3.8vw, 16px);
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.12);
    padding: clamp(0.55rem, 2.8vw, 1rem);
}

.employee-calendar-page .attendance-mobile-tabs {
    background: var(--apple-light-gray, #f8f9fa);
    border-radius: clamp(9px, 3vw, 12px);
    display: grid;
    gap: clamp(0.14rem, 0.8vw, 0.25rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: clamp(0.65rem, 2.8vw, 1rem);
    padding: clamp(0.16rem, 0.8vw, 0.25rem);
}

.employee-calendar-page .attendance-mobile-tab {
    align-items: center;
    border-radius: clamp(8px, 2.6vw, 10px);
    color: var(--gray-600, #858796);
    display: inline-flex;
    font-size: clamp(0.72rem, 3.4vw, 0.95rem);
    font-weight: 700;
    gap: clamp(0.22rem, 1.6vw, 0.45rem);
    justify-content: center;
    min-height: clamp(36px, 10.5vw, 46px);
    text-decoration: none;
}

.employee-calendar-page .attendance-mobile-tab.active {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(58, 59, 69, 0.12);
    color: var(--company-primary, var(--apple-primary));
}

.employee-calendar-page .attendance-calendar-board {
    overflow: hidden;
}

.employee-calendar-page .attendance-calendar-weekdays {
    border-bottom: 1px solid #ead8d8;
    color: var(--gray-600, #858796);
    display: grid;
    font-size: clamp(0.58rem, 2.5vw, 0.78rem);
    font-weight: 800;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    letter-spacing: 0.01em;
    margin-bottom: clamp(0.45rem, 2vw, 0.75rem);
    padding: clamp(0.38rem, 2vw, 0.6rem) 0 clamp(0.45rem, 2.2vw, 0.75rem);
    text-align: center;
    text-transform: uppercase;
}

.employee-calendar-page .attendance-calendar-grid {
    border-left: 1px solid #edf0f5;
    border-top: 1px solid #edf0f5;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.employee-calendar-page .attendance-day-card {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #edf0f5;
    border-right: 1px solid #edf0f5;
    display: flex;
    flex-direction: column;
    gap: clamp(0.14rem, 1vw, 0.35rem);
    justify-content: flex-start;
    min-height: clamp(46px, 15vw, 92px);
    min-width: 0;
    padding: clamp(0.34rem, 1.8vw, 0.65rem) clamp(0.08rem, 0.8vw, 0.18rem) clamp(0.24rem, 1.4vw, 0.35rem);
}

.employee-calendar-page .attendance-day-card.has-record {
    background: #fbfcff;
}

.employee-calendar-page .attendance-day-card.is-empty {
    background: #ffffff;
}

.employee-calendar-page .attendance-day-card.is-today {
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--company-primary, var(--apple-primary)) 50%, #ffffff);
}

.employee-calendar-page .attendance-day-number {
    color: #374151;
    font-size: clamp(0.72rem, 3.8vw, 1.15rem);
    font-weight: 800;
    line-height: 1;
}

.employee-calendar-page .attendance-day-punches {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.08rem, 0.7vw, 0.16rem);
    justify-content: center;
    line-height: 1;
    max-width: 100%;
}

.employee-calendar-page .attendance-punch-badge {
    border-radius: 4px;
    display: inline-flex;
    font-size: clamp(0.39rem, 1.65vw, 0.6rem);
    font-weight: 900;
    line-height: 1;
    max-width: 100%;
    padding: clamp(0.12rem, 0.9vw, 0.24rem) clamp(0.14rem, 0.9vw, 0.26rem);
}

.employee-calendar-page .attendance-punch-badge.clock-in {
    background: color-mix(in srgb, var(--apple-success, #28a745) 14%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--apple-success, #28a745) 28%, #ffffff);
    color: var(--apple-success, #28a745);
}

.employee-calendar-page .attendance-punch-badge.clock-out {
    background: color-mix(in srgb, var(--apple-warning, #ffc107) 18%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--apple-warning, #ffc107) 32%, #ffffff);
    color: #b77900;
}

.employee-calendar-page .attendance-punch-badge.leave {
    background: color-mix(in srgb, #20c997 14%, #ffffff);
    border: 1px solid color-mix(in srgb, #20c997 30%, #ffffff);
    color: #15966f;
}

.employee-calendar-page .attendance-list-status {
    align-self: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: clamp(0.56rem, 2.4vw, 0.68rem);
    font-weight: 800;
    justify-content: center;
    justify-self: end;
    margin-right: clamp(0.35rem, 1.8vw, 0.65rem);
    max-width: clamp(4.6rem, 25vw, 7rem);
    padding: clamp(0.24rem, 1.4vw, 0.35rem) clamp(0.38rem, 1.8vw, 0.55rem);
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.employee-calendar-page .attendance-time-chip.clock-in i,
.employee-calendar-page .attendance-list-label.clock-in i {
    color: var(--apple-success, #28a745);
}

.employee-calendar-page .attendance-time-chip.clock-out i,
.employee-calendar-page .attendance-list-label.clock-out i {
    color: var(--apple-warning, #ffc107);
}

.employee-calendar-page .attendance-monthly-list {
    display: flex;
    flex-direction: column;
    gap: clamp(0.55rem, 2.6vw, 0.85rem);
}

.employee-calendar-page .attendance-list-item {
    align-items: center;
    border: 1px solid #edf0f5;
    border-radius: clamp(10px, 3.4vw, 14px);
    display: grid;
    gap: clamp(0.45rem, 2.4vw, 0.85rem);
    grid-template-columns: clamp(54px, 17vw, 74px) minmax(0, 1fr) minmax(max-content, auto);
    min-height: clamp(58px, 18vw, 76px);
    overflow: hidden;
    padding-right: clamp(0.35rem, 1.8vw, 0.65rem);
}

.employee-calendar-page .attendance-list-date {
    align-items: center;
    align-self: stretch;
    background: color-mix(in srgb, var(--company-primary, var(--apple-primary)) 8%, #ffffff);
    color: var(--company-primary, var(--apple-primary));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.employee-calendar-page .attendance-list-date strong {
    font-size: clamp(1rem, 4.2vw, 1.35rem);
    line-height: 1;
}

.employee-calendar-page .attendance-list-date span {
    font-size: clamp(0.58rem, 2.4vw, 0.75rem);
    font-weight: 800;
    margin-top: clamp(0.18rem, 1.4vw, 0.35rem);
}

.employee-calendar-page .attendance-list-times {
    display: grid;
    gap: clamp(0.38rem, 2vw, 0.75rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-calendar-page .attendance-list-time {
    min-width: 0;
}

.employee-calendar-page .attendance-list-label {
    color: var(--gray-600, #858796);
    display: flex;
    font-size: clamp(0.52rem, 2.2vw, 0.68rem);
    font-weight: 800;
    gap: clamp(0.18rem, 1.2vw, 0.35rem);
    margin-bottom: clamp(0.14rem, 0.9vw, 0.25rem);
    text-transform: uppercase;
}

.employee-calendar-page .attendance-list-time strong {
    color: #111827;
    display: block;
    font-family: var(--bs-font-monospace, monospace);
    font-size: clamp(0.78rem, 3.2vw, 1rem);
    overflow-wrap: anywhere;
}

.employee-calendar-page .status-present {
    background: color-mix(in srgb, var(--apple-success, #28a745) 12%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--apple-success, #28a745) 35%, #ffffff);
    color: var(--apple-success, #28a745);
}

.employee-calendar-page .status-late {
    background: color-mix(in srgb, var(--apple-warning, #ffc107) 14%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--apple-warning, #ffc107) 38%, #ffffff);
    color: #9a6700;
}

.employee-calendar-page .status-absent,
.employee-calendar-page .status-rejected {
    background: color-mix(in srgb, var(--apple-danger, #dc3545) 10%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--apple-danger, #dc3545) 35%, #ffffff);
    color: var(--apple-danger, #dc3545);
}

.employee-calendar-page .status-pending,
.employee-calendar-page .status-approved {
    background: color-mix(in srgb, var(--company-primary, var(--apple-primary)) 10%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--company-primary, var(--apple-primary)) 28%, #ffffff);
    color: var(--company-primary, var(--apple-primary));
}

.employee-calendar-page .status-no-attendance,
.employee-calendar-page .status-unknown {
    background: #f1f6ff;
    border: 1px solid #cfe0ff;
    color: #4f7fc7;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .employee-calendar-page {
        padding-left: clamp(0.45rem, 2.6vw, 0.75rem);
        padding-right: clamp(0.45rem, 2.6vw, 0.75rem);
    }

    .employee-calendar-page > .apple-card.mb-4,
    .employee-calendar-page > .row.mb-4 {
        margin-bottom: clamp(0.65rem, 3vw, 1rem) !important;
    }

    .employee-calendar-page .calendar-card {
        padding: 1rem;
    }

    .employee-calendar-page .fc-header-toolbar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .employee-calendar-page .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }

    .employee-calendar-page .calendar-legend {
        border-radius: 0 0 16px 16px;
        margin-bottom: clamp(0.65rem, 2.8vw, 1rem);
        padding: clamp(0.65rem, 2.8vw, 1rem);
    }

    .employee-calendar-page .calendar-legend h5 {
        display: none;
    }

    .employee-calendar-page .legend-item {
        font-size: clamp(0.78rem, 3.2vw, 0.95rem);
        margin-bottom: clamp(0.38rem, 1.8vw, 0.6rem);
    }

    .employee-calendar-page .legend-color {
        border-radius: clamp(3px, 1vw, 4px);
        height: clamp(14px, 4.5vw, 20px);
        margin-right: clamp(0.45rem, 2vw, 0.75rem);
        width: clamp(14px, 4.5vw, 20px);
    }

}

@media (max-width: 420px) {
    .employee-calendar-page .attendance-month-switcher {
        border-radius: clamp(10px, 3.4vw, 14px);
        padding: clamp(0.52rem, 2.4vw, 0.75rem);
    }

    .employee-calendar-page .attendance-month-switcher h2 {
        font-size: clamp(0.92rem, 4.6vw, 1.1rem);
    }

    .employee-calendar-page .attendance-month-button {
        border-radius: clamp(8px, 2.8vw, 10px);
        height: clamp(32px, 10.5vw, 42px);
        width: clamp(32px, 10.5vw, 42px);
    }

    .employee-calendar-page .attendance-mobile-card {
        border-radius: clamp(10px, 3.4vw, 14px);
        padding: clamp(0.48rem, 2.4vw, 0.75rem);
    }

    .employee-calendar-page .attendance-mobile-tab {
        font-size: clamp(0.68rem, 3.4vw, 0.82rem);
        gap: clamp(0.18rem, 1.4vw, 0.3rem);
        min-height: clamp(34px, 10vw, 42px);
    }

    .employee-calendar-page .attendance-calendar-weekdays {
        font-size: clamp(0.52rem, 2.5vw, 0.64rem);
        margin-bottom: clamp(0.34rem, 1.8vw, 0.5rem);
        padding: clamp(0.32rem, 1.8vw, 0.45rem) 0 clamp(0.38rem, 2vw, 0.55rem);
    }

    .employee-calendar-page .attendance-day-card {
        min-height: clamp(44px, 14.5vw, 58px);
        padding-top: clamp(0.28rem, 1.8vw, 0.48rem);
    }

    .employee-calendar-page .attendance-punch-badge {
        border-radius: 3px;
        padding: clamp(0.1rem, 0.8vw, 0.18rem) clamp(0.12rem, 0.8vw, 0.2rem);
    }

    .employee-calendar-page .attendance-list-item {
        gap: clamp(0.32rem, 1.9vw, 0.55rem);
        grid-template-columns: clamp(44px, 15vw, 66px) minmax(0, 1fr) minmax(max-content, auto);
        padding-right: clamp(0.45rem, 2.4vw, 0.75rem);
    }

    .employee-calendar-page .attendance-list-status {
        font-size: clamp(0.48rem, 2vw, 0.6rem);
        justify-self: end;
        margin-bottom: 0;
        margin-right: clamp(0.22rem, 1.4vw, 0.4rem);
        max-width: clamp(3.9rem, 24vw, 6.2rem);
        padding: clamp(0.2rem, 1.1vw, 0.3rem) clamp(0.28rem, 1.4vw, 0.45rem);
    }
}

@media (max-width: 360px) {
    .employee-calendar-page {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .employee-calendar-page .attendance-mobile-tabs {
        margin-bottom: 0.5rem;
    }

    .employee-calendar-page .attendance-mobile-tab i {
        font-size: 0.72rem;
    }

    .employee-calendar-page .attendance-calendar-weekdays {
        letter-spacing: 0;
    }

    .employee-calendar-page .attendance-day-card {
        min-height: 42px;
    }

    .employee-calendar-page .attendance-day-number {
        font-size: 0.68rem;
    }

    .employee-calendar-page .attendance-punch-badge {
        font-size: 0.36rem;
    }

    .employee-calendar-page .attendance-list-times {
        gap: 0.28rem;
    }

    .employee-calendar-page .attendance-list-item {
        gap: 0.24rem;
        grid-template-columns: 42px minmax(0, 1fr) minmax(max-content, auto);
        min-height: 54px;
        padding-right: 0.35rem;
    }

    .employee-calendar-page .attendance-list-label {
        font-size: 0.46rem;
    }

    .employee-calendar-page .attendance-list-time strong {
        font-size: 0.72rem;
    }

    .employee-calendar-page .attendance-list-status {
        font-size: 0.43rem;
        margin-bottom: 0;
        margin-right: 0.2rem;
        max-width: 4.8rem;
        padding: 0.18rem 0.28rem;
    }
}

/* ==================== Employee: Edit Profile Page Components ==================== */

.employee-edit-profile-page .profile-photo-wrapper {
    position: relative;
    display: inline-block;
}

.employee-edit-profile-page .profile-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid var(--company-primary, var(--apple-primary));
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.employee-edit-profile-page .profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.employee-edit-profile-page .approval-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.employee-edit-profile-page .approval-badge.pending {
    background: var(--apple-warning);
    color: white;
}

.employee-edit-profile-page .approval-badge.rejected {
    background: var(--apple-danger);
    color: white;
}

.employee-edit-profile-page .section-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--company-primary, var(--apple-primary)) 0%, rgba(0,0,0,0.1) 100%);
    border-radius: 3px;
    margin: 2rem 0;
    border: none;
}

.employee-edit-profile-page .section-header {
    color: var(--company-primary, var(--apple-primary));
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    border: none;
    background: none;
    padding: 0;
}

.employee-edit-profile-page .section-header i {
    color: var(--company-primary, var(--apple-primary));
    margin-right: 0.5rem;
}

.employee-edit-profile-page .info-card {
    background: var(--apple-light-gray);
    border: 1px solid var(--apple-border);
    border-radius: var(--apple-border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.employee-edit-profile-page .readonly-field {
    background: var(--apple-light-gray) !important;
    border: 1px solid var(--apple-border) !important;
    color: var(--apple-gray) !important;
    cursor: not-allowed !important;
}

/* Disabled appearance for HR-only fields */
.employee-edit-profile-page .readonly-field[disabled],
.employee-edit-profile-page .readonly-field.disabled-field {
    opacity: 0.85;
    background: var(--apple-light-gray) !important;
    color: var(--apple-gray) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.employee-edit-profile-page .form-control:focus,
.employee-edit-profile-page .form-select:focus {
    border-color: var(--company-primary, var(--apple-primary));
    box-shadow: 0 0 0 3px var(--company-primary-light, var(--apple-primary-light));
}

/* HR-Only Notice Banner */
.employee-edit-profile-page .hr-locked-banner {
    background: color-mix(in srgb, var(--apple-danger) 10%, white);
    border-left: 4px solid var(--apple-danger) !important;
}

.employee-edit-profile-page .hr-locked-icon {
    width: 50px;
    height: 50px;
    background: color-mix(in srgb, var(--apple-danger) 12%, white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.employee-edit-profile-page .hr-locked-icon i {
    color: var(--apple-danger);
    font-size: 1.25rem;
}

.employee-edit-profile-page .hr-locked-title {
    color: var(--gray-900, #3a3b45);
    font-weight: 600;
}

.employee-edit-profile-page .hr-locked-title i {
    color: var(--apple-danger);
}

.employee-edit-profile-page .hr-locked-text {
    color: var(--gray-800, #5a5c69);
}

/* Pending avatar status helpers */
.employee-edit-profile-page .pending-photo-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid var(--apple-warning);
}

.employee-edit-profile-page .pending-photo-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(0,0,0,0.03);
    border: 2px dashed rgba(0,0,0,0.06);
}

.employee-edit-profile-page .pending-photo-blocker {
    background: color-mix(in srgb, var(--apple-danger) 10%, white);
    border: 1px solid color-mix(in srgb, var(--apple-danger) 12%, white);
}

/* Small width for dial code select (keeps input-group compact) */
.employee-edit-profile-page #country_code {
    max-width: 100px;
}

/* Cropper modal sizing (prevent overflow) */
.employee-edit-profile-page #avatarCropModal .modal-body {
    max-height: 75vh;
    overflow: hidden;
}

.employee-edit-profile-page #avatarCropModal .img-preview {
    width: 260px;
    height: 260px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--apple-border);
}

.employee-edit-profile-page #avatarCropModal img#avatarCropImage {
    max-width: 100%;
    max-height: 65vh;
    display: block;
    margin: 0 auto;
}

.employee-edit-profile-page #avatarCropModal img#avatarCropImage.cropper-hidden {
    display: none !important;
}

.employee-edit-profile-page #avatarCropModal .cropper-container {
    max-width: 100% !important;
    max-height: 65vh !important;
    margin: 0 auto !important;
}

.employee-edit-profile-page #avatarCropModal .cropper-canvas,
.employee-edit-profile-page #avatarCropModal .cropper-drag-box,
.employee-edit-profile-page #avatarCropModal .cropper-crop-box {
    max-height: 65vh !important;
}

/* ==================== Employee: Documents Page Components ==================== */

.employee-documents-page .document-item {
    background: var(--bs-body-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--bs-border-color);
    transition: all 0.2s ease;
}

.employee-documents-page .document-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.employee-documents-page .document-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 16px;
}

.employee-documents-page .document-icon.pdf {
    background: linear-gradient(135deg, var(--apple-danger), color-mix(in srgb, var(--apple-danger) 70%, white));
}

.employee-documents-page .document-icon.doc,
.employee-documents-page .document-icon.docx {
    background: linear-gradient(135deg, var(--company-primary, var(--apple-primary)), var(--company-primary-hover, var(--apple-primary-hover)));
}

.employee-documents-page .document-icon.jpg,
.employee-documents-page .document-icon.jpeg,
.employee-documents-page .document-icon.png,
.employee-documents-page .document-icon.gif {
    background: linear-gradient(135deg, var(--apple-success), var(--apple-success-hover));
}

.employee-documents-page .document-icon.default {
    background: linear-gradient(135deg, var(--bs-secondary), var(--company-primary, var(--apple-primary)));
}

.employee-documents-page .upload-zone {
    border: 2px dashed var(--bs-border-color);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    background: var(--bs-light);
    transition: all 0.2s ease;
    cursor: pointer;
}

.employee-documents-page .upload-zone:hover {
    border-color: var(--company-primary, var(--apple-primary));
    background: var(--company-primary-light, var(--apple-primary-light));
}

.employee-documents-page .upload-zone.dragover {
    border-color: var(--company-primary, var(--apple-primary));
    background: color-mix(in srgb, var(--company-primary, var(--apple-primary)) 15%, white);
}

.employee-documents-page .upload-zone-icon {
    color: var(--company-primary, var(--apple-primary));
}

.employee-documents-page .file-size {
    font-size: 14px;
    color: var(--bs-secondary);
}

.employee-documents-page .file-date {
    font-size: 12px;
    color: var(--bs-secondary);
}

.employee-documents-page .empty-state {
    text-align: center;
    padding: 60px 40px;
}

.employee-documents-page .empty-state i {
    color: var(--bs-border-color);
    margin-bottom: 24px;
}

.employee-documents-page .empty-state h5 {
    color: var(--bs-secondary);
    margin-bottom: 12px;
}

.employee-documents-page .empty-state p {
    color: var(--bs-secondary);
}

/* Preview modal (scoped) */
.employee-documents-page #previewModal .modal-header {
    background: linear-gradient(135deg, var(--company-primary, var(--apple-primary)) 0%, var(--company-primary-hover, var(--apple-primary-hover)) 100%);
    color: white;
}

.employee-documents-page .doc-preview-modal-body,
.employee-documents-page .doc-preview-content {
    min-height: 500px;
}

.employee-documents-page .doc-preview-spinner {
    color: var(--company-primary, var(--apple-primary));
}

.employee-documents-page .doc-preview-image {
    max-height: 70vh;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.employee-documents-page .doc-preview-image.is-loaded {
    opacity: 1;
}

.employee-documents-page .doc-preview-frame-wrap {
    min-height: 500px;
}

.employee-documents-page .doc-preview-frame {
    min-height: 500px;
    border: none;
}

.employee-documents-page .doc-preview-unsupported-icon {
    color: var(--bs-border-color);
}

/* ==================== Employee: Change Password Page Components ==================== */

.employee-change-password-page .password-requirements {
    background: var(--bs-light);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.employee-change-password-page .password-requirements-title {
    color: var(--company-primary, var(--apple-primary));
}

.employee-change-password-page .requirement-item {
    font-size: 0.9rem;
    color: var(--bs-body-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.employee-change-password-page .requirement-item:last-child {
    margin-bottom: 0;
}

.employee-change-password-page .input-group .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.employee-change-password-page .input-group .form-control:focus {
    border-right-color: var(--bs-border-color);
}

@media (max-width: 768px) {
}

/* ==================== Employee: View Payslip Page Components ==================== */

.employee-view-payslip-page .payslip-header {
    background: linear-gradient(135deg, var(--company-primary, var(--apple-primary)), var(--company-primary-hover, var(--apple-primary-hover)));
    color: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.employee-view-payslip-page .payslip-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="10" y="10" width="80" height="80" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5" rx="8"/></svg>');
    opacity: 0.3;
}

.employee-view-payslip-page .payslip-number {
    font-size: 1.25rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.employee-view-payslip-page .net-salary {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.employee-view-payslip-page .status-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
}

.employee-view-payslip-page .company-info {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.employee-view-payslip-page .employee-info {
    background: var(--company-primary-light, var(--apple-primary-light));
    border: 1px solid var(--company-primary, var(--apple-primary));
    border-radius: 12px;
    padding: 1.5rem;
}

.employee-view-payslip-page .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.employee-view-payslip-page .info-label {
    font-weight: 500;
    color: #666;
}

.employee-view-payslip-page .info-value {
    font-weight: 600;
    color: #333;
}

.employee-view-payslip-page .earnings-section,
.employee-view-payslip-page .deductions-section {
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e9ecef;
}

.employee-view-payslip-page .section-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    font-size: 1.1rem;
}

.employee-view-payslip-page .earnings-header {
    background: #f8f9fa;
    color: #28a745;
}

.employee-view-payslip-page .deductions-header {
    background: #fff5f5;
    color: #dc3545;
}

.employee-view-payslip-page .payslip-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.employee-view-payslip-page .payslip-item:last-child {
    border-bottom: none;
}

.employee-view-payslip-page .item-label {
    font-weight: 500;
    color: #333;
}

.employee-view-payslip-page .item-description {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

.employee-view-payslip-page .item-amount {
    font-weight: 600;
    font-size: 1.1rem;
    text-align: right;
    min-width: 140px;
}

.employee-view-payslip-page .earnings-amount {
    color: #28a745;
}

.employee-view-payslip-page .deductions-amount {
    color: #dc3545;
}

.employee-view-payslip-page .summary-section {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.employee-view-payslip-page .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #dee2e6;
}

.employee-view-payslip-page .summary-item:last-child {
    border-bottom: 2px solid var(--company-primary, var(--apple-primary));
    padding-top: 1rem;
    margin-top: 1rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.employee-view-payslip-page .print-section {
    text-align: center;
    margin: 2rem 0;
}

/* Notes card helpers (scoped) */
.employee-view-payslip-page .apple-card-header {
    background: var(--apple-light-gray);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--apple-border);
}

.employee-view-payslip-page .apple-card-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--apple-dark-gray);
    display: flex;
    align-items: center;
}

.employee-view-payslip-page .apple-card-body {
    padding: 1.5rem;
}

@media print {
    .employee-view-payslip-page .print-section {
        display: none;
    }

    .employee-view-payslip-page {
        padding: 0;
    }
}

/* ==================== Employee: Salary Details Page Components ==================== */

.employee-salary-details-page .salary-overview-card {
    background: linear-gradient(135deg, var(--company-primary, var(--apple-primary)), var(--company-primary-hover, var(--apple-primary-hover)));
    color: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.employee-salary-details-page .salary-overview-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    opacity: 0.3;
}

.employee-salary-details-page .salary-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.employee-salary-details-page .salary-breakdown-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--company-primary, var(--apple-primary));
    transition: all 0.3s ease;
}

.employee-salary-details-page .salary-breakdown-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.employee-salary-details-page .salary-breakdown-item--total {
    border-left-color: var(--apple-success);
    background: #f8f9fa;
}

.employee-salary-details-page .component-amount {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--company-primary, var(--apple-primary));
}

.employee-salary-details-page .component-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.employee-salary-details-page .payslip-type-badge {
    background: var(--company-primary-light, var(--apple-primary-light));
    color: var(--company-primary, var(--apple-primary));
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
}

.employee-salary-details-page .payslip-type-badge--on-hero {
    background: rgba(255,255,255,0.2);
    color: white;
}

.employee-salary-details-page .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.employee-salary-details-page .info-grid--single {
    grid-template-columns: 1fr;
}

.employee-salary-details-page .info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.employee-salary-details-page .info-label {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.employee-salary-details-page .info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.employee-salary-details-page .salary-history-icon {
    font-size: 2rem;
    opacity: 0.3;
}

.employee-salary-details-page .salary-empty-icon {
    font-size: 4rem;
    opacity: 0.3;
    color: #ddd;
}

/* ==================== Employee: Payslips Page Components ==================== */

.employee-payslips-page .elegant-table tbody tr:hover {
    background-color: var(--company-primary-light-15, rgba(0, 122, 255, 0.15));
    box-shadow: 0 2px 8px var(--company-primary-light-15, rgba(0, 122, 255, 0.15));
}

.employee-payslips-page .stats-card {
    background: white !important;
    color: var(--gray-800, #5a5c69) !important;
    border: 1px solid var(--apple-border, #E5E5EA);
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    border-radius: 0.75rem;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.employee-payslips-page .stats-card:hover {
    box-shadow: 0 0.25rem 2rem 0 rgba(58, 59, 69, 0.2);
    transform: translateY(-2px);
}

.employee-payslips-page .stats-card .stats-content {
    padding: 0;
}

.employee-payslips-page .stats-card .stats-label {
    color: var(--gray-600, #858796) !important;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.employee-payslips-page .stats-card .stats-number {
    color: var(--company-primary, var(--apple-primary)) !important;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0;
}

.employee-payslips-page .stats-card .floating-icon {
    color: var(--company-primary, var(--apple-primary)) !important;
    opacity: 0.15;
    font-size: 2.5rem;
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
}

.employee-payslips-page .form-control:focus,
.employee-payslips-page .form-select:focus {
    border-color: var(--company-primary, var(--apple-primary)) !important;
}

/* ==============================
   Human Resources (Index) page
   Keep styling consistent while
   centralizing CSS in this file.
   ============================== */

/* HR Module Cards */
.human-resources-index-page .hr-module-card {
    border-radius: 1rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
    background: white;
    position: relative;
    z-index: 1;
}

/* Disabled module cards (when route not available) */
.human-resources-index-page .hr-module-card--disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.human-resources-index-page .hr-module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-color: var(--company-primary);
    z-index: 2;
}

.human-resources-index-page .hr-module-card .card-body {
    padding: 1.5rem;
}

.human-resources-index-page .hr-module-icon {
    width: 60px;
    height: 60px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: var(--company-primary);
    color: white;
    flex-shrink: 0;
}

.human-resources-index-page .hr-module-card:hover .hr-module-icon {
    background: var(--company-primary);
    color: white;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.human-resources-index-page .hr-module-content {
    flex-grow: 1;
}

.human-resources-index-page .hr-module-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.human-resources-index-page .hr-module-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* Stats section */
.human-resources-index-page .stats-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    text-align: center;
    position: relative;
    z-index: 1;
}

.human-resources-index-page .stats-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--company-primary);
    margin-bottom: 0.25rem;
}

.human-resources-index-page .stats-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .human-resources-index-page .hr-module-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* HiDPI / scaled desktop adjustments
   Example: 1920x1200 with 150% OS scale typically yields ~1280x800 CSS viewport.
   Keep the same styling, but reduce vertical density for shorter viewports. */
@media (min-width: 992px) and (max-height: 900px) {
    .human-resources-index-page .stats-card {
        padding: 1.25rem;
    }

    .human-resources-index-page .stats-value {
        font-size: 1.75rem;
    }

    .human-resources-index-page .hr-module-card .card-body {
        padding: 1.25rem;
    }

    .human-resources-index-page .hr-module-icon {
        width: 56px;
        height: 56px;
        font-size: 1.6rem;
    }

    .human-resources-index-page .row.g-3 {
        --bs-gutter-y: 0.75rem;
    }

    .human-resources-index-page .row.g-4 {
        --bs-gutter-y: 1rem;
    }

    .human-resources-index-page .apple-card.mb-4,
    .human-resources-index-page .row.g-3.mb-4 {
        margin-bottom: 1.25rem !important;
    }
}

/* Monthly Attendance Report (HR) */
.monthly-attendance-page .monthly-attendance-card-header {
    background: var(--company-primary, var(--apple-primary));
    color: #fff;
}
