/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */

.admin-dashboard {
    min-height: 100vh;
    padding: 24px;
    background: #f5f7fb;
}


/* ============================================================
   HEADER
   ============================================================ */

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: #172033;
}

    .dashboard-title i {
        color: #0d6efd;
    }

.dashboard-subtitle {
    margin-top: 5px;
    color: #7b8495;
    font-size: 14px;
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.year-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e3e7ef;
    border-radius: 10px;
    padding: 5px 10px;
}

    .year-selector i {
        color: #667085;
    }

    .year-selector .form-select {
        width: 110px;
        border: 0;
        box-shadow: none;
        font-weight: 600;
    }


/* ============================================================
   KPI GRID
   ============================================================ */

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}


/* ============================================================
   KPI CARD
   ============================================================ */

.admin-kpi-card {
    position: relative;
    min-height: 130px;
    display: flex;
    align-items: center;
    padding: 24px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #edf0f5;
    box-shadow: 0 4px 15px rgba(16, 24, 40, 0.04);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .admin-kpi-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(16, 24, 40, 0.08);
    }


    /* LEFT ACCENT */

    .admin-kpi-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: #0d6efd;
    }


/* ============================================================
   ICON
   ============================================================ */

.kpi-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    border-radius: 14px;
    font-size: 20px;
}

.kpi-content {
    min-width: 0;
}

.kpi-label {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.kpi-value {
    margin-top: 3px;
    color: #101828;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 800;
}

.kpi-description {
    margin-top: 5px;
    color: #98a2b3;
    font-size: 12px;
}


/* ============================================================
   KPI COLORS
   ============================================================ */

.admin-kpi-card.blue::before {
    background: #0d6efd;
}

.admin-kpi-card.blue .kpi-icon {
    background: #eaf2ff;
    color: #0d6efd;
}


.admin-kpi-card.green::before {
    background: #12b76a;
}

.admin-kpi-card.green .kpi-icon {
    background: #e9f9f1;
    color: #12b76a;
}


.admin-kpi-card.red::before {
    background: #f04438;
}

.admin-kpi-card.red .kpi-icon {
    background: #fff0ef;
    color: #f04438;
}


.admin-kpi-card.purple::before {
    background: #7f56d9;
}

.admin-kpi-card.purple .kpi-icon {
    background: #f4efff;
    color: #7f56d9;
}


.admin-kpi-card.teal::before {
    background: #00a88f;
}

.admin-kpi-card.teal .kpi-icon {
    background: #e8faf7;
    color: #00a88f;
}


.admin-kpi-card.orange::before {
    background: #f79009;
}

.admin-kpi-card.orange .kpi-icon {
    background: #fff5e6;
    color: #f79009;
}


.admin-kpi-card.dark::before {
    background: #344054;
}

.admin-kpi-card.dark .kpi-icon {
    background: #f1f3f5;
    color: #344054;
}


.admin-kpi-card.yellow::before {
    background: #fdb022;
}

.admin-kpi-card.yellow .kpi-icon {
    background: #fff8e6;
    color: #e99400;
}


/* ============================================================
   SUMMARY CARD
   ============================================================ */

.admin-summary-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #edf0f5;
    box-shadow: 0 4px 15px rgba(16, 24, 40, 0.04);
    overflow: hidden;
}


/* ============================================================
   SUMMARY HEADER
   ============================================================ */

.summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid #edf0f5;
}

    .summary-header h4 {
        margin: 0;
        font-size: 17px;
        font-weight: 700;
        color: #172033;
    }

    .summary-header p {
        margin: 5px 0 0;
        color: #98a2b3;
        font-size: 13px;
    }

.employee-count-badge {
    padding: 7px 12px;
    border-radius: 20px;
    background: #eaf2ff;
    color: #0d6efd;
    font-size: 12px;
    font-weight: 700;
}


/* ============================================================
   TOOLBAR
   ============================================================ */

.summary-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 20px;
    background: #fafbfc;
    border-bottom: 1px solid #edf0f5;
}

