/* Overview, finance and recipe editor share the RollEm concept's compact work surfaces. */
.app-shell:has(.report-workspace),.app-shell:has(.recipe-workspace){--line:#e2e5e1;--muted:#7c8581;background:#f5f6f3}
.report-workspace,.recipe-workspace{color:#1f2425}
.report-workspace .page-heading,.recipe-page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.report-workspace .page-heading h1,.recipe-page-header h1{font-size:32px;letter-spacing:-1px;margin:0 0 5px}
.report-workspace .page-heading p:last-child,.recipe-page-header>div>p:last-child{font-size:13px;color:#858f8b}
.report-periods{display:flex;gap:6px;align-items:center;flex-wrap:wrap;padding:9px 12px;background:#fff;border:1px solid var(--line);border-radius:16px;margin-bottom:12px}
.report-period{min-width:90px;padding:9px 13px;border:0;border-radius:9px;background:#f0f2ef;color:#616b67;font-size:12px;font-weight:650}
.report-period:hover{background:#e7ebe7}.report-period.active{background:#fff0f0;color:#be2029}
.report-workspace>.filters{margin-bottom:16px;border:1px solid var(--line);border-radius:16px;background:#fff}
.report-metrics,.recipe-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:16px 0}
.report-metric,.recipe-metrics article{min-height:112px;display:flex;flex-direction:column;justify-content:space-between;padding:18px;background:#fff;border:1px solid var(--line);border-radius:16px}
.report-metric>span,.recipe-metrics article>span{font-size:12px;color:#78837f;font-weight:600}
.report-metric>strong,.recipe-metrics article>strong{font-size:26px;letter-spacing:-.7px;font-weight:750;line-height:1.15;font-variant-numeric:tabular-nums}
.report-metric>small,.recipe-metrics article>small{font-size:11px;color:#178359}
.report-metric-accent{background:#282226;border-color:#282226;color:#fff}.report-metric-accent>span{color:#d6cdd1}.report-metric-accent>small{color:#f5abb0}
.report-grid,.recipe-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:16px}
.report-panel,.recipe-panel{min-width:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px}
.report-panel-head,.recipe-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;margin-bottom:18px}
.report-panel-head h2,.recipe-panel-head h2{font-size:18px;line-height:1.25;margin:0 0 4px}.report-panel-head p,.recipe-panel-head p{margin:0;color:#87918d;font-size:11px}
.report-chart{display:flex;align-items:flex-end;gap:8px;height:230px;padding:12px 4px 2px;overflow-x:auto}
.report-chart-column{flex:1 0 31px;min-width:31px;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px}
.report-chart-value{font-size:10px;white-space:nowrap;color:#555f5b}.report-chart-bar{width:100%;height:100%;min-height:0;flex:1}.report-chart-bar rect{fill:#d7e0db}.report-chart-column:last-child .report-chart-bar rect{fill:#cb2632}.report-chart-label{min-height:28px;color:#8b9590;font-size:10px;white-space:nowrap}
.report-action-list>a,.recipe-usage-list>a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 2px;border-bottom:1px solid var(--line);font-size:12px}
.report-action-list>a:last-child,.recipe-usage-list>a:last-child{border-bottom:0}.report-action-list>a:hover,.recipe-usage-list>a:hover{color:var(--accent-dark)}
.report-action-list strong,.recipe-usage-list strong{font-weight:700}.report-action-list span,.recipe-usage-list span{color:#c42731;white-space:nowrap}
.report-breakdown{display:flex;flex-direction:column;gap:0}.report-breakdown>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:12px 2px;border-bottom:1px solid var(--line);font-size:12px}.report-breakdown>div:last-child{border-bottom:0}.report-breakdown strong{font-variant-numeric:tabular-nums}.report-breakdown small{grid-column:1/-1;color:#89938e}.report-footnote{font-size:11px;line-height:1.55;color:#8a948f;margin:15px 0 0}
.report-top-list{list-style:none;margin:0;padding:0}.report-top-list li{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:6px 9px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.report-top-list li:last-child{border-bottom:0}.report-top-list li>span{color:#cb2632;font-weight:700}.report-top-list small{grid-column:2;color:#88938e}.report-top-list b{grid-column:3;grid-row:1/3;font-variant-numeric:tabular-nums}
.recipe-page-header{margin:15px 0 21px}.recipe-header-save{min-width:175px}.recipe-mode{display:flex;align-items:center;gap:7px;margin-bottom:17px;padding:9px;background:#fff;border:1px solid var(--line);border-radius:14px;width:max-content;max-width:100%;flex-wrap:wrap}.recipe-mode>span:first-child{padding:0 12px;color:#74807a;font-size:12px;font-weight:650}.recipe-mode>a,.recipe-mode-option{display:inline-flex;padding:9px 18px;border-radius:9px;background:#f1f2ef;color:#656e69;font-size:12px;font-weight:700}.recipe-mode>a.active,.recipe-mode-option.active{background:#fae9ea;color:#b81b25}.recipe-mode>a:hover{background:#f9dfe2}
.recipe-workspace .catalog-alert,.recipe-workspace .catalog-error{margin:0 0 16px}.recipe-workspace .recipe-metrics{margin-top:0}.recipe-workspace .recipe-metrics article{min-height:110px}.recipe-workspace .catalog-actions-sticky{margin-top:16px;border:1px solid var(--line);border-radius:14px;position:sticky;bottom:0;z-index:4}
.recipe-panel{padding:19px}.recipe-panel .button.compact{white-space:normal;text-align:center}.recipe-target{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.recipe-target .catalog-field{min-width:0}.recipe-table{min-width:650px}.recipe-table th{background:#f7f9f7}.recipe-table td{border-bottom:1px solid #e6e9e6}.recipe-table select{max-width:none}.recipe-unit{white-space:nowrap;color:#7d8781}.recipe-line-cost{white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:650}.recipe-stock-summary{margin:15px 0 0;padding:12px;border-radius:9px;background:#e8f6ed;color:#277950;font-size:11px;line-height:1.6}
.recipe-output-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.recipe-output-fields>.catalog-field:has(textarea){grid-column:1/-1}.recipe-output-fields textarea{min-height:128px}.recipe-details{border-top:1px solid var(--line);margin-top:16px;padding-top:16px}.recipe-details summary{cursor:pointer;font-size:12px;font-weight:700;color:#5d6862}.recipe-details .recipe-output-fields{margin-top:15px}.recipe-flow-steps{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.recipe-flow-steps span{padding:8px 11px;border-radius:7px;background:#e9f1fb;color:#416baa;font-size:11px;font-weight:650}.recipe-flow-steps span:nth-of-type(2){background:#fff2e4;color:#a76a2a}.recipe-flow-steps span:nth-of-type(3){background:#fcebec;color:#bb2a32}.recipe-flow-steps span:nth-of-type(4){background:#e8f5ed;color:#268359}.recipe-flow-steps b{color:#9ca8a1}.recipe-flow p{font-size:11px;color:#86918b;line-height:1.6;margin:17px 0 0}
@media(max-width:1100px){.report-grid,.recipe-grid{grid-template-columns:1fr}.report-metrics,.recipe-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.report-workspace .page-heading,.recipe-page-header{display:block}.recipe-header-save{width:100%;margin-top:14px}.report-periods{overflow-x:auto;flex-wrap:nowrap}.report-period{flex:none}.report-metrics,.recipe-metrics{gap:8px}.report-metric,.recipe-metrics article{min-height:100px;padding:13px}.report-metric>strong,.recipe-metrics article>strong{font-size:20px}.report-panel,.recipe-panel{padding:15px}.report-chart{height:185px}.recipe-mode{width:100%}.recipe-mode>span:first-child{width:100%}.recipe-mode>a{flex:1;justify-content:center}.recipe-target,.recipe-output-fields{grid-template-columns:1fr}.recipe-output-fields>.catalog-field:has(textarea){grid-column:auto}.recipe-workspace .catalog-actions-sticky{padding:10px;flex-wrap:wrap}.recipe-workspace .catalog-actions-sticky .catalog-save-status{width:100%}}

#main-sidebar nav{min-height:0;overflow-y:auto;scrollbar-width:thin}
