/* KernelZero – estilos comuns (base: SGCME, protótipos de média fidelidade) */
@import url("marca/marca.css");
:root {
  --azul: #1f3b63; --azul-2: #2c5282; --azul-claro: #e8eef7; --azul-borda: #c5d3e8;
  --fundo: #f3f5f8; --card: #ffffff; --borda: #dde2ea; --borda-2: #e9edf2;
  --texto: #1d2433; --texto-2: #5b6475; --texto-3: #8a93a3;
  --ok: #1e7a46; --ok-bg: #e3f4ea; --warn: #8a5a00; --warn-bg: #fff1d6;
  --bad: #b42318; --bad-bg: #fde4e1; --mute: #5b6475; --mute-bg: #eceff3;
  --cal: #2c5ea8; --ver: #7b4fb8; --pre: #1f8a5a; --cor: #c2610c;
  --raio: 8px; --sombra: 0 1px 2px rgba(16,24,40,.06);
  --fonte: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--fonte); font-size: 14px; color: var(--texto); background: var(--fundo); line-height: 1.45; }
a { color: var(--azul-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; color: var(--texto); }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 0 0 8px; }
small, .muted { color: var(--texto-2); }
.ico { width: 18px; height: 18px; flex: none; }
hr { border: 0; border-top: 1px solid var(--borda-2); margin: 16px 0; }

/* barra superior */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 16px;
  background: #fff; border-bottom: 1px solid var(--borda); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--texto); min-width: 190px; }
