/* ConectProd - padrão visual Conect. Tokens primeiro: troque a marca aqui. */
:root {
  color-scheme: light;
  --bg: #f4f5f7; --surface: #ffffff; --surface-2: #f7f8fa; --linha: #e3e5e9; --linha-2: #eef0f3;
  --txt: #0f1113; --txt-2: #4a4e55; --txt-3: #757a83;
  --marca: #2a78d6; --marca-forte: #1c5cab; --marca-suave: #e6effb; --marca-txt: #ffffff;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a;
  --div-neg: #3987e5; --div-mid: #c9c8c2; --div-pos: #e34948;
  --st-good: #0ca30c; --st-warn: #fab219; --st-serious: #ec835a; --st-crit: #d03b3b; --st-info: #2a78d6;
  --good-bg: #e7f6e7; --good-txt: #0a6b0a; --warn-bg: #fff4d6; --warn-txt: #7a5200; --serious-bg: #fde9e0; --serious-txt: #8f3a14;
  --crit-bg: #fbe5e5; --crit-txt: #a11f1f; --info-bg: #e6effb; --info-txt: #1c5cab; --neutro-bg: #eef0f3; --neutro-txt: #4a4e55;
  --sombra: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --sombra-2: 0 12px 32px rgba(16, 24, 40, .18);
  --raio: 12px; --raio-sm: 8px;
  --lat: 248px;
  --fonte: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111315; --surface: #1a1c1f; --surface-2: #202327; --linha: #2c3036; --linha-2: #24272c;
  --txt: #f0efec; --txt-2: #c3c2b7; --txt-3: #8f9198;
  --marca: #3987e5; --marca-forte: #6da7ec; --marca-suave: #17283d; --marca-txt: #ffffff;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70;
  --div-neg: #3987e5; --div-mid: #5b5b56; --div-pos: #e66767;
  --good-bg: #13301a; --good-txt: #7ddc7d; --warn-bg: #3a2e0d; --warn-txt: #ffd36b; --serious-bg: #3b2015; --serious-txt: #f5a786;
  --crit-bg: #3d1717; --crit-txt: #ff9a9a; --info-bg: #17283d; --info-txt: #86b6ef; --neutro-bg: #26292e; --neutro-txt: #c3c2b7;
  --sombra: 0 1px 2px rgba(0, 0, 0, .4); --sombra-2: 0 16px 40px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 var(--fonte); color: var(--txt); background: var(--bg); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
body.travado { overflow: hidden; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
a { color: var(--marca); }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--txt-3); }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--marca); outline-offset: 2px; }

/* ---------------------------------------------------------------- botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--linha); background: var(--surface); color: var(--txt); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: var(--txt-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .ic { width: 18px; height: 18px; }
.btn-pri { background: var(--marca); border-color: var(--marca); color: var(--marca-txt); }
.btn-pri:hover { background: var(--marca-forte); border-color: var(--marca-forte); }
.btn-perigo { background: var(--st-crit); border-color: var(--st-crit); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--txt-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--linha); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn-bloco { width: 100%; }
.btn-ic { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 10px; cursor: pointer; color: var(--txt-2); flex: none; }
.btn-ic:hover { background: var(--surface-2); color: var(--txt); }
.btn-ic.perigo:hover { color: var(--st-crit); background: var(--crit-bg); }
.btn-link { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font-weight: 600; padding: 0; }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: gira .7s linear infinite; }
.spin.lg { width: 28px; height: 28px; border-width: 3px; color: var(--marca); }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- pílulas e badges */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px 2px 6px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill .ic { width: 14px; height: 14px; }
.pill-good { background: var(--good-bg); color: var(--good-txt); }
.pill-warn { background: var(--warn-bg); color: var(--warn-txt); }
.pill-serious { background: var(--serious-bg); color: var(--serious-txt); }
.pill-crit { background: var(--crit-bg); color: var(--crit-txt); }
.pill-info { background: var(--info-bg); color: var(--info-txt); }
.pill-neutro { background: var(--neutro-bg); color: var(--neutro-txt); }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--st-crit); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.txt-crit { color: var(--crit-txt); font-weight: 700; }

