:root {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --panel-soft: #edf3ff;
    --ink: #15304f;
    --muted: #6c7a89;
    --line: #dbe4f0;
    --accent: #0d6efd;
    --accent-dark: #0a4db5;
    --success-soft: #daf5e8;
    --warning-soft: #fff1d6;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top left, #eaf2ff, #f6f8fc 40%, #edf1f7 100%);
    color: var(--ink);
}

.auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #8aa9d9 0%, #92b0dc 48%, #b9c9ea 100%);
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow: hidden;
}

.auth-card {
    width: 100%;
    max-width: 1120px;
    border: 0;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(21, 48, 79, 0.18);
}

.auth-split-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 0;
    height: min(82vh, 720px);
    background: #fff;
}

.auth-visual {
    position: relative;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.08) 0 10%, transparent 11%),
        radial-gradient(circle at 72% 72%, rgba(255, 255, 255, 0.08) 0 12%, transparent 13%),
        linear-gradient(135deg, #203a8a 0%, #273f96 48%, #1f3180 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    overflow: hidden;
}

.auth-visual::before,
.auth-visual::after {
    content: "";
    position: absolute;
    inset: auto;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-visual::before {
    width: 460px;
    height: 460px;
    top: 52px;
    left: -120px;
}

.auth-visual::after {
    width: 620px;
    height: 620px;
    bottom: -220px;
    right: -220px;
}

.auth-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 35%),
        radial-gradient(circle at 65% 20%, rgba(255, 255, 255, 0.05), transparent 28%);
    mix-blend-mode: screen;
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    max-width: 380px;
}

.auth-visual-mark {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    font-size: 1.65rem;
    margin-bottom: 22px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.auth-visual h1 {
    font-size: clamp(2.25rem, 3.6vw, 3.8rem);
    line-height: 0.92;
    letter-spacing: 0.02em;
    margin: 0 0 16px;
    font-weight: 800;
}

.auth-visual p {
    font-size: 0.98rem;
    max-width: 320px;
    color: rgba(255, 255, 255, 0.84);
    margin: 0;
}

.auth-form-panel {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 30px;
}

.auth-form-shell {
    width: 100%;
    max-width: 330px;
}

.auth-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: #eff4ff;
    color: #203a8a;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.auth-input {
    border-radius: 12px;
    border-color: #d7e0ef;
    min-height: 48px;
    box-shadow: none;
}

.auth-input:focus {
    border-color: rgba(32, 58, 138, 0.45);
    box-shadow: 0 0 0 0.25rem rgba(32, 58, 138, 0.1);
}