.employee-search {
    position: relative;
    width: 300px;
}

    .employee-search i {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        color: #98a2b3;
        z-index: 2;
    }

    .employee-search input {
        height: 38px;
        padding-left: 38px;
        border-radius: 9px;
        border: 1px solid #dfe3ea;
        font-size: 13px;
    }

        .employee-search input:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 3px rgba(13, 110, 253, .08);
        }

.summary-info {
    color: #98a2b3;
    font-size: 12px;
}


/* ============================================================
   TABLE
   ============================================================ */

.employee-summary-table {
    margin: 0;
    min-width: 1250px;
}

    .employee-summary-table thead th {
        padding: 13px 10px;
        background: #f8f9fb;
        color: #667085;
        border-bottom: 1px solid #dfe3ea;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        white-space: nowrap;
    }

    .employee-summary-table tbody td {
        padding: 14px 10px;
        vertical-align: middle;
        border-bottom: 1px solid #edf0f5;
        font-size: 13px;
        color: #344054;
    }

    .employee-summary-table tbody tr {
        transition: background .15s ease;
    }

        .employee-summary-table tbody tr:hover {
            background: #f8faff;
        }

        .employee-summary-table tbody tr:last-child td {
            border-bottom: 0;
        }


/* ============================================================
   EMPLOYEE
   ============================================================ */

.employee-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.employee-mini-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eaf2ff;
    color: #0d6efd;
    font-size: 12px;
    font-weight: 700;
}

.employee-name {
    color: #172033;
    font-weight: 600;
    font-size: 13px;
}

.employee-email {
    margin-top: 2px;
    color: #98a2b3;
    font-size: 11px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ============================================================
   EMPLOYEE ID
   ============================================================ */

.employee-id {
    color: #172033;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}


/* ============================================================
   STATUS
   ============================================================ */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

    .status-badge.active {
        background: #e9f9f1;
        color: #087443;
    }

    .status-badge.inactive {
        background: #f2f4f7;
        color: #667085;
    }

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}


/* ============================================================
   NUMBERS
   ============================================================ */

.table-number {
    font-weight: 600;
    color: #344054;
}

.present-number {
    color: #12b76a;
    font-weight: 700;
}

.absent-number {
    color: #f04438;
    font-weight: 700;
}

.overtime-number {
    color: #f79009;
    font-weight: 700;
}


/* ============================================================
   ATTENDANCE
   ============================================================ */

.attendance-column {
    min-width: 145px;
}

.attendance-value {
    margin-bottom: 5px;
    font-size: 12px;
    color: #172033;
}

.attendance-progress {
    width: 100%;
    height: 5px;
    background: #eaecf0;
    border-radius: 10px;
    overflow: hidden;
}

.attendance-progress-bar {
    height: 100%;
    min-width: 2px;
    border-radius: 10px;
    transition: width .4s ease;
}

    .attendance-progress-bar.excellent {
        background: #12b76a;
    }

    .attendance-progress-bar.good {
        background: #0d6efd;
    }

    .attendance-progress-bar.warning {
        background: #f79009;
    }

    .attendance-progress-bar.poor {
        background: #f04438;
    }


/* ============================================================
   LATE
   ============================================================ */

.late-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    background: #fff4d6;
    color: #b54708;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.no-late {
    color: #98a2b3;
}


/* ============================================================
   EMPTY
   ============================================================ */

.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #98a2b3;
}

    .empty-state i {
        margin-bottom: 12px;
        font-size: 34px;
    }

    .empty-state h5 {
        margin-bottom: 5px;
        color: #344054;
        font-size: 15px;
    }

    .empty-state p {
        margin: 0;
        font-size: 13px;
    }


/* ============================================================
   LOADING
   ============================================================ */

.dashboard-loading {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #667085;
    font-size: 14px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {

    .admin-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 768px) {

    .admin-dashboard {
        padding: 15px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-actions {
        justify-content: flex-start;
    }

    .admin-kpi-grid {
        grid-template-columns: 1fr;
    }

    .summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .summary-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .employee-search {
        width: 100%;
    }
}
/* =========================================================
   EMPLOYEE DASHBOARD
   ========================================================= */

.employee-dashboard-page {
    width: 100%;
    padding: 24px;
    background: #f7f8fb;
    min-height: 100vh;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.employee-page-header {
    margin-bottom: 20px;
}

.page-header-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: #2563eb;
    font-size: 18px;
}

.page-header-content h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #172033;
}

.page-header-content p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #7a8494;
}


