/* ==========================================================================
   Gharkul 2026 — flat design system
   Sits on top of Bootstrap 5 and re-skins it with tokens. No gradients:
   solid fills, crisp borders, tinted surfaces.
   ========================================================================== */

:root {
    /* Brand */
    --brand-50:  #eef3ff;
    --brand-100: #dce6ff;
    --brand-200: #b9ccff;
    --brand-500: #3b63f5;
    --brand-600: #2a4fe0;
    --brand-700: #1f3cb8;
    --navy:      #0c1a33;
    --navy-2:    #13264a;
    --accent:    #e8590c;
    --accent-50: #fff4ec;

    /* Neutrals */
    --ink:        #0f172a;
    --ink-2:      #334155;
    --muted:      #64748b;
    --faint:      #94a3b8;
    --line:       #e3e8ef;
    --line-soft:  #f0f3f7;
    --surface:    #ffffff;
    --surface-2:  #f7f9fc;
    --bg:         #f2f5f9;

    /* Status */
    --success:    #0f9f6e;
    --success-50: #e8f8f1;
    --warning:    #d97706;
    --warning-50: #fff7e6;
    --danger:     #dc2626;
    --danger-50:  #fdecec;
    --info:       #0284c7;
    --info-50:    #e6f4fb;

    /* Shape & depth */
    --radius-sm: 8px;
    --radius:    12px;
    --radius-lg: 16px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 6px rgba(15, 23, 42, .04);
    --shadow:    0 6px 20px rgba(15, 23, 42, .08);
    --shadow-lg: 0 20px 48px rgba(15, 23, 42, .18);
    --ring:      0 0 0 3px rgba(42, 79, 224, .18);

    --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Plus Jakarta Sans", var(--font-sans);

    /* Bootstrap hooks */
    --bs-body-font-family: var(--font-sans);
    --bs-body-color: var(--ink-2);
    --bs-body-bg: var(--bg);
    --bs-primary: var(--brand-600);
    --bs-primary-rgb: 42, 79, 224;
    --bs-border-color: var(--line);
    --bs-link-color: var(--brand-600);
    --bs-link-hover-color: var(--brand-700);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html, body { background-color: var(--bg); }

body {
    font-family: var(--font-sans);
    color: var(--ink-2);
    font-size: 14.5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--ink);
    letter-spacing: -.015em;
    font-weight: 700;
}

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
::selection { background: var(--brand-100); color: var(--ink); }

.tnum { font-variant-numeric: tabular-nums; }

.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main {
    flex: 1 0 auto;
    padding-top: 18px;
    padding-bottom: 40px;
    animation: page-in .35s ease-out both;
}

@keyframes page-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Top bar + navbar
   -------------------------------------------------------------------------- */
.topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, .78);
    font-size: 12.5px;
    font-weight: 500;
}
.topbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 20px;
    min-height: 36px;
    padding-top: 6px;
    padding-bottom: 6px;
}
.topbar-items { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.topbar i { color: #ffb380; margin-right: 6px; }
.topbar strong { color: #fff; font-weight: 600; }

.app-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}
.app-nav .navbar { padding: 10px 0; }

.app-nav .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--ink);
    margin-right: 28px;
}
.brand-mark {
    width: 54px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.brand-mark img { width: 46px; height: auto; }
.brand-text span { display: block; line-height: 1.1; font-size: 17px; }
.brand-text small {
    display: block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 2px;
}

.app-nav .navbar-nav { gap: 2px; }
.app-nav .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-2);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 12px !important;
    border-radius: 8px;
    transition: background .15s, color .15s;
}
.app-nav .nav-link i { font-size: 13px; color: var(--faint); transition: color .15s; }
.app-nav .nav-link:hover { background: var(--line-soft); color: var(--ink); }
.app-nav .nav-link.router-link-exact-active { color: var(--brand-700); background: var(--brand-50); font-weight: 600; }
.app-nav .nav-link.router-link-exact-active i { color: var(--brand-600); }

.app-nav .navbar-toggler { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.app-nav .navbar-toggler:focus { box-shadow: var(--ring); }

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 4px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}
.user-chip:hover { border-color: var(--brand-200); box-shadow: var(--ring); color: var(--ink); }
.user-chip::after { margin-left: 4px; color: var(--muted); }
.user-chip .who { line-height: 1.15; text-align: left; }
.user-chip .who b { display: block; font-weight: 600; font-size: 13.5px; }
.user-chip .who small { color: var(--muted); font-size: 11.5px; }

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    display: inline-grid;
    place-items: center;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}
.avatar.alt { background: var(--brand-600); }

