/* Camada executiva — Conferências. Identidade: cor da marca (var(--brand)) + seus tons, âmbar só para cortes. Funciona nos 4 temas. */
.conference-overview section[aria-labelledby="summary-title"],.conference-overview #people,.conference-overview .type-chart-panel{display:none}
.conference-overview .operation-grid{grid-template-columns:1fr!important}
.conference-overview .operation-hero{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:18px 20px;width:100%;box-shadow:none}
.conference-overview .priority-track i{background:var(--brand)}
.xv,.xtv,.xtf,.xtf-people{--tint:var(--track);--tint:color-mix(in srgb,var(--brand) 14%,var(--panel));--mid:var(--brand);--mid:color-mix(in srgb,var(--brand) 58%,var(--panel));--soft:var(--brand);--soft:color-mix(in srgb,var(--brand) 30%,var(--panel));--cut:var(--soon)}
.s-ok,.o1{background:var(--brand)}.s-ct{background:var(--cut)}.s-rm{background:var(--tint);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--brand) 22%,transparent)}.o2{background:var(--mid)}.o3{background:var(--soft)}
.xv{display:grid;gap:16px;margin:4px 0 18px}
.xv-hero{background:var(--panel);border:1px solid var(--line);border-top:5px solid var(--brand);border-radius:18px;padding:22px 26px;box-shadow:var(--shadow)}
.xv-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.xv-eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:bold;color:var(--brand)}
.xv h2{margin:3px 0 0;font-size:22px;letter-spacing:-.4px}
.xv-status{padding:6px 14px;border-radius:20px;font-size:12px;font-weight:bold;background:var(--tint);color:var(--text);border:1px solid color-mix(in srgb,var(--brand) 30%,transparent)}
.xv-status.ok{background:var(--brand);color:var(--panel);border-color:var(--brand)}
.xv-body{display:grid;grid-template-columns:200px minmax(0,1fr);gap:30px;align-items:center;margin:20px 0}
.xv-gauge{position:relative;width:100%;max-width:200px;aspect-ratio:1;margin:auto}
.xv-gauge svg{width:100%;height:100%;display:block}
.xv-gauge circle{fill:none;stroke-width:11}.xv-gauge .tr{stroke:var(--tint)}.xv-gauge .ok{stroke:var(--brand)}.xv-gauge .ct{stroke:var(--cut)}
.xv-gauge>div{position:absolute;inset:0;display:grid;place-content:center;text-align:center}
.xv-gauge strong{font-size:clamp(26px,3vw,36px);letter-spacing:-1px;line-height:1}.xv-gauge span{font-size:11px;color:var(--muted);margin-top:5px}
.xv-total{display:grid;gap:2px}.xv-total span{font-size:12px;color:var(--muted)}.xv-total strong{font-size:clamp(40px,5vw,62px);letter-spacing:-2px;line-height:1.05}.xv-total small{font-size:12px;color:var(--muted)}
.xv-seg{display:flex;height:18px;border-radius:10px;overflow:hidden;background:var(--tint);margin:14px 0 12px}.xv-seg i{display:block;height:100%}
.xv-legend{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.xv-legend li{display:grid;grid-template-columns:12px 1fr;gap:1px 8px;align-items:center}.xv-legend li i{width:12px;height:12px;border-radius:4px;grid-row:span 2}
.xv-legend span{font-size:11px;color:var(--muted)}.xv-legend b{font-size:17px;grid-column:2}.xv-legend small{font-size:11px;color:var(--muted);grid-column:2}
.xv-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.xv-tile{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:13px 16px;display:grid;gap:3px;min-width:0}
.xv-tile span{font-size:11px;color:var(--muted)}.xv-tile strong{font-size:clamp(22px,2.4vw,30px);letter-spacing:-.8px;line-height:1.1;overflow-wrap:anywhere}.xv-tile small{font-size:11px;color:var(--muted)}
.xv-tile.main{background:var(--tint);border-color:color-mix(in srgb,var(--brand) 35%,var(--line));border-left:5px solid var(--brand)}
.xv-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:16px}
.xv-card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:18px 20px;min-width:0;scroll-margin-top:16px}
.xv-card header{display:block;min-height:0;padding:0;border:0;background:transparent;margin-bottom:14px}.xv-card h3{margin:0;font-size:15px}.xv-card header small,.xv-foot{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.xv-none{font-size:12px;color:var(--muted);margin:6px 0}
.xv-type{margin:0 0 16px}.xv-type .h{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.xv-type .h button{border:0;background:transparent;padding:0;font:inherit;font-weight:bold;font-size:14px;cursor:pointer;color:var(--text)}.xv-type .h button[aria-pressed=true]{color:var(--brand);text-decoration:underline}
.xv-type .h span{font-size:11px;color:var(--muted)}.xv-type .h b{margin-left:auto;font-size:15px}
.xv-type .bar{display:flex;height:16px;margin:8px 0 6px;border-radius:9px;overflow:hidden;background:var(--tint)}
.xv-type .bar button{border:0;padding:0;height:100%;min-width:2px;cursor:pointer;border-radius:0}.xv-type .bar button:hover{filter:brightness(1.1)}
.xv-type small{font-size:11px;color:var(--muted)}
.xv-stat3{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.xv-stat3 li{display:grid;gap:2px;padding-left:12px;position:relative}.xv-stat3 i{position:absolute;left:0;top:3px;bottom:3px;width:4px;border-radius:3px}
.xv-stat3 b{font-size:26px;letter-spacing:-.8px;line-height:1.1}.xv-stat3 span{font-size:11px;color:var(--muted)}
.xv-note{font-size:12px;color:var(--muted);margin:14px 0 0;padding-top:12px;border-top:1px solid var(--line)}.xv-note b{color:var(--text)}
.xv-key{display:flex;gap:16px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin:-4px 0 12px}.xv-key i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px}
.xv-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.xv-people.one{grid-template-columns:1fr}
.xv-person{display:grid;grid-template-columns:38px minmax(0,1fr) auto;grid-template-areas:"av n b" "av t t";gap:5px 12px;align-items:center;padding:11px 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);text-align:left;cursor:pointer;font:inherit;color:var(--text)}
.xv-person:hover{border-color:color-mix(in srgb,var(--brand) 45%,var(--line))}.xv-person.on{background:var(--tint);border-color:var(--brand)}
.xv-person .av{grid-area:av;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--tint);color:var(--brand);font-size:12px;font-weight:800;align-self:center}
.xv-person .n{grid-area:n;min-width:0;display:grid}.xv-person .n strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.xv-person .n small{font-size:10px;color:var(--muted)}
.xv-person .t{grid-area:t;display:flex;height:9px;border-radius:5px;overflow:hidden;background:var(--tint)}.xv-person .t i{display:block;height:100%}
.xv-person b{grid-area:b;text-align:right;font-size:16px;display:grid}.xv-person b small{font-size:10px;font-weight:normal;color:var(--muted)}
@media(max-width:1000px){.xv-grid{grid-template-columns:1fr}.xv-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.xv-people{grid-template-columns:1fr}.xv-body{grid-template-columns:1fr;gap:14px}.xv-hero{padding:18px 16px}.xv-legend{grid-template-columns:1fr 1fr 1fr;gap:6px}.xv-legend b{font-size:14px}.xv-stat3 b{font-size:21px}}

