/* ===== RESET & VARIABLES ===== */
:root {
    --bg: #f0f2f5;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --border: #e2e8f0;
    --text: #1a202c;
    --text-muted: #718096;
    --text-light: #a0aec0;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --success: #059669;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --error: #dc2626;
    --error-bg: #fef2f2;
    --error-border: #fecaca;
    --warning-bg: #fffbeb;
    --warning-border: #fcd34d;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.10);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }

/* ===== HEADER ===== */
.site-header {
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 var(--border), 0 2px 12px rgba(0,0,0,.05);
}
.site-header::after {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 40%, #ec4899 100%);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}
.header-logo {
    font-size: 22px;
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.header-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-user {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

/* ===== LAYOUT ===== */
.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 56px;
}

/* ===== FLASH ===== */
.flash-stack {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 480px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}
.flash {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border-left: 5px solid transparent;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.10);
    animation: flash-in 0.3s ease;
    pointer-events: auto;
    position: relative;
}
.flash-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}
.flash-body {
    flex: 1;
    line-height: 1.5;
}
.flash-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    opacity: 0.5;
    padding: 0 0 0 8px;
    flex-shrink: 0;
    color: inherit;
}
.flash-close:hover { opacity: 1; }
.flash-success {
    background: #ecfdf5;
    color: #064e3b;
    border-left-color: #10b981;
}
.flash-error {
    background: #fef2f2;
    color: #7f1d1d;
    border-left-color: #ef4444;
}
.flash- {
    background: #eff6ff;
    color: #1e3a5f;
    border-left-color: #3b82f6;
}
@keyframes flash-in {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes flash-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-10px); }
}

/* ===== CARD ===== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* ===== BUTTONS ===== */
.btn, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 44px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font: 600 14px/1 inherit;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, transform .12s, box-shadow .15s;
    box-shadow: 0 2px 8px rgba(79,70,229,.28);
}
.btn:hover, button:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 16px rgba(79,70,229,.38);
}
.btn:active, button:active { transform: scale(.96); box-shadow: none; }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: var(--border);
    box-shadow: none;
}
.btn-ghost:hover { background: var(--surface-muted); color: var(--text); box-shadow: none; }

.btn-secondary {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.btn-secondary:hover { background: var(--surface-muted); box-shadow: 0 2px 8px rgba(0,0,0,.10); }

.btn-danger {
    background: var(--error);
    color: #fff;
    box-shadow: 0 2px 8px rgba(220,38,38,.28);
}
.btn-danger:hover { background: #b91c1c; box-shadow: 0 4px 14px rgba(220,38,38,.38); }

.btn-success {
    background: var(--success);
    color: #fff;
    box-shadow: 0 2px 8px rgba(5,150,105,.28);
}
.btn-success:hover { background: #047857; }

.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 8px; box-shadow: none; }
.btn-lg { height: 52px; padding: 0 32px; font-size: 16px; border-radius: 12px; }
.btn-full { width: 100%; }

/* legacy compat */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius-sm);
    background: var(--primary); color: #fff; font: 600 14px/1 inherit; cursor: pointer;
    text-decoration: none; white-space: nowrap; transition: background .15s; }
.button:hover { background: var(--primary-hover); }
.button-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.button-secondary:hover { background: var(--surface-muted); }
.button-danger { background: var(--error); color: #fff; }
.button-danger:hover { background: #b91c1c; }
.button-small { height: 34px; padding: 0 12px; font-size: 13px; border-radius: var(--radius-xs); }
.button-full { width: 100%; }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-hover); }

/* ===== PAGE HEADER ===== */
.pg-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.pg-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.pg-sub { margin-top: 4px; font-size: 14px; color: var(--text-muted); }
.pg-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== FORM ===== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group-full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

label { font-size: 13px; font-weight: 600; color: var(--text-muted); }

input, select, textarea {
    font: inherit;
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 10px 12px; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
input[readonly], input[disabled], select[disabled] {
    background: var(--surface-muted);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ===== TABLE ===== */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); }