/* ---------------------------------------------------------------- login */
.pg-login { background: var(--surface); }
.login { min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-arte { background: linear-gradient(150deg, #0d2747 0%, #133a6b 55%, #1c5cab 100%); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 18px; position: relative; overflow: hidden; }
.login-arte::after { content: ""; position: absolute; inset: auto -120px -160px auto; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .05); }
.login-arte h1 { font-size: clamp(28px, 3.2vw, 42px); max-width: 15ch; }
.login-arte p { max-width: 46ch; color: #cfe0f6; font-size: 16px; margin: 0; }
.login-fluxo { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: f; }
.login-fluxo li { display: flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13.5px; }
.login-fluxo .ic { width: 16px; height: 16px; }
.marca { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.marca .ic { width: 28px; height: 28px; color: var(--marca); }
.login-arte .marca .ic { color: #86b6ef; }
.marca b { font-weight: 800; }
.login-form { display: grid; place-items: center; padding: 32px 20px; background: var(--bg); }
.login-form form { width: min(420px, 100%); padding: 32px; display: grid; gap: 14px; }
.login-form h2 { font-size: 26px; }
.login-form .muted { margin: -6px 0 4px; }
.marca-mob { display: none; }
.versao { text-align: center; font-size: 12px; margin: 0 !important; }
.senha { position: relative; display: block; }
.senha input { padding-right: 46px; }
.senha .btn-ic { position: absolute; right: 2px; top: 2px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--txt-2); }
.check input { width: 18px; height: 18px; accent-color: var(--marca); }

/* ---------------------------------------------------------------- casca */
.card { background: var(--surface); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); }
#app { min-height: 100dvh; }
.lateral { position: fixed; inset: 0 auto 0 0; width: var(--lat); background: var(--surface); border-right: 1px solid var(--linha); display: flex; flex-direction: column; z-index: 30; }
.lateral .marca { padding: 20px 20px 12px; }
.lateral nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; display: grid; gap: 2px; align-content: start; }
.lateral nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--txt-2); text-decoration: none; font-weight: 500; }
.lateral nav a:hover { background: var(--surface-2); color: var(--txt); }
.lateral nav a.on { background: var(--marca-suave); color: var(--marca-forte); font-weight: 700; }
:root[data-theme="dark"] .lateral nav a.on { color: #cfe0f6; }
.lateral nav a span { flex: 1; }
.nav-sec { margin: 14px 12px 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--txt-3); font-weight: 700; }
.lat-rodape { border-top: 1px solid var(--linha); padding: 12px 12px 12px 16px; display: flex; align-items: center; gap: 8px; }
.usuario { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; }
.usuario div { min-width: 0; display: grid; }
.usuario small { color: var(--txt-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lat-acoes { display: flex; }
.topo, .abas { display: none; }
#conteudo { margin-left: var(--lat); padding: 24px 28px 96px; max-width: calc(1440px + var(--lat)); outline: none; }
.faixa-demo { margin-left: var(--lat); background: var(--warn-bg); color: var(--warn-txt); padding: 8px 28px; font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.faixa-demo .ic { width: 16px; height: 16px; }
@media (max-width: 900px) { .faixa-demo { padding: 6px 14px; font-size: 12.5px; } }
.veu { display: none; }

/* cabeçalho de página */
.pg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.pg-tit { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pg-tit h1 { font-size: 24px; }
.pg-tit p { margin: 2px 0 0; font-size: 14px; }
.pg-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--marca-suave); color: var(--marca); display: grid; place-items: center; flex: none; }
.pg-ic .ic { width: 24px; height: 24px; }
.pg-acoes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- home */
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tile { position: relative; display: grid; gap: 6px; padding: 20px; min-height: 150px; border-radius: 16px; background: var(--surface); border: 1px solid var(--linha); box-shadow: var(--sombra); text-decoration: none; color: var(--txt); align-content: end; transition: transform .12s, border-color .12s; }
.tile:hover { transform: translateY(-2px); border-color: var(--marca); }
.tile-ic { width: 34px !important; height: 34px !important; color: var(--marca); position: absolute; top: 18px; left: 18px; }
.tile b { font-size: 17px; }
.tile-q { color: var(--txt-3); font-size: 14px; }
.tile.tem .tile-q { color: var(--txt-2); font-weight: 600; }
.tile-n { position: absolute; right: 18px; bottom: 18px; font-size: 44px; font-weight: 800; color: var(--linha-2); line-height: 1; }
:root[data-theme="dark"] .tile-n { color: #24272c; }
.tile .badge { position: absolute; top: 16px; right: 16px; height: 26px; min-width: 26px; font-size: 13px; }
.tile-alt { background: var(--marca-suave); border-color: transparent; }

/* ---------------------------------------------------------------- listas / cards de OP */
.filtros { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linha); background: var(--surface); cursor: pointer; font-weight: 600; color: var(--txt-2); font-size: 14px; }
.chip .ic { width: 16px; height: 16px; }
.chip b { background: var(--surface-2); border-radius: 999px; padding: 0 7px; font-size: 12.5px; }
.chip.on { background: var(--txt); color: var(--surface); border-color: var(--txt); }
.chip.on b { background: rgba(255, 255, 255, .2); }
:root[data-theme="dark"] .chip.on b { background: rgba(0, 0, 0, .15); }
.busca { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--linha); background: var(--surface); flex: 1; min-width: 200px; max-width: 420px; color: var(--txt-3); }
.busca input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; color: var(--txt); height: 100%; }
.lista { display: grid; gap: 10px; }
.card-op { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--linha); border-radius: var(--raio); box-shadow: var(--sombra); cursor: pointer; transition: border-color .12s; }
.card-op:hover { border-color: var(--marca); }
.foto { width: 64px; height: 64px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; flex: none; position: relative; color: var(--txt-3); }
.foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
.op-info { flex: 1; min-width: 0; display: grid; gap: 4px; }
.op-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.op-num { font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--marca); }
.card-op h3 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-meta { display: flex; gap: 6px 14px; flex-wrap: wrap; color: var(--txt-2); font-size: 13.5px; }
.op-meta span { display: inline-flex; align-items: center; gap: 4px; }
.op-meta .ic { width: 15px; height: 15px; color: var(--txt-3); }
.op-sub { color: var(--txt-3); font-size: 13px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.op-sub .ic { width: 14px; height: 14px; }
.op-acoes { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.op-chev { color: var(--txt-3); }

.op-head { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--linha); border-radius: var(--raio); margin-bottom: 12px; }
.op-head > div:nth-child(2) { flex: 1; min-width: 0; }
.op-head h2 { font-size: 18px; margin: 2px 0 4px; }
.faixa { margin: 0 0 14px; }
.prog { display: grid; gap: 4px; }
.prog-bar { height: 8px; border-radius: 99px; background: var(--linha-2); overflow: hidden; }
.prog-bar i { display: block; height: 100%; background: var(--marca); border-radius: 99px; transition: width .4s; }
.prog small { color: var(--txt-3); }
.sec-t { font-size: 15px; margin: 20px 0 10px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.sec-t small { font-weight: 400; }
.sec-linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sec-linha .sec-t { margin: 20px 0 10px; }
.barra-sel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.lista-itens { display: grid; gap: 8px; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--linha); border-radius: var(--raio-sm); }
.item[role=button] { cursor: pointer; }
.item[role=button]:hover { border-color: var(--marca); }
.item.feito { background: var(--surface-2); }
.item.sel { border-color: var(--marca); box-shadow: 0 0 0 1px var(--marca); }
.item .ck { width: 22px; height: 22px; accent-color: var(--marca); flex: none; }
.st-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--txt-3); flex: none; }
.item.feito .st-ic { background: var(--good-bg); color: var(--good-txt); }
.item-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.item-t b { font-weight: 600; }
.item-t small { color: var(--txt-3); font-size: 13px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.item-t .ic { width: 14px; height: 14px; }
.ok-t { color: var(--good-txt) !important; }
.item-n { display: grid; text-align: right; }
.item-n span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--txt-3); }
.item-n b { font-size: 17px; }
.item-n small { color: var(--txt-3); font-size: 12.5px; }
.rodape-fixo { position: sticky; bottom: 0; display: flex; gap: 10px; justify-content: flex-end; padding: 14px 0 6px; margin-top: 14px;
  background: linear-gradient(to top, var(--bg) 70%, transparent); z-index: 5; }