.auth-submit {
    min-height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #203a8a, #2e4aa3);
    border-color: #203a8a;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.auth-submit:hover {
    background: linear-gradient(135deg, #1b3278, #27408f);
    border-color: #1b3278;
}

.auth-footnote {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.auth-footnote code {
    background: #eef4ff;
    color: #203a8a;
    padding: 2px 6px;
    border-radius: 6px;
}

@media (max-width: 991px) {
    .auth-wrapper {
        padding: 16px;
    }

    .auth-card {
        max-width: 900px;
    }

    .auth-split-card {
        grid-template-columns: 1fr;
        min-height: auto;
        height: auto;
    }

    .auth-visual {
        min-height: 220px;
        padding: 24px;
        text-align: center;
    }

    .auth-visual-mark {
        width: 62px;
        height: 62px;
        border-radius: 20px;
        margin-bottom: 18px;
    }

    .auth-visual h1 {
        font-size: clamp(1.9rem, 4.2vw, 3rem);
        margin-bottom: 12px;
    }

    .auth-visual p {
        margin-inline: auto;
        max-width: 300px;
    }

    .auth-form-panel {
        padding: 24px 24px 22px;
    }

    .auth-form-shell {
        max-width: 350px;
    }
}

@media (max-width: 575.98px) {
    .auth-wrapper {
        padding: 12px;
        align-items: stretch;
    }

    .auth-card {
        max-width: 100%;
        border-radius: 18px;
    }

    .auth-split-card {
        display: block;
        height: auto;
    }

    .auth-visual {
        display: none;
    }

    .auth-form-panel {
        padding: 24px 18px 22px;
    }

    .auth-form-shell {
        max-width: 100%;
    }

    .auth-mark {
        padding: 8px 14px;
        font-size: 0.78rem;
    }

    .auth-input,
    .auth-submit {
        min-height: 46px;
        border-radius: 11px;
    }

    .auth-footnote {
        margin-top: 14px;
        font-size: 0.84rem;
    }
}

.app-shell {
    min-height: 100vh;
    display: flex;
    position: relative;
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #10345d 0%, #0e2743 100%);
    color: #fff;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.sidebar-overlay {
    display: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    font-weight: 700;
}

.brand h1 {
    font-size: 1rem;
    margin: 0;
}

.brand span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    margin-bottom: 8px;
    padding: 12px 14px;
}

.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.sidebar-nav .nav-link i {
    margin-right: 10px;
}

.sidebar-user {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.sidebar-user > div {
    min-width: 0;
    flex: 1 1 auto;
}

.sidebar-user strong,
.sidebar-user .text-muted {
    display: block;
    word-break: break-word;
}

.sidebar-user .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.sidebar-user .btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.sidebar-user .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.sidebar-user .btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.sidebar-user .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.main-content {
    flex: 1;
    padding: 24px;
    min-width: 0;
}

.topbar {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(219, 228, 240, 0.8);
    border-radius: 22px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    margin-bottom: 24px;
}

.topbar-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sidebar-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border-color: rgba(13, 110, 253, 0.18);
    background: #fff;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(21, 48, 79, 0.08);
}

.sidebar-toggle:hover {
    background: #f7faff;
    color: #0a58ca;
}

.topbar h2 {
    margin: 0;
    font-size: 1.4rem;
}

.topbar-pill {
    background: var(--panel-soft);
    color: var(--accent-dark);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
}

.content-area {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card,
.panel-card {
    background: linear-gradient(135deg, var(--panel) 0%, #f9fbff 50%, #f0f4ff 100%);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(17, 39, 71, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover,
.panel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(17, 39, 71, 0.1);
}

.stat-card .label {
    color: var(--muted);
    font-size: 0.92rem;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 8px;
}

.soft-success {
    background: var(--success-soft);
}

.soft-warning {
    background: var(--warning-soft);
}

.admin-user-stats {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.admin-user-stats .stat-card {
    min-height: 140px;
    padding: 20px;
}

.form-label {
    font-weight: 600;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: var(--accent);
    font-size: 1rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.08);
}

.btn-group .btn {
    border-radius: 10px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-group .btn:hover {
    transform: translateY(-1px);
}

.modal-content {
    border-radius: 18px;
    border: none;
    box-shadow: 0 24px 66px rgba(17, 39, 71, 0.14);
}

.modal-header {
    border-bottom: 1px solid rgba(219, 228, 240, 0.8);
    background: linear-gradient(135deg, #eef4ff, #f7f9ff);
}

.modal-footer {
    border-top: 1px solid rgba(219, 228, 240, 0.8);
    background: #f8f9ff;
}

.badge {
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 18px;
}

.table-responsive {
    border-radius: 18px;
}

.table thead th {
    white-space: nowrap;
}

.camera-box {
    background: #081725;
    border-radius: 18px;
    overflow: hidden;
}

.camera-box video,
.camera-box canvas,
.camera-preview {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}

.map-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--panel-soft);
    color: var(--accent-dark);
    border-radius: 999px;
    padding: 8px 14px;
}

.app-toast {
    min-width: 280px;
}

.pagination-wrapper {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.pagination-wrapper .btn {
    min-width: 42px;
    height: 38px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 8px 16px rgba(17, 39, 71, 0.06);
    padding-inline: 12px;
}

.pagination-wrapper .btn.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border-color: #0d6efd;
}

.pagination-wrapper .btn.btn-outline-primary {
    background: #fff;
    border-color: rgba(13, 110, 253, 0.22);
    color: #0d6efd;
}

.hero-banner {
    display: grid;
    grid-template-columns: 1.7fr 0.9fr;
    gap: 20px;
    background: linear-gradient(135deg, #163a63 0%, #215a96 52%, #4a8ac6 100%);
    color: #fff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 24px 50px rgba(16, 52, 93, 0.22);
}

.hero-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    opacity: 0.75;
    margin-bottom: 12px;
}

.hero-banner h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero-banner p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 0;
}

.hero-status-card {
    align-self: stretch;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.hero-status-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: rgba(255, 255, 255, 0.88);
}

.hero-status-meta span i {
    margin-right: 8px;
}

.dashboard-stats {
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.stat-accent-blue .stat-icon {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.stat-accent-amber .stat-icon {
    background: rgba(245, 159, 0, 0.15);
    color: #f59f00;
}

.stat-accent-cyan .stat-icon {
    background: rgba(13, 202, 240, 0.14);
    color: #0dcaf0;
}

.stat-accent-green .stat-icon {
    background: rgba(25, 135, 84, 0.14);
    color: #198754;
}

.stat-accent-slate .stat-icon {
    background: rgba(108, 117, 125, 0.14);
    color: #5c6773;
}

.stat-accent-red .stat-icon {
    background: rgba(220, 53, 69, 0.14);
    color: #dc3545;
}

.stat-accent-purple .stat-icon {
    background: rgba(102, 16, 242, 0.14);
    color: #6610f2;
}

.admin-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
}

.top-performers-list {
    display: grid;
    gap: 12px;
}

.performer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.performer-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.performer-rank {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.performer-info strong {
    display: block;
    color: #1e293b;
}

.performer-score {
    margin-left: auto;
}

.leave-requests-list {
    display: grid;
    gap: 16px;
}

.leave-request-item {
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.leave-request-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.activity-list {
    display: grid;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.activity-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
}

.activity-content {
    flex: 1;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state div {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.chart-wrap {
    position: relative;
    height: 200px;
    margin: 20px 0;
}

.trend-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
}

.trend-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #64748b;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 50%, #eef5ff 100%);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(17, 39, 71, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.quick-action-card:hover::before {
    left: 100%;
}

.quick-action-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(17, 39, 71, 0.12);
}

.quick-action-card i {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--panel-soft);
    color: var(--accent-dark);
    font-size: 1.25rem;
}

.quick-action-card strong,
.quick-action-card span {
    display: block;
}

.quick-action-card span {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 4px;
}

.dashboard-panel {
    padding: 24px;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.chart-wrap {
    position: relative;
    height: 260px;
}

.trend-legend,
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.9rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.calendar-weekdays {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.86rem;
    text-align: center;
}

.calendar-day {
    min-height: 54px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #f8fbff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--ink);
}

.calendar-day.muted {
    background: transparent;
    border-style: dashed;
    opacity: 0.35;
}

.calendar-day.today {
    outline: 2px solid #163a63;
    outline-offset: 2px;
}

.calendar-day.state-present {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.calendar-day.state-late {
    background: rgba(245, 159, 0, 0.14);
    color: #a16a00;
}

.calendar-day.state-leave {
    background: rgba(13, 202, 240, 0.14);
    color: #0c7f98;
}

.calendar-day.state-absent {
    background: rgba(220, 53, 69, 0.12);
    color: #b42335;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.activity-icon-primary {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.activity-icon-info {
    background: rgba(13, 202, 240, 0.14);
    color: #0c7f98;
}

.activity-icon-danger {
    background: rgba(220, 53, 69, 0.12);
    color: #b42335;
}

.activity-content {
    flex: 1;
}

.empty-state {
    min-height: 180px;
    display: grid;
    place-items: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 18px;
    background: #fbfdff;
}

.attendance-hero {
    background: linear-gradient(135deg, #0c3b63 0%, #0f5b8f 48%, #2f8db8 100%);
}

.attendance-stats {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.attendance-stats .stat-card {
    min-height: 120px;
    padding: 18px;
    border-radius: 16px;
}

.attendance-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.attendance-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.attendance-chip.is-complete {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.attendance-chip i {
    font-size: 1rem;
}

.attendance-steps {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.step-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.step-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: grid;
    place-items: center;
    font-weight: 600;
    flex-shrink: 0;
}

.attendance-live-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.live-card {
    padding: 20px;
    border-radius: 16px;
    background: #f8f9ff;
    border: 1px solid #e4edf7;
}

.live-card h5 {
    color: var(--ink);
    font-weight: 600;
}

.attendance-alert {
    border-radius: 12px;
    font-size: 0.9rem;
}

.location-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.metric-box {
    padding: 12px;
    border-radius: 12px;
    background: white;
    border: 1px solid #f0f2f5;
    text-align: center;
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.submit-panel {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
    border: 1px solid #d9e7fb;
}

.submit-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.submit-actions .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.submit-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-actions .btn:hover::before {
    left: 100%;
}

.submit-actions .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
}

.submit-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.submit-actions .btn-outline-primary {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 2px solid #007bff;
    color: #007bff;
}

.submit-actions .btn-outline-primary:hover {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #0056b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.summary-stack {
    display: grid;
    gap: 12px;
}

.summary-box {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fbfdff;
}

.timeline-card {
    padding: 20px;
    border-radius: 16px;
    background: #f8f9ff;
    border: 1px solid #e4edf7;
}

.timeline-list {
    display: grid;
    gap: 16px;
}

.timeline-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #cad6e6;
    margin-top: 5px;
    flex-shrink: 0;
    box-shadow: 0 0 0 6px rgba(202, 214, 230, 0.22);
}

.timeline-item.is-done .timeline-dot {
    background: #198754;
    box-shadow: 0 0 0 6px rgba(25, 135, 84, 0.14);
}

.proof-card {
    padding: 20px;
    border-radius: 16px;
    background: #f8f9ff;
    border: 1px solid #e4edf7;
}

.proof-card img {
    max-height: 200px;
    object-fit: cover;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 16px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.calendar-weekdays span {
    padding: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.9rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.calendar-days .calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.calendar-days .calendar-day.muted {
    background: transparent;
}

.calendar-days .calendar-day.state-present {
    background: #d1ecf1;
    color: #0c5460;
}

.calendar-days .calendar-day.state-late {
    background: #fff3cd;
    color: #664d03;
}

.calendar-days .calendar-day.state-absent {
    background: #f8d7da;
    color: #721c24;
}

.calendar-days .calendar-day.today {
    border: 2px solid var(--accent);
    font-weight: 700;
}

.calendar-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.calendar-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--muted);
}

.leave-hero {
    background: linear-gradient(135deg, #15435f 0%, #18768a 48%, #3aa6a4 100%);
}

.leave-panel {
    padding: 24px;
    display: grid;
    gap: 22px;
}

.leave-stats {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.leave-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.leave-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.leave-chip.is-alert {
    background: rgba(255, 193, 7, 0.18);
    border-color: rgba(255, 193, 7, 0.3);
    color: #fff7d1;
}

.leave-chip.is-complete {
    background: rgba(25, 135, 84, 0.18);
    border-color: rgba(25, 135, 84, 0.28);
    color: #d9f6e6;
}

.leave-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.leave-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.leave-status-filter {
    min-width: 220px;
}

.leave-status-filter .form-label {
    margin-bottom: 6px;
}

.leave-status-filter .form-select {
    min-height: 46px;
    border-radius: 14px;
    border-color: var(--line);
    box-shadow: none;
}

.leave-status-filter .form-select:focus {
    border-color: rgba(13, 110, 253, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.12);
}

.leave-toolbar-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.leave-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.leave-table-wrap {
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 16px 40px rgba(17, 39, 71, 0.05);
}

.leave-table {
    margin-bottom: 0;
}

.leave-table thead th {
    background: #f7faff;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.leave-table tbody td {
    padding-top: 16px;
    padding-bottom: 16px;
    vertical-align: middle;
}

.leave-row-pending {
    background: linear-gradient(90deg, rgba(255, 243, 205, 0.35), rgba(255, 255, 255, 0));
}

.leave-type-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
    color: var(--accent-dark);
    font-weight: 700;
    white-space: nowrap;
}

.leave-reason {
    max-width: 320px;
    color: var(--ink);
    line-height: 1.45;
}

.leave-status-badge {
    font-size: 0.82rem;
    padding-inline: 12px;
}

.leave-action-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.leave-action-group {
    display: grid;
    gap: 10px;
    min-width: 230px;
}

.leave-action-btn,
.leave-attachment-btn {
    border-radius: 12px;
    font-weight: 600;
}

.leave-action-btn {
    width: 100%;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 10px;
    font-size: 0.82rem;
    box-shadow: 0 8px 18px rgba(17, 39, 71, 0.06);
}

.leave-action-form:last-child {
    grid-template-columns: 1fr;
}

.leave-action-form:last-child .leave-action-btn {
    background: #fff5f5;
}

.leave-table .btn.btn-sm {
    box-shadow: none;
}

.leave-empty {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    background: linear-gradient(180deg, #fafcff 0%, #f4f8ff 100%);
    box-shadow: inset 0 0 0 1px rgba(219, 228, 240, 0.6);
}

.leave-empty i {
    font-size: 1.8rem;
    color: var(--accent);
}

.leave-empty small {
    display: block;
    margin-top: 4px;
}

.salary-hero {
    background: linear-gradient(135deg, #1e4620 0%, #2d7a3d 48%, #4ade80 100%);
}

.salary-period-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.salary-period-form .form-control,
.salary-period-form .form-select {
    min-height: 56px;
    border-radius: 16px;
    border-color: var(--line);
    box-shadow: none;
}

.salary-period-form .form-control:focus,
.salary-period-form .form-select:focus {
    border-color: rgba(13, 110, 253, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.12);
}

.salary-period-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.salary-period-actions .btn {
    border-radius: 14px;
    font-weight: 600;
}

.salary-slip-button {
    white-space: nowrap;
}

.salary-panel {
    padding: 24px;
    display: grid;
    gap: 22px;
}

.salary-stats {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.salary-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.salary-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.salary-chip.is-complete {
    background: rgba(25, 135, 84, 0.18);
    border-color: rgba(25, 135, 84, 0.28);
    color: #d9f6e6;
}

.salary-chip.is-alert {
    background: rgba(255, 193, 7, 0.18);
    border-color: rgba(255, 193, 7, 0.3);
    color: #fff7d1;
}

.salary-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.salary-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.salary-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.salary-filter-grid .form-control,
.salary-filter-grid .form-select {
    min-height: 56px;
    border-radius: 16px;
    border-color: var(--line);
    box-shadow: none;
}

.salary-filter-grid .form-control:focus,
.salary-filter-grid .form-select:focus {
    border-color: rgba(13, 110, 253, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.12);
}

.salary-filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.salary-filter-actions .btn {
    border-radius: 14px;
    font-weight: 600;
}

.salary-payroll-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
}

.salary-payroll-badge.is-complete {
    background: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.2);
    color: #198754;
}

.salary-payroll-badge.is-alert {
    background: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 193, 7, 0.24);
    color: #a16a00;
}

.salary-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.salary-table-wrap {
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 16px 40px rgba(17, 39, 71, 0.05);
}

.salary-table {
    margin-bottom: 0;
}

.salary-table thead th {
    background: #f7faff;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.salary-table tbody td {
    padding-top: 16px;
    padding-bottom: 16px;
    vertical-align: middle;
}

.salary-amount,
.salary-final {
    font-size: 1.02rem;
}

.salary-amount-sm {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--ink);
}

.salary-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--ink);
    background: #f7faff;
    border: 1px solid var(--line);
}

.salary-pill.is-present {
    background: rgba(25, 135, 84, 0.12);
    border-color: rgba(25, 135, 84, 0.18);
    color: #198754;
}

.salary-pill.is-late {
    background: rgba(255, 193, 7, 0.14);
    border-color: rgba(255, 193, 7, 0.2);
    color: #a16a00;
}

.salary-pill.is-leave {
    background: rgba(13, 202, 240, 0.12);
    border-color: rgba(13, 202, 240, 0.2);
    color: #0c7f98;
}

.salary-pill.is-absent {
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.salary-slip-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.salary-slip-action {
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.salary-empty {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    background: linear-gradient(180deg, #fafcff 0%, #f4f8ff 100%);
    box-shadow: inset 0 0 0 1px rgba(219, 228, 240, 0.6);
}

.salary-empty i {
    font-size: 1.8rem;
    color: var(--accent);
}

.salary-empty small {
    display: block;
    margin-top: 4px;
}

.reports-hero {
    background: linear-gradient(135deg, #7c2d12 0%, #dc2626 48%, #f87171 100%);
}

.reports-panel {
    padding: 24px;
    display: grid;
    gap: 22px;
}

.report-stats {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.report-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.report-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.report-chip.is-complete {
    background: rgba(25, 135, 84, 0.18);
    border-color: rgba(25, 135, 84, 0.28);
    color: #d9f6e6;
}

.reports-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.reports-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.reports-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.reports-filter-grid .form-control,
.reports-filter-grid .form-select {
    min-height: 56px;
    border-radius: 16px;
    border-color: var(--line);
    box-shadow: none;
}

.reports-filter-grid .form-control:focus,
.reports-filter-grid .form-select:focus {
    border-color: rgba(13, 110, 253, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.12);
}

.reports-filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.reports-filter-actions .btn,
.reports-toolbar-actions .btn {
    border-radius: 14px;
    font-weight: 600;
}

.report-summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-table-wrap {
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 16px 40px rgba(17, 39, 71, 0.05);
}

.report-table {
    margin-bottom: 0;
}

.report-table thead th {
    background: #f7faff;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.report-table tbody td {
    padding-top: 16px;
    padding-bottom: 16px;
    vertical-align: middle;
}

.report-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--ink);
    background: #f7faff;
    border: 1px solid var(--line);
}

.report-pill.is-present {
    background: rgba(25, 135, 84, 0.12);
    border-color: rgba(25, 135, 84, 0.18);
    color: #198754;
}

.report-pill.is-late {
    background: rgba(255, 193, 7, 0.14);
    border-color: rgba(255, 193, 7, 0.2);
    color: #a16a00;
}

.report-pill.is-leave {
    background: rgba(13, 202, 240, 0.12);
    border-color: rgba(13, 202, 240, 0.2);
    color: #0c7f98;
}

.report-pill.is-absent {
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.report-amount,
.report-final {
    font-size: 1.02rem;
}

.report-empty {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    background: linear-gradient(180deg, #fafcff 0%, #f4f8ff 100%);
    box-shadow: inset 0 0 0 1px rgba(219, 228, 240, 0.6);
}

.report-empty i {
    font-size: 1.8rem;
    color: var(--accent);
}

.report-empty small {
    display: block;
    margin-top: 4px;
}

.attendance-panel {
    padding: 24px;
    display: grid;
    gap: 22px;
}

.panel-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.attendance-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.attendance-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.attendance-toolbar-actions .btn,
.attendance-filter-actions .btn {
    border-radius: 14px;
    font-weight: 600;
}

.attendance-verify-btn,
.attendance-capture-btn,
.attendance-retake-btn,
.attendance-submit-btn {
    border-radius: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.attendance-verify-btn,
.attendance-capture-btn,
.attendance-checkin-btn {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border-color: #0d6efd;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.18);
}

.attendance-verify-btn:hover,
.attendance-capture-btn:hover,
.attendance-checkin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(13, 110, 253, 0.22);
}

.attendance-retake-btn,
.attendance-checkout-btn {
    border-color: rgba(13, 110, 253, 0.25);
    color: #0d6efd;
    background: #fff;
}

.attendance-retake-btn:hover,
.attendance-checkout-btn:hover {
    background: #f7faff;
    border-color: rgba(13, 110, 253, 0.4);
    color: #0a58ca;
    transform: translateY(-1px);
}

.attendance-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
}

.attendance-filter-grid .form-control,
.attendance-filter-grid .form-select {
    min-height: 56px;
    border-radius: 16px;
    border-color: var(--line);
    box-shadow: none;
}

.attendance-filter-grid .form-control:focus,
.attendance-filter-grid .form-select:focus {
    border-color: rgba(13, 110, 253, 0.55);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.12);
}

.attendance-filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.attendance-summary-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.summary-chip {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid var(--line);
}

.summary-chip strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
}

.attendance-table-wrap {
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 16px 40px rgba(17, 39, 71, 0.05);
}

.attendance-table {
    margin-bottom: 0;
}

.attendance-table thead th {
    background: #f7faff;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1;
}

.attendance-table tbody td {
    padding-top: 16px;
    padding-bottom: 16px;
    vertical-align: middle;
}

.employee-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.employee-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-weight: 700;
    color: var(--accent-dark);
    background: linear-gradient(180deg, #edf3ff 0%, #dbe8ff 100%);
    border: 1px solid #d5e2fa;
}

.time-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f7faff;
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 600;
    white-space: nowrap;
}

.time-pill i,
.location-cell i {
    color: var(--accent);
}

.location-cell {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--muted);
    max-width: 220px;
}

.attendance-status-badge {
    font-size: 0.82rem;
    padding-inline: 12px;
}

.attendance-photo-btn {
    border-radius: 12px;
    font-weight: 600;
}

.attendance-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.attendance-review-btn {
    border-radius: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.attendance-review-badge {
    border-radius: 999px;
    padding-inline: 12px;
    font-size: 0.8rem;
}

.attendance-review-note {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
    max-width: 220px;
}

.attendance-review-preview {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px;
    background: linear-gradient(180deg, #fafcff 0%, #f4f8ff 100%);
}

.attendance-review-preview-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.attendance-review-preview img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: 16px;
}

.attendance-empty {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    background: linear-gradient(180deg, #fafcff 0%, #f4f8ff 100%);
    box-shadow: inset 0 0 0 1px rgba(219, 228, 240, 0.6);
}

.attendance-empty i {
    font-size: 1.8rem;
    color: var(--accent);
}

.attendance-empty small {
    display: block;
    margin-top: 4px;
}


.attendance-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.attendance-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-weight: 600;
}

.attendance-chip.is-complete {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
    border-color: rgba(25, 135, 84, 0.2);
}

.attendance-steps {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
}

.step-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.step-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.step-card.is-complete {
    border-color: rgba(25, 135, 84, 0.22);
    background: rgba(25, 135, 84, 0.08);
}

.step-card.is-ready {
    border-color: rgba(13, 110, 253, 0.18);
}

.step-badge {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--panel-soft);
    color: var(--accent-dark);
    font-weight: 700;
    flex-shrink: 0;
}

.attendance-live-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.live-card,
.timeline-card,
.proof-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.attendance-alert {
    min-height: 72px;
    display: flex;
    align-items: center;
}

.location-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.metric-box {
    padding: 14px;
    border-radius: 16px;
    background: #f5f9ff;
    border: 1px solid #e4edf7;
}

.metric-label,
.summary-label {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.submit-panel {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
    border: 1px solid #d9e7fb;
}

.submit-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.submit-actions .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.submit-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-actions .btn:hover::before {
    left: 100%;
}

.submit-actions .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
}

.submit-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.submit-actions .btn-outline-primary {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 2px solid #007bff;
    color: #007bff;
}

.submit-actions .btn-outline-primary:hover {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #0056b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.attendance-live-grid .live-card {
    min-width: 0;
}

.attendance-live-grid .d-flex.justify-content-between.align-items-center.mb-3 {
    gap: 12px;
    flex-wrap: wrap;
}

.attendance-live-grid .d-flex.justify-content-between.align-items-center.mb-3 > .d-flex.gap-2 {
    flex-wrap: wrap;
}

.attendance-live-grid .d-flex.justify-content-between.align-items-center.mb-3 .btn {
    white-space: nowrap;
}

.camera-box {
    border-radius: 20px;
    overflow: hidden;
    background: #071525;
    border: 1px solid rgba(13, 110, 253, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.camera-box video {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.camera-preview {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
}

.submit-actions .btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.submit-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-actions .btn:hover::before {
    left: 100%;
}

.submit-actions .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
}

.submit-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.submit-actions .btn-outline-primary {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 2px solid #007bff;
    color: #007bff;
}

.submit-actions .btn-outline-primary:hover {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #0056b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.summary-stack {
    display: grid;
    gap: 12px;
}

.summary-box {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fbfdff;
}

.timeline-list {
    display: grid;
    gap: 16px;
}

.timeline-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #cad6e6;
    margin-top: 5px;
    flex-shrink: 0;
    box-shadow: 0 0 0 6px rgba(202, 214, 230, 0.22);
}

.timeline-item.is-done .timeline-dot {
    background: #198754;
    box-shadow: 0 0 0 6px rgba(25, 135, 84, 0.14);
}

.leave-preview-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f7fbff 0%, #eff7ff 100%);
    border: 1px solid #d7e6fb;
}

.leave-balance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.salary-breakdown-grid {
    display: grid;
    gap: 12px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.breakdown-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.breakdown-item.breakdown-total {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #93c5fd;
    font-weight: 600;
}

.breakdown-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}

.breakdown-label i {
    color: var(--accent);
    font-size: 1.1rem;
}

.breakdown-value {
    font-weight: 600;
    color: var(--ink);
}

.salary-insights {
    display: grid;
    gap: 16px;
}

.insight-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.insight-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.insight-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.insight-content {
    flex: 1;
}

.insight-label {
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.insight-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 2px;
}

.insight-desc {
    font-size: 0.85rem;
    color: var(--muted);
}

.salary-history-table .table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid var(--line);
    font-weight: 600;
    color: var(--ink);
}

.salary-history-table .table td {
    vertical-align: middle;
    border-bottom: 1px solid var(--line);
}

.salary-history-table .table-responsive {
    border-radius: 16px;
    overflow: hidden;
}

.salary-history-table .table {
    margin-bottom: 0;
}

.quick-stats-grid {
    display: grid;
    gap: 16px;
}

.quick-stat-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.quick-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.quick-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.quick-stat-content {
    flex: 1;
}

.quick-stat-label {
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.quick-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 2px;
}

.quick-stat-desc {
    font-size: 0.85rem;
    color: var(--muted);
}

.export-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.export-option-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 50%, #eef5ff 100%);
    border: 1px solid var(--line);
    box-shadow: 0 14px 32px rgba(17, 39, 71, 0.05);
    transition: all 0.3s ease;
}

.export-option-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(17, 39, 71, 0.1);
}

.export-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--panel-soft);
    color: var(--accent-dark);
    font-size: 1.25rem;
}

