﻿/* =========================================================
   COMMON APP LAYOUT
   ========================================================= */

.attendance-save-floating {
    position: sticky;
    bottom: 12px;
    z-index: 1020;
    margin-top: 16px;
    margin-left: auto;
    width: fit-content;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   ATTENDANCE - QUICK PAGE NAVIGATION
   ========================================================= */

.attendance-quick-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0;
    padding: 10px 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.attendance-quick-nav-info {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #6c757d;
    white-space: nowrap;
}

.attendance-quick-page-info {
    padding-left: 12px;
    border-left: 1px solid #dee2e6;
}

.attendance-quick-nav-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap;
}

.attendance-quick-nav-buttons .btn {
    min-width: 34px;
    min-height: 32px;
    border-radius: 7px;
}


/* =========================================================
   DASHBOARD CHART
========================================================= */

.dashboard-chart-container {
    width: 100%;
    min-height: 285px;
}

.dashboard-chart-empty {
    display: flex;
    min-height: 285px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: linear-gradient( 180deg, #f8fbfe 0%, #ffffff 100% );
    color: #94a3b8;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

    .dashboard-chart-empty i {
        font-size: 30px;
        color: #64748b;
    }

@media (max-width: 600px) {

    .dashboard-chart-container,
    .dashboard-chart-empty {
        min-height: 250px;
    }
}

/* =========================================================
   DASHBOARD
========================================================= */

.dashboard-page {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 6px 0 24px;
}

/* Header */

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

    .dashboard-header h1 {
        margin: 0;
        font-size: 28px;
        font-weight: 700;
        color: #16324f;
    }

    .dashboard-header p {
        margin: 4px 0 0;
        color: #6b7280;
        font-size: 14px;
    }

.dashboard-period {
    padding: 9px 16px;
    border-radius: 10px;
    background: #eaf2f8;
    color: #1f4e78;
    font-weight: 600;
    white-space: nowrap;
}


/* =========================================================
   MAIN KPI CARDS
========================================================= */

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.dashboard-kpi-card {
    position: relative;
    overflow: hidden;
    min-height: 112px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

    .dashboard-kpi-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: #2563eb;
    }

    .dashboard-kpi-card:nth-child(2)::before {
        background: #16a34a;
    }

    .dashboard-kpi-card:nth-child(3)::before {
        background: #7c3aed;
    }

    .dashboard-kpi-card:nth-child(4)::before {
        background: #ea580c;
    }

.dashboard-kpi-label {
    margin-bottom: 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.dashboard-kpi-value {
    color: #172033;
    font-size: 27px;
    line-height: 1.15;
    font-weight: 750;
}


/* =========================================================
   CHARTS / PANELS
========================================================= */

.dashboard-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
    gap: 18px;
    margin-bottom: 20px;
}

.dashboard-panel {
    min-width: 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.dashboard-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

    .dashboard-panel-header h3 {
        margin: 0;
        color: #16324f;
        font-size: 17px;
        font-weight: 700;
    }

    .dashboard-panel-header span {
        display: block;
        margin-top: 3px;
        color: #8491a3;
        font-size: 12px;
    }

.dashboard-chart-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 285px;
    padding: 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: linear-gradient( 180deg, #f8fbfe 0%, #ffffff 100% );
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
}


/* =========================================================
   SECONDARY KPI
========================================================= */

.dashboard-secondary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.dashboard-mini-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 72px;
    padding: 15px 17px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

    .dashboard-mini-card span {
        color: #64748b;
        font-size: 13px;
        font-weight: 600;
    }

    .dashboard-mini-card strong {
        color: #16324f;
        font-size: 18px;
        font-weight: 750;
        text-align: right;
    }


/* =========================================================
   QUICK ACTIONS
========================================================= */

.dashboard-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #cfe0ef;
    border-radius: 10px;
    background: #f4f9fd;
    color: #1f4e78;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

    .dashboard-action-btn:hover {
        background: #e8f2fa;
        color: #16324f;
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(31, 78, 120, 0.10);
    }


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .dashboard-kpi-grid,
    .dashboard-secondary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-chart-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .dashboard-page {
        padding-top: 2px;
        padding-bottom: 16px;
    }

    .dashboard-brand-hero {
        display: none;
    }


    /* ------------------------------------------
       SIGNED-IN USER - COMPACT STRIP
       ------------------------------------------ */

    .dashboard-user-strip {
        min-height: 0;
        gap: 6px;
        margin: 4px 0 7px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .dashboard-user-icon {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        border-radius: 7px;
        font-size: 13px;
    }

    .dashboard-user-info {
        flex: 1;
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }

        .dashboard-user-info span {
            display: none;
        }

        .dashboard-user-info strong {
            font-size: 12px;
            line-height: 1.2;
        }

        .dashboard-user-info small {
            font-size: 10px;
        }

            .dashboard-user-info small::before {
                content: "• ";
                color: #94a3b8;
            }

    /* ------------------------------------------
       OVERVIEW HEADER
       ------------------------------------------ */

    .dashboard-header.dashboard-overview-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        margin: 4px 0 8px;
    }

    .dashboard-overview-header h2 {
        font-size: 16px;
        line-height: 1.15;
    }

    .dashboard-overview-header p {
        display: none;
    }

    .dashboard-period {
        padding: 4px 7px;
        border-radius: 6px;
        font-size: 10px;
    }

    .dashboard-kpi-grid {
        gap: 7px;
        margin-bottom: 10px;
    }

    .dashboard-kpi-card {
        min-height: 76px;
        padding: 9px;
    }

    .dashboard-kpi-label {
        margin-bottom: 4px;
        font-size: 10.5px;
    }

    .dashboard-kpi-value {
        font-size: 17px;
    }

    .dashboard-kpi-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 14px;
    }

    .dashboard-chart-grid {
        gap: 12px;
    }

    .dashboard-panel {
        padding: 15px;
    }

    .dashboard-chart-placeholder {
        min-height: 240px;
    }

    .dashboard-secondary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .dashboard-mini-card {
        align-items: flex-start;
        flex-direction: column;
        min-height: 82px;
        padding: 13px;
    }

        .dashboard-mini-card strong {
            font-size: 17px;
            text-align: left;
        }

    .dashboard-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .dashboard-action-card {
        min-height: 56px;
        gap: 6px;
        padding: 7px 8px;
        border-radius: 10px;
    }

    .dashboard-action-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
        border-radius: 8px;
        font-size: 14px;
    }

    .dashboard-action-content {
        min-width: 0;
        flex: 1;
    }

        .dashboard-action-content strong {
            display: block;
            font-size: 11px;
            line-height: 1.15;
            font-weight: 700;
        }

    .dashboard-action-content span {
        display: none;
    }

    .dashboard-action-arrow {
        margin-left: auto;
        flex-shrink: 0;
        font-size: 11px;
    }

}
/* =========================================================
   PROFESSIONAL REPORTING THEME
   ========================================================= */

