/* Identidade visual Smart Mix — grafite do tambor + laranja das faixas */
:root {
  --sm-laranja: #f39200;
  --sm-cinza: #c9cfd4;
  --sm-grafite: #1d2731;
  --wb-ciano: var(--sm-laranja);
  --wb-marinho: var(--sm-grafite);
  --fundo: #f1f5f8;
  --painel: #ffffff;
  --lateral: #1d2731;
  --lateral-texto: #c9d8e4;
  --texto: #14222e;
  --suave: #5b6b78;
  --borda: #d8e1e8;
  --acento: #b35a00;
  --acento-escuro: #8f4700;
  --ok: #00894a;
  --alerta: #d42a2f;
  --aviso: #b7791f;
  --info: #2f6f9f;
  --raio: 10px;
  --faixa-wb: repeating-linear-gradient(120deg, var(--sm-laranja) 0 22px, var(--sm-cinza) 22px 44px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fundo: #0c1620; --painel: #13212e; --lateral: #07131e; --lateral-texto: #b6c7d4;
    --texto: #e7eef3; --suave: #93a5b3; --borda: #253746;
    --acento: #ff9f2e; --acento-escuro: #f39200;
    --ok: #3cbf78; --alerta: #f0626a; --aviso: #d9a441; --info: #4cb8ec;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--fundo); color: var(--texto); }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.2; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
[hidden] { display: none !important; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 30% 20%, #3a4855, var(--sm-grafite) 60%); }
.login-caixa { background: var(--painel); border: 1px solid var(--borda); border-radius: 14px; padding: 0 32px 32px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.35); width: 100%; max-width: 360px; display: grid; gap: 12px; }
.login-caixa::before { content: ''; display: block; height: 6px; margin: 0 -32px 22px; background: var(--faixa-wb); }
.login-caixa h1 { margin: 4px 0 0; }
.login-caixa img { justify-self: center; }
.login-caixa h1, .login-caixa .sub { text-align: center; }
.sub { color: var(--suave); margin: 0 0 8px; }

/* Layout */
.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.lateral { background: var(--lateral); color: var(--lateral-texto); display: flex; flex-direction: column; padding: 16px 12px; border-top: 5px solid; border-image: var(--faixa-wb) 1; position: sticky; top: 0; height: 100vh; }
.marca { display: flex; align-items: center; gap: 10px; color: #fff; padding: 4px 8px 16px; }
.marca img { width: 54px; height: auto; }
.marca strong { display: block; font-size: 1.2rem; letter-spacing: .02em; font-weight: 800; }
.marca strong b { color: var(--sm-laranja); }
.marca small { display: block; font-size: .75rem; color: var(--lateral-texto); }
#menu { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
#menu a { color: var(--lateral-texto); text-decoration: none; padding: 7px 12px; border-radius: 8px; }
#menu a:hover { background: rgba(255,255,255,.06); }
#menu a.ativo { background: var(--wb-ciano); color: var(--wb-marinho); font-weight: 600; }
.usuario { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 4px; }
.usuario .etiqueta { justify-self: start; }
.usuario-acoes { display: flex; gap: 12px; }
.lateral .link { color: var(--lateral-texto); }
.conteudo { padding: 28px; max-width: 1200px; width: 100%; }

@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .lateral { position: static; height: auto; flex-direction: column; padding: 10px 12px; z-index: 5; }
  .marca { padding: 0 4px 8px; }
  #menu { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  #menu a { white-space: nowrap; padding: 7px 10px; }
  .usuario { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
  .conteudo { padding: 16px; }
}

/* Componentes */
.cabecalho { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cabecalho h1 { margin: 0; }
.cartao { background: var(--painel); border: 1px solid var(--borda); border-radius: var(--raio); padding: 18px; margin-bottom: 18px; }
.grade { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 18px; }
.grade-2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.grade-2 > * { min-width: 0; }
.largo { grid-column: 1 / -1; }
.indicador { background: var(--painel); border: 1px solid var(--borda); border-radius: var(--raio); padding: 16px; }
.indicador .rotulo { color: var(--suave); font-size: .85rem; }
.indicador .valor { font-size: 1.7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.indicador .valor small { font-size: .9rem; font-weight: 500; color: var(--suave); }
.destaque { color: var(--acento); }

label { display: grid; gap: 4px; font-size: .88rem; color: var(--suave); }
input, select, textarea { font: inherit; color: var(--texto); background: var(--painel); border: 1px solid var(--borda); border-radius: 8px; padding: 9px 10px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--acento); outline-offset: -1px; }
.form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.form .inteiro { grid-column: 1 / -1; }
.filtros { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; margin-bottom: 14px; }

.btn { text-decoration: none; display: inline-block; font: inherit; font-weight: 600; border: 1px solid var(--borda); background: var(--painel); color: var(--texto); padding: 9px 16px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--suave); }
.btn.primario { background: var(--acento); border-color: var(--acento); color: #fff; }
.btn.primario:hover { background: var(--acento-escuro); }
.btn.perigo { color: var(--alerta); }
.btn.peq { padding: 5px 10px; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--acento); cursor: pointer; font: inherit; font-size: .88rem; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; }

.tabela-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--borda); vertical-align: middle; }
th { color: var(--suave); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
td.num, th.num { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
tr.inativo td { opacity: .5; }
.vazio { color: var(--suave); padding: 20px 0; text-align: center; }

.etiqueta { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--borda); color: var(--texto); }
.st-carregada, .st-em_viagem { background: #e3eefa; color: #1f4f85; }
.st-entregue, .st-disponivel, .st-entrada { background: #e1f3e6; color: #1f6b3a; }
.st-cancelada, .st-manutencao, .st-saida { background: #fbe4e2; color: #9b241c; }
.st-carregando, .st-ajuste, .st-estorno { background: #fbefd9; color: #7d5211; }
@media (prefers-color-scheme: dark) {
  .st-carregada, .st-em_viagem { background: #1d3550; color: #9cc6f2; }
  .st-entregue, .st-disponivel, .st-entrada { background: #183a24; color: #8fd6a6; }
  .st-cancelada, .st-manutencao, .st-saida { background: #4a1f1c; color: #f2a39d; }
  .st-carregando, .st-ajuste, .st-estorno { background: #43331a; color: #edc47d; }
}

/* Estoque */
.material { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--borda); }
.material:last-child { border-bottom: 0; }
.material-topo { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.material-qtd { font-weight: 700; font-variant-numeric: tabular-nums; }
.barra { height: 8px; background: var(--borda); border-radius: 99px; overflow: hidden; }
.barra > span { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.barra.baixo > span { background: var(--alerta); }
.alerta-txt { color: var(--alerta); font-size: .82rem; font-weight: 600; }

/* Fila de betoneiras */
.fila { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fila li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; background: var(--painel); border: 1px solid var(--borda); border-radius: var(--raio); padding: 10px 12px; }
.fila .pos { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--borda); }
.fila li.proxima .pos { background: var(--acento); color: #fff; }
.fila .info small { color: var(--suave); display: block; }
.fila .ctrl { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.fila select { width: auto; padding: 5px 8px; font-size: .85rem; }

/* Gráfico */
.grafico { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 10px; }
.grafico .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.grafico .b { width: 100%; max-width: 28px; background: var(--acento); border-radius: 4px 4px 0 0; min-height: 2px; }
.grafico .d { font-size: .7rem; color: var(--suave); }

.lacre-grande { font-size: 2rem; font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--acento); }
.erro { color: var(--alerta); margin: 0; font-size: .9rem; }
.dica { color: var(--suave); font-size: .85rem; margin: 4px 0 0; }

dialog { border: 1px solid var(--borda); border-radius: 14px; padding: 0; background: var(--painel); color: var(--texto); width: min(560px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0,0,0,.45); }
#modal-form { padding: 22px; display: grid; gap: 14px; }
#modal-form .acoes { justify-content: flex-end; margin-top: 6px; }

.aviso { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--texto); color: var(--fundo); padding: 10px 18px; border-radius: 8px; z-index: 20; max-width: calc(100vw - 32px); }
.aviso.ruim { background: var(--alerta); color: #fff; }

/* pH da água */
.ph-atual { text-align: center; display: grid; align-content: center; gap: 4px; }
.ph-atual .rotulo { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--suave); }
.ph-valor { font-size: 3.4rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ph-atual small { color: var(--suave); }
.ph-bom { border-top: 5px solid var(--ok); } .ph-bom .ph-valor { color: var(--ok); }
.ph-ruim { border-top: 5px solid var(--alerta); } .ph-ruim .ph-valor { color: var(--alerta); }
.grafico-ph { width: 100%; height: auto; display: block; }
.g-grade { stroke: var(--borda); stroke-width: 1; }
.g-eixo { fill: var(--suave); font-size: 12px; }
.g-faixa { fill: var(--ok); opacity: .1; }
.g-limite { stroke: var(--alerta); stroke-width: 1.5; stroke-dasharray: 6 5; }
.g-linha { fill: none; stroke: var(--acento); stroke-width: 2.5; stroke-linejoin: round; }
.g-ponto { fill: var(--acento); stroke: var(--painel); stroke-width: 2; }
.g-ponto.fora { fill: var(--alerta); }
.mini { width: 72px; height: 44px; object-fit: cover; border-radius: 6px; display: inline-grid; place-items: center; background: var(--fundo); border: 1px solid var(--borda); }
.mini.video { font-size: 1.2rem; color: var(--acento); }
pre.codigo { background: var(--fundo); border: 1px solid var(--borda); border-radius: 8px; padding: 12px; overflow-x: auto; font-size: .9rem; user-select: all; }

/* Impressão: carta e ordens de carregamento */
.check { display: flex; align-items: center; gap: 6px; color: var(--texto); font-size: .92rem; }
.check input { width: auto; }
#tipo-nf { width: auto; }
.doc { background: #fff; color: #14222e; width: 100%; max-width: 794px; margin: 0 auto 24px; padding: 28px 30px 22px; border: 1px solid var(--borda); border-radius: 6px; font-family: "Segoe UI", Arial, Helvetica, sans-serif; font-size: 12.5px; line-height: 1.35; }
.doc-faixa { height: 6px; background: linear-gradient(90deg, var(--doc2, #0077b6), var(--doc1, #0a2a43)); margin: -28px -30px 18px; border-radius: 6px 6px 0 0; }
.faixa-wb .doc-faixa { background: linear-gradient(90deg, #ed3237 0 25%, #fbc61a 25% 50%, #00a859 50% 75%, #00afef 75% 100%); }
.faixa-nenhuma .doc-faixa { background: transparent; }
.doc-topo { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding-bottom: 14px; border-bottom: 2px solid var(--doc1, #0a2a43); }
.doc-topo img { width: 84px; height: auto; max-height: 84px; object-fit: contain; }
.doc-empresa { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--doc2, #0077b6); font-weight: 700; }
.doc-titulo { font-size: 19px; font-weight: 800; color: var(--doc1, #0a2a43); margin: 2px 0 0; letter-spacing: .01em; }
.doc-subtitulo { color: #5b6b78; font-size: 11.5px; margin-top: 2px; }
.doc-seq { background: var(--doc1, #0a2a43); color: #fff; border-radius: 8px; padding: 8px 16px; text-align: center; min-width: 118px; }
.doc-seq span { display: block; font-size: 10px; letter-spacing: .14em; color: #9fd9f5; text-transform: uppercase; }
.doc-seq strong { display: block; font-size: 28px; line-height: 1.1; }
.doc-seq em { display: block; font-style: normal; font-size: 11px; color: #c9d8e4; }

.doc-info { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #c5d3de; border-radius: 6px; margin-top: 14px; overflow: hidden; }
.doc-info > div { padding: 6px 10px; border-right: 1px solid #dfe7ed; border-bottom: 1px solid #dfe7ed; min-width: 0; }
.doc-info > div.l2 { grid-column: span 2; }
.doc-info > div.l4 { grid-column: span 4; }
.doc-info label { display: block; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: #5b6b78; }
.doc-info b { display: block; font-size: 13px; color: #14222e; overflow-wrap: anywhere; }
.doc-info b.grande { font-size: 17px; color: var(--doc2, #0077b6); }

.doc-sec { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 16px 0 6px; padding: 5px 10px; background: var(--doc1, #0a2a43); color: #fff; border-radius: 5px; font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.doc-sec small { font-weight: 400; font-size: 10px; letter-spacing: 0; text-transform: none; color: #c9d8e4; }

.doc-tab { width: 100%; border-collapse: collapse; }
.doc-tab th, .doc-tab td { border: 1px solid #c5d3de; padding: 6px 10px; color: #14222e; font-size: 12.5px; text-transform: none; letter-spacing: 0; }
.doc-tab thead th { background: var(--doc2claro, #e8f6fd); color: var(--doc1, #0a2a43); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.doc-tab td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-tab td.ordem { width: 34px; text-align: center; font-weight: 700; color: var(--doc2, #0077b6); }
.doc-tab td.indicador { background: #fff8d9; font-size: 20px; font-weight: 800; color: #0a2a43; width: 34%; }
.doc-tab tr.cor td:first-child { border-left: 5px solid var(--c); }

.doc-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.doc-campo { border: 1px solid #c5d3de; border-radius: 5px; padding: 5px 10px; min-height: 52px; }
.doc-campo label { display: block; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: #5b6b78; }
.doc-campo b { display: block; font-size: 13px; }
.doc-campo.alto { min-height: 78px; grid-column: 1 / -1; }

.doc-assin { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; margin-top: 34px; }
.doc-assin div { border-top: 1px solid #14222e; padding-top: 4px; text-align: center; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #3c4b57; }

.doc-rodape { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 8px; border-top: 1px solid #dfe7ed; color: #7a8a96; font-size: 9.5px; }

.calc-umid { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; background: var(--fundo); border: 1px dashed var(--borda); border-radius: 8px; padding: 10px 12px; }
.calc-umid span { color: var(--suave); font-size: .88rem; }
.calc-umid b { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.calc-umid b.bom { color: var(--ok); } .calc-umid b.ruim { color: var(--alerta); }
.calc-umid small { color: var(--suave); }

/* Corpos de prova */
.cp-num { font-size: 1.15rem; font-weight: 800; color: var(--acento); font-variant-numeric: tabular-nums; white-space: nowrap; }
#f-cp .form { align-items: start; }
form .dias-rapidos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
form .dias-rapidos .btn { padding: 4px 8px; font-size: .8rem; }
#f-cp .form > label { min-width: 0; }
.cp-info { margin-top: 12px; font-size: .92rem; }
.cp-info:empty { display: none; }
.cp-datas { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.cp-datas div { background: var(--fundo); border: 1px solid var(--borda); border-radius: 8px; padding: 10px 12px; }
.cp-datas span { display: block; font-size: .8rem; color: var(--suave); }
.cp-datas b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.cp-datas div:last-child { border-color: var(--acento); }
.cp-datas div:last-child b { color: var(--acento); }

/* Relatório mensal */
.rel .rel-graf { border: 1px solid #c5d3de; border-radius: 6px; padding: 6px; }
.rel .rel-graf .g-grade { stroke: #e3eaf0; } .rel .rel-graf .g-eixo { fill: #5b6b78; }
.rel .rel-graf .g-faixa { fill: #00a859; opacity: .1; } .rel .rel-graf .g-limite { stroke: #d42a2f; }
.rel .rel-graf .g-linha { stroke: #0077b6; } .rel .rel-graf .g-ponto { fill: #0077b6; stroke: #fff; } .rel .rel-graf .g-ponto.fora { fill: #d42a2f; }
.rel-tab td, .rel-tab th { padding: 1px 6px !important; font-size: 10px !important; line-height: 1.25; }
.rel .rel-graf svg { max-height: 150px; }
.rel .doc-sec { margin: 10px 0 4px; }
.rel .doc-info { margin-top: 10px; }
.rel .doc-info > div { padding: 4px 10px; }
.rel .doc-assin { margin-top: 22px; }
.rel .doc-rodape { margin-top: 10px; }
@media print { .rel { page-break-inside: avoid; } }
.rel-tab tr.sem td { color: #9aa7b2; }
.rel-tab td.ok { color: #00894a; font-weight: 700; } .rel-tab td.nok { color: #d42a2f; font-weight: 700; }
.rel-tab small { color: #7a8a96; }

@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff !important; }
  .lateral, .barra-impressao, .aviso { display: none !important; }
  .app { display: block; }
  .conteudo { padding: 0; max-width: none; }
  .doc { border: 0; border-radius: 0; padding: 0; margin: 0; max-width: none; page-break-after: always; break-after: page; }
  .doc-faixa { margin: 0 0 14px; border-radius: 0; }
  .doc:last-child { page-break-after: auto; break-after: auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* custo do concreto */
.material-preco { font-size: .88rem; margin-top: 4px; }
.alerta-caixa { border-left: 4px solid var(--alerta); }
.preco-calc { margin: 4px 0 8px; font-size: .95rem; }

/* alertas */
.al-op { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.al-op .check { align-items: flex-start; }
.al-op input.hora { width: auto; display: inline-block; padding: 2px 6px; }

/* etiqueta dos corpos de prova */
.et-prev { background: #e9edf1; border-radius: 8px; padding: 12px; margin-bottom: 12px; overflow: hidden; }
.et-prev iframe { display: block; width: 100%; height: 150px; border: 0; background: transparent; }
.et-ajuste { margin: 10px 0; } .et-ajuste summary { cursor: pointer; color: var(--suave); font-size: .9rem; } .et-ajuste .form { margin: 10px 0; }

/* carregamento ao vivo */
.av-grade { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 18px; }
@media (max-width: 820px) { .av-grade { grid-template-columns: minmax(0, 1fr); } }
.av-camera { position: relative; padding: 0; overflow: hidden; background: #000; min-height: 280px; display: flex; align-items: center; justify-content: center; }
.av-camera img { width: 100%; display: block; }
.av-sem { color: #c9d8e4; padding: 40px 20px; text-align: center; }
.av-peso { position: absolute; right: 12px; bottom: 12px; background: rgba(29,39,49,.88); color: #fff; border-radius: 10px; padding: 8px 14px; text-align: right; border-left: 5px solid var(--wb-amarelo, #f39200); }
.av-peso span { display: block; font-size: .7rem; letter-spacing: .1em; color: #f6c37a; }
.av-peso strong { display: block; font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: #f39200; }
.av-peso small { color: #c9d8e4; }
.av-info .av-bet { font-size: 1.5rem; font-weight: 800; color: var(--acento); }
.av-info .av-dest { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.lacre-tag { display: inline-block; border: 2px solid #d9a441; color: #b8860b; border-radius: 99px; padding: 3px 12px; font-weight: 800; }
.av-pulso { animation: avp 1.6s infinite; }
@keyframes avp { 50% { opacity: .55; } }

/* relatório de corpos de prova */
.relcp-tab th, .relcp-tab td { font-size: 10.5px; padding: 4px 5px; vertical-align: middle; }
.relcp-tab td small { color: #5b6b78; font-size: 9.5px; }
.relcp-tab td:nth-child(1), .relcp-tab td:nth-child(4), .relcp-tab td:nth-child(6), .relcp-tab td:nth-child(8) { white-space: nowrap; }
.lote-prev { margin-top: 12px; max-height: 320px; overflow: auto; border-top: 1px solid var(--borda); padding-top: 10px; }

/* portal do cliente */
.meus-agora { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-left: 5px solid #f39200; }
.doc-grade3 { grid-template-columns: repeat(3, 1fr); }
.doc-obs { margin-top: 12px; font-size: 12px; color: #14222e; background: #f5f7fa; border-radius: 5px; padding: 8px 10px; }
@media (max-width: 760px) {
  .meus-tab thead { display: none; }
  .meus-tab, .meus-tab tbody, .meus-tab tr, .meus-tab td { display: block; width: 100%; }
  .meus-tab tr { border: 1px solid var(--borda); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
  .meus-tab td { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 0; padding: 4px 0; text-align: right; }
  .meus-tab td::before { content: attr(data-l); color: var(--suave); font-size: .82rem; text-align: left; }
  .meus-tab td.meus-acao { justify-content: stretch; padding-top: 8px; }
  .meus-tab td.meus-acao .btn { width: 100%; text-align: center; }
}
.doc-foto { border: 1px solid #c5d3de; border-radius: 6px; overflow: hidden; } .doc-foto img { display: block; width: 100%; max-height: 360px; object-fit: contain; background: #000; }
.ac-foto { display: block; max-width: 100%; border-radius: 8px; margin: 10px 0; }

/* laboratório */
.abas { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 2px solid var(--borda); }
.abas a { padding: 8px 14px; text-decoration: none; color: var(--suave); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.abas a.ativa { color: var(--acento); border-bottom-color: var(--acento); }
.rup-lista { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; margin: 6px 0 10px; }
.rup-op { text-align: left; background: var(--fundo, #f3f6f9); border: 1px solid var(--borda); border-radius: 6px; padding: 6px 10px; cursor: pointer; color: var(--texto); font: inherit; }
.rup-op:hover { border-color: var(--acento); }
.rup-sel { background: var(--fundo, #f3f6f9); border-left: 4px solid var(--acento); border-radius: 6px; padding: 8px 12px; margin-bottom: 10px; }
.rup-linha { display: grid; grid-template-columns: 50px 1fr 110px 100px; gap: 8px; align-items: center; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--borda, #dde3e8); }
.rup-med { grid-column: 2 / -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.rup-med label { font-size: .8rem; flex: 0 1 150px; } .rup-med input { width: 100%; }
.rup-hd { flex: 1 1 100%; } .rup-hd:empty { display: none; }
.relcp-nota { font-size: 10px; color: #5b6b78; margin: 4px 0 0; }
.rup-fotos { grid-column: 2 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.btn-foto { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px dashed var(--borda, #c9cfd4); border-radius: 8px; cursor: pointer; font-size: .85rem; color: var(--texto); background: transparent; }
.btn-foto:hover { border-color: var(--acento); }
.btn-foto.ok { border-style: solid; border-color: var(--ok, #00894a); color: var(--ok, #00894a); font-weight: 600; }
.btn-foto img { width: 34px; height: 34px; object-fit: cover; border-radius: 4px; }
.foto-lab { white-space: nowrap; font-size: .82rem; text-decoration: none; }
.fotos-lab { line-height: 1.9; }
.e-rupt td { vertical-align: top; }
.e-prensa { display: flex; gap: 4px; } .e-prensa input { width: 90px; } .e-prensa select { width: auto; }
.e-foto { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.e-foto img { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; border: 1px solid var(--borda, #dde3e8); }
.relfoto { border: 1px solid #c5d3de; border-radius: 6px; padding: 8px; margin: 8px 0; break-inside: avoid; }
.relfoto-tit { font-size: 11px; margin-bottom: 6px; color: #1d2731; }
.relfoto-par { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.relfoto-par figure { margin: 0; } .relfoto-par img, .relfoto-vazio { display: block; width: 100%; height: 230px; object-fit: contain; background: #111; border-radius: 4px; }
.relfoto-vazio { background: #eef2f5; color: #8a96a0; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.relfoto-par figcaption { font-size: 10px; text-align: center; color: #5b6b78; margin-top: 3px; }
@media (max-width: 600px) { .rup-linha { grid-template-columns: 44px 1fr 90px; } .rup-linha .rup-tipo { grid-column: 2 / -1; } }
.rup-linha b { text-align: right; font-variant-numeric: tabular-nums; color: var(--acento); }
.rup-resumo { margin: 10px 0; padding: 8px 10px; background: var(--fundo, #f3f6f9); border-radius: 6px; font-size: .92rem; }
.rup-resumo:empty { display: none; }
.lab-tab td { vertical-align: top; }

/* corpos de prova — idades de ruptura e avisos da norma */
.cp-idades { display: flex; gap: 4px; flex-wrap: wrap; }
.cp-idades span { border: 1px solid var(--borda); border-radius: 999px; padding: 1px 8px; font-size: .8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cp-idades span.prox { border-color: var(--acento); color: var(--acento); font-weight: 700; }
.cp-idades span.feita { background: #e3f4ea; border-color: #9fd3b3; color: #00703c; }
.cp-aviso { color: #a86500; display: inline-block; max-width: 260px; line-height: 1.25; margin-top: 4px; cursor: help; }
.cp-aviso-geral { background: #fff6e0; border: 1px solid #f0d48a; color: #7a5200; border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; }
.cp-norma { margin-top: 14px; border: 1px solid var(--borda); border-radius: 8px; padding: 8px 12px; background: var(--fundo); }
.cp-norma summary { cursor: pointer; font-weight: 600; }
.cp-norma ul { margin: 8px 0 0; padding-left: 18px; font-size: .9rem; line-height: 1.45; }
.cp-norma li { margin-bottom: 6px; }

.aviso-retro { background: #fff6e0; border: 1px solid #f0d48a; color: #6b4a00; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; line-height: 1.45; }

/* Painel — situação do estoque */
.est-painel { position: relative; }
.est-faixa { display: flex; gap: 12px; align-items: center; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; border: 1px solid; line-height: 1.4; }
.est-faixa small { color: inherit; opacity: .85; }
.est-faixa.critico { background: #fdecec; border-color: #f2b3b5; color: #8f1d21; }
.est-faixa.atencao { background: #fff6e0; border-color: #f0d48a; color: #6b4a00; }
.est-faixa.ok { background: #e8f6ee; border-color: #a9dcbf; color: #00602f; }
.est-ic { font-size: 1.5rem; line-height: 1; }
.est-ic.pulsa { animation: est-pulsa 1.6s ease-in-out infinite; }
@keyframes est-pulsa { 50% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .est-ic.pulsa { animation: none; } }
.est-lista { display: grid; gap: 2px; }
.est-linha { display: grid; grid-template-columns: 190px minmax(120px, 1fr) 120px 150px 140px; gap: 14px; align-items: center; padding: 8px 6px; border-radius: 6px; cursor: default; }
.est-linha:hover { background: var(--fundo); }
.est-nome { font-weight: 600; }
.est-trilho { position: relative; display: block; height: 12px; background: var(--borda); border-radius: 4px; }
.est-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; min-width: 3px; }
.est-linha.ok .est-fill { background: var(--ok); }
.est-linha.atencao .est-fill { background: var(--aviso); }
.est-linha.critico .est-fill { background: var(--alerta); }
.est-min, .est-min-leg { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--texto); border-radius: 1px; box-shadow: 0 0 0 2px var(--painel); }
.est-min-leg { position: static; display: inline-block; height: 12px; vertical-align: middle; margin: 0 4px 0 2px; box-shadow: none; }
.est-qtd { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.est-qtd small { font-weight: 400; color: var(--suave); }
.est-dias { color: var(--suave); font-size: .9rem; font-variant-numeric: tabular-nums; }
.est-linha.critico .est-dias { color: var(--alerta); font-weight: 600; }
.est-chip { justify-self: start; border-radius: 99px; padding: 2px 10px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.est-chip.critico { background: #fdecec; color: #a3191e; }
.est-chip.atencao { background: #fff2cc; color: #7a5200; }
.est-chip.ok { background: #e3f4ea; color: #00703c; }
.est-chip.sem_uso { background: var(--fundo); color: var(--suave); }
.est-linha.sem_uso .est-nome { color: var(--suave); font-weight: 500; }
.est-leg { margin: 10px 0 0; }
.est-dica { position: absolute; z-index: 5; pointer-events: none; background: var(--painel); color: var(--texto); border: 1px solid var(--borda); border-radius: 8px; padding: 8px 10px; font-size: .85rem; line-height: 1.45; box-shadow: 0 6px 20px rgba(0,0,0,.15); min-width: 200px; }
@media (prefers-color-scheme: dark) {
  .est-faixa.critico, .est-chip.critico { background: #4a1f1c; border-color: #7a2c28; color: #f6b3ad; }
  .est-faixa.atencao, .est-chip.atencao { background: #43331a; border-color: #6e5320; color: #f0cd8a; }
  .est-faixa.ok, .est-chip.ok { background: #183a24; border-color: #285f3b; color: #9ad9b0; }
}
@media (max-width: 760px) {
  .est-linha { grid-template-columns: 1fr auto; grid-template-areas: "nome chip" "med med" "qtd dias"; gap: 6px 10px; }
  .est-nome { grid-area: nome; } .est-med { grid-area: med; } .est-qtd { grid-area: qtd; text-align: left; } .est-dias { grid-area: dias; text-align: right; } .est-chip { grid-area: chip; justify-self: end; }
}

/* Como usar (tutoriais) */
.btn-ajuda { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; padding: 4px 12px 4px 4px; border: 1px solid var(--borda); border-radius: 99px; color: var(--acento); background: var(--painel); text-decoration: none; font-size: .85rem; font-weight: 600; vertical-align: middle; }
.btn-ajuda span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--acento); color: #fff; font-weight: 700; }
.btn-ajuda:hover { border-color: var(--acento); }
.cabecalho h1 + .btn-ajuda { margin-right: auto; }
#menu a.menu-ajuda { margin-top: 8px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
.aj-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.aj-indice { position: sticky; top: 12px; display: grid; gap: 2px; padding: 10px; }
.aj-indice a { padding: 7px 10px; border-radius: 6px; color: var(--texto); text-decoration: none; font-size: .92rem; }
.aj-indice a:hover { background: var(--fundo); color: var(--acento); }
.aj-conteudo { display: grid; gap: 14px; min-width: 0; }
.aj-sec { scroll-margin-top: 12px; line-height: 1.55; transition: box-shadow .3s; }
.aj-sec h2 { color: var(--acento); }
.aj-sec h4 { margin: 14px 0 4px; }
.aj-sec ol, .aj-sec ul { padding-left: 22px; margin: 8px 0; }
.aj-sec li { margin-bottom: 4px; }
.aj-sec table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .92rem; }
.aj-sec th, .aj-sec td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--borda); vertical-align: top; }
.aj-sec th { font-size: .78rem; text-transform: uppercase; color: var(--suave); }
.aj-foco { box-shadow: 0 0 0 3px var(--acento); }
@media (max-width: 860px) { .aj-wrap { grid-template-columns: 1fr; } .aj-indice { position: static; } .btn-ajuda { margin-left: 0; } }

/* Smart Mix — logo do login e texto só para leitor de tela */
.login-logo { width: 260px; max-width: 100%; height: auto; margin: 4px auto 0; display: block; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.sem-cp { border-left: 4px solid var(--alerta, #d42a2f); }
.sem-cp h2 { color: var(--alerta, #d42a2f); }

.link-faixa { position: sticky; top: 0; z-index: 5; background: #1d2731; color: #fff; padding: 8px 16px; font-size: .9rem; text-align: center; }
.link-faixa b { color: #f39200; }
.link-faixa.acabando { background: #b35a00; } .link-faixa.acabando b { color: #fff; }
.link-url { display: flex; gap: 8px; } .link-url input { flex: 1; font-family: monospace; font-size: .85rem; }
#link-erro { text-align: center; } #link-erro h2 { margin: 8px 0; } .link-msg { margin: 8px 0 16px; }

.estcli { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.estcli-item { border: 1px solid var(--borda, #dde3e8); border-left: 5px solid #00894a; border-radius: 10px; padding: 12px 14px; background: var(--cartao, #fff); }
.estcli-item.est-atencao { border-left-color: #d98b00; } .estcli-item.est-critico { border-left-color: #d42a2f; }
.estcli-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.estcli-qtd { font-size: 1.6rem; font-weight: 800; margin: 6px 0 2px; font-variant-numeric: tabular-nums; } .estcli-qtd small { font-size: .9rem; font-weight: 600; color: var(--texto-2, #5b6b78); }

/* multiempresa / SaaS */
.login-empresa { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 12px; font-weight: 700; color: var(--texto); }
.login-empresa img { max-height: 40px; max-width: 120px; object-fit: contain; }
.bloqueio { text-align: center; } .bloqueio h2 { margin: 8px 0; } .bloq-msg { font-size: 1.02rem; margin: 10px 0 16px; }
.assin-faixa { background: #fff4e0; color: #7a4a00; border-bottom: 1px solid #f3d29a; padding: 7px 16px; text-align: center; font-size: .9rem; }
.assin-faixa.urgente { background: #fde8e8; color: #9b1c1c; border-color: #f5b5b5; }
.assin-faixa a { font-weight: 700; margin-left: 8px; }
.emp-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border: 1px dashed var(--borda); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.emp-logo img { max-height: 90px; max-width: 220px; object-fit: contain; }
.planos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.plano { border: 1px solid var(--borda); border-radius: 10px; padding: 12px; }
.plano-preco { font-size: 1.4rem; font-weight: 800; margin: 4px 0; } .plano-preco small { font-size: .8rem; font-weight: 600; }

.passos { border-left: 4px solid var(--sm-laranja); }
.passos ol { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px 18px; }
.passos li a { color: var(--texto); } .passos li.feito { color: var(--ok); } .passos li.feito a { color: var(--suave); text-decoration: line-through; }
.passos-barra { height: 6px; background: var(--fundo); border-radius: 4px; overflow: hidden; } .passos-barra span { display: block; height: 100%; background: var(--sm-laranja); }

input[type=color] { height: 42px; padding: 3px 6px; cursor: pointer; }
.doc-nota { font-size: 10.5px; color: #3c4b57; margin: 4px 0 0; }

.ent-painel { margin-top: 12px; border-top: 1px solid var(--borda); padding-top: 10px; }
.ent-painel summary { cursor: pointer; font-weight: 700; }
.ent-clima, .ent-sug { margin-top: 8px; font-size: .92rem; line-height: 1.55; }
.doc-alerta { margin: 8px 0 0; padding: 6px 10px; border: 1px solid #f3b13a; background: #fff6df; border-radius: 5px; font-size: 11.5px; color: #5c3b00; }

.umid-aviso { margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: #fff4e0; border: 1px solid #f3d29a; color: #6b4300; font-size: .92rem; }
.umid-aviso.ok { background: #e8f7ee; border-color: #a6dcb9; color: #0f5a32; }

/* silos de cimento */
.silos-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.silo-cartao { margin: 0; }
.silo-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.silo-topo h2 { margin: 0; }
.silo-sit { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .85rem; }
.silo-sit::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.silo-sit.silo-critico { color: var(--alerta); } .silo-sit.silo-atencao { color: var(--aviso); } .silo-sit.silo-normal { color: var(--ok); } .silo-sit.silo-sem_leitura { color: var(--suave); }
.silo-corpo { display: flex; gap: 16px; margin: 10px 0; }
.silo-tanque { position: relative; width: 56px; height: 150px; flex: none; border: 2px solid var(--borda); border-radius: 10px 10px 4px 4px; overflow: hidden; background: var(--fundo); }
.silo-tanque i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--info); }
.silo-tanque i.silo-critico { background: var(--alerta); } .silo-tanque i.silo-atencao { background: var(--aviso); }
.silo-tanque b { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--texto); opacity: .4; }
.silo-dados p { margin: 2px 0 6px; }
.silo-t { font-size: 1.5rem; font-weight: 700; } .silo-t small { font-size: .85rem; font-weight: 500; color: var(--suave); }
.silo-entrega { background: var(--fundo); border-radius: 8px; padding: 4px 8px; font-size: .88rem; }
.silo-conf { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.silo-conf > div { background: var(--fundo); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.silo-conf small { color: var(--suave); } .silo-conf b { font-size: 1.1rem; }
.txt-ok { color: var(--ok); font-weight: 600; } .txt-alerta { color: var(--alerta); font-weight: 600; } .txt-aviso { color: var(--aviso); }
#modal.largo { width: min(900px, 96vw); }
.graf { position: relative; }
.graf svg { width: 100%; height: auto; display: block; }
.graf .eixo { font-size: 12px; fill: var(--suave); }
.graf .grade { stroke: var(--borda); stroke-width: 1; }
.graf .linha { fill: none; stroke: var(--info); stroke-width: 2; stroke-linejoin: round; }
.graf .area { fill: var(--info); opacity: .12; }
.graf .limite { stroke: var(--alerta); stroke-width: 1.5; stroke-dasharray: 6 4; }
.graf .mira { stroke: var(--suave); stroke-width: 1; }
.graf .ponto { fill: var(--info); stroke: var(--painel); stroke-width: 2; }
.graf .dica-graf { position: absolute; pointer-events: none; background: var(--painel); border: 1px solid var(--borda); border-radius: 8px; padding: 6px 10px; font-size: .85rem; box-shadow: 0 6px 20px rgba(0,0,0,.15); white-space: nowrap; }

/* laudo de rastreabilidade do CP: tabelas mais compactas */
.rast .doc-tab th, .rast .doc-tab td { padding: 4px 8px; font-size: 12px; }
.rast .doc-info > div { padding: 4px 10px; }
.rast .doc-obs { margin-top: 8px; padding: 6px 10px; }

/* checklist diário */
.chk-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.chk-item h2 { display: flex; align-items: center; gap: 10px; }
.chk-st { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 14px; font-weight: 800; color: #fff; flex: none; }
.chk-st.ok { background: #1e8e4e; } .chk-st.pend { background: #e67e22; }
.chk-valor { font-size: 28px; font-weight: 800; margin: 4px 0; }
.chk-mini { display: flex; gap: 8px; margin: 10px 0 6px; } .chk-mini input { flex: 1; min-width: 0; }
.chk-check { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-weight: 600; } .chk-check input { width: 18px; height: 18px; }
.chk-cfg { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--texto-2, #5b6b78); }
.chk-feito h2 { color: #1e8e4e; }

/* checklist das máquinas e betoneiras */
.eq-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 16px; }
.eq-card { border-left: 5px solid #e67e22; } .eq-card.eq-ok { border-left-color: #1e8e4e; } .eq-card.eq-prob { border-left-color: #c0392b; }
.eq-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; } .eq-topo h3 { margin: 0; }
.eq-res { margin: 6px 0; font-size: 13px; }
.eq-linha { margin: 10px 0; } .eq-linha > b { display: block; margin-bottom: 6px; }
.eq-ops { display: flex; flex-wrap: wrap; gap: 6px; }
.eq-op input { position: absolute; opacity: 0; pointer-events: none; }
.eq-op span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--borda, #c5d3de); border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 14px; }
.eq-op input:checked + span { background: var(--primaria, #c96a00); border-color: var(--primaria, #c96a00); color: #fff; }
.eq-op input:focus-visible + span { outline: 2px solid var(--primaria, #c96a00); outline-offset: 2px; }

/* v56 previsto × carregado */
.conf-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:14px}
.conf-kpis>div{background:var(--fundo);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:3px}
.conf-kpis>div>small:first-child{font-size:12px;color:#5b6b78}
.conf-kpis>div>b{font-size:20px}
.conf-kpis .etiqueta{align-self:flex-start}
.st-neutro{background:#e6eaee;color:#4a5864}
@media (prefers-color-scheme: dark){.st-neutro{background:#26323d;color:#b6c7d4}}
.conf-det>td{background:var(--fundo);padding:14px 16px}
.conf-mat{width:100%;font-size:14px}
.conf-mat th,.conf-mat td{padding:6px 10px}
.chk-modo{display:flex;gap:14px;flex-wrap:wrap;margin:4px 0 6px;font-size:14px}
.chk-modo label{display:flex;align-items:center;gap:5px;cursor:pointer}
.chk-modo input{width:auto}
.chk-pesos{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.chk-pesos input{flex:1 1 150px}
.chk-calc{min-width:70px;font-size:16px}
.chk-mini[data-modo-de]{flex-direction:column;align-items:stretch}
.chk-mini[data-modo-de] .chk-pesos{flex-direction:column;align-items:stretch}
.chk-mini[data-modo-de] .chk-pesos input,.chk-mini[data-modo-de] .chk-pct input{flex:none;width:100%}
.chk-mini[data-modo-de] .btn{align-self:flex-start}
