/* ============================================================
   SIMK PHA &mdash; App Stylesheet
   Theme: Deep Forest Green &mdash; PT Pesta Hijau Abadi
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Brand */
    --green-950: #052e16;
    --green-900: #14532d;
    --green-800: #166534;
    --green-700: #15803d;
    --green-600: #16a34a;
    --green-500: #22c55e;
    --green-400: #4ade80;
    --green-300: #86efac;
    --green-100: #dcfce7;
    --green-50:  #f0fdf4;

    /* UI */
    --bg:        #0a1a0a;
    --surface:   #0f2210;
    --surface-2: #162b16;
    --surface-3: #1c361c;
    --border:    rgba(34,197,94,0.12);
    --border-md: rgba(34,197,94,0.22);
    --border-hi: rgba(34,197,94,0.45);

    /* Text */
    --text-1: #f0fdf4;
    --text-2: #86efac;
    --text-3: #4ade80;
    --text-m: #6b7280;

    /* Status */
    --red:    #ef4444;
    --red-bg: rgba(239,68,68,0.12);
    --amber:  #f59e0b;
    --amb-bg: rgba(245,158,11,0.12);
    --blue:   #38bdf8;
    --blu-bg: rgba(56,189,248,0.12);

    /* Sizes */
    --sidebar-w: 240px;
    --topbar-h:  60px;
    --r:  8px;
    --rl: 14px;
    --rx: 20px;

    /* Shadows */
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --glow:   0 0 20px rgba(34,197,94,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 14px;
    background: var(--bg);
    color: var(--text-1);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: var(--green-400); text-decoration: none; }
a:hover { color: var(--green-300); }

code, .mono { font-family: 'JetBrains Mono', monospace; }

/* ============================================================
   LAYOUT
   ============================================================ */
.app-layout { display: flex; min-height: 100vh; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
}

.sidebar-brand {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--green-700), var(--green-500));
    border-radius: var(--r);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800;
    color: #fff;
    box-shadow: 0 0 12px rgba(34,197,94,0.35);
    flex-shrink: 0;
}

.brand-text { flex: 1; min-width: 0; }
.brand-name { font-size: 13px; font-weight: 700; color: var(--text-1); line-height: 1.2; }
.brand-sub  { font-size: 10px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-nav { flex: 1; padding: 0.75rem 0.75rem; }

.nav-section { margin-bottom: 1.25rem; }
.nav-section-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-m);
    padding: 0 10px;
    margin-bottom: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--r);
    font-size: 13.5px;
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 1px;
    position: relative;
}
.nav-item:hover { background: var(--surface-2); color: var(--text-1); }
.nav-item.active {
    background: rgba(34,197,94,0.15);
    color: var(--green-400);
    font-weight: 600;
}
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 60%;
    background: var(--green-500);
    border-radius: 0 3px 3px 0;
}
.nav-item .nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-item .badge {
    margin-left: auto;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 100px;
    min-width: 18px;
    text-align: center;
}

.sidebar-footer {
    border-top: 1px solid var(--border);
    padding: 0.875rem 1rem;
}
.user-card { display: flex; align-items: center; gap: 10px; }
.user-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.user-info .name { font-size: 13px; font-weight: 600; color: var(--text-1); }
.user-info .role { font-size: 11px; color: var(--text-2); }

/* ============================================================
   MAIN
   ============================================================ */
.main-wrap {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    height: var(--topbar-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 12px;
    position: sticky; top: 0; z-index: 100;
}

.topbar-menu-btn {
    display: none;
    background: none; border: none; cursor: pointer;
    color: var(--text-2); font-size: 20px; padding: 4px;
}

.topbar-title { font-size: 16px; font-weight: 700; flex: 1; }
.topbar-subtitle { font-size: 12px; color: var(--text-2); }

.topbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.notif-btn {
    position: relative;
    background: none; border: none; cursor: pointer;
    color: var(--text-2); font-size: 18px; padding: 6px;
    border-radius: var(--r);
    transition: all 0.15s;
}
.notif-btn:hover { background: var(--surface-2); color: var(--text-1); }
.notif-dot {
    position: absolute;
    top: 4px; right: 4px;
    width: 8px; height: 8px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid var(--surface);
}

.page-content { padding: 1.5rem; flex: 1; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rl);
    overflow: hidden;
}

.card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.card-title { font-size: 14px; font-weight: 700; color: var(--text-1); }
.card-body { padding: 1.25rem; }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 1.5rem; }
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rl);
    padding: 1.1rem 1.25rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover { border-color: var(--border-md); transform: translateY(-1px); }
.stat-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    border-radius: 50%;
    opacity: 0.06;
    transform: translate(25px, -25px);
}
.stat-card.green::after { background: var(--green-500); }
.stat-card.red::after   { background: var(--red); }
.stat-card.amber::after { background: var(--amber); }
.stat-card.blue::after  { background: var(--blue); }

.stat-icon {
    width: 38px; height: 38px;
    border-radius: var(--r);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    margin-bottom: 10px;
}
.stat-card.green .stat-icon { background: rgba(34,197,94,0.15); }
.stat-card.red   .stat-icon { background: var(--red-bg); }
.stat-card.amber .stat-icon { background: var(--amb-bg); }
.stat-card.blue  .stat-icon { background: var(--blu-bg); }