.report-page {
    --report-primary: #0756a5;
    --report-primary-soft: #eff6ff;
    --report-success: #16a34a;
    --report-success-soft: #f0fdf4;
    --report-warning: #d97706;
    --report-warning-soft: #fffbeb;
    --report-danger: #dc2626;
    --report-danger-soft: #fef2f2;
    --report-purple: #7c3aed;
    --report-purple-soft: #f5f3ff;
    --report-cyan: #0891b2;
    --report-cyan-soft: #ecfdf5;
    --report-border: #e2e8f0;
    --report-text-muted: #64748b;
    --report-surface: #ffffff;
}

    /* =========================================================
       ATTENDANCE REPORT STATUS
       ========================================================= */

    .report-status-danger {
        color: #991b1b;
        background: #fee2e2;
    }

    .report-status-paid-off {
        color: #5b21b6;
        background: #ede9fe;
    }

    .report-status-unpaid-off {
        color: #0e7490;
        background: #cffafe;
    }


    /* =========================================================
   REPORT HEADER
   ========================================================= */

.report-page .page-header {
    position: relative;
    padding: 16px 20px;
    border: 1px solid var(--report-border);
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    margin-bottom: 16px;
}

.report-page .page-header::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--report-primary);
    border-radius: 14px 0 0 14px;
}

.report-page .page-header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 800;
}

.report-page .page-subtitle {
    margin-top: 3px;
    color: var(--report-text-muted);
    font-size: 0.82rem;
}

    .report-value-negative {
        color: #b42318 !important;
    }

    .report-value-positive {
        color: #16794f !important;
    }

    .report-value-warning {
        color: #a15c00 !important;
    }

.report-page .form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
}

.report-page .form-control {
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 0.88rem;
    padding: 9px 12px;
}

.report-page .form-control:focus {
    border-color: var(--report-primary);
    box-shadow: 0 0 0 3px rgba(7, 86, 165, 0.12);
}

/* Action Buttons */
.report-page .action-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
    .report-page .employee-search-list {
        border-color: #cbd8e4;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    }

    .report-page .employee-search-item.active,
    .report-page .employee-search-item:hover {
        background: #eaf3fb;
    }

    .report-page .employee-search-item strong {
        color: #183650;
    }

    /* =========================================================
   FILTER CARD
   ========================================================= */

.report-page .filter-card {
    background: #ffffff;
    border: 1px solid var(--report-border);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    margin-bottom: 20px;
}

        .report-page .filter-card::before {
            content: "";
            position: absolute;
            left: 18px;
            right: 18px;
            top: 0;
            height: 3px;
            border-radius: 0 0 4px 4px;
            background: linear-gradient( 90deg, #1f4e78, #3b82f6 );
        }


    /* =========================================================
   BUTTON POLISH
   ========================================================= */

.report-page .action-row .btn {
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 9px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.report-page .action-row .btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}

/* Native Summary Chips/Cards Grid */
.report-page .summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

        .report-page .action-row .btn:hover {
            transform: translateY(-1px);
            transition: 0.15s ease;
        }


    /* =========================================================
   SUMMARY CARDS
   ========================================================= */

.report-page .summary-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--report-border);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

        .report-page .summary-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
        }

    .report-page .summary-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        border-radius: 12px 0 0 12px;
    }
    .report-page .summary-card.report-accent-blue::before {
        background: #2563eb;
    }

    .report-page .summary-card.report-accent-purple::before {
        background: #7c3aed;
    }

    .report-page .summary-card.report-accent-green::before {
        background: #16a34a;
    }

    .report-page .summary-card.report-accent-amber::before {
        background: #d97706;
    }

    .report-page .summary-card.report-accent-red::before {
        background: #dc2626;
    }

    .report-page .summary-card.report-accent-cyan::before {
        background: #0891b2;
    }
.report-page .summary-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--report-text-muted);
    text-transform: uppercase;
}

.report-page .summary-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 4px;
}


    /* Individual Card Accents */

    .report-page .summary-card.report-accent-blue::before {
        background: #2563eb;
    }

    .report-page .summary-card.report-accent-purple::before {
        background: #7c3aed;
    }

    .report-page .summary-card.report-accent-green::before {
        background: #16a34a;
    }

    .report-page .summary-card.report-accent-amber::before {
        background: #d97706;
    }

    .report-page .summary-card.report-accent-red::before {
        background: #dc2626;
    }

    .report-page .summary-card.report-accent-cyan::before {
        background: #0891b2;
    }


    /* =========================================================
   TABLE
   ========================================================= */

    .report-page .desktop-table {
        background: #fff;
        border: 1px solid var(--report-border);
        border-radius: 10px;
        overflow-x: auto;
    }

        .report-page .desktop-table table {
            margin-bottom: 0;
        }

        .report-page .desktop-table thead th {
            background: #edf4fb;
            color: #16324f;
            font-weight: 700;
            border-bottom: 2px solid #b8c9d9;
            padding-top: 11px;
            padding-bottom: 11px;
        }

        .report-page .desktop-table tbody tr {
            transition: background 0.12s ease;
        }

            .report-page .desktop-table tbody tr:hover {
                background: #f7fbff;
            }

        .report-page .desktop-table td {
            border-color: #e7edf3;
        }


    /* =========================================================
   TOTAL ROW
   ========================================================= */

    .report-page .report-total-row {
        background: #eaf3fb;
        color: #15324b;
        font-weight: 700;
        border-top: 2px solid #4a6b8a;
    }

        .report-page .report-total-row td {
            padding-top: 11px;
            padding-bottom: 11px;
        }


    /* =========================================================
   MOBILE REPORT CARDS
   ========================================================= */

    .report-page .mobile-report-card {
        position: relative;
        background: #fff;
        border: 1px solid var(--report-border);
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
        overflow: hidden;
    }

        .report-page .mobile-report-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            width: 4px;
            background: var(--report-primary);
        }

    .report-page .mobile-card-header {
        padding-left: 8px;
    }

        .report-page .mobile-card-header strong {
            color: #183650;
        }

    .report-page .mobile-data-grid span {
        color: var(--report-text-muted);
    }

    .report-page .mobile-data-grid strong {
        color: #1f2937;
    }


/* =========================================================
   STATUS BADGES
   ========================================================= */

