/* A casca do painel (casca.js): a busca do topo e a paleta, o sino, o menu do perfil e os atalhos.
   Só tokens de demo.css: vale nos dois temas. */

/* ---------- o topo ---------- */
.topo-ctl { flex: none; }
.busca-k { position: relative; display: flex; align-items: center; gap: 8px; height: 38px; width: clamp(180px, 19vw, 300px); padding: 0 7px 0 12px; border-radius: var(--r-pill); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--ink-3); font-size: 13.5px; text-align: left; transition: box-shadow var(--d-xs) var(--e-ui); }
.busca-k:hover { box-shadow: inset 0 0 0 1px rgb(var(--tinta-rgb) / .3); color: var(--ink-2); }
.busca-k > svg { width: 16px; height: 16px; flex: none; }
.bk-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
kbd, .bk-kbd { font: 500 11px/1 var(--mono); color: var(--ink-2); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--hair-2), 0 1px 0 var(--hair-2); border-radius: 6px; padding: 4px 6px; white-space: nowrap; }
.bk-kbd { flex: none; }

.sino-w, .perfil-w { position: relative; flex: none; }
.sino, .perfil-bt { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--ink-2); transition: color var(--d-xs) var(--e-ui), box-shadow var(--d-xs) var(--e-ui); }
.sino:hover, .perfil-bt:hover, .sino[aria-expanded="true"], .perfil-bt[aria-expanded="true"] { color: var(--ink); box-shadow: inset 0 0 0 1px rgb(var(--tinta-rgb) / .3); }
.sino svg { width: 18px; height: 18px; }
.sino-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-ink); color: var(--no-ink); font: 600 10.5px/18px var(--font); text-align: center; display: none; box-shadow: 0 0 0 2px var(--fundo); }
.sino.tem .sino-n { display: block; }
.sino.urgente .sino-n { background: var(--neg); }
.sino.urgente svg { transform-origin: 50% 15%; animation: sino-bate 1.8s var(--e-out) 1 .4s; }
@keyframes sino-bate { 0%, 60%, 100% { transform: none; } 10%, 30% { transform: rotate(12deg); } 20%, 40% { transform: rotate(-10deg); } }
@media (prefers-reduced-motion: reduce) { .sino.urgente svg { animation: none; } }
.perfil-bt { padding: 0; box-shadow: none; }
.perfil-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--mono); letter-spacing: .02em; color: #f2a061; background: linear-gradient(135deg, #5a3419, #2a170a); box-shadow: 0 0 0 2px var(--fundo), 0 0 0 3px var(--hair-2); flex: none; }
.perfil-bt:hover .perfil-av, .perfil-bt[aria-expanded="true"] .perfil-av { box-shadow: 0 0 0 2px var(--fundo), 0 0 0 3.5px var(--accent); }
.perfil-av.grande { width: 42px; height: 42px; font-size: 13.5px; box-shadow: none; }
.topo-ctl .topo-tema { display: none; }
@media (min-width: 1360px) { .topo-ctl .topo-tema { display: grid; } }

/* ---------- os balões do topo (sino e perfil) ---------- */
.pop-topo { position: absolute; right: 0; top: calc(100% + 10px); z-index: 65; width: min(380px, calc(100vw - 24px)); border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--hair-2), 0 24px 50px -18px var(--sombra); padding: 6px; animation: pop-in var(--d-sm) var(--e-out); }
.pop-topo[hidden] { display: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } }
.pop-hd { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; }
.pop-hd b { font-size: 14.5px; font-weight: var(--w-strong); }
.pop-hd > span { flex: 1; font-size: 12.5px; color: var(--ink-3); }
.pop-vazio { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px 14px; font-size: 13px; color: var(--ink-2); }
.pop-vazio svg { width: 18px; height: 18px; color: var(--pos); flex: none; }
.pop-pe { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 10px 6px; margin-top: 4px; border-top: 1px solid var(--hair); font-size: 12.5px; }
.sino-l { max-height: min(420px, 60vh); overflow-y: auto; overscroll-behavior: contain; }
.sino-it { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 11px; font-size: 13px; line-height: 1.42; color: var(--ink-2); }
.sino-it:hover, .sino-it:focus-visible { background: var(--paper-2); }
.sino-ic { position: relative; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-ink); }
.sino-ic svg { width: 16px; height: 16px; }
.sino-it.b .sino-ic { background: var(--neg-bg); color: var(--neg); }
.sino-it.w .sino-ic { background: var(--warn-bg); color: var(--warn); }
.sino-it:not(.lida) .sino-ic::after { content: ""; position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 2px var(--paper); }
.sino-t { flex: 1; min-width: 0; }
.sino-t > span { display: block; color: var(--ink); }
.sino-t b { font-weight: var(--w-strong); }
.sino-t small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.sino-it.lida { opacity: .62; }

