:root {
    --ink: #2c3e50;
    --ink-soft: #34495e;
    --text: #333333;
    --text-muted: #7f8c8d;
    --text-faint: #94a3b8;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f1f5f9;
    --page-bg: #f0f2f5;
    --accent: #d9663a;
    --primary: #34708f;
    --primary-hover: #2b5d77;
    --success: #c79024;
    --success-hover: #ad7c1b;
    --success-soft-fg: #856312;
    --danger: #c0564a;
    --danger-soft-bg: #fdece9;
    --danger-soft-fg: #8f3a30;
    --neutral-soft-bg: #eef1f3;
    --plum: #3c3151;
    --amber-soft-bg: #faeeda;
    --amber-soft-fg: #854f0b;
    --slate-soft-bg: #eef1f4;
    --silver: #bdc3c7;
    --text-inverse: #fff;
    --input-border: #ccc;
    --silver-dark: #95a5a6;
    --danger-soft-hover: #f7ddd6;
    --amber-strong: #ba7517;
    --plum-faint-bg: #f5f3f9;
    --shadow-card: 0 4px 15px rgba(0,0,0,.1);
    --focus-ring: 0 0 0 2px rgba(217,102,58,.18);
    --radius: 8px;
}
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; margin: 0; background: var(--page-bg); color: var(--text); padding-bottom: 40px; font-size: 11px; }
nav { background: var(--surface); padding: 10px 25px; margin: 10px auto; width: 99%; max-width: 1050px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border-radius: 12px; box-sizing: border-box; }
.nav-left,
.nav-center,
.nav-right { display: flex; align-items: center; gap: 5px; text-transform: uppercase; flex: 1; }
.nav-center { justify-content: center; }
.nav-right { justify-content: flex-end; }
.nav-user { font-size: 11px; margin-left: 0; font-weight: bold; }
.nav-right a { text-decoration: none; font-weight: bold; font-size: 11px; }
.card { background: var(--surface); padding: 25px; border-radius: 12px; box-shadow: var(--shadow-card); width: 99%; max-width: 1050px; margin: 0 auto 20px auto; box-sizing: border-box; }
.section { margin-bottom: 20px; padding: 0; border: none; background: transparent; }
.btn { font-family: inherit; padding: 4px 12px; border-radius: 4px; font-size: 11px; font-weight: bold; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: transform 0.1s ease, background-color 0.2s ease; white-space: nowrap; }
.btn:active { transform: scale(0.95); }
h1 { color: var(--ink); font-size: 18px; border-bottom: 3px solid var(--accent); padding-bottom: 10px; margin-bottom: 20px; margin-top: -8px; }
input[type="text"],
input[type="email"],
input[type="password"],
select { width: 100%; padding: 0 8px; border: 1px solid var(--input-border); border-radius: 4px; font-size: 10px; box-sizing: border-box; height: 30px; line-height: 30px; background: var(--surface); color: var(--text); }
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus { border-color: var(--accent); outline: none; box-shadow: var(--focus-ring); }
.btn-submit { background: var(--success); color: var(--text-inverse); border: none; padding: 4px 12px; border-radius: 4px; font-family: inherit; font-size: 11px; font-weight: bold; cursor: pointer; text-transform: uppercase; transition: background 0.2s; }
.btn-submit:hover { background: var(--success-hover); transform: scale(1.02); }
th { background-color: var(--surface-3); color: var(--ink-soft); padding: 8px 12px; text-align: left; font-size: 12px; text-transform: uppercase; }
td { padding: 8px 12px; border-bottom: 1px solid var(--neutral-soft-bg); vertical-align: middle; font-size: 14px; }
.badge { padding: 4px 8px; border-radius: 4px; font-size: 11px; font-weight: bold; text-transform: uppercase; display: inline-block; }
.text-center { text-align: center; }
.mt-10 { margin-top: 10px; }
* { scrollbar-width: thin; scrollbar-color: var(--silver) var(--neutral-soft-bg); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--neutral-soft-bg); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--silver); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--silver-dark); }
@media (max-width: 768px) {
    nav { flex-direction: column; gap: 10px; padding: 15px; }
    .nav-left,
.nav-center,
.nav-right { justify-content: center; flex-wrap: wrap; width: 100%; }
}
table { width: 100%; border-collapse: collapse; }
h3 { color: var(--ink); }
.nav-user-clickable { cursor: pointer; color: var(--accent); }
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 9999; justify-content: center; align-items: center; }
.modal-overlay.is-open { display: flex; }
.modal-box { background: var(--surface); padding: 25px; border-radius: 8px; width: 300px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.modal-title { margin-top: 0; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 10px; }
.modal-actions { display: flex; gap: 10px; justify-content: space-between; }
@media print {
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
@page { @bottom-left { content: var(--print-footer-left, ""); font-size: 9px; font-family: Arial, sans-serif; color: #555; } @bottom-right { content: "Page " counter(page) " of " counter(pages); font-size: 9px; font-family: Arial, sans-serif; color: #555; } }
.btn-submit-sm { padding: 4px 14px; font-size: 11px; }
.msg-success { color: var(--success-soft-fg); }
.filter-del { width:26px; height:26px; min-width:26px; padding:0; border:none; border-radius:50%; background:var(--danger-soft-bg); color:var(--danger-soft-fg); cursor:pointer; font-size:16px; line-height:1; display:inline-flex; align-items:center; justify-content:center; transition:background-color .2s ease, transform .1s ease; }
.filter-del:hover { background:var(--danger-soft-hover); transform:scale(1.05); }
.filter-del:active { transform:scale(0.95); }
.section-band { margin: -25px -25px 18px -25px; border-radius: var(--radius) var(--radius) 0 0; display: block; }
.report-band { background: var(--plum); color: var(--text-inverse); font-weight: 700; text-align: center; padding: 6px 8px; font-size: 15px; line-height: 1.2; letter-spacing: .05em; text-transform: uppercase; border-radius: var(--radius) var(--radius) 0 0; border: 1px solid var(--plum); box-sizing: border-box; vertical-align: middle; }
.login-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; padding: 20px; box-sizing: border-box; background: var(--slate-soft-bg); }
.gold-round-btn.login-submit { margin:6px 0 0 auto; display:flex; }
.login-project-h1 { color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.login-card { width: 100%; max-width: 320px; margin: 0; position: relative; z-index: 1; }
.login-card input[type="text"],
.login-card input[type="password"] { margin-bottom: 12px; height: 34px; }
.login-card .btn-submit { width: 100%; margin-top: 4px; }
.login-sso-btn { display:flex; align-items:center; justify-content:center; gap:9px; height:38px; width:100%; box-sizing:border-box; border:1px solid var(--border-strong); border-radius:4px; background:var(--surface); color:var(--ink); font-size:12.5px; font-weight:600; text-decoration:none; transition:background .2s, border-color .2s; }
.login-sso-btn:hover { background:var(--surface-2); border-color:var(--ink-soft); }
.login-sso-btn:focus-visible { outline:2px solid var(--primary); outline-offset:2px; }
.login-or { display:flex; align-items:center; gap:8px; margin:14px 0; font-size:11px; color:var(--text-faint); }
.login-or::before,
.login-or::after { content:""; flex:1; border-top:1px solid var(--border); }
.error-msg { color: var(--danger); font-weight: bold; font-size: 11px; margin-bottom: 10px; }
.info-msg { color: var(--amber-soft-fg); background:var(--amber-soft-bg); border-radius:6px; padding:7px 10px; font-weight:600; font-size:11px; margin-bottom:10px; }
.gold-round-btn { width:26px; height:26px; flex:0 0 26px; border:none; border-radius:50%; cursor:pointer; background:var(--amber-strong); color:var(--text-inverse); font-size:13px; line-height:1; display:inline-flex; align-items:center; justify-content:center; transition:background .15s, transform .1s; }
.gold-round-btn:hover { background:#9a6212; }
.gold-round-btn:active { transform:scale(.94); }
.gold-round-btn:disabled { opacity:.6; cursor:default; }
.u-muted-12 { font-size:12px; color:var(--text-muted); }
[hidden] { display:none !important; }
.u-code-block { display:block; font-size:11px; user-select:all; background:var(--plum-faint-bg); border-radius:6px; padding:8px 10px; overflow-x:auto; white-space:nowrap; }
.u-scroll-x { overflow-x:auto; }
.login-card input[type="text"].login-user-hidden { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.login-card input[type="text"].login-enroll-code { margin:10px 0; }
.login-card .login-remember { display:block; margin:2px 0 8px; text-align:center; }
.u-code-block.totp-secret { white-space:normal; word-break:break-all; text-align:center; font-size:9px; padding:4px 4px; letter-spacing:.5px; }
.login-card img.totp-qr { display:block; margin:0 auto; background:var(--surface); padding:0; border-radius:4px; }
.login-card .login-authapp-row { text-align:center; margin:0 0 12px; }
.login-card a.btn-submit.btn-authapp,
.login-card a.btn-submit.btn-authapp:hover { background:#000; border-color:#000; color:var(--text-inverse); font-size:10px; text-decoration:none; }
