:root {
    --navy:#101c35;
    --navy2:#172746;
    --blue:#3978f6;
    --bg:#f4f6fb;
    --ink:#1d2940;
    --muted:#7c879b;
}
* {
    box-sizing:border-box;
}
body {
    margin:0;
    background:var(--bg);
    color:var(--ink);
    font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;
    font-size:14px;
}
.app-shell {
    min-height:100vh;
}
.sidebar {
    width:248px;
    background:var(--navy);
    color:#fff;
    position:fixed;
    inset:0 auto 0 0;
    padding:24px 16px;
    display:flex;
    flex-direction:column;
    z-index:5;
}
.side-brand {
    display:flex;
    align-items:center;
    gap:11px;
    padding:0 8px 28px;
    border-bottom:1px solid #ffffff18;
}
.side-brand b {
    display:block;
    font-size:15px;
}
.side-brand small {
    color:#92a2c0;
    font-size:9px;
    letter-spacing:2px;
}
.brand-mark {
    width:40px;
    height:40px;
    border-radius:13px;
    background:linear-gradient(135deg,#478cff,#7758e9);
    display:grid;
    place-items:center;
    font-weight:900;
    color:#fff;
    flex-shrink:0;
}
.sidebar nav {
    padding-top:20px;
    display:flex;
    flex-direction:column;
    gap:5px;
}
.sidebar nav a {
    color:#aab7ce;
    text-decoration:none;
    padding:11px 13px;
    border-radius:9px;
    font-weight:550;
}
.sidebar nav a:hover,.sidebar nav a.active {
    background:#ffffff14;
    color:#fff;
}
.nav-label {
    font-size:9px;
    color:#7486a7;
    letter-spacing:1.5px;
    padding:23px 13px 7px;
}
.side-bottom {
    margin-top:auto;
    border-top:1px solid #ffffff18;
    padding:17px 8px 0;
    display:flex;
    flex-direction:column;
    gap:9px;
    color:#aab7ce;
}
.side-bottom a {
    color:#fff;
    text-decoration:none;
}
.main-area {
    margin-left:248px;
    min-height:100vh;
}
.topbar {
    height:70px;
    background:#fff;
    border-bottom:1px solid #e9edf4;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 34px;
}
.user-chip {
    font-weight:600;
}
.online-dot {
    display:inline-block;
    width:8px;
    height:8px;
    border-radius:50%;
    background:#23b77b;
    margin-right:8px;
}
.content {
    padding:30px 34px;
    max-width:1600px;
    margin:auto;
}
.welcome-row,.page-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
}
.welcome-row h2,.page-heading h2 {
    font-size:25px;
    font-weight:750;
    margin:0 0 5px;
}
.welcome-row p,.page-heading p {
    color:var(--muted);
    margin:0;
}
.date-pill {
    background:#fff;
    border:1px solid #e8edf5;
    padding:9px 14px;
    border-radius:9px;
    color:#64718a;
}
.stats-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
    margin-bottom:22px;
}
.stat-card,.panel,.station-card,.session-card {
    background:#fff;
    border:1px solid #e9edf4;
    border-radius:13px;
    padding:20px;
    box-shadow:0 3px 15px #263b5b06;
}
.stat-card span {
    display:block;
    color:#7c879b;
    font-size:12px;
    margin-bottom:10px;
}
.stat-card strong {
    display:block;
    font-size:25px;
    letter-spacing:-.5px;
}
.stat-card small {
    color:#9aa4b5;
    font-size:11px;
}
.quick-actions {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:22px;
}
.quick-actions a {
    background:#eaf1ff;
    color:#2865d7;
    text-decoration:none;
    padding:10px 14px;
    border-radius:8px;
    font-weight:650;
    font-size:12px;
}
.panel h5,.panel-head h5 {
    font-size:16px;
    font-weight:700;
    margin:0 0 5px;
}
.panel-head {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:17px;
}
.panel-head small {
    color:var(--muted);
}
.panel-head a {
    color:var(--blue);
    text-decoration:none;
}
.table {
    font-size:12px;
    vertical-align:middle;
    margin:0;
}
.table thead th {
    color:#8b96a9;
    font-weight:650;
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.6px;
    border-bottom-color:#edf0f5;
    padding:12px;
}
.table td {
    padding:13px 12px;
    border-bottom-color:#f0f2f6;
}
.status {
    font-size:10px;
    padding:5px 9px;
    border-radius:30px;
    font-weight:700;
}
.busy {
    background:#fff0e8;
    color:#d56d32;
}
.done,.free {
    background:#e7f8f0;
    color:#21875e;
}
.maint {
    background:#fff5d9;
    color:#a97916;
}
.form-label {
    font-size:12px;
    font-weight:650;
    color:#58657b;
}
.form-control,.form-select {
    font-size:13px;
    border-color:#e0e6ef;
    padding:10px 12px;
    border-radius:8px;
}
.btn {
    font-size:12px;
    font-weight:650;
    border-radius:8px;
    padding:10px 14px;
}
.btn-primary {
    background:var(--blue);
    border-color:var(--blue);
}
.session-card {
    height:100%;
    border-color:#e6ebf4;
}
.session-card h5 {
    font-size:17px;
}
.session-card small {
    color:#8994a7;
}
.type-tag {
    background:#eef3ff;
    color:#376bd0;
    border-radius:5px;
    padding:5px 8px;
    font-size:10px;
    font-weight:750;
}
.live-time {
    font-size:20px;
    color:#df803b;
}
.session-bottom {
    border-top:1px solid #edf0f5;
    margin-top:18px;
    padding-top:15px;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
}
.session-bottom h4 {
    font-size:20px;
    margin:4px 0;
}
.session-bottom form {
    width:170px;
}
.station-card h5 {
    font-size:17px;
}
.station-card h3 {
    font-size:22px;
    margin:12px 0 0;
}
.station-card h3 small {
    font-size:11px;
    color:#8792a5;
}
.empty-state {
    text-align:center;
    padding:35px;
    color:#8994a7;
    background:#fafbfd;
    border:1px dashed #dce3ee;
    border-radius:10px;
    width:100%;
}
.footer-note {
    padding:10px 34px 24px;
    color:#9aa4b5;
    font-size:11px;
}
.login-wrap {
    min-height:100vh;
    display:grid;
    place-items:center;
    background:radial-gradient(circle at 20% 20%,#273f70,var(--navy) 60%);
}
.login-card {
    background:#fff;
    width:min(420px,92vw);
    padding:36px;
    border-radius:18px;
    box-shadow:0 25px 80px #0004;
}
.login-card .brand-mark {
    margin-bottom:20px;
}
.login-card h3 {
    font-weight:800;
}
.login-card p {
    margin-bottom:25px;
}
.login-card .form-control {
    padding:12px;
}
.login-card .btn {
    padding:13px;
}
.alert {
    font-size:13px;
}
.print-only {
    display:none;
}
@media(max-width:1000px) {
    .sidebar {
        width:210px;
    }
    .main-area {
        margin-left:210px;
    }
    .stats-grid {
        grid-template-columns:repeat(2,1fr);
    }
    .content {
        padding:24px 20px;
    }
}
@media(max-width:700px) {
    .sidebar {
        position:relative;
        width:100%;
        height:auto;
        padding:12px;
    }
    .side-brand {
        padding-bottom:12px;
    }
    .sidebar nav {
        padding-top:10px;
        display:grid;
        grid-template-columns:repeat(2,1fr);
    }
    .nav-label {
        grid-column:1/-1;
        padding:10px;
    }
    .side-bottom {
        display:none;
    }
    .main-area {
        margin:0;
    }
    .topbar {
        padding:0 16px;
    }
    .content {
        padding:20px 14px;
    }
    .stats-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:9px;
    }
    .stat-card {
        padding:14px;
    }
    .stat-card strong {
        font-size:19px;
    }
    .welcome-row h2,.page-heading h2 {
        font-size:21px;
    }
    .date-pill {
        display:none;
    }
}
@media print {
    .sidebar,.topbar,.quick-actions,.btn,.page-heading form {
        display:none!important;
    }
    .main-area {
        margin:0;
    }
    .content {
        padding:0;
    }
    .panel,.stat-card {
        box-shadow:none;
    }
}
/* Refined interaction and accessibility states. */
:focus-visible {
    outline: 3px solid #8db4ff;
    outline-offset: 2px;
}
.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.table tbody tr[hidden] {
    display: none;
}
.session-card {
    transition: border-color .18s ease, box-shadow .18s ease;
}
.session-card:hover, .station-card:hover {
    border-color: #cbd8ef;
    box-shadow: 0 8px 24px #263b5b0d;
}
.sidebar nav a {
    transition: background .18s ease, color .18s ease;
}
.login-card {
    animation: card-enter .35s ease both;
}
@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}


