/* Estrutura e medidas copiadas do dashboard dos Apontamentos; escopo somente na visão geral.
   Referência estilo.css SHA-256: 99434d39818c14bb0575b93969750b7f86c0520b46418733126d4bfda52bbf7b */
body.overview-layout :is(.main-wrap,.app-dialog) {
  --vermelho: #E2231A;
  --vermelho-escuro: #B81913;
  --texto: #2A2A2A;
  --texto-suave: #6B6B6B;
  --borda: #E2E2E2;
  --fundo: #F4F5F7;
  --branco: #FFFFFF;
  --verde: #1E8E3E;
  --amarelo: #B7791F;
  --azul: #2563EB;
  --fonte: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
/* O reset fica restrito à Visão geral e aos modais, com prioridade abaixo dos componentes. */
body.overview-layout :where(#page-overview,.app-dialog) * { box-sizing: border-box; margin: 0; padding: 0; }
body.overview-layout { overflow-x: hidden; }
body.overview-layout :is(.main-wrap,.app-dialog) {
  font-family: var(--fonte); color: var(--texto); font-size: 14px; line-height: normal;
  --texto-titulo: #2A2A2A;
}
body.overview-layout #shell { display: none; min-height: 100vh; max-width: 100vw; overflow-x: hidden; }
body.overview-layout #shell:not([hidden]) { display: flex; }
body.overview-layout .main-wrap {
  min-width: 0; max-width: calc(100vw - var(--menu-largura));
  padding: 26px 30px; transition: margin-left 0.2s ease, max-width 0.2s ease, padding 0.2s ease;
}
body.overview-layout.menu-recolhido #shell .main-wrap {
  max-width: 100vw; padding: 26px 30px 26px 64px;
}
body.overview-layout .pagina { display: none; min-width: 0; max-width: 100%; }
body.overview-layout .pagina.ativa { display: block; }
body.overview-layout h2.titulo-pagina { font-size: 20px; margin-bottom: 4px; }
body.overview-layout .sub-pagina { color: var(--texto-suave); margin-bottom: 22px; }
body.overview-layout .painel-indicadores {
  display: block; margin-bottom: 14px; padding: clamp(14px, 2vw, 24px);
  border: 1px solid var(--borda); border-top: 3px solid var(--vermelho);
  border-radius: 11px; background: var(--branco);
}
body.overview-layout .overview-heading {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  margin-bottom: 16px;
}
body.overview-layout .painel-indicadores-titulo { flex: 1 1 230px; min-width: 0; }
body.overview-layout .painel-indicadores-titulo h2 { font-size: clamp(20px, 2.1vw, 26px); line-height: 1.15; }
body.overview-layout .overview-heading-actions { display:flex; min-width:0; flex-wrap:wrap; align-items:center; gap:8px; }
body.overview-layout .overview-heading-actions:not(:has(> button:not([hidden]))) { display:none; }
body.overview-layout .overview-heading-actions .btn { min-height: 38px; padding: 8px 12px; font-size: 13px; }
body.overview-layout .painel-graficos {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px;
  min-width: 0; padding: 15px 0 0; border: 0; border-top: 1px solid var(--borda);
}
body.overview-layout .grafico-painel { min-width: 0; }
body.overview-layout .grafico-painel + .grafico-painel { padding-left: 20px; border-left: 1px solid var(--borda); }
body.overview-layout .grafico-painel header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 3px; }
body.overview-layout .grafico-painel h3 { color: var(--texto); font-size: 11px; line-height: 1.25; }
body.overview-layout .grafico-painel header span { display: block; margin-top: 2px; color: var(--texto-suave); font-size: 9px; }
body.overview-layout .grafico-painel header p { color: #98a2b3; font-size: 8.5px; white-space: nowrap; }
body.overview-layout .grafico-painel header p strong { margin-left: 4px; color: #667085; font-size: 10px; }
body.overview-layout .grafico-carregando,
body.overview-layout .grafico-vazio { padding-top: 22px; color: var(--texto-suave); font-size: 11px; }
body.overview-layout .grafico-mensal { display: block; width: 100%; height: auto; max-height: 168px; aspect-ratio: 420 / 94; }
body.overview-layout .grafico-eixo { stroke: #d7d7d7; stroke-width: 1; }
body.overview-layout .grafico-mes-barra { fill: #98a2b3; }
body.overview-layout .grafico-mes-barra.atual { fill: var(--vermelho); }
body.overview-layout .grafico-mes-valor { fill: #475467; font-size: 7px; font-weight: 700; text-anchor: middle; }
body.overview-layout .grafico-mes-rotulo { fill: #667085; font-size: 8.5px; font-weight: 500; text-anchor: middle; }
body.overview-layout .ranking-apontadores { display: grid; gap: 6px; margin-top: 10px; padding: 0; list-style: none; }
body.overview-layout .ranking-apontadores li {
  display: grid; min-width: 0; grid-template-columns: 18px minmax(70px, 1fr) minmax(0, 2fr) minmax(2ch, max-content);
  align-items: center; gap: 7px;
}
body.overview-layout .ranking-apontadores li > b {
  display: grid; width: 17px; height: 17px; place-items: center; border-radius: 4px;
  background: #e8edf5; color: #344054; font-size: 9px;
}
body.overview-layout .ranking-apontadores li:first-child > b { background: #dbeafe; color: #1d4ed8; }
body.overview-layout .ranking-apontadores li > span {
  overflow: hidden; color: var(--texto-suave); font-size: 12px; text-overflow: ellipsis; white-space: nowrap;
}
body.overview-layout .ranking-apontadores li > strong { color: var(--texto); font-size: 12px; text-align: right; }
body.overview-layout .ranking-apontadores progress {
  width: 100%; min-width: 0; height: 7px; overflow: hidden; border: 0; border-radius: 999px;
  background: #e4e7ec; color: var(--azul); appearance: none;
}
body.overview-layout .ranking-apontadores progress::-webkit-progress-bar { border-radius: 999px; background: #e4e7ec; }
body.overview-layout .ranking-apontadores progress::-webkit-progress-value { border-radius: 999px; background: var(--azul); }
body.overview-layout .ranking-apontadores progress::-moz-progress-bar { border-radius: 999px; background: var(--azul); }
body.overview-layout .cards-resumo { display: flex; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
body.overview-layout .card-num {
  background: var(--branco); border: 1px solid var(--borda); border-radius: 10px;
  padding: 16px 20px; min-width: 150px; flex: 1;
}
body.overview-layout .card-num .n { font-size: 28px; font-weight: 700; }
body.overview-layout .card-num .r { color: var(--texto-suave); font-size: 13px; margin-top: 2px; }
body.overview-layout .card-num.pendente .n { color: var(--azul); }
body.overview-layout .card-num.aguardando .n { color: var(--amarelo); }
body.overview-layout .card-num.enviado .n { color: var(--verde); }
body.overview-layout .card-num.erro .n { color: var(--vermelho); }
body.overview-layout #page-overview .painel-indicadores .cards-resumo {
  display: grid; flex: 0 1 auto; min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0;
}
body.overview-layout #page-overview .painel-indicadores .card-num {
  display: grid; min-width: 0; align-content: center; gap: 3px;
  padding: 7px 12px; border-left: 3px solid var(--azul);
}
body.overview-layout #page-overview .painel-indicadores .card-num.enviado { border-left-color: var(--verde); }
body.overview-layout #page-overview .painel-indicadores .card-num .n {
  font-size: clamp(18px, 2vw, 24px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
body.overview-layout #page-overview .painel-indicadores .card-num .r { margin: 0; font-size: 12px; line-height: 1.25; }
body.overview-layout .tabela-wrap {
  max-width: 100%; background: var(--branco); border: 1px solid var(--borda);
  border-radius: 10px; overflow-x: auto; overflow-y: hidden;
}
body.overview-layout table { width: 100%; border-collapse: collapse; }
body.overview-layout #page-overview table { min-width: 1180px; }
body.overview-layout #page-overview th:nth-child(1),
body.overview-layout #page-overview td:nth-child(1),
body.overview-layout #page-overview th:nth-child(2),
body.overview-layout #page-overview td:nth-child(2),
body.overview-layout #page-overview th:nth-child(7),
body.overview-layout #page-overview td:nth-child(7),
body.overview-layout #page-overview th:nth-child(8),
body.overview-layout #page-overview td:nth-child(8),
body.overview-layout #page-overview th:nth-child(9),
body.overview-layout #page-overview td:nth-child(9),
body.overview-layout #page-overview th:nth-child(10),
body.overview-layout #page-overview td:nth-child(10) { white-space: nowrap; }
body.overview-layout th,
body.overview-layout td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--borda); }
body.overview-layout th { background: #FAFAFA; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--texto-suave); }
body.overview-layout tr:last-child td { border-bottom: none; }
body.overview-layout tr:hover td { background: #FAFBFC; }
body.overview-layout .clicavel { cursor: pointer; }
body.overview-layout .etq { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
body.overview-layout .etq.PENDENTE { background: #E0ECFF; color: var(--azul); }
body.overview-layout .etq.AGUARDANDO_CONFIG { background: #FEF3D7; color: var(--amarelo); }
body.overview-layout .etq.ENVIADO { background: #D8F5E3; color: var(--verde); }
body.overview-layout .etq.APROVADO { background: #DFF0F7; color: #0F6E8C; }
body.overview-layout .etq.ERRO { background: #FDE0E0; color: var(--vermelho); }
body.overview-layout .etq.EXCLUIDO_CRTI { background: #ECECEC; color: #555; }
body.overview-layout .etq.CONF_CORRETO { background: #D8F5E3; color: var(--verde); }
body.overview-layout .etq.CONF_CORRIGIDO { background: #DFF0F7; color: #0F6E8C; }
body.overview-layout .etq.CONF_DIVERGENCIA { background: #FDE0E0; color: var(--vermelho); }
body.overview-layout .etq.CONF_SEM_HISTORICO { background: #ECECEC; color: #555; }
body.overview-layout .etq.PARALISACAO { margin-top: 5px; background: #FDE0E0; color: var(--vermelho); }
body.overview-layout .filial-atual-observacao { display: block; margin-top: 4px; color: var(--texto-suave); font-size: 11px; font-weight: 400; line-height: 1.35; }
body.overview-layout .referencia-horimetro { border: 0; background: none; padding: 0; color: var(--azul); text-decoration: underline; cursor: pointer; font: inherit; }
body.overview-layout .conferencia-detalhe { margin: 12px 0; padding: 12px; border-radius: 8px; background: var(--fundo); }
body.overview-layout .conferencia-detalhe.divergente { border: 1px solid var(--vermelho); background: #FFF5F5; }
body.overview-layout .paralisacao-aviso { margin: 10px 0; padding: 10px 12px; border: 1px solid #F2C6C3; border-left: 4px solid var(--vermelho); border-radius: 8px; background: #FFF5F5; color: #9F1D17; font-size: 13px; line-height: 1.45; }
body.overview-layout .paralisacao-aviso strong { display: block; color: var(--vermelho); }
body.overview-layout input[type="text"],
body.overview-layout input[type="password"],
body.overview-layout input[type="number"],
body.overview-layout input[type="date"],
body.overview-layout select {
  width: 100%; border: 1px solid var(--borda); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; font-family: var(--fonte); background: var(--branco);
}
body.overview-layout input:focus,
body.overview-layout select:focus { outline: none; border-color: var(--vermelho); box-shadow: 0 0 0 3px rgba(226,35,26,0.1); }
body.overview-layout .botao {
  border: none; border-radius: 8px; padding: 11px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: var(--fonte);
}
body.overview-layout .botao-principal { background: var(--vermelho); color: #fff; }
body.overview-layout .botao-principal:hover { background: var(--vermelho-escuro); }
body.overview-layout .botao-secundario { background: var(--branco); border: 1px solid var(--borda); color: var(--texto); }
body.overview-layout .botao-pequeno { padding: 6px 12px; font-size: 13px; }
body.overview-layout .botao-perigo { background: none; border: none; color: var(--vermelho); cursor: pointer; text-decoration: underline; font-size: 13px; }
body.overview-layout .campo { margin-bottom: 14px; text-align: left; }
body.overview-layout .campo label { display: block; font-size: 13px; color: var(--texto-suave); margin-bottom: 5px; }
body.overview-layout .modal-fundo {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
body.overview-layout .modal-fundo.aberto { display: flex; }
body.overview-layout .reference-modal {
  background: var(--branco); border-radius: 12px; padding: 24px;
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
}
body.overview-layout .reference-modal h3 { margin-bottom: 16px; font-size: 17px; }
body.overview-layout .modal-detalhe-linha { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--borda); }
body.overview-layout .modal-detalhe-linha .rot { color: var(--texto-suave); }
body.overview-layout .modal-detalhe-linha .val { font-weight: 600; text-align: right; }
body.overview-layout .foto-detalhe-botao {
  display: block; width: 100%; margin-top: 12px; padding: 0;
  border: 1px solid var(--borda); border-radius: 8px; background: #111;
  overflow: hidden; cursor: zoom-in; position: relative;
}
body.overview-layout .foto-detalhe { display: block; width: 100%; margin: 0; border: 0; }
body.overview-layout .foto-detalhe-botao > span {
  position: absolute; right: 10px; bottom: 10px; padding: 6px 10px;
  border-radius: 20px; background: rgba(0,0,0,.72); color: #fff;
  font-size: 12px; font-weight: 600;
}
body.overview-layout .visualizador-foto {
  position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column;
  background: rgba(0,0,0,.94); padding: 12px;
}
body.overview-layout .visualizador-foto-barra {
  flex: 0 0 auto; display: flex; justify-content: center; align-items: center;
  gap: 8px; padding-bottom: 10px;
}
body.overview-layout .visualizador-foto-barra button {
  min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid #555;
  border-radius: 8px; background: #252525; color: #fff; cursor: pointer;
  font: 700 20px var(--fonte);
}
body.overview-layout .visualizador-foto-barra button:hover { background: #3A3A3A; }
body.overview-layout .visualizador-foto-barra .visualizador-zoom { min-width: 74px; font-size: 13px; }
body.overview-layout .visualizador-foto-barra .visualizador-fechar { margin-left: 18px; background: var(--vermelho); border-color: var(--vermelho); font-size: 26px; }
body.overview-layout .visualizador-foto-palco {
  flex: 1; min-height: 0; overflow: auto; display: flex; align-items: flex-start;
  justify-content: center; border-radius: 8px;
}
body.overview-layout .visualizador-foto-palco img {
  display: block; height: auto; object-fit: contain; margin: auto;
  transition: width .15s ease; cursor: zoom-in;
}
body.overview-layout .barra-acoes { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
body.overview-layout .filtro-periodo { display: flex; align-items: center; gap: 7px; }
body.overview-layout .filtro-periodo input { width: 145px; }
body.overview-layout .filtro-periodo span { color: var(--texto-suave); font-size: 13px; }
body.overview-layout .filtro-botao {
  padding: 7px 14px; border-radius: 20px; border: 1px solid var(--borda);
  background: var(--branco); cursor: pointer; font-size: 13px; font-family: var(--fonte);
}
body.overview-layout .filtro-botao.active { background: var(--vermelho); color: #fff; border-color: var(--vermelho); }
body.overview-layout .vazio { padding: 40px; text-align: center; color: var(--texto-suave); }
@media (max-width: 1600px) {
body.overview-layout .main-wrap { padding: 22px 12px; }
body.overview-layout.menu-recolhido #shell .main-wrap { padding: 22px 20px 22px 64px; }
body.overview-layout th,
body.overview-layout td { padding: 10px 9px; }
body.overview-layout #page-overview table { min-width: 1120px; }
}
@media (max-width: 700px) {
body.overview-layout .painel-graficos { grid-template-columns: minmax(0, 1fr); gap: 12px; }
body.overview-layout .grafico-painel + .grafico-painel { padding: 12px 0 0; border: 0; border-top: 1px solid var(--borda); }
}

body.overview-layout .environment-line { display:none; }
body.overview-layout .main-wrap > main { padding:0; margin:0; max-width:none; }
body.overview-layout #page-overview h2,body.overview-layout #page-overview h3 { font-weight:700; }
body.overview-layout #page-overview h2 { margin:0; }
body.overview-layout #page-overview .grafico-painel header { margin-bottom:3px; padding:0; background:none; border:0; }
body.overview-layout #page-overview .grafico-painel header p { line-height:normal; }
body.overview-layout #page-overview .grafico-painel header strong { font-weight:700; }
body.overview-layout #page-overview input,body.overview-layout #page-overview select { min-height:0; margin:0; line-height:normal; font-weight:400; }
body.overview-layout #page-overview th,body.overview-layout #page-overview td { font-weight:400; line-height:normal; color:inherit; }
body.overview-layout #page-overview th { color:var(--texto-suave); font-weight:700; }
body.overview-layout #page-overview td small { display:block; margin-top:4px; font-size:11px; color:var(--texto-suave); }
body.overview-layout #page-overview tbody tr:focus-visible { outline:2px solid var(--vermelho); outline-offset:-2px; }
body.overview-layout .overview-list-footer { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:14px; color:var(--texto-suave); font-size:12px; }
body.overview-layout #overview-list-count { margin-right:auto; }
body.overview-layout #overview-list-end { min-height:1px; }
body.overview-layout .app-dialog:not(.reference-modal,.photo-viewer) {
  position:fixed; inset:0; margin:auto;
}
body.overview-layout .app-dialog:not(.reference-modal,.photo-viewer) :is(.dialog-heading,.dialog-content,.dialog-actions) {
  padding-inline:clamp(16px,4vw,24px);
}
body.overview-layout .app-dialog:not(.reference-modal,.photo-viewer) .dialog-heading { padding-block:16px; }
body.overview-layout .app-dialog:not(.reference-modal,.photo-viewer) .dialog-content { padding-block:18px; }
body.overview-layout .app-dialog:not(.reference-modal,.photo-viewer) .dialog-actions { padding-block:14px; }
body.overview-layout .app-dialog:not(.reference-modal,.photo-viewer) .dialog-actions .btn { padding:8px 14px; }
#export-logs-dialog {
  width:min(960px,calc(100vw - 32px));
  overflow:hidden;
}
#export-logs-dialog[open] {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto minmax(0,1fr) auto;
}
#export-logs-dialog .dialog-content { min-width:0; overflow:auto; }
#export-logs-dialog .dialog-heading button { flex-shrink:0; }
#export-logs-status:not(:empty) { margin-bottom:10px; }
#export-logs-table { overflow-x:auto; overscroll-behavior-x:contain; }
#export-logs-table table { min-width:680px; white-space:normal; }
#export-logs-table :is(th,td) { padding:10px 12px; }
#export-logs-table td:nth-child(2) { overflow-wrap:anywhere; }
#export-logs-table td:nth-child(3) { white-space:nowrap; }
#export-logs-table :is(th,td):nth-child(n+5) { text-align:right; }
#calibration-release-form .dialog-content, #retro-calibration-form .dialog-content { display:grid; gap:12px; }
#calibration-release-form label, #retro-calibration-form label { display:grid; gap:4px; min-width:0; }
#calibration-release-error:empty, #retro-calibration-error:empty { display:none; }
body.overview-layout .reference-modal { margin:auto; border:0; inset:0; box-shadow:none; color:var(--texto); }
body.overview-layout .reference-modal .dialog-heading,body.overview-layout .reference-modal .dialog-content,body.overview-layout .reference-modal .dialog-actions { padding:0; border:0; background:none; }
body.overview-layout .reference-modal .dialog-heading { margin-bottom:16px; }
body.overview-layout .reference-modal h3 { font-weight:700; line-height:normal; }
body.overview-layout .reference-modal .modal-detalhe-linha { gap:18px; }
body.overview-layout .reference-modal .modal-detalhe-linha .val { overflow-wrap:anywhere; }
body.overview-layout .overview-modal-actions { display:flex; justify-content:flex-end; align-items:center; gap:10px; margin-top:20px; flex-wrap:wrap; }
body.overview-layout .reference-modal img { display:block; max-width:100%; height:auto; margin-top:12px; }
body.overview-layout #day-detail-actions {
  align-items:start; flex-wrap:nowrap; gap:8px; margin-top:16px; padding-top:14px; border-top:1px solid var(--borda);
}
body.overview-layout #overview-detail-actions :is(.btn,.botao),
body.overview-layout #day-detail-actions > .btn,
body.overview-layout #day-detail-actions .day-operation-actions > button { padding:8px 9px; min-height:38px; font-size:12px; }
.day-operation-actions { display:flex; flex-wrap:wrap; align-items:stretch; gap:6px; min-width:0; }
#day-detail-actions .day-operation-actions:has(> button:not([hidden])) { flex:1; }
#day-detail-actions .day-operation-actions > button { white-space:nowrap; }
body.overview-layout #day-detail-actions .day-operation-actions .botao-perigo {
  border:1px solid var(--borda); border-radius:var(--raio-sm); background:#fff; text-decoration:none;
}
@media(max-width:550px) {
  body.overview-layout #day-detail-actions { flex-direction:column; }
  #day-detail-actions .day-operation-actions { width:100%; }
}
body.overview-layout #day-detail-actions .botao-perigo { min-height:36px; }
#overview-photo-dialog {
  position:fixed;
  inset:0;
  width:100%;
  height:100dvh;
  max-width:none;
  max-height:none;
  margin:0;
  padding:0;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:rgba(13,17,23,.82);
  box-shadow:none;
  color:#f8fafc;
  color-scheme:dark;
}
.app-dialog.photo-viewer[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
.photo-viewer .photo-viewer-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:10px clamp(14px,3vw,32px) 8px;
  padding-top:calc(10px + env(safe-area-inset-top,0px));
}
.photo-viewer h3 { min-width:0; margin:0; color:inherit; font-size:clamp(14px,2vw,17px); font-weight:600; }
.photo-viewer .photo-viewport {
  min-width:0;
  min-height:0;
  margin-inline:clamp(12px,3vw,32px);
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
.photo-viewport.can-pan { cursor:grab; }
.photo-viewport.is-panning { cursor:grabbing; }
.photo-canvas { display:grid; place-items:center; width:max-content; min-width:100%; height:max-content; min-height:100%; }
.photo-viewer .photo-canvas img { display:block; width:auto; height:auto; max-width:none; max-height:none; margin:0; user-select:none; }
.photo-canvas [data-photo-status] { padding:12px; text-align:center; }
.photo-canvas [data-photo-status]:empty { display:none; }
#overview-photo-dialog :is(.photo-controls,.photo-viewer-close) { background:#262c36; border:1px solid #657184; }
.photo-viewer .photo-controls {
  justify-self:center;
  display:flex;
  align-items:center;
  gap:4px;
  margin:10px 0 14px;
  margin-bottom:calc(14px + env(safe-area-inset-bottom,0px));
  padding:4px;
  border-radius:999px;
}
.photo-controls button,.photo-viewer-close {
  display:grid;
  place-items:center;
  flex:none;
  min-width:44px;
  min-height:44px;
  border-radius:50%;
  color:inherit;
  font:inherit;
  cursor:pointer;
}
.photo-controls button { border:0; background:transparent; font-size:21px; }
.photo-viewer-close { font-size:25px; line-height:1; }
.photo-controls [data-zoom-fit] { padding-inline:12px; border-radius:999px; font-size:13px; font-weight:600; }
#overview-photo-dialog button:enabled:hover { background:#3a4351; }
#overview-photo-dialog button:disabled { color:#adb9cb; opacity:1; cursor:default; }
.photo-viewer :is(button,.photo-viewport):focus-visible { outline:2px solid #fff; outline-offset:-2px; }
.photo-controls output { min-width:45px; text-align:center; font-size:13px; font-variant-numeric:tabular-nums; }
#day-detail-content { display:grid; gap:18px; }
#day-detail-content .day-detail-section + .day-detail-section { border-top:1px solid var(--borda); padding-top:14px; }
#day-detail-content h3 { font-size:15px; margin-bottom:8px; }
#day-detail-content .day-detail-section dl { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(175px,100%),1fr)); gap:10px 16px; margin:0; }
#day-detail-content dt { color:var(--texto-suave); font-size:12px; }
#day-detail-content dd { margin:3px 0 0; font-weight:600; overflow-wrap:anywhere; }
#day-detail-content .day-calibration-list { list-style:none; display:grid; gap:9px; padding:0; margin:0; }
#day-detail-content .day-calibration-list li { display:grid; gap:7px; padding:10px 12px; border:1px solid var(--borda); border-radius:var(--raio-sm); overflow-wrap:anywhere; }
#day-detail-content .day-calibration-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 12px; margin-bottom:8px; }
#day-detail-content .day-calibration-actions h3 { margin:0; }
#day-detail-content .day-calibration-actions .btn { padding:6px 10px; }
#retro-calibration-form input[type="file"] { min-width:0; width:100%; }
#day-detail-content .day-calibration-heading { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:6px; }
#day-detail-content .day-calibration-heading .muted { margin-top:3px; font-size:12px; }
#day-detail-content .day-calibration-release { margin-bottom:10px; }
#overview-refuel-photos { margin-top:16px; padding-top:14px; border-top:1px solid var(--borda); }
#overview-refuel-photos h4 { margin:0 0 8px; font-size:14px; }
#day-detail-content .day-photo-actions, #calibration-detail-photos, #overview-refuel-gallery {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(155px,100%),1fr)); gap:10px;
}
.app-dialog .photo-preview {
  display:grid; gap:4px; width:100%; padding:0; border:0; background:none; text-align:left;
  font-size:13px; color:var(--texto-suave); cursor:zoom-in;
}
.app-dialog .photo-preview-frame {
  display:grid; place-items:center; width:100%; height:clamp(122px,22vh,230px); overflow:hidden;
  border-radius:var(--raio-sm); background:var(--fundo);
}
.app-dialog .photo-preview-frame img {
  display:block; width:100%; height:100%; min-height:0; margin:0; padding:6px; object-fit:contain;
}
.app-dialog .photo-preview-status { font-size:12px; }
body.overview-layout .reference-modal table { font-size:12px; }
body.overview-layout #overview-days-dialog { max-width:960px; }
body.overview-layout .overview-error { color:var(--vermelho); margin-bottom:14px; }
.history-export-options { display:grid; gap:10px; margin:16px 0; padding:0; border:0; }
.history-export-options legend { margin-bottom:10px; font-weight:600; }
.history-export-options label { display:flex; align-items:center; gap:8px; }
.history-export-drop { display:grid; gap:8px; padding:16px; border:1px dashed var(--borda); border-radius:var(--raio); overflow-wrap:anywhere; }
.history-export-drop[hidden] { display:none; }
.history-export-drop.is-arrastando { border-color:var(--vermelho); }
.history-export-drop input { width:100%; }
body.overview-layout .overview-link { padding:0; border:0; background:none; color:var(--azul); text-decoration:underline; font:inherit; }
@media(max-width:900px) {
 body.overview-layout #shell .main-wrap { max-width:100vw; padding:64px 16px 22px; }
 body.overview-layout.menu-recolhido #shell .main-wrap { padding:64px 16px 22px; }
}
/* 0.14: largura disponível, filtros responsivos e operações expansíveis. */
body.overview-layout #shell { width:100%; }
body.overview-layout .main-wrap { flex:1 1 0%; }
body.overview-layout #page-overview { width:100%; max-width:none; min-width:0; padding:0; }
body.overview-layout #page-overview .barra-acoes { gap: 5px; margin-bottom: 14px; }
body.overview-layout .overview-filter-primary,body.overview-layout .overview-filter-options {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; max-width: 100%;
}
body.overview-layout .overview-filter-primary { flex: 0 1 auto; }
body.overview-layout #page-overview .barra-acoes :is(input,select) {
  min-height: 36px; padding: 7px 8px; border: 1px solid var(--borda);
  border-radius: 8px; background: var(--branco); color: var(--texto); font-size: 13px;
}
body.overview-layout #page-overview #overview-search { flex: 0 0 9rem; min-width: 0; width: 9rem; }
body.overview-layout #page-overview .overview-filter-options select { width: auto; max-width: 100%; }
body.overview-layout #page-overview .filtro-periodo {
  display: flex; gap: 6px; min-width: 0; max-width: 100%;
}
body.overview-layout #page-overview .filtro-periodo input { width: 7.25rem; min-width: 0; }
body.overview-layout .origin-filter { display: flex; gap: 4px; }
body.overview-layout .origin-filter .filtro-botao { min-height: 36px; padding: 7px 6px; }
body.overview-layout .overview-search-mode { margin:0 0 8px; color:var(--texto-suave); font-size:12px; }
@media(min-width:1040px) {
 body.overview-layout :is(.overview-filter-primary,.overview-filter-options) { display:contents; }
}
body.overview-layout #page-overview .filtro-botao[aria-pressed="true"] { color:#fff; background:var(--vermelho); border-color:var(--vermelho); }
body.overview-layout .operation-list { display:grid; gap:12px; width:100%; min-width:0; }
body.overview-layout .operation-card { width:100%; min-width:0; border:1px solid var(--borda); border-radius:10px; background:var(--branco); overflow:clip; }
body.overview-layout .operation-card > summary { display:grid; grid-template-columns:18px minmax(0,1.25fr) minmax(0,1.15fr) minmax(110px,.45fr); align-items:center; gap:18px; padding:18px 20px; cursor:pointer; list-style:none; }
body.overview-layout .operation-card > summary::-webkit-details-marker { display:none; }
body.overview-layout .operation-card > summary::before { content:'›'; color:var(--texto-suave); font-size:25px; text-align:center; line-height:1; transition:transform .15s; }
body.overview-layout .operation-card[open] > summary::before { transform:rotate(90deg); }
body.overview-layout .operation-card > summary:hover { background:#fafbfc; }
body.overview-layout .operation-card > summary:focus-visible { outline:2px solid var(--vermelho); outline-offset:-3px; }
body.overview-layout .operation-title,body.overview-layout .operation-period,body.overview-layout .operation-volume { min-width:0; overflow-wrap:anywhere; }
body.overview-layout .operation-title-line { display:flex; flex-wrap:wrap; align-items:center; column-gap:12px; row-gap:2px; }
body.overview-layout .operation-title-line > strong { font-size:15px; font-weight:600; }
body.overview-layout .operation-title-line .botao { min-height:26px; padding:3px 8px; font-size:12px; }
body.overview-layout .operation-title > small { display:block; margin-top:6px; color:var(--texto-suave); font-size:12px; line-height:1.45; }
body.overview-layout .operation-period { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
body.overview-layout .operation-period small { display:block; margin-bottom:5px; color:var(--texto-suave); font-size:11px; }
body.overview-layout .operation-period strong { display:block; font-size:13px; font-weight:400; line-height:1.4; }
body.overview-layout .operation-volume { text-align:right; }
body.overview-layout .operation-volume > strong { display:block; font-size:17px; font-weight:600; }
body.overview-layout .operation-calibration-release { display:block; width:fit-content; margin:5px 0 0 auto; }
body.overview-layout .operation-volume > small { display:block; margin:4px 0 6px; color:var(--texto-suave); font-size:11px; }
body.overview-layout .operation-content { border-top:1px solid var(--borda); padding:0 20px 5px; min-width:0; }
body.overview-layout .operation-proof { margin-bottom:16px; font-size:12px; }
body.overview-layout .operation-refuels { display:grid; min-width:0; }
body.overview-layout .operation-refuel { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(90px,.45fr) 12px; align-items:center; gap:18px; width:100%; min-width:0; padding:13px 0; border:0; border-top:1px solid var(--borda); background:none; color:var(--texto); text-align:left; font:inherit; }
body.overview-layout .operation-refuel:first-child { border-top:0; }
body.overview-layout .operation-refuel:hover { background:#fafbfc; }
body.overview-layout .operation-refuel > span { min-width:0; overflow-wrap:anywhere; }
body.overview-layout .refuel-vehicle strong { display:block; font-size:14px; font-weight:600; }
body.overview-layout .refuel-vehicle small { display:block; margin-top:4px; color:var(--texto-suave); font-size:11px; }
body.overview-layout .refuel-driver { font-size:13px; line-height:1.4; }
body.overview-layout .refuel-volume { text-align:right; }
body.overview-layout .refuel-volume strong { display:block; font-size:14px; font-weight:500; }
body.overview-layout .refuel-volume small { display:block; margin-top:4px; color:var(--texto-suave); font-size:11px; }
body.overview-layout .refuel-arrow { color:var(--texto-suave); font-size:23px; }
body.overview-layout .operation-more { margin:6px 0 9px; }
@media(max-width:760px) {
 body.overview-layout .operation-card > summary { grid-template-columns:16px minmax(0,1fr); gap:12px; padding:16px; }
 body.overview-layout .operation-period { grid-column:2; }
 body.overview-layout .operation-volume { display:flex; gap:8px; align-items:center; flex-wrap:wrap; grid-column:2; text-align:left; }
 body.overview-layout .operation-volume > small,body.overview-layout .operation-calibration-release { margin:0; }
 body.overview-layout .operation-content { padding:0 16px 5px; }
  body.overview-layout .operation-refuel { grid-template-columns:minmax(0,1fr) auto 12px; gap:10px; }
 body.overview-layout .refuel-driver { grid-column:1; grid-row:2; }
 body.overview-layout .refuel-volume { grid-column:2; grid-row:1 / 3; }
 body.overview-layout .refuel-arrow { grid-column:3; grid-row:1 / 3; }
}
@media(max-width:520px) {
 body.overview-layout .overview-heading { gap: 10px; }
 body.overview-layout .painel-indicadores-titulo { flex-basis: 100%; }
 body.overview-layout #page-overview .painel-indicadores .cards-resumo { flex: 1 1 100%; }
 body.overview-layout #page-overview #overview-search { flex-basis: 100%; width: 100%; }
 body.overview-layout #page-overview .filtro-periodo { flex: 1 1 100%; }
 body.overview-layout #page-overview .filtro-periodo input { flex: 1 1 0; }
 body.overview-layout #page-overview .overview-filter-options {
   flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
 }
 body.overview-layout #page-overview .overview-filter-options select { width: 100%; min-width: 0; font-size: 13px; }
}
@media(prefers-reduced-motion:reduce) { body.overview-layout .operation-card > summary::before { transition:none; } }

body.overview-layout #day-detail-actions > [data-close-dialog] { margin-left:auto; }

#calibration-admin-pumps { list-style:none; padding:0; margin:0 0 20px; }
#calibration-admin-pumps li { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; padding:8px 0; border-bottom:1px solid var(--borda); }
#calibration-admin-pumps li > span:first-child { flex:1 1 180px; min-width:0; overflow-wrap:anywhere; }
.calibration-pump-actions { display:flex; flex-wrap:wrap; gap:6px; }
.calibration-pump-actions .btn { padding:7px 10px; font-size:13px; }
.calibration-pump-editor:not([hidden]) { flex:1 1 100%; display:flex; flex-wrap:wrap; align-items:flex-end; gap:8px; padding:8px 0 4px; }
.calibration-pump-editor label { flex:1 1 200px; display:grid; gap:4px; }
.calibration-pump-editor .overview-error { flex:1 1 100%; margin:0; }
.calibration-pump-editor .overview-error:empty { display:none; }


.calibration-history-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
#calibration-history-dialog .calibration-history-actions { margin-bottom:12px; }
#calibration-history-search { flex:1 1 230px; min-width:0; }
#calibration-history-result { width:auto; max-width:100%; }
#calibration-history-tests .text-button { white-space:nowrap; }
.calibration-result { display:inline-block; border-radius:999px; padding:4px 9px; font-size:12px; font-weight:600; white-space:nowrap; }
.calibration-result.within { color:var(--badge-verde); background:var(--badge-verde-bg); }
.calibration-result.outside { color:var(--badge-amarelo); background:var(--badge-amarelo-bg); }
#calibration-detail-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(175px,100%),1fr)); gap:12px; margin:14px 0 18px; }
#calibration-detail-fields > div { padding:9px 12px; border:1px solid var(--borda); border-radius:var(--raio-sm); overflow-wrap:anywhere; }
#calibration-detail-fields dt { color:var(--texto-suave); font-size:13px; }
#calibration-detail-fields dd { margin:3px 0 0; font-weight:600; }
#calibration-detail-photos { margin-top:8px; }

#overview-training { padding:16px; }
#overview-training h2 { margin:0 0 12px; font-size:16px; }
#overview-training-more { margin-top:12px; }
#page-overview.show-training :is(.overview-filter-primary,#overview-operation-state,#overview-sort,#overview-body,#overview-list-footer,#overview-list-end,.painel-graficos,.overview-heading-actions,.cards-resumo) { display:none; }