.report-status {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.report-status-posted {
    color: #15803d;
    background: #dcfce7;
}

.report-status-generated {
    color: #b45309;
    background: #fef3c7;
}

.report-status-active {
    color: #1d4ed8;
    background: #dbeafe;
}

.report-status-closed {
    color: #475569;
    background: #f1f5f9;
}

.report-status-danger {
    color: #b91c1c;
    background: #fee2e2;
}

.report-status-paid-off {
    color: #6d28d9;
    background: #ede9fe;
}

.report-status-unpaid-off {
    color: #0e7490;
    background: #cffafe;
}

/* =========================================================
   PAYSLIP / DETAIL CARDS
   ========================================================= */

.report-page .payslip-wrapper {
    background: #fff;
    border-color: var(--report-border);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.report-page .payslip-header {
    background: linear-gradient( 135deg, #f7fbff, #eef5fb );
    margin: -20px -20px 0;
    padding: 18px 20px;
    border-radius: 12px 12px 0 0;
}

.report-page .payslip-period {
    color: var(--report-primary);
}

.report-page .payslip-info-grid > div {
    background: #fbfdff;
}

.report-page .payslip-value-card {
    background: #fcfdff;
    border-color: var(--report-border);
}

.report-page .payslip-final-card {
    border-color: #2f5d7c;
    background: #f6fbff;
}

    .report-page .payslip-final-card strong {
        color: #173d5b;
    }


/* =========================================================
   EMPTY STATE
   ========================================================= */

.report-page .empty-state {
    background: #fafcff;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: var(--report-text-muted);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .report-page .page-header {
        padding: 14px;
    }

    .report-page .summary-card {
        padding: 14px;
    }

    .report-page .mobile-report-card {
        padding: 14px 14px 14px 18px;
    }

    .report-page .payslip-header {
        margin: -14px -14px 0;
        padding: 16px 14px;
    }
}

.app-page {
    width: 100%;
    min-width: 0;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

    .app-header h1,
    .app-header h2,
    .app-header h3 {
        margin: 0;
        color: #212529;
        font-weight: 700;
    }

    .app-header h1 {
        font-size: 1.55rem;
    }

    .app-header p {
        margin: 4px 0 0;
        color: #6c757d;
        font-size: .88rem;
    }


/* =========================================================
   COMMON CARDS
   ========================================================= */

.app-card {
    margin-bottom: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
}

.app-card-title {
    margin-bottom: 13px;
    color: #343a40;
    font-size: .84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}


/* =========================================================
   COMMON MESSAGE AREA
   ========================================================= */

.app-message-area {
    scroll-margin-top: 16px;
}

.app-message {
    margin-bottom: 16px;
}


/* =========================================================
   COMMON FORM GRID
   ========================================================= */

.app-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.app-form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 18px;
}

.app-field label,
.app-label {
    display: block;
    margin-bottom: 6px;
    color: #495057;
    font-size: .82rem;
    font-weight: 600;
}

.app-field-hint {
    margin-top: 5px;
    color: #6c757d;
    font-size: .75rem;
}

.app-page .form-control,
.app-page .form-select {
    min-height: 42px;
}


/* =========================================================
   COMMON FILTER / TOOLBAR
   ========================================================= */

.app-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.app-toolbar-left,
.app-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-search {
    width: min(420px, 100%);
}


/* =========================================================
   COMMON SUMMARY CARDS
   ========================================================= */

.app-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.app-summary-card {
    min-width: 0;
    padding: 13px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 9px;
}

.app-summary-label {
    display: block;
    margin-bottom: 5px;
    color: #6c757d;
    font-size: .72rem;
}

.app-summary-value {
    display: block;
    color: #212529;
    font-size: 1rem;
    font-weight: 700;
}

.app-summary-card.success {
    background: #f0fff4;
    border-color: #badbcc;
}

.app-summary-card.warning {
    background: #fff8e1;
    border-color: #ffe69c;
}

.app-summary-card.danger {
    background: #fff5f5;
    border-color: #f1aeb5;
}


/* =========================================================
   COMMON TABLE
   ========================================================= */

.app-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
}

.app-table {
    width: 100%;
    min-width: 900px;
    margin-bottom: 0;
    vertical-align: middle;
}

    .app-table thead th {
        padding: 11px 10px;
        background: #f8f9fa;
        color: #495057;
        font-size: .75rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .app-table tbody td {
        padding: 10px;
        font-size: .82rem;
    }

    .app-table tbody tr:hover {
        background: #fafbfc;
    }

.app-amount {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
}


/* =========================================================
   COMMON STATUS BADGES
   ========================================================= */

.app-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
}

.app-status-ready,
.app-status-active {
    background: #d1e7dd;
    color: #0f5132;
}

.app-status-warning {
    background: #fff3cd;
    color: #664d03;
}

.app-status-danger,
.app-status-issue {
    background: #f8d7da;
    color: #842029;
}

.app-status-generated,
.app-status-inactive {
    background: #e2e3e5;
    color: #41464b;
}


/* =========================================================
   COMMON ACTIONS
   ========================================================= */

.app-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.app-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 16px;
    padding: 14px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
}

    .app-action-bar .btn {
        min-height: 42px;
    }


/* =========================================================
   COMMON EMPTY / LOADING STATE
   ========================================================= */

.app-state-card {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    color: #6c757d;
}


/* =========================================================
   COMMON BREAKDOWN GRID
   ========================================================= */

.app-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.app-breakdown-item {
    min-width: 0;
    padding: 9px 10px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 7px;
}

    .app-breakdown-item span {
        display: block;
        margin-bottom: 3px;
        color: #6c757d;
        font-size: .68rem;
    }

    .app-breakdown-item strong {
        color: #212529;
        font-size: .80rem;
    }


/* =========================================================
   COMMON MOBILE CARD LIST
   ========================================================= */

.app-mobile-list {
    display: none;
}

.app-mobile-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
}

.app-mobile-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 13px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.app-mobile-card-body {
    padding: 12px 13px;
}

.app-mobile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px dashed #e9ecef;
}

    .app-mobile-row:last-child {
        border-bottom: 0;
    }

.app-mobile-label {
    color: #6c757d;
    font-size: .78rem;
}

.app-mobile-value {
    color: #212529;
    font-size: .84rem;
    font-weight: 600;
    text-align: right;
}

.app-mobile-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 11px 13px;
    border-top: 1px solid #e9ecef;
}

    .app-mobile-card-actions .btn {
        min-height: 42px;
    }

.page-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

    .page-header h3 {
        margin: 0;
    }

.page-subtitle {
    margin-top: 4px;
    opacity: 0.7;
}

.filter-card {
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.summary-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 14px;
}

.summary-label {
    font-size: 13px;
    opacity: 0.7;
}

.summary-value {
    margin-top: 5px;
    font-size: 20px;
    font-weight: 700;
}

.desktop-table {
    width: 100%;
    overflow-x: auto;
}

    .desktop-table table {
        white-space: nowrap;
    }

.mobile-card-list {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.mobile-report-card {
    background: #ffffff;
    border: 1px solid var(--report-border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: hidden;
}
.mobile-report-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--report-primary);
}

.mobile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px dashed var(--report-border);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.mobile-card-header strong {
    font-size: 0.92rem;
    color: #0f172a;
}

.mobile-card-header span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--report-primary);
    background: var(--report-primary-soft);
    padding: 3px 8px;
    border-radius: 6px;
}
.mobile-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
}

.mobile-data-grid div {
    display: flex;
    flex-direction: column;
}

.mobile-data-grid span {
    font-size: 0.70rem;
    font-weight: 600;
    color: var(--report-text-muted);
    text-transform: uppercase;
}

.mobile-data-grid strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1px;
}

/* Native Status Pills */
.report-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
}

.empty-state {
    padding: 30px;
    text-align: center;
    opacity: 0.7;
}

.report-total-row {
    font-weight: 700;
    border-top: 2px solid #444;
}

    .report-total-row td {
        padding-top: 10px;
        padding-bottom: 10px;
    }