/* Dashboard and reporting charts */
.chart-wrap {
    position: relative;
    width: 100%;
    height: 290px;
}
.chart-wrap-doughnut {
    height: 270px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
@media (max-width: 767.98px) {
    .chart-wrap { height: 250px; }
    .chart-wrap-doughnut { height: 240px; }
}
@media print {
    .chart-wrap { break-inside: avoid; }
    .quick-actions, .sidebar, .topbar, .panel form { display: none !important; }
}

/* Professional finishing: navigation, account tools, receipts and customer pages. */
.sidebar { overflow-y: auto; }
.sidebar-logout {
    border: 0;
    background: transparent;
    color: #fff;
    padding: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.sidebar-logout:hover { color: #bcd0ff; }
.stats-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.account-detail {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f5;
}
.account-detail:last-child { border-bottom: 0; }
.account-detail span { color: var(--muted); }
.account-detail b { text-align: right; overflow-wrap: anywhere; }
.receipt-paper {
    width: min(100%, 720px);
    margin: 0 auto 30px;
    padding: 34px;
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 14px;
    box-shadow: 0 8px 30px #263b5b0a;
}
.receipt-paper h3 { font-size: 21px; font-weight: 800; }
.receipt-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 22px;
    padding: 16px 0;
    border-top: 1px dashed #d8dfeb;
    border-bottom: 1px dashed #d8dfeb;
}
.receipt-meta div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.receipt-meta span { color: var(--muted); font-size: 11px; }
.receipt-meta b { font-size: 13px; overflow-wrap: anywhere; }
.receipt-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding: 16px;
    border-radius: 10px;
    background: #f3f6fc;
}
.receipt-total span { color: #58657b; font-weight: 650; }
.receipt-total strong { font-size: 22px; }
.table-search { min-width: 170px; }
.panel { min-width: 0; }
.panel-head { gap: 14px; flex-wrap: wrap; }
.form-text { font-size: 11px; }
@media (max-width: 700px) {
    .stats-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .receipt-paper { padding: 20px 15px; border-radius: 10px; }
    .receipt-meta { gap: 10px; }
    .receipt-meta b { font-size: 12px; }
}
@media print {
    @page { size: auto; margin: 12mm; }
    body { background: #fff !important; }
    .receipt-actions, .sidebar, .topbar, .footer-note, .alert { display: none !important; }
    .main-area { margin: 0 !important; }
    .content { max-width: none !important; padding: 0 !important; }
    .receipt-paper { width: 100%; max-width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; }
    .receipt-paper .table { font-size: 11px; }
    .receipt-total { background: #f3f6fc !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}


/* GameHub Android tablet / mobile operations desk */
.topbar-actions{display:flex;align-items:center;gap:12px}
.nav-count{float:right;background:#eaf1ff;color:#2865d7;border-radius:20px;padding:2px 7px;font-size:10px;font-weight:800}
.mobile-desk{max-width:1250px;margin:0 auto}
.mobile-welcome{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}
.mobile-welcome h2{font-size:27px;font-weight:800;margin:5px 0}
.mobile-welcome p{color:var(--muted);margin:0}
.eyebrow{font-size:10px;letter-spacing:1.7px;color:#5d77a7;font-weight:800}
.live-pill{display:inline-flex;align-items:center;gap:7px;background:#e8f8f1;color:#11865c;border-radius:30px;padding:7px 12px;font-size:11px;font-weight:800;white-space:nowrap}
.live-pill i{width:7px;height:7px;border-radius:50%;background:#16a36e;box-shadow:0 0 0 4px #16a36e20}
.mobile-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:16px}
.mobile-stat{background:#fff;border:1px solid #e9edf4;border-radius:14px;padding:17px;min-width:0}
.mobile-stat span{display:block;color:var(--muted);font-size:11px;margin-bottom:8px}
.mobile-stat strong{font-size:clamp(19px,2vw,25px);font-weight:800;overflow-wrap:anywhere}
.mobile-shortcuts{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:17px}
.mobile-shortcuts a{background:#eaf1ff;color:#2865d7;text-decoration:none;border-radius:9px;padding:11px 15px;font-weight:750}
.mobile-start-form{display:grid;grid-template-columns:1.2fr 1.2fr 1fr;gap:13px;align-items:end}
.mobile-start-form label,.mobile-two-col label{font-size:12px;font-weight:700;display:grid;gap:6px}
.mobile-start-form>button{grid-column:1/-1;min-height:48px}
.mobile-two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mobile-session-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.mobile-session-card{border:1px solid #e8edf4;border-radius:13px;padding:17px;min-width:0;background:#fbfcff}
.mobile-session-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mobile-session-card h3{font-size:19px;font-weight:800;margin:12px 0 3px}
.mobile-session-card p{font-size:12px;color:var(--muted);margin:0 0 13px}
.mobile-timer-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;background:#f0f4fb;border-radius:10px;margin-bottom:13px}
.mobile-timer-row>strong{font-size:clamp(22px,3vw,30px);font-variant-numeric:tabular-nums;letter-spacing:.5px}
.mobile-timer-row>div{display:grid;text-align:right;gap:2px}
.mobile-timer-row small{font-size:10px;color:var(--muted)}
.mobile-timer-row b{font-size:15px}
.mobile-stop-form{display:grid;grid-template-columns:110px 1fr;gap:8px}
.mobile-stop-form button{grid-column:1/-1;min-height:45px}
.mobile-sync-note{font-size:11px;color:var(--muted);margin-top:13px}
.approval-card{height:100%}
.approval-reference{display:grid;gap:4px;padding:13px;background:#f4f7fc;border-radius:9px;margin-top:15px}
.approval-reference small{color:var(--muted)}
.approval-reference strong{font-size:19px;letter-spacing:1px;overflow-wrap:anywhere}
@media(max-width:1100px){.mobile-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-start-form{grid-template-columns:1fr 1fr}.mobile-start-form>button{grid-column:1/-1}}
@media(max-width:767.98px){.mobile-welcome{align-items:flex-start}.mobile-welcome h2{font-size:22px}.mobile-session-grid{grid-template-columns:1fr}.mobile-start-form{grid-template-columns:1fr}.mobile-start-form>button{grid-column:auto}.mobile-two-col{grid-template-columns:1fr 1fr}.topbar-actions .user-chip{display:none}.topbar{padding:0 15px}.content{padding:18px 14px}.mobile-stat{padding:13px}.mobile-stat strong{font-size:19px}}
@media(min-width:768px) and (max-width:1200px){.sidebar{width:215px}.main-area{margin-left:215px}.content{padding:24px 20px}.mobile-session-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
