
.report-workspace{--report-ink:#272032;--report-muted:#665e70;--report-accent:#6735a4;--report-light:#f1e8fc;--report-line:#e8e2ef;color:var(--report-ink);width:min(100%,1350px);margin:0 auto;padding:clamp(10px,2.4vw,28px)}
.report-heading,.sales-panel-heading,.report-history-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.report-heading{margin:0 0 16px}
.report-heading h1{font-size:clamp(1.4rem,3vw,1.9rem);line-height:1.16;letter-spacing:-.025em;margin:0;font-weight:750}
.report-actions,.sales-modes{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.report-card{background:#fff;border:1px solid var(--report-line);border-radius:14px}
.report-button,.report-period-options button,.sales-modes button,.report-history-tools button{font:inherit;font-size:.875rem;line-height:1.15;font-weight:650;min-height:40px;padding:7px 12px;border-radius:8px;border:1px solid var(--report-line);background:#fff;color:var(--report-accent);cursor:pointer}
.report-button:hover,.report-history-tools button:hover{background:var(--report-light)}
.report-button.report-primary{color:white;background:var(--report-accent);border-color:var(--report-accent)}
.report-button.report-primary:hover{background:#532889}
.report-button:disabled{opacity:.51;cursor:default}
.report-workspace :is(button,input,select):focus-visible,.report-workspace table:focus-visible{outline:2px solid #743baf;outline-offset:2px}
.report-history-filters,.report-sales-filters{padding:14px 16px;margin:0 0 14px}
.report-period{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:10px 14px}
.report-period-options{display:flex;gap:3px;flex-wrap:wrap;align-self:center}
.report-period-options button,.sales-modes button{background:#faf8fc;border-color:transparent}
.report-period-options button[aria-pressed=true],.sales-modes button[aria-pressed=true]{background:var(--report-light);color:var(--report-accent);border-color:#dcc8f6}
.report-custom-period{display:flex;gap:8px;align-items:end;flex-wrap:wrap}
.report-custom-period label,.report-history-filters .order-history-search label{display:grid;gap:5px;font-size:.875rem;font-weight:620;color:var(--report-muted);min-width:0}
.report-custom-period input,.report-history-filters .order-history-search :is(input,select){box-sizing:border-box;min-height:40px;width:100%;min-width:0;padding:7px 10px;border:1px solid var(--report-line);border-radius:8px;background:#fff;color:var(--report-ink);font:inherit;font-weight:500}
.report-period-caption{color:var(--report-muted);font-size:.875rem;width:100%;margin:0}
.report-custom-period [role=alert]{color:#9c2247;margin:0;width:100%;font-size:.875rem}
.report-workspace [hidden]{display:none!important}
.report-history-filters .order-history-search{margin-top:12px;border-top:1px solid var(--report-line);padding-top:12px;display:grid;grid-template-columns:minmax(185px,1.6fr) repeat(3,minmax(120px,1fr))}
.report-history-bar{padding:8px 12px;min-height:48px}
.report-history-bar>span{color:var(--report-muted);font-size:.875rem}
.report-history-table,.sales-table-wrap{overflow:auto}
.report-history-table table,.sales-table{width:100%;border-collapse:collapse;font-size:.875rem;color:var(--report-ink)}
.report-history-table :is(td,th),.sales-table :is(td,th){padding:10px 12px;text-align:left;border-bottom:1px solid #f0edf4}
.report-history-table th,.sales-table thead th{background:#f7f4fa;color:#514761;font-weight:700}
.report-history-table tbody tr:last-child td,.sales-table tbody tr:last-child>*{border-bottom:0}
.report-history-table tbody tr:hover{background:#fbf8ff;cursor:pointer}
.report-history-table td:is(:nth-child(4),:nth-child(5),:nth-child(6)){white-space:nowrap}
.report-history-table td :is(time,small){display:block;color:var(--report-muted);font-size:.79rem;margin-top:3px}
.report-order-code{display:inline-block;white-space:nowrap;border:0;background:none;color:var(--report-accent);font:inherit;font-weight:750;padding:2px 0;cursor:pointer}
.report-order-code:hover{text-decoration:underline}
.report-history-items,.report-history-tools{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.report-history-thumb{position:relative;display:grid;place-items:center;background:#f4eef9;color:var(--report-accent);border-radius:8px;width:28px;height:28px}
.report-history-thumb :is(img,svg){width:28px;height:28px;border-radius:8px;object-fit:cover}
.report-history-thumb svg{padding:5px}.report-history-thumb>span:last-child{position:absolute;right:0;bottom:-2px;color:white;background:#512783;padding:0 2px;border-radius:4px;font-size:.6rem;line-height:1.05}
.report-more-items{font-size:.76rem;font-weight:700;color:var(--report-accent)}
.report-history-tools{margin-top:4px}
.report-history-tools button{position:relative;display:grid;place-items:center;padding:2px 7px;min-height:26px}
.report-history-tools svg{width:15px;height:15px}
.report-status{display:inline-block;padding:3px 8px;border-radius:20px;font-weight:650;color:#61428a;background:#f0e8fb}
.report-status[data-status=concluido]{color:#165840;background:#e0f4e9}
.report-status[data-status=cancelado]{color:#8f2f4c;background:#faeaf0}
.report-status[data-status=aguardando]{color:#6b481a;background:#fff1d8}
.report-workspace .order-history-pager{padding:10px 12px;border-top:1px solid var(--report-line)}
.report-empty{padding:20px 14px;color:var(--report-muted);margin:0;font-size:.9rem}
.sales-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 12px}
.sales-metric{padding:15px 16px;display:grid;gap:6px;align-content:start}
.sales-metric>span{color:var(--report-muted);font-weight:630;font-size:.875rem}
.sales-metric>strong{font-size:clamp(1.2rem,2.2vw,1.75rem);font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.sales-metric>small,.sales-note,.sales-scope{font-size:.8rem;color:var(--report-muted);line-height:1.42}
.sales-report-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(235px,1fr);gap:12px;align-items:start}
.sales-report-grid>section{padding:15px 16px;min-width:0}
.sales-report-grid h2{margin:0;color:var(--report-ink);font-size:1.06rem}
.sales-note{margin:5px 0 10px}
.sales-table{margin-top:9px}.sales-table tbody th{font-weight:600}.sales-table td{white-space:nowrap}
.sales-table tr>*:last-child{text-align:right}
.sales-status-inner{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:18px}
.sales-donut{height:106px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#6735a4 0 var(--sales-completed),#ad82dd var(--sales-completed) var(--sales-active),#e5dbe9 var(--sales-active) 100%);flex:none}
.sales-donut.is-empty{background:#eee8f2}
.sales-donut>div{width:75%;height:75%;border-radius:50%;background:white;display:grid;align-content:center;text-align:center}
.sales-donut strong{font-size:1.38rem;line-height:1.08;color:#4c287e}.sales-donut span{font-size:.75rem;color:var(--report-muted)}
.sales-status dl,.sales-methods dl{flex:1;margin:0;min-width:112px;display:grid;gap:8px}
.sales-status dl>div,.sales-methods dl>div{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:.875rem}
.sales-status dd,.sales-methods dd{margin:0;font-weight:700;white-space:nowrap}
.sales-methods dl>div{padding:8px 0;border-bottom:1px solid var(--report-line)}
.sales-methods dl>div:last-child{border-bottom:0}
.sales-methods dt small{display:block;margin-top:2px;font-size:.77rem;color:var(--report-muted)}
.sales-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#6735a4;margin-right:7px}
.sales-dot[data-kind=active]{background:#ad82dd}.sales-dot[data-kind=cancelled]{background:#ded2e6}
.sales-chart{display:grid;grid-template-columns:repeat(var(--sales-bars),minmax(34px,1fr));gap:4px;overflow:auto;padding:9px 2px 3px;margin-top:12px}
.sales-chart-column{border:0;background:transparent;display:grid;gap:6px;min-width:0;padding:0 2px;color:var(--report-muted);cursor:pointer}
.sales-chart-track{height:clamp(104px,16vw,160px);min-width:0;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid #e9dff0;background:repeating-linear-gradient(to top,transparent 0 calc(25% - 1px),#f5eff8 calc(25% - 1px) 25%)}
.sales-chart-track>span{width:min(76%,55px);height:var(--bar-height);background:#9466ca;border-radius:5px 5px 0 0;transition:background .15s}
.sales-chart-column:is(:hover,[aria-pressed=true]) .sales-chart-track>span{background:#6433a3}
.sales-chart-column small{font-size:.67rem;line-height:1.18;white-space:normal}
.sales-chart-caption{margin:6px 0 0;font-size:.82rem;line-height:1.35;min-height:1.25rem;color:var(--report-muted)}
.sales-chart-empty{min-height:110px;display:grid;place-items:center}
.sales-scope{margin:11px 0 0}
@media(max-width:1000px){
 .report-history-table :is(td,th){padding:9px 7px}
 .report-history-table td{font-size:.83rem}
}
@media(max-width:760px){
 .report-history-filters .order-history-search{grid-template-columns:repeat(2,minmax(0,1fr))}
 .report-custom-period{width:100%}.report-custom-period label{flex:1;min-width:90px}
 .report-history-table{overflow:visible;padding:6px 10px 8px}
 .report-history-table :is(table,tbody){display:block}
 .report-history-table thead{position:absolute;block-size:1px;inline-size:1px;overflow:hidden;clip-path:inset(50%)}
 .report-history-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--report-line);border-radius:10px;margin:0 0 8px;padding:6px}
 .report-history-table tbody tr:last-child{margin-bottom:0}
 .report-history-table tbody td{white-space:normal!important;border-bottom:0;padding:5px 6px}
 .report-history-table td::before{content:attr(data-column);display:block;color:var(--report-muted);font-size:.76rem;line-height:1.2;margin-bottom:3px}
 .report-history-table td:nth-child(3){grid-column:1/-1}
 .report-history-table td:nth-child(7){grid-column:1}
 .sales-report-grid,.sales-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sales-trend,.sales-neighborhoods{grid-column:1/-1}.sales-status{grid-row:3}
 .sales-chart{grid-template-columns:repeat(var(--sales-bars),minmax(28px,1fr))}
}
@media(max-width:480px){
 .report-workspace{padding-inline:9px}
 .report-history-filters,.report-sales-filters,.sales-report-grid>section{padding:12px}
 .report-period-options button{min-height:40px;padding-inline:8px}
 .report-history-filters .order-history-search label:first-child{grid-column:1/-1}
 .sales-report-grid{grid-template-columns:minmax(0,1fr)}
 .sales-trend,.sales-status,.sales-neighborhoods{grid-row:auto}
 .sales-chart{grid-template-columns:repeat(var(--sales-bars),minmax(22px,1fr))}
}

.sales-traffic{padding:15px 16px;margin-bottom:12px}
.sales-traffic h2{font-size:1.06rem;color:var(--report-ink);margin:0 0 12px}
.sales-traffic-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(155px,.31fr);gap:15px;align-items:stretch}
.sales-traffic-funnel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}
.sales-traffic-funnel article,.sales-conversion{display:grid;gap:5px;align-content:center;min-width:0}
.sales-traffic-funnel span,.sales-conversion span{color:var(--report-muted);font-size:.875rem;font-weight:620}
.sales-traffic-funnel strong,.sales-conversion strong{color:var(--report-ink);font-size:clamp(1.16rem,2.3vw,1.58rem);font-variant-numeric:tabular-nums;line-height:1.1}
.sales-traffic-track{height:8px;background:#f0eaf5;border-radius:8px;overflow:hidden}
.sales-traffic-track>div{height:100%;width:var(--traffic-fill);border-radius:8px;background:#9565c9}
.sales-traffic-funnel article:nth-child(2) .sales-traffic-track>div{background:#7747b2}
.sales-traffic-funnel article:nth-child(3) .sales-traffic-track>div{background:#5c3294}
.sales-conversion{border-radius:9px;background:#f4eafd;padding:9px 11px}
.sales-conversion strong{color:#542886}
.sales-conversion small{font-size:.76rem;color:var(--report-muted)}
.sales-traffic>.sales-note{margin:12px 0 0}
@media(max-width:620px){.sales-traffic-content{grid-template-columns:minmax(0,1fr)}.sales-traffic-funnel{gap:8px}.sales-conversion{grid-template-columns:auto auto;justify-content:space-between}.sales-conversion small{grid-column:1/-1}}

/* Match pickup cards in the board, including historical and completed orders. */
.report-history-table tbody tr[data-fulfillment=retirada]{--report-muted:#59471f;--report-accent:#624400;background:rgba(248,190,50,.12);color:#2f230b;border-color:#e7cf92}
.report-history-table tbody tr[data-fulfillment=retirada]:hover{background:rgba(248,190,50,.18)}
.report-history-table tbody tr[data-fulfillment=retirada] td{border-bottom-color:#e7d9b4}