.payslip-wrapper {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
}

.payslip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

    .payslip-header h4 {
        margin: 0;
    }

.payslip-period {
    font-weight: 700;
    font-size: 18px;
}

.payslip-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

    .payslip-info-grid > div {
        border: 1px solid #ddd;
        border-radius: 9px;
        padding: 12px;
    }

    .payslip-info-grid span,
    .payslip-value-card span,
    .payslip-final-card span,
    .payslip-remarks span {
        display: block;
        font-size: 12px;
        opacity: 0.7;
        margin-bottom: 4px;
    }

.report-section {
    margin-top: 24px;
}

    .report-section h5 {
        margin-bottom: 10px;
    }

.payslip-value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.payslip-value-card {
    border: 1px solid #ddd;
    border-radius: 9px;
    padding: 12px;
}

    .payslip-value-card strong {
        font-size: 17px;
    }

.payslip-final-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.payslip-final-card {
    border: 2px solid #444;
    border-radius: 10px;
    padding: 16px;
}

    .payslip-final-card strong {
        font-size: 22px;
    }

.payslip-remarks {
    border: 1px solid #ddd;
    border-radius: 9px;
    padding: 12px;
    margin-top: 12px;
}

.payslip-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

    .payslip-table-wrapper table {
        width: 100%;
        min-width: 480px;
    }

.employee-search-wrapper {
    position: relative;
}

.employee-search-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 1000;
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.employee-search-item {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
}

    .employee-search-item.active,
    .employee-search-item:hover {
        background: #eef4ff;
    }

    .employee-search-item.active {
        font-weight: 600;
    }

    .employee-search-item strong {
        font-size: 14px;
    }

    .employee-search-item span {
        font-size: 13px;
        opacity: 0.75;
    }

.employee-search-empty {
    padding: 12px;
    font-size: 13px;
    opacity: 0.7;
}