.nota { display: flex; gap: 8px; align-items: flex-start; background: var(--info-bg); color: var(--info-txt); padding: 10px 12px; border-radius: 10px; margin: 0 0 10px; font-size: 14px; }
.nota .ic { width: 18px; height: 18px; margin-top: 1px; }
.nota-erro { background: var(--crit-bg); color: var(--crit-txt); }

/* pesagem */
.item-peso { flex-wrap: wrap; }
.peso { display: flex; align-items: center; gap: 6px; }
.peso input { width: 130px; height: 48px; font-size: 20px; font-weight: 700; text-align: right; border-radius: 10px; border: 1.5px solid var(--linha); background: var(--surface); padding: 0 10px; }
.peso em { font-style: normal; color: var(--txt-3); width: 28px; }
.desvio { min-width: 86px; display: inline-flex; gap: 4px; align-items: center; font-weight: 700; font-size: 14px; justify-content: flex-end; }
.desvio .ic { width: 16px; height: 16px; }
.item-peso.dentro .desvio { color: var(--good-txt); }
.item-peso.fora { border-color: var(--st-warn); }
.item-peso.fora .desvio { color: var(--warn-txt); }
.item-peso.fora input { border-color: var(--st-warn); }

/* batidas */
.grade-batidas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.batida { display: grid; gap: 6px; text-align: left; padding: 14px; border-radius: 14px; border: 1.5px dashed var(--linha); background: var(--surface); cursor: pointer; min-height: 120px; align-content: start; }
.batida:hover { border-color: var(--marca); }
.batida.ok { border-style: solid; border-color: transparent; background: var(--good-bg); }
.batida.bloq { opacity: .6; cursor: not-allowed; }
.b-num { font-size: 28px; font-weight: 800; line-height: 1; }
.b-st { display: flex; gap: 4px; align-items: center; font-weight: 600; font-size: 13.5px; color: var(--txt-2); }
.batida.ok .b-st { color: var(--good-txt); }
.b-st .ic { width: 16px; height: 16px; }
.batida small { color: var(--txt-3); font-size: 12.5px; }

