/* VIA BRASIL CONECTA — sistema visual
   Cores amostradas da apresentação institucional (jun/2025).
   Barlow: família inspirada na sinalização rodoviária. */
:root {
  --navy-950: #00214a;
  --navy-900: #002c62;
  --navy: #013c82;
  --navy-600: #1b5aa6;
  --navy-100: #dfe9f6;
  --navy-50: #eff4fb;
  --brand-green: #2e9d41;
  --brand-green-dark: #1f7a31;
  --brand-yellow: #ffdd00;
  --brand-gold: #d6a300;

  --ink: #10233f;
  --ink-2: #4a5b73;
  --ink-3: #6f7f95;
  --line: #dde4ee;
  --line-2: #eaeff5;
  --surface: #ffffff;
  --page: #f2f5f9;

  --st-red: #c8322b;   --st-red-bg: #fdecea;
  --st-amber: #8f6400; --st-amber-bg: #fff3c4; --st-amber-mark: #e9b100;
  --st-green: #1b8440; --st-green-bg: #e3f4e8;
  --st-blue: #1f6bd0;  --st-blue-bg: #e4effc;
  --st-gray: #64748b;  --st-gray-bg: #edf1f6;

  --r-s: 8px; --r: 12px; --r-l: 18px;
  --shadow-1: 0 1px 2px rgba(0, 33, 74, .06), 0 1px 1px rgba(0, 33, 74, .04);
  --shadow-2: 0 10px 28px -12px rgba(0, 33, 74, .28);
  --shadow-3: 0 24px 60px -18px rgba(0, 33, 74, .45);
  --sidebar: 256px;
  --font: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-d: "Barlow Semi Condensed", "Barlow", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--page); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-d); font-weight: 600; letter-spacing: .1px; line-height: 1.15; }
p { margin: 0; }
a { color: var(--navy-600); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--navy-600); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num { font-family: var(--font-d); font-variant-numeric: tabular-nums; }

.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- estrutura ---------- */
.app { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 40;
  background: linear-gradient(178deg, var(--navy) 0%, var(--navy-900) 62%, var(--navy-950) 100%);
  color: #fff; display: flex; flex-direction: column; overflow: hidden;
  transition: transform .28s var(--ease);
}
.sidebar .wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; pointer-events: none; }
.side-brand { padding: 22px 22px 16px; }
.side-brand img { width: 150px; display: block; }
.side-name { margin-top: 14px; font: 700 13px/1 var(--font-d); letter-spacing: 2.6px; color: var(--brand-yellow); }
.side-nav { position: relative; z-index: 1; flex: 1; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: rgba(255, 255, 255, .78); font-weight: 500; font-size: 14.5px; position: relative;
  transition: background .18s, color .18s;
}
.nav-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-item.on { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }
.nav-item.on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand-yellow); }
.nav-sep { height: 1px; background: rgba(255, 255, 255, .13); margin: 8px 12px; }
.side-foot { position: relative; z-index: 1; padding: 12px 22px 74px; font-size: 12.5px; line-height: 1.35; color: rgba(255, 255, 255, .72); font-style: italic; }