.pf-hd { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; border-bottom: 1px solid var(--hair); }
.pf-hd b { display: block; font-size: 14.5px; font-weight: var(--w-strong); }
.pf-hd small { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
.pf-hd small.mono { font-size: 11.5px; }
.pf-bloco { padding: 12px 10px; border-bottom: 1px solid var(--hair); }
.pf-rot { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.pf-nota { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.pf-menu { display: flex; flex-direction: column; padding: 6px 0 2px; }
.pf-menu a, .pf-menu button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 10px; font-size: 13.5px; color: var(--ink); text-align: left; width: 100%; }
.pf-menu a:hover, .pf-menu button:hover, .pf-menu :focus-visible { background: var(--paper-2); }
.pf-menu svg { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
.pf-menu span { flex: 1; }
.pf-menu .pf-sair { color: var(--neg); border-top: 1px solid var(--hair); border-radius: 0 0 10px 10px; margin-top: 4px; }
.pf-menu .pf-sair svg { color: var(--neg); }

/* ---------- a paleta (Ctrl+K) ---------- */
html.pk-on { overflow: hidden; }
.pk { position: fixed; inset: 0; z-index: 95; display: flex; justify-content: center; align-items: flex-start; padding: max(9vh, 64px) 16px 16px; }
.pk[hidden] { display: none; }
.pk-fundo { position: absolute; inset: 0; background: rgba(14, 10, 7, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pk-caixa { position: relative; width: min(680px, 100%); max-height: min(640px, calc(100svh - max(9vh, 64px) - 24px)); display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-radius: 18px; box-shadow: 0 0 0 1px var(--hair-2), 0 40px 100px -24px var(--sombra); overflow: hidden; animation: pk-in var(--d-sm) var(--e-out); }
@keyframes pk-in { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
.pk-campo { display: flex; align-items: center; gap: 12px; padding: 0 16px 0 20px; height: 60px; border-bottom: 1px solid var(--hair); flex: none; }
.pk-campo > svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.pk-campo input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font: inherit; font-size: 17px; letter-spacing: -.01em; color: var(--ink); }
.pk-campo input::placeholder { color: var(--ink-3); }
.pk-cancela { display: none; font-size: 15px; font-weight: var(--w-medium); color: var(--accent-ink); padding: 8px 2px; }
.pk-corpo { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 6px 8px 10px; scrollbar-width: thin; }
.pk-g { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 14px 12px 7px; }
.pk-op { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 7px 10px; border-radius: 11px; cursor: pointer; scroll-margin: 8px; }
.pk-op[aria-selected="true"] { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--hair); }
.pk-op-ia[aria-selected="true"] { background: var(--accent-soft); }
.pk-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--paper-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair); }
.pk-ic svg { width: 17px; height: 17px; }
.pk-op-ia .pk-ic { background: var(--night); color: var(--accent-glow); box-shadow: none; }
.pk-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pk-tt { font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-tt b { font-weight: var(--w-strong); }
.pk-t small { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk mark { background: none; color: var(--accent-ink); font-weight: var(--w-strong); box-shadow: inset 0 -2px 0 rgba(224, 135, 68, .35); }
.pk-dir { display: flex; align-items: center; gap: 8px; flex: none; }
.pk-tipo { font-size: 12px; color: var(--ink-3); }
.pk-enter { visibility: hidden; }
.pk-op[aria-selected="true"] .pk-enter { visibility: visible; }
.pk-selo { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--night); color: var(--accent-glow); font: 600 10.5px/1 var(--mono); letter-spacing: .04em; }
.pk-nada { font-size: 13px; color: var(--ink-3); padding: 14px 12px 4px; }
.pk-pe { flex: none; display: flex; gap: 16px; align-items: center; padding: 9px 16px; border-top: 1px solid var(--hair); background: var(--sup-1); font-size: 12px; color: var(--ink-3); }
.pk-pe span { display: inline-flex; align-items: center; gap: 4px; }
.pk-pe kbd { padding: 3px 5px; font-size: 10.5px; }
.pk-pe-dir { margin-left: auto; }

/* ---------- atalhos de teclado (na gaveta) ---------- */
.casca-kb { grid-template-columns: minmax(96px, auto) 1fr; }
.casca-kb dt { color: var(--ink-2); white-space: nowrap; }
.casca-kb dd { text-align: left; }

/* ---------- celular e tablet ---------- */
@media (max-width: 1180px) { .busca-k { width: 38px; padding: 0; justify-content: center; color: var(--ink-2); } .bk-txt, .bk-kbd { display: none; } .busca-k > svg { width: 18px; height: 18px; } }
@media (max-width: 900px) {
  .topo-ctl { gap: 6px; }
  .pop-topo { position: fixed; left: 12px; right: 12px; top: calc(var(--faixa-h) + 62px); width: auto; max-height: calc(100svh - var(--faixa-h) - 62px - var(--barra-h) - 24px); overflow-y: auto; }
}
@media (max-width: 560px) {
  .topo-ia { display: none; }
  .topo-ctl { gap: 6px; }
  .busca-k, .sino, .perfil-bt, .topo-venda { width: 36px; height: 36px; }
  .perfil-av { width: 32px; height: 32px; }
  .pk { padding: 0; }
  .pk-caixa { width: 100%; max-height: none; height: 100%; height: 100dvh; border-radius: 0; }
  .pk-campo { height: 58px; padding: 0 14px 0 16px; }
  .pk-campo input { font-size: 16px; }
  .pk-esc, .pk-pe, .pk-enter { display: none; }
  .pk-cancela { display: block; }
  .pk-corpo { padding: 6px 6px calc(16px + env(safe-area-inset-bottom)); }
  .pk-op { min-height: 54px; }
  .pk-tipo { display: none; }
}
@media (max-width: 360px) { .topo h1 { font-size: 17px; } .topo-ctl { gap: 4px; } }

/* ---------- a tabela viva (tabela.js) ---------- */
.tv-barra { position: relative; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: -4px 0 8px; }
.tv-bt { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: var(--w-medium); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair); background: var(--paper); transition: color var(--d-xs) var(--e-ui), box-shadow var(--d-xs) var(--e-ui); }
.tv-bt:hover, .tv-bt[aria-pressed="true"], .tv-bt.on { color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-2); }
.tv-bt[aria-pressed="true"], .tv-bt.on { background: var(--paper-2); }
.tv-bt svg { width: 14px; height: 14px; flex: none; }
.tv-bt.tv-ic { width: 30px; padding: 0; justify-content: center; }
.tv-bt em { font-style: normal; font: 500 10.5px/1 var(--mono); color: var(--accent-ink); }
.tv-bt em:empty { display: none; }
.tv-vn { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-conta { margin-left: auto; font: 400 11.5px/1 var(--mono); color: var(--ink-3); padding-right: 2px; }
.tv-barra .so-cel { display: none; }
.tv-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; width: min(340px, calc(100vw - 32px)); max-height: min(440px, 64vh); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--hair-2), 0 22px 44px -18px var(--sombra); }
.tv-pop[hidden] { display: none; }
.tv-hd { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 10px 10px 8px; }
.tv-it { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; color: var(--ink); }
.tv-it small { display: block; font-size: 12px; color: var(--ink-3); }
.tv-it:hover, .tv-it.on { background: var(--paper-2); }
.tv-it.on { font-weight: var(--w-strong); }
.tv-lin { display: flex; align-items: center; gap: 4px; }
.tv-lin .tv-it { flex: 1; }
.tv-del { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-3); flex: none; }
.tv-del:hover { background: var(--neg-bg); color: var(--neg); }
.tv-del svg { width: 13px; height: 13px; }
.tv-ordl { padding: 4px 6px 4px 10px; font-size: 13px; }
.tv-ordl > span { flex: 1; min-width: 0; }
.tv-mini { height: 28px; padding: 0 9px; border-radius: 999px; font-size: 12px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--hair); }
.tv-mini.on { background: var(--ink); color: var(--no-ink); box-shadow: none; }
.tv-salva { display: flex; gap: 6px; padding: 8px 6px 4px; border-top: 1px solid var(--hair); margin-top: 6px; }
.tv-salva .inp { height: 32px; font-size: 13px; }
.tv-nota { font-size: 12px; color: var(--ink-3); padding: 6px 10px 6px; line-height: 1.45; }
.tv-f { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 6px; align-items: center; padding: 4px 6px 4px 10px; font-size: 13px; }
.tv-f:has(input[type=number]) { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, .8fr); }
.tv-f .inp { height: 30px; font-size: 12.5px; padding: 0 8px; }
.tv-f > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.tv-ck { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 9px; font-size: 13.5px; cursor: pointer; }
.tv-ck:hover { background: var(--paper-2); }
.tv-ck input { width: 16px; height: 16px; accent-color: var(--accent-ink); margin: 0; }
.tv-limpa { display: block; width: calc(100% - 8px); margin: 6px 4px 2px; height: 32px; border-radius: 9px; font-size: 12.5px; color: var(--accent-ink); font-weight: var(--w-medium); }
.tv-limpa:hover { background: var(--accent-soft); }
.tab th.tv-ord { cursor: pointer; user-select: none; }
.tab th.tv-ord:hover { color: var(--ink); }
.tab th.tv-sel { color: var(--accent-ink); }
.tv-seta { display: inline-block; width: 0; height: 0; margin-left: 5px; vertical-align: middle; border: 4px solid transparent; opacity: 0; }
.tab th.tv-ord:hover .tv-seta { opacity: .35; border-top-color: currentColor; border-bottom-width: 0; }
.tab th[aria-sort="ascending"] .tv-seta { opacity: 1; border-bottom-color: currentColor; border-top-width: 0; }
.tab th[aria-sort="descending"] .tv-seta { opacity: 1; border-top-color: currentColor; border-bottom-width: 0; }
.tab th.tv-ord:focus-visible { outline-offset: -2px; }
.tab .tv-oculta { display: none !important; }
.tab tr[hidden] { display: none !important; }
.tab.tv-compacta td { padding-top: 5px; padding-bottom: 5px; }
.tab.tv-compacta .sec { display: none; }
@media (max-width: 760px) {
  .tv-barra .so-pc, .tv-vn { display: none; }
  .tv-barra .so-cel { display: inline-flex; }
  .tv-bt { padding: 0 9px; }
  .tv-pop { position: fixed; left: 12px; right: 12px; top: auto; bottom: calc(var(--barra-h) + 12px); width: auto; max-height: 60svh; }
  .tab.cartoes.tv-compacta tr { padding-top: 7px; padding-bottom: 7px; }
}