/* ===== TV ===== */
.xtv{height:100%;display:grid;gap:1.3vh 1.1vw;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,1.25fr);grid-template-rows:auto minmax(0,1fr) minmax(0,1.05fr);grid-template-areas:"left tiles tiles" "left types types" "prio prio people";overflow:hidden}
.xtv-left{grid-area:left;background:var(--panel);border:1px solid var(--line);border-top:5px solid var(--brand);border-radius:1.6vh;padding:1.6vh 1vw;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:1vh;justify-items:center;align-items:center;min-height:0}
.xtv-left .xv-gauge{max-width:none;width:auto;height:100%;max-height:100%}.xtv-left .xv-gauge strong{font-size:clamp(28px,5.2vh,64px)}.xtv-left .xv-gauge span{font-size:clamp(12px,1.9vh,22px)}
.xtv-total{text-align:center;display:grid;gap:.3vh}.xtv-total span{font-size:clamp(11px,1.9vh,22px);color:var(--muted)}.xtv-total strong{font-size:clamp(26px,5.2vh,64px);letter-spacing:-1px;line-height:1}
.xtv-tiles{grid-area:tiles;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1vw}
.xtv .xv-tile{padding:1.2vh .9vw;border-radius:1.4vh}.xtv .xv-tile span{font-size:clamp(11px,1.8vh,20px)}.xtv .xv-tile strong{font-size:clamp(22px,5vh,60px)}.xtv .xv-tile small{font-size:clamp(10px,1.6vh,18px)}
.xtv-types{grid-area:types;background:var(--panel);border:1px solid var(--line);border-radius:1.6vh;padding:1.4vh 1.1vw;display:grid;align-content:space-evenly;min-height:0;overflow:hidden}
.xtv .xv-type{margin:0}.xtv .xv-type .h button{font-size:clamp(14px,2.6vh,30px)}.xtv .xv-type .h span{font-size:clamp(11px,1.8vh,20px)}.xtv .xv-type .h b{font-size:clamp(14px,2.5vh,28px)}
.xtv .xv-type .bar{height:clamp(14px,3vh,34px);border-radius:2vh;margin:.8vh 0}.xtv .xv-type .bar button{pointer-events:none}.xtv .xv-type small{font-size:clamp(11px,1.8vh,20px)}
.xtv-box{background:var(--panel);border:1px solid var(--line);border-radius:1.6vh;padding:1.2vh 1.1vw;min-height:0;overflow:hidden;display:grid;align-content:stretch;grid-template-rows:auto minmax(0,1fr);gap:.7vh}
.xtv-box:nth-of-type(1){grid-area:prio}.xtv-box:nth-of-type(2){grid-area:people}
.xtv-box h3{margin:0;font-size:clamp(13px,2.2vh,26px)}
.xtv-box .xv-rank{display:grid;align-content:space-evenly;height:100%}
.xtv-prio{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,.9fr) minmax(0,3fr) minmax(0,.8fr);gap:.8vw;align-items:center;font-size:clamp(12px,2vh,24px)}
.xtv-prio small{color:var(--muted);font-size:inherit}.xtv-prio b,.xtv-prio small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.xtv-prio strong{text-align:right}
.xtv-prio span{height:1.7vh;min-height:8px;background:var(--tint);border-radius:1vh;overflow:hidden}.xtv-prio span i{display:block;height:100%;background:var(--brand)}
.xtv .xv-people{align-content:space-evenly;height:100%;gap:.4vh}
.xtv .xv-person{pointer-events:none;padding:.5vh .5vw;border:0;border-radius:0;grid-template-columns:3.6vh minmax(0,1.1fr) minmax(0,1.3fr) auto;grid-template-areas:"av n t b";gap:.8vw;font-size:clamp(12px,2vh,24px)}
.xtv .xv-person .av{width:3.6vh;height:3.6vh;font-size:1.4vh}.xtv .xv-person .n strong{font-size:inherit}.xtv .xv-person b{font-size:inherit;display:block}.xtv .xv-person b small{display:none}.xtv .xv-person .t{height:1.4vh;min-height:7px}
@media(max-width:700px){.xtv{grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto auto;grid-template-areas:"left tiles" "types types" "prio prio" "people people";overflow:auto}}

/* ===== TV: Carteira, Faturamento, Volumes por conferente, Ordens de carga ===== */
.xtf{height:100%;display:grid;gap:1.8vh 1.1vw;grid-template-rows:auto minmax(0,1fr);overflow:hidden}.xtf.two{grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr)}
.xtf-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.1vw}
.xtf .xv-tile{padding:2.2vh 1.2vw;border-radius:1.8vh;gap:.8vh}.xtf .xv-tile span{font-size:clamp(13px,2.4vh,28px);font-weight:700;color:var(--text)}
.xtf .xv-tile strong{font-size:clamp(24px,6vh,72px);letter-spacing:-1.5px;white-space:nowrap}.xtf .xv-tile small{font-size:clamp(12px,2.3vh,28px)}
.xtf-panel{background:var(--panel);border:1px solid var(--line);border-top:5px solid var(--brand);border-radius:1.8vh;padding:2vh 1.3vw;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:1.6vh;min-width:0;min-height:0}
.xtf:not(.two)>.xtf-panel{grid-template-rows:auto minmax(0,1fr)}
.xtf-panel h3{margin:0;font-size:clamp(14px,2.6vh,32px)}
.xtf-table{display:grid;gap:.9vh;grid-template-rows:auto;grid-auto-rows:minmax(0,9vh);align-content:start;min-height:0}.xtf-table .head{grid-auto-rows:auto}
.xtf-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1.2fr) minmax(0,.95fr) minmax(0,1.4fr);gap:1vw;align-items:center;padding:0 1vw;border-radius:1.2vh;background:var(--tint);font-size:clamp(13px,2.5vh,30px)}
.xtf-row>*{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.xtf-row b,.xtf-row>span:nth-child(3){text-align:right}
.xtf-row.head{background:transparent;color:var(--muted);font-size:clamp(10px,1.8vh,21px);font-weight:700;text-transform:uppercase;letter-spacing:.5px;padding:0 1vw .6vh;border-bottom:1px solid var(--line);border-radius:0;align-self:end}
.xtf-row.head>:nth-child(2),.xtf-row.head>:nth-child(3){text-align:right}
.xtf-row .sh{display:flex;align-items:center;gap:.7vw;overflow:visible}.xtf-row .sh .bar{flex:1;height:1.8vh;min-height:8px;background:var(--panel);border-radius:2vh;overflow:hidden}.xtf-row .sh .bar i{display:block;height:100%;background:var(--brand);border-radius:2vh}.xtf-row .sh em{font-style:normal;font-weight:700;font-size:clamp(11px,2vh,24px);min-width:5.2ch;text-align:right}
.xtf-people{height:100%;overflow:hidden;display:grid;gap:1.2vh;align-content:start}
.xtf-people .xv-key{margin:0;font-size:clamp(11px,1.8vh,20px)}
.xv-people.tvp{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2vh .9vw}
.tvp .xv-person{cursor:default;padding:1.3vh .9vw;border-radius:1.4vh;gap:.6vh .8vw;grid-template-columns:5vh minmax(0,1fr) auto}.tvp .xv-person .av{width:5vh;height:5vh;font-size:1.8vh}
.tvp .xv-person .n strong{font-size:clamp(12px,2.2vh,26px)}.tvp .xv-person .n small{font-size:clamp(10px,1.6vh,18px)}.tvp .xv-person b{font-size:clamp(14px,2.6vh,32px)}.tvp .xv-person b small{font-size:clamp(10px,1.6vh,18px)}.tvp .xv-person .t{height:1.2vh;min-height:7px}
/* tabela de ordens de carga na identidade */
.mika-tv-screen .tv-table{border-top:5px solid var(--brand);border-radius:1.6vh}.mika-tv-screen .tv-columns{color:var(--muted);text-transform:uppercase;font-size:clamp(10px,1.7vh,20px);letter-spacing:.5px}
.mika-tv-screen .tv-line{font-size:clamp(12px,2vh,24px);padding:.8vh .4vw}
@media(max-width:700px){.xtf.two,.xtf-cards{grid-template-columns:1fr}.xv-people.tvp{grid-template-columns:1fr}}

.xtf.two .xtf-row{grid-template-columns:minmax(0,.95fr) minmax(0,1.55fr) minmax(0,1.15fr) minmax(0,1.1fr);gap:.6vw;padding:0 .7vw;font-size:clamp(11px,2.1vh,26px)}.xtf.two .xtf-row.head{padding:0 .7vw .6vh;font-size:clamp(9px,1.6vh,18px)}.xtf.two .xtf-row .sh em{min-width:4.6ch}

/* ===== Interação (desktop/mobile) ===== */
.conference-overview #chart-filters{display:none}
.xv-bar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:2px}
.xv-bar label{position:relative;flex:0 1 340px;min-width:220px}
.xv-bar label svg{position:absolute;left:13px;top:50%;width:17px;height:17px;transform:translateY(-50%);fill:none;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round}
.xv-bar input{width:100%;min-width:0;box-sizing:border-box;padding:11px 14px 11px 38px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);font:inherit;font-size:13px}
.xv-bar input:focus{outline:2px solid var(--brand);outline-offset:1px}
.xv-chips{display:flex;gap:8px;flex-wrap:wrap;align-items:center;flex:1;min-width:0}.xv-chips small{font-size:12px;color:var(--muted)}
.chip{border:1px solid color-mix(in srgb,var(--brand) 35%,var(--line));background:var(--tint);color:var(--text);border-radius:20px;padding:6px 12px;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.chip span{color:var(--brand);margin-left:3px}.chip:hover{border-color:var(--brand)}.chip.clear{background:transparent;border-color:transparent;color:var(--brand);text-decoration:underline}
.xv-dyn{display:grid;gap:16px}
button.xv-tile.click{text-align:left;font:inherit;color:inherit;cursor:pointer;transition:transform .12s,border-color .12s,box-shadow .12s}
button.xv-tile.click:hover{transform:translateY(-2px);border-color:var(--brand);box-shadow:var(--shadow)}
button.xv-tile.click[aria-pressed=true]{outline:2px solid var(--brand);outline-offset:1px}
.xv-legend .lg{display:grid;grid-template-columns:12px 1fr;gap:1px 8px;align-items:center;width:100%;text-align:left;border:1px solid transparent;border-radius:10px;background:transparent;padding:6px 8px;margin:-6px -8px;font:inherit;color:inherit;cursor:pointer}
.xv-legend .lg i{width:12px;height:12px;border-radius:4px;grid-row:span 2}.xv-legend .lg:hover{background:var(--tint)}.xv-legend .lg[aria-pressed=true]{background:var(--tint);border-color:var(--brand)}
.xv-legend li{display:block}
.xv-stat3 li{padding-left:0}.xv-stat3 button{position:relative;display:grid;gap:2px;width:100%;text-align:left;padding:8px 10px 8px 16px;border:1px solid transparent;border-radius:10px;background:transparent;font:inherit;color:inherit;cursor:pointer}
.xv-stat3 button:hover{background:var(--tint)}.xv-stat3 button[aria-pressed=true]{background:var(--tint);border-color:var(--brand)}.xv-stat3 button i{position:absolute;left:5px;top:9px;bottom:9px;width:4px;border-radius:3px}
.xv-octools{display:flex;gap:12px;flex-wrap:wrap;justify-content:space-between;align-items:center;margin:0 0 12px}
.xv-octools .seg{display:flex;gap:6px;flex-wrap:wrap}.xv-octools button{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:20px;padding:7px 14px;font:inherit;font-size:12px;font-weight:600;cursor:pointer}
.xv-octools button:hover{border-color:var(--brand)}.xv-octools button[aria-pressed=true]{background:var(--brand);color:var(--panel);border-color:var(--brand)}
.xv-octools .ex{display:flex;gap:6px}.xv-octools .ex button{border-radius:10px;font-weight:500;color:var(--muted)}
details[hidden]{display:none!important}

/* ===== Detalhamento por OC na identidade (substitui verde/azul/laranja) ===== */
.conference-overview .panel,.conference-overview details.oc-collapse{border-radius:16px;border-color:var(--line);background:var(--panel)}
.conference-overview details.plate-details{background:var(--panel);border:1px solid var(--line);border-radius:14px}.conference-overview details.plate-details>summary{background:var(--tint)}
.conference-overview details.oc-details{border-color:var(--line);border-radius:12px;background:var(--panel)}.conference-overview details.oc-details>summary:hover{background:var(--tint)}
.conference-overview .plate-name em,.conference-overview .oc-vehicle em{color:var(--muted);font-style:normal}
.conference-overview summary:before{color:var(--brand)}
.conference-overview .bar{background:var(--tint)}.conference-overview .bar>i{background:var(--brand)}
.conference-overview .oc-progress strong,.conference-overview .conference-card-title>span{color:var(--brand)}
.conference-overview .badge{background:var(--tint);color:var(--text);border:1px solid color-mix(in srgb,var(--brand) 25%,transparent);font-weight:600}
.conference-overview .badge.F{background:var(--brand);color:var(--panel);border-color:var(--brand)}.conference-overview .badge.A{background:var(--track);color:var(--muted);border-color:var(--line)}
.conference-overview .type-tag{background:var(--tint);color:var(--brand);border:1px solid color-mix(in srgb,var(--brand) 25%,transparent)}
.conference-overview .type-tag.type-M{background:color-mix(in srgb,var(--brand) 24%,var(--panel));color:var(--text)}.conference-overview .type-tag.type-C{background:var(--track);color:var(--text)}
.conference-overview .conference-card,.conference-overview .waiting-card,.conference-overview .empty-conference{background:var(--panel);border:1px solid var(--line);border-radius:14px}
.conference-overview .conference-card .stacked-track{background:var(--tint);border-radius:8px;height:12px}
.conference-overview .conference-card .stacked-track>span:nth-child(1){background:var(--brand)!important}.conference-overview .conference-card .stacked-track>span:nth-child(2){background:var(--soon)!important}.conference-overview .conference-card .stacked-track>span:nth-child(3){background:var(--tint)!important}
.conference-overview .conference-numbers strong{color:var(--text)}
.conference-overview .daily-timeline article{border-left-color:var(--brand)}
.conference-overview .conference-options-panel{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin:8px 0}
.conference-overview .conference-options-panel input,.conference-overview .conference-options-panel select{border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--text)}
.conference-overview .conference-options-panel button.primary{background:var(--brand);border-color:var(--brand);color:var(--panel);border-radius:10px}
@media(max-width:760px){.xv-bar label{flex:1 1 100%}.xv-octools .ex{display:none}}
.conference-overview .conference-weight span{border-left-color:var(--brand)}