.main { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.demo-strip {
  display: flex; gap: 10px; align-items: center; padding: 6px 28px; font-size: 12.5px; color: #4d3b00;
  background: var(--brand-yellow); font-weight: 500;
}
.demo-strip b { font: 700 12.5px var(--font-d); letter-spacing: 1.2px; white-space: nowrap; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 28px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.topbar .brand-mini { display: none; height: 34px; }
.top-search { flex: 1; max-width: 460px; position: relative; }
.top-search input { width: 100%; height: 40px; padding: 0 14px 0 40px; border: 1px solid var(--line); background: var(--page); border-radius: 10px; }
.top-search input:focus { outline: none; border-color: var(--navy-600); background: #fff; }
.top-search svg { position: absolute; left: 13px; top: 11px; color: var(--ink-3); }
.top-spacer { flex: 1; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); position: relative; transition: background .15s; }
.icon-btn:hover { background: var(--navy-50); color: var(--navy); }
.bell-dot { position: absolute; top: 5px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--st-red); color: #fff; font: 700 11px/17px var(--font); border: 0; }
.menu-btn { display: none; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 8px 5px 5px; border-radius: 12px; transition: background .15s; text-align: left; }
.user-chip:hover { background: var(--navy-50); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 600 14px var(--font-d); flex: none; }
.user-chip b { display: block; font-size: 14px; font-weight: 600; line-height: 1.15; }
.user-chip span { font-size: 12px; color: var(--ink-3); }
.popover { position: absolute; top: 58px; right: 20px; width: 340px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-3); overflow: hidden; animation: pop .18s var(--ease); z-index: 60; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }
.popover h4 { padding: 14px 16px 8px; font-size: 16px; }
.pop-item { display: flex; gap: 10px; width: 100%; padding: 10px 16px; text-align: left; font-size: 13.5px; align-items: flex-start; line-height: 1.3; }
.pop-item:hover { background: var(--navy-50); }
.pop-item small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.pop-item.on { font-weight: 600; color: var(--navy); }
.pop-label { padding: 10px 16px 2px; font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.pop-sep { height: 1px; background: var(--line-2); margin: 6px 0; }
.content { padding: 24px 28px 48px; flex: 1; max-width: 1560px; width: 100%; margin: 0 auto; animation: page .32s var(--ease); }
/* Só desloca: o conteúdo nunca fica invisível, mesmo se o navegador não executar a animação. */
@keyframes page { from { transform: translateY(8px); } }
.scrim { position: fixed; inset: 0; background: rgba(0, 33, 74, .45); z-index: 35; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }

/* ---------- blocos ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.eyebrow { font: 600 13px var(--font-d); letter-spacing: 1.6px; text-transform: uppercase; color: var(--brand-green-dark); }
.page-head h1 { font-size: 32px; font-weight: 700; color: var(--navy); margin-top: 3px; }
.page-head p { color: var(--ink-2); margin-top: 4px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); padding: 18px 20px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.card-head h3 { font-size: 19px; color: var(--navy-900); }
.card-head p { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.grid { display: grid; gap: 16px; }
.g-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.c-3 { grid-column: span 3; } .c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; }
.c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; } .c-12 { grid-column: span 12; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.muted { color: var(--ink-3); } .small { font-size: 13px; }
.mt { margin-top: 16px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: background .16s, border-color .16s, transform .16s, color .16s; }
.btn:active { transform: translateY(1px); }
.btn-p { background: var(--navy); color: #fff; }
.btn-p:hover { background: var(--navy-900); }
.btn-g { background: var(--brand-green-dark); color: #fff; }
.btn-g:hover { background: #17632a; }
.btn-o { border: 1px solid var(--line); background: #fff; color: var(--navy-900); }
.btn-o:hover { border-color: var(--navy-600); background: var(--navy-50); }
.btn-s { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link { color: var(--navy-600); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.link:hover { color: var(--navy); text-decoration: underline; }

.tabs { display: flex; gap: 2px; box-shadow: inset 0 -1px 0 var(--line); margin-bottom: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tab { padding: 10px 14px; font-weight: 600; color: var(--ink-2); border-bottom: 3px solid transparent; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; transition: color .15s; }
.tab:hover { color: var(--navy); }
.tab.on { color: var(--navy); border-color: var(--brand-green); }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border-radius: 7px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip-demo { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font: 700 10.5px/1 var(--font-d); letter-spacing: .9px; background: #fff6bf; color: #6b5100; white-space: nowrap; }
.chip-real { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font: 700 10.5px/1 var(--font-d); letter-spacing: .9px; background: var(--navy-100); color: var(--navy); white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12.5px; font-weight: 500; background: var(--navy-50); color: var(--navy-900); white-space: nowrap; }

.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea { height: 38px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 10px; width: 100%; font-size: 14px; }
.textarea { height: auto; padding: 8px 10px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px var(--navy-100); }
.filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }

/* Estrada: barra de progresso assinatura da marca */
.road { position: relative; height: 12px; border-radius: 6px; background: #d9e1ec; overflow: hidden; }
.road > i { position: absolute; inset: 0 auto 0 0; display: block; background: var(--navy); border-radius: 6px; transition: width .6s var(--ease); }
.road > i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 5px; height: 2px; background: repeating-linear-gradient(90deg, var(--brand-yellow) 0 8px, transparent 8px 14px); }
.road.g > i { background: var(--brand-green-dark); }
.road-line { display: flex; align-items: center; gap: 10px; }
.road-line .road { flex: 1; }
.road-line b { font: 600 15px var(--font-d); min-width: 38px; text-align: right; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; }
.login-art { position: relative; background: url(img/rodovia-capa.jpg) center/cover; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; }
.login-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(165deg, rgba(1, 60, 130, .9) 0%, rgba(1, 60, 130, .62) 45%, rgba(0, 33, 74, .92) 100%); }
.login-art > * { position: relative; }
.login-art img { position: absolute; top: 44px; left: 48px; width: 190px; }
.login-art h1 { font-size: clamp(42px, 5vw, 68px); font-weight: 700; line-height: .98; letter-spacing: .5px; }
.login-art h1 em { font-style: normal; color: var(--brand-yellow); display: block; }
.login-art p { font-size: 19px; margin-top: 14px; max-width: 480px; line-height: 1.35; opacity: .95; }
.login-road { height: 4px; width: 150px; margin-bottom: 20px; background: repeating-linear-gradient(90deg, var(--brand-yellow) 0 22px, transparent 22px 34px); }
.login-panel { display: grid; place-items: center; padding: 32px 24px; }
.login-box { width: 100%; max-width: 410px; }
.login-box > img { width: 150px; display: none; margin-bottom: 22px; }
.login-box h2 { font-size: 30px; font-weight: 700; color: var(--navy); }
.login-box > p { color: var(--ink-2); margin: 6px 0 22px; }
.ms-btn { width: 100%; height: 48px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #8c8c8c; border-radius: 8px; font-weight: 600; background: #fff; transition: background .15s; }
.ms-btn:hover { background: #f4f4f4; }
.login-note { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.login-div { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; font: 700 12px var(--font-d); letter-spacing: 1.1px; color: #6b5100; }
.login-div::before, .login-div::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.profile-btn { display: flex; gap: 12px; align-items: center; width: 100%; padding: 11px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; text-align: left; transition: border-color .15s, background .15s, transform .15s; }
.profile-btn:hover { border-color: var(--navy-600); background: var(--navy-50); transform: translateX(2px); }
.profile-btn b { display: block; font-size: 15px; line-height: 1.2; }
.profile-btn small { font-size: 12.5px; color: var(--ink-3); line-height: 1.25; display: block; }
.profile-btn .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--navy-50); color: var(--navy); display: grid; place-items: center; flex: none; }
.denied { background: var(--st-red-bg); border-radius: 10px; padding: 14px; margin-top: 14px; font-size: 14px; color: #7e1d18; }
.denied b { display: block; margin-bottom: 2px; }

/* ---------- dashboard ---------- */
.hero { position: relative; overflow: hidden; border-radius: var(--r-l); background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy) 60%, #0a4f9f 100%); color: #fff; padding: 26px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 14px; box-shadow: var(--shadow-2); }
.hero .wave-r { position: absolute; right: -40px; bottom: -6px; width: 560px; opacity: .22; pointer-events: none; }
.hero > div { position: relative; }
.hero .eyebrow { color: var(--brand-yellow); }
.hero h1 { font-size: clamp(30px, 3.5vw, 46px); font-weight: 700; margin: 6px 0 6px; letter-spacing: .3px; }
.hero p { opacity: .88; max-width: 560px; }
.gauge-wrap { text-align: center; flex: none; }
.gauge-num { font: 700 46px/1 var(--font-d); }
.gauge-lbl { font-size: 13px; opacity: .85; margin-top: 2px; }
.notice { display: flex; gap: 10px; padding: 11px 14px; border-radius: 10px; background: var(--navy-50); border: 1px solid var(--navy-100); color: var(--navy-900); font-size: 13.5px; line-height: 1.4; margin-bottom: 14px; align-items: flex-start; }
.notice svg { flex: none; margin-top: 1px; color: var(--navy-600); }
.notice.warn { background: #fff8d9; border-color: #f2df8a; color: #574200; }
.notice.warn svg { color: #8f6400; }

.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow-1); transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; display: block; width: 100%; position: relative; overflow: hidden; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--navy-100); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; color: var(--kc, var(--navy)); }
.kpi-v { font: 700 38px/1.05 var(--font-d); color: var(--ink); margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi-l { font-size: 13.5px; color: var(--ink-2); font-weight: 500; line-height: 1.2; }
.kpi::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--kc, var(--navy)); opacity: .9; }

.alert-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.alert-tab { padding: 8px 4px; border-radius: 9px; background: var(--ac-bg); color: var(--ac); text-align: center; border: 2px solid transparent; transition: border-color .15s; line-height: 1.1; }
.alert-tab.on { border-color: var(--ac); }
.alert-tab b { display: block; font: 700 24px/1.05 var(--font-d); }
.alert-tab span { font-size: 11.5px; font-weight: 600; }
.alert-list { max-height: 276px; overflow-y: auto; margin: 0 -8px; }
.alert-row { display: flex; gap: 10px; width: 100%; padding: 8px; border-radius: 8px; text-align: left; align-items: center; transition: background .14s; }
.alert-row:hover { background: var(--navy-50); }
.alert-row .t { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; line-height: 1.25; }
.alert-row .t small { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-row .d { font: 600 14px var(--font-d); white-space: nowrap; color: var(--ink-2); }

/* gráficos */
.hbars { display: flex; flex-direction: column; gap: 3px; }
.hbar { display: grid; grid-template-columns: minmax(0, 42%) 1fr 34px; gap: 10px; align-items: center; padding: 4px 6px; margin: 0 -6px; border-radius: 6px; width: calc(100% + 12px); text-align: left; font-size: 13.5px; transition: background .14s; }
button.hbar:hover { background: var(--navy-50); }
.hbar .n { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .tr { height: 12px; }
.hbar .tr i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--bc, var(--navy)); transition: width .55s var(--ease); min-width: 2px; }
.hbar .v { font: 600 15px var(--font-d); text-align: right; font-variant-numeric: tabular-nums; }
.segbar { display: flex; gap: 2px; height: 14px; margin-bottom: 12px; }
.segbar i { display: block; min-width: 3px; transition: flex .4s var(--ease); }
.segbar i:first-child { border-radius: 4px 0 0 4px; } .segbar i:last-child { border-radius: 0 4px 4px 0; }
.columns { display: flex; align-items: flex-end; gap: 8px; height: 190px; }
.col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.col b { font: 600 15px var(--font-d); }
.col i { display: block; width: 100%; max-width: 44px; border-radius: 4px 4px 0 0; background: var(--bc, var(--navy)); transition: height .55s var(--ease); min-height: 2px; }
.col span { font-size: 12px; color: var(--ink-3); white-space: nowrap; height: 18px; }
.tip { position: fixed; z-index: 100; pointer-events: none; background: var(--navy-950); color: #fff; font-size: 13px; padding: 6px 10px; border-radius: 7px; max-width: 280px; line-height: 1.3; box-shadow: var(--shadow-2); }
svg text { font-family: var(--font); }

/* ---------- obrigações ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.search-box { position: relative; flex: 1 1 280px; }
.search-box svg { position: absolute; left: 12px; top: 11px; color: var(--ink-3); }
.search-box input { padding-left: 38px; height: 40px; }
.view-toggle { display: inline-flex; background: var(--navy-50); border-radius: 9px; padding: 3px; }
.view-toggle button { width: 36px; height: 34px; display: grid; place-items: center; border-radius: 7px; color: var(--ink-2); }
.view-toggle button.on { background: #fff; color: var(--navy); box-shadow: var(--shadow-1); }
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
.tbl th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fbfcfe; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr.clk { cursor: pointer; transition: background .13s; }
.tbl tbody tr.clk:hover { background: var(--navy-50); }
.tbl .tt { font-weight: 600; line-height: 1.25; color: var(--navy-900); }
.tbl .sub { font-size: 12.5px; color: var(--ink-3); }
.code { font: 600 13.5px var(--font-d); color: var(--navy-600); letter-spacing: .3px; white-space: nowrap; }
.crit-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.crit-dot i { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); display: block; }
.ob-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.ob-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--oc, var(--line)); border-radius: var(--r); padding: 14px 16px; text-align: left; box-shadow: var(--shadow-1); transition: transform .17s var(--ease), box-shadow .17s; display: flex; flex-direction: column; gap: 8px; }
.ob-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.ob-card h4 { font-size: 17.5px; color: var(--navy-900); }
.ob-card .desc { font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.more { display: block; margin: 14px auto 0; }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: #fff; z-index: 50; box-shadow: var(--shadow-3); display: flex; flex-direction: column; animation: slide .3s var(--ease); }
@keyframes slide { from { transform: translateX(40px); opacity: .4; } }
.drawer-head { padding: 18px 22px 16px; background: linear-gradient(120deg, var(--navy-900), var(--navy)); color: #fff; position: relative; }
.drawer-head .code { color: var(--brand-yellow); font-size: 14.5px; }
.drawer-head h2 { font-size: 26px; margin: 3px 34px 10px 0; }
.drawer-head .x { position: absolute; top: 12px; right: 12px; color: #fff; }
.drawer-head .x:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px 30px; display: flex; flex-direction: column; gap: 20px; }
.sec-title { display: flex; align-items: center; gap: 8px; font: 600 18px var(--font-d); color: var(--navy-900); margin-bottom: 8px; }
.quote { border-left: 4px solid var(--brand-green); padding: 10px 14px; background: #f6faf6; border-radius: 0 8px 8px 0; line-height: 1.5; font-size: 14.5px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.kv > div > span { display: block; font-size: 12.5px; color: var(--ink-3); }
.kv div b { font-weight: 600; font-size: 14.5px; line-height: 1.25; display: block; }
.tline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px dashed #cfd9e6; }
.tline li { position: relative; padding: 0 0 13px 8px; font-size: 14px; line-height: 1.3; }
.tline li:last-child { padding-bottom: 0; }
.tline li::before { content: ""; position: absolute; left: -23px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--dc, var(--navy)); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.tline small { display: block; color: var(--ink-3); font-size: 12.5px; }
.ev { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; margin-bottom: 6px; }
.ev .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.update-box { background: var(--navy-50); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; }
.err { color: var(--st-red); font-size: 13.5px; font-weight: 500; }

.matrix { width: 100%; border-collapse: separate; border-spacing: 4px; min-width: 760px; }
.matrix th { font-size: 13px; color: var(--ink-3); font-weight: 600; padding: 4px; text-align: center; }
.matrix th.a { text-align: left; color: var(--ink); font-size: 14.5px; min-width: 210px; }
.matrix td { padding: 0; }
.mcell { width: 100%; height: 44px; border-radius: 7px; font: 600 17px var(--font-d); transition: transform .14s, box-shadow .14s; }
.mcell:hover:not([disabled]) { transform: scale(1.04); box-shadow: var(--shadow-2); }
.mcell[disabled] { cursor: default; }
.resp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: block; }

/* ---------- universidade ---------- */
.uni-hero { position: relative; overflow: hidden; border-radius: var(--r-l); padding: 30px 32px; color: #fff; background: linear-gradient(115deg, #17632a 0%, var(--brand-green-dark) 32%, var(--navy) 100%); margin-bottom: 16px; }
.uni-hero .wave-r { position: absolute; right: -30px; bottom: -8px; width: 520px; opacity: .22; pointer-events: none; }
.uni-hero > * { position: relative; }
.uni-hero .wave-r { position: absolute; }
.uni-hero .eyebrow { color: var(--brand-yellow); }
.uni-hero h1 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; margin: 5px 0; }
.uni-hero p { opacity: .92; font-size: 16px; }
.uni-stats { display: flex; gap: 34px; margin-top: 18px; flex-wrap: wrap; }
.uni-stats b { display: block; font: 700 30px/1 var(--font-d); }
.uni-stats span { font-size: 13px; opacity: .88; }
.continue { display: grid; grid-template-columns: 220px 1fr auto; gap: 18px; align-items: center; }
.thumb { aspect-ratio: 16/9; border-radius: 10px; position: relative; overflow: hidden; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--t1, var(--navy)), var(--t2, var(--navy-950))); }
.thumb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18%; height: 3px; background: repeating-linear-gradient(90deg, rgba(255, 221, 0, .75) 0 18px, transparent 18px 30px); }
.thumb svg { position: relative; z-index: 1; opacity: .95; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.course { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-1); display: flex; flex-direction: column; text-align: left; transition: transform .18s var(--ease), box-shadow .18s; }
.course:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.course .thumb { border-radius: 0; }
.course .num-tag { position: absolute; top: 8px; left: 10px; z-index: 1; font: 700 30px/1 var(--font-d); opacity: .85; }
.course-b { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-b h4 { font-size: 18px; color: var(--navy-900); flex: 1; }
.course-b .meta { display: flex; gap: 12px; font-size: 12.5px; color: var(--ink-3); }
.course-b .meta span { display: inline-flex; gap: 4px; align-items: center; }
.path { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding: 4px 0 10px; }
.path-step { flex: 0 0 186px; position: relative; padding: 34px 12px 0 0; text-align: left; }
.path-step::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 10px; background: #41536b; }
.path-step::after { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 2px; background: repeating-linear-gradient(90deg, var(--brand-yellow) 0 9px, transparent 9px 16px); }
.path-step.done::before { background: var(--brand-green-dark); }
.path-step .pin { position: absolute; left: 0; top: 3px; width: 28px; height: 28px; z-index: 1; border-radius: 50%; background: #fff; border: 3px solid #41536b; color: var(--ink); display: grid; place-items: center; font: 700 13px var(--font-d); }
.path-step.done .pin { border-color: var(--brand-green-dark); background: var(--brand-green-dark); color: #fff; }
.path-step.prog .pin { border-color: var(--navy-600); color: var(--navy); }
.path-step b { display: block; font: 600 15.5px/1.15 var(--font-d); color: var(--navy-900); }
.path-step small { color: var(--ink-3); font-size: 12.5px; }
.area-pills { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; }
.area-pill { padding: 7px 13px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; white-space: nowrap; color: var(--ink-2); transition: all .15s; }
.area-pill:hover { border-color: var(--navy-600); }
.area-pill.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--ink-3); margin-bottom: 12px; flex-wrap: wrap; }
.course-hero { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; background: linear-gradient(115deg, var(--navy-900), var(--navy)); color: #fff; padding: 26px 28px; border-radius: var(--r-l); margin-bottom: 16px; align-items: center; }
.course-hero h1 { font-size: clamp(27px, 3vw, 38px); font-weight: 700; margin: 5px 0 8px; }
.course-hero .eyebrow { color: var(--brand-yellow); }
.course-hero p { opacity: .92; }
.course-hero .road { background: rgba(255, 255, 255, .22); }
.course-hero .road > i { background: var(--brand-green); }
.module { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.module-h { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-weight: 600; background: #fbfcfe; text-align: left; }
.lesson { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line-2); text-align: left; font-size: 14.5px; transition: background .13s; color: var(--ink); }
.lesson:hover { background: var(--navy-50); }
.lesson.on { background: var(--navy-100); font-weight: 600; }
.lesson .ck { color: var(--st-green); flex: none; }
.lesson .pl { color: var(--ink-3); flex: none; }
.lesson .t { flex: 1; min-width: 0; line-height: 1.25; }
.lesson .dur { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.player-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 16px; align-items: start; }
.player { background: var(--navy-950); border-radius: var(--r); overflow: hidden; color: #fff; }
.screen { aspect-ratio: 16/9; position: relative; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 30% 20%, #0b56ab 0%, var(--navy-900) 55%, var(--navy-950) 100%); padding: 18px; }
.screen h3 { font-size: clamp(20px, 2.6vw, 32px); margin: 10px 0 5px; }
.screen p { font-size: 13.5px; opacity: .8; max-width: 440px; }
.big-play { width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: inline-grid; place-items: center; transition: transform .15s, background .15s; color: #fff; }
.big-play:hover { transform: scale(1.06); background: var(--brand-green); }
.controls { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.controls button { color: #fff; display: grid; place-items: center; }
.timeline { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .22); position: relative; cursor: pointer; }
.timeline i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand-yellow); border-radius: 4px; }
.time { font: 500 13.5px var(--font-d); font-variant-numeric: tabular-nums; white-space: nowrap; }
.q-card { max-width: 780px; margin: 0 auto; }
.q-opt { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 8px; transition: border-color .14s, background .14s; }
.q-opt:hover:not([disabled]) { border-color: var(--navy-600); background: var(--navy-50); }
.q-opt.right { border-color: var(--st-green); background: var(--st-green-bg); }
.q-opt.wrong { border-color: var(--st-red); background: var(--st-red-bg); }
.q-opt .l { width: 26px; height: 26px; border-radius: 7px; background: var(--navy-50); color: var(--navy); display: grid; place-items: center; font: 700 14px var(--font-d); flex: none; }
.feedback { padding: 11px 14px; border-radius: 10px; font-size: 14.5px; margin: 6px 0 12px; }
.cert-page { display: grid; place-items: center; }
.cert { width: 100%; max-width: 900px; aspect-ratio: 1.414; background: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-3); padding: 5.5% 7%; display: flex; flex-direction: column; text-align: center; align-items: center; justify-content: center; container-type: inline-size; }
.cert .frame { position: absolute; inset: 14px; border: 1px solid var(--navy-100); pointer-events: none; }
.cert .wave-b { position: absolute; left: 0; bottom: 0; width: 44%; }
.cert .wave-t { position: absolute; right: 0; top: 0; width: 34%; transform: rotate(180deg); }
.cert img.lg { width: 19cqw; margin-bottom: 2cqw; position: relative; }
.cert .ttl { font: 700 5.2cqw/1 var(--font-d); color: var(--navy); letter-spacing: .3cqw; }
.cert .lead { font-size: 1.8cqw; color: var(--ink-2); margin-top: 2cqw; }
.cert .who { font: 600 4.2cqw/1.1 var(--font-d); color: var(--brand-green-dark); margin: .8cqw 0; }
.cert .course-n { font: 600 2.9cqw/1.15 var(--font-d); color: var(--navy-900); max-width: 76cqw; margin-top: .5cqw; }
.cert .foot { display: flex; gap: 6cqw; margin-top: 3.4cqw; font-size: 1.55cqw; color: var(--ink-2); position: relative; line-height: 1.3; }
.cert .foot b { display: block; color: var(--ink); font-size: 1.75cqw; }

/* relatórios / admin */
.mat-table td, .mat-table th { padding: 10px 12px; }
.level { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.perm td, .perm th { text-align: center; }
.perm td:first-child, .perm th:first-child { text-align: left; }
.switch { width: 38px; height: 22px; border-radius: 11px; background: #cdd6e2; position: relative; transition: background .18s; display: inline-block; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .18s; }
.switch.on { background: var(--brand-green-dark); }
.switch.on::after { left: 18px; }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-btn { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 8px; font-size: 14px; text-align: left; font-weight: 500; color: var(--ink-2); gap: 8px; }
.cat-btn:hover { background: var(--navy-50); }
.cat-btn.on { background: var(--navy); color: #fff; }
.doc-row { display: flex; gap: 14px; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line-2); }
.doc-row:last-child { border-bottom: 0; }
.doc-ic { width: 42px; height: 42px; border-radius: 10px; background: var(--navy-50); color: var(--navy); display: grid; place-items: center; flex: none; }
.empty { text-align: center; padding: 36px 16px; color: var(--ink-3); }
.empty svg { color: var(--navy-100); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy-950); color: #fff; padding: 11px 18px; border-radius: 10px; box-shadow: var(--shadow-3); z-index: 120; font-size: 14px; max-width: min(560px, calc(100vw - 32px)); animation: toast .25s var(--ease); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px); } }
.restricted { max-width: 460px; margin: 60px auto; text-align: center; }
.restricted svg { color: var(--st-red); }

/* ---------- responsivo ---------- */
@media (max-width: 1320px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c-3 { grid-column: span 6; }
  .course-hero { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 1040px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; box-shadow: var(--shadow-3); }
  .main { margin-left: 0; }
  .menu-btn { display: grid; }
  .topbar .brand-mini { display: block; }
  .top-search { display: none; }
  .c-4, .c-5, .c-6, .c-7, .c-8 { grid-column: span 12; }
  .player-grid, .course-hero, .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .cat-list { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .cat-btn { white-space: nowrap; }
}
@media (max-width: 760px) {
  .topbar { padding: 0 12px; gap: 6px; }
  .content { padding: 16px 16px 40px; }
  .demo-strip { padding: 6px 16px; font-size: 12px; align-items: flex-start; }
  .user-chip div { display: none; }
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-box > img { display: block; }
  .hero { flex-direction: column; align-items: flex-start; padding: 20px; }
  .gauge-wrap { align-self: center; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-3 { grid-column: span 12; }
  .alert-tab span { font-size: 10.5px; }
  .continue { grid-template-columns: 1fr; }
  .uni-hero, .course-hero { padding: 20px; }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .page-head h1 { font-size: 27px; }
  .hbar { grid-template-columns: minmax(0, 48%) 1fr 30px; }
  .col span { font-size: 10.5px; }
  .columns { gap: 4px; }
}

@media print {
  .sidebar, .topbar, .demo-strip, .no-print, .scrim, .toast { display: none !important; }
  .main { margin: 0; }
  .content { padding: 0; max-width: none; animation: none; }
  body { background: #fff; }
  .cert { box-shadow: none; max-width: none; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4 landscape; margin: 0; }
}
