/* Stack design system tokens — include verbatim in every app */ :root { --navy: #1a1a2e; --navy-dark: #0f0f20; --gold: #c9a84c; --gold-light: #e8c96d; --surface: rgba(255,255,255,0.07); --surface-2: rgba(255,255,255,0.08); --text: rgba(255,255,255,0.88); --text-muted: rgba(255,255,255,0.48); --body-bg: #f4f5f7; --card-bg: #ffffff; --card-border: #e4e8ee; --text-dark: #1e293b; --text-mid: #64748b; --shadow-sm: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04); --shadow-md: 0 4px 12px rgba(0,0,0,0.08); --danger: #dc2626; --radius: 10px; --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; } body { background: var(--body-bg); color: var(--text-dark); font-family: var(--font); } /* App theme + semantic tokens */ :root { --app-primary: #be123c; --app-primary-light: #e11d48; --health-healthy: #16a34a; --health-degraded: #d97706; --health-poor: #ea580c; --health-unresponsive: #dc2626; --danger-bg: #fef2f2; --warn-bg: #fffbeb; --ok-bg: #f0fdf4; --sidebar-w: 240px; --topbar-h: 56px; } *, *::before, *::after { box-sizing: border-box; } html, body, #root { height: 100%; margin: 0; font-size: 14px; } ::-webkit-scrollbar { width: 4px; height: 4px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 2px; } /* ── App shell ─────────────────────────────────────────────── */ .app-shell { display: flex; height: 100vh; overflow: hidden; } .sidebar { width: var(--sidebar-w); background: var(--navy); display: flex; flex-direction: column; flex-shrink: 0; overflow-y: auto; } .sidebar-logo { padding: 20px 16px 12px; color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; } .sidebar-logo svg { opacity: .8; } .sidebar-nav { flex: 1; padding: 8px 0; } .sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--text-muted); text-decoration: none; font-size: 13.5px; transition: background .15s, color .15s; } .sidebar-nav a:hover { background: var(--surface); color: var(--text); } .sidebar-nav a.active { background: rgba(201,168,76,.1); color: var(--gold); } .sidebar-user { padding: 12px 16px; border-top: 1px solid var(--surface-2); color: var(--text-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .top-bar { display: none; height: var(--topbar-h); background: var(--navy); color: var(--text); align-items: center; padding: 0 12px; gap: 10px; flex-shrink: 0; } .top-bar-title { flex: 1; font-size: 15px; font-weight: 600; color: var(--gold); } .page-content { flex: 1; overflow-y: auto; display: flex; flex-direction: column; } @media (max-width: 768px) { .sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 200; transform: translateX(calc(-1 * var(--sidebar-w))); transition: transform 0.25s ease; } .app-shell.menu-open .sidebar { transform: translateX(0); } .top-bar { display: flex; } .app-shell { flex-direction: column; } .field-row { flex-direction: column; } } .menu-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 199; } .top-bar-burger { background: none; border: none; color: var(--text); cursor: pointer; display: flex; align-items: center; padding: 4px; flex-shrink: 0; } /* ── Page chrome ───────────────────────────────────────────── */ .page { padding: 20px; max-width: 1100px; width: 100%; margin: 0 auto; } .page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; } .page-header h1 { font-size: 18px; margin: 0; flex: 1; } /* ── Buttons ───────────────────────────────────────────────── */ .btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--card-border); background: var(--card-bg); color: var(--text-dark); border-radius: var(--radius); padding: 7px 14px; font-size: 13px; cursor: pointer; font-family: var(--font); transition: background .12s, border-color .12s; } .btn:hover { border-color: var(--text-mid); } .btn:disabled { opacity: .5; cursor: default; } .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--navy); font-weight: 600; } .btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); } .btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; } .btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 8px; } /* ── Forms ─────────────────────────────────────────────────── */ .field { margin-bottom: 12px; } .field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-mid); margin-bottom: 4px; } .field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="date"], .field input[type="number"], .field select, .field textarea { width: 100%; border: 1px solid var(--card-border); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; font-family: var(--font); color: var(--text-dark); background: var(--card-bg); } .field textarea { min-height: 72px; resize: vertical; } .field-row { display: flex; gap: 12px; } .field-row > .field { flex: 1; } .field-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; } .field-check input { width: 16px; height: 16px; accent-color: var(--gold); } .field-hint { font-size: 11.5px; color: var(--text-mid); margin-top: 3px; } input[type="text"], input[type="email"], input[type="password"], input[type="number"] { border: 1px solid var(--card-border); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; font-family: var(--font); color: var(--text-dark); background: var(--card-bg); } /* ── Cards ─────────────────────────────────────────────────── */ .card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px 16px; margin-bottom: 10px; } .zone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; } /* ── Badges ────────────────────────────────────────────────── */ .badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 20px; padding: 2px 9px; font-size: 11px; font-weight: 600; color: #fff; white-space: nowrap; } .badge-health-healthy { background: var(--health-healthy); } .badge-health-degraded { background: var(--health-degraded); } .badge-health-unresponsive { background: var(--health-unresponsive); } .badge-outline { background: transparent; border: 1px solid var(--card-border); color: var(--text-mid); font-weight: 500; } /* ── Modal / step nav ──────────────────────────────────────── */ .modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; } /* ── Tables ────────────────────────────────────────────────── */ .table-wrap { overflow-x: auto; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); } table.data { width: 100%; border-collapse: collapse; font-size: 13px; } table.data th { text-align: left; padding: 9px 12px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-mid); border-bottom: 1px solid var(--card-border); white-space: nowrap; } table.data td { padding: 9px 12px; border-bottom: 1px solid var(--card-border); vertical-align: top; } table.data tr:last-child td { border-bottom: none; } /* ── Misc ──────────────────────────────────────────────────── */ .empty-state { text-align: center; color: var(--text-mid); padding: 40px 16px; font-size: 13.5px; } .error-banner { background: var(--danger-bg); border: 1px solid var(--danger); color: var(--danger); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px; font-size: 13px; } .ok-banner { background: var(--ok-bg); border: 1px solid var(--health-healthy); color: var(--health-healthy); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px; font-size: 13px; } .section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-mid); margin: 18px 0 8px; } .muted { color: var(--text-mid); } .sidebar::-webkit-scrollbar, .sidebar-nav::-webkit-scrollbar { width: 4px; } .sidebar::-webkit-scrollbar-track, .sidebar-nav::-webkit-scrollbar-track { background: transparent; } .sidebar::-webkit-scrollbar-thumb, .sidebar-nav::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.35); border-radius: 2px; } .sidebar::-webkit-scrollbar-thumb:hover, .sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,0.65); } .sidebar, .sidebar-nav { scrollbar-width: thin; scrollbar-color: rgba(201,168,76,0.35) transparent; } /* ── Kiosk (tablet guest-facing shell) ─────────────────────── */ .kiosk-shell { height: 100dvh; display: flex; flex-direction: column; background: var(--body-bg); overflow-y: auto; } .kiosk-center { align-items: center; justify-content: center; } .kiosk-login-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 28px 26px; width: 100%; max-width: 340px; text-align: center; } .kiosk-login-card input { border: 1px solid var(--card-border); border-radius: 8px; padding: 10px 12px; font-size: 16px; } .kiosk-header { display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--navy); color: var(--text); flex-shrink: 0; } .kiosk-header-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--gold); flex-shrink: 0; } .kiosk-header-info { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: 12px; color: var(--text-muted); } .kiosk-grid-wrap { flex: 1; overflow-y: auto; padding: 16px; }