/* ---------------------------------------------------------------- formulários / sheets */
.form { display: grid; gap: 14px; }
.card-form { background: var(--surface); border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.campo { display: grid; gap: 6px; }
.campo > span { font-size: 13px; font-weight: 600; color: var(--txt-2); }
.campo input, .campo select, .campo textarea, .login-form input:not([type=checkbox]) { height: 46px; border-radius: 10px; border: 1.5px solid var(--linha); background: var(--surface); padding: 0 12px; width: 100%; outline: 0; }
.campo input:focus, .campo select:focus { border-color: var(--marca); }
.inp-grande { font-size: 22px !important; font-weight: 700; height: 56px !important; }
.sel { display: flex; align-items: center; gap: 10px; height: 46px; border-radius: 10px; border: 1.5px solid var(--linha); background: var(--surface); padding: 0 12px; cursor: pointer; text-align: left; color: var(--txt-3); }
.sel.tem { color: var(--txt); font-weight: 600; }
.sel .sel-t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel:hover { border-color: var(--marca); }
.invalido { border-color: var(--st-crit) !important; box-shadow: 0 0 0 3px var(--crit-bg); }

.sheet-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.sheet-bg { position: absolute; inset: 0; background: rgba(10, 14, 20, .5); opacity: 0; transition: opacity .2s; }
.sheet { position: relative; width: min(560px, 100%); max-height: min(88dvh, 820px); display: flex; flex-direction: column; background: var(--surface); border-radius: 18px; box-shadow: var(--sombra-2); transform: translateY(16px) scale(.98); opacity: 0; transition: transform .2s, opacity .2s; }
.sheet.sm { width: min(440px, 100%); }
.sheet-wrap.in .sheet-bg { opacity: 1; }
.sheet-wrap.in .sheet { transform: none; opacity: 1; }
.sheet-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 18px 10px 22px; }
.sheet-h h2 { font-size: 19px; }
.sheet-h p { margin: 4px 0 0; font-size: 14px; }
.sheet-b { padding: 6px 22px 18px; overflow-y: auto; }
.sheet-f { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--linha); }
.confirm-msg { margin: 4px 0 6px; font-size: 15.5px; color: var(--txt-2); }
.lista-sel { display: grid; gap: 4px; margin-top: 12px; max-height: 52dvh; overflow-y: auto; }
.lista-sel .busca { max-width: none; }
.sheet-b > .busca { max-width: none; }
.item-sel { display: flex; align-items: center; gap: 12px; padding: 10px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; text-align: left; color: var(--txt); }
.item-sel:hover, .item-sel:focus { background: var(--surface-2); }
.item-sel .t { flex: 1; display: grid; }
.item-sel small { color: var(--txt-3); }
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--marca-suave); color: var(--marca); }
.mini-lista { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 4px; }
.mini-lista li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--surface-2); }
.mini-lista li > span { flex: 1; min-width: 0; }
.mini-lista li[data-op] { cursor: pointer; }
.mini-lista li[data-op]:hover { outline: 1px solid var(--marca); }
.mini-lista .ic { color: var(--txt-3); }

/* estados */
.estado { display: grid; place-items: center; gap: 8px; padding: 48px 16px; text-align: center; color: var(--txt-3); }
.estado .ic { width: 36px; height: 36px; color: var(--txt-3); }
.estado p { margin: 0; font-weight: 600; color: var(--txt-2); }
.estado.falha .ic { color: var(--st-crit); }

