
:root { --navy:#14263d; --navy2:#1e3552; --teal:#20d6bb; --paper:#f5faff; --ink:#14263d; --mute:#5b6b7e; --line:#d9e3ee; --bad:#c0392b; --ok:#1c9a6c; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.45 "Segoe UI", system-ui, sans-serif; color:var(--ink); background:var(--paper); }
header { background:var(--navy); color:#fff; display:flex; align-items:center; gap:14px; padding:10px 24px; }
header img { width:34px; height:34px; }
header .brand { font-size:19px; font-weight:600; letter-spacing:.2px; }
header .grow { flex:1; }
header .who { color:#b9c7d8; font-size:13px; }
header a { color:#cfe; text-decoration:none; margin-right:8px; }
header form { margin:0; display:inline; }
main { max-width:1040px; margin:26px auto; padding:0 24px; }
h1 { font-size:24px; margin:0 0 4px; }
h2 { font-size:17px; margin:30px 0 10px; }
.sub { color:var(--mute); margin:0 0 18px; }
table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
th, td { text-align:left; padding:9px 12px; border-bottom:1px solid var(--line); vertical-align:middle; }
th { background:#eaf1f8; font-size:12.5px; text-transform:uppercase; letter-spacing:.4px; color:var(--mute); }
tr:last-child td { border-bottom:0; }
td.num { text-align:right; font-variant-numeric:tabular-nums; }
th.num { text-align:right; }
.empty { color:var(--mute); padding:14px 12px; background:#fff; border:1px dashed var(--line); border-radius:8px; }
form.inline { display:inline; margin:0; }
form.box { background:#fff; border:1px solid var(--line); border-radius:8px; padding:14px; display:flex; flex-wrap:wrap; gap:10px; align-items:end; margin-top:12px; }
label { display:flex; flex-direction:column; font-size:12.5px; color:var(--mute); gap:3px; }
input[type=text], input[type=password], select { font:inherit; padding:7px 9px; border:1px solid #b9c7d8; border-radius:6px; min-width:170px; background:#fff; color:var(--ink); }
button { font:inherit; padding:7px 14px; border:0; border-radius:6px; background:var(--navy); color:#fff; cursor:pointer; }
button:hover { background:var(--navy2); }
button.go { background:var(--teal); color:var(--navy); font-weight:600; }
button.danger { background:#fff; color:var(--bad); border:1px solid #e3b4ae; }
button.small { padding:3px 10px; font-size:13px; }
.flash { padding:10px 14px; border-radius:8px; margin:0 0 16px; }
.flash.ok { background:#e3f6ee; border:1px solid #b5e3cf; color:#14613f; }
.flash.err { background:#fbe9e7; border:1px solid #f0c3bd; color:#8c2b20; }
.badge { display:inline-block; padding:1px 9px; border-radius:99px; font-size:12px; background:#eaf1f8; color:var(--mute); }
.badge.on { background:#e3f6ee; color:var(--ok); }
.badge.off { background:#fbe9e7; color:var(--bad); }
.dot { display:inline-block; width:9px; height:9px; border-radius:50%; background:#b9c7d8; margin-right:7px; }
.dot.on { background:var(--ok); }
code, pre { font-family:Consolas, "Cascadia Mono", monospace; }
pre { background:var(--navy); color:#e6f4ff; padding:12px 14px; border-radius:8px; overflow:auto; white-space:pre-wrap; word-break:break-all; }
.key { font-size:21px; letter-spacing:1px; background:#fff; border:2px solid var(--teal); border-radius:8px; padding:14px 18px; display:inline-block; user-select:all; }
.warn { background:#fff7df; border:1px solid #f0dc9b; color:#6b5200; padding:10px 14px; border-radius:8px; }
.login { max-width:380px; margin:12vh auto 0; background:#fff; border:1px solid var(--line); border-radius:12px; padding:28px; }
.login h1 { text-align:center; }
.login label { margin-top:12px; }
.login input { width:100%; }
.login button { width:100%; margin-top:18px; padding:10px; }
a { color:#0b6fa4; }
/* Relatórios de atividade */
input[type=date] { font:inherit; padding:6px 9px; border:1px solid #b9c7d8; border-radius:6px; background:#fff; color:var(--ink); }
a.button { display:inline-block; padding:7px 14px; border-radius:6px; background:var(--navy); color:#fff; text-decoration:none; }
a.button.small { padding:6px 12px; font-size:13px; }
main:has(table.activity) { max-width:1500px; }
table.activity td, table.activity th { padding:7px 9px; font-size:13.5px; white-space:nowrap; }
.act { color:#1c9a6c; } .idle { color:#c98a00; } .lock { color:#5b6b7e; }
td.daybar { width:260px; min-width:200px; }
svg.bar { display:block; width:100%; height:16px; border-radius:4px; }
.unk { color:#8a99ab; }
.legend span { margin-right:10px; font-weight:600; }
.off { color:#8a99ab; } .unk { color:#5b8fb9; }
.kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; margin:14px 0 6px; }
.kpi { background:#fff; border:1px solid var(--line); border-radius:10px; padding:14px 16px; }
.kpi .num { font-size:28px; font-weight:700; }
.kpi .num small { font-size:15px; font-weight:400; color:var(--mute); }
.kpi .lbl { color:var(--mute); font-size:13px; }
.chart-box { background:#fff; border:1px solid var(--line); border-radius:10px; padding:10px; overflow-x:auto; }
svg.chart { display:block; width:100%; max-width:1100px; height:auto; }
ul.alerts { list-style:none; padding-left:0; } ul.alerts li { margin:6px 0; }
tr.bad td { background:#fdecea; }
.login.wide { max-width:520px; margin:30px auto; }
ol.steps { padding-left:20px; } ol.steps li { margin:8px 0; }
.qr svg { width:220px; height:220px; display:block; margin:8px 0; border:1px solid var(--line); border-radius:8px; }
ul.recovery { columns:2; list-style:none; padding:0; font-size:18px; } ul.recovery li { margin:6px 0; }