/* =========================================================
   EMPLOYEE HEADER
   ========================================================= */

.employee-header-card {
    background: #ffffff;
    border: 1px solid #e8ebf0;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.employee-profile-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.employee-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.employee-avatar {
    width: 64px;
    height: 64px;
    min-width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient( 135deg, #2563eb, #4f46e5 );
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.20);
}

.employee-info {
    min-width: 0;
}

    .employee-info h2 {
        margin: 0 0 8px;
        font-size: 20px;
        font-weight: 700;
        color: #172033;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.employee-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: #6b7280;
    font-size: 13px;
}

    .employee-meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .employee-meta i {
        color: #64748b;
    }


/* =========================================================
   EMPLOYEE STATUS
   ========================================================= */

.employee-header-right {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
}

.employee-status-wrapper {
    display: flex;
    align-items: center;
}

.employee-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

    .employee-status-badge.active {
        background: #ecfdf3;
        color: #15803d;
    }

    .employee-status-badge.inactive {
        background: #f1f5f9;
        color: #64748b;
    }

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.employee-id-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.employee-id-label {
    font-size: 11px;
    color: #8a94a6;
    font-weight: 500;
}

.employee-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 7px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   YEAR FILTER
   ========================================================= */

.dashboard-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.year-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.year-filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    padding-left: 4px;
    white-space: nowrap;
}

    .year-filter-label i {
        color: #2563eb;
    }

.year-select {
    width: 125px !important;
    min-width: 125px;
    height: 36px;
    border: 1px solid #dfe4ea;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background-color: #ffffff;
    padding: 6px 30px 6px 10px;
    cursor: pointer;
}

    .year-select:focus {
        border-color: #93c5fd;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
    }


/* =========================================================
   KPI GRID
   ========================================================= */

.employee-kpi-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.dashboard-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e8ebf0;
    border-radius: 13px;
    min-height: 135px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .dashboard-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    }

    .dashboard-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: #2563eb;
    }

    .dashboard-card .kpi-card-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        margin-bottom: 13px;
    }

    .dashboard-card .kpi-content {
        display: flex;
        flex-direction: column;
    }

.kpi-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #7b8494;
    font-weight: 700;
    margin-bottom: 4px;
}

.kpi-value {
    font-size: 23px;
    line-height: 1.2;
    font-weight: 750;
    color: #172033;
}

.kpi-subtitle {
    margin-top: 5px;
    font-size: 11px;
    color: #98a1af;
}


/* KPI COLORS */

.kpi-working::before {
    background: #2563eb;
}

.kpi-working .kpi-card-icon {
    background: #eff6ff;
    color: #2563eb;
}


.kpi-present::before {
    background: #16a34a;
}

.kpi-present .kpi-card-icon {
    background: #ecfdf3;
    color: #16a34a;
}


.kpi-absent::before {
    background: #dc2626;
}

.kpi-absent .kpi-card-icon {
    background: #fef2f2;
    color: #dc2626;
}


.kpi-hours::before {
    background: #7c3aed;
}

.kpi-hours .kpi-card-icon {
    background: #f5f3ff;
    color: #7c3aed;
}


.kpi-overtime::before {
    background: #ea580c;
}

.kpi-overtime .kpi-card-icon {
    background: #fff7ed;
    color: #ea580c;
}


.kpi-attendance::before {
    background: #0891b2;
}

.kpi-attendance .kpi-card-icon {
    background: #ecfeff;
    color: #0891b2;
}

.employee-kpi-grid .dashboard-card {
    padding: 18px;
}


/* =========================================================
   SECTION CARDS
   ========================================================= */

.dashboard-section-card {
    background: #ffffff;
    border: 1px solid #e8ebf0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
}

.section-header {
    padding: 17px 20px;
    border-bottom: 1px solid #edf0f3;
    background: #ffffff;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 15px;
}

.section-title h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #172033;
}

.section-title span {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: #8a94a6;
}

.section-body {
    padding: 20px;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.summary-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 11px;
    border: 1px solid #edf0f3;
}

.summary-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 15px;
}

.summary-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #7b8494;
}