.brand:hover { text-decoration: none; }
.brand b { display: block; font-size: 15px; letter-spacing: .5px; }
.brand small { display: block; font-size: 11px; }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--azul); color: #fff; font-weight: 700; font-size: 13px; }
.top-lab { display: flex; align-items: center; gap: 8px; }
.top-lab label { font-size: 12px; color: var(--texto-2); }
.top-lab select { max-width: 260px; }
.fixo-campo { display: inline-flex; gap: 8px; align-items: center; padding: 6px 10px; border: 1px solid var(--borda); border-radius: 6px; background: #f6f7f9; font-size: 13px; }
.fixo-campo em, .fixo { font-style: normal; font-size: 10px; font-weight: 700; color: var(--texto-3); letter-spacing: .5px; }
.top-search { flex: 1; display: flex; align-items: center; gap: 6px; max-width: 420px; border: 1px solid var(--borda); border-radius: 20px; padding: 0 12px; background: #f8f9fb; }
.top-search input { border: 0; background: transparent; padding: 8px 0; width: 100%; outline: none; font: inherit; }
.top-search .ico { color: var(--texto-3); }
.bell { position: relative; color: var(--texto-2); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.bell:hover { background: var(--fundo); }
.bell .badge { position: absolute; top: 0; right: -4px; }
.user-chip { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--azul-claro); color: var(--azul); font-weight: 700; font-size: 12px; }
.who b { display: block; font-size: 13px; }
.who small { display: block; font-size: 11px; }
.btn-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 6px; background: transparent; color: var(--texto-2); cursor: pointer; }
.btn-icon:hover { background: var(--fundo); color: var(--texto); }
.menu-toggle { display: none; }
.badge { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 10px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; text-align: center; }

/* estrutura */
.shell { display: flex; min-height: calc(100vh - 60px); }
.sidebar { width: 220px; flex: none; padding: 14px 10px; background: #fff; border-right: 1px solid var(--borda); position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; display: flex; flex-direction: column; }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--texto); margin-bottom: 2px; }
.sidebar a:hover { background: var(--fundo); text-decoration: none; }
.sidebar a.ativo { background: var(--azul-claro); color: var(--azul); font-weight: 600; }
.sidebar a .ico { color: var(--texto-2); }
.sidebar a.ativo .ico { color: var(--azul); }
.sidebar a .badge { margin-left: auto; }
.side-group { margin: 16px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .8px; color: var(--texto-3); text-transform: uppercase; }
.side-foot { margin-top: auto; padding: 16px 10px 4px; font-size: 11px; color: var(--texto-3); }
.content { flex: 1; min-width: 0; padding: 22px 26px 40px; }

/* cabeçalho de página */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .sub { color: var(--texto-2); margin-top: 4px; }
.page-head .acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs { font-size: 12px; color: var(--texto-2); margin-bottom: 4px; }

/* cartões */
.card { background: var(--card); border: 1px solid var(--borda); border-radius: var(--raio); padding: 18px; box-shadow: var(--sombra); margin-bottom: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.card.p0 { padding: 0; }
.card.p0 .card-head { padding: 14px 18px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { display: block; background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); padding: 14px 16px; color: var(--texto); border-top: 3px solid var(--azul); box-shadow: var(--sombra); }
a.stat:hover { text-decoration: none; border-color: var(--azul-borda); }
.stat .rot { font-size: 12px; color: var(--texto-2); }
.stat .val { font-size: 26px; font-weight: 700; margin: 2px 0; }
.stat .det { font-size: 12px; color: var(--texto-2); }
.stat.ok { border-top-color: var(--ok); } .stat.warn { border-top-color: #e0a100; } .stat.bad { border-top-color: var(--bad); } .stat.mute { border-top-color: #9aa3b2; } .stat.ver { border-top-color: var(--ver); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.split-l { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }

/* tabelas */
.tabela-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 12px; font-weight: 600; color: var(--texto-2); padding: 9px 10px; border-bottom: 1px solid var(--borda); white-space: nowrap; background: #fafbfc; }
table.t td { padding: 9px 10px; border-bottom: 1px solid var(--borda-2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.clic { cursor: pointer; }
table.t tr.clic:hover td { background: #f7f9fc; }
table.t tr.sel td { background: var(--azul-claro); }
table.t tr.destaque td { background: #fff6f5; }
table.t tfoot td { font-weight: 700; border-top: 1px solid var(--borda); background: #fafbfc; }
table.t td.num, table.t th.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.neg { color: var(--bad); font-weight: 600; }
.tag { font-weight: 700; white-space: nowrap; }
.vazio { padding: 26px; text-align: center; color: var(--texto-2); }

/* status */
.pill { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-mute { background: var(--mute-bg); color: var(--mute); }
.pill-info { background: var(--azul-claro); color: var(--azul); }
.disp { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.disp::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.disp-ok::before { background: #2ea36b; } .disp-bad::before { background: var(--bad); }
.tipo { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tipo::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.tipo-calibracao::before { background: var(--cal); } .tipo-verificacao::before { background: var(--ver); }
.tipo-preventiva::before { background: var(--pre); } .tipo-corretiva::before { background: var(--cor); }

/* abas e filtros */
.abas { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.abas a, .abas button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 16px; border: 1px solid var(--borda); background: #fff; color: var(--texto); font: inherit; font-size: 13px; cursor: pointer; }
.abas a:hover { text-decoration: none; background: var(--fundo); }
.abas a.ativo, .abas button.ativo { background: var(--azul); border-color: var(--azul); color: #fff; }
.abas .n { font-weight: 700; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--borda); margin-bottom: 14px; overflow-x: auto; }
.tabs button { padding: 10px 14px; border: 0; background: none; font: inherit; color: var(--texto-2); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.ativo { color: var(--azul); border-bottom-color: var(--azul); font-weight: 600; }
.tab-painel { display: none; }
.tab-painel.ativo { display: block; }
.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filtros .campo { margin: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--borda); border-radius: 14px; background: #fff; font-size: 13px; cursor: pointer; user-select: none; }
.chip input { margin: 0; }
.chip.on, .chip:has(input:checked) { background: var(--azul-claro); border-color: var(--azul-borda); color: var(--azul); }
.chip button { border: 0; background: none; cursor: pointer; color: var(--texto-3); padding: 0; font-size: 14px; }

/* formulários */
.campo { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; min-width: 0; }
.campo > label, .rot { font-size: 12px; font-weight: 600; color: var(--texto-2); }
.req::after { content: " *"; color: var(--bad); }
input[type=text], input[type=search], input[type=password], input[type=date], input[type=time], input[type=file], input[type=number], input[type=email], input[type=month], select, textarea {
  font: inherit; color: var(--texto); padding: 7px 10px; border: 1px solid #cdd4de; border-radius: 6px; background: #fff; min-width: 0; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--azul-borda); border-color: var(--azul-2); }
input[readonly], select[disabled], input[disabled], textarea[readonly] { background: #f2f4f7; color: var(--texto-2); }
input.ok { border-color: #2ea36b; } input.erro, select.erro { border-color: var(--bad); background: #fff8f7; }
textarea { min-height: 70px; resize: vertical; }
.linha { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.linha-3 { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.linha-4 { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.inline-fixo { position: relative; }
.inline-fixo .fixo { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.radio-grupo { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-grupo label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--borda); border-radius: 6px; background: #fff; cursor: pointer; }
.radio-grupo label:has(input:checked) { border-color: var(--azul-2); background: var(--azul-claro); color: var(--azul); font-weight: 600; }
.secao { font-size: 13px; font-weight: 700; margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
.secao small { font-weight: 400; }
.form-acoes { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--borda-2); flex-wrap: wrap; }
.form-acoes .dir { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.dica { font-size: 12px; color: var(--texto-2); }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 6px; border: 1px solid #cdd4de; background: #fff; color: var(--texto); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; background: #f6f7f9; }
.btn-pri { background: var(--azul); border-color: var(--azul); color: #fff; }
.btn-pri:hover { background: #18304f; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-perigo { color: var(--bad); border-color: #efb8b2; }
.btn-perigo:hover { background: var(--bad-bg); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-link { border: 0; background: none; color: var(--azul-2); cursor: pointer; font: inherit; padding: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { display: none; position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 190px; background: #fff; border: 1px solid var(--borda); border-radius: 8px; box-shadow: 0 8px 24px rgba(16,24,40,.12); padding: 6px; }
.dropdown.aberto .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--texto); background: none; border: 0; font: inherit; cursor: pointer; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--fundo); text-decoration: none; }

/* alertas */
.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; border: 1px solid; font-size: 13px; }
.alert-ok { background: var(--ok-bg); border-color: #b4dfc5; color: #155c35; }
.alert-erro { background: var(--bad-bg); border-color: #f2b8b1; color: #8c1d13; }
.alert-aviso { background: var(--warn-bg); border-color: #f0d18f; color: #6b4600; }
.alert-info { background: var(--azul-claro); border-color: var(--azul-borda); color: var(--azul); }
.alert b { font-weight: 700; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

/* login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; }
.login-hero { background: linear-gradient(160deg, #1f3b63, #2c5282); color: #fff; padding: 48px; display: flex; flex-direction: column; }
.login-hero .logo { background: #fff; color: var(--azul); width: 44px; height: 44px; }
.login-hero h1 { color: #fff; font-size: 34px; line-height: 1.15; margin: 70px 0 16px; }
.login-hero p { color: #d6e0ef; max-width: 460px; font-size: 15px; }
.login-hero .rodape { margin-top: auto; color: #b9c8de; font-size: 12px; }
.login-box { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-box form { width: 100%; max-width: 360px; }
.login-box h2 { font-size: 24px; margin-bottom: 4px; }

/* histórico (barra) */
.hist-bar { display: flex; height: 14px; border-radius: 4px; overflow: hidden; background: var(--mute-bg); margin: 8px 0 4px; }
.hist-bar span { height: 100%; }
.hist-bar .d1 { background: #8fd1ad; } .hist-bar .d0 { background: #ef9a92; }
.hist-lista { list-style: none; margin: 10px 0 0; padding: 0; }
.hist-lista li { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--borda-2); font-size: 13px; }

/* calendário */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--borda); border-radius: 8px; overflow: hidden; }
.cal .dow { padding: 8px; font-size: 12px; font-weight: 600; color: var(--texto-2); background: #fafbfc; border-bottom: 1px solid var(--borda); }
.cal .dia { min-height: 96px; padding: 6px; border-right: 1px solid var(--borda-2); border-bottom: 1px solid var(--borda-2); cursor: pointer; background: #fff; }
.cal .dia:nth-child(7n) { border-right: 0; }
.cal .dia.fora { background: #fafbfc; color: var(--texto-3); cursor: default; }
.cal .dia.hoje .n { background: var(--azul); color: #fff; border-radius: 50%; }
.cal .dia.sel { outline: 2px solid var(--azul-2); outline-offset: -2px; background: #f5f8fd; }
.cal .dia .n { display: inline-grid; place-items: center; width: 22px; height: 22px; font-size: 12px; font-weight: 600; }
.cal .ev { display: block; font-size: 11px; padding: 1px 6px; border-radius: 4px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.ev-calibracao { background: var(--cal); } .ev-verificacao { background: var(--ver); } .ev-preventiva { background: var(--pre); } .ev-corretiva { background: var(--cor); }
.cal .mais { font-size: 11px; color: var(--texto-2); margin-top: 2px; }

/* gráficos */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--fonte); font-size: 11px; fill: var(--texto-2); }
.barra-h { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 13px; }
.barra-h .b { height: 10px; border-radius: 5px; background: var(--azul-2); }
.legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--texto-2); }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* passos (wizard) */
.passos { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.passo { flex: 1; min-width: 160px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--borda); border-radius: 8px; background: #fff; color: var(--texto-2); }
.passo .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mute-bg); font-weight: 700; font-size: 12px; }
.passo.ativo { border-color: var(--azul-2); color: var(--azul); font-weight: 600; }
.passo.ativo .n { background: var(--azul); color: #fff; }
.passo.feito .n { background: var(--ok); color: #fff; }
.passo-painel { display: none; }
.passo-painel.ativo { display: block; }

/* grandezas */
.grandeza { border: 1px solid var(--borda); border-radius: 8px; padding: 14px; margin-bottom: 14px; background: #fcfdfe; }
.grandeza-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
table.t input { padding: 5px 8px; }

/* painel lateral / colunas */
.coluna-lista a, .coluna-lista .li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 6px; color: var(--texto); }
.coluna-lista a:hover { background: var(--fundo); text-decoration: none; }
.coluna-lista a.ativo { background: var(--azul-claro); color: var(--azul); font-weight: 600; }
.coluna-lista .cnt { color: var(--texto-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.lado { position: sticky; top: 80px; }

/* fila (análise crítica) */
.fila a { display: block; padding: 12px; border: 1px solid var(--borda); border-radius: 8px; margin-bottom: 8px; color: var(--texto); background: #fff; }
.fila a:hover { text-decoration: none; border-color: var(--azul-borda); }
.fila a.ativo { border-color: var(--azul-2); background: var(--azul-claro); }
.fila a.alerta { border-left: 3px solid var(--bad); }

/* e-mail (T19) */
.email-lista a { display: block; padding: 12px 14px; border-bottom: 1px solid var(--borda-2); color: var(--texto); }
.email-lista a.ativo { background: var(--azul-claro); }
.email-lista a:hover { text-decoration: none; background: #f7f9fc; }
.email-cab { border-bottom: 1px solid var(--borda-2); padding-bottom: 12px; margin-bottom: 16px; }

/* tablet (T10) */
body.mobile { background: #e9edf3; }
body.mobile .content { max-width: 760px; margin: 0 auto; padding: 16px; }
.m-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--azul); color: #fff; padding: 14px 16px; position: sticky; top: 0; z-index: 30; }
.m-topo a { color: #fff; font-size: 16px; font-weight: 600; }
.m-topo small { color: #cfdaea; }
.leitura { border: 1px solid var(--borda); border-radius: 10px; padding: 14px; margin-bottom: 12px; background: #fff; }
.leitura.nc { border-color: #f2b8b1; background: #fffafa; }
body.mobile input, body.mobile select, body.mobile textarea { padding: 11px 12px; font-size: 16px; }
body.mobile .btn { padding: 12px 18px; font-size: 15px; }

/* matriz de permissões */
.matriz td:not(:first-child), .matriz th:not(:first-child) { text-align: center; }

/* modal */
dialog { border: 0; border-radius: 10px; padding: 0; width: min(520px, 94vw); box-shadow: 0 20px 50px rgba(16,24,40,.3); }
dialog::backdrop { background: rgba(16,24,40,.35); }
dialog .dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--borda-2); }
dialog .dlg-body { padding: 18px; }

/* impressão / exportar PDF */
@media print {
  .topbar, .sidebar, .no-print, .acoes, .form-acoes, .filtros, .abas { display: none !important; }
  .content { padding: 0; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
}

/* responsivo */
@media (max-width: 1100px) {
  .split, .split-l { grid-template-columns: 1fr; }
  .lado { position: static; }
  .who { display: none; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; }
  .sidebar { position: fixed; left: 0; top: 60px; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
  body.menu-aberto .sidebar { transform: none; }
  .top-lab label, .brand span:last-child { display: none; }
  .brand { min-width: 0; }
  .top-search { display: none; }
  .content { padding: 16px; }
  .grid-2, .grid-3, .linha-3, .linha-4 { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-hero { padding: 28px; }
  .login-hero h1 { margin-top: 24px; font-size: 26px; }
}

/* paginação */
.paginacao { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; font-size: 13px; color: var(--texto-2); flex-wrap: wrap; }
.paginacao .pags { display: flex; gap: 4px; align-items: center; }
.paginacao .pags a { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border: 1px solid var(--borda); border-radius: 6px; color: var(--texto); background: #fff; }
.paginacao .pags a:hover { text-decoration: none; background: var(--fundo); }
.paginacao .pags a.atual { background: var(--azul); border-color: var(--azul); color: #fff; }
.paginacao .pags a.off { pointer-events: none; opacity: .4; }
code { background: var(--mute-bg); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* ---------------------------------------------------------------- KernelZero */
/* seletor de módulo no topo */
.mod-switch { position: relative; }
.mod-switch > button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--borda); border-radius: 6px;
  background: #fff; font: inherit; color: var(--texto); cursor: pointer; }
.mod-switch > button:hover { background: #f6f7f9; }
.mod-switch .mod-cor { width: 10px; height: 10px; border-radius: 3px; background: var(--azul); flex: none; }
.mod-switch .dropdown-menu { min-width: 260px; }
.mod-switch .dropdown-menu a { display: flex; gap: 10px; align-items: center; }
.mod-switch .dropdown-menu a small { display: block; }
.mod-switch .dropdown-menu a.ativo { background: var(--azul-claro); }
/* cartões dos módulos no início da empresa */
.mod-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mod-card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--borda); border-top: 4px solid var(--mc, var(--azul));
  border-radius: var(--raio); padding: 18px; color: var(--texto); box-shadow: var(--sombra); }
a.mod-card:hover { text-decoration: none; border-color: var(--mc, var(--azul)); }
.mod-card .mod-nome { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; }
.mod-card .mod-nome .ico { width: 24px; height: 24px; color: var(--mc, var(--azul)); }
.mod-card p { margin: 0; color: var(--texto-2); }
.mod-card .mod-rodape { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--texto-2); }
.mod-card.off { opacity: .65; }
.perfis-mod { display: grid; grid-template-columns: 180px 1fr; gap: 8px 14px; align-items: center; }
.sidebar a.off { color: var(--texto-3); cursor: default; }
.sidebar a.off:hover { background: none; text-decoration: none; }
.mod-switch .dropdown-menu { left: 0; right: auto; }
.sidebar a .badge { white-space: nowrap; font-size: 10px; }
@media (max-width: 1500px) { .mod-switch > button small { display: none; } }
.info-grid { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: 13px; margin: 0; }
.info-grid dt { color: var(--texto-2); }
.info-grid dd { margin: 0; }

/* ================================================================ Marca KernelZero (identidade visual v1.0)
   Cores e fontes da marca aplicadas sobre a base do SGCME. Tokens em assets/marca/marca.css. */
:root {
  --azul: #1f3b63; --azul-2: #2563eb; --azul-claro: #e8eef7; --azul-borda: #d3dff0;
  --texto: #1c2633; --texto-2: #4a5566; --texto-3: #7a8699; --borda: #d3dff0; --borda-2: #e6ecf5; --fundo: #f4f7fb;
  --fonte: var(--kz-font-body); --raio: 12px;
}
h1, h2, h3, .brand b, .page-head h1, .stat .val, .login-hero h1, .login-box h2, .mod-card .mod-nome, .dlg-head h2 { font-family: var(--kz-font-heading); letter-spacing: -.01em; }
h1 { color: var(--azul); font-weight: 600; }
h2 { font-weight: 600; color: var(--texto); }
a { color: var(--azul-2); }
.brand b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--azul); }
.brand small { color: var(--texto-2); }
.logo { width: 34px; height: 34px; border-radius: 0; background: url("marca/simbolo-icone.svg") center / contain no-repeat; color: transparent; font-size: 0; overflow: hidden; }
.btn { border-radius: var(--kz-radius-sm); border-color: var(--azul-borda); }
.btn-pri { background: var(--azul-2); border-color: var(--azul-2); color: #fff; }
.btn-pri:hover { background: var(--azul); border-color: var(--azul); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.sidebar a.ativo { background: var(--azul-claro); color: var(--azul); }
.sidebar a.ativo .ico { color: var(--azul-2); }
.stat { border-top-color: var(--azul-2); }
.stat .val { font-weight: 600; }
.card, .stat, .mod-card { border-radius: var(--raio); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--azul-borda); border-color: var(--azul-2); }
table.t th { background: #f7f9fc; }
.alert { border-radius: var(--kz-radius-sm); }
.login-hero { background: var(--azul) url("marca/padrao.svg") right -60px bottom -60px / 420px no-repeat; }
.login-hero .logo { background-color: transparent; background-image: url("marca/simbolo-icone-branco.svg"); width: 44px; height: 44px; }
.login-hero h1 { font-weight: 600; font-size: 38px; }
.login-hero .marca-assinatura { font-family: var(--kz-font-heading); color: #fff; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.mod-switch .mod-cor { border-radius: 3px; }
.radio-grupo label { font-size: 13px; padding: 4px 10px; }
/* SGC etapa 4: inspeções e NCs */
.txt-bad { color: var(--bad); }
table.t tr.inativo td { color: var(--texto-3); }
table.t tr.meu td { background: #eef4fd; }
.nc-hist { list-style: none; margin: 0; padding: 0; }
.nc-hist li { padding: 8px 0; border-bottom: 1px solid var(--borda-2); font-size: 13px; }
.nc-hist li:last-child { border-bottom: 0; }
/* SGC etapa 5: eventos, mapa de risco */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.galeria-item { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.galeria-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; border: 1px solid var(--borda); background: var(--fundo); }
.galeria-doc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 4/3; border: 1px solid var(--borda); border-radius: 6px; background: var(--fundo); color: var(--azul); font-weight: 700; }
.galeria-doc svg { width: 28px; height: 28px; }
.risco-bola { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; border: 1px solid rgba(0,0,0,.25); margin-right: 2px; }
.legenda-risco { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 13px; }
.planta { position: relative; border: 1px solid var(--borda); border-radius: 6px; overflow: hidden; background: #fff; background-image: linear-gradient(var(--borda-2) 1px, transparent 1px), linear-gradient(90deg, var(--borda-2) 1px, transparent 1px); background-size: 24px 24px; user-select: none; }
.planta img { display: block; width: 100%; }
.planta-vazia { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--texto-3); font-size: 13px; pointer-events: none; }
.planta.mirando { cursor: crosshair; outline: 3px solid var(--azul-2); }
.risco-pin { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid rgba(0,0,0,.35); color: #fff; font-weight: 700; font-size: 11px; display: flex; align-items: center; justify-content: center; text-shadow: 0 1px 1px rgba(0,0,0,.4); }
.risco-pin.g1 { width: 22px; height: 22px; } .risco-pin.g2 { width: 34px; height: 34px; } .risco-pin.g3 { width: 48px; height: 48px; font-size: 13px; }
@media print { .print-only { display: block !important; } .no-print { display: none !important; } }
.lista-check { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
/* SGC etapa 7: indicadores, arquivo, ajuda */
.barras { display: flex; flex-direction: column; gap: 8px; }
.barra { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 48px; gap: 8px; align-items: center; font-size: 13px; }
.barra .rot { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra .trilho { background: var(--fundo); border-radius: 4px; height: 16px; overflow: hidden; display: block; }
.barra .valor { display: block; height: 100%; border-radius: 4px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.barra b { text-align: right; }
.colunas { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: end; height: 140px; margin-bottom: 12px; }
.coluna { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 11px; color: var(--texto-2); }
.coluna .pilar { width: 70%; border-radius: 3px 3px 0 0; }
.sub-h { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--texto-2); margin: 14px 0 6px; }
.lista-doc { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.lista-doc li { padding: 4px 0; border-bottom: 1px solid var(--borda-2); }
.ajuda-indice { position: sticky; top: 76px; }
.artigo h2 { margin-top: 2px; } .artigo-texto { font-size: 14px; line-height: 1.6; } .artigo-texto li { margin: 4px 0; }
@media (max-width: 800px) { .ajuda-indice { position: static; } }