/* toasts */
#toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(460px, calc(100% - 24px)); pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #16191d; color: #fff; box-shadow: var(--sombra-2); opacity: 0; transform: translateY(10px); transition: all .2s; font-weight: 500; pointer-events: auto; }
.toast.in { opacity: 1; transform: none; }
.toast-ok .ic { color: #7ddc7d; } .toast-erro .ic { color: #ff9a9a; } .toast-aviso .ic { color: #ffd36b; }
:root[data-theme="dark"] .toast { background: #f0efec; color: #111; }
:root[data-theme="dark"] .toast-ok .ic { color: #0a6b0a; } :root[data-theme="dark"] .toast-erro .ic { color: #a11f1f; } :root[data-theme="dark"] .toast-aviso .ic { color: #7a5200; }

/* ---------------------------------------------------------------- KPIs */
.kpis { display: grid; gap: 10px; margin-bottom: 14px; }
.kpis-2 { grid-template-columns: repeat(2, 1fr); }
.kpis-3 { grid-template-columns: repeat(3, 1fr); }
.kpi { background: var(--surface); border: 1px solid var(--linha); border-radius: var(--raio-sm); padding: 12px 14px; display: grid; gap: 2px; }
.kpi > span { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--txt-3); font-weight: 600; }
.kpi b { font-size: 22px; font-weight: 800; }
.kpi small { display: flex; gap: 4px; align-items: center; color: var(--txt-3); font-size: 12.5px; }
.kpi small .ic { width: 14px; height: 14px; }
.kpi-ok { border-color: var(--st-good); } .kpi-ok small { color: var(--good-txt); }
.kpi-warn { border-color: var(--st-warn); } .kpi-warn small { color: var(--warn-txt); }

/* ---------------------------------------------------------------- painel */
.dash-head { margin-bottom: 12px; }
.dash-filtros { position: sticky; top: 0; z-index: 8; background: var(--bg); padding: 8px 0; margin-bottom: 8px; }
.per-custom { display: flex; align-items: center; gap: 6px; }
.per-custom input { height: 36px; border-radius: 8px; border: 1px solid var(--linha); background: var(--surface); padding: 0 8px; }
.atualizado { font-size: 13px; margin-left: auto; }
.dash { display: grid; gap: 14px; transition: opacity .2s; }
.dash.recarregando { opacity: .55; pointer-events: none; }
.kpis-dash { grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; }
.kpi-dash { position: relative; padding: 14px 16px; border-radius: var(--raio); box-shadow: var(--sombra); gap: 6px; }
.kpi-r { display: flex; gap: 6px; align-items: center; }
.kpi-r .ic { width: 16px; height: 16px; }
.kpi-v { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kpi-v b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.kpi-v .pill { font-size: 11.5px; }
.kpi-l { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.kpi-l small { display: block; line-height: 1.3; }
.kpi-n { position: absolute; top: 12px; right: 12px; }
.kpi-n .pill { font-size: 11.5px; }
.spark { width: 96px; height: 28px; flex: none; }
.bloco { padding: 16px 18px; min-width: 0; }
.bloco-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.bloco-h h2 { font-size: 16px; display: flex; gap: 8px; align-items: center; }
.bloco-h h2 .ic { color: var(--marca); }
.bloco-h .muted { font-size: 13px; }
.grid-dash { display: grid; gap: 14px; }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-2-1 { grid-template-columns: 2fr 1fr; }
.destaque { display: flex; gap: 8px; align-items: center; margin: -4px 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--marca-suave); color: var(--txt); font-size: 14px; }
.destaque .ic { color: var(--marca); width: 18px; height: 18px; }

/* mapa da fábrica */
.mapa { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.seta { align-self: center; color: var(--txt-3); font-size: 22px; }
.etapa { flex: 1 1 0; min-width: 132px; display: grid; gap: 4px; align-content: start; text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--linha); background: var(--surface-2); cursor: pointer; position: relative; color: var(--txt); }
.etapa:hover { border-color: var(--marca); }
.etapa.niv-warn { border-color: var(--st-warn); box-shadow: inset 0 3px 0 var(--st-warn); }
.etapa.niv-crit { border-color: var(--st-crit); box-shadow: inset 0 3px 0 var(--st-crit); }
.etapa.niv-ok:not(.vazia) { box-shadow: inset 0 3px 0 var(--st-good); }
.etapa.vazia { opacity: .7; }
.et-n { position: absolute; top: 10px; right: 12px; font-size: 12px; font-weight: 800; color: var(--txt-3); }
.et-nome { display: flex; gap: 6px; align-items: center; font-weight: 700; font-size: 14px; }
.et-nome .ic { width: 18px; height: 18px; color: var(--marca); }
.et-total { font-size: 34px; line-height: 1.05; font-weight: 800; }
.et-split { display: grid; font-size: 12.5px; color: var(--txt-2); }
.et-ant { font-size: 12.5px; color: var(--txt-3); }
.etapa .pill { justify-self: start; margin-top: 4px; }

/* alertas */
.alertas { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-height: 360px; overflow-y: auto; }
.al { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border-left: 4px solid var(--linha); }
.al[data-op], .al[data-ancora] { cursor: pointer; }
.al[data-op]:hover, .al[data-ancora]:hover { outline: 1px solid var(--marca); }
.al div { display: grid; gap: 2px; min-width: 0; }
.al b { font-size: 14px; font-weight: 600; }
.al small { color: var(--txt-3); font-size: 12.5px; }
.al .ic { width: 18px; height: 18px; margin-top: 1px; }
.al-crit { border-left-color: var(--st-crit); } .al-crit .ic { color: var(--st-crit); }
.al-warn { border-left-color: var(--st-warn); } .al-warn .ic { color: var(--warn-txt); }
.al-ok { border-left-color: var(--st-good); } .al-ok .ic { color: var(--st-good); }
.meta-hoje { margin-bottom: 12px; }
.meta-hoje h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--txt-3); margin-bottom: 8px; }

/* bullet */
.bullet { display: grid; gap: 6px; }
.bl-trk { position: relative; height: 14px; border-radius: 4px; background: var(--linha-2); }
.bl-trk i { position: absolute; inset: 0 auto 0 0; background: var(--s1); border-radius: 4px; }
.bl-trk b { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; background: var(--txt); border-radius: 2px; }
.bl-leg { display: flex; justify-content: space-between; font-size: 13px; color: var(--txt-2); }

/* gráficos */
.viz { width: 100%; height: auto; display: block; overflow: visible; }
.viz .grid { stroke: var(--linha-2); stroke-width: 1; }
.viz .base { stroke: var(--linha); stroke-width: 1; }
.viz .ax { fill: var(--txt-3); font-size: 11.5px; }
.viz .xhair { stroke: var(--txt-3); stroke-width: 1; stroke-dasharray: 3 3; }
.viz .hit { cursor: crosshair; outline: none; }
.viz .col { cursor: default; outline: none; }
.viz .col.on path, .viz .col:focus path { filter: brightness(1.12); }
.legenda { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--txt-2); margin-bottom: 6px; }
.legenda span, .leg-div span { display: inline-flex; align-items: center; gap: 6px; }
.lk { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.leg-div { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; margin: 8px 0 0; }
.leg-div .lk { height: 10px; width: 10px; border-radius: 2px; }
.viz-tip { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; background: var(--surface); color: var(--txt); border: 1px solid var(--linha); box-shadow: var(--sombra-2); border-radius: 10px; padding: 8px 10px; font-size: 13px; opacity: 0; transition: opacity .1s; min-width: 120px; }
.viz-tip.on { opacity: 1; }
.tt-h { color: var(--txt-3); font-size: 12px; margin-bottom: 4px; }
.tt-r { display: flex; align-items: center; gap: 8px; }
.tt-r i { width: 12px; height: 3px; border-radius: 2px; }
.tt-r b { font-size: 14px; }
.tt-r span { color: var(--txt-3); }
.barras { display: grid; gap: 8px; }
.bar-l { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; align-items: center; gap: 10px; outline: none; border-radius: 6px; }
.bar-l:focus-visible { outline: 2px solid var(--marca); }
.bar-r { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: grid; }
.bar-r small { color: var(--txt-3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-t { height: 14px; background: var(--linha-2); border-radius: 3px; overflow: hidden; }
.bar-t i { display: block; height: 100%; background: var(--s1); border-radius: 0 4px 4px 0; }
.bar-l.apag .bar-t i { background: var(--div-mid); }
.bar-l.dest .bar-r { font-weight: 700; }
.bar-v { font-size: 13.5px; min-width: 64px; text-align: right; }

/* tabelas */
.tab-wrap { overflow-x: auto; }
.tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.tab th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--txt-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--linha); white-space: nowrap; }
.tab td { padding: 9px 10px; border-bottom: 1px solid var(--linha-2); vertical-align: middle; }
.tab .n { text-align: right; white-space: nowrap; }
.tab tr[data-op] { cursor: pointer; }
.tab tr[data-op]:hover td { background: var(--surface-2); }
.rank { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); font-size: 12px; font-weight: 700; margin-right: 8px; }
.etapas-mini { display: inline-flex; gap: 3px; vertical-align: middle; }
.etapas-mini i { width: 14px; height: 6px; border-radius: 2px; background: var(--linha); }
.etapas-mini i.f { background: var(--st-good); }
.etapas-mini i.a { background: var(--marca); }
.aviso-api { display: flex; gap: 6px; align-items: center; font-size: 13px; }

