/* Gestão da loja: complementos ao visual do painel (../painel/painel.css). */
.top-acoes { gap: 8px; }
.btn-novo { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 10px; background: #2a1d1d; border: 1px solid #ef444433; color: #fca5a5; font-size: 13px; font-weight: 600; }
.btn-novo.entrada { background: var(--verde-fundo); border-color: transparent; color: #fff; }
.btn-novo:active { transform: scale(.97); }
.ponto.amarelo { background: #f1c66b; }
.bolinha.amarela { background: #f59e0b; color: #1a1200; }

.barras-duplas { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; height: 100%; align-items: end; padding: 0 6px; }
.barras-duplas .mes { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 6px; text-align: center; }
.barras-duplas .par { display: flex; gap: 4px; align-items: flex-end; justify-content: center; height: 100%; }
.barras-duplas .par span { width: 42%; max-width: 26px; height: var(--h); border-radius: 5px 5px 2px 2px; transform-origin: bottom; animation: cresce .7s var(--curva) both; }
.barras-duplas .ent { background: linear-gradient(180deg, var(--verde-2), #16803c); }
.barras-duplas .gas { background: linear-gradient(180deg, #5a5a5a, #2f2f2f); }
.barras-duplas small { color: #888; font-size: 11px; }
.barras-duplas .atual small { color: var(--text); font-weight: 600; }
.baixo-g { margin-top: 14px; }
.ativ-ico.atrasada { background: linear-gradient(145deg, #5b2121, #321010); color: #fca5a5; }
.vazio-li { list-style: none; padding: 24px 16px; color: var(--muted-2); text-align: center; }
.alertas li.red { background: #2a1717; border-color: #ef444433; } .alertas li.red svg { color: #f87171; }

.filtros-linha { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; margin-bottom: 12px; }
.filtros-linha .abas-status { margin: 0; }
.sel-mes { display: grid; gap: 6px; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.sel-mes select { min-height: 44px; padding: 0 12px; border-radius: 10px; background: #141414; border: 1px solid var(--border-2); color: var(--text); font-size: 16px; color-scheme: dark; }
.sel-mes select option { background: #202020; }
.tabela .pos-v { color: #86efac; }
.tabela .neg-v { color: #e5e5e5; }
.tabela tr.repor td { background: rgb(245 158 11 / .05); }
.tabela tr.repor td:first-child { box-shadow: inset 3px 0 0 #f59e0b; }
.tabela .prod-nome { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 500; }
.tag-repor { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #3a301a; color: #f1c66b; }
.tabela tr.repor small { color: #c9a14f; }
.tabela td.prod { min-width: 200px; }
.ico-mini { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; color: var(--muted-2); }
@media (hover: hover) and (pointer: fine) { .ico-mini:hover { color: #fca5a5; background: #ffffff08; } }
.qtd-ctrl { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border-2); border-radius: 10px; padding: 2px; }
.qtd-ctrl button { width: 40px; height: 40px; border-radius: 8px; background: #ffffff08; font-size: 18px; }
.qtd-ctrl button:active { transform: scale(.94); }
.qtd-ctrl b { min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; }

.lista-contas { list-style: none; }
.lista-contas li { display: grid; grid-template-columns: 120px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid #ffffff08; }
.lista-contas li:last-child { border: 0; }
.lista-contas li.atrasada { background: #2a1717; }
.lista-contas li.perto { background: #2a2416; }
.c-data b { display: block; font-variant-numeric: tabular-nums; }
.c-data small, .c-desc small { display: block; color: var(--muted-2); font-size: 12px; }
.lista-contas li.atrasada .c-data small { color: #fca5a5; }
.lista-contas strong { font-variant-numeric: tabular-nums; }
.lista-contas .b-ok { min-height: 44px; padding: 0 18px; border-radius: 9px; font-weight: 600; }
.kpi.atrasada { background: linear-gradient(135deg, #3a1d1d, #201010); border-color: #5b2a2a; }
.kpi.atrasada strong { color: #fca5a5; }

#dialogo { margin: auto; width: min(460px, calc(100% - 24px)); border: 1px solid var(--border-2); border-radius: 16px; background: #161616; color: var(--text); padding: 0; }
#dialogo::backdrop { background: rgb(0 0 0 / .65); }
.form-dialogo { display: grid; gap: 14px; padding: 20px; }
.form-dialogo h2 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.form-dialogo label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 500; }
.form-dialogo input:not([type=checkbox]), .form-dialogo select { min-height: 46px; padding: 0 12px; border-radius: 10px; background: #0f0f0f; border: 1px solid var(--border-2); color: var(--text); font-size: 16px; color-scheme: dark; }
.form-dialogo .lado { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-dialogo .check { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #d4d4d4; min-height: 44px; }
.form-dialogo .check input { width: 20px; height: 20px; accent-color: var(--verde); }
.form-dialogo .erro { color: #fca5a5; font-size: 13px; min-height: 1px; }
.d-acoes { display: flex; justify-content: flex-end; gap: 8px; }
.d-acoes .b-ok { min-height: 44px; padding: 0 22px; border-radius: 10px; font-weight: 600; }
#toast .desfazer { margin-left: 10px; min-height: 32px; padding: 0 10px; border-radius: 8px; background: #ffffff1a; color: #fff; font-weight: 600; }

@media (max-width: 700px) {
  .btn-novo span { display: none; }
  .btn-novo { width: 44px; justify-content: center; padding: 0; }
  .lista-contas li { grid-template-columns: 1fr auto; }
  .lista-contas .c-data { grid-column: 1 / -1; display: flex; gap: 8px; align-items: baseline; }
  .tabela td:nth-child(4), .tabela th:nth-child(4) { display: none; }
  .form-dialogo .lado { grid-template-columns: 1fr; }
}

/* estoque no celular: cada produto vira um cartão */
@media (max-width: 700px) {
  .tab-estoque thead { display: none; }
  .tab-estoque tbody tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; padding: 14px; border-bottom: 1px solid #ffffff0d; }
  .tab-estoque td { display: block; padding: 0; border: 0; background: none !important; box-shadow: none !important; }
  .tab-estoque td.prod { grid-column: 1 / 3; grid-row: 1; min-width: 0; }
  .tab-estoque td:nth-child(2) { display: none; }
  .tab-estoque td:nth-child(3) { grid-column: 3 / 5; grid-row: 1; justify-self: end; align-self: start; }
  .tab-estoque td:nth-child(4), .tab-estoque td:nth-child(5), .tab-estoque td:nth-child(6), .tab-estoque td:nth-child(7) { display: block; grid-row: 2; text-align: left; font-size: 13px; }
  .tab-estoque td[data-l]::before { content: attr(data-l); display: block; font-size: 10.5px; color: var(--muted-2); margin-bottom: 2px; }
  .tab-estoque tr.repor { background: rgb(245 158 11 / .05); box-shadow: inset 3px 0 0 #f59e0b; }
  .tab-estoque .vazio { grid-column: 1 / -1; }
}