@media (max-width: 992px) {

    .payslip-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .payslip-value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

    .payslip-wrapper {
        padding: 14px;
    }

    .payslip-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .payslip-info-grid {
        grid-template-columns: 1fr;
    }

    .payslip-value-grid {
        grid-template-columns: 1fr;
    }

    .payslip-final-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {

    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .page-container {
        padding: 12px;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-control {
        font-size: 16px;
    }

    .action-row {
        flex-direction: column;
    }

        .action-row .btn {
            width: 100%;
        }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .desktop-table {
        display: none;
    }

    .mobile-card-list {
        display: block;
    }
}

@media (max-width: 420px) {

    .summary-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .app-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-breakdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .app-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 14px;
    }

        .app-header h1 {
            font-size: 1.35rem;
        }

        .app-header p {
            font-size: .84rem;
        }

    .app-card {
        padding: 13px;
    }

    .app-form-grid,
    .app-form-grid-3 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .app-page .form-control,
    .app-page .form-select {
        min-height: 46px;
        font-size: 16px;
    }

    .app-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .app-toolbar-left,
    .app-toolbar-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .app-search {
        width: 100%;
    }

    .app-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .app-table-wrapper {
        display: none;
    }

    .app-mobile-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .app-action-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

        .app-action-bar .btn {
            width: 100%;
            min-height: 46px;
        }

    .app-breakdown-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .attendance-save-floating {
        position: fixed;
        left: 8px;
        right: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom));
        z-index: 1050;
        width: auto;
        margin: 0;
        padding: 8px 10px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid #dee2e6;
        border-radius: 10px;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.20);
    }

        .attendance-save-floating .selected-save-info {
            text-align: center;
            margin-bottom: 4px;
        }

        .attendance-save-floating
        .attendance-save-selected-button {
            width: 100%;
        }

    .attendance-quick-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 9px 10px;
        margin-top: 10px;
        margin-bottom: 12px;
    }

    .attendance-quick-nav-info {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        font-size: 12px;
    }

    .attendance-quick-page-info {
        padding-left: 0;
        border-left: 0;
    }

    .attendance-quick-nav-buttons {
        width: 100%;
        justify-content: center;
        gap: 5px;
        flex-wrap: nowrap;
    }

    .attendance-quick-nav-buttons .btn {
        min-width: 34px;
        min-height: 36px;
        padding: 5px 9px;
        font-size: 13px;
    }

    .attendance-quick-nav-buttons .btn:first-child,
    .attendance-quick-nav-buttons .btn:last-child {
        flex: 1;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {

    .app-summary-grid {
        grid-template-columns: 1fr;
    }

    .app-breakdown-grid {
        grid-template-columns: 1fr;
    }

    .app-mobile-card-actions {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   IBIXO EMPLOYEE MANAGEMENT BRANDING
   ========================================================== */

:root {
    --ibixo-blue: #0756a5;
    --ibixo-deep-blue: #062b61;
    --ibixo-navy: #071f49;
    --ibixo-orange: #ff7300;
    --ibixo-orange-dark: #f05400;
    --ibixo-soft-blue: #eef6ff;
    --ibixo-border: #dbe6f3;
}


/* ==========================================================
   SIDEBAR BRAND
   ========================================================== */

.app-brand {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    text-decoration: none;
    white-space: normal;
}

    .app-brand:hover {
        text-decoration: none;
    }

.app-brand-mark {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

    .app-brand-mark img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.app-brand-text {
    min-width: 0;
    line-height: 1.15;
}

.app-brand-company {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

    .app-brand-company span {
        color: var(--ibixo-orange);
    }

.app-brand-product {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* ==========================================================
   TOPBAR
   ========================================================== */

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.app-topbar-product {
    color: var(--ibixo-navy);
    font-size: 18px;
    font-weight: 750;
}

.app-topbar-subtitle {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.app-topbar-company {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--ibixo-deep-blue);
    font-size: 13px;
}

    .app-topbar-company strong {
        color: var(--ibixo-deep-blue);
    }

        .app-topbar-company strong::first-letter {
            color: var(--ibixo-orange);
        }

.app-topbar-by {
    color: #94a3b8;
    font-size: 11px;
}


/* ==========================================================
   LOGIN BRAND
   ========================================================== */

.login-brand-new {
    text-align: center;
    margin-bottom: 22px;
}

.login-logo {
    display: block;
    width: min(100%, 285px);
    max-height: 135px;
    object-fit: contain;
    margin: 0 auto;
}

.login-brand-new {
    text-align: center;
    margin-bottom: 14px;
}

.ibixo-login-btn {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
    background: linear-gradient( 135deg, var(--ibixo-blue), #087fd4 );
    box-shadow: 0 8px 20px rgba(7, 86, 165, 0.18);
}

    .ibixo-login-btn:hover,
    .ibixo-login-btn:focus {
        color: #ffffff;
        background: linear-gradient( 135deg, var(--ibixo-deep-blue), var(--ibixo-blue) );
    }

.login-footer-new {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #edf1f6;
    text-align: center;
}

    .login-footer-new span {
        display: block;
        color: var(--ibixo-deep-blue);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .login-footer-new small {
        display: block;
        margin-top: 7px;
        color: #94a3b8;
        font-size: 10px;
    }


/* ==========================================================
   DASHBOARD BRAND HERO
   ========================================================== */

.dashboard-brand-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 22px;
    padding: 26px 30px;
    border: 1px solid #dbe8f7;
    border-radius: 18px;
    background: radial-gradient( circle at 90% 10%, rgba(255, 115, 0, 0.12), transparent 28% ), linear-gradient( 135deg, #ffffff 0%, #f4f9ff 55%, #edf6ff 100% );
    box-shadow: 0 10px 28px rgba(10, 53, 101, 0.07);
}

    .dashboard-brand-hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background: linear-gradient( 180deg, var(--ibixo-orange), #ff9d35 );
    }

.dashboard-brand-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.dashboard-brand-eyebrow {
    margin-bottom: 7px;
    color: var(--ibixo-orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.dashboard-brand-content h1 {
    margin: 0;
    color: var(--ibixo-deep-blue);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -0.6px;
}

.dashboard-brand-content p {
    max-width: 650px;
    margin: 8px 0 0;
    color: #5f6f82;
    font-size: 14px;
    line-height: 1.6;
}

.dashboard-brand-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 17px;
}

    .dashboard-brand-meta span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #52667d;
        font-size: 12px;
        font-weight: 600;
    }

    .dashboard-brand-meta i {
        color: var(--ibixo-blue);
    }

.dashboard-brand-logo {
    width: 260px;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .dashboard-brand-logo img {
        display: block;
        width: 100%;
        max-height: 145px;
        object-fit: contain;
    }

.dashboard-overview-header {
    margin-top: 4px;
}

    .dashboard-overview-header h2 {
        margin: 0;
        color: var(--ibixo-navy);
        font-size: 20px;
        font-weight: 750;
    }


/* ==========================================================
   ORANGE BRAND ACCENTS
   ========================================================== */

.dashboard-action-btn {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

    .dashboard-action-btn:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 115, 0, 0.45);
        box-shadow: 0 8px 20px rgba(7, 49, 96, 0.09);
    }


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 768px) {

    .app-topbar {
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 1050;
    }

    .app-topbar-company {
        display: none;
    }

    .app-topbar-product {
        font-size: 16px;
    }

    .app-topbar-subtitle {
        font-size: 11px;
    }

    .dashboard-brand-hero {
        display: block;
        padding: 21px 20px;
        border-radius: 14px;
    }

    .dashboard-brand-content h1 {
        font-size: 24px;
    }

    .dashboard-brand-content p {
        margin-top: 6px;
        line-height: 1.5;
    }

    .dashboard-brand-logo {
        display: none;
    }

    .dashboard-brand-hero {
        padding: 18px 18px;
    }

    .dashboard-brand-meta {
        margin-top: 12px;
    }

        .dashboard-brand-meta span {
            display: flex;
            margin-top: 8px;
        }

    .login-logo {
        width: min(100%, 235px);
        max-height: 115px;
    }

    .app-brand {
        padding-right: 48px;
    }
}


@media (max-width: 480px) {

    .dashboard-brand-content h1 {
        font-size: 24px;
    }

    .dashboard-brand-eyebrow {
        font-size: 10px;
    }
}

/* ==========================================================
   DASHBOARD KPI - FINAL
   ========================================================== */

.dashboard-kpi-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 112px;
    padding: 20px;
    border: 1px solid #e4eaf2;
    border-top: 4px solid transparent;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 40, 70, 0.06);
}

.dashboard-kpi-content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.dashboard-kpi-label {
    margin-bottom: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
}

.dashboard-kpi-value {
    color: #101c33;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}


/* KPI ICON */

.dashboard-kpi-icon {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    min-width: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 27px;
}

    .dashboard-kpi-icon::after {
        content: "";
        position: absolute;
        width: 92px;
        height: 92px;
        border-radius: 50%;
        opacity: 0.05;
        z-index: -1;
    }


/* BLUE */

.dashboard-kpi-blue {
    border-top-color: #2475f5;
}

    .dashboard-kpi-blue .dashboard-kpi-icon {
        color: #1670e8;
        background: #eaf3ff;
    }

        .dashboard-kpi-blue .dashboard-kpi-icon::after {
            background: #1670e8;
        }


/* GREEN */

.dashboard-kpi-green {
    border-top-color: #18a663;
}

    .dashboard-kpi-green .dashboard-kpi-icon {
        color: #139759;
        background: #e9f9f0;
    }

        .dashboard-kpi-green .dashboard-kpi-icon::after {
            background: #139759;
        }


/* PURPLE */

.dashboard-kpi-purple {
    border-top-color: #7c3aed;
}

    .dashboard-kpi-purple .dashboard-kpi-icon {
        color: #7138d8;
        background: #f1ebff;
    }

        .dashboard-kpi-purple .dashboard-kpi-icon::after {
            background: #7138d8;
        }


/* ORANGE */

.dashboard-kpi-orange {
    border-top-color: var(--ibixo-orange);
}

    .dashboard-kpi-orange .dashboard-kpi-icon {
        color: var(--ibixo-orange);
        background: #fff0e4;
    }

        .dashboard-kpi-orange .dashboard-kpi-icon::after {
            background: var(--ibixo-orange);
        }


/* ==========================================================
   QUICK ACTIONS - FINAL
   ========================================================== */

.dashboard-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-action-card {
    position: relative;
    min-width: 0;
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border-radius: 14px;
    color: #ffffff;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 7px 18px rgba(15, 40, 70, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .dashboard-action-card:hover {
        color: #ffffff;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(15, 40, 70, 0.17);
    }


/* ACTION COLORS */

.dashboard-action-blue {
    background: linear-gradient( 135deg, #0869d8, #248cf3 );
}

.dashboard-action-orange {
    background: linear-gradient( 135deg, #f15a16, #ff832d );
}

.dashboard-action-purple {
    background: linear-gradient( 135deg, #6531bd, #8752dc );
}

.dashboard-action-green {
    background: linear-gradient( 135deg, #078b54, #20b974 );
}


/* ACTION ICON */

.dashboard-action-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 22px;
}


/* ACTION TEXT */

.dashboard-action-content {
    min-width: 0;
    flex: 1;
}

    .dashboard-action-content strong {
        display: block;
        color: #ffffff;
        font-size: 14px;
        font-weight: 750;
        line-height: 1.25;
    }

    .dashboard-action-content span {
        display: block;
        margin-top: 4px;
        color: rgba(255, 255, 255, 0.82);
        font-size: 11px;
        line-height: 1.3;
    }


/* ARROW */

.dashboard-action-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}


/* ==========================================================
   KPI + QUICK ACTION RESPONSIVE
   ========================================================== */

@media (max-width: 1100px) {

    .dashboard-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 768px) {

    .dashboard-kpi-card {
        min-height: 100px;
        padding: 14px;
        gap: 8px;
    }

    .dashboard-kpi-value {
        font-size: 21px;
    }

    .dashboard-kpi-label {
        font-size: 12px;
    }

    .dashboard-kpi-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 12px;
        font-size: 19px;
    }

    .dashboard-action-card {
        min-height: 76px;
        padding: 12px;
    }

    .dashboard-action-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 19px;
    }
}


@media (max-width: 480px) {

    .dashboard-kpi-card {
        min-height: 94px;
        padding: 12px;
    }

    .dashboard-kpi-value {
        font-size: 19px;
    }

    .dashboard-kpi-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 17px;
    }

    .dashboard-action-card {
        min-height: 68px;
    }

    .dashboard-action-card {
        min-height: 68px;
    }
}
/* ==========================================================
   DASHBOARD SECONDARY KPI - FINAL
   ========================================================== */

.dashboard-secondary-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 72px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e1e7ef;
    border-radius: 13px;
    box-shadow: 0 4px 12px rgba(15, 40, 70, 0.04);
}

.dashboard-secondary-label {
    margin-bottom: 7px;
    color: #60708a;
    font-size: 12px;
    font-weight: 650;
}

.dashboard-secondary-value {
    color: #10213d;
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-secondary-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 18px;
}


/* HALF DAY */

.secondary-halfday .dashboard-secondary-icon {
    color: #d98a00;
    background: #fff5dc;
}


/* ABSENT */

.secondary-absent .dashboard-secondary-icon {
    color: #dc3545;
    background: #fff0f1;
}


/* SALARY PAID */

.secondary-paid .dashboard-secondary-icon {
    color: #15945a;
    background: #e9f8f0;
}


/* CLOSING NEGATIVE */

.secondary-negative .dashboard-secondary-icon {
    color: #c43c61;
    background: #fcecf1;
}


@media (max-width: 768px) {

    .dashboard-secondary-card {
        min-height: 78px;
        padding: 12px;
    }

    .dashboard-secondary-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 16px;
    }

    .dashboard-secondary-value {
        font-size: 16px;
    }
}

.dashboard-user-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 22px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e3eaf2;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(15, 46, 77, 0.06);
}

.dashboard-user-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eaf4ff;
    color: #0d6efd;
    font-size: 24px;
}

.dashboard-user-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

    .dashboard-user-info span {
        color: #8491a2;
        font-size: 12px;
        font-weight: 600;
    }

    .dashboard-user-info strong {
        color: #142b47;
        font-size: 16px;
        line-height: 1.3;
    }

    .dashboard-user-info small {
        color: #64748b;
        font-size: 13px;
        font-weight: 600;
    }

/* ==========================================================
   DASHBOARD MOBILE FINAL OVERRIDE
   MUST STAY AT END OF FILE
   ========================================================== */

@media screen and (max-width: 600px) {

    .dashboard-brand-hero {
        display: none !important;
    }

    .dashboard-user-strip {
        min-height: 0 !important;
        margin: 4px 0 7px !important;
        padding: 0 !important;
        gap: 6px !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .dashboard-user-icon {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        flex: 0 0 24px !important;
        border-radius: 7px !important;
        font-size: 13px !important;
    }

    .dashboard-user-info {
        flex: 1;
        flex-direction: row !important;
        align-items: center !important;
        gap: 5px !important;
    }

        .dashboard-user-info span {
            display: none !important;
        }

        .dashboard-user-info strong {
            font-size: 12px !important;
            line-height: 1.2 !important;
        }

        .dashboard-user-info small {
            font-size: 10px !important;
            white-space: nowrap;
        }

            .dashboard-user-info small::before {
                content: "• ";
                color: #94a3b8;
            }

    .dashboard-header.dashboard-overview-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        margin: 4px 0 8px !important;
    }

    .dashboard-overview-header h2 {
        font-size: 16px !important;
        line-height: 1.15 !important;
    }

    .dashboard-overview-header p {
        display: none !important;
    }

    .dashboard-period {
        padding: 4px 7px !important;
        border-radius: 6px !important;
        font-size: 10px !important;
    }
}

/* ==========================================================
   QUICK ACTIONS - MOBILE FINAL OVERRIDE
   ========================================================== */

@media (max-width: 600px) {

    .dashboard-panel:has(.dashboard-quick-actions) {
        padding: 12px;
    }

    .dashboard-quick-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

        .dashboard-quick-actions .dashboard-action-card {
            min-width: 0;
            min-height: 58px;
            padding: 8px 9px;
            gap: 7px;
            border-radius: 11px;
        }

        .dashboard-quick-actions .dashboard-action-icon {
            width: 31px;
            height: 31px;
            min-width: 31px;
            border-radius: 8px;
            font-size: 14px;
        }

        .dashboard-quick-actions .dashboard-action-content {
            min-width: 0;
            flex: 1;
        }

            .dashboard-quick-actions .dashboard-action-content strong {
                display: block;
                margin: 0;
                font-size: 11.5px;
                font-weight: 700;
                line-height: 1.15;
            }

            /* Hide description on mobile */
            .dashboard-quick-actions .dashboard-action-content span {
                display: none !important;
            }

        .dashboard-quick-actions .dashboard-action-arrow {
            margin-left: auto;
            flex-shrink: 0;
            font-size: 11px;
        }

    .dashboard-panel:has(.dashboard-quick-actions)
    .dashboard-panel-header span {
        display: none;
    }

    .dashboard-panel:has(.dashboard-quick-actions)
    .dashboard-panel-header {
        margin-bottom: 9px;
    }

        .dashboard-panel:has(.dashboard-quick-actions)
        .dashboard-panel-header h3 {
            margin-bottom: 0;
            font-size: 16px;
        }
}

/* =========================================================
   ATTENDANCE MOBILE ULTRA-COMPACT LAYOUT & FIXES
   ========================================================= */

/* 1. Mobile Cards Container Padding
   Floating Save Bar-er jonno niche 85px space blank rakha holo */
.attendance-mobile-cards {
    margin-top: 6px;
    padding-bottom: 85px !important;
    display: block;
}

.mobile-employee-list {
    margin-bottom: 15px !important;
}

/* 2. Compact Employee Card Styling */
.mobile-employee-row {
    background-color: #ffffff !important;
    border: 1px solid #dbe2ea !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    padding: 8px 10px !important;
    margin-bottom: 8px !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

    .mobile-employee-row.row-selected {
        border-color: #0d6efd !important;
        background-color: #f4f8ff !important;
    }

    /* 3. Badge Visibility Fix ("New" & "Saved") */
    .mobile-employee-row .badge.bg-success-subtle {
        background-color: #d1e7dd !important;
        color: #0f5132 !important;
        border: 1px solid #badbcc !important;
    }

    .mobile-employee-row .badge.bg-warning-subtle {
        background-color: #fff3cd !important;
        color: #664d03 !important;
        border: 1px solid #ffe69c !important;
    }

/* 4. Circle Chip Buttons (P, A, H, OFF) */
.status-chip-container {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.chip-btn {
    flex: 1;
    height: 38px;
    border-radius: 20px;
    border: 1.5px solid #dee2e6;
    background-color: #ffffff;
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease-in-out;
}

/* P - Present (Green) */
.chip-p {
    color: #198754;
    border-color: #198754;
}

    .chip-p.active {
        background-color: #198754 !important;
        color: #ffffff !important;
    }

/* A - Absent (Red) */
.chip-a {
    color: #dc3545;
    border-color: #dc3545;
}

    .chip-a.active {
        background-color: #dc3545 !important;
        color: #ffffff !important;
    }

/* H - Half Day (Orange) */
.chip-h {
    color: #d97706;
    border-color: #d97706;
}

    .chip-h.active {
        background-color: #d97706 !important;
        color: #ffffff !important;
    }

/* OFF - Weekly Off (Purple) */
.chip-off {
    color: #6f42c1;
    border-color: #6f42c1;
}

    .chip-off.active {
        background-color: #6f42c1 !important;
        color: #ffffff !important;
    }

/* 5. Floating Bottom Save Bar - Overlap Fix */
.attendance-save-floating {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1050 !important;
    background: #ffffff !important;
    border-top: 2px solid #cbd5e1 !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18) !important;
}

    .attendance-save-floating .selected-save-info {
        font-size: 0.8rem !important;
        color: #475569 !important;
        margin-bottom: 6px !important;
    }

    .attendance-save-floating button {
        font-size: 0.92rem !important;
        border-radius: 10px !important;
    }
/* Payable Amount and Badge Alignment in Mobile Card */
.mobile-employee-row .text-success {
    color: #15803d !important; /* Dark Green */
}

.mobile-employee-row .badge {
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
}

    .mobile-employee-row .badge.bg-success-subtle {
        background-color: #d1e7dd !important;
        color: #0f5132 !important;
        border: 1px solid #badbcc !important;
    }

    .mobile-employee-row .badge.bg-warning-subtle {
        background-color: #fff3cd !important;
        color: #664d03 !important;
        border: 1px solid #ffe69c !important;
    }

    /* ALL ALERT & MESSAGE CONTAINERS AUTO-SCROLL OFFSET */
    /* Class name ja-i hok, alert container thaklei scroll upore uthbe */
    .alert,
    [class*="-message-area"],
    [class*="-message"],
    .payroll-message-area,
    .user-message-area,
    .role-message-area,
    .attendance-message-area {
        scroll-margin-top: 180px !important;
    }

@media (max-width: 768px) {
    .alert,
    [class*="-message-area"],
    [class*="-message"],
    .payroll-message-area,
    .user-message-area,
    .role-message-area,
    .attendance-message-area {
        scroll-margin-top: 200px !important; /* Mobile WebView-er jonno aro upore scroll hobe */
    }

    .report-page .page-header {
        padding: 14px;
    }

    .report-page .summary-card {
        padding: 14px;
    }

    .report-page .mobile-report-card {
        padding: 14px 14px 14px 18px;
    }

    .report-page .payslip-header {
        margin: -14px -14px 0;
        padding: 16px 14px;
    }
}

/* =========================================================
   COMPACT STATS & ALERT STRIP (NATIVE LOOK)
   ========================================================= */

.compact-dashboard-strip {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

/* 1. CHIPS CONTAINER */
.stats-chips-container {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 2px;
}

    .stats-chips-container::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

.chip-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.74rem;
    white-space: nowrap;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.chip-present {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

    .chip-present .chip-dot {
        background: #22c55e;
    }

.chip-late {
    background: #fffbeeb;
    border-color: #fde68a;
    color: #92400e;
}

    .chip-late .chip-dot {
        background: #f59e0b;
    }

.chip-absent {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

    .chip-absent .chip-dot {
        background: #ef4444;
    }

.chip-label {
    font-weight: 600;
    opacity: 0.85;
}

.chip-item strong {
    font-weight: 800;
}

/* 2. SMART ALERT BANNER */
.smart-alert-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: linear-gradient(90deg, #eff6ff 0%, #f5f3ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #1e40af;
}

.alert-icon {
    font-size: 0.95rem;
}

.alert-text {
    line-height: 1.25;
}

    .alert-text strong {
        color: #1d4ed8;
    }

@media (max-width: 600px) {
    .stats-chips-container {
        justify-content: space-between;
    }

    .chip-item {
        flex: 1;
        justify-content: center;
        padding: 5px 8px;
        font-size: 0.70rem;
    }
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .desktop-table {
        display: none !important;
    }

    .mobile-card-list {
        display: flex !important;
    }

    .action-row {
        flex-direction: column;
    }

        .action-row .btn {
            width: 100%;
            min-height: 44px;
        }

    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   NATIVE MOBILE COMPACT REPORT OVERRIDES
   ========================================================= */

@media (max-width: 768px) {

    /* 1. Header Compact Overrides */
    .report-page .page-header {
        padding: 8px 12px !important;
        margin-bottom: 10px !important;
        border-radius: 10px !important;
    }

        .report-page .page-header h3 {
            font-size: 1.05rem !important;
            font-weight: 700 !important;
        }

    .report-page .page-subtitle {
        display: none !important; /* Subtitle hide kore space save kora holo */
    }

    /* 2. Filter Card Compact Layout */
    .report-page .filter-card {
        padding: 10px 12px !important;
        margin-bottom: 12px !important;
        border-radius: 10px !important;
    }

    .report-page .form-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Mobile-e Form 2-Column e ashbe */
        gap: 8px !important;
    }

    .report-page .form-group label {
        font-size: 0.68rem !important;
        margin-bottom: 3px !important;
    }

    .report-page .form-control {
        min-height: 36px !important;
        padding: 5px 8px !important;
        font-size: 0.80rem !important;
        border-radius: 8px !important;
    }

    .report-page .action-row {
        flex-direction: row !important;
        gap: 6px !important;
        margin-top: 10px !important;
    }

        .report-page .action-row .btn {
            flex: 1 !important;
            min-height: 36px !important;
            padding: 6px 8px !important;
            font-size: 0.78rem !important;
            border-radius: 8px !important;
        }

    /* 3. Summary Cards - Compact 2-Column Grid */
    .report-page .summary-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* Single list-er bodole 2 Column */
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .report-page .summary-card {
        padding: 8px 10px !important;
        border-radius: 9px !important;
        min-height: 52px !important;
    }

    .report-page .summary-label {
        font-size: 0.65rem !important;
        letter-spacing: 0.2px !important;
    }

    .report-page .summary-value {
        font-size: 0.95rem !important;
        margin-top: 2px !important;
    }

    /* 4. Mobile Cards Ultra Compact */
    .mobile-report-card {
        padding: 10px 12px !important;
        border-radius: 10px !important;
        margin-bottom: 8px !important;
    }

    .mobile-card-header {
        padding-bottom: 6px !important;
        margin-bottom: 6px !important;
    }

        .mobile-card-header strong {
            font-size: 0.85rem !important;
        }

    .mobile-data-grid {
        gap: 6px 10px !important;
    }

    .mobile-data-grid span {
        font-size: 0.65rem !important;
    }

    .mobile-data-grid strong {
        font-size: 0.78rem !important;
    }

    /* 1. Form Grid: Employee field-ke Full Width kora holo */
    .report-page .form-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    /* Employee Search Field Full Width Spanning */
    .report-page .employee-search-wrapper {
        grid-column: 1 / -1 !important; /* Puro width jure thakbe */
    }

    /* 2. Action Buttons & "Load Report" Single Line Fix */
    .report-page .action-row {
        display: flex !important;
        flex-direction: row !important;
        gap: 6px !important;
        margin-top: 10px !important;
    }

    .report-page .action-row .btn {
        flex: 1 !important;
        min-height: 38px !important;
        padding: 6px 4px !important;
        font-size: 0.72rem !important; /* Font-size adjust kora holo */
        font-weight: 700 !important;
        border-radius: 8px !important;
        white-space: nowrap !important; /* Text break hobe na */
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
    }

    /* Icon size adjustment inside buttons */
    .report-page .action-row .btn i {
        font-size: 0.85rem !important;
    }

    /* Action Row Layout Polish */
    .report-page .action-row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-top: 12px !important;
    }

    /* Primary Load Report Button - Full Width */
    .report-page .action-row .btn-primary {
        width: 100% !important;
        flex: 1 0 100% !important;
        min-height: 40px !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
    }

    /* Export Buttons (Excel & PDF) - Equal 2-Column Split */
    .report-page .action-row .btn-success,
    .report-page .action-row .btn-danger {
        flex: 1 1 calc(50% - 4px) !important;
        min-height: 38px !important;
        font-size: 0.80rem !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
    }

    /* Attendance Compact Mobile Card */
    .mobile-report-card {
        padding: 8px 12px !important;
        border-radius: 10px !important;
        margin-bottom: 8px !important;
        background: #ffffff !important;
        border: 1px solid var(--report-border) !important;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
    }

    .mobile-card-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-bottom: 6px !important;
        margin-bottom: 6px !important;
        border-bottom: 1px dashed #e2e8f0 !important;
    }

        .mobile-card-header strong {
            font-size: 0.85rem !important;
            color: #0f172a !important;
            line-height: 1.2 !important;
        }

        .mobile-card-header .text-muted {
            font-size: 0.70rem !important;
            margin-top: 1px !important;
        }

    .employee-code-badge {
        font-size: 0.70rem !important;
        font-weight: 700 !important;
        color: var(--report-primary) !important;
        background: var(--report-primary-soft) !important;
        padding: 2px 7px !important;
        border-radius: 6px !important;
    }

    /* 3-Column Native Compact Data Grid */
    .mobile-data-grid.compact-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* 3-Column horizontal row */
        gap: 6px !important;
        align-items: center !important;
    }

        .mobile-data-grid.compact-grid span {
            font-size: 0.62rem !important;
            font-weight: 700 !important;
            color: var(--report-text-muted) !important;
            text-transform: uppercase !important;
        }

        .mobile-data-grid.compact-grid strong {
            font-size: 0.80rem !important;
            font-weight: 700 !important;
            margin-top: 2px !important;
        }

    /* Status Badge Size Fix */
    .mobile-data-grid .report-status {
        padding: 2px 6px !important;
        font-size: 0.65rem !important;
        border-radius: 12px !important;
    }

    /* Compact Remarks strip */
    .mobile-card-remarks {
        margin-top: 6px !important;
        padding-top: 4px !important;
        border-top: 1px solid #f1f5f9 !important;
        font-size: 0.68rem !important;
        color: #64748b !important;
    }

    .mobile-card-remarks span {
        font-weight: 700 !important;
    }

    /* Payslip Container & Cards */
    .payslip-wrapper {
        padding: 12px !important;
        border-radius: 12px !important;
        background: #ffffff !important;
    }

    .payslip-header {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-bottom: 10px !important;
        margin-bottom: 10px !important;
    }

        .payslip-header h4 {
            font-size: 1rem !important;
            font-weight: 700 !important;
        }

    .payslip-period {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
    }

    /* 2-Column Info Grid for Mobile */
    .payslip-info-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

        .payslip-info-grid > div {
            padding: 6px 8px !important;
            border-radius: 8px !important;
            background: #f8fafc !important;
            border: 1px solid #e2e8f0 !important;
        }

        .payslip-info-grid span {
            font-size: 0.62rem !important;
            color: #64748b !important;
        }

        .payslip-info-grid strong {
            font-size: 0.78rem !important;
        }

    /* Section Headers */
    .section-title {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        margin-top: 12px !important;
        margin-bottom: 8px !important;
    }

    /* Adjustments 3-Column Grid on Mobile */
    .payslip-value-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .payslip-value-card {
        padding: 6px 8px !important;
        border-radius: 8px !important;
    }

        .payslip-value-card span {
            font-size: 0.60rem !important;
            line-height: 1.1 !important;
        }

        .payslip-value-card strong {
            font-size: 0.78rem !important;
        }

    /* Final Card Grid */
    .payslip-final-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        margin-top: 12px !important;
    }

    .payslip-final-card {
        padding: 10px !important;
        border-radius: 10px !important;
    }

    .payslip-final-card span {
        font-size: 0.68rem !important;
    }

    .payslip-final-card strong {
        font-size: 1rem !important;
    }

    /* =========================================================
   COMPACT EARNINGS LIST (NATIVE MOBILE LOOK)
   ========================================================= */

    .earnings-compact-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: #ffffff;
        border: 1px solid var(--report-border);
        border-radius: 12px;
        padding: 8px;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    }

    .earning-item-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 10px;
        background: #f8fafc;
        border: 1px solid #edf2f7;
        border-radius: 8px;
    }

    .earning-info {
        display: flex;
        flex-direction: column;
    }

        .earning-info strong {
            font-size: 0.82rem;
            color: #1e293b;
            font-weight: 700;
        }

        .earning-info span {
            font-size: 0.68rem;
            color: #64748b;
            font-weight: 600;
        }

    .earning-amount {
        font-size: 0.88rem;
        font-weight: 800;
        color: #0f172a;
        text-align: right;
    }

    /* Gross Salary Banner Strip */
    .gross-total-strip {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px;
        margin-top: 4px;
        background: linear-gradient(135deg, #0756a5, #087fd4);
        color: #ffffff;
        border-radius: 8px;
    }

    .gross-total-strip span {
        font-size: 0.80rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.4px;
    }

    .gross-total-strip strong {
        font-size: 1rem;
        font-weight: 800;
    }
    /* Form Control Width Overflow Fix */
    .report-page .form-control {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 5px 6px !important; /* Left/Right padding baseline reduced */
        font-size: 0.78rem !important; /* Long month name like October fit korbe */
        min-height: 36px !important;
        border-radius: 8px !important;
    }

    /* Input Type Month/Date Calendar Icon Margin Correction for Webkit Browsers */
    .report-page input[type="month"]::-webkit-calendar-picker-indicator,
    .report-page input[type="date"]::-webkit-calendar-picker-indicator {
        margin-left: 2px !important;
        margin-right: 0 !important;
        padding: 0 !important;
        cursor: pointer;
    }
}
