/* Painel da distribuidora: período, abas internas, linhas clicáveis e detalhe */
.per{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;justify-content:flex-end}
.per label{display:flex;flex-direction:column;gap:3px;margin:0;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.per select,.per input{width:auto;padding:6px 9px}
.per .g-status{flex-basis:100%;text-align:right;font-size:12px}
.subtabs{display:flex;flex-wrap:wrap;gap:6px}
.subtabs .tab{padding:7px 14px;font-size:14px}
.gt tr[data-det]{cursor:pointer}
.gt tr[data-det]:hover td{background:var(--panel-2)}
.gt td .sub{display:block;color:var(--muted);font-size:12px;font-weight:500}
.rk{display:inline-grid;place-items:center;min-width:26px;height:26px;border-radius:8px;background:var(--panel-2);font-weight:800;font-size:12.5px;color:var(--muted)}
.rk.top{background:var(--fg);color:#fff}
.chipc{display:inline-block;font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:999px;white-space:nowrap}
.chipc.ok{background:#e7f6ec;color:#14532d} .chipc.warn{background:#fff4e0;color:#7a4300} .chipc.bad{background:#fdecec;color:#8a1010} .chipc.info{background:var(--accent-soft);color:var(--gold)}
.det-kpis{margin-bottom:14px}
#det-dialog{width:min(900px,calc(100vw - 32px))}
.tools-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.tools-row input[type=search]{max-width:280px}
.tools-row select{width:auto}
.sync-note{font-size:12.5px}
@media (max-width:640px){ .per{justify-content:flex-start} .per .g-status{text-align:left} }
.hb b .hb-sub{display:block;font-size:11.5px;font-weight:600;color:var(--muted)}
.hb{grid-template-columns:minmax(120px,1.4fr) minmax(0,1fr) 110px}
.hb>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:640px){ .hb{grid-template-columns:minmax(90px,1.2fr) minmax(0,1fr) 90px} }
.grupo-sel .tab{font-size:15px;padding:9px 16px}
.grupo-sel .tab small{font-weight:600}
.grupo-sel .tab[aria-selected="true"] small{color:rgba(255,255,255,.75)}
