/* Painel do Ivo (ERP demonstrativo). Usa os tokens do site.css: menu lateral na cor tinta com o amarelo da marca,
   área de trabalho no creme, cartões brancos de canto 14px e pílulas para ações. */
body.erp { background: #f7f0e3; min-height: 100dvh; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.erp-lado { position: sticky; top: 0; height: 100dvh; background: var(--tinta); color: #f4e9e6; display: flex; flex-direction: column; padding: 18px 14px; gap: 18px; overflow-y: auto; z-index: 50; }
.erp-marca { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 6px 8px; }
.erp-marca img { width: 44px; height: 44px; border-radius: 50%; background: var(--amarelo); }
.erp-marca strong { display: block; font-family: var(--fonte-titulo); font-size: 21px; color: var(--amarelo); line-height: 1.1; }
.erp-marca small { font-size: 12px; opacity: .75; }
.erp-nav { display: grid; gap: 4px; }
.erp-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; font-weight: 500; font-size: 15px; color: #e9dcd8; transition: background-color .2s, color .2s; }
.erp-nav a i { font-size: 21px; }
.erp-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.erp-nav a[aria-current="page"] { background: var(--amarelo); color: var(--tinta); font-weight: 600; }
.erp-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--amarelo); color: var(--tinta); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.erp-badge.alerta { background: var(--vermelho-btn); color: #fff; }
.erp-nav a[aria-current="page"] .erp-badge { background: var(--tinta); color: var(--amarelo); }
.erp-breve { margin-left: auto; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; border: 1px dashed currentColor; border-radius: 999px; padding: 2px 7px; opacity: .8; }
.erp-lado-pe { margin-top: auto; display: grid; gap: 6px; }
.erp-aviso { font-size: 12px; line-height: 1.5; background: rgba(255, 200, 9, .1); border: 1px dashed rgba(255, 200, 9, .5); color: #f6e7b0; border-radius: 12px; padding: 10px 12px; display: flex; gap: 8px; }
.erp-aviso i { color: var(--amarelo); flex-shrink: 0; }
.erp-link { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: #e9dcd8; font-size: 14px; padding: 9px 12px; border-radius: 10px; text-decoration: none; text-align: left; }
.erp-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.erp-veu { position: fixed; inset: 0; background: rgba(42, 22, 23, .45); z-index: 45; }

.erp-corpo { min-width: 0; display: flex; flex-direction: column; }
.erp-topo { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 14px clamp(16px, 2.4vw, 32px); background: #f7f0e3; border-bottom: 1px solid var(--linha); }
.erp-topo h1 { font-size: clamp(24px, 2.4vw, 32px); margin-right: auto; }
.erp-menu { display: none; }
.unidades { display: inline-flex; background: #fff; border-radius: 12px; padding: 4px; box-shadow: 0 0 0 1px var(--linha); }
.unidades button { border: 0; background: none; border-radius: 8px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--tinta-2); display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; transition: background-color .2s, color .2s; }
.unidades button[aria-checked="true"] { background: var(--tinta); color: var(--amarelo); }
main#erp-conteudo { padding: clamp(16px, 2.4vw, 32px); flex: 1; outline: none; }
.erp-rodape { padding: 18px clamp(16px, 2.4vw, 32px) 26px; font-size: 13px; color: var(--tinta-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--linha); }
.erp-rodape .credito a { color: inherit; text-decoration: none; }
.erp-rodape .credito a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1100px) { .unidades span { display: none; } .unidades button { padding: 9px 12px; } .unidades button[aria-checked="true"] span { display: inline; } }
@media (max-width: 900px) {
  body.erp { grid-template-columns: 1fr; }
  .erp-lado { position: fixed; left: 0; top: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .35s var(--suave); }
  .erp-lado.aberto { transform: none; }
  .erp-menu { display: grid; }
  .erp-topo { flex-wrap: wrap; gap: 10px; }
  .unidades { order: 3; width: 100%; }
  .unidades button { flex: 1; justify-content: center; }
}

/* Blocos comuns */
.painel { background: #fff; border-radius: var(--r-sm); box-shadow: 0 0 0 1px var(--linha); padding: 20px; min-width: 0; }
.painel-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.painel-cab h2 { font-size: 21px; }
.painel-cab small, .sutil { color: var(--tinta-2); font-size: 13px; }
.barra-ferr { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.busca-erp { position: relative; flex: 1 1 240px; max-width: 360px; }
.busca-erp i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--tinta-2); }
.busca-erp input, .sel { width: 100%; height: 42px; border-radius: var(--r-btn); border: 0; box-shadow: inset 0 0 0 1.5px var(--linha); background: #fff; padding: 0 16px 0 40px; font-size: 14px; }
.sel { width: auto; padding: 0 34px 0 16px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232a1617' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.busca-erp input:focus, .sel:focus { outline: none; box-shadow: inset 0 0 0 2px var(--tinta); }
.chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 0; border-radius: var(--r-btn); padding: 8px 14px; font-size: 13px; font-weight: 600; background: #fff; box-shadow: inset 0 0 0 1.5px var(--linha); display: inline-flex; gap: 6px; align-items: center; }
.chip[aria-pressed="true"] { background: var(--tinta); color: #fff; box-shadow: none; }
.chip b { font-weight: 700; opacity: .7; }
.btn-mini { border: 0; border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 600; background: #f3e9db; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; transition: background-color .2s, transform .2s var(--mola); white-space: nowrap; }
.btn-mini:hover { background: var(--amarelo-claro); }
.btn-mini:active { transform: scale(.96); }
.btn-mini.forte { background: var(--tinta); color: #fff; }
.btn-mini.forte:hover { background: #000; }
.btn-mini.whats { background: #1f8f4e; color: #fff; }
.btn-mini.perigo { background: #fde4e6; color: var(--vermelho-txt); }
.vazio-erp { text-align: center; padding: 30px 14px; color: var(--tinta-2); font-size: 14px; }

/* Visão geral */
.kpis-erp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi-erp { background: #fff; border-radius: var(--r-sm); padding: 18px 20px; box-shadow: 0 0 0 1px var(--linha); display: grid; gap: 4px; }
.kpi-erp span { font-size: 13px; font-weight: 600; color: var(--tinta-2); display: flex; gap: 8px; align-items: center; }
.kpi-erp span i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--amarelo-claro); color: var(--vinho); font-size: 16px; }
.kpi-erp strong { font-family: var(--fonte-titulo); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-erp small { font-size: 13px; color: var(--tinta-2); }
.kpi-erp small .sobe { color: var(--ok); font-weight: 600; }
.kpi-erp small .desce { color: var(--vermelho-txt); font-weight: 600; }
.kpi-erp:first-child { background: var(--amarelo); box-shadow: none; }
.kpi-erp:first-child span, .kpi-erp:first-child small { color: var(--tinta); }
.kpi-erp:first-child span i { background: #fff; }
.visao-grade { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.visao-grade > .col { display: grid; gap: 18px; min-width: 0; }
@media (max-width: 1180px) { .kpis-erp { grid-template-columns: 1fr 1fr; } .visao-grade { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .kpis-erp { gap: 10px; } .kpi-erp { padding: 14px; } }

.grafico { position: relative; }
.grafico svg { display: block; width: 100%; height: auto; overflow: visible; }
.grafico .grade-linha { stroke: #efe4d4; stroke-width: 1; }
.grafico .base { stroke: #cdbba3; stroke-width: 1; }
.grafico .eixo { font-size: 12px; fill: var(--tinta-2); font-family: var(--fonte); }
.grafico .eixo.hoje { fill: var(--tinta); font-weight: 700; }
.grafico .valor { font-size: 12px; fill: var(--tinta); font-weight: 600; font-family: var(--fonte); }
.grafico .barra { fill: var(--vermelho); transition: opacity .2s; }
.grafico .barra.hoje { fill: var(--vinho); }
.grafico .alvo { fill: transparent; cursor: default; }
.grafico:hover .barra { opacity: .45; }
.grafico .barra.ativa { opacity: 1; }
.grafico .barra { transform-box: fill-box; transform-origin: bottom; animation: cresce .8s var(--suave) both; }
@keyframes cresce { from { transform: scaleY(0); } }
.dica-graf { position: absolute; pointer-events: none; background: var(--tinta); color: #fff; font-size: 13px; padding: 8px 12px; border-radius: 10px; transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; opacity: 0; transition: opacity .15s; }
.dica-graf.mostra { opacity: 1; }
.dica-graf b { color: var(--amarelo); display: block; font-size: 15px; }

.lista-mini { display: grid; }
.lista-mini > * { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--linha); font-size: 14px; min-width: 0; }
.lista-mini > *:last-child { border-bottom: 0; }
.lista-mini img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.lista-mini .txt { flex: 1; min-width: 0; }
.lista-mini .txt b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lista-mini .txt small { color: var(--tinta-2); }
button.linha-click { border: 0; background: none; width: 100%; text-align: left; cursor: pointer; }
button.linha-click:hover b { color: var(--vermelho-txt); }
.tag-baixo { background: var(--vermelho-btn); color: #fff; }
.tag-site { background: var(--amarelo); color: var(--tinta); }
.tag-ativo { background: #e5f4ea; color: var(--ok); }
.tag-risco { background: #fff1b8; color: #7a5200; }
.tag-inativo { background: #fde4e6; color: var(--vermelho-txt); }
.tag-novo { background: #e6eefc; color: #1f4e9c; }
.pulso { animation: pulso 1.6s var(--suave) 3; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(255, 200, 9, .9); } 100% { box-shadow: 0 0 0 16px rgba(255, 200, 9, 0); } }

/* Kanban */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.coluna { background: #efe5d4; border-radius: var(--r-sm); padding: 12px; min-height: 300px; scroll-snap-align: start; transition: background-color .2s, box-shadow .2s; }
.coluna.sobre { background: var(--amarelo-claro); box-shadow: inset 0 0 0 2px var(--amarelo); }
.coluna-cab { display: flex; align-items: center; gap: 4px 8px; padding: 4px 4px 12px; flex-wrap: wrap; }
.coluna-cab h2 { font-size: 17px; font-family: var(--fonte-titulo); }
.coluna-cab .cont { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.coluna-cab small { flex-basis: 100%; padding-left: 18px; font-size: 12px; color: var(--tinta-2); font-weight: 600; }
.coluna-cab .bolinha { width: 10px; height: 10px; border-radius: 50%; }
.cards { display: grid; gap: 10px; }
.card-ped { background: #fff; border-radius: 12px; padding: 13px 14px; box-shadow: 0 1px 0 rgba(143, 21, 32, .08), 0 0 0 1px #eadcc6; cursor: grab; display: grid; gap: 7px; font-size: 13px; transition: transform .2s var(--mola), box-shadow .2s; }
.card-ped:hover { box-shadow: 0 8px 20px -12px rgba(143, 21, 32, .5), 0 0 0 1px #dccab0; }
.card-ped.arrastando { opacity: .4; transform: rotate(2deg); }
.card-ped .topo-card { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.card-ped .num { font-weight: 700; font-size: 13px; color: var(--tinta-2); }
.card-ped h3 { font-family: var(--fonte); font-size: 15px; font-weight: 600; line-height: 1.3; }
.card-ped .linha { display: flex; gap: 6px; align-items: flex-start; color: var(--tinta-2); }
.card-ped .linha i { margin-top: 2px; flex-shrink: 0; }
.card-ped .pe { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--linha); }
.card-ped .total { font-family: var(--fonte-titulo); font-size: 18px; font-weight: 700; }
.card-ped .acoes-card { display: flex; gap: 6px; flex-shrink: 0; }
.card-ped .acoes-card .btn-mini { padding: 7px 10px; }
.card-ped.novo-site { box-shadow: 0 0 0 2px var(--amarelo); }
.mais-cards { width: 100%; border: 1.5px dashed #cdbba3; background: none; border-radius: 12px; padding: 10px; font-size: 13px; font-weight: 600; color: var(--tinta-2); }
.dica-kanban { font-size: 13px; color: var(--tinta-2); display: flex; gap: 8px; align-items: center; }
@media (max-width: 900px) { .kanban { grid-template-columns: repeat(4, 82%); } }

/* Romaneio */
.romaneio { background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--linha); padding: 16px; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; max-height: 46vh; overflow-y: auto; }
.modal-caixa.larga { width: min(980px, 100%); }
.modal-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.modal-cab h2 { font-size: 26px; }
.modal-fechar { flex-shrink: 0; }
.acoes-modal { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.fases-mover { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 16px; }
.fases-mover button[aria-pressed="true"] { background: var(--tinta); color: #fff; }

/* Produtos */
.tabela-prod { display: grid; }
.linha-prod { display: grid; grid-template-columns: 56px minmax(0, 2.2fr) 1fr 1.1fr 1.5fr 1fr auto; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid #f1e6d6; font-size: 14px; }
.linha-prod.cab { font-size: 12px; font-weight: 600; color: var(--tinta-2); text-transform: uppercase; letter-spacing: .04em; padding-top: 0; }
.linha-prod img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: #f3e9db; }
.linha-prod .nome b { display: block; font-weight: 600; }
.linha-prod .nome small { color: var(--tinta-2); }
.linha-prod.inativo { opacity: .55; }
.preco-col b { display: block; }
.preco-col small { color: var(--tinta-2); }
.estoque-ctrl { display: inline-flex; align-items: center; border-radius: var(--r-btn); box-shadow: inset 0 0 0 1.5px var(--linha); background: #fff; }
.estoque-ctrl button { width: 32px; height: 32px; border: 0; background: none; border-radius: 7px; font-size: 14px; display: grid; place-items: center; }
.estoque-ctrl button:hover { background: var(--amarelo-claro); }
.estoque-ctrl input { width: 52px; border: 0; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; background: none; -moz-appearance: textfield; }
.estoque-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; }
.estoque-ctrl.baixo { box-shadow: inset 0 0 0 2px var(--vermelho-btn); }
.linha-prod .acoes-prod { display: flex; gap: 6px; }
@media (max-width: 1100px) {
  .linha-prod { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "img nome acoes" "img preco preco" "img est status"; row-gap: 8px; }
  .linha-prod.cab { display: none; }
  .linha-prod img { grid-area: img; align-self: start; }
  .linha-prod .nome { grid-area: nome; }
  .linha-prod .cat-col { display: none; }
  .linha-prod .preco-col { grid-area: preco; }
  .linha-prod .est-col { grid-area: est; }
  .linha-prod .status-col { grid-area: status; justify-self: end; }
  .linha-prod .acoes-prod { grid-area: acoes; }
}
.editor { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.foto-up { border: 2px dashed #cdbba3; border-radius: var(--r-sm); background: #fff; aspect-ratio: 1; display: grid; place-items: center; text-align: center; padding: 10px; cursor: pointer; position: relative; overflow: hidden; font-size: 13px; color: var(--tinta-2); transition: border-color .2s, background-color .2s; }
.foto-up.sobre { border-color: var(--vermelho); background: var(--amarelo-claro); }
.foto-up img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.foto-up .troca { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); background: rgba(42, 22, 23, .8); color: #fff; padding: 5px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.foto-up input { position: absolute; opacity: 0; pointer-events: none; }
.editor .campos { grid-template-columns: 1fr 1fr; }
.previa-preco { background: var(--amarelo-claro); border-radius: 12px; padding: 12px 14px; font-size: 13px; grid-column: 1 / -1; }
@media (max-width: 680px) { .editor { grid-template-columns: 1fr; } .foto-up { max-width: 200px; } .editor .campos { grid-template-columns: 1fr; } }

/* Clientes */
.sel-barra { position: sticky; top: 76px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--tinta); color: #fff; border-radius: 12px; padding: 8px 10px 8px 18px; margin-bottom: 12px; font-size: 14px; }
.sel-barra .btn-mini { background: rgba(255, 255, 255, .14); color: #fff; }
.sel-barra .btn-mini:hover { background: var(--amarelo); color: var(--tinta); }
.tabela-cli { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela-cli th { text-align: left; font-size: 12px; font-weight: 600; color: var(--tinta-2); text-transform: uppercase; letter-spacing: .04em; padding: 0 10px 10px; white-space: nowrap; }
.tabela-cli th button { border: 0; background: none; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; display: inline-flex; gap: 4px; align-items: center; padding: 0; }
.tabela-cli th button[data-ordem] { color: var(--tinta); }
.tabela-cli td { padding: 12px 10px; border-top: 1px solid #f1e6d6; vertical-align: middle; }
.tabela-cli tbody tr { cursor: pointer; transition: background-color .15s; }
.tabela-cli tbody tr:hover { background: #fffaf0; }
.tabela-cli tbody tr.marcado { background: var(--amarelo-claro); }
.tabela-cli td b { font-weight: 600; display: block; }
.tabela-cli td small { color: var(--tinta-2); }
.tabela-cli .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabela-cli input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--tinta); cursor: pointer; }
@media (max-width: 860px) {
  .tabela-cli thead { display: none; }
  .tabela-cli, .tabela-cli tbody, .tabela-cli tr, .tabela-cli td { display: block; }
  .tabela-cli tr { display: grid; grid-template-columns: 30px 1fr auto; gap: 2px 10px; padding: 12px 6px; border-top: 1px solid #f1e6d6; }
  .tabela-cli td { border: 0; padding: 0; }
  .tabela-cli td:nth-child(1) { grid-row: 1 / 4; }
  .tabela-cli td:nth-child(2) { grid-column: 2; }
  .tabela-cli td:nth-child(3), .tabela-cli td:nth-child(4) { display: none; }
  .tabela-cli td:nth-child(5) { grid-column: 2; font-size: 13px; color: var(--tinta-2); }
  .tabela-cli td:nth-child(6) { display: none; }
  .tabela-cli td:nth-child(7) { grid-column: 3; grid-row: 1; }
  .tabela-cli td:nth-child(8) { grid-column: 3; grid-row: 2; }
  .tabela-cli .num { text-align: right; }
}
.ov-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ov-bloco { background: #fff; border-radius: var(--r-sm); padding: 16px; box-shadow: 0 0 0 1px var(--linha); font-size: 14px; display: grid; gap: 6px; align-content: start; }
.ov-bloco h3 { font-size: 16px; font-family: var(--fonte); font-weight: 600; display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.ov-bloco h3 i { color: var(--vermelho); }
.ov-bloco dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.ov-bloco dt { color: var(--tinta-2); }
.ov-bloco dd { margin: 0; font-weight: 500; }
.ov-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.ov-kpis div { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 0 0 1px var(--linha); }
.ov-kpis span { font-size: 12px; color: var(--tinta-2); display: block; }
.ov-kpis strong { font-family: var(--fonte-titulo); font-size: 22px; }
.ov-historico { width: 100%; border-collapse: collapse; font-size: 13px; }
.ov-historico th { text-align: left; color: var(--tinta-2); font-weight: 600; font-size: 12px; padding: 6px 8px; }
.ov-historico td { padding: 8px; border-top: 1px dashed var(--linha); vertical-align: top; }
.ov-historico .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ov-historico-caixa { max-height: 280px; overflow: auto; background: #fff; border-radius: var(--r-sm); box-shadow: 0 0 0 1px var(--linha); padding: 6px 10px; }
.reativar { background: var(--amarelo); border-radius: var(--r-sm); padding: 16px; margin-top: 14px; display: grid; gap: 10px; }
.reativar textarea { width: 100%; border: 0; border-radius: 12px; padding: 12px; font-size: 14px; resize: vertical; min-height: 92px; }
@media (max-width: 860px) { .ov-grade { grid-template-columns: 1fr; } .ov-kpis { grid-template-columns: 1fr 1fr; } }

/* Relatórios (em breve) */
.em-breve { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; background: #fff; border-radius: var(--r); box-shadow: 0 0 0 1px var(--linha); padding: clamp(22px, 4vw, 44px); }
.em-breve h2 { font-size: clamp(30px, 3.4vw, 44px); }
.em-breve ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.em-breve li { display: flex; gap: 10px; align-items: center; color: var(--tinta-2); }
.em-breve li i { color: var(--vermelho); font-size: 20px; }
.esqueleto { display: grid; gap: 12px; }
.esqueleto div { height: 18px; border-radius: 9px; background: linear-gradient(90deg, #f3e9db 25%, #fbf4e8 50%, #f3e9db 75%); background-size: 200% 100%; animation: brilho 1.6s linear infinite; }
.esqueleto .alto { height: 150px; border-radius: 14px; }
@keyframes brilho { to { background-position: -200% 0; } }
@media (max-width: 860px) { .em-breve { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .grafico .barra, .esqueleto div, .pulso { animation: none; }
  .erp-lado { transition: none; }
}
.erp-badge[hidden], [hidden] { display: none !important; }
@media (max-width: 560px) { .lista-mini .tag-fase { display: none; } .lista-mini .txt b { white-space: normal; } }