.export-content h5 {
    margin-bottom: 8px;
    color: var(--ink);
    font-weight: 600;
}

.export-content p {
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    .app-body {
        overflow-x: hidden;
    }

    .app-shell {
        flex-direction: row;
        overflow-x: hidden;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1045;
        height: 100vh;
        width: min(86vw, 320px);
        transform: translateX(-100%);
        box-shadow: 18px 0 40px rgba(0, 0, 0, 0.22);
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(7, 14, 26, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 1040;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .topbar-title-wrap {
        width: 100%;
    }

    .hero-banner {
        grid-template-columns: 1fr;
    }

    .attendance-toolbar,
    .attendance-filter-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .leave-toolbar {
        display: grid;
    }

    .leave-summary-strip {
        grid-template-columns: 1fr;
    }

    .salary-toolbar,
    .salary-filter-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .salary-period-form {
        grid-template-columns: 1fr;
        display: grid;
    }

    .reports-toolbar,
    .reports-filter-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .report-summary-strip {
        grid-template-columns: 1fr;
    }

    .salary-summary-strip {
        grid-template-columns: 1fr;
    }

    .reports-hero {
        padding: 22px;
        border-radius: 22px;
    }

    .report-stats {
        grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    }

    .reports-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .reports-filter-grid > :last-child {
        grid-column: 1 / -1;
    }

    .reports-toolbar-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .reports-toolbar-actions .btn,
    .reports-filter-actions .btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .report-summary-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .report-table-wrap {
        overflow-x: auto;
    }

    .report-table {
        min-width: 760px;
    }

    .attendance-summary-strip {
        grid-template-columns: 1fr;
    }

    .attendance-live-grid {
        grid-template-columns: 1fr;
    }

    .submit-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .leave-balance-grid {
        grid-template-columns: 1fr;
    }

    .salary-hero {
        padding: 22px;
        border-radius: 22px;
    }

    .salary-stats {
        grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    }

    .salary-period-form {
        grid-template-columns: 1fr 1fr;
    }

    .salary-period-form > :last-child {
        grid-column: 1 / -1;
    }

    .salary-period-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .salary-period-actions .btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .salary-breakdown-grid,
    .salary-insights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .salary-history-table .table-responsive {
        overflow-x: auto;
    }

    .salary-history-table .table {
        min-width: 760px;
    }

    .hero-banner {
        padding: 22px;
        border-radius: 22px;
    }

    .hero-banner h3 {
        font-size: 1.7rem;
    }

    .hero-status-card {
        padding: 18px;
        border-radius: 18px;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 14px;
    }

    .quick-action-card {
        padding: 18px;
        border-radius: 18px;
    }

    .chart-wrap {
        height: 180px;
    }

    .calendar-grid {
        gap: 3px;
    }
}

@media (max-width: 575px) {
    .topbar {
        padding: 16px 18px;
        border-radius: 18px;
    }

    .topbar h2 {
        font-size: 1.18rem;
    }

    .topbar-title-wrap {
        gap: 10px;
    }

    .sidebar {
        width: min(90vw, 300px);
    }

    .main-content {
        padding: 16px;
    }

    .location-metrics {
        grid-template-columns: 1fr;
    }

    .salary-panel {
        padding: 18px;
    }

    .reports-panel {
        padding: 18px;
    }

    .salary-toolbar-actions,
    .salary-filter-actions {
        width: 100%;
    }

    .salary-period-actions {
        width: 100%;
    }

    .reports-toolbar-actions,
    .reports-filter-actions {
        width: 100%;
    }

    .salary-toolbar-actions .btn,
    .salary-filter-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .salary-period-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .reports-toolbar-actions .btn,
    .reports-filter-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .salary-payroll-badge {
        width: 100%;
        justify-content: center;
    }

    .report-empty {
        flex-direction: column;
        text-align: center;
    }

    .salary-empty {
        flex-direction: column;
        text-align: center;
    }

    .leave-panel {
        padding: 18px;
    }

    .leave-toolbar-actions,
    .leave-action-form {
        width: 100%;
    }

    .leave-toolbar-actions {
        display: grid;
    }

    .leave-action-form {
        grid-template-columns: 1fr;
    }

    .leave-status-filter {
        width: 100%;
        min-width: 0;
    }

    .leave-toolbar-buttons {
        width: 100%;
    }

    .leave-toolbar-actions .btn,
    .leave-action-form .btn {
        width: 100%;
        justify-content: center;
    }

    .leave-empty {
        flex-direction: column;
        text-align: center;
    }

    .attendance-panel {
        padding: 18px;
    }

    .attendance-toolbar-actions,
    .attendance-filter-actions {
        width: 100%;
    }

    .attendance-toolbar-actions .btn,
    .attendance-filter-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .attendance-live-grid .d-flex.justify-content-between.align-items-center.mb-3 {
        align-items: flex-start;
    }

    .attendance-live-grid .d-flex.justify-content-between.align-items-center.mb-3 > .d-flex.gap-2 {
        width: 100%;
    }

    .attendance-live-grid .d-flex.justify-content-between.align-items-center.mb-3 .btn {
        flex: 1 1 140px;
        justify-content: center;
    }

    .submit-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .submit-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .attendance-empty {
        flex-direction: column;
        text-align: center;
    }

    .attendance-chip-row {
        gap: 10px;
    }

    .attendance-chip {
        width: 100%;
        justify-content: center;
    }

    .leave-preview-card {
        grid-template-columns: 1fr;
    }

    .salary-hero {
        padding: 18px;
        border-radius: 18px;
    }

    .salary-hero h3 {
        font-size: 1.45rem;
    }

    .salary-chip-row {
        gap: 10px;
    }

    .salary-chip {
        width: 100%;
        justify-content: center;
    }

    .salary-panel {
        padding: 18px;
    }

    .salary-period-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .salary-period-form .form-control,
    .salary-period-form .form-select {
        min-height: 50px;
        border-radius: 14px;
    }

    .salary-period-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .salary-period-actions .btn {
        width: 100%;
    }

    .salary-breakdown-grid,
    .salary-insights,
    .salary-summary-strip {
        grid-template-columns: 1fr;
    }

    .salary-history-table .table {
        min-width: 680px;
    }

    .reports-hero {
        padding: 18px;
        border-radius: 18px;
    }

    .reports-hero h3 {
        font-size: 1.45rem;
    }

    .report-chip-row {
        gap: 10px;
    }

    .report-chip {
        width: 100%;
        justify-content: center;
    }

    .reports-panel {
        padding: 18px;
    }

    .reports-filter-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .reports-filter-grid .form-control,
    .reports-filter-grid .form-select {
        min-height: 50px;
        border-radius: 14px;
    }

    .reports-toolbar-actions,
    .reports-filter-actions {
        grid-template-columns: 1fr;
    }

    .reports-toolbar-actions .btn,
    .reports-filter-actions .btn {
        width: 100%;
    }

    .report-summary-strip,
    .report-stats {
        grid-template-columns: 1fr;
    }

    .report-table {
        min-width: 680px;
    }

    .export-options-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .export-option-card {
        padding: 16px;
        gap: 12px;
    }

    .export-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .leave-hero {
        padding: 18px;
        border-radius: 18px;
    }

    .leave-balance-grid {
        grid-template-columns: 1fr;
    }

    .calendar-weekdays span,
    .calendar-days .calendar-day {
        font-size: 0.76rem;
    }

    .calendar-grid {
        gap: 3px;
    }

    .calendar-days .calendar-day {
        border-radius: 10px;
    }

    .activity-item {
        padding: 14px;
        gap: 12px;
    }

    .activity-icon {
        width: 38px;
        height: 38px;
    }

    .leave-preview-card {
        padding: 14px;
    }

    .panel-card .form-label {
        margin-bottom: 6px;
    }

    .panel-card .col-12.d-grid .btn {
        width: 100%;
    }

    .hero-banner {
        padding: 18px;
        border-radius: 18px;
    }

    .hero-banner h3 {
        font-size: 1.45rem;
    }

    .hero-banner p {
        font-size: 0.95rem;
    }

    .hero-status-card {
        padding: 16px;
    }

    .stats-grid,
    .dashboard-stats,
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .quick-action-card {
        gap: 12px;
        padding: 16px;
    }

    .quick-action-card i {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }

    .chart-wrap {
        height: 160px;
        margin: 14px 0;
    }

    .trend-legend,
    .calendar-legend {
        gap: 12px;
        justify-content: flex-start;
    }

    .calendar-weekdays span,
    .calendar-days .calendar-day {
        font-size: 0.78rem;
    }

    .submit-actions {
        grid-template-columns: 1fr;
    }

    .attendance-live-grid .d-flex.justify-content-between.align-items-center.mb-3 .btn {
        flex: 1 1 100%;
    }

    .dashboard-panel {
        padding: 18px;
    }
}