.summary-value {
    display: block;
    margin-top: 3px;
    font-size: 18px;
    font-weight: 750;
    color: #172033;
}

    .summary-value small {
        font-size: 10px;
        font-weight: 600;
        color: #8a94a6;
    }

.summary-subtitle {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    color: #9aa3b1;
}


/* SUMMARY COLORS */

.late-box {
    background: #fffbeb;
    border-color: #fde68a;
}

    .late-box .summary-icon {
        background: #fef3c7;
        color: #d97706;
    }


.undertime-box {
    background: #fef2f2;
    border-color: #fecaca;
}

    .undertime-box .summary-icon {
        background: #fee2e2;
        color: #dc2626;
    }


.break-box {
    background: #eff6ff;
    border-color: #bfdbfe;
}

    .break-box .summary-icon {
        background: #dbeafe;
        color: #2563eb;
    }


/* =========================================================
   SALARY
   ========================================================= */

.salary-icon {
    background: #ecfdf5;
    color: #16a34a;
}

.salary-label {
    display: block;
    font-size: 12px;
    color: #7b8494;
    margin-bottom: 5px;
}

.salary-value {
    display: block;
    font-size: 27px;
    font-weight: 750;
    color: #172033;
}

.salary-level {
    display: inline-block;
    margin-top: 9px;
    padding: 5px 9px;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
}

.salary-increase {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    background: #ecfdf5;
    color: #15803d;
    font-size: 12px;
}

    .salary-increase i {
        font-size: 13px;
    }

    .salary-increase span {
        width: 100%;
        color: #6b7280;
        font-size: 11px;
    }


/* =========================================================
   TABLES
   ========================================================= */

.dashboard-table {
    margin: 0;
    font-size: 13px;
}

    .dashboard-table thead th {
        padding: 12px 16px;
        background: #f8fafc;
        border-bottom: 1px solid #e5e7eb;
        color: #64748b;
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .035em;
        white-space: nowrap;
    }

    .dashboard-table tbody td {
        padding: 13px 16px;
        border-color: #f1f3f5;
        color: #475569;
        vertical-align: middle;
    }

    .dashboard-table tbody tr {
        transition: background .15s ease;
    }

        .dashboard-table tbody tr:hover {
            background: #f8fafc;
        }

    .dashboard-table .badge {
        border-radius: 6px;
        padding: 5px 8px;
        font-size: 10px;
    }


/* =========================================================
   EMPTY STATE
   ========================================================= */

.dashboard-empty-state {
    padding: 70px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e8ebf0;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
}

.empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 15px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 22px;
}

.dashboard-empty-state h4 {
    margin-bottom: 6px;
    font-size: 17px;
    color: #172033;
}

.dashboard-empty-state p {
    margin: 0;
    font-size: 13px;
    color: #8a94a6;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1400px) {

    .employee-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 992px) {

    .employee-dashboard-page {
        padding: 18px;
    }

    .employee-profile-section {
        align-items: flex-start;
        flex-direction: column;
    }

    .employee-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .employee-id-wrapper {
        align-items: flex-start;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {

    .employee-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-toolbar {
        justify-content: flex-start;
    }

    .employee-info h2 {
        max-width: 250px;
    }
}


@media (max-width: 576px) {

    .employee-dashboard-page {
        padding: 12px;
    }

    .employee-page-header {
        margin-bottom: 14px;
    }

    .page-header-content h1 {
        font-size: 20px;
    }

    .employee-header-card {
        padding: 16px;
    }

    .employee-profile {
        align-items: flex-start;
    }

    .employee-avatar {
        width: 52px;
        height: 52px;
        min-width: 52px;
        border-radius: 13px;
        font-size: 17px;
    }

    .employee-info h2 {
        font-size: 17px;
    }

    .employee-meta {
        flex-direction: column;
        gap: 5px;
    }

    .employee-header-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .employee-id-wrapper {
        align-items: flex-start;
    }

    .employee-kpi-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dashboard-card {
        min-height: auto;
    }

    .year-filter {
        width: 100%;
        justify-content: space-between;
    }

    .year-select {
        width: 120px !important;
        min-width: 120px;
    }

    .section-body {
        padding: 15px;
    }
}