.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.tbl th {
    background: var(--surface-muted);
    padding: 11px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.tbl td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td { background: #fafbff; }

/* legacy */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { background: var(--surface-muted); padding: 11px 14px; text-align: left;
    font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: .05em; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: #fafbff; }
.table-wrap { overflow-x: auto; }
.table-actions { display: flex; gap: 8px; align-items: center; }
.table-actions form { margin: 0; }
.admin-break-table { width: 100%; }
.admin-break-section { margin-top: 32px; }
.admin-break-section h2 { font-size: 18px; margin-bottom: 14px; }

/* ===== BADGE ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-yellow { background: #fef9c3; color: #a16207; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-gray   { background: #f1f5f9; color: #475569; }
.badge-purple { background: #ede9fe; color: #6d28d9; }

/* ===== STAT CARD ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.stat-item {
    background: var(--surface);
    padding: 18px 16px;
}
.stat-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.stat-value { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-unit   { font-size: 13px; font-weight: 500; color: var(--text-muted); margin-left: 2px; }
.stat-blue   .stat-value { color: var(--primary); }
.stat-red    .stat-value { color: var(--error); }
.stat-green  .stat-value { color: var(--success); }

/* ===== DASHBOARD HERO ===== */
.dash-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4f46e5 100%);
    border-radius: 20px;
    padding: 44px 40px;
    color: #fff;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(79,70,229,.3);
}
.dash-hero::before {
    content: '';
    position: absolute;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: rgba(255,255,255,.055);
    top: -110px; right: -90px;
    pointer-events: none;
}
.dash-hero::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    bottom: -60px; left: 28%;
    pointer-events: none;
}
.dash-greeting {
    font-size: 13px;
    font-weight: 600;
    opacity: .6;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.dash-name {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin-bottom: 20px;
}
.dash-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 700;
}
.dash-role-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #a5f3fc;
    display: inline-block;
    box-shadow: 0 0 6px #a5f3fc;
}