/* ===== Cartão dividido: Volumes | Peso ===== */
.xv-meta{display:flex;gap:10px;align-items:stretch;flex-wrap:wrap}
.xv-stat{display:grid;gap:1px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:8px 14px;font:inherit;color:inherit;cursor:pointer;transition:border-color .12s,transform .12s}
.xv-stat:hover{border-color:var(--brand);transform:translateY(-1px)}.xv-stat[aria-pressed=true]{outline:2px solid var(--brand);outline-offset:1px}
.xv-stat span{font-size:10px;color:var(--muted)}.xv-stat b{font-size:18px;letter-spacing:-.5px;line-height:1.15}.xv-stat small{font-size:10px;color:var(--muted)}
.xv-meta .xv-status{align-self:center}
.xv-split{display:grid;grid-template-columns:1fr 1fr;margin:22px 0 2px}
.xv-half{min-width:0;padding:0 28px}.xv-half:first-child{padding-left:0}.xv-half:last-child{padding-right:0;border-left:1px solid var(--line)}
.xv-half-h{display:flex;align-items:baseline;gap:10px;margin-bottom:14px}.xv-half-h span{font-size:12px;letter-spacing:1.6px;text-transform:uppercase;font-weight:800;color:var(--brand)}.xv-half-h small{font-size:11px;color:var(--muted)}
.xv-half-b{display:grid;grid-template-columns:128px minmax(0,1fr);gap:22px;align-items:center}
.xv-half .xv-gauge{max-width:128px}.xv-half .xv-gauge strong{font-size:clamp(20px,2vw,26px)}
.xv-half .xv-total strong{font-size:clamp(32px,3.6vw,50px)}
.xv-half .xv-seg{margin:12px 0 10px}
.xv-half .xv-legend{gap:6px}.xv-half .xv-legend b{font-size:15px}
.xv-legend li.em .lg{background:var(--tint)}.xv-legend li.em b{font-size:17px}
@media(max-width:1100px){.xv-half{padding:0 18px}.xv-half-b{grid-template-columns:96px minmax(0,1fr);gap:14px}.xv-half .xv-gauge{max-width:96px}.xv-half .xv-legend b{font-size:13px}}
@media(max-width:820px){.xv-split{grid-template-columns:1fr;gap:20px}.xv-half,.xv-half:first-child,.xv-half:last-child{padding:0}.xv-half:last-child{border-left:0;border-top:1px solid var(--line);padding-top:18px}.xv-half-b{grid-template-columns:1fr;gap:12px}.xv-half .xv-gauge{max-width:110px;margin:0}.xv-half .xv-legend li .lg{padding:6px 6px;margin:-6px -6px}.xv-meta{width:100%}.xv-stat{flex:1 1 140px}}

/* ===== TV: Volumes | Peso ===== */
.xtv2{--tint:var(--track);--tint:color-mix(in srgb,var(--brand) 14%,var(--panel));--mid:color-mix(in srgb,var(--brand) 58%,var(--panel));--soft:color-mix(in srgb,var(--brand) 30%,var(--panel));--cut:var(--soon);height:100%;display:grid;grid-template-rows:minmax(0,1.3fr) auto minmax(0,1fr);gap:1.4vh;overflow:hidden}
.xtv2-hero{display:grid;grid-template-columns:1fr 1fr;background:var(--panel);border:1px solid var(--line);border-top:5px solid var(--brand);border-radius:1.8vh;padding:1.6vh 1.2vw;min-height:0}
.xtv2 .xv-half,.xtv2 .xv-half:first-child,.xtv2 .xv-half:last-child{padding:0 1.4vw;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr)}.xtv2 .xv-half:first-child{padding-left:0}.xtv2 .xv-half:last-child{padding-right:0}
.xtv2 .xv-half-h{margin-bottom:1vh}.xtv2 .xv-half-h span{font-size:clamp(13px,2.4vh,28px)}.xtv2 .xv-half-h small{font-size:clamp(10px,1.7vh,20px)}
.xtv2 .xv-half-b{grid-template-columns:auto minmax(0,1fr);gap:1.4vw;height:100%;min-height:0;align-items:center}
.xtv2 .xv-half .xv-gauge{height:min(100%,30vh);width:auto;max-width:none;aspect-ratio:1;margin:0}.xtv2 .xv-half .xv-gauge strong{font-size:clamp(18px,4.4vh,54px)}.xtv2 .xv-half .xv-gauge span{font-size:clamp(10px,1.7vh,20px)}
.xtv2 .xv-half .xv-total span{font-size:clamp(11px,2vh,24px)}.xtv2 .xv-half .xv-total strong{font-size:clamp(26px,7vh,88px);letter-spacing:-2px}
.xtv2 .xv-half .xv-seg{height:clamp(12px,2.6vh,30px);margin:1.2vh 0}
.xtv2 .xv-legend{gap:.6vw}.xtv2 .xv-legend .lg{padding:.4vh .4vw;margin:0;pointer-events:none;cursor:default}.xtv2 .xv-legend li.em .lg{background:var(--tint)}
.xtv2 .xv-legend span{font-size:clamp(10px,1.8vh,20px)}.xtv2 .xv-legend b{font-size:clamp(14px,3.1vh,38px)}.xtv2 .xv-legend small{font-size:clamp(10px,1.7vh,19px)}.xtv2 .xv-legend li.em b{font-size:clamp(15px,3.4vh,42px)}
.xtv2-strip{display:grid;grid-template-columns:1fr 1fr;gap:1.1vw}.xtv2-strip .xv-tile{display:flex;align-items:baseline;gap:1.2vw;padding:.9vh 1.2vw;border-radius:1.4vh;flex-wrap:wrap}.xtv2-strip .xv-tile span{font-size:clamp(11px,1.9vh,22px);font-weight:700;color:var(--text)}.xtv2-strip .xv-tile strong{font-size:clamp(18px,4vh,48px)}.xtv2-strip .xv-tile small{font-size:clamp(10px,1.7vh,20px);margin-left:auto}
.xtv2-bottom{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:1.1vw;min-height:0}
.xtv2 .xtv-types{grid-area:auto;min-height:0;padding:1.2vh 1vw;align-content:space-evenly}.xtv2 .xtv-box{grid-area:auto!important}
.xtv2 .xv-type .h button{font-size:clamp(13px,2.3vh,28px)}.xtv2 .xv-type .h span{font-size:clamp(10px,1.7vh,20px)}.xtv2 .xv-type .h b{font-size:clamp(13px,2.3vh,26px)}.xtv2 .xv-type small{font-size:clamp(10px,1.65vh,19px)}.xtv2 .xv-type small.kgl{display:block;margin-top:.2vh}
.xv-type small.kgl{display:block;margin-top:2px}
@media(max-width:700px){.xtv2{grid-template-rows:auto;overflow:auto}.xtv2-hero{grid-template-columns:1fr;gap:2vh}.xtv2-bottom{grid-template-columns:1fr}}
.xtv2 .xtv-prio{grid-template-columns:max-content minmax(0,.8fr) minmax(0,2fr) max-content;gap:.7vw}
.xtv2 .xv-people{align-content:space-evenly;height:100%;gap:.4vh}
.xtv2 .xv-person{pointer-events:none;padding:.5vh .5vw;border:0;border-radius:0;grid-template-columns:3.4vh minmax(0,1.1fr) minmax(0,1.2fr) auto;grid-template-areas:"av n t b";gap:.7vw;font-size:clamp(11px,1.9vh,22px)}
.xtv2 .xv-person .av{width:3.4vh;height:3.4vh;font-size:1.3vh}.xtv2 .xv-person .n strong{font-size:inherit}.xtv2 .xv-person b{font-size:inherit;display:block}.xtv2 .xv-person b small{display:none}.xtv2 .xv-person .t{height:1.4vh;min-height:7px}

