#receiptsDashboard .receipts-stack{display:grid;gap:16px}
#receiptsDashboard .receipts-filter{align-items:end}
#receiptsDashboard .receipts-status{margin:0;padding:12px 16px;border:1px solid #d7e4fa;border-radius:10px;background:#f3f7ff;color:#405878}
#receiptsDashboard .receipts-note{font-size:12px;line-height:1.6;color:#7585a0;margin:0}
#receiptsDashboard .receipts-empty{display:flex;align-items:center;justify-content:center;min-height:210px;color:#8190a8;text-align:center;padding:24px}
#receiptsDashboard .receipts-trend{min-height:280px}
#receiptsDashboard .receipts-details{padding:12px 16px;color:#7585a0;font-size:12px}
#receiptsDashboard .receipts-chart-head{font-size:12px;color:#7585a0;font-weight:400}
#receiptsDashboard #receiptsTable th button{border:0;background:transparent;padding:0;color:inherit;font:inherit;cursor:pointer}
#receiptsDashboard #receiptsTable th[aria-sort=ascending] button::after{content:' ↑';color:#2454da}
#receiptsDashboard #receiptsTable th[aria-sort=descending] button::after{content:' ↓';color:#2454da}
#receiptsDashboard #receiptsTable th:not([aria-sort]) button::after{content:' ↕';color:#97a8bf}
#receiptsDashboard .receipts-amount{text-align:right}
#receiptsDashboard .receipts-sync{display:flex;flex-wrap:wrap;gap:12px 28px;padding:14px 16px}
@media(max-width:900px){#receiptsDashboard .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#receiptsDashboard .dash-grid{grid-template-columns:1fr}}

#receiptsDashboard .receipts-filter{display:grid;grid-template-columns:150px 150px 120px minmax(170px,1fr) auto auto;gap:12px}
body:has(#receiptsDashboard:not(.hidden)) .topbar .actions>.badge{display:none}
@media(max-width:1100px){#receiptsDashboard .receipts-filter{grid-template-columns:repeat(3,minmax(0,1fr))}}
#receiptsDashboard .receipts-chart{padding:20px;min-height:260px}
#receiptsDashboard .receipts-trend svg{width:100%;height:auto;display:block}
#receiptsDashboard svg text{font:11px sans-serif;fill:#6a7d99}
#receiptsDashboard .receipts-day{cursor:pointer}
#receiptsDashboard .receipts-day:focus{outline:2px solid #2454da}
#receiptsDashboard .receipts-legend{text-align:left;color:#5069e8;font-size:12px}
#receiptsDashboard .receipts-legend span{color:#ce8429;margin-left:16px}
#receiptsDashboard .receipts-country-layout{display:grid;grid-template-columns:minmax(160px,45%) 1fr;align-items:center;gap:18px}
#receiptsDashboard .receipts-country-layout svg{width:100%;max-width:280px}
#receiptsDashboard .receipts-donut-total{font-size:16px;font-weight:700;fill:#172943}
#receiptsDashboard .receipts-country-legend>div{display:flex;gap:8px;padding:7px 0;font-size:12px}
#receiptsDashboard .receipts-country-legend strong{margin-left:auto;font-variant-numeric:tabular-nums}
#receiptsDashboard .receipts-rank{max-height:330px;overflow:auto}
#receiptsDashboard .receipts-rank>div{display:flex;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid #edf1f7;font-size:13px}
#receiptsDashboard .receipts-rank strong{white-space:nowrap;font-variant-numeric:tabular-nums}
#receiptsDashboard .receipts-signed>div{display:grid;grid-template-columns:65px 1fr 110px;gap:8px;align-items:center;font-size:12px;margin:12px 0}
#receiptsDashboard .receipts-bar-track{position:relative;height:18px;background:linear-gradient(90deg,transparent 49.7%,#b8c5d9 50%,transparent 50.3%)}
#receiptsDashboard .receipts-bar-track i{position:absolute;top:2px;height:14px;border-radius:3px}
#receiptsDashboard .receipts-signed strong{text-align:right}
#receiptsDashboard .receipts-pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:16px;font-size:12px;color:#7585a0}
#receiptsDashboard .receipts-pagination span{margin-right:auto}
#receiptsDashboard .receipts-amount small{display:block;color:#7585a0;margin-top:4px;font-size:11px}
#receiptsDashboard .receipts-id{font-variant-numeric:tabular-nums;white-space:nowrap}
#receiptsDashboard .receipts-dialog{width:min(1200px,94vw);max-height:85vh;padding:0;border:1px solid #d7e4fa;border-radius:12px;color:#172943}
#receiptsDashboard .receipts-dialog::backdrop{background:#14233d66}
#receiptsDashboard .receipts-dialog .table-wrap{max-height:55vh;overflow:auto}
#receiptsDashboard .receipts-dialog td{white-space:nowrap}
#receiptsDashboard .receipts-dialog .panel-head{display:flex;justify-content:space-between;padding:18px}
@media(max-width:700px){#receiptsDashboard .receipts-country-layout{grid-template-columns:1fr}#receiptsDashboard .receipts-country-layout svg{margin:auto}}
/* Match payment dashboard dimensions and clickable breakdown rows. */
#receiptsDashboard .receipts-chart{padding:14px}
#receiptsDashboard .receipts-trend svg{height:420px}
#receiptsDashboard .receipts-country-legend{display:grid;gap:8px}
#receiptsDashboard .receipts-country-legend>button{padding:6px 3px;font-size:12px}
#receiptsDashboard [data-country]{cursor:pointer}
#receiptsDashboard .receipts-rank{max-height:none;overflow:visible}
#receiptsDashboard .receipts-rank>button{grid-template-columns:22px minmax(0,1fr) minmax(60px,1.1fr) max-content;gap:12px;min-height:36px;padding:8px 3px;border:0;font-size:12px}
#receiptsDashboard .receipts-rank-position{font-size:11px;color:#64748b}
#receiptsDashboard .receipts-rank-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#receiptsDashboard .receipts-rank-track{position:relative;display:block;height:13px;background:#edf2fc;border-radius:3px;overflow:hidden}
#receiptsDashboard .receipts-rank-track i{position:absolute;top:0;height:100%;border-radius:3px}
#receiptsDashboard .receipts-rank-track.is-signed:after{content:'';position:absolute;left:50%;top:0;height:100%;border-left:1px solid #a6b6ce}
#receiptsDashboard .receipts-rank strong{font-size:12px;min-width:90px;text-align:right}
#receiptsDashboard .receipts-signed>button{display:grid;grid-template-columns:65px 1fr 110px;gap:8px;align-items:center;font:inherit;font-size:12px;margin:12px 0;border:0;background:none;width:100%;cursor:pointer;text-align:left;padding:5px}
#receiptsDashboard .receipts-dialog{width:min(1080px,94vw);box-shadow:0 16px 48px #14233d33}
#receiptsDashboard .receipts-dialog .panel-head h2{font-size:16px;margin:0}
#receiptsDashboard .receipts-dialog th{height:44px;padding:10px 14px;font-size:12px}
#receiptsDashboard .receipts-dialog td{padding:12px 14px;font-size:13px}

#receiptsDashboard .receipts-distributions{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
#receiptsDashboard .receipts-distributions>.panel{min-width:0;display:flex;flex-direction:column}
#receiptsDashboard #receiptsCountryChart{flex:1;display:flex;min-height:300px}
#receiptsDashboard .receipts-country-layout{width:100%;grid-template-columns:minmax(130px,.85fr) minmax(0,1.15fr);align-items:stretch}
#receiptsDashboard .receipts-country-layout svg{align-self:center;justify-self:center;max-width:320px}
#receiptsDashboard .receipts-country-legend{display:flex;flex-direction:column;justify-content:space-evenly;gap:8px;min-width:0}
#receiptsDashboard .receipts-country-legend>button{min-height:30px}
#receiptsDashboard .receipts-trend .expense-trend-svg{width:100%;height:420px}
@media(max-width:1100px){#receiptsDashboard .receipts-rank>button{gap:8px;grid-template-columns:18px minmax(0,1fr) minmax(40px,.7fr) max-content}#receiptsDashboard .receipts-rank strong{min-width:78px}}
@media(max-width:900px){#receiptsDashboard .receipts-distributions{grid-template-columns:minmax(0,1fr)}}
@media(max-width:500px){#receiptsDashboard .receipts-country-layout{grid-template-columns:minmax(0,1fr)}#receiptsDashboard .receipts-country-layout svg{max-width:230px}#receiptsDashboard .receipts-country-legend{gap:8px}#receiptsDashboard .receipts-filter{grid-template-columns:repeat(2,minmax(0,1fr))}}

#receiptsDashboard #receiptsTable{table-layout:fixed;width:100%;min-width:1200px}
#receiptsDashboard #receiptsTable th{width:16.666667%}
#receiptsDashboard #receiptsTable th,#receiptsDashboard #receiptsTable td{box-sizing:border-box;padding-left:16px;padding-right:16px;white-space:nowrap}

#receiptsDashboard #receiptsTable th:last-child,#receiptsDashboard #receiptsTable td:last-child{text-align:center}

#receiptsDashboard .receipts-mode-tabs{display:flex;gap:10px}
#receiptsDashboard .receipts-payment-panel{display:none}
#receiptsDashboard[data-mode=payments] .receipts-settlement{display:none}
#receiptsDashboard[data-mode=payments] .receipts-payment-panel{display:grid;gap:16px}
#receiptsDashboard #receiptsPaymentsPaid{font-size:20px;line-height:1.5}
#receiptsDashboard #receiptsPaymentsTable{width:100%;min-width:1150px;table-layout:fixed}
#receiptsDashboard #receiptsPaymentsTable th,#receiptsDashboard #receiptsPaymentsTable td{width:14.2857%;white-space:nowrap}
#receiptsDashboard #receiptsPaymentsTable th button{border:0;background:none;font:inherit;color:inherit;cursor:pointer}
#receiptsDashboard #receiptsPaymentsTable th[aria-sort=ascending] button:after{content:' ↑'}
#receiptsDashboard #receiptsPaymentsTable th[aria-sort=descending] button:after{content:' ↓'}
#receiptsDashboard #receiptsPaymentsTable td:last-child,#receiptsDashboard #receiptsPaymentsTable th:last-child{text-align:center}

@media(min-width:901px){#receiptsDashboard .kpis.receipts-settlement{grid-template-columns:repeat(5,minmax(0,1fr))}}
