/* A calmer white/crimson palette, with distinct accessible chart colors. */
@media screen{
:root{--green:#1246be;--ink:#192339;--muted:#64748b;--line:#e2e8f0;background:#f5f7fb;color:#243247}body{background:#f5f7fb;color:#243247}aside{border-left:1px solid #e3e8f0;background:#fff}.brand{color:#1243b5}.brand span{color:#64748b}nav button{color:#475569}nav button.active{color:#0e3ca9;background:#f0f4ff;box-shadow:inset -3px 0 #1246be}nav button:hover{background:#f8fafc}button,.button-link{background:#1246be;color:#fff}.ghost{background:#fff;border:1px solid #dce3ed;color:#38465e}.ghost:hover{background:#f1f5ff;border-color:#bcc9e8}h1,.toolbar h2,.panel h2{color:#1e293b}.page-description,header small{color:#5b6678}.cards .card{border:1px solid #e2e8f0;border-top:3px solid #cbd5e1;box-shadow:0 5px 20px #1e293b05}.cards .card:nth-child(4n+1){border-top-color:#2563eb}.cards .card:nth-child(4n+2){border-top-color:#1246be}.cards .card:nth-child(4n+3){border-top-color:#64748b}.cards .card:nth-child(4n){border-top-color:#0f766e}.card strong{color:#17243a}.card small{color:#475569}.card em{color:#64748b}.panel{border-color:#e2e8f0;box-shadow:0 5px 20px #1e293b04}.toolbar input,input,select{border-color:#d7deea;background:#fff;color:#243247}.hint{color:#5b6678}th{background:#f3f6fa;color:#475569}td{color:#25334a;border-color:#edf0f5}.badge.paid{background:#e4f4ee;color:#116149}.badge.partial{background:#fff2d8;color:#8a520b}.badge.credit,.badge.debt{background:#fff0f3;color:#a80e35}.badge.void{background:#eef2f6;color:#5a6575}.side-bottom,.side-bottom small{color:#64748b}
}
.chart-section{margin:28px 0}.section-caption{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 16px}.section-caption h2{margin:0;color:#1e293b;font-size:20px}.section-caption p{margin:5px 0;color:#64748b;font-size:12px}.section-caption label{max-width:200px}.insight-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.insight-grid .panel{margin:0;min-width:0;padding:22px}.insight-grid .toolbar{margin-bottom:16px}.chart-empty{display:grid;place-items:center;min-height:190px;color:#64748b;text-align:center;background:#f8fafc;border:1px dashed #d9e0ea;border-radius:10px;padding:24px}.trend-chart{display:block;width:100%;height:auto;direction:ltr;overflow:visible;font-family:Arial,sans-serif}.trend-chart g:focus{outline:none}.trend-chart g:focus circle{stroke:#17243a;stroke-width:2}.chart-legend{display:flex;gap:16px;align-items:center;flex-wrap:wrap;color:#475569;font-size:12px}.chart-legend span{display:flex;align-items:center;gap:6px}.chart-legend i{width:9px;height:9px;border-radius:50%;display:inline-block}.sales-dot{background:#2563eb}.profit-dot{background:#0f766e}.chart-legend small{margin-right:auto;color:#64748b}.chart-values{font-size:12px;margin-top:10px}.chart-values summary{cursor:pointer;color:#475569;padding:8px 0}.chart-values td,.chart-values th{font-size:11px}.chart-bars{display:grid;gap:18px}.chart-bar-label{display:flex;justify-content:space-between;gap:14px;font-size:12px;line-height:1.6;margin-bottom:6px}.chart-bar-label span{min-width:0;overflow-wrap:anywhere;color:#475569}.chart-bar-label b{flex-shrink:0;font:600 12px Arial;color:#1e293b}.chart-track{height:10px;border-radius:6px;background:#f1f5f9;position:relative;direction:ltr;overflow:hidden}.chart-fill{display:block;position:absolute;top:0;height:100%;border-radius:6px}.chart-zero{position:absolute;height:100%;width:1px;background:#94a3b8;z-index:1}.chart-fill.sales,.chart-fill.tone-0{background:#2563eb}.chart-fill.purchase,.chart-fill.negative{background:#be123c}.chart-fill.profit,.chart-fill.tone-1{background:#0f766e}.chart-fill.cost,.chart-fill.tone-2{background:#64748b}.chart-fill.expense,.chart-fill.tone-3{background:#b77915}.chart-fill.tone-4{background:#7c3aed}@media(max-width:900px){.insight-grid{grid-template-columns:1fr}.section-caption{flex-wrap:wrap}.insight-grid .panel{padding:18px}.chart-legend{font-size:11px}.chart-bar-label{font-size:12px}}@media print{.chart-section{display:none}}
@media screen and (max-width:600px){.trend-chart text{font-size:18px}.chart-bar-label b{font-size:13px}}