/* ---------------------------------------------------------------- rastreabilidade */
.busca-op { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.dossie { display: grid; gap: 14px; }
.dos-h { display: flex; gap: 16px; padding: 18px; align-items: center; flex-wrap: wrap; }
.dos-h .foto { width: 88px; height: 88px; }
.dos-id { flex: 1; min-width: 240px; display: grid; gap: 4px; }
.dos-id h2 { font-size: 22px; }
.dos-st { display: grid; gap: 4px; justify-items: end; }
.dos-st small { color: var(--txt-3); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--linha); }
.timeline li.tl-f:not(:last-child)::before { background: var(--st-good); }
.tl-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--txt-3); flex: none; border: 2px solid var(--linha); }
.tl-f .tl-dot { background: var(--good-bg); color: var(--good-txt); border-color: var(--st-good); }
.tl-a .tl-dot { background: var(--info-bg); color: var(--info-txt); border-color: var(--marca); }
.tl-c { display: grid; gap: 2px; padding-top: 6px; font-size: 14px; }
.tl-c b { font-size: 15px; }
.rodape-dos { text-align: center; font-size: 12.5px; }

/* ---------------------------------------------------------------- modo TV */
body.modo-tv .lateral, body.modo-tv .topo, body.modo-tv .abas, body.modo-tv .faixa-demo { display: none !important; }
body.modo-tv #conteudo { margin: 0; max-width: none; padding: 18px 24px; }
.relogio { font-size: 18px; font-weight: 700; padding: 0 10px; text-transform: capitalize; }
.dash.tv { font-size: 16px; }
.dash.tv .kpi-v b { font-size: 40px; }
.dash.tv .et-total { font-size: 46px; }
.dash.tv .g-2-1 { grid-template-columns: 2fr 1.1fr; }