/* ===== MENU GRID ===== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 0;
}
.menu-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    overflow: hidden;
    transition: transform .22s cubic-bezier(.34,1.4,.64,1), box-shadow .22s, border-color .15s;
    text-decoration: none;
}
.menu-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 56px rgba(0,0,0,.13);
    border-color: transparent;
    text-decoration: none;
}
.mc-icon-wrap {
    padding: 28px 28px 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.mc-icon {
    width: 58px; height: 58px;
    background: rgba(255,255,255,.22);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mc-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.18);
    color: #fff;
    letter-spacing: .04em;
}
.mc-body {
    padding: 0 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.mc-title {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -.01em;
    color: var(--text);
}
.mc-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}
.mc-arrow {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .18s, transform .18s;
}
.menu-card:hover .mc-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* gradient backgrounds for each card type */
.mc-indigo  { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }
.mc-blue    { background: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%); }
.mc-emerald { background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%); }
.mc-amber   { background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%); }
.mc-rose    { background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%); }
.mc-indigo  .mc-title, .mc-indigo  .mc-arrow { color: #6366f1; }
.mc-blue    .mc-title, .mc-blue    .mc-arrow { color: #2563eb; }
.mc-emerald .mc-title, .mc-emerald .mc-arrow { color: #059669; }
.mc-amber   .mc-title, .mc-amber   .mc-arrow { color: #d97706; }
.mc-rose    .mc-title, .mc-rose    .mc-arrow { color: #e11d48; }

/* ===== FILTER FORM ===== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin-bottom: 0;
}
.filter-bar .form-group {
    flex: 1 1 180px;
    min-width: 0;
}
.filter-bar .form-actions {
    flex: 0 0 auto;
    padding-bottom: 0;
}

/* ===== BREAK FORM ===== */
.break-form-panel {
    margin-top: 24px;
    padding: 20px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.break-form-panel h2 { font-size: 16px; margin-bottom: 16px; font-weight: 700; }

/* ===== RESULT CARD (legacy) ===== */
.result-card {
    margin-top: 20px;
    padding: 20px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.result-card h2 { font-size: 17px; margin-bottom: 12px; font-weight: 700; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    font-size: 14px;
}
.empty-icon { font-size: 36px; margin-bottom: 12px; }

/* ===== AUTH ===== */
.page-container-auth {
    max-width: 420px;
    margin: 48px auto;
}
.auth-card { padding: 36px 32px; }

/* ===== PAYROLL SPECIFIC ===== */
.salary-hero {
    padding: 32px 24px;
    background: linear-gradient(135deg, #3730a3 0%, #4f46e5 100%);
    color: #fff;
    border-radius: var(--radius);
    text-align: center;
    border: none;
    box-shadow: 0 8px 24px rgba(79,70,229,.25);
}
.salary-hero-label { font-size: 12px; font-weight: 700; opacity: .75; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.salary-hero-amount { font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin-bottom: 12px; }
.salary-hero-meta { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 14px; opacity: .85; }

/* ===== OFF DAYS CHECKBOXES ===== */
.off-days-checkboxes { display: flex; gap: 8px; flex-wrap: wrap; }
.day-check-label {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); cursor: pointer;
    font-size: 14px; font-weight: 600; background: var(--surface-muted);
    transition: border-color .15s, background .15s;
    user-select: none;
}
.day-check-label:hover { border-color: var(--primary); background: var(--primary-light); }
.day-check-label input[type="checkbox"] { width: 15px; height: 15px; min-height: unset; accent-color: var(--primary); cursor: pointer; }
.day-check-label:has(input:checked) { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--text-muted); margin: 24px 0 10px;
}

/* ===== META TABLE ===== */
.meta-table { width: 100%; border-collapse: collapse; }
.meta-table tr { border-bottom: 1px solid var(--border); }
.meta-table tr:last-child { border-bottom: none; }
.meta-key { padding: 11px 16px; font-size: 13px; font-weight: 600; color: var(--text-muted);
    width: 140px; white-space: nowrap; background: var(--surface-muted); }
.meta-val { padding: 11px 16px; font-size: 14px; }

/* ===== STATUS BANNER ===== */
.status-banner { padding: 12px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.status-banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-confirmed { background: var(--success-bg); color: #065f46; border: 1px solid var(--success-border); }
.status-draft     { background: var(--warning-bg); color: #92400e; border: 1px solid var(--warning-border); }

.unlock-btn {
    min-height: unset; height: 32px; padding: 0 14px; font-size: 13px;
    background: transparent; border: 1.5px solid #065f46; color: #065f46;
    border-radius: var(--radius-xs);
}
.unlock-btn:hover { background: #065f46; color: #fff; }

/* ===== ATTENDANCE PAGE ===== */
.attendance-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 0 20px;
}
.clock-time {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.clock-date { font-size: 16px; color: var(--text-muted); font-weight: 500; }
.attendance-status-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}
.attendance-status-item {
    padding: 14px 16px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.attendance-status-label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.attendance-status-value { font-size: 18px; font-weight: 700; }
.attendance-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}
.btn-clock-in  { background: var(--success); font-size: 16px; height: 52px; border-radius: var(--radius-sm); }
.btn-clock-in:hover  { background: #047857; }
.btn-clock-out { background: #dc2626; font-size: 16px; height: 52px; border-radius: var(--radius-sm); }
.btn-clock-out:hover { background: #b91c1c; }

/* ===== RESPONSIVE ===== */

/* --- iPad / Tablet (≤1024px) --- */
@media (max-width: 1024px) {
    .page-shell { padding: 20px 16px 48px; }
    .header-inner { padding: 0 16px; }
    .pg-title { font-size: 22px; }
    .stat-value { font-size: 18px; }
    .dash-hero { padding: 32px 28px; }
    .dash-name { font-size: 30px; }
}

/* --- Small tablet / Large mobile (≤768px) --- */
@media (max-width: 768px) {
    .page-shell { padding: 16px 12px 40px; }
    .header-inner { padding: 0 12px; }
    .header-brand span:last-child { display: none; }
    .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pg-header { flex-direction: column; align-items: flex-start; }
    .pg-actions { width: 100%; justify-content: flex-end; }
    .filter-bar .form-group { flex: 1 1 140px; }
    .btn, button { min-height: 44px; }
    .btn-sm { min-height: 36px; }
    input, select, textarea { height: 44px; }
    .tbl th, .tbl td { padding: 10px 10px; font-size: 13px; }
    .tbl-wrap { -webkit-overflow-scrolling: touch; }
    .stat-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
    .stat-item { padding: 14px 12px; }
    .stat-value { font-size: 18px; }
    .salary-hero-amount { font-size: 42px; }
    .salary-hero-meta { flex-wrap: wrap; gap: 8px; }
    .dash-hero { padding: 28px 22px; border-radius: 14px; }
    .dash-name { font-size: 26px; }
    .mc-icon-wrap { padding: 22px 22px 16px; }
    .mc-body { padding: 0 22px 22px; }
}

/* --- Mobile (≤640px) --- */
@media (max-width: 640px) {
    .page-shell { padding: 12px 10px 36px; }
    .header-inner { padding: 0 10px; }
    .menu-grid { grid-template-columns: 1fr; gap: 12px; }
    .form-grid { grid-template-columns: 1fr; }
    .filter-bar { flex-direction: column; }
    .filter-bar .form-group { flex: 1 1 auto; width: 100%; }
    .filter-bar .form-actions { width: 100%; }
    .filter-bar .form-actions .btn { width: 100%; justify-content: center; }
    .attendance-buttons { grid-template-columns: 1fr; }
    .salary-hero-amount { font-size: 34px; }
    .pg-title { font-size: 20px; }
    .table-actions { flex-direction: column; gap: 6px; }
    .table-actions form, .table-actions a, .table-actions button { width: 100%; justify-content: center; }
    .page-container-auth { margin: 24px auto; padding: 0 12px; }
    .auth-card { padding: 24px 20px; }
    .dash-hero { padding: 24px 18px; border-radius: 12px; }
    .dash-name { font-size: 24px; }
    .mc-arrow { opacity: 1; transform: none; }
}