.stat-label { font-size: 12px; color: var(--text-2); font-weight: 500; margin-bottom: 4px; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--text-1); line-height: 1; }
.stat-sub   { font-size: 11px; color: var(--text-m); margin-top: 4px; }

/* ============================================================
   TABLES
   ============================================================ */
.tbl-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-m);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    background: var(--surface-2);
}
tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--text-1);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(34,197,94,0.04); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 11.5px; font-weight: 600;
    white-space: nowrap;
}
.badge-green    { background: rgba(34,197,94,0.15);  color: var(--green-400); }
.badge-red      { background: var(--red-bg);          color: #fca5a5; }
.badge-amber    { background: var(--amb-bg);          color: #fcd34d; }
.badge-blue     { background: var(--blu-bg);          color: #7dd3fc; }
.badge-gray     { background: rgba(107,114,128,0.15); color: #9ca3af; }
.badge-purple   { background: rgba(167,139,250,0.15); color: #c4b5fd; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    font-size: 13px; font-weight: 600;
    font-family: inherit;
    border-radius: var(--r);
    border: 1px solid var(--border-md);
    background: var(--surface-2);
    color: var(--text-1);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    text-decoration: none;
}
.btn:hover { background: var(--surface-3); border-color: var(--border-hi); }
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--green-700);
    border-color: var(--green-600);
    color: #fff;
}
.btn-primary:hover { background: var(--green-600); box-shadow: 0 0 16px rgba(34,197,94,0.25); }

.btn-danger { background: var(--red-bg); border-color: rgba(239,68,68,0.3); color: #fca5a5; }
.btn-danger:hover { background: rgba(239,68,68,0.2); }

.btn-amber { background: var(--amb-bg); border-color: rgba(245,158,11,0.3); color: #fcd34d; }

.btn-xl {
    padding: 14px 24px; font-size: 15px;
    border-radius: var(--rl);
    justify-content: center;
    width: 100%;
}

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { padding: 7px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }

.form-control {
    padding: 9px 12px;
    font-size: 13.5px; font-family: inherit;
    background: var(--surface-2);
    border: 1px solid var(--border-md);
    border-radius: var(--r);
    color: var(--text-1);
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}
.form-control:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(34,197,94,0.12); }
.form-control::placeholder { color: var(--text-m); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

.form-hint { font-size: 11.5px; color: var(--text-m); }
.form-error { font-size: 12px; color: var(--red); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal {
    background: var(--surface);
    border: 1px solid var(--border-md);
    border-radius: var(--rx);
    width: 540px; max-width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow), var(--glow);
    animation: modal-in 0.25s ease;
}
@keyframes modal-in {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-lg { width: 720px; }

.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.modal-title { font-size: 15px; font-weight: 700; }
.modal-close {
    background: none; border: none; cursor: pointer;
    color: var(--text-m); font-size: 18px; padding: 4px 8px;
    border-radius: var(--r); transition: all 0.15s;
}
.modal-close:hover { background: var(--surface-2); color: var(--text-1); }
.modal-body { padding: 1.25rem; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 1rem 1.25rem; border-top: 1px solid var(--border); }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 11px 1.25rem;
    border-left: 3px solid;
    border-radius: 0 var(--r) var(--r) 0;
    font-size: 13.5px;
    margin-bottom: 1rem;
    animation: slide-in 0.3s ease;
}
@keyframes slide-in { from { opacity:0; transform: translateX(-8px); } to { opacity:1; transform:none; } }
.alert-success { background: rgba(34,197,94,0.1);  border-color: var(--green-600); color: var(--green-300); }
.alert-error   { background: var(--red-bg);         border-color: var(--red);       color: #fca5a5; }
.alert-info    { background: var(--blu-bg);          border-color: var(--blue);      color: #7dd3fc; }
.alert-amber   { background: var(--amb-bg);          border-color: var(--amber);     color: #fcd34d; }

/* ============================================================
   AVATAR
   ============================================================ */
.avatar {
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; flex-shrink: 0;
    font-size: 13px;
}
.av-sm { width: 30px; height: 30px; font-size: 11px; }
.av-md { width: 38px; height: 38px; font-size: 14px; }
.av-lg { width: 52px; height: 52px; font-size: 18px; }
.av-xl { width: 72px; height: 72px; font-size: 24px; }

.name-cell { display: flex; align-items: center; gap: 10px; }
.nc-name   { font-weight: 600; font-size: 13.5px; }
.nc-sub    { font-size: 11.5px; color: var(--text-2); }

/* ============================================================
   TOOLBAR & PAGINATION
   ============================================================ */
.toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 1rem; flex-wrap: wrap;
}
.toolbar-left  { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar-right { display: flex; gap: 8px; align-items: center; }

.search-box {
    padding: 8px 12px 8px 34px;
    background: var(--surface-2);
    border: 1px solid var(--border-md);
    border-radius: var(--r);
    color: var(--text-1);
    font-family: inherit; font-size: 13px;
    width: 220px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%234ade80' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
}
.search-box:focus { outline: none; border-color: var(--green-600); }

.sel-filter {
    padding: 8px 28px 8px 10px;
    background: var(--surface-2);
    border: 1px solid var(--border-md);
    border-radius: var(--r);
    color: var(--text-1);
    font-family: inherit; font-size: 13px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%234ade80' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}
.sel-filter:focus { outline: none; }

.pagination {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    font-size: 12.5px; color: var(--text-m);
}
.page-btns { display: flex; gap: 4px; }
.page-btn {
    padding: 4px 10px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    color: var(--text-2); font-size: 12.5px; font-family: inherit;
    cursor: pointer; transition: all 0.15s;
}
.page-btn:hover { background: var(--surface-3); border-color: var(--border-hi); }
.page-btn.active { background: var(--green-800); border-color: var(--green-600); color: var(--green-300); }

/* ============================================================
   ABSENSI &mdash; Special Components
   ============================================================ */
.absen-card {
    background: linear-gradient(145deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border-md);
    border-radius: var(--rx);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.absen-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(34,197,94,0.05) 0%, transparent 60%);
    animation: pulse-bg 4s ease-in-out infinite;
}
@keyframes pulse-bg {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.clock-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 48px; font-weight: 500;
    color: var(--green-400);
    letter-spacing: 2px;
    line-height: 1;
    text-shadow: 0 0 30px rgba(34,197,94,0.3);
}
.date-display { font-size: 14px; color: var(--text-2); margin: 4px 0 20px; }

.location-status {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px; font-weight: 600;
    margin-bottom: 1.5rem;
}
.loc-valid   { background: rgba(34,197,94,0.15); color: var(--green-400); border: 1px solid rgba(34,197,94,0.3); }
.loc-invalid { background: var(--red-bg);        color: #fca5a5;           border: 1px solid rgba(239,68,68,0.3); }
.loc-loading { background: var(--amb-bg);        color: #fcd34d;           border: 1px solid rgba(245,158,11,0.3); }

.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* Absen big button */
.absen-btn-masuk, .absen-btn-keluar {
    width: 140px; height: 140px;
    border-radius: 50%;
    border: 2px solid;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    cursor: pointer;
    font-family: inherit; font-size: 14px; font-weight: 700;
    transition: all 0.2s;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.absen-btn-masuk {
    background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(34,197,94,0.08));
    border-color: var(--green-600);
    color: var(--green-400);
}
.absen-btn-masuk:hover {
    background: linear-gradient(135deg, rgba(34,197,94,0.35), rgba(34,197,94,0.15));
    box-shadow: 0 0 30px rgba(34,197,94,0.3);
    transform: scale(1.03);
}
.absen-btn-keluar {
    background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(245,158,11,0.08));
    border-color: var(--amber);
    color: #fcd34d;
}
.absen-btn-keluar:hover {
    background: linear-gradient(135deg, rgba(245,158,11,0.35), rgba(245,158,11,0.15));
    box-shadow: 0 0 30px rgba(245,158,11,0.3);
    transform: scale(1.03);
}
.absen-btn-masuk .btn-icon-big,
.absen-btn-keluar .btn-icon-big { font-size: 36px; margin-bottom: 6px; }

.absen-btn-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================================
   LOGIN
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.login-bg-pattern {
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(34,197,94,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(34,197,94,0.05) 0%, transparent 50%);
}

.login-card {
    background: var(--surface);
    border: 1px solid var(--border-md);
    border-radius: var(--rx);
    padding: 2.5rem;
    width: 400px; max-width: calc(100vw - 2rem);
    box-shadow: var(--shadow), var(--glow);
    position: relative;
    z-index: 1;
    animation: fade-up 0.4s ease;
}
@keyframes fade-up {
    from { opacity:0; transform: translateY(20px); }
    to   { opacity:1; transform: none; }
}

.login-logo { text-align: center; margin-bottom: 1.75rem; }
.login-logo-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--green-800), var(--green-600));
    border-radius: var(--rl);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 900; color: #fff;
    box-shadow: 0 0 24px rgba(34,197,94,0.35);
    margin-bottom: 12px;
}
.login-company { font-size: 16px; font-weight: 800; color: var(--text-1); }
.login-tagline { font-size: 12px; color: var(--text-2); }

/* ============================================================
   PROFILE / DETAIL
   ============================================================ */
.profile-header {
    display: flex; align-items: flex-start; gap: 16px;
    margin-bottom: 1.5rem;
}
.profile-info .name  { font-size: 20px; font-weight: 700; }
.profile-info .nip   { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text-2); }
.profile-info .dept  { font-size: 13px; color: var(--text-2); margin-top: 4px; }

.info-table { width: 100%; }
.info-table td { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.info-table td:first-child { color: var(--text-m); width: 40%; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.info-table tr:last-child td { border: none; }

/* ============================================================
   SLIP GAJI
   ============================================================ */
.slip-header {
    background: linear-gradient(135deg, var(--green-950), var(--green-900));
    border: 1px solid var(--green-800);
    border-radius: var(--rl);
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.slip-header-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(34,197,94,0.2);
}
.slip-company { font-size: 16px; font-weight: 800; color: var(--green-300); }
.slip-period  { font-size: 13px; color: var(--text-2); }

.slip-row {
    display: flex; justify-content: space-between;
    font-size: 13.5px; padding: 7px 0;
    border-bottom: 1px solid var(--border);
}
.slip-row:last-child { border: none; }
.slip-row.total {
    font-size: 15px; font-weight: 700;
    color: var(--green-400);
    margin-top: 8px; padding-top: 12px;
    border-top: 2px solid var(--border-md);
}

/* ============================================================
   MAP
   ============================================================ */
#map-container {
    height: 200px;
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--border-md);
    background: var(--surface-2);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    font-size: 13px; color: var(--text-m);
}

/* ============================================================
   RESPONSIVE &mdash; Mobile-first (Android/iOS smartphone)
   ============================================================ */

/* Tablet landscape */
@media (max-width: 1024px) {
    .stat-grid  { grid-template-columns: repeat(2, 1fr); }
    .grid-3     { grid-template-columns: 1fr 1fr; }
    .modal-lg   { width: 100%; }
}

/* Tablet portrait & phone landscape &mdash; sidebar collapsible */
@media (max-width: 768px) {
    :root { --sidebar-w: 0px; --topbar-h: 56px; }

    .sidebar {
        transform: translateX(-260px);
        width: 260px;
        max-width: 85vw;
    }
    .sidebar.open { transform: translateX(0); }

    .sidebar-overlay {
        display: none;
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 199;
    }
    .sidebar-overlay.open { display: block; }

    .main-wrap       { margin-left: 0; }
    .topbar-menu-btn { display: flex; }
    .topbar          { padding: 0 0.875rem; }
    .topbar-title    { font-size: 15px; }
    .topbar-subtitle { display: none; }

    .page-content    { padding: 0.875rem; }
    .form-grid, .form-grid-3 { grid-template-columns: 1fr; gap: 12px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr !important; gap: 12px; }

    /* Stat cards lebih kompak &mdash; !important override inline styles */
    .stat-grid       { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .stat-card       { padding: 0.875rem 1rem; }
    .stat-value      { font-size: 20px; word-break: break-word; }
    .stat-icon       { width: 32px; height: 32px; font-size: 16px; margin-bottom: 6px; }

    /* Card */
    .card-header     { padding: 0.875rem 1rem; }
    .card-body       { padding: 1rem; }

    /* Modal &mdash; full screen pada mobile */
    .modal-overlay   { padding: 0; align-items: flex-end; }
    .modal {
        width: 100%; max-width: 100%;
        max-height: 95vh;
        border-radius: var(--rx) var(--rx) 0 0;
        animation: modal-up 0.25s ease;
    }
    .modal-lg        { width: 100%; }
    .modal-header    { padding: 1rem; }
    .modal-body      { padding: 1rem; }
    .modal-footer    { padding: 0.75rem 1rem; }
    @keyframes modal-up {
        from { opacity: 0; transform: translateY(100%); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* Tabel &mdash; boleh scroll horizontal, dan sentuh-friendly */
    .tbl-wrap        { -webkit-overflow-scrolling: touch; border-radius: var(--rl); }
    table            { font-size: 12.5px; min-width: 560px; }
    thead th         { padding: 8px 10px; font-size: 10px; }
    tbody td         { padding: 10px; }

    /* Toolbar full lebar */
    .toolbar         { flex-direction: column; align-items: stretch; gap: 8px; }
    .toolbar-left,
    .toolbar-right   { width: 100%; flex-wrap: wrap; }
    .search-box,
    .sel-filter      { width: 100%; min-width: 0; }

    /* Absensi card */
    .absen-card      { padding: 1.25rem 1rem; }
    .clock-display   { font-size: 36px; letter-spacing: 1px; }
    .date-display    { font-size: 12.5px; margin-bottom: 14px; }
    .absen-btn-masuk,
    .absen-btn-keluar { width: 130px; height: 130px; font-size: 13px; }

    /* Pagination compact */
    .pagination      { flex-direction: column; gap: 8px; padding: 10px; align-items: stretch; }
    .page-btns       { justify-content: center; flex-wrap: wrap; }

    /* Buttons */
    .btn             { padding: 9px 14px; font-size: 13px; }
    .btn-sm          { padding: 6px 10px; font-size: 12px; }

    /* Topbar action buttons di mobile &mdash; boleh wrap */
    .topbar-right    { gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
    .pwa-install-label { display: none; }
    .pwa-install-btn { padding-inline: 10px; min-width: 38px; }

    /* Profile header stacked */
    .profile-header  { flex-direction: column; align-items: center; text-align: center; }
}

/* Phone portrait */
@media (max-width: 480px) {
    body { font-size: 13.5px; }

    .stat-grid       { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
    .stat-card       { padding: 0.75rem 0.875rem; }
    .stat-value      { font-size: 18px; }
    .stat-label      { font-size: 11px; }

    .clock-display   { font-size: 30px; }

    .absen-btn-masuk,
    .absen-btn-keluar { width: 120px; height: 120px; }
    .absen-btn-masuk .btn-icon-big,
    .absen-btn-keluar .btn-icon-big { font-size: 30px; }

    /* Login card padding lebih ringan */
    .login-card      { padding: 1.5rem 1.25rem; }

    /* Tabel info */
    .info-table td:first-child { font-size: 11px; }

    /* Card-action di topbar inline */
    .topbar-title    { font-size: 14px; }
}

/* Phone kecil (<=360px) */
@media (max-width: 360px) {
    .stat-grid       { grid-template-columns: 1fr !important; }
    .stat-value      { font-size: 22px; }
    .clock-display   { font-size: 26px; }
    .absen-btn-masuk,
    .absen-btn-keluar { width: 110px; height: 110px; }
    .modal-header    { padding: 0.875rem; }
    .modal-title     { font-size: 14px; }
}

/* Touch device &mdash; buttons lebih besar untuk jempol */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-item, .room-item, .page-btn { min-height: 38px; }
    .form-control    { min-height: 42px; font-size: 14px; }
    select.form-control, .sel-filter { min-height: 42px; }
    /* Disable hover transform &mdash; biar nggak nyangkut di touch */
    .stat-card:hover, .btn:hover { transform: none; }
}

/* Safe-area iOS notch */
@supports (padding: max(0px)) {
    .topbar       { padding-left: max(0.875rem, env(safe-area-inset-left)); padding-right: max(0.875rem, env(safe-area-inset-right)); }
    .page-content { padding-left: max(0.875rem, env(safe-area-inset-left)); padding-right: max(0.875rem, env(safe-area-inset-right)); padding-bottom: max(0.875rem, env(safe-area-inset-bottom)); }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-green { color: var(--green-400); }
.text-red   { color: #fca5a5; }
.text-amber { color: #fcd34d; }
.text-blue  { color: #7dd3fc; }
.text-muted { color: var(--text-m); }
.text-sm    { font-size: 12px; }
.text-xs    { font-size: 11px; }
.fw-700     { font-weight: 700; }
.mono       { font-family: 'JetBrains Mono', monospace; }

.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }

.w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* install banner */
#install-banner {
    position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--border-hi);
    border-radius: var(--rl);
    padding: 12px 16px;
    display: none; align-items: center; gap: 12px;
    box-shadow: var(--shadow), var(--glow);
    z-index: 1000; width: 320px; max-width: calc(100vw - 2rem);
    animation: slide-up 0.3s ease;
}
#install-banner.show { display: flex; }
@keyframes slide-up { from { opacity:0; transform: translateX(-50%) translateY(20px); } to { opacity:1; transform: translateX(-50%); } }

.pwa-install-btn[hidden],
.pwa-login-install[hidden],
#install-banner .js-pwa-install[hidden] {
    display: none !important;
}

.pwa-install-btn {
    min-height: 38px;
}

.pwa-login-install {
    width: 100%;
    justify-content: center;
    margin-top: 0.75rem;
}

.pwa-install-hint {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1100;
    width: min(420px, calc(100vw - 32px));
    padding: 14px 44px 14px 16px;
    border: 1px solid var(--border-hi);
    border-radius: var(--rl);
    background: var(--surface);
    color: var(--text-1);
    box-shadow: var(--shadow), var(--glow);
    animation: fade-up 0.22s ease;
}

.pwa-install-hint-title {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 4px;
}

.pwa-install-hint-text {
    color: var(--text-2);
    font-size: 12px;
    line-height: 1.5;
}

.pwa-install-hint-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: var(--r);
    background: transparent;
    color: var(--text-2);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.pwa-install-hint-close:hover {
    background: var(--surface-2);
    color: var(--text-1);
}

/* ============================================================
   CAMERA / SELFIE
   ============================================================ */
#cam-wrap video { border-radius: var(--rl); }

/* ============================================================
   REIMBURSE
   ============================================================ */
.reimb-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--rl);
    padding: 1rem 1.25rem;
}

/* ============================================================
   BADGE EXTRAS
   ============================================================ */
.badge-teal   { background: rgba(20,184,166,0.15); color: #2dd4bf; }
.badge-orange { background: rgba(249,115,22,0.15); color: #fb923c; }

/* ============================================================
   MODERN UI REFRESH
   ============================================================ */
:root {
    --green-950: #052e16;
    --green-900: #0b3b24;
    --green-800: #166534;
    --green-700: #15803d;
    --green-600: #16a34a;
    --green-500: #22c55e;
    --green-400: #4ade80;

    --slate-950: #07110d;
    --slate-900: #0d1713;
    --slate-850: #111d18;
    --slate-800: #16231e;
    --slate-700: #22332c;
    --slate-500: #64756d;
    --slate-300: #b7c4be;
    --slate-100: #edf5f1;

    --bg: #07110d;
    --surface: #0d1713;
    --surface-2: #13211b;
    --surface-3: #1a2b23;
    --border: rgba(183,196,190,0.10);
    --border-md: rgba(183,196,190,0.16);
    --border-hi: rgba(74,222,128,0.34);

    --text-1: #edf5f1;
    --text-2: #b7c4be;
    --text-3: #82dca0;
    --text-m: #7c8b84;

    --red: #ef4444;
    --red-bg: rgba(239,68,68,0.13);
    --amber: #f59e0b;
    --amb-bg: rgba(245,158,11,0.14);
    --blue: #38bdf8;
    --blu-bg: rgba(56,189,248,0.13);

    --r: 10px;
    --rl: 14px;
    --rx: 18px;
    --shadow: 0 18px 50px rgba(0,0,0,0.28);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.20);
}

body {
    background:
        radial-gradient(circle at top left, rgba(34,197,94,0.08), transparent 28rem),
        radial-gradient(circle at bottom right, rgba(56,189,248,0.06), transparent 26rem),
        var(--bg);
}

.sidebar {
    background: linear-gradient(180deg, #0b1712 0%, #0a130f 100%);
    border-right-color: rgba(183,196,190,0.12);
}

.sidebar-brand {
    padding: 1.125rem 1rem;
    gap: 12px;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #16a34a, #0ea5e9);
    box-shadow: 0 14px 34px rgba(22,163,74,0.25);
}

.brand-name { font-size: 14px; letter-spacing: -0.01em; }
.brand-sub { color: var(--text-2); }

.nav-section-label {
    color: #778780;
    letter-spacing: .08em;
    margin-top: 4px;
}

.nav-item {
    min-height: 42px;
    color: var(--text-2);
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255,255,255,0.035);
    border-color: rgba(183,196,190,0.08);
}

.nav-item.active {
    background: rgba(34,197,94,0.12);
    border-color: rgba(74,222,128,0.22);
    box-shadow: inset 0 0 0 1px rgba(74,222,128,0.05);
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(255,255,255,0.05);
    color: var(--green-400);
    font-size: 13px;
}

.sidebar-footer {
    background: rgba(255,255,255,0.02);
}

.topbar {
    height: 64px;
    background: rgba(13,23,19,0.88);
    backdrop-filter: blur(18px);
    border-bottom-color: rgba(183,196,190,0.12);
}

.topbar-title {
    font-size: 17px;
    letter-spacing: -0.02em;
}

.topbar-subtitle {
    color: var(--text-m);
}

.topbar-right {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar-menu-btn,
.notif-btn,
.modal-close {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-content {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

.card,
.stat-card,
.reimb-card {
    background: rgba(13,23,19,0.86);
    border-color: var(--border);
    box-shadow: 0 1px 0 rgba(255,255,255,0.03), var(--shadow-soft);
}

.card-header {
    background: rgba(255,255,255,0.018);
}

.card-title {
    font-size: 15px;
    letter-spacing: -0.01em;
}

.stat-grid {
    gap: 16px;
}

.stat-card {
    min-height: 118px;
    border-radius: 16px;
}

.stat-card::after {
    width: 120px;
    height: 120px;
    opacity: 0.08;
}

.stat-icon {
    color: var(--text-1);
    border: 1px solid rgba(255,255,255,0.06);
}

.stat-value {
    letter-spacing: -0.03em;
}

.btn {
    min-height: 38px;
    border-radius: 10px;
    border-color: rgba(183,196,190,0.16);
    background: rgba(255,255,255,0.045);
}

.btn:hover {
    background: rgba(255,255,255,0.075);
    border-color: rgba(183,196,190,0.28);
}

.btn-primary {
    background: linear-gradient(135deg, #15803d, #0f9f65);
    border-color: rgba(74,222,128,0.55);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #16a34a, #0ea56e);
}

.btn-danger {
    background: rgba(239,68,68,0.12);
}

.btn-amber {
    background: rgba(245,158,11,0.13);
}

.badge {
    min-height: 24px;
    padding: 4px 10px;
    border: 1px solid transparent;
}

.badge-green { border-color: rgba(34,197,94,0.22); }
.badge-blue { border-color: rgba(56,189,248,0.22); }
.badge-amber { border-color: rgba(245,158,11,0.24); }
.badge-red { border-color: rgba(239,68,68,0.24); }
.badge-gray { border-color: rgba(148,163,184,0.16); }

.form-control,
.search-box,
.sel-filter {
    min-height: 40px;
    background-color: rgba(255,255,255,0.04);
    border-color: rgba(183,196,190,0.16);
}

.form-control:hover,
.search-box:hover,
.sel-filter:hover {
    border-color: rgba(183,196,190,0.26);
}

.form-control:focus,
.search-box:focus,
.sel-filter:focus {
    border-color: rgba(74,222,128,0.62);
    box-shadow: 0 0 0 4px rgba(34,197,94,0.12);
}

.tbl-wrap {
    border-radius: 14px;
}

table {
    font-size: 13px;
}

thead th {
    background: rgba(255,255,255,0.035);
    color: #91a29a;
}

tbody tr:hover td {
    background: rgba(255,255,255,0.025);
}

.alert {
    border-radius: 12px;
    border-left-width: 0;
    border: 1px solid;
}

.alert-success { border-color: rgba(34,197,94,0.28); }
.alert-error { border-color: rgba(239,68,68,0.28); }
.alert-info { border-color: rgba(56,189,248,0.28); }
.alert-amber { border-color: rgba(245,158,11,0.28); }

.modal {
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.48);
}

.modal-header,
.modal-footer {
    background: rgba(255,255,255,0.018);
}

.empty-state {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--text-m);
}

.dash-hero {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 16px;
    margin-bottom: 1rem;
}

.dash-panel {
    background: linear-gradient(135deg, rgba(34,197,94,0.14), rgba(56,189,248,0.07));
    border: 1px solid rgba(74,222,128,0.20);
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
}

.dash-eyebrow {
    color: var(--text-2);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.dash-heading {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-top: 6px;
}

.dash-sub {
    color: var(--text-m);
    margin-top: 6px;
    font-size: 13px;
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,0.035);
    color: var(--text-1);
}

.quick-action:hover {
    border-color: var(--border-hi);
    background: rgba(255,255,255,0.06);
}

.quick-action-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34,197,94,0.14);
    color: var(--green-400);
}

@media (max-width: 768px) {
    .page-content {
        padding: 1rem;
    }

    .topbar {
        height: auto;
        min-height: 58px;
        align-items: flex-start;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .topbar-right {
        width: auto;
        max-width: 52%;
    }

    .topbar-right .btn {
        padding-inline: 10px;
    }

    .dash-hero {
        grid-template-columns: 1fr;
    }

    .dash-heading {
        font-size: 21px;
    }

    .quick-action-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        min-height: 102px;
    }
}

@media (max-width: 640px) {
    .tbl-wrap table.responsive-card-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    .responsive-card-table thead {
        display: none;
    }

    .responsive-card-table tbody,
    .responsive-card-table tr,
    .responsive-card-table td {
        display: block;
        width: 100%;
    }

    .responsive-card-table tbody tr {
        background: rgba(255,255,255,0.035);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 10px 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.16);
    }

    .responsive-card-table tbody td {
        border: 0;
        padding: 8px 0;
        display: flex;
        justify-content: space-between;
        gap: 16px;
        color: var(--text-1);
    }

    .responsive-card-table tbody td::before {
        content: attr(data-label);
        flex: 0 0 38%;
        color: var(--text-m);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .05em;
    }

    .responsive-card-table tbody td:first-child {
        padding-top: 0;
        display: block;
    }

    .responsive-card-table tbody td:first-child::before {
        display: none;
    }

    .responsive-card-table .flex {
        justify-content: flex-end;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .login-card {
        border-radius: 18px;
    }

    #install-banner {
        bottom: 10px;
    }
}

/* ============================================================
   UI POLISH 2026 - SaaS HR visual pass
   ============================================================ */
:root {
    --green-950: #022c22;
    --green-900: #064e3b;
    --green-800: #065f46;
    --green-700: #047857;
    --green-600: #059669;
    --green-500: #10b981;
    --green-400: #34d399;
    --green-300: #6ee7b7;
    --green-100: #d1fae5;
    --green-50: #ecfdf5;

    --bg: #0f172a;
    --surface: #111827;
    --surface-2: #182235;
    --surface-3: #1f2a3d;
    --border: rgba(148,163,184,0.14);
    --border-md: rgba(148,163,184,0.24);
    --border-hi: rgba(45,212,191,0.42);

    --text-1: #f8fafc;
    --text-2: #cbd5e1;
    --text-3: #94a3b8;
    --text-m: #8ea0b8;

    --red: #ef4444;
    --red-bg: rgba(239,68,68,0.13);
    --amber: #f59e0b;
    --amb-bg: rgba(245,158,11,0.14);
    --blue: #3b82f6;
    --blu-bg: rgba(59,130,246,0.13);
    --teal: #14b8a6;
    --teal-bg: rgba(20,184,166,0.13);

    --r: 10px;
    --rl: 14px;
    --rx: 18px;
    --shadow: 0 18px 52px rgba(2,6,23,0.32);
    --shadow-soft: 0 10px 30px rgba(2,6,23,0.24);
}

body {
    background: linear-gradient(180deg, #111827 0%, #0f172a 44%, #111827 100%);
}

a { color: #5eead4; }
a:hover { color: #99f6e4; }

.sidebar {
    background: #0b1220;
    border-right-color: rgba(148,163,184,0.14);
}

.brand-logo {
    background: linear-gradient(135deg, #059669, #0ea5e9);
}

.nav-item.active {
    background: rgba(20,184,166,0.13);
    border-color: rgba(45,212,191,0.28);
}

.nav-icon {
    background: rgba(15,23,42,0.7);
    color: #5eead4;
}

.topbar {
    background: rgba(15,23,42,0.9);
    border-bottom-color: rgba(148,163,184,0.14);
}

.card,
.stat-card,
.reimb-card,
.dash-panel {
    background: rgba(17,24,39,0.88);
    border-color: rgba(148,163,184,0.14);
}

.dash-panel {
    background: linear-gradient(135deg, rgba(20,184,166,0.14), rgba(59,130,246,0.08));
}

.btn-primary {
    background: linear-gradient(135deg, #059669, #0d9488);
    border-color: rgba(45,212,191,0.52);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

.badge-green,
.badge-teal {
    background: rgba(16,185,129,0.14);
    color: #6ee7b7;
    border-color: rgba(16,185,129,0.25);
}

.badge-blue {
    background: rgba(59,130,246,0.14);
    color: #93c5fd;
    border-color: rgba(59,130,246,0.25);
}

.badge-amber {
    background: rgba(245,158,11,0.14);
    color: #fcd34d;
    border-color: rgba(245,158,11,0.28);
}

.badge-red {
    background: rgba(239,68,68,0.14);
    color: #fca5a5;
    border-color: rgba(239,68,68,0.28);
}

.form-control,
.search-box,
.sel-filter {
    background-color: rgba(15,23,42,0.58);
    border-color: rgba(148,163,184,0.20);
}

.form-control:focus,
.search-box:focus,
.sel-filter:focus {
    border-color: rgba(45,212,191,0.68);
    box-shadow: 0 0 0 4px rgba(20,184,166,0.13);
}

.tbl-wrap {
    border: 1px solid rgba(148,163,184,0.12);
    background: rgba(15,23,42,0.22);
}

thead th {
    background: rgba(15,23,42,0.62);
    color: #94a3b8;
}

.modal {
    background: #111827;
    border-color: rgba(148,163,184,0.18);
}

.modal-close,
.icon-btn {
    color: var(--text-2);
}

.modal-close:hover,
.icon-btn:hover {
    color: var(--text-1);
    background: rgba(148,163,184,0.12);
}

.ui-icon,
.nav-svg,
.btn .ui-icon,
.quick-action-icon .ui-icon {
    --icon: none;
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask: var(--icon) no-repeat center / contain;
    mask: var(--icon) no-repeat center / contain;
    vertical-align: -0.16em;
}

.ui-icon-sm { width: 14px; height: 14px; }
.ui-icon-md { width: 18px; height: 18px; }
.ui-icon-lg { width: 28px; height: 28px; }

.i-x { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E"); }
.i-check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.i-camera { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3Z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E"); }
.i-bell { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 21a2 2 0 0 0 3.4 0'/%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3C/svg%3E"); }
.i-menu { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 18h16'/%3E%3C/svg%3E"); }
.i-home { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E"); }
.i-users { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.i-calendar { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E"); }
.i-clock { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }
.i-file-text { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3Cpath d='M10 9H8'/%3E%3C/svg%3E"); }
.i-wallet { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3v4a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2V5'/%3E%3Cpath d='M18 12h.01'/%3E%3C/svg%3E"); }
.i-message { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H7l-4 4V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/svg%3E"); }
.i-building { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='16' height='20' x='4' y='2' rx='2'/%3E%3Cpath d='M9 22v-4h6v4'/%3E%3Cpath d='M8 6h.01'/%3E%3Cpath d='M16 6h.01'/%3E%3Cpath d='M12 6h.01'/%3E%3Cpath d='M12 10h.01'/%3E%3Cpath d='M12 14h.01'/%3E%3Cpath d='M16 10h.01'/%3E%3Cpath d='M16 14h.01'/%3E%3Cpath d='M8 10h.01'/%3E%3Cpath d='M8 14h.01'/%3E%3C/svg%3E"); }
.i-download { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3Cpath d='M12 15V3'/%3E%3C/svg%3E"); }
.i-info { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E"); }
.i-alert { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E"); }
.i-chart { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m19 9-5 5-4-4-3 3'/%3E%3C/svg%3E"); }
.i-rotate { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7'/%3E%3Cpath d='M21 3v6h-6'/%3E%3C/svg%3E"); }
.i-log-out { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='m16 17 5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E"); }
.i-eye { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.i-eye-off { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.9 4.24A9.8 9.8 0 0 1 12 4c6.5 0 10 8 10 8a18.5 18.5 0 0 1-2.16 3.19'/%3E%3Cpath d='M14.12 14.12A3 3 0 0 1 9.88 9.88'/%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M6.6 6.6C3.6 8.65 2 12 2 12s3.5 8 10 8a9.9 9.9 0 0 0 4.4-1.04'/%3E%3C/svg%3E"); }
.i-paperclip { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 1 1-2.82-2.83l8.48-8.48'/%3E%3C/svg%3E"); }
.i-printer { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V2h12v7'/%3E%3Cpath d='M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2'/%3E%3Cpath d='M6 14h12v8H6z'/%3E%3C/svg%3E"); }
.i-arrow-left { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 19-7-7 7-7'/%3E%3Cpath d='M19 12H5'/%3E%3C/svg%3E"); }
.i-arrow-right { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }

.icon-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.section-panel {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: rgba(15,23,42,0.38);
}

.section-panel-success {
    border-color: rgba(16,185,129,0.24);
    background: rgba(16,185,129,0.07);
}

.section-panel-danger {
    border-color: rgba(239,68,68,0.24);
    background: rgba(239,68,68,0.07);
}

.section-panel-muted {
    background: rgba(15,23,42,0.46);
}

.section-heading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}

.summary-strip {
    margin-top: 1rem;
    padding: 14px;
    border-radius: var(--r);
    border: 1px solid rgba(45,212,191,0.34);
    background: rgba(20,184,166,0.10);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