.dropdown-menu {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 6px;
    min-width: 220px;
    animation: pop .15s ease-out both;
}
.dropdown-menu.show { left: auto; right: 0; }
.app-nav .navbar-nav .dropdown-menu.show { left: 0; right: auto; }
.dropdown-item.router-link-exact-active { background: var(--brand-50); color: var(--brand-700); }
.dropdown-item.router-link-exact-active i { color: var(--brand-600); }
.dropdown-item {
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
    display: flex;
    align-items: center;
    gap: 10px;
}
.dropdown-item i { width: 16px; color: var(--muted); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--line-soft); color: var(--ink); }
.dropdown-item.text-danger, .dropdown-item.text-danger i { color: var(--danger) !important; }
.dropdown-header { font-size: 12px; color: var(--muted); padding: 6px 12px 8px; }
.dropdown-divider { border-color: var(--line); margin: 6px 0; }

@keyframes pop {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

@media (max-width: 991.98px) {
    .app-nav .navbar-collapse { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
    .app-nav .user-chip { margin: 8px 0 4px; display: inline-flex; }
}

/* --------------------------------------------------------------------------
   Page header (compact)
   -------------------------------------------------------------------------- */
.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 16px;
}
.crumbs, .page-eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
}
.crumbs { color: var(--muted); }
.crumbs i { font-size: 8px; color: var(--faint); }
.page-eyebrow { letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.page-title { font-size: 1.4rem; font-weight: 800; line-height: 1.2; margin: 0; }
.page-subtitle { color: var(--muted); margin: 2px 0 0; font-size: 13.5px; line-height: 1.35; }
.page-header .btn { min-height: 38px; padding-top: 7px; padding-bottom: 7px; }
.page-header .live-clock { padding: 7px 12px; font-size: 13px; }
@media (max-width: 575.98px) {
    .page-subtitle { display: none; }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15.5px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-header:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.card-header .card-hint { font-family: var(--font-sans); font-weight: 500; font-size: 12.5px; color: var(--muted); }
.card-body { padding: 20px; }
.card-footer {
    background: var(--surface-2);
    border-top: 1px solid var(--line);
    padding: 14px 20px;
}
.card-footer:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card-footer .btn { margin-left: 10px; }

.icon-tile {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: var(--brand-50);
    color: var(--brand-600);
    font-size: 13px;
    flex-shrink: 0;
}
.icon-tile.orange { background: var(--accent-50); color: var(--accent); }
.icon-tile.green  { background: var(--success-50); color: var(--success); }
.icon-tile.amber  { background: var(--warning-50); color: var(--warning); }
.icon-tile.red    { background: var(--danger-50); color: var(--danger); }
.icon-tile.sky    { background: var(--info-50); color: var(--info); }

/* KPI tiles */
.kpi {
    height: 100%;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}
.kpi-value small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.kpi-foot { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kpi-foot b { color: var(--ink-2); font-weight: 600; }

.meter {
    height: 8px;
    border-radius: 99px;
    background: var(--line-soft);
    overflow: hidden;
    display: flex;
}
.meter > span { display: block; height: 100%; background: var(--brand-600); border-radius: 99px; transition: width .6s ease; }
.meter.thin { height: 6px; }
.meter .ok   { background: var(--success); }
.meter .warn { background: var(--warning); }
.meter.stack > span { border-radius: 0; }

.delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: var(--success-50);
    color: var(--success);
}
.delta.neutral { background: var(--line-soft); color: var(--ink-2); }
.delta.warn { background: var(--warning-50); color: var(--warning); }

/* Event banner */
.event-banner {
    position: relative;
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 24px 26px;
    margin-bottom: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: center;
}
.event-banner::before {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 40px solid rgba(255, 255, 255, .04);
}
.event-banner h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 800; margin: 6px 0 10px; }
.event-banner .tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.event-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: rgba(255, 255, 255, .75); font-size: 13.5px; }
.event-meta i { color: #ffb380; margin-right: 6px; }
.countdown { display: flex; gap: 10px; justify-content: flex-end; position: relative; }
.countdown .unit {
    min-width: 76px;
    text-align: center;
    padding: 12px 10px;
    border-radius: 12px;
    background: var(--navy-2);
    border: 1px solid rgba(255, 255, 255, .08);
}
.countdown .unit b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown .unit small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.countdown-label { text-align: right; font-size: 12.5px; color: rgba(255, 255, 255, .6); margin-bottom: 8px; }
@media (max-width: 767.98px) {
    .event-banner { grid-template-columns: 1fr; }
    .countdown, .countdown-label { justify-content: flex-start; text-align: left; }
    .countdown .unit { min-width: 0; flex: 1; }
}

/* Zone list */
.zone-list { display: grid; gap: 14px; }
.zone-row { display: grid; grid-template-columns: 14px 1fr auto; gap: 4px 12px; align-items: center; }
.zone-swatch { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(15, 23, 42, .12); }
.zone-name { font-weight: 600; color: var(--ink); font-size: 14px; }
.zone-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.zone-count b { color: var(--ink); }
.zone-row .meter { grid-column: 2 / 4; }

/* Activity list */
.activity { list-style: none; margin: 0; padding: 0; }
.activity li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}
.activity li:last-child { border-bottom: 0; padding-bottom: 0; }
.activity li:first-child { padding-top: 0; }
.activity .grow { flex: 1; min-width: 0; }
.activity .title { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity .sub { font-size: 12.5px; color: var(--muted); }
.activity .amt { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }

.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mini-stat { padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.mini-stat small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.mini-stat b { font-family: var(--font-display); font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-group { margin-bottom: 1.1rem; }

label, .form-label {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
}

.form-control, .form-select, select.form-control {
    border: 1px solid var(--line);
    border-radius: 10px;
    background-color: var(--surface);
    color: var(--ink);
    font-size: 14.5px;
    padding: 9px 13px;
    min-height: 42px;
    box-shadow: var(--shadow-xs);
    transition: border-color .15s, box-shadow .15s;
}
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 12px 10px;
}
textarea.form-control { min-height: 92px; }
.form-control::placeholder { color: var(--faint); }
.form-control:hover:not(:disabled):not(:focus) { border-color: #cdd5e0; }
.form-control:focus, .form-select:focus {
    color: var(--ink);
    background-color: var(--surface);
    border-color: var(--brand-500);
    outline: 0;
    box-shadow: var(--ring);
}
.form-control:disabled, .form-control[readonly] { background-color: var(--surface-2); color: var(--muted); box-shadow: none; }
.form-control.is-invalid { border-color: var(--danger); background-image: none; padding-right: 13px; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); }
.invalid-feedback { font-size: 12.5px; font-weight: 500; color: var(--danger); }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

.input-icon { position: relative; }
.input-icon > i {
    position: absolute;
    left: 13px;
    top: 21px;
    transform: translateY(-50%);
    color: var(--faint);
    font-size: 14px;
    pointer-events: none;
}
.input-icon > .form-control { padding-left: 38px; }

.form-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 16px;
}
.form-section .step {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 12.5px;
    font-weight: 700;
}
.form-section h6 { margin: 0; font-size: 15px; }
.form-section p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 16px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn:focus, .btn.focus, .btn:focus-visible { outline: 0; box-shadow: var(--ring); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand-600); border: 1px solid var(--brand-600); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn-primary:disabled { background: var(--brand-200); border-color: var(--brand-200); }

.btn-accent { background: var(--accent); border: 1px solid var(--accent); color: #fff; }
.btn-accent:hover { background: #c94d0a; border-color: #c94d0a; color: #fff; }

.btn-success { background: var(--success); border: 1px solid var(--success); color: #fff; }
.btn-success:hover { background: #0b8a5f; border-color: #0b8a5f; color: #fff; }

.btn-danger, .btn-ghost {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink-2);
    box-shadow: var(--shadow-xs);
}
.btn-danger:hover, .btn-ghost:hover { background: var(--line-soft); border-color: #cdd5e0; color: var(--ink); }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-responsive { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: var(--surface-2);
    margin-bottom: 0;
    font-size: 14px;
    color: var(--ink-2);
    border-color: var(--line-soft);
}
.table > :not(caption) > * > * { border-left-width: 0 !important; border-right-width: 0 !important; }
.table-bordered > :not(caption) > * { border-width: 0; }
.table thead th {
    background: var(--surface-2);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line) !important;
}
.table thead tr:first-child th:first-child { border-top-left-radius: var(--radius); }
.table thead tr:first-child th:last-child  { border-top-right-radius: var(--radius); }
.table tbody td {
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: 1px solid var(--line-soft);
    white-space: nowrap;
}
.table.table-sm tbody td { padding: 10px 14px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover > td { background: var(--surface-2); }
.table tbody tr.row-approved > td:first-child { box-shadow: inset 3px 0 0 var(--success); }
.table tbody tr.row-editing > td { background: var(--brand-50); }
.side-form { position: sticky; top: 84px; }
.side-form .req { color: var(--danger); }
.table tfoot td { padding: 12px 14px; background: var(--surface-2); border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); }

.cell-main { font-weight: 600; color: var(--ink); }
.cell-sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }

.stall-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--ink);
}
.stall-tag i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    border: 1px solid rgba(15, 23, 42, .15);
    display: inline-block;
}