/* ===== Conferentes na TV: ranking, preenchimento coluna a coluna ===== */
.xv-person.top .av{background:var(--brand);color:var(--panel)}
.xv-people.col{grid-auto-flow:column;grid-template-columns:none;grid-template-rows:repeat(var(--r,6),minmax(0,1fr));grid-auto-columns:minmax(0,1fr)}
.xtv2 .xv-people.col{height:100%;gap:.5vh 1.1vw;align-content:stretch}
.xtv2 .xv-people.col .xv-person{max-height:8vh;align-self:center;width:100%}
.xtv2 .xv-people.col .xv-person .av{font-size:clamp(10px,1.7vh,20px);font-weight:800}
.xtv2 .xv-people.two .xv-person{grid-template-columns:3vh minmax(0,1fr) auto;grid-template-areas:"av n b" "av t t";gap:.2vh .6vw;padding:.3vh .3vw;font-size:clamp(9px,1.6vh,18px)}
.xtv2 .xv-people.two .xv-person .av{width:3vh;height:3vh}.xtv2 .xv-people.two .xv-person .t{height:1.1vh;min-height:5px}
/* slide Volumes por conferente */
.xv-people.tvp.col{height:calc(100% - 4vh);grid-template-rows:repeat(var(--r,6),minmax(0,12vh));gap:1.2vh 1.2vw;align-content:start}
.tvp.col .xv-person{grid-template-columns:5.4vh minmax(0,1fr) auto}.tvp.col .xv-person .av{width:5.4vh;height:5.4vh;font-size:2.2vh;font-weight:800}
.tvp.col .xv-person .n strong{font-size:clamp(12px,2.3vh,26px)}.tvp.col .xv-person .n small{font-size:clamp(10px,1.6vh,18px)}.tvp.col .xv-person b{font-size:clamp(14px,2.8vh,32px)}.tvp.col .xv-person b small{font-size:clamp(10px,1.6vh,18px)}
.xtf-people{height:100%}

.xtv2-bottom.many{grid-template-columns:1fr .8fr 1.45fr}
.xtv2 .xv-people.two .xv-person{font-size:clamp(10px,1.85vh,22px);padding:.2vh .4vw}.xtv2 .xv-people.two .xv-person .av{width:3.4vh;height:3.4vh;font-size:clamp(9px,1.6vh,18px)}.xtv2 .xv-people.two{grid-template-columns:none}
.xtv2 .xv-people.col .xv-person{max-height:9vh}
.xv-people.tvp.col{grid-template-rows:repeat(var(--r,6),minmax(0,10.6vh))}.tvp.col .xv-person{grid-template-columns:5vh minmax(0,1fr) auto}.tvp.col .xv-person .av{width:5vh;height:5vh}

/* ===== Carteira na TV: quadro EDI entre os cartões e a tabela de canais ===== */
.xtf:has(.tv-edi){grid-template-rows:auto auto minmax(0,1fr)}
.xtf .tv-edi{display:flex;align-items:center;gap:2vw;flex-wrap:wrap;background:var(--panel);border:1px solid var(--line);border-left:5px solid var(--brand);border-radius:1.6vh;padding:1.2vh 1.2vw;margin:0}
.xtf .tv-edi-heading{display:grid;gap:.3vh}.xtf .tv-edi-heading h2{margin:0;font-size:clamp(13px,2.4vh,28px)}.xtf .tv-edi-heading span{font-size:clamp(10px,1.7vh,20px);color:var(--muted)}
.xtf .tv-edi-metrics{display:grid;grid-template-columns:repeat(4,auto);gap:2.6vw;margin:0 0 0 auto}.xtf .tv-edi-metrics>div{display:grid;gap:.2vh;text-align:right}
.xtf .tv-edi-metrics dt{font-size:clamp(10px,1.7vh,20px);color:var(--muted);margin:0}.xtf .tv-edi-metrics dd{margin:0;font-size:clamp(15px,3.3vh,40px);font-weight:800;letter-spacing:-.5px;white-space:nowrap}

/* ===== TV: peso em destaque nos cartões; cartões simétricos; respiro antes da tabela ===== */
.xtf .xv-tile.xtf-card{gap:.7vh;padding:1.8vh 1.3vw}
.xtf .xtf-w{display:flex;align-items:baseline;gap:.7vw;flex-wrap:wrap}
.xtf .xtf-w b{font-size:clamp(18px,4.2vh,52px);letter-spacing:-1px;line-height:1.05;white-space:nowrap}
.xtf .xtf-w small{font-size:clamp(11px,2vh,24px);color:var(--muted);font-weight:600}
.xtf.two .xtf-panel{gap:3vh;grid-template-rows:auto auto minmax(0,1fr)}
.xtf.two .xtf-panel h3{margin-top:.6vh}
.xtf.two .xtf-card{min-height:19vh}

/* ===== Celular: anéis de Volumes e Peso lado a lado; abaixo, as informações de volume e depois as de peso ===== */
@media(max-width:820px){
 .xv-hero{position:relative;padding:14px 14px 16px}
 .xv-eyebrow{display:none}
 .xv-top{display:block;padding-right:116px}
 .xv-top h2{font-size:1.05rem;margin:0;letter-spacing:-.2px}
 .xv-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin-top:10px}
 .xv-meta .xv-status{position:absolute;top:12px;right:12px;margin:0;padding:5px 11px;font-size:.7rem}
 .xv-stat{flex:none;min-width:0;padding:7px 11px}.xv-stat b{font-size:1.05rem}
 .xv-split{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;margin:14px 0 0}
 .xv-half,.xv-half-b{display:contents}
 .xv-half:last-child{border:0;padding:0}
 .xv-half-h{margin:0;justify-content:center}.xv-half-h small{display:none}.xv-half-h span{font-size:.72rem}
 .xv-half:first-child .xv-half-h{grid-area:1/1}.xv-half:last-child .xv-half-h{grid-area:1/2}
 .xv-half .xv-gauge{max-width:140px;width:100%;margin:0 auto}
 .xv-half:first-child .xv-gauge{grid-area:2/1}.xv-half:last-child .xv-gauge{grid-area:2/2}
 .xv-half .xv-gauge strong{font-size:1.3rem}
 .xv-half .xv-main{min-width:0}
 .xv-half:first-child .xv-main{grid-area:3/1/4/3;margin-top:12px}
 .xv-half:last-child .xv-main{grid-area:4/1/5/3;margin-top:10px;padding-top:12px;border-top:1px solid var(--line)}
 .xv-half .xv-total strong{font-size:2rem;letter-spacing:-1px}
 .xv-half .xv-seg{margin:8px 0}
}


/* =========================================================================
   Portal Mika — cabeçalho único e compacto no celular (até 700 px)
   Objetivo: abrir qualquer página e já ver as informações, sem rolar por cabeçalhos.
   Carregar DEPOIS dos demais estilos da página.
   ========================================================================= */
