:root {
  --bg: #f3f5f9; --card: #ffffff; --ink: #162033; --muted: #64708a; --line: #e3e7ef;
  --navy: #05300b; --navy-2: #0a5a16; --brand: #d81f27; --brand-ink: #ffffff; --brand-soft: #fde6e7; --green: #006800;
  --ok: #0f7a55; --ok-bg: #e1f5ec; --warn: #9a5700; --warn-bg: #fff0d2; --bad: #b3261e; --bad-bg: #fde7e5;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 4px 14px rgba(16,24,40,.05);
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
a { color: var(--green); text-decoration: none; } a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 1px solid var(--line); background: var(--card); padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 500; transition: border-color .12s, background .12s, box-shadow .12s; }
button:hover { border-color: #b7c0d2; }
button.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; box-shadow: 0 1px 2px rgba(216,31,39,.35); }
button.primary:hover { background: #b9141c; }
button.danger { color: var(--bad); }
button.small { padding: 3px 10px; font-size: 13px; }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; background: var(--card); width: 100%; }
input:focus, select:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
input[type=checkbox] { width: auto; accent-color: var(--brand); }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
label > input, label > select, label > textarea { margin-top: 4px; color: var(--ink); font-weight: 400; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.error { color: var(--bad); min-height: 20px; margin: 6px 0; }
.wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.weekend td { background: #fafbfd; color: var(--muted); }
.pos { color: var(--ok); } .neg { color: var(--bad); }
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #edf0f6; font-variant-numeric: tabular-nums; margin-right: 4px; border: 0; font-size: 13.5px; font-weight: 500; box-shadow: none; }
button.chip:hover { background: #dde4f2; }
.chip.adj { background: var(--warn-bg); color: var(--warn); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; margin-right: 4px; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.gray { background: #edf0f6; color: var(--muted); }
.av { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; flex: none; letter-spacing: .02em; }
.who { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #c3cad8; margin-right: 6px; }
.dot.on { background: #19b37d; box-shadow: 0 0 0 3px rgba(25,179,125,.2); } .dot.out { background: #e0a100; }
dialog { border: 0; border-radius: 16px; padding: 24px; width: min(470px, 92vw); box-shadow: 0 24px 70px rgba(10,18,40,.35); color: var(--ink); }
dialog::backdrop { background: rgba(4,24,8,.6); backdrop-filter: blur(2px); }
.logo-plate { background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-flex; align-items: center; justify-content: center; }
.logo-plate img { max-height: 54px; max-width: 190px; display: block; }
.logo { display: block; width: 210px; max-width: 100%; height: auto; }
.hero .logo { width: 250px; }
.hero .tagline { padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); margin-top: 16px; display: inline-block; }
.side .brand { border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 10px; }
.side .brand .logo { width: 178px; }
.narrow .brandbox .logo { margin: 0 auto; width: 230px; }
.wordmark { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: #fff; }

/* ---------- painel do gestor ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: linear-gradient(180deg, var(--navy), var(--navy-2)); color: #dcebdd; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { padding: 4px 6px 18px; }
.side .brand .logo-plate img { max-height: 44px; max-width: 170px; }
.side .sub { font-size: 12px; color: #9cc2a2; margin-top: 8px; letter-spacing: .08em; text-transform: uppercase; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav button { border: 0; background: none; color: #dcebdd; text-align: left; padding: 9px 12px; border-radius: 9px; font-weight: 500; display: flex; align-items: center; gap: 8px; box-shadow: none; }
.side nav button:hover { background: rgba(255,255,255,.07); }
.side nav button.on { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
.side .badge { margin-left: auto; background: #e5484d; color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 700; }
.side .bottom { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 16px; }
.side .bottom a { color: #dcebdd; padding: 6px 12px; font-size: 14px; }
.side .bottom button { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; }
.content { min-width: 0; }
header.top { padding: 22px 28px 0; display: flex; gap: 16px; align-items: baseline; }
header.top h1 { margin: 0; }
main { max-width: 1180px; padding: 18px 28px 40px; }
.narrow { max-width: 420px; margin: 10vh auto; padding: 0 20px; }
.narrow .brandbox { background: linear-gradient(160deg, var(--navy), var(--navy-2)); border-radius: 14px 14px 0 0; padding: 26px; text-align: center; }
.narrow .brandbox + .card { border-radius: 0 0 14px 14px; border-top: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
.stat > span { font-size: 13px; font-weight: 500; }
.stat b { display: block; font-size: 28px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin-top: 2px; }
.stat small { color: var(--muted); }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .t { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.feed small { display: block; color: var(--muted); font-weight: 400; }
.sched { display: grid; grid-template-columns: 70px 30px 1fr 1fr 1fr; gap: 6px 8px; align-items: center; font-size: 14px; max-width: 560px; }
.sched .hd { font-size: 12px; color: var(--muted); }

/* ---------- tela de ponto ---------- */
.kiosk { min-height: 100vh; display: grid; grid-template-columns: minmax(300px, 36%) minmax(0, 1fr); }
.hero { background: radial-gradient(120% 90% at 0% 0%, #0e7a1e 0%, var(--navy) 62%); color: #fff; padding: 36px; display: flex; flex-direction: column; }
.hero .clock { font-size: clamp(64px, 8vw, 104px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1; margin-top: auto; }
.hero .date { color: #cfe3d1; font-size: 19px; margin: 10px 0 0; text-transform: capitalize; }
.hero .tagline { color: #9cc2a2; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-top: 12px; }
.hero .foot { margin-top: auto; padding-top: 30px; font-size: 13px; color: #9cc2a2; }
.hero .foot a { color: #dcebdd; }
.stage { padding: 36px; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
#view { width: 100%; max-width: 940px; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.stage h2.lead { font-size: 22px; margin-bottom: 4px; align-self: flex-start; }
.stage p.lead { align-self: flex-start; margin: 0 0 18px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; width: 100%; }
.people button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; border-radius: 14px; box-shadow: var(--shadow); }
.people button:hover { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.people .av { width: 44px; height: 44px; font-size: 15px; }
.people .nm { font-size: 16px; font-weight: 600; display: block; }
.people .st { font-size: 13px; color: var(--muted); font-weight: 400; }
.pin { font-size: 28px; letter-spacing: .4em; text-align: center; }
video.cam { width: 160px; height: 120px; border-radius: 12px; background: #111; object-fit: cover; display: block; margin: 0 auto 12px; }
.done { text-align: center; min-width: 340px; padding: 32px; }
.done .check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 34px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.done .big { font-size: 56px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1.1; }

@media (max-width: 860px) {
  .kiosk { grid-template-columns: minmax(0, 1fr); } .stage { padding: 14px; justify-content: flex-start; } .stage .card { padding: 16px; max-width: 100%; } .hero { padding: 24px; } .hero .clock { margin-top: 18px; } .hero .foot { padding-top: 16px; }
  .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; } .side nav { flex-direction: row; flex-wrap: wrap; }
  .cols { grid-template-columns: 1fr; } main, header.top { padding-left: 16px; padding-right: 16px; }
}
@media print {
  .side, .noprint, header.top { display: none !important; }
  .shell { display: block; } body { background: #fff; } .card, .stat { border: 0; padding: 0; box-shadow: none; } main { padding: 0; max-width: none; }
}

#net { width: 100%; max-width: 940px; margin-bottom: 12px; }
.sign { margin-top: 16px; padding: 12px 14px; border: 1px dashed #b9c0cc; border-radius: 10px; font-size: 14px; }
.sign b { display: block; }
/* ---------- uso no celular (fora do computador da empresa) ---------- */
.me { width: min(440px, 100%); text-align: center; padding: 28px; }
.me .av { width: 64px; height: 64px; font-size: 22px; margin-bottom: 8px; }
.me .big-btn { width: 100%; padding: 16px; font-size: 18px; border-radius: 14px; margin-top: 14px; }
.note { background: #f6f8f6; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; color: var(--muted); text-align: left; }
.note.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.side .whoami { font-size: 13px; color: #9cc2a2; padding: 0 12px 6px; }
.side .whoami b { display: block; color: #fff; font-size: 14px; }