.table .empty-row td { padding: 44px 16px; text-align: center; color: var(--muted); white-space: normal; }
.empty-row i { display: block; font-size: 26px; margin-bottom: 10px; color: #cbd5e1; }

/* Row action icons */
.icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    font-size: 13px;
    border: 1px solid var(--line);
    background: var(--surface);
    transition: all .15s;
}
.icon.blue { color: var(--brand-600); }
.icon.blue:hover { background: var(--brand-50); border-color: var(--brand-200); }
.icon.red { color: var(--danger); }
.icon.red:hover { background: var(--danger-50); border-color: #f6c4c4; }

/* Status pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    background: var(--warning-50);
    color: #b45309;
    border: 1px solid #f8deb0;
    line-height: 1.4;
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.approved { background: var(--success-50); color: #08805a; border-color: #b6e8d3; }
button.status-pill { cursor: pointer; }
button.status-pill:hover { box-shadow: 0 0 0 3px rgba(217, 119, 6, .14); }
button.status-pill.approved:hover { box-shadow: 0 0 0 3px rgba(15, 159, 110, .14); }

.role-badge { display: inline-flex; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--line-soft); color: var(--ink-2); }
.role-badge.admin { background: var(--brand-50); color: var(--brand-700); }

.table-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.per-page { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; }
.per-page select.form-control { width: 80px; min-height: 36px; padding-top: 5px; padding-bottom: 5px; }

.summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    margin-bottom: 18px;
    overflow: hidden;
}
.summary-strip > div { padding: 14px 18px; border-right: 1px solid var(--line); }
.summary-strip > div:last-child { border-right: 0; }
.summary-strip small { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.summary-strip b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 800; color: var(--ink); margin-top: 2px; font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) {
    .summary-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* --------------------------------------------------------------------------
   Floor plan
   -------------------------------------------------------------------------- */
.floorplan-scroll {
    overflow: auto;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--line);
    padding: 16px;
}
.group { position: relative; color: white; width: max-content; margin: 0 auto; }
.group > img:last-child { display: block; border-radius: 6px; }
.group-text { position: absolute; z-index: 2; }
.booked-slot {
    display: grid;
    place-items: center;
    background: rgba(220, 38, 38, .72);
    border: 2px solid #b91c1c;
    border-radius: 3px;
    color: #fff !important;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
    cursor: help;
    transition: background .15s;
}
.booked-slot:hover { background: rgba(185, 28, 28, .9); }
.free-slot {
    position: absolute;
    z-index: 1;
    border: 2px solid var(--success);
    background: rgba(15, 159, 110, .16);
    border-radius: 3px;
    pointer-events: none;
}

