/* v0.31 — forecast matrix based on the real Katakit forecast workbook */
.v31-forecast-toolbar{gap:8px!important;align-items:center!important}
.v31-forecast-toolbar>strong{font-size:12px}
.v31-help{margin-inline-start:auto;color:var(--notion-muted);font-size:10px;font-weight:600}
.v31-forecast-shell{direction:ltr;width:100%;max-width:100%;overflow:auto;border:1px solid var(--notion-border);border-radius:8px;background:var(--notion-panel);max-height:calc(100vh - 245px)}
.v31-forecast-table{direction:ltr;border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:10px;color:var(--notion-text)}
.v31-forecast-table th,.v31-forecast-table td{border-right:1px solid var(--notion-border);border-bottom:1px solid var(--notion-border);padding:5px 6px;vertical-align:middle;text-align:center;background:var(--notion-panel)}
.v31-forecast-table thead{position:sticky;top:0;z-index:12}
.v31-forecast-table thead th{background:#f2f2ef;font-weight:750}
.v31-title-row th{background:#e6e6e3!important;text-align:left!important;font-size:12px;padding:8px 10px!important;letter-spacing:.1px}
.v31-customer-row th{min-width:112px;white-space:normal;line-height:1.35}
.v31-country-row th{font-size:8.5px;color:var(--notion-muted);height:24px}
.v31-order-row th{height:28px;white-space:nowrap}
.v31-product-row>*:first-child,.v31-customer-row>*:first-child,.v31-country-row>*:first-child,.v31-order-row>*:first-child{position:sticky;left:0;z-index:5;min-width:78px;max-width:78px;background:#fafaf8}
.v31-product-row>*:nth-child(2),.v31-customer-row>*:nth-child(2),.v31-country-row>*:nth-child(2),.v31-order-row>*:nth-child(2){position:sticky;left:78px;z-index:5;min-width:290px;max-width:290px;text-align:left;background:#fafaf8}
.v31-customer-row>*:first-child,.v31-customer-row>*:nth-child(2),.v31-country-row>*:first-child,.v31-country-row>*:nth-child(2),.v31-order-row>*:first-child,.v31-order-row>*:nth-child(2){z-index:15;background:#f2f2ef}
.v31-title-row th{position:static!important;max-width:none!important;z-index:20!important}
.v31-code{font-variant-numeric:tabular-nums;font-weight:700;color:var(--notion-muted)}
.v31-product{white-space:normal;line-height:1.35;font-weight:600}
.v31-qty{width:78px;min-width:78px;height:28px;border:1px solid transparent;border-radius:4px;background:transparent;text-align:center;font:650 10px Cairo;color:var(--notion-text);padding:2px 4px}
.v31-qty:hover{border-color:var(--notion-border);background:var(--notion-hover)}
.v31-qty:focus{outline:none;border-color:#b9a86b;background:#fff9db;box-shadow:0 0 0 1px #e5d894}
.v31-total-col{position:sticky!important;right:0!important;z-index:6!important;min-width:80px!important;background:#f6f3ea!important;font-variant-numeric:tabular-nums}
.v31-forecast-table thead .v31-total-col{z-index:16!important}
.v31-total-row th{background:#ece9df!important;font-weight:800;font-size:10.5px}
.v31-total-row th:first-child{text-align:left!important}
.v31-meta-row th{background:#f6f6f3!important;text-align:left!important;font-weight:750;white-space:nowrap}
.v31-meta-row td{min-width:112px;max-width:150px;white-space:normal;line-height:1.4;font-size:9px;color:#555}
.v31-requirement-row td{min-width:150px;max-width:210px;text-align:left;vertical-align:top;max-height:120px;overflow:hidden}
.v31-forecast-table tbody tr:hover td:not(.v31-total-col){background:#fcfcfa}
.v31-forecast-table .link{font-size:9px;font-weight:750}
@media(max-width:900px){
 .v31-help{display:none}
 .v31-forecast-shell{max-height:calc(100vh - 220px)}
 .v31-forecast-table tr>*:nth-child(2){min-width:220px;max-width:220px}
}