/* ---------------------------------------------------------------- responsivo */
@media (max-width: 1280px) { .kpis-dash { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .g-2, .g-2-1 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-arte { display: none; }
  .marca-mob { display: flex; margin-bottom: 4px; }
  .lateral { transform: translateX(-102%); transition: transform .22s; box-shadow: var(--sombra-2); width: min(300px, 86vw); }
  body.menu-aberto .lateral { transform: none; }
  body.menu-aberto .veu { display: block; position: fixed; inset: 0; background: rgba(10, 14, 20, .45); z-index: 25; }
  .topo { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 20; height: 56px; padding: 0 8px; background: var(--surface); border-bottom: 1px solid var(--linha); }
  .topo .marca { flex: 1; font-size: 18px; }
  .topo .marca .ic { width: 24px; height: 24px; }
  .demo-tag { font-size: 11px; }
  #conteudo, .faixa-demo { margin-left: 0; }
  #conteudo { padding: 16px 14px 96px; }
  .abas { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--linha); padding-bottom: env(safe-area-inset-bottom); }
  .abas a, .abas button { display: grid; justify-items: center; gap: 2px; padding: 8px 0 6px; font-size: 11.5px; color: var(--txt-3); text-decoration: none; background: none; border: 0; }
  .abas .on { color: var(--marca); font-weight: 700; }
  .so-desk { display: none; }
  .pg-tit h1 { font-size: 20px; }
  .pg-ic { width: 38px; height: 38px; }
  .rodape-fixo { bottom: 60px; }
  .card-op { flex-wrap: wrap; }
  .op-acoes { width: 100%; justify-content: flex-start; padding-left: 78px; }
  .sheet-wrap { padding: 0; place-items: end stretch; }
  .sheet, .sheet.sm { width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; transform: translateY(100%); }
  .sheet-f { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .sheet-f .btn { flex: 1; }
  .kpis-dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-v b { font-size: 24px; }
  .spark { display: none; }
  .mapa { flex-wrap: nowrap; }
  .seta { display: none; }
  .atualizado { width: 100%; margin: 0; }
  .item-peso .item-t { flex-basis: 100%; }
  .item-peso .peso { flex: 1; }
  .peso input { width: 100%; }
}
@media (max-width: 520px) {
  .kpis-3 { grid-template-columns: 1fr 1fr 1fr; }
  .kpi b { font-size: 18px; }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .home-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { min-height: 132px; padding: 14px; }
  .tile-ic { top: 14px; left: 14px; width: 28px !important; height: 28px !important; }
  .tile-n { font-size: 34px; right: 12px; bottom: 12px; }
  .bar-l { grid-template-columns: 38% 1fr auto; }
  .busca { min-width: 100%; }
}

/* ---------------------------------------------------------------- impressão (dossiê da OP) */
@media print {
  .lateral, .topo, .abas, .faixa-demo, .pg-acoes, .busca-op, #toasts, .veu { display: none !important; }
  #conteudo { margin: 0; padding: 0; }
  body { background: #fff; color: #000; font-size: 12px; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .g-2 { grid-template-columns: 1fr 1fr; }
  .pill { border: 1px solid #999; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.badge[hidden] { display: none; }

/* ------------------------------------------------------------------ splash padrão Conect (igual ao ConectFinance) */
#splash {
  --sp-ease: cubic-bezier(.2, .8, .2, 1);
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: radial-gradient(520px 420px at 50% 42%, rgba(92,70,255,.26), transparent 70%), linear-gradient(160deg, #050a1c, #0a1030 55%, #070b20);
  color: #fff; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  transition: opacity .5s ease, visibility .5s, transform .5s var(--sp-ease);
  --sp-c1: #6ea8ff; --sp-c2: #2f62ff; --sp-v1: #c4a6ff; --sp-v2: #7c4dff;
}
:root[data-theme="light"] #splash { --sp-c1: #1746e0; --sp-c2: #0a1f96; --sp-v1: #8a3ffc; --sp-v2: #5a26f0;
  background: radial-gradient(520px 420px at 50% 42%, rgba(92,70,255,.12), transparent 70%), linear-gradient(160deg, #ffffff, #f1f4fc); color: #0f1b2d; }
:root[data-theme="light"] .splash-logo { filter: drop-shadow(0 8px 18px rgba(60,50,220,.22)); }
:root[data-theme="light"] .splash-name em { background-image: linear-gradient(95deg, #1746e0, #6a2cf0); }
:root[data-theme="light"] .splash-by { color: #5d6c86; }
:root[data-theme="light"] .splash-bar { background: rgba(16,30,54,.1); }
#splash.hide { opacity: 0; visibility: hidden; transform: scale(1.03); }
.splash-inner { display: flex; flex-direction: column; align-items: center; }
.splash-logo { width: 168px; height: auto; margin-bottom: 26px; overflow: visible; filter: drop-shadow(0 0 22px rgba(112,92,255,.55)); }
.splash-logo path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: splash-draw .75s var(--sp-ease) forwards; }
.splash-logo .d2 { animation-delay: .3s; }
.splash-logo .d3 { animation-delay: .42s; }
.splash-logo .d4 { animation-delay: .5s; }
.splash-name { font-size: 30px; font-weight: 700; letter-spacing: -.025em; opacity: 0; animation: splash-rise .6s var(--sp-ease) .7s forwards; }
.splash-name em { font-style: normal; background: linear-gradient(95deg, #9ec2ff, #c4a6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.splash-by { margin-top: 6px; color: #a3aed0; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; opacity: 0; animation: splash-rise .6s var(--sp-ease) .85s forwards; }
.splash-bar { width: 120px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 30px; }
.splash-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #4f86ff, #a57bff); width: 0; animation: splash-fill 1.5s ease-in-out forwards; }
@keyframes splash-draw { to { stroke-dashoffset: 0; } }
@keyframes splash-fill { to { width: 100%; } }
@keyframes splash-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .splash-logo path { stroke-dashoffset: 0; animation: none; }
  .splash-name, .splash-by { opacity: 1; animation: none; }
}
/* ---------------------------------------------------------------- PWA: botão "Instalar app" só quando dá para instalar */
[data-install] { display: none !important; }
body.can-install [data-install] { display: inline-flex !important; }
body.can-install .btn-ic[data-install] { display: inline-grid !important; }

/* ---------------------------------------------------------------- tablet (uso principal) */
html { -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior-y: none; }
.lateral { padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); }
.lateral nav a, .chip, .tile, .card-op, .item, .batida, .etapa, .btn, .btn-ic { touch-action: manipulation; }

/* tela de toque: alvos maiores, sem efeito de hover "preso" e sem zoom do iOS nos campos */
@media (pointer: coarse) {
  .btn { min-height: 48px; padding: 0 18px; }
  .btn-sm { min-height: 42px; }
  .btn-ic { width: 46px; height: 46px; }
  .chip { height: 42px; padding: 0 16px; font-size: 15px; }
  .busca { height: 46px; }
  .lateral nav a { padding: 13px 14px; }
  .item { padding: 14px 16px; min-height: 64px; }
  .item .ck, .check input { width: 26px; height: 26px; }
  .card-op { padding: 16px; }
  .item-sel { padding: 13px 12px; }
  .mini-lista li { padding: 12px; }
  .campo input, .campo select, .campo textarea, .login-form input:not([type=checkbox]) { height: 50px; font-size: 16px; }
  .sel { height: 50px; }
  .per-custom input { height: 42px; font-size: 16px; }
  .peso input { height: 56px; font-size: 22px; }
  .tile:hover { transform: none; }
  .card-op:hover, .item[role=button]:hover, .batida:hover, .etapa:hover { border-color: var(--linha); }
  .card-op:active, .item[role=button]:active, .batida:active, .etapa:active, .tile:active { border-color: var(--marca); transform: scale(.99); }
}

/* tablet deitado (≈1024–1279 px): menu lateral mais estreito e mais espaço útil */
@media (min-width: 901px) and (max-width: 1279px) {
  :root { --lat: 216px; }
  .lateral .marca { padding: 16px 16px 10px; font-size: 18px; }
  .lateral nav a { gap: 10px; }
  #conteudo { padding: 20px 20px 96px; }
  .faixa-demo { padding: 8px 20px; }
  .home-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .kpis-dash { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* espaço sobrando: listas de OP em duas colunas para ver mais de uma vez */
@media (min-width: 1100px) {
  .lista:has(> .card-op) { grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); align-items: start; }
  .lista-itens:has(> .item-peso) { grid-template-columns: 1fr; }
}

/* tablet em pé (≈700–900 px): usa a navegação inferior, mas aproveita a largura */
@media (min-width: 700px) and (max-width: 900px) {
  #conteudo { padding: 20px 22px 104px; }
  .topo { height: 62px; padding: 0 12px; }
  .abas a, .abas button { padding: 10px 0 8px; font-size: 12.5px; }
  .abas .ic { width: 24px; height: 24px; }
  .home-grid { grid-template-columns: repeat(3, 1fr); }
  .kpis-dash { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .op-acoes { width: auto; padding-left: 0; justify-content: flex-end; }
  .card-op { flex-wrap: nowrap; }
  .sheet-wrap { padding: 24px; place-items: center; }
  .sheet, .sheet.sm { width: min(620px, 100%); max-height: 86dvh; border-radius: 18px; transform: translateY(16px) scale(.98); }
  .sheet-f .btn { flex: 0 1 auto; min-width: 140px; }
  .item-peso .item-t { flex-basis: auto; flex: 1; }
  .item-peso .peso { flex: 0 0 auto; }
  .peso input { width: 160px; }
  .grade-batidas { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 900px) { .dash-filtros { top: 56px; } }
@media (min-width: 700px) and (max-width: 900px) { .dash-filtros { top: 62px; } }.sel-grupo { margin: 10px 0 2px; }
