/* Back-office dashboard only: honest zero values and readable narrow layouts. */
.dashboard-overview-heading{display:flex;align-items:center;gap:16px;flex-wrap:wrap;min-height:40px;margin:0 0 12px}.dashboard-overview-heading h1{font:700 20px var(--font);margin:0 auto 0 0}.dashboard-overview-heading .dashboard-view-tabs{margin:0;padding:3px;border-radius:7px}.dashboard-overview-heading .dashboard-view-tabs button{min-height:34px;padding:8px 14px;font-size:12px}.dashboard-overview-heading>.button{min-height:38px;padding:9px 14px}
.dashboard-range-filter{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:16px;margin:16px 0}
.dashboard-range-filter label{display:grid;gap:6px;font-size:12px;min-width:185px;color:var(--muted)}
.dashboard-range-filter input{font-size:14px;min-width:0;padding:10px}
.dashboard-range-filter .button{min-height:42px}
.dashboard-range-arrow{align-self:center;color:var(--muted);padding-top:20px}
.dashboard-range-outlet{display:flex;gap:10px;align-items:center;margin-left:auto;align-self:center;min-width:0}
.dashboard-range-outlet svg{width:24px;height:24px;color:var(--brand,#086bad);flex-shrink:0}
.dashboard-range-outlet strong,.dashboard-range-outlet small{display:block}.dashboard-range-outlet small{font-size:11px;color:var(--muted);margin-top:4px}
.dashboard-compact-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:var(--surface,#fff);border:1px solid var(--brand-line,#d1e6f3);border-radius:12px;margin:16px 0;overflow:visible}
.dashboard-summary-cell,.dashboard-summary-placeholder{padding:18px 20px;min-width:0;min-height:105px;border-right:1px solid var(--brand-line,#d1e6f3)}
.dashboard-summary-cell:nth-child(5),.dashboard-summary-placeholder:nth-child(5),.dashboard-summary-placeholder:nth-child(10){border-right:0}
.dashboard-summary-cell:nth-child(n+6),.dashboard-summary-placeholder:nth-child(n+6){border-top:1px solid var(--brand-line,#d1e6f3)}
.dashboard-summary-label{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:13px;font-weight:650;line-height:1.4}
.dashboard-summary-value{display:flex;align-items:center;gap:10px;margin-top:10px;color:var(--brand,#086bad)}
.dashboard-summary-value.is-negative{color:#aa3d38}
.dashboard-summary-value strong{font-size:clamp(16px,1.2vw,21px);overflow-wrap:anywhere;font-weight:650;font-variant-numeric:tabular-nums}
.dashboard-summary-icon{display:grid;place-items:center;background:var(--brand-soft,#e0f3fc);border-radius:7px;flex-shrink:0;width:32px;height:32px}.dashboard-summary-icon svg{width:21px;height:21px}
.dashboard-definition-button{border:1px solid var(--brand-line,#d1e6f3);background:transparent;color:var(--brand,#086bad);border-radius:50%;width:26px;height:26px;min-width:26px;font-size:12px;cursor:pointer;padding:0}
.dashboard-definition-button:focus-visible{outline:2px solid var(--brand,#086bad);outline-offset:2px}
.dashboard-definition-tooltip{position:fixed;z-index:700;background:#173b53;color:white;padding:14px 16px;border-radius:10px;box-shadow:0 8px 30px #153b5333;font-size:13px;font-weight:400;line-height:1.6;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}
.dashboard-definition-tooltip[hidden]{display:none!important}
.dashboard-tooltip-title,.dashboard-tooltip-copy,.dashboard-tooltip-example{display:block}.dashboard-tooltip-title{margin-bottom:5px;font-size:14px;font-weight:650}.dashboard-tooltip-example{margin-top:10px;padding-top:8px;border-top:1px solid #ffffff35;color:#e0f2fc;font-size:12px}.dashboard-summary-detail{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin-top:7px;color:var(--muted);font-size:11px;line-height:1.4}.dashboard-summary-detail strong{color:var(--ink);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.dashboard-summary-explanation,body.backoffice-mode #app-shell .dashboard-summary-explanation{margin:12px 0 0;color:#526c80;font-size:12px;font-weight:400;line-height:1.55;overflow-wrap:anywhere}
.dashboard-business{margin:16px 0;padding:20px}.dashboard-business>header{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.dashboard-business h2{font-size:16px;margin:0}.dashboard-business [role=tablist]{display:flex;flex-wrap:wrap;gap:4px;background:var(--brand-soft,#f0f8fc);padding:4px;border-radius:7px}
.dashboard-business [role=tab]{background:none;border:0;border-radius:5px;padding:8px 12px;color:var(--muted);font-size:12px;cursor:pointer}.dashboard-business [role=tab].active{background:#fff;color:var(--brand,#086bad);box-shadow:0 1px 5px #123d5510}
.dashboard-business-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(240px,2fr);gap:30px;align-items:center;padding-top:22px}
.dashboard-sales-line{width:100%;height:auto;min-height:180px;overflow:visible}.dashboard-line-grid{stroke:var(--brand-line,#d1e6f3);stroke-width:1;fill:none}.dashboard-line-area{fill:#086bad10}.dashboard-line-stroke{stroke:var(--brand,#086bad);stroke-width:2.5;fill:none}.dashboard-sales-line text{font-size:13px;fill:var(--muted)}
.dashboard-business-note{font-size:11px;color:var(--muted);line-height:1.5;padding-top:10px}
.dashboard-payment-donut{width:160px;height:160px;margin:0 auto;border-radius:50%;padding:24px}.dashboard-payment-donut>span{height:100%;display:grid;place-items:center;border-radius:50%;background:#fff;padding:8px}.dashboard-payment-donut strong{font-size:14px;text-align:center;overflow-wrap:anywhere}
.dashboard-payment-legend{margin:15px auto 0;max-width:340px;font-size:12px}.dashboard-payment-legend>div{display:flex;align-items:center;gap:8px;margin:7px 0}.dashboard-payment-legend i{width:8px;height:8px;border-radius:50%;flex-shrink:0}.dashboard-payment-legend strong{margin-left:auto;white-space:nowrap}.dashboard-payment-legend p{text-align:center;color:var(--muted)}
.dashboard-more>summary{cursor:pointer;font-size:13px;color:var(--brand,#086bad);padding:10px}.dashboard-more .dashboard-grid{margin-top:10px}
@media(max-width:760px){.dashboard-definition-button{width:32px;height:32px;min-width:32px}.dashboard-overview-heading>.button{order:1}.dashboard-overview-heading .dashboard-view-tabs{order:2;width:100%}}
@media(max-width:480px){.dashboard-range-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}.dashboard-range-filter label,.dashboard-range-outlet{grid-column:1/-1;min-width:0}.dashboard-range-filter input{width:100%}.dashboard-range-filter .button{width:100%}}
@media(max-width:1050px){.dashboard-summary-cell,.dashboard-summary-placeholder{padding:14px 12px}.dashboard-range-outlet{margin-left:0}.dashboard-summary-label{font-size:12px}.dashboard-summary-value{gap:6px}.dashboard-summary-icon{width:28px;height:28px}}
@media(max-width:760px){.dashboard-compact-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-summary-placeholder{display:none}.dashboard-summary-cell{border-top:1px solid var(--brand-line,#d1e6f3)!important;border-right:1px solid var(--brand-line,#d1e6f3)!important}.dashboard-summary-cell:nth-child(-n+2){border-top:0!important}.dashboard-summary-cell:nth-child(even){border-right:0!important}.dashboard-business-layout{grid-template-columns:1fr}.dashboard-summary-value strong{font-size:20px}.dashboard-range-filter label{flex:1;min-width:160px}.dashboard-range-arrow{display:none}.dashboard-range-outlet{width:100%}.dashboard-range-filter{padding:12px}.dashboard-business{padding:14px}.dashboard-sales-line{min-height:140px}}
.dashboard-summary { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
.dashboard-sales-pulse .sales-chart { gap:4px; }
.dashboard-sales-pulse .bar { min-height:0; }
.dashboard-sales-pulse .bar-wrap { border-bottom:1px solid var(--brand-line,#d1e6f3); }
.dashboard-chart-empty { margin:8px 0 0;color:var(--muted,#58748a);font-size:12px; }
.dashboard-stat-controls>label { min-width:0; }
.dashboard-stat-controls .report-range { overflow-wrap:anywhere; }
.dashboard-stat-main .report-chart { overflow-x:auto; }
.dashboard-stat-main .report-bar-column { min-width:22px; }
.dashboard-stat-main .report-chart[data-period="yearly"] { min-width:0;gap:3px; }
.dashboard-stat-main .report-chart[data-period="yearly"] .report-bar-column { min-width:0; }
.dashboard-stat-main .report-bars b,.dashboard-stat-main .report-legend .collected { background:#12a594; }
.dashboard-statistics-grid .dashboard-breakdown-copy { min-width:0; }
.dashboard-statistics-grid .dashboard-breakdown-copy strong { overflow-wrap:anywhere; }
@media(max-width:620px) {
  .dashboard-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-summary .stat-value { font-size:clamp(20px,5vw,30px);overflow-wrap:anywhere; }
  .dashboard-stat-controls { flex-wrap:wrap; }
  .dashboard-stat-controls .report-range { width:100%; }
}