.seg {
    display: inline-flex;
    padding: 3px;
    border-radius: 10px;
    background: var(--line-soft);
    border: 1px solid var(--line);
}
.seg button {
    border: 0;
    background: transparent;
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }

.live-clock {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    font-weight: 600;
    font-size: 13.5px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 2s infinite; }
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(15, 159, 110, .5); }
    70%  { box-shadow: 0 0 0 8px rgba(15, 159, 110, 0); }
    100% { box-shadow: 0 0 0 0 rgba(15, 159, 110, 0); }
}

.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); font-weight: 500; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend .booked { width: 12px; height: 12px; border: 2px solid #b91c1c; background: rgba(220, 38, 38, .72); border-radius: 3px; }
.legend .free { width: 12px; height: 12px; border: 2px solid var(--success); background: rgba(15, 159, 110, .16); border-radius: 3px; }

/* Info list (sidebars) */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list b { display: block; color: var(--ink); font-size: 14px; }
.info-list span { font-size: 13px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.app-footer { flex-shrink: 0; background: var(--navy); color: rgba(255, 255, 255, .65); font-size: 13px; }
.app-footer .footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    padding: 36px 0 28px;
}
.app-footer h6 { color: #fff; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.app-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.app-footer i { color: #ffb380; width: 18px; }
.app-footer a { color: #fff; font-weight: 600; }
.app-footer a:hover { color: #ffb380; }
.app-footer .footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.app-footer .footer-brand img { width: 60px; background: #fff; border-radius: 8px; padding: 4px; }
.app-footer .footer-brand b { color: #fff; font-family: var(--font-display); font-size: 18px; }
.app-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 16px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}
@media (max-width: 767.98px) {
    .app-footer .footer-main { grid-template-columns: 1fr; gap: 20px; }
}

/* --------------------------------------------------------------------------
   Toasts & loading overlay
   -------------------------------------------------------------------------- */
.mosha__toast { border-radius: 12px !important; box-shadow: var(--shadow-lg) !important; font-family: var(--font-sans) !important; }
.vl-overlay .vl-background { background: rgba(247, 249, 252, .7) !important; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.text-muted-2 { color: var(--muted) !important; }
.text-ink { color: var(--ink) !important; }
.gap-actions { display: inline-flex; gap: 6px; align-items: center; }

.skeleton {
    display: inline-block;
    min-width: 48px;
    height: 1em;
    border-radius: 6px;
    background: var(--line-soft);
    animation: shimmer 1.2s ease-in-out infinite;
}
@keyframes shimmer { 50% { opacity: .5; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