/* Carteira: destaque do cartão Carteira total (fundo preenchido) */
body.carteira .kpis .kpi.primary{background:color-mix(in srgb,var(--brand) 9%,var(--panel,#fff));border-color:color-mix(in srgb,var(--brand) 45%,var(--line,#e9dfd0));border-top:4px solid var(--brand)}
body.carteira .kpis .kpi.primary.is-active{border-color:var(--brand);box-shadow:0 0 0 2px color-mix(in srgb,var(--brand) 18%,transparent)}
body.carteira .kpis .kpi.primary .kpi-label{font-weight:700}

/* painel EDI da Carteira: some enquanto estiver vazio */
.edi-summary:empty{display:none}

@media(max-width:700px){
 /* ---- barra superior: uma linha (☰ · título · ações) + aviso de atualização em linha fina ---- */
 #portalAuthenticated .portal-compact-top{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:4px 6px!important;padding:5px 8px!important;min-height:0!important}
 #portalAuthenticated .portal-compact-top>.portal-mobile-menu{order:0;flex:none!important;width:34px!important;height:34px!important;min-height:34px!important;align-self:center!important;font-size:19px!important;background:var(--panel)!important;color:var(--text)!important;border:1px solid var(--line)!important}
 #portalAuthenticated .portal-compact-top>h1{order:1;flex:1 1 0!important;min-width:0;margin:0!important;font-size:1.02rem!important;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #portalAuthenticated .portal-compact-top .portal-session{order:2;display:flex!important;flex:0 1 auto!important;min-width:0;margin-left:auto!important;padding:0!important;gap:5px!important;flex-wrap:nowrap!important;justify-content:flex-end!important}
 #portalAuthenticated .portal-compact-top .portal-session>span{display:none!important}
 #portalAuthenticated .portal-compact-top .portal-session button,#portalAuthenticated .portal-compact-top .conference-options-toggle{min-height:32px!important;padding:0 8px!important;font-size:11px!important;font-weight:600!important;line-height:1!important;white-space:nowrap;background:var(--panel)!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:8px!important}
 #portalAuthenticated .portal-compact-top #source{order:3;flex:1 1 100%!important;font-size:11px!important;padding:0 2px!important}
 /* ---- conteúdo: sem folga desnecessária ---- */
 #portalAuthenticated main.main{padding:8px 10px 20px!important}
 /* ---- cabeçalho de página (Carteira, Faturamento oficial e semelhantes) ---- */
 #portalAuthenticated .top{display:flex!important;flex-wrap:wrap!important;gap:6px 8px!important;align-items:center!important;margin:0 0 8px!important}
 #portalAuthenticated .top>div:first-child{flex:1 1 100%;min-width:0}
 #portalAuthenticated .top .eyebrow,#portalAuthenticated .top .intro{display:none!important}
 #portalAuthenticated .top h1{font-size:1.15rem!important;line-height:1.2!important;margin:0!important;letter-spacing:-.2px}
 #portalAuthenticated .top>button{flex:1 1 0;min-height:34px;padding:7px 10px!important;font-size:12px!important;text-align:center!important;border-radius:8px}
 #portalAuthenticated .top .actions{display:flex!important;flex-wrap:wrap!important;gap:6px!important;width:100%;align-items:center!important;margin:0!important}
 #portalAuthenticated .top .actions label{display:flex!important;flex:1 1 44%;align-items:center;gap:6px;font-size:11px!important;font-weight:700;margin:0!important}
 #portalAuthenticated .top .actions select{flex:1;min-width:0;min-height:34px;padding:4px 8px!important;font-size:13px!important}
 #portalAuthenticated .top .actions button{flex:1 1 28%;min-height:34px;padding:6px 6px!important;font-size:11px!important;line-height:1.2!important;text-align:center!important}
 /* ---- aviso de atualização: no máximo duas linhas ---- */
 #portalAuthenticated .source{font-size:11px!important;line-height:1.35!important;padding:6px 10px 0!important;margin:0 0 8px!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;box-shadow:inset 0 -7px 0 var(--panel,#fff)}
 #portalAuthenticated .error:empty,#portalAuthenticated #error:empty{display:none!important}
}

/* ---- Carteira / Faturamento no celular: título + ícone de recarregar na mesma linha; cartões compactos ---- */
@media(max-width:700px){
 #portalAuthenticated .top{flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
 #portalAuthenticated .top>div:first-child{flex:1 1 auto!important;min-width:0;text-align:left!important}
 #portalAuthenticated .top h1{text-align:left!important}
 /* "Atualizar" depende do conector do notebook: não faz sentido no celular */
 #portalAuthenticated .top #refresh{display:none!important}
 /* "Recarregar fotografia" vira um ícone ↻ */
 #portalAuthenticated .top #reloadShared{flex:none!important;width:38px!important;min-height:38px!important;height:38px;padding:0!important;font-size:0!important;border-radius:10px!important;background:var(--panel)!important;color:var(--text)!important;border:1px solid var(--line)!important;display:inline-flex!important;align-items:center;justify-content:center}
 #portalAuthenticated .top #reloadShared::before{content:"↻";font-size:20px;line-height:1;font-weight:700}
 /* Faturamento: ano, mês, ↻ e comparativo em linhas enxutas */
 #portalAuthenticated .top .actions{flex:1 1 100%!important}
 #portalAuthenticated .top .actions #reloadShared{order:3}
 #portalAuthenticated .top .actions #compareToggle{order:4;flex:1 1 100%!important}
 /* Carteira: cartões compactos — total em largura cheia, depois Comercial | Transporte | CD lado a lado */
 body.carteira .kpis{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:6px 0 10px!important}
 body.carteira .kpis .kpi{min-height:0!important;padding:10px 11px!important;border-radius:12px!important;text-align:left!important}
 body.carteira .kpis .kpi.primary{grid-column:1/-1;padding:12px 14px!important}
 body.carteira .kpi-label{font-size:12px!important;margin:0 0 4px!important}
 body.carteira .kpi-values{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;justify-content:stretch!important}
 body.carteira .kpi-values>div,body.carteira .kpi-values>div:last-child{justify-items:start!important;text-align:left!important;gap:1px!important}
 body.carteira .kpi-values span{font-size:9px!important}
 body.carteira .kpi-values strong{font-size:15px!important;letter-spacing:-.03em}
 body.carteira .kpi.primary .kpi-values{grid-template-columns:1fr auto!important}
 body.carteira .kpi.primary .kpi-values>div:last-child{justify-items:end!important;text-align:right!important}
 body.carteira .kpi.primary .kpi-values strong{font-size:24px!important}
 body.carteira .kpi-note{font-size:10px!important;line-height:1.3!important;margin-top:5px!important}
 body.carteira .kpi.primary .kpi-note{font-size:11px!important}
}

@media(max-width:700px){
 /* Faturamento: título em cima; ano, mês e ↻ na linha de baixo; comparativo logo depois */
 #portalAuthenticated .top:has(>.actions){flex-wrap:wrap!important}
 #portalAuthenticated .top:has(>.actions)>div:first-child{flex:1 1 100%!important}
 #portalAuthenticated .top .actions{flex-wrap:wrap!important;flex-direction:row!important;gap:6px!important}
 #portalAuthenticated .top .actions label{flex:1 1 38%!important;min-width:0}
}

/* ===== Carteira no celular: nota, EDI em uma linha, canais, SKUs recolhidos e filtro EDI ===== */
@media(max-width:700px){
 /* EDI em uma linha: valor e peso no mesmo formato dos cartões */
 body.carteira #ediSummary.edi-compact{display:flex!important;align-items:center;gap:8px;padding:8px 12px!important;margin:6px 0!important;border-radius:12px}
 body.carteira #ediSummary .edi-tag{flex:none;font-size:11px;font-weight:800;letter-spacing:.8px;color:var(--brand);background:color-mix(in srgb,var(--brand) 12%,var(--panel,#fff));border-radius:6px;padding:4px 8px}
 body.carteira #ediSummary .edi-kv{flex:1 1 0;min-width:0;display:grid;gap:1px}
 body.carteira #ediSummary .edi-kv em{font-style:normal;font-size:8.5px;letter-spacing:.4px;text-transform:uppercase;color:var(--muted)}
 body.carteira #ediSummary .edi-kv b{font-size:12.5px;white-space:nowrap;letter-spacing:-.02em}
 /* Participação por canal: nome + valor/peso em cima; barra mais curta com o % à direita */
 body.carteira #channels .channel-list{display:grid!important;gap:8px!important}
 body.carteira #channels .channel-row{display:grid!important;grid-template-columns:10px minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;align-items:center!important;gap:6px 8px!important;padding:10px 12px!important;text-align:left!important;min-height:0!important}
 body.carteira #channels .channel-row>span:first-child{grid-column:1;grid-row:1;width:9px;height:9px;border-radius:50%;display:block}
 body.carteira #channels .channel-row>strong{grid-column:2;grid-row:1;font-size:13px!important;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 body.carteira #channels .channel-metrics{grid-column:3;grid-row:1;display:flex!important;gap:10px!important;justify-content:flex-end;margin:0!important}
 body.carteira #channels .channel-metrics>div{display:flex!important;gap:4px;align-items:baseline;text-align:right!important}
 body.carteira #channels .channel-metrics span{font-size:9px!important;text-transform:uppercase;letter-spacing:.03em}
 body.carteira #channels .channel-metrics b{font-size:12px!important}
 body.carteira #channels .channel-progress{grid-column:1/-1!important;grid-row:2!important;display:flex!important;align-items:center;gap:8px;margin:0!important;width:100%}
 body.carteira #channels .channel-progress>i{flex:1 1 0!important;min-width:0;height:8px!important;border-radius:6px;overflow:hidden;background:var(--track,#f0e9df);display:block;position:relative}
 body.carteira #channels .channel-progress>i>em{display:block;height:100%;border-radius:6px}
 body.carteira #channels .channel-progress>b{flex:none!important;width:58px;text-align:right!important;font-size:12px!important;font-weight:700;font-variant-numeric:tabular-nums;grid-column:auto!important}
 /* Top 10 SKUs: recolhidos, com botão + / − */
 body.carteira .carteira-sku-visuals{grid-template-columns:1fr!important;gap:8px!important;margin-top:8px!important}
 body.carteira .carteira-sku-visuals>article.panel{padding:10px 14px!important}
 body.carteira .carteira-sku-visuals .panel-title{display:flex!important;align-items:center;justify-content:space-between;gap:10px;margin:0!important}
 body.carteira .carteira-sku-visuals .panel-title h2{font-size:14px!important;margin:0!important}
 body.carteira .sku-toggle{flex:none;width:34px;height:34px;min-height:34px!important;padding:0!important;border-radius:50%!important;background:var(--panel)!important;color:var(--brand)!important;border:1px solid var(--line)!important;font-size:20px!important;font-weight:700;line-height:1;display:grid;place-items:center}
 body.carteira .sku-collapsible:not(.sku-open)>div[id^="skus"]{display:none!important}
 body.carteira .sku-collapsible.sku-open>div[id^="skus"]{margin-top:10px}
 /* filtro EDI ao lado das etapas */
 body.carteira #orderStages.edi-on .order-stage:not(.order-stage-edi)[aria-pressed="true"]{background:var(--panel)!important;color:var(--text)!important;border-color:var(--line)!important;box-shadow:none!important}
}
@media(max-width:700px){
 /* canais: sem as legendas VALOR/PESO (já aparecem nos cartões), para o nome não ser cortado */
 body.carteira #channels .channel-metrics span{display:none!important}
 body.carteira #channels .channel-metrics>div+div::before{content:"·";margin-right:8px;color:var(--muted)}
 body.carteira #channels .channel-metrics{gap:0!important}
 body.carteira #channels .channel-row>strong{font-size:13px!important}
 /* EDI visível na primeira coluna da tabela por vendedor */
 body.carteira .edi-badge{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:5px;font-size:9px;font-weight:800;letter-spacing:.6px;color:var(--brand);background:color-mix(in srgb,var(--brand) 12%,var(--panel,#fff));vertical-align:middle}
}

/* ===== Faturamento oficial no celular: cartões compactos e tabelas sem rolagem horizontal ===== */
@media(max-width:700px){
 body.billing-dre:not(.carteira) main.main{overflow-x:hidden}
 /* textos explicativos sob os títulos */
 body.billing-dre:not(.carteira) .panel>h2+p,body.billing-dre:not(.carteira) .panel-title p,body.billing-dre:not(.carteira) .billing-live-heading p,body.billing-dre:not(.carteira) .comparison-header p{display:none!important}
 body.billing-dre:not(.carteira) .panel{padding:12px 14px!important;border-radius:14px!important}
 body.billing-dre:not(.carteira) .panel h2{font-size:15px!important;margin:0 0 6px!important}
 /* cartões de indicadores */
 body.billing-dre:not(.carteira) .kpis{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:6px 0 10px!important}
 body.billing-dre:not(.carteira) .kpi{min-height:0!important;padding:10px 12px!important;border-radius:12px!important}
 body.billing-dre:not(.carteira) .kpi.primary{grid-column:1/-1;padding:12px 14px!important;background:color-mix(in srgb,var(--brand) 9%,var(--panel,#fff));border-top:4px solid var(--brand)}
 body.billing-dre:not(.carteira) .kpi-label{font-size:11px!important;margin:0 0 3px!important}
 body.billing-dre:not(.carteira) .kpi-value{font-size:19px!important;line-height:1.1!important;letter-spacing:-.03em}
 body.billing-dre:not(.carteira) .kpi.primary .kpi-value{font-size:26px!important}
 body.billing-dre:not(.carteira) .kpi-note{font-size:10px!important;line-height:1.3!important;margin-top:4px!important}
 body.billing-dre:not(.carteira) .live-kpis{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
 body.billing-dre:not(.carteira) .live-kpi{padding:9px 10px!important;min-height:0!important;border-radius:12px!important}
 body.billing-dre:not(.carteira) .live-kpi span{font-size:10px!important;line-height:1.25}
 body.billing-dre:not(.carteira) .live-kpi strong{font-size:14px!important;letter-spacing:-.03em;overflow-wrap:anywhere}
 body.billing-dre:not(.carteira) .live-kpi small{display:none!important}
 /* faturamento do dia: dia + ícone de recarregar */
 body.billing-dre:not(.carteira) .billing-live-heading{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px!important}
 body.billing-dre:not(.carteira) .billing-live-heading>div{flex:1 1 100%}
 body.billing-dre:not(.carteira) .billing-live-heading label{flex:1 1 auto;display:flex;align-items:center;gap:6px;font-size:11px;font-weight:700}
 body.billing-dre:not(.carteira) .billing-live-heading input{flex:1;min-width:0;min-height:34px}
 body.billing-dre:not(.carteira) .billing-live-heading button{flex:none;width:38px;height:38px;min-height:38px;padding:0!important;font-size:0!important;border-radius:10px!important;background:var(--panel)!important;color:var(--text)!important;border:1px solid var(--line)!important;display:inline-flex;align-items:center;justify-content:center}
 body.billing-dre:not(.carteira) .billing-live-heading button::before{content:"↻";font-size:20px;line-height:1;font-weight:700}
 body.billing-dre:not(.carteira) .billing-live-status{font-size:11px!important;line-height:1.35;margin:6px 0!important}
 body.billing-dre:not(.carteira) .billing-live-note{font-size:10px!important;line-height:1.35;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
 /* ---- Faturamento diário detalhado: cada dia vira um bloco enxuto, sem rolagem horizontal ---- */
 body.billing-dre:not(.carteira) .daily-table-wrap{overflow:visible!important;margin-top:10px!important}
 body.billing-dre:not(.carteira) .daily-table-wrap table{display:block;min-width:0!important;width:100%;border-spacing:0}
 body.billing-dre:not(.carteira) .daily-table-wrap thead{display:none}
 body.billing-dre:not(.carteira) .daily-table-wrap tbody{display:grid;gap:8px}
 body.billing-dre:not(.carteira) .daily-table-wrap tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 10px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
 body.billing-dre:not(.carteira) .daily-table-wrap td{display:block;padding:0!important;border:0!important;background:transparent!important;text-align:left!important;white-space:normal;min-width:0;font-size:12px}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(1){grid-column:1/3;font-weight:800;font-size:13px}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(2){grid-column:3;text-align:right!important;font-weight:800;font-size:13px}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(n+3):nth-child(-n+5)::before{display:block;font-size:9px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-weight:700}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(3)::before{content:"Peso"}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(4)::before{content:"Volumes"}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(5)::before{content:"M³"}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(6){grid-column:1/-1}
 body.billing-dre:not(.carteira) .daily-table-wrap .channel-tags{display:flex!important;flex-wrap:wrap!important;gap:4px!important;min-width:0!important;max-width:100%!important;width:100%}
 body.billing-dre:not(.carteira) .daily-table-wrap .channel-tags span{font-size:10px!important;padding:3px 7px!important;white-space:normal!important;max-width:100%}
 /* ---- Faturamento por canal da OC e conferência das OCs ---- */
 body.billing-dre:not(.carteira) .live-table-scroll{overflow:visible!important;margin-top:10px!important}
 body.billing-dre:not(.carteira) .live-table-scroll table{min-width:0!important;width:100%;table-layout:fixed;font-size:12px}
 body.billing-dre:not(.carteira) .live-table-scroll th,body.billing-dre:not(.carteira) .live-table-scroll td{padding:8px 6px!important;white-space:normal!important;overflow-wrap:anywhere}
 body.billing-dre:not(.carteira) .live-detail .live-table-scroll table,body.billing-dre:not(.carteira) .live-detail .live-table-scroll tbody,body.billing-dre:not(.carteira) .live-detail .live-table-scroll tfoot,body.billing-dre:not(.carteira) .live-detail .live-table-scroll tr,body.billing-dre:not(.carteira) .live-detail .live-table-scroll td,body.billing-dre:not(.carteira) .live-detail .live-table-scroll th{display:block}
 body.billing-dre:not(.carteira) .live-detail .live-table-scroll thead{display:none}
 body.billing-dre:not(.carteira) .live-detail .live-table-scroll tbody tr{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:2px 10px;padding:8px 0;border-bottom:1px solid var(--line)}
 body.billing-dre:not(.carteira) .live-detail .live-table-scroll td{padding:0!important;border:0!important;text-align:left!important}
 body.billing-dre:not(.carteira) .live-detail .live-table-scroll td:nth-child(1){grid-column:1;font-weight:800}
 body.billing-dre:not(.carteira) .live-detail .live-table-scroll td:nth-child(2){grid-column:2;color:var(--muted)}
 body.billing-dre:not(.carteira) .live-detail .live-table-scroll td:nth-child(4){grid-column:3;text-align:right!important;font-weight:800}
 body.billing-dre:not(.carteira) .live-detail .live-table-scroll td:nth-child(3){grid-column:1/-1;font-size:11px;color:var(--muted)}
 body.billing-dre:not(.carteira) .live-detail .live-table-scroll tfoot tr{display:grid;grid-template-columns:1fr auto;padding:8px 0}
 body.billing-dre:not(.carteira) .live-detail .live-table-scroll tfoot td:empty{display:none}
 body.billing-dre:not(.carteira) .live-detail .live-table-scroll tfoot th,body.billing-dre:not(.carteira) .live-detail .live-table-scroll tfoot td{padding:0!important;font-weight:800}
 body.billing-dre:not(.carteira) .live-detail .live-table-scroll tfoot td:last-child{text-align:right!important}
}
@media(max-width:360px){
 body.billing-dre:not(.carteira) .live-table-scroll table{font-size:11px}
 body.billing-dre:not(.carteira) .live-table-scroll th,body.billing-dre:not(.carteira) .live-table-scroll td{padding:7px 3px!important}
 body.billing-dre:not(.carteira) .live-table-scroll td:last-child,body.billing-dre:not(.carteira) .live-table-scroll th:last-child{overflow-wrap:normal}
}
@media(max-width:700px){
 body.billing-dre:not(.carteira) .live-channels .live-table-scroll th:nth-child(1){width:36%}
 body.billing-dre:not(.carteira) .live-channels .live-table-scroll th:nth-child(2){width:14%}
 body.billing-dre:not(.carteira) .live-channels .live-table-scroll th:nth-child(3){width:50%}
}
@media(max-width:700px){
 body.billing-dre:not(.carteira) .live-detail .live-table-scroll td:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important}
}
@media(max-width:700px){
 body.billing-dre:not(.carteira) .live-kpi strong{font-size:clamp(11.5px,3.5vw,14px)!important;white-space:nowrap;overflow-wrap:normal!important}
 body.billing-dre:not(.carteira) .live-detail .live-table-scroll td:nth-child(1),body.billing-dre:not(.carteira) .live-detail .live-table-scroll td:nth-child(2),body.billing-dre:not(.carteira) .live-detail .live-table-scroll td:nth-child(4){grid-row:1}
 body.billing-dre:not(.carteira) .live-detail .live-table-scroll td:nth-child(3){grid-row:2}
}
@media(max-width:700px){
 body.billing-dre:not(.carteira) .billing-live-heading{flex-wrap:nowrap!important;flex-wrap:wrap}
 body.billing-dre:not(.carteira) .billing-live-heading label{flex:1 1 0!important;min-width:0!important}
 body.billing-dre:not(.carteira) .billing-live-heading input{width:100%;min-width:0}
}

/* ===== Carteira no celular (v2): canais em colunas fixas e tabela por vendedor sem rolagem horizontal ===== */
@media(max-width:700px){
 body.carteira #channels .channel-row.cm-on{display:block!important;padding:10px 12px!important;text-align:left!important;min-height:0!important}
 body.carteira #channels .channel-row.cm-on>:not(.cm-channel){display:none!important}
 body.carteira .cm-channel{display:grid;gap:7px;width:100%}
 body.carteira .cm-l1{display:grid;grid-template-columns:10px minmax(0,1fr) 76px 50px;gap:6px;align-items:baseline}
 body.carteira .cm-name{font-size:12.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
 body.carteira .cm-v{font-size:12px;font-weight:700;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
 body.carteira .cm-dot{width:9px;height:9px;border-radius:50%;align-self:center}
 body.carteira .cm-l2{display:grid;grid-template-columns:minmax(0,1fr) 50px;gap:6px;align-items:center}
 body.carteira .cm-bar{height:8px;border-radius:6px;background:var(--track,#f0e9df);overflow:hidden}
 body.carteira .cm-fill{height:100%;border-radius:6px}
 body.carteira .cm-pct{font-size:12px;font-weight:700;text-align:right;font-variant-numeric:tabular-nums}
 /* Carteira por RCA / vendedor: cada vendedor vira um bloco, sem rolagem lateral */
 body.carteira .orders-scroll{overflow:visible!important}
 body.carteira .orders-table{display:block;width:100%!important;min-width:0!important}
 body.carteira .orders-table thead{display:none}
 body.carteira .orders-table tbody{display:grid;gap:6px}
 body.carteira .orders-table tr{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.8fr) minmax(0,1.2fr);gap:4px 8px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
 body.carteira .orders-table tr.rca-total{background:var(--panel-soft,#fff3d9)}
 body.carteira .orders-table tr.rca-detail{margin-left:10px;padding:8px 10px;background:var(--panel)}
 body.carteira .orders-table td{display:block;padding:0!important;border:0!important;background:transparent!important;text-align:left!important;white-space:normal;min-width:0;font-size:12px;overflow-wrap:anywhere}
 body.carteira .orders-table td:nth-child(1){grid-column:1/3;font-weight:800;font-size:13px}
 body.carteira .orders-table td:nth-child(2){grid-column:3;text-align:right!important;font-weight:800}
 body.carteira .orders-table td:nth-child(3){grid-column:1/3;color:var(--muted);font-size:11px}
 body.carteira .orders-table td:nth-child(4){grid-column:3;text-align:right!important;color:var(--muted);font-size:11px}
 body.carteira .orders-table td:nth-child(n+5):nth-child(-n+7)::before{display:block;font-size:9px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-weight:700}
 body.carteira .orders-table td:nth-child(5)::before{content:"Valor"}
 body.carteira .orders-table td:nth-child(6)::before{content:"Volume"}
 body.carteira .orders-table td:nth-child(7)::before{content:"Peso (kg)"}
 body.carteira .orders-table td:nth-child(8){grid-column:1/-1;font-size:11px;color:var(--muted)}
 body.carteira .orders-table td:nth-child(8):empty{display:none}
 body.carteira .orders-table .order-link{padding:0!important;min-height:0!important;border:0!important;background:none!important;font:inherit;font-weight:inherit;text-align:inherit;text-decoration:underline;color:var(--brand-dark,var(--brand));display:inline}
}
@media(max-width:700px){
 body.carteira .orders-table td:nth-child(n+5):nth-child(-n+7){white-space:nowrap;overflow-wrap:normal;font-size:11px;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
}

/* ===== Faturamento diário detalhado (celular): lista simples, sem cores e sem etiquetas ===== */
@media(max-width:700px){
 body.billing-dre:not(.carteira) .daily-detail>p,body.billing-dre:not(.carteira) .daily-detail .panel-title p,body.billing-dre:not(.carteira) .daily-detail h2+p,body.billing-dre:not(.carteira) #daily-table>p{display:none!important}
 body.billing-dre:not(.carteira) .daily-table-wrap tbody{display:block!important}
 body.billing-dre:not(.carteira) .daily-table-wrap tr{display:grid!important;grid-template-columns:auto auto auto minmax(0,1fr)!important;gap:3px 12px!important;padding:11px 2px!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;background:transparent!important}
 body.billing-dre:not(.carteira) .daily-table-wrap tr:last-child{border-bottom:0!important}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(1){grid-column:1/4!important;grid-row:1;font-size:13px!important;font-weight:700!important}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(2){grid-column:4!important;grid-row:1;text-align:right!important;font-size:14px!important;font-weight:800!important;color:var(--text)!important}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(n+3):nth-child(-n+5){grid-row:2;font-size:12px!important;color:var(--muted);white-space:nowrap}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(3){grid-column:1!important}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(4){grid-column:2!important}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(5){grid-column:3!important}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(n+3):nth-child(-n+5)::before{content:none!important}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(4)::after{content:" vol.";display:inline}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(5)::after{content:" m³";display:inline}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(6){grid-column:1/-1!important;grid-row:3;font-size:11px!important;color:var(--muted)}
 body.billing-dre:not(.carteira) .daily-table-wrap .channel-tags{display:block!important;min-width:0!important;max-width:100%!important;line-height:1.5}
 body.billing-dre:not(.carteira) .daily-table-wrap .channel-tags span{display:inline!important;background:none!important;border:0!important;padding:0!important;border-radius:0!important;font-size:11px!important;color:var(--muted)!important;white-space:normal!important}
 body.billing-dre:not(.carteira) .daily-table-wrap .channel-tags span+span::before{content:" · "}
 body.billing-dre:not(.carteira) .daily-table-wrap .channel-tags b{color:var(--text)!important;font-weight:600!important}
 /* campo "Dia" e ícone de recarregar: título em cima, data + ↻ embaixo */
 body.billing-dre:not(.carteira) .billing-live-heading{display:flex!important;flex-wrap:wrap!important;align-items:center;gap:8px!important}
 body.billing-dre:not(.carteira) .billing-live-heading>div{flex:1 1 100%!important}
 body.billing-dre:not(.carteira) .billing-live-heading label{flex:1 1 150px!important;min-width:150px!important;display:flex!important;align-items:center;gap:8px;white-space:nowrap}
 body.billing-dre:not(.carteira) .billing-live-heading input{flex:1 1 auto;width:auto!important;min-width:0}
}

/* ===== Menu lateral no celular: níveis bem distintos (grupo > item) ===== */
@media(max-width:700px){
 #portalAuthenticated .portal-sidebar .nav{gap:0!important}
 /* nível 1: Início e os grupos */
 #portalAuthenticated .portal-sidebar .nav>a,#portalAuthenticated .portal-sidebar .portal-nav-group>summary{display:flex!important;align-items:center;min-height:48px!important;padding:12px 14px!important;font-size:15px!important;font-weight:700!important;letter-spacing:.01em;border-radius:10px!important}
 #portalAuthenticated .portal-sidebar .nav>a,#portalAuthenticated .portal-sidebar .portal-nav-group{border-bottom:1px solid rgba(255,255,255,.16)}
 #portalAuthenticated .portal-sidebar .portal-nav-group{border-radius:0!important}
 #portalAuthenticated .portal-sidebar .portal-nav-group>summary::after{content:"›";margin-left:auto;font-size:24px;line-height:1;font-weight:400;opacity:.9;transition:transform .15s}
 #portalAuthenticated .portal-sidebar .portal-nav-group[open]>summary::after{transform:rotate(90deg)}
 #portalAuthenticated .portal-sidebar .portal-nav-group[open]>summary{background:rgba(255,255,255,.2)!important;border-radius:10px 10px 0 0!important}
 /* nível 2: itens dentro do grupo, recuados e sobre fundo mais escuro, com linha-guia à esquerda */
 #portalAuthenticated .portal-sidebar .portal-nav-group[open]>.portal-nav-group-links{position:relative;margin:0!important;padding:6px 8px 10px 26px!important;background:rgba(0,0,0,.16);border-radius:0 0 10px 10px;gap:2px!important}
 #portalAuthenticated .portal-sidebar .portal-nav-group-links::before{content:"";position:absolute;left:15px;top:10px;bottom:14px;width:2px;border-radius:2px;background:rgba(255,255,255,.35)}
 #portalAuthenticated .portal-sidebar .portal-nav-group-links>a,#portalAuthenticated .portal-sidebar .portal-nav-group-links>button{min-height:42px!important;padding:9px 12px!important;font-size:14px!important;font-weight:500!important;border-radius:8px!important;color:#fff}
 #portalAuthenticated .portal-sidebar .portal-nav-group-links>a.active,#portalAuthenticated .portal-sidebar .portal-nav-group-links>a[aria-current],#portalAuthenticated .portal-sidebar .portal-nav-group-links>.active{background:var(--accent,#ffdb4b)!important;color:#342700!important;font-weight:700!important}
 #portalAuthenticated .portal-sidebar .portal-nav-group-links>a:hover,#portalAuthenticated .portal-sidebar .portal-nav-group-links>button:hover{background:rgba(255,255,255,.18);color:#fff}
 #portalAuthenticated .portal-sidebar .portal-nav-group-links>a.active:hover{background:var(--accent,#ffdb4b)!important;color:#342700!important}
}

/* ===== Faturamento diário detalhado (celular): uma linha por dia; toque para abrir o restante ===== */
@media(max-width:700px){
 body.billing-dre:not(.carteira) .daily-table-wrap{margin-top:0!important}
 body.billing-dre:not(.carteira) #daily-table{margin:0!important}
 body.billing-dre:not(.carteira) .daily-table-wrap tr{grid-template-columns:minmax(0,1fr) auto auto 14px!important;gap:4px 12px!important;align-items:baseline!important;padding:13px 2px!important;cursor:pointer;-webkit-tap-highlight-color:transparent}
 body.billing-dre:not(.carteira) .daily-table-wrap tr:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(1){grid-column:1!important;grid-row:1!important}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(2){grid-column:2!important;grid-row:1!important}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(3){grid-column:3!important;grid-row:1!important;font-size:12.5px!important;color:var(--muted)!important;text-align:right!important;white-space:nowrap}
 body.billing-dre:not(.carteira) .daily-table-wrap tr::after{content:"›";grid-column:4;grid-row:1;align-self:center;font-size:20px;line-height:1;color:var(--muted);transition:transform .15s}
 body.billing-dre:not(.carteira) .daily-table-wrap tr.open::after{transform:rotate(90deg)}
 body.billing-dre:not(.carteira) .daily-table-wrap td:nth-child(n+4){display:none!important}
 body.billing-dre:not(.carteira) .daily-table-wrap tr.open td:nth-child(4){display:block!important;grid-column:1/3!important;grid-row:2!important;font-size:12px!important;color:var(--muted)!important}
 body.billing-dre:not(.carteira) .daily-table-wrap tr.open td:nth-child(5){display:block!important;grid-column:3/5!important;grid-row:2!important;font-size:12px!important;color:var(--muted)!important;text-align:right!important}
 body.billing-dre:not(.carteira) .daily-table-wrap tr.open td:nth-child(6){display:block!important;grid-column:1/-1!important;grid-row:3!important;padding-top:4px!important}
}

/* Conferências no celular: busca enxuta e sem texto de ajuda */
@media(max-width:700px){
 .xv{gap:10px;margin:0 0 10px}
 .xv-bar{gap:4px}.xv-bar label{flex:1 1 100%;min-width:0}.xv-bar input{padding:8px 12px 8px 34px;font-size:13px}
 .xv-chips{flex:1 1 100%}.xv-chips small{display:none}
}


/* ===== Desktop: tudo meio a meio, alinhado com a divisão Volumes | Peso ===== */
.xv-eyebrow{display:none}
@media(min-width:1001px){
 .xv-grid{grid-template-columns:1fr 1fr;gap:16px}
}
@media(min-width:761px){
 /* Conferentes: sem moldura própria; as duas colunas ficam alinhadas com os cartões acima */
 #xv-people.xv-card{background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}
 #xv-people>header{margin:2px 4px 10px}
 #xv-people .xv-key{margin:0 4px 10px}
 #xv-people .xv-people{grid-template-columns:1fr 1fr;gap:16px}
 #xv-people .xv-foot{margin:10px 4px 0}
}

/* ===== OCs com maior saldo: tratado em cor escura sobre a barra clara do volume total ===== */
.conference-overview .priority-track i.pt-total{display:block;height:100%;border-radius:inherit;overflow:hidden;background:color-mix(in srgb,var(--brand) 24%,var(--panel,#fff))}
.conference-overview .priority-track i.pt-total b{display:block;height:100%;background:var(--brand);border-radius:inherit}
.priority-key{display:flex;gap:16px;flex-wrap:wrap;align-items:center;margin:8px 2px 0;font-size:11px;color:var(--muted)}
.priority-key i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.priority-key .k1{background:var(--brand)}.priority-key .k2{background:color-mix(in srgb,var(--brand) 24%,var(--panel,#fff))}
.priority-key small{margin-left:auto;font-size:11px}


/* ===== TV: maiores saldos a conferir — status da OC, barra do total com a parte já conferida em escuro ===== */
.xtv2 .xtv-prio2{display:grid;gap:.2vh;font-size:clamp(11px,1.6vh,19px);line-height:1.15;min-width:0}
.xtv-prio2 .l1{display:flex;align-items:baseline;gap:.7vw;min-width:0}
.xtv-prio2 .l1 b{white-space:nowrap}
.xtv-prio2 .l1 small{color:var(--muted);font-size:.85em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xtv-prio2 .l1 em{margin-left:auto;font-style:normal;font-size:.78em;font-weight:700;padding:.15em .6em;border-radius:99px;white-space:nowrap;background:var(--tint);color:var(--brand-dark,var(--brand))}
.xtv-prio2 .l1 em.idle{background:transparent;border:1px solid color-mix(in srgb,var(--brand) 45%,transparent);color:var(--brand)}
.xtv-prio2 .l2{display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:.9vw;align-items:center}
.xtv-prio2 .bar{display:block;height:1.3vh;min-height:7px;background:var(--tint);border-radius:1vh;overflow:hidden}
.xtv-prio2 .bar i{display:block;height:100%;border-radius:1vh;overflow:hidden;background:color-mix(in srgb,var(--brand) 26%,var(--panel))}
.xtv-prio2 .bar u{display:block;height:100%;background:var(--brand);text-decoration:none}
.xtv-prio2 .l2 strong{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.xtv-prio2 .l2 strong small{margin-left:.4em;color:var(--muted);font-size:.6em;font-weight:600}

.xtv2 .xtv-box .xv-rank{align-content:space-between;gap:.5vh}

/* TV: linhas de maiores saldos mais compactas */
.xtv2 .xtv-prio2{font-size:clamp(11px,1.5vh,18px);gap:.1vh}
.xtv-prio2 .l1 em{font-size:.72em;padding:.08em .55em;line-height:1.25}
.xtv-prio2 .l2 strong{line-height:1.1}
.xtv2 .xtv-box .xv-rank{gap:.3vh}

.xtv2 .xtv-prio2 .bar{margin:0!important}