/* ---------- Dados e Sistema (sistema.js) ---------- */
.sis-volta { margin-bottom: 12px; }
.sis-volta .link { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; }
.sis-volta svg { width: 16px; height: 16px; }
.sis-plan td { white-space: nowrap; }
.sis-plan td.neg { color: var(--neg); }
.sis-grupo + .sis-grupo { margin-top: 20px; }
.sis-gt { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 4px 0 10px; }
.sis-pl { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.sis-card { position: relative; display: flex; align-items: flex-start; background: var(--cartao); border-radius: var(--r-3); box-shadow: var(--ring); transition: box-shadow var(--d-sm) var(--e-ui); min-width: 0; }
.sis-card:hover { box-shadow: 0 0 0 1px var(--accent), 0 14px 28px -20px var(--sombra); }
.sis-card-a { flex: 1; min-width: 0; display: flex; gap: 12px; padding: 14px 8px 14px 14px; }
.sis-card-a b { display: block; font-weight: var(--w-strong); font-size: 14px; }
.sis-card-a small { display: block; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.sis-meta { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
.sis-meta .mono { font-size: 11px; }
.sis-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-ink); }
.sis-ic svg { width: 17px; height: 17px; }
.sis-baixa { margin: 10px 10px 0 0; flex: none; }
.sis-contador { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.sis-contador b { font-weight: var(--w-strong); }
.sis-contador p { font-size: 13px; }

.sis-cfg { gap: 14px; }
.sis-cfg .caixa-tit { margin-bottom: 0; }
.sis-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 16px; }
.sis-num { position: relative; display: flex; align-items: center; }
.sis-num .inp { padding-right: 12px; }
.sis-num em { flex: none; font-style: normal; font-size: 12.5px; color: var(--ink-3); margin-left: 8px; white-space: nowrap; }
.sis-ligas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; }
.sis-liga { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--r-2); box-shadow: inset 0 0 0 1px var(--hair); background: var(--sup-1); }
.sis-liga b { display: block; font-size: 13.5px; font-weight: var(--w-strong); }
.sis-liga small { display: block; font-size: 12px; color: var(--ink-3); }
.sis-sw { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--barra); transition: background-color var(--d-sm) var(--e-ui); }
.sis-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform var(--d-sm) var(--e-out); }
.sis-sw[aria-checked="true"] { background: var(--pos); }
.sis-sw[aria-checked="true"]::after { transform: translateX(16px); }
.sis-eco { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-2); background: var(--info-bg); color: var(--ink); font-size: 13px; line-height: 1.5; }
.sis-eco > svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--info); }
.sis-pe { padding-top: 12px; border-top: 1px solid var(--hair); }
.sis-bloco { padding-top: 14px; border-top: 1px solid var(--hair); }
.sis-rot { font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.sis-hor td { vertical-align: middle; }
.sis-hora { height: 34px; width: 120px; }
.sis-hora:disabled { opacity: .4; }
.sis-int { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.sis-int-it { padding: 12px 14px; border-radius: var(--r-2); box-shadow: inset 0 0 0 1px var(--hair); background: var(--sup-1); }
.sis-int-it.off { background: var(--paper); }
.sis-int-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.sis-int-top b { flex: 1; font-weight: var(--w-strong); }
.sis-int-it p { font-size: 13px; color: var(--ink-2); }
.sis-int-it small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.sis-int-it.off small { color: var(--warn); }
.sis-perm td, .sis-perm th { white-space: nowrap; }
.sis-perm td.pri { white-space: normal; min-width: 200px; }
.sis-sel { height: 30px; font-size: 12.5px; }
.sis-sel.sis-p-edita { color: var(--pos); } .sis-sel.sis-p-nada { color: var(--ink-3); }
.sis-sel:disabled { opacity: .7; cursor: default; }

.sis-nota { display: flex; align-items: center; gap: 20px; }
.sis-nota h2 { font-size: 18px; font-weight: var(--w-display); letter-spacing: -.015em; margin-bottom: 4px; }
.sis-nota p { font-size: 13.5px; }
.sis-anel { position: relative; width: 116px; height: 116px; flex: none; display: grid; place-items: center; align-content: center; }
.sis-anel svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sis-anel-t { fill: none; stroke: var(--paper-3); stroke-width: 10; }
.sis-anel-v { fill: none; stroke: var(--pos); stroke-width: 10; stroke-linecap: round; }
.sis-anel-v.warn { stroke: #C98A2E; } .sis-anel-v.bad { stroke: var(--neg); }
.sis-anel b { position: relative; font-size: 32px; font-weight: var(--w-display); letter-spacing: -.03em; line-height: 1; }
.sis-anel small { position: relative; font-size: 11.5px; color: var(--ink-3); text-align: center; }
.sis-cont { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.sis-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 8px 20px; }
.sis-area { min-width: 0; }
.sis-area .sis-rot { margin: 8px 0 4px; }
.sis-chk { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-top: 1px solid var(--hair); }
.sis-area .sis-chk:first-of-type { border-top: 0; }
.sis-chk:hover b { color: var(--accent-ink); }
.sis-chk-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--pos-bg); color: var(--pos); }
.sis-chk.warn .sis-chk-ic { background: var(--warn-bg); color: var(--warn); }
.sis-chk.bad .sis-chk-ic { background: var(--neg-bg); color: var(--neg); }
.sis-chk-ic svg { width: 15px; height: 15px; }
.sis-chk-t { flex: 1; min-width: 0; }
.sis-chk-t b { display: block; font-size: 13.5px; font-weight: var(--w-strong); }
.sis-chk-t small { display: block; font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }

.sis-vit { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sis-vit .caixa + .caixa { margin-top: 0; }
.sis-v { display: flex; flex-direction: column; gap: 4px; }
.sis-v-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sis-v-top .mono { font-weight: 600; color: var(--ink-2); margin-right: auto; }
.sis-v h3 { font-size: 14.5px; font-weight: var(--w-strong); margin-top: 4px; }
.sis-v .sub { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; min-height: 2.7em; }
.sis-v-num { font-size: 28px; font-weight: var(--w-display); letter-spacing: -.025em; line-height: 1.15; margin-top: 4px; }
.sis-v-num.ok { color: var(--pos); } .sis-v-num.warn { color: var(--warn); } .sis-v-num.bad { color: var(--neg); }
.sis-dist { display: flex; height: 8px; border-radius: 999px; overflow: hidden; gap: 2px; margin-top: 8px; background: var(--paper-2); }
.sis-dist i { display: block; height: 100%; }
.sis-dist .ok { background: var(--pos); } .sis-dist .warn { background: #C98A2E; } .sis-dist .bad { background: var(--neg); }
.sis-dist-l { display: flex; justify-content: space-between; gap: 6px; font: 400 11px/1.3 var(--mono); color: var(--ink-3); }
.sis-v .linha-svg { height: 46px; margin-top: 6px; }
@media (max-width: 760px) {
  .sis-nota { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sis-checks { grid-template-columns: minmax(0, 1fr); }
  .sis-pl { grid-template-columns: minmax(0, 1fr); }
  .sis-hora { width: 100px; }
}
@media (max-width: 480px) { .sis-vit { grid-template-columns: minmax(0, 1fr); } .sis-g { grid-template-columns: minmax(0, 1fr); } }
