.performance-shell{display:grid;gap:2rem}.performance-toolbar{display:flex;align-items:end;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:1rem 1.25rem;background:#fff;border:1px solid #dbe6e4;border-radius:1rem}.performance-toolbar label{display:grid;gap:.35rem;font-weight:700;color:#173f3c}.performance-toolbar select,.performance-toolbar input{min-height:44px;border:1px solid #9fb8b4;border-radius:.55rem;padding:.55rem .7rem;background:#fff;color:#052d2b}.custom-period{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap}.currency-summary{display:grid;gap:.75rem}.currency-summary>h3,.category-group>h3,.trend-group>h3{font-size:1rem;letter-spacing:.12em;color:#33615e}.performance-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.metric-card,.receivable-card{padding:1.1rem;background:#fff;border:1px solid #dbe6e4;border-radius:1rem;box-shadow:0 8px 24px rgba(5,45,43,.05)}.metric-card span,.metric-card small{display:block;color:#58706d}.metric-card strong{display:block;margin:.35rem 0;font-size:clamp(1.25rem,2vw,1.8rem);color:#063d3a;overflow-wrap:anywhere}.metric-card.is-negative strong{color:#a33a2b}.health-grid,.status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.health-grid article,.status-grid div{display:grid;gap:.2rem;padding:1rem;border-radius:.8rem;background:#f4f8f7;border:1px solid #dbe6e4}.health-grid strong,.status-grid strong{font-size:1.5rem;color:#063d3a}.performance-section{display:grid;gap:1rem}.performance-section-head{display:flex;justify-content:space-between;align-items:end;gap:1rem}.performance-section-head h2{margin:0}.performance-section-head p{margin:.25rem 0 0;color:#58706d}.receivables-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem}.receivable-card h3{margin-top:0}.receivable-card dl{display:grid;gap:.55rem;margin:0}.receivable-card dl div{display:flex;justify-content:space-between;gap:1rem}.receivable-card dd{margin:0;font-weight:800}.responsive-table{overflow-x:auto;border:1px solid #dbe6e4;border-radius:.8rem;background:#fff}.responsive-table table{width:100%;min-width:760px;border-collapse:collapse}.responsive-table th,.responsive-table td{padding:.75rem;text-align:left;border-bottom:1px solid #e5edeb;white-space:nowrap}.responsive-table th{font-size:.82rem;color:#4d6966;background:#f4f8f7}.analysis-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem}.analysis-card{padding:1.25rem;background:#fff;border:1px solid #dbe6e4;border-radius:1rem}.category-group+.category-group,.trend-group+.trend-group{margin-top:1.25rem}.category-row{display:grid;gap:.35rem;margin:.8rem 0}.category-row>div:first-child{display:flex;justify-content:space-between;gap:1rem}.category-row span{color:#58706d;font-size:.9rem}.category-track{height:.5rem;background:#e5edeb;border-radius:99px;overflow:hidden}.category-track i{display:block;height:100%;background:#d97706;border-radius:inherit}.trend-chart{display:grid;grid-template-columns:repeat(6,minmax(110px,1fr));gap:.65rem;overflow-x:auto;padding:.5rem 0}.trend-month{display:grid;gap:.25rem;font-size:.78rem;color:#58706d}.trend-month strong{color:#173f3c}.trend-bars{height:130px;display:flex;align-items:end;justify-content:center;gap:8px;background:linear-gradient(to top,#e5edeb 1px,transparent 1px);background-size:100% 25%}.trend-bars i{width:24px;min-height:2px;border-radius:5px 5px 0 0}.trend-bars .income{background:#0b7772}.trend-bars .expense{background:#d97706}.top-customers{display:grid;gap:.6rem}.top-customers article{display:flex;justify-content:space-between;gap:1rem;padding:.75rem;background:#f4f8f7;border-radius:.7rem}.top-customers span{color:#58706d;text-align:right}.performance-empty{padding:1.2rem;text-align:center;background:#f4f8f7;border:1px dashed #9fb8b4;border-radius:.8rem}.performance-privacy,.performance-disclaimer{padding:1rem 1.25rem;border-radius:.8rem;background:#eef7f6;color:#284e4b}.performance-disclaimer{background:#fff7ed;color:#69411c}.performance-loading[aria-busy=true]{opacity:.65}.quick-actions{display:flex;gap:.6rem;flex-wrap:wrap}
@media(max-width:900px){.performance-metrics{grid-template-columns:1fr 1fr}.analysis-grid{grid-template-columns:1fr}.health-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.performance-metrics,.health-grid{grid-template-columns:1fr}.performance-toolbar,.custom-period{align-items:stretch}.performance-toolbar label,.performance-toolbar select,.custom-period .btn{width:100%}.status-grid{grid-template-columns:1fr 1fr}.top-customers article{display:grid}.top-customers span{text-align:left}.metric-card strong{font-size:1.35rem}}
@media print{.performance-toolbar,.quick-actions{display:none}.performance-shell{gap:1rem}.metric-card,.analysis-card,.receivable-card{box-shadow:none}}
