.forecast-page{min-width:0;max-width:100%;color:var(--text)}
.forecast-heading,.forecast-toolbar,.forecast-filters,.forecast-footer,.forecast-footer>div{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.forecast-heading{justify-content:space-between;align-items:flex-start;margin-bottom:24px}.forecast-heading h1{margin:4px 0 8px;font-size:28px}.forecast-heading p{margin:0;color:var(--muted)}.forecast-eyebrow{font-size:11px;letter-spacing:.12em;color:var(--accent-text)!important}
.forecast-toolbar,.forecast-filters{margin:16px 0;align-items:flex-end}.forecast-page label{display:flex;flex-direction:column;gap:7px;font-size:13px;color:var(--soft)}
.forecast-page input:not([type=checkbox]),.forecast-page select{background:var(--input);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:10px;min-height:40px;font:inherit;max-width:100%;box-sizing:border-box}
.forecast-page input:focus,.forecast-page select:focus{outline:2px solid var(--focus);outline-offset:2px}.forecast-page .forecast-switch{flex-direction:row;align-items:center;align-self:center}.forecast-toolbar #forecast-status{color:var(--muted);font-size:13px;align-self:center}
.forecast-period,.forecast-note{font-size:13px;line-height:1.65;color:var(--muted)}.forecast-period strong{color:var(--soft)}
.forecast-warning,.forecast-snapshot{padding:12px 16px;border:1px solid var(--warning-line);background:var(--warning-bg);color:var(--warning-text);border-radius:10px;line-height:1.5;overflow-wrap:anywhere}
.forecast-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.forecast-cards article{padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:14px;min-width:0}.forecast-cards span,.forecast-cards small{display:block;color:var(--muted);font-size:13px}.forecast-cards strong{display:block;font-size:clamp(20px,2vw,28px);margin:12px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.forecast-season{padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:12px}.forecast-season summary{cursor:pointer;color:var(--accent-text);font-weight:600}.forecast-season p{color:var(--muted);font-size:13px;line-height:1.6;max-width:900px}.forecast-category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.forecast-category-grid label>span{display:flex;gap:10px;align-items:center}.forecast-category-grid input{width:130px}.forecast-category-grid b{font-weight:400}
.forecast-filters label:first-child{flex:1;min-width:180px}.forecast-filters label:nth-child(2){min-width:160px}.forecast-filters>span{padding-bottom:12px;color:var(--muted);font-size:13px}
.forecast-scroll{overflow:auto;max-width:100%;max-height:65vh;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.forecast-table{border-collapse:separate;border-spacing:0;width:1450px;table-layout:fixed;font-size:13px}.forecast-table th,.forecast-table td{padding:14px 12px;border-bottom:1px solid var(--line);text-align:right;vertical-align:top;line-height:1.5;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.forecast-table thead th{position:sticky;top:0;background:var(--table-head);color:var(--soft);z-index:2;font-weight:600;overflow-wrap:normal;white-space:normal}.forecast-table th:first-child{width:240px;text-align:left;position:sticky;left:0;background:var(--panel);z-index:1}.forecast-table thead th:first-child{z-index:3;background:var(--table-head)}.forecast-table th:nth-child(5){width:145px}.forecast-table th:last-child{width:160px}.forecast-table small{display:block;color:var(--muted);font-size:11px;font-weight:400;line-height:1.5;margin-top:5px}.forecast-table td input{width:120px;text-align:right}.forecast-table tbody th strong{font-weight:500}.forecast-issue{display:block;color:var(--warning-text);font-size:11px;font-weight:400;margin-top:7px}.forecast-fallback{color:var(--red)}.forecast-footer{justify-content:space-between;margin:18px 0}.forecast-footer span{font-size:13px;color:var(--muted)}.forecast-empty{padding:40px;text-align:center;color:var(--muted)}
html[data-density=compact] .forecast-table th,html[data-density=compact] .forecast-table td{padding:8px 10px}html[data-density=compact] .forecast-cards article{padding:14px}
.forecast-page .forecast-table th,.forecast-page .forecast-table td{font-size:13px;color:var(--text);white-space:normal;letter-spacing:normal;text-transform:none}
.forecast-page .forecast-table thead th{font-size:12px;color:var(--soft)}
.forecast-page .forecast-table tbody th strong{display:block;white-space:normal;overflow-wrap:anywhere;max-width:100%}
.forecast-page .forecast-table td.forecast-fallback{color:var(--red)}
@media(max-width:700px){.forecast-cards{grid-template-columns:1fr;gap:10px}.forecast-cards article{padding:14px}.forecast-cards strong{margin:6px 0;font-size:24px}.forecast-heading h1{font-size:24px}.forecast-heading{gap:12px}.forecast-footer>div{gap:8px;max-width:100%}.forecast-toolbar{gap:12px}.forecast-table th:first-child{width:180px}.forecast-filters label{width:100%}.forecast-heading>div{max-width:100%}.forecast-page .btn{white-space:normal}}

/* Category factors remain optional; monthly analytics inputs are an explicit alternative. */
.forecast-category-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));align-items:start}
.forecast-category-card{min-width:0;border:1px solid var(--line);border-radius:10px;padding:16px;background:var(--panel)}
.forecast-category-card h3{margin:0 0 14px;color:var(--text);font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.forecast-category-card>label+label{margin-top:14px}.forecast-category-card label{min-width:0;overflow-wrap:anywhere}
.forecast-category-card select{width:100%}.forecast-category-card p{margin:12px 0}
.forecast-month-inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:14px}
.forecast-month-inputs small{color:var(--muted);font-size:12px}.forecast-month-inputs label>span{display:flex;gap:8px;align-items:center;min-width:0}
.forecast-month-inputs input{width:120px;min-width:0}.forecast-month-inputs b{font-weight:400}
.forecast-page .forecast-table{width:1530px}.forecast-page .forecast-table th:nth-child(5){width:190px}
.forecast-warning .btn{margin-top:8px;max-width:100%}
html[data-density=compact] .forecast-category-card{padding:12px}

.forecast-category-result{display:flex;flex-direction:column;gap:5px;margin-top:16px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--input);color:var(--text);font-size:13px;line-height:1.5;min-height:46px;overflow-wrap:anywhere}
.forecast-category-result strong{font-size:16px;font-variant-numeric:tabular-nums}.forecast-category-result span{color:var(--soft)}

