/* ODEM Vendas — Varejo 01. Somente elementos filhos de .vr-page.
   Não alcança Gestão, Importação Gerencial, Configurações ou outras rotas. */
.vr-page{--vr-visual-accent:#c13c58;--vr-visual-accent-soft:color-mix(in srgb,#c13c58 13%,transparent)}
.vr-page .vr-executive-row{align-items:stretch}
.vr-page .vr-evolution{isolation:isolate;min-width:0}
.vr-page .vr-evolution > summary{gap:18px;min-width:0}
.vr-page .vr-evolution > summary > div{min-width:0}
.vr-page .vr-evolution > summary > strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.vr-page .vr-chart-topline{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:14px 8px 4px;font-size:11px;line-height:1.5;color:var(--text-3)}
.vr-page .vr-chart-topline strong{font-size:11px;color:var(--text-2);font-variant-numeric:tabular-nums}
/* Barras com escala original, sem ampliar valores pequenos artificialmente. */
body:has(.ios-shell):not(.odem-tv-mode) .vr-page .vr-evolution-body .ind-chart-bars-v2,
body.odem-tv-mode .vr-page .vr-evolution-body .ind-chart-bars-v2{
  position:relative;display:flex;align-items:end;gap:clamp(8px,1.1vw,16px)!important;
  height:222px!important;min-height:222px;max-height:222px;
  margin:0!important;padding:16px 10px 27px!important;
  overflow-x:auto;overflow-y:visible;scrollbar-width:thin;scrollbar-color:var(--border) transparent;
  border-radius:12px;border:1px solid var(--border);
  background:repeating-linear-gradient(to bottom,transparent 0,transparent calc(25% - 1px),color-mix(in srgb,var(--text) 10%,transparent) 25%);
}
body:has(.ios-shell):not(.odem-tv-mode) .vr-page .vr-evolution-body .ind-chart-bars-v2 .ind-day,
body.odem-tv-mode .vr-page .vr-evolution-body .ind-chart-bars-v2 .ind-day{
  position:relative;display:flex!important;flex-direction:column;justify-content:flex-end;
  align-items:center;flex:1 0 36px;min-width:36px!important;max-width:74px;height:100%;
  cursor:default;outline-offset:3px;gap:0!important;
}
.vr-page .vr-chart-day > i{display:block!important;width:min(100%,46px)!important;min-height:0!important;
  flex:none;border-radius:7px 7px 2px 2px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--vr-visual-accent) 83%,white),var(--vr-visual-accent))!important;
  transition:filter .12s ease}
.vr-page .vr-chart-day > i[style*="height:0%"]{display:none!important}
.vr-page .vr-chart-day:hover > i,.vr-page .vr-chart-day:focus-visible > i{filter:brightness(1.16)}
.vr-page .vr-chart-day > span:not(.vr-chart-tooltip){position:absolute;top:calc(100% + 7px);left:50%;
  transform:translateX(-50%)!important;margin:0!important;max-width:66px!important;
  white-space:nowrap;text-align:center;color:var(--text-2);font-size:10px!important;font-weight:650}
.vr-page .vr-chart-day > .vr-chart-tooltip{
  position:absolute;top:8px;bottom:auto;left:50%;z-index:15;min-width:140px;
  transform:translateX(-50%) translateY(3px);box-shadow:0 12px 26px rgba(0,0,0,.2);
  pointer-events:none;opacity:0;visibility:hidden;
}
.vr-page .vr-chart-day:hover > .vr-chart-tooltip,
.vr-page .vr-chart-day:focus-visible > .vr-chart-tooltip{
  visibility:visible;opacity:1;transform:translateX(-50%) translateY(0);
}
.vr-page .vr-chart-day:focus-visible{outline:2px solid var(--vr-visual-accent);border-radius:5px}
/* Avatar sempre reserva dimensão antes da chegada da foto, evitando reflow. */
.vr-page .vr-rep-row .vr-avatar{position:relative;display:grid;place-items:center;isolation:isolate;
  flex:none;overflow:hidden;aspect-ratio:1;width:34px;height:34px;padding:0;border-radius:50%;}
.vr-page .vr-avatar-initials{display:grid;place-items:center;width:100%;height:100%;font-size:10px;line-height:1}
.vr-page .vr-avatar-foto{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;
  border-radius:inherit;opacity:0;transition:opacity .16s ease}