.forecast-stock-tools{display:flex;gap:16px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.forecast-stock-tools>div:first-child{flex:1;min-width:min(260px,100%)}.forecast-stock-tools strong,.forecast-stock-tools span{display:block}.forecast-stock-tools span{font-size:13px;line-height:1.6;color:var(--muted);margin-top:6px}.forecast-stock-actions{display:flex;flex-wrap:wrap;gap:10px}.forecast-stock-preview{width:100%;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.forecast-stock-preview .btn{margin:10px 10px 0 0}.forecast-stock-preview ul{max-height:220px;overflow:auto;padding-left:22px}.forecast-page input[hidden]{display:none}.forecast-page .forecast-table{width:1760px}.forecast-table td[tabindex]:focus{outline:2px solid var(--focus);outline-offset:-3px}.forecast-table td[title]{cursor:help}

/* Compact spreadsheet layout: cell borders, readable text, inline editors. */
.forecast-topline{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:10px}
.forecast-heading{display:flex;gap:14px;margin:0;align-items:center;flex:1 1 350px}.forecast-heading h1{font-size:22px;margin:0;white-space:nowrap}.forecast-heading .account-bar{margin:0}
.forecast-toolbar{margin:0;gap:10px}.forecast-toolbar label{gap:3px;font-size:12px}.forecast-toolbar #forecast-status{max-width:170px;font-size:12px}
.forecast-cards{display:flex;flex:1 1 700px;gap:0;margin:0;border:1px solid var(--line);border-radius:8px;background:var(--panel);overflow:hidden}
.forecast-cards article{flex:1;min-width:0;border:0;border-right:1px solid var(--line);border-radius:0;padding:10px 12px;background:transparent}.forecast-cards article:last-child{border-right:0}.forecast-cards strong{font-size:20px;margin:5px 0;line-height:1.3}.forecast-cards span,.forecast-cards small{font-size:12px}
.forecast-period{margin:7px 0 10px;font-size:12px}.forecast-season{padding:10px 12px}.forecast-stock-tools{padding:10px 12px;margin:10px 0;gap:10px}.forecast-filters{margin:10px 0;gap:12px}
.forecast-page .forecast-table{width:2100px}.forecast-table th:nth-last-child(3),.forecast-table th:nth-last-child(2){width:165px}.forecast-table th:last-child{width:130px}
.forecast-product{display:flex;gap:10px;align-items:flex-start}.forecast-product>div{min-width:0}.forecast-photo,.forecast-no-photo{flex:0 0 40px;width:40px;height:52px;border:1px solid var(--line);border-radius:5px;padding:0;overflow:hidden;background:var(--input);color:var(--muted)}.forecast-photo{cursor:zoom-in}.forecast-photo img{display:block;width:100%;height:100%;object-fit:contain}.forecast-no-photo{display:flex;align-items:center;text-align:center;font-size:11px;line-height:1.2}
.forecast-page .forecast-table .forecast-quantity,.forecast-page .forecast-table .forecast-manual-input{width:100%;min-width:0;min-height:32px;padding:5px 7px;text-align:right}.forecast-page .forecast-table th .forecast-manual-input{text-align:left}.forecast-quantity::placeholder,.forecast-manual-input::placeholder{color:var(--muted);opacity:1}
.forecast-page .forecast-loss{color:var(--red)}.forecast-add-rows{margin-top:10px}.forecast-manual-row td,.forecast-manual-row th{vertical-align:middle}
html[data-density=compact] .forecast-page .forecast-table th,html[data-density=compact] .forecast-page .forecast-table td{padding:5px 8px;border-right:1px solid var(--line);font-size:13px;line-height:1.35}
html[data-density=compact] .forecast-page .forecast-table thead th{font-size:12px}html[data-density=compact] .forecast-table small{margin-top:2px}html[data-density=compact] .forecast-photo,html[data-density=compact] .forecast-no-photo{flex-basis:30px;width:30px;height:38px}
html[data-density=compact] .forecast-page .forecast-table input{border-radius:2px;min-height:28px;padding:3px 5px}html[data-density=compact] .forecast-cards article{padding:7px 10px}
@media(min-width:1600px){.forecast-topline{flex-wrap:nowrap;gap:12px}.forecast-heading{flex:0 1 auto;flex-wrap:nowrap}.forecast-heading .account-bar{max-width:320px}.forecast-toolbar{flex:0 1 auto;flex-wrap:nowrap}.forecast-toolbar #forecast-status{max-width:100px}.forecast-cards{flex:1 1 650px;min-width:580px}.forecast-cards strong{font-size:18px}}
@media(max-width:900px){.forecast-cards{flex-basis:100%;flex-wrap:wrap}.forecast-cards article{flex:1 1 28%;border-bottom:1px solid var(--line)}.forecast-heading{flex-basis:100%}}
@media(max-width:500px){.forecast-cards article{flex:1 1 40%;padding:8px}.forecast-cards strong{font-size:18px}.forecast-toolbar{align-items:center}.forecast-toolbar #forecast-status{max-width:100%}.forecast-heading{gap:10px}.forecast-stock-actions{width:100%;gap:8px}.forecast-stock-actions .btn{flex:1}.forecast-topline{gap:10px}}
.forecast-heading .account-bar{min-width:0;max-width:300px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;border:0;padding:0;flex:1}.forecast-heading .account-choice{min-width:0;max-width:100%;flex-wrap:wrap;gap:6px}.forecast-heading #account-select{width:180px;min-width:0;max-width:100%;text-overflow:ellipsis}.forecast-heading .status-line{max-width:100%;margin:0;white-space:normal;line-height:1.4}
html[data-density=compact] .forecast-product>div{overflow:hidden}html[data-density=compact] .forecast-product strong,html[data-density=compact] .forecast-product small{white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal!important}
.forecast-page .forecast-table td.forecast-loss{color:var(--red)}

.forecast-stock-warning{margin:10px 0;padding:12px;border:1px solid var(--warning-line);border-radius:8px;background:var(--warning-bg);color:var(--warning-text);font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.forecast-stock-warning p{margin:6px 0}.forecast-stock-warning summary{cursor:pointer;font-weight:600}.forecast-stock-warning ul{padding:0;margin:8px 0 0;list-style:none;max-height:280px;overflow:auto}.forecast-stock-warning li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;border-top:1px solid var(--warning-line)}.forecast-stock-warning li>div{display:flex;gap:10px;align-items:center;min-width:0}.forecast-stock-warning li>div>div{min-width:0}.forecast-stock-warning small{display:block;font-size:12px}.forecast-stock-warning li b{flex-shrink:0}.forecast-page .forecast-table .forecast-stock-error{color:var(--warning-text)}.forecast-page input[aria-invalid=true]{border-color:var(--warning-text)}
@media(max-width:600px){.forecast-stock-warning li{align-items:flex-start;flex-direction:column;gap:5px}}

.forecast-summary{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);min-width:0}
.forecast-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.forecast-summary h2{font-size:16px;margin:0;color:var(--text)}.forecast-summary-heading label{font-size:12px;color:var(--muted);display:flex;gap:8px;align-items:center;flex-wrap:wrap}.forecast-summary-heading label span{display:flex;align-items:center;gap:6px}.forecast-summary-heading input{width:72px;min-height:32px!important;padding:5px 7px!important}.forecast-summary p{font-size:12px;line-height:1.5;color:var(--muted);margin:8px 0}.forecast-summary-scroll{max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:5px}.forecast-summary-table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:1120px;font-size:13px;font-variant-numeric:tabular-nums}.forecast-summary-table th,.forecast-summary-table td{padding:9px 10px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);text-align:right;white-space:normal;line-height:1.4;overflow-wrap:anywhere;color:var(--text);text-transform:none;letter-spacing:normal}.forecast-summary-table thead th{background:var(--table-head);color:var(--soft);font-size:12px;text-align:center;overflow-wrap:normal}.forecast-summary-table th[rowspan]{width:200px}.forecast-summary-table tbody th,.forecast-summary-table tfoot th{position:sticky;left:0;background:var(--panel);text-align:left;z-index:1}.forecast-summary-table thead th[rowspan]{position:sticky;left:0;z-index:2;text-align:left}.forecast-summary-table small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:3px}.forecast-summary-table .forecast-summary-total th,.forecast-summary-table .forecast-summary-total td{background:var(--table-head);font-weight:700}.forecast-summary-table td.forecast-loss{color:var(--red)}
html[data-density=compact] .forecast-summary-table th,html[data-density=compact] .forecast-summary-table td{padding:5px 8px}html[data-density=compact] .forecast-summary{padding:10px}.forecast-summary-scroll:focus{outline:2px solid var(--focus);outline-offset:2px}
@media(max-width:600px){.forecast-summary-heading{align-items:flex-start}.forecast-summary-heading label{width:100%}.forecast-summary-table th[rowspan]{width:155px}}

.forecast-scenarios{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.forecast-scenarios h2{font-size:16px;margin:0;color:var(--text)}.forecast-scenario-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}.forecast-scenario-option{display:flex;flex-direction:column;gap:6px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:6px;background:var(--input);color:var(--text);font:inherit;font-size:13px;text-align:left;cursor:pointer;overflow-wrap:anywhere}.forecast-scenario-option[aria-pressed=true]{outline:2px solid var(--focus);outline-offset:-2px}.forecast-scenario-option strong{font-size:14px}.forecast-scenario-option span{display:flex;justify-content:space-between;gap:8px;color:var(--muted);flex-wrap:wrap}.forecast-scenario-option b{color:var(--text);font-variant-numeric:tabular-nums}.forecast-scenario-option:disabled{opacity:1;cursor:default}.forecast-scenario-option b.forecast-loss{color:var(--red)}
html[data-density=compact] .forecast-scenarios{padding:10px}html[data-density=compact] .forecast-scenario-option{padding:8px;gap:4px}@media(max-width:600px){.forecast-scenario-options{grid-template-columns:1fr}}

/* Personal forecast columns; no positional widths or inherited sticky product cell. */
.forecast-columns{margin:10px 0;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text)}.forecast-columns>summary{cursor:pointer;padding:10px 12px;font-size:13px;font-weight:600;color:var(--text)}.forecast-columns-body{padding:0 12px 12px}.forecast-columns-body>p{font-size:12px;color:var(--muted)}.forecast-columns-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(380px,100%),1fr));gap:8px;max-height:390px;overflow:auto;margin:12px 0}.forecast-column-setting{display:grid;grid-template-columns:minmax(0,1fr) 76px 34px 34px;align-items:center;gap:6px;padding:8px;border:1px solid var(--line);border-radius:5px;min-width:0}.forecast-column-setting>label:first-child{display:flex;flex-direction:row;align-items:center;gap:7px;line-height:1.4;min-width:0}.forecast-column-setting input[type=checkbox]{flex-shrink:0}.forecast-column-setting .forecast-column-width{font-size:11px;gap:3px}.forecast-column-setting input[type=number]{width:76px;min-height:30px;padding:4px 6px;font-size:13px}.forecast-column-setting .btn{min-width:0;padding:5px;min-height:30px}.forecast-page .forecast-configurable-table{table-layout:fixed;min-width:0}.forecast-page .forecast-configurable-table th,.forecast-page .forecast-configurable-table td{width:auto;min-width:0;box-sizing:border-box}.forecast-page .forecast-configurable-table thead th{white-space:normal;overflow-wrap:normal;word-break:normal;line-height:1.4;vertical-align:middle}.forecast-page .forecast-configurable-table th:first-child,.forecast-page .forecast-configurable-table td:first-child{position:static;text-align:right}.forecast-page .forecast-configurable-table thead th:first-child{position:sticky;top:0}.forecast-page .forecast-configurable-table [data-forecast-col=title],.forecast-page .forecast-configurable-table [data-forecast-col=sku],.forecast-page .forecast-configurable-table [data-forecast-col=category]{text-align:left}.forecast-cell-text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.forecast-configurable-table .forecast-product{align-items:center}.forecast-page .forecast-configurable-table .forecast-product strong{flex:1;min-width:0}.forecast-page .forecast-configurable-table .forecast-buyout-note{margin-top:4px;font-size:12px;white-space:nowrap;cursor:help}.forecast-page .forecast-configurable-table .forecast-stock-error,.forecast-page .forecast-stock-deficit>summary{color:var(--red)}.forecast-stock-deficit>summary{line-height:1.5}.forecast-warning-mark{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border:1.5px solid currentColor;border-radius:50%;font-weight:800;margin-right:5px}.forecast-page .forecast-stock-deficit{background:var(--panel);border-color:var(--line);color:var(--text)}
@media(max-width:500px){.forecast-columns-list{grid-template-columns:1fr}.forecast-column-setting{grid-template-columns:minmax(0,1fr) 66px 30px 30px;padding:6px;gap:4px}.forecast-column-setting input[type=number]{width:66px}.forecast-column-setting>label:first-child{font-size:12px}}
.forecast-page .forecast-configurable-table th:nth-child(n),.forecast-page .forecast-configurable-table td:nth-child(n){width:auto}.forecast-configurable-table .forecast-cell-text{max-width:100%}
.forecast-page .forecast-configurable-table th[data-forecast-col=title],.forecast-page .forecast-configurable-table td[data-forecast-col=title],.forecast-page .forecast-configurable-table th[data-forecast-col=sku],.forecast-page .forecast-configurable-table td[data-forecast-col=sku],.forecast-page .forecast-configurable-table th[data-forecast-col=category],.forecast-page .forecast-configurable-table td[data-forecast-col=category]{text-align:left}.forecast-page .forecast-configurable-table tbody th strong.forecast-cell-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.forecast-page .forecast-configurable-table .forecast-manual-text{text-align:left}.forecast-manual-row .forecast-product input{flex:1;min-width:0}
.forecast-page .forecast-configurable-table thead th:first-child{left:auto}