.vr-page .vr-avatar-foto.is-ready{opacity:1}
.vr-page .vr-rep-row .vr-rep-content{min-width:0}
.vr-page .vr-rep-line{gap:12px}
.vr-page .vr-rep-line strong{min-width:0;overflow-wrap:anywhere}
.vr-page .vr-rep-line b{font-variant-numeric:tabular-nums;white-space:nowrap}
.vr-page .vr-rep-meta{line-height:1.4}
@media(max-width:640px){
  body:has(.ios-shell):not(.odem-tv-mode) .vr-page .vr-evolution-body .ind-chart-bars-v2{height:205px!important;min-height:205px;padding-inline:8px!important}
  .vr-page .vr-evolution>summary{align-items:flex-start}
  .vr-page .vr-chart-topline{flex-wrap:wrap;gap:3px 12px}
  .vr-page .vr-rep-row .vr-avatar{width:30px;height:30px}
  .vr-page .vr-rep-line b{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.vr-page .vr-avatar-foto,.vr-page .vr-chart-day>i{transition:none!important}}

/* VF04 — prévia fiscal recolhida e independente dos filtros comerciais. */
.vr-page .vr-fiscal-preview{min-width:0;margin-top:16px;}
.vr-page .vr-fiscal-preview>summary{min-height:44px;padding:14px 16px;cursor:pointer;overflow-wrap:anywhere;}
.vr-page .vr-fiscal-preview>summary>span{display:block;margin-top:4px;font-size:12px;color:var(--text-2);}
.vr-page .vr-fiscal-preview>summary:focus-visible{outline:2px solid var(--vr-visual-accent);outline-offset:3px;}
.vr-page .vr-fiscal-preview-body{min-width:0;padding:0 16px 16px;overflow-wrap:anywhere;}
.vr-page .vr-fiscal-preview-head{display:flex;align-items:flex-start;flex-wrap:wrap;min-width:0;gap:12px;}
.vr-page .vr-fiscal-preview-head>div{min-width:0;flex:1 1 240px;}
.vr-page .vr-fiscal-preview-body .vr-kpis{grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr))!important;}
.vr-page .vr-fiscal-preview .vr-kpi-copy>strong{white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere;}
@media(max-width:760px),(pointer:coarse){
  .vr-page :is(button,.btn,select){min-width:44px!important;min-height:44px!important;}
  .vr-page :is(input.input,select.select){min-height:44px!important;font-size:16px!important;max-width:100%;box-sizing:border-box;}
}
@media(max-width:760px){
  .vr-page .vr-fiscal-preview-head>button{flex:1 1 100%;white-space:normal;}
  .vr-page .vr-fiscal-preview-body :is(.vr-kpi,.vr-flow-card){min-width:0;}
}

/* VF05 - estado e operacao fiscal, somente Varejo. */
.vr-page .vr-nf-status{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:12px 0;padding:14px 16px;border:1px solid var(--border);border-radius:16px;min-width:0;background:var(--surface,var(--card));}
.vr-page .vr-nf-status>div:first-child{flex:1 1 280px;min-width:0;overflow-wrap:anywhere;}
.vr-page .vr-nf-status p{margin:6px 0}.vr-page .vr-nf-acoes{display:flex;flex-wrap:wrap;gap:8px;}
.vr-page .vr-nf-status small{display:block;margin-top:5px;line-height:1.4;}
.vr-page .vr-nf-acoes button{min-height:44px;white-space:normal;}
.vr-page #vr-nf-prova table{min-width:650px;}
@media(max-width:760px){.vr-page .vr-nf-acoes{width:100%;}.vr-page .vr-nf-acoes button{flex:1 1 140px;}}

.vr-page .vr-nf-notas{max-width:100%;overflow-x:auto;}

/* VF07 — somente a tela Varejo; sem vazamento para outros módulos. */
.vr-page{--vr-visual-accent:#1dad7c;--vr-visual-accent-soft:rgba(29,173,124,.11)}
.vr-page .vr-head{margin-bottom:12px}
.vr-page .vr-head h1{letter-spacing:-.035em}
.vr-page .vr-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-block:16px 18px}
.vr-page .vr-kpis>article{min-width:0}
.vr-page .vr-executive-row{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);gap:16px}
.vr-page :is(.vr-evolution,.ind-reps-panel){min-width:0;border-radius:18px}
.vr-page .vr-rep-row{gap:11px;align-items:center}
.vr-page .vr-rep-row .vr-avatar{width:42px;height:42px;border:1px solid var(--border)}
.vr-page .vr-flow-full{margin-top:18px}
.vr-page .vr-flow-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.vr-page .vr-flow-list>.vr-flow-card{min-width:0}
.vr-page .vr-fiscal-preview{margin-top:16px;opacity:.94}
.vr-page :is(.vr-rep-row,.vr-flow-card){transition:background-color .15s ease}
@media(max-width:1120px){
 .vr-page .vr-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .vr-page .vr-executive-row{grid-template-columns:1fr}
 .vr-page .vr-flow-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
 .vr-page .vr-kpis{gap:9px}
 .vr-page .vr-kpis>article{padding:12px;overflow-wrap:anywhere}
 .vr-page .vr-rep-line{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
 .vr-page .vr-rep-row .vr-avatar{width:36px;height:36px}
 .vr-page .vr-executive-row{gap:12px}
 .vr-page .vr-flow-list{gap:8px}
 .vr-page .vr-flow-list>.vr-flow-card{padding:12px}
}
@media(max-width:380px){.vr-page .vr-kpis{grid-template-columns:1fr}}


/* VF07.2 — apresentação provisória, escopo exclusivamente Varejo. */
.vr-page .vr-local-banner{margin:14px 0 4px;padding:14px 17px;border:1px solid var(--border);border-left:3px solid var(--vr-visual-accent);border-radius:13px;background:var(--surface,var(--card));}
.vr-page .vr-local-banner strong{font-size:14px;color:var(--text);}
.vr-page .vr-local-banner p{margin:5px 0 0;font-size:12px;line-height:1.55;color:var(--text-2);}
.vr-page .vr-local-banner p b{color:var(--text);font-weight:650;}
.vr-page .vr-local-banner small{display:block;margin-top:6px;font-size:11px;color:var(--text-2);}
.vr-page .vr-head-right{min-width:0;flex-wrap:wrap;}
.vr-page .vr-evolution-body{min-width:0;}
.vr-page .vr-chart-day>span:not(.vr-chart-tooltip){max-width:70px!important;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
@media(max-width:640px){.vr-page .vr-local-banner{padding:12px 13px}.vr-page .vr-local-banner p{font-size:12px}.vr-page .vr-head-right{width:100%;justify-content:space-between;gap:8px}}
