.forecast-workspace { max-width: 1560px; }
.forecast-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; color: #1645d8; font-size: 12px; font-weight: 750; text-decoration: none; }
.forecast-back .app-icon { width: 15px; height: 15px; }
.forecast-notice { padding: 9px 12px; border-left: 3px solid #1b9963; background: #edfaf4; color: #116246; font-size: 12px; }
.forecast-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; padding: 16px 0; border-top: 1px solid #dce5f1; border-bottom: 1px solid #dce5f1; }
.forecast-controls label { display: grid; gap: 6px; color: #344b6d; font-size: 11px; font-weight: 750; }
.forecast-horizon { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; flex: 1 1 360px; }
.forecast-horizon > label { min-width: 72px; }
.forecast-horizon input[type=range] { flex: 1; min-width: 120px; accent-color: #1546e8; }
.forecast-days, .forecast-buffer > span { display: flex; align-items: center; gap: 5px; }
.forecast-days input, .forecast-buffer input { width: 62px; height: 34px; padding: 5px 7px; border: 1px solid #c8d5ea; border-radius: 4px; background: #fff; color: #10213d; }
.forecast-save-default { min-height: 34px; padding: 7px 12px; border: 1px solid #1546e8; border-radius: 4px; background: #1546e8; color: #fff; font-size: 11px; font-weight: 750; cursor: pointer; }
.forecast-default { color: #687b98; font-size: 11px; }
.forecast-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.forecast-kpis > div { display: grid; gap: 4px; padding: 15px; border: 1px solid #dce5f1; border-radius: 5px; background: #fff; }
.forecast-kpis span { color: #4c6282; font-size: 11px; font-weight: 700; }
.forecast-kpis strong { color: #10213d; font-size: 24px; line-height: 1.2; }
.forecast-kpis small { color: #70809a; font-size: 10px; }
.forecast-section { margin: 24px 0; border-top: 1px solid #dce5f1; }
.forecast-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 0 12px; }
.forecast-section-head h2 { margin: 0 0 3px; color: #10213d; font-size: 17px; }
.forecast-section-head p, .forecast-section-head > span { margin: 0; color: #687b98; font-size: 11px; }
.forecast-filters { display: grid; grid-template-columns: minmax(130px, 180px) minmax(130px, 180px) minmax(130px, 180px) minmax(190px, 1fr); gap: 8px; margin: 5px 0 14px; }
.forecast-filters label { display: grid; gap: 3px; color: #5a6d88; font-size: 10px; font-weight: 750; }
.forecast-filters select, .forecast-filters input { width: 100%; min-width: 0; height: 36px; padding: 7px 9px; border: 1px solid #cbd8ea; border-radius: 4px; background: #fff; color: #142747; font-size: 12px; }
.forecast-search { align-self: end; position: relative; }
.forecast-search .app-icon { position: absolute; left: 8px; bottom: 9px; width: 16px; height: 16px; color: #6a7a93; }
.forecast-search input { padding-left: 31px; }
.forecast-table { border: 1px solid #dce5f1; border-radius: 5px; background: #fff; overflow: hidden; }
.forecast-table-head, .forecast-row { display: grid; grid-template-columns: minmax(190px, 1.7fr) minmax(112px, .85fr) minmax(130px, 1fr) minmax(135px, 1fr) minmax(170px, 1.2fr); gap: 12px; align-items: center; padding: 10px 14px; }
.forecast-table-head { background: #f5f8fd; color: #516581; font-size: 10px; font-weight: 800; }
.forecast-row { border-top: 1px solid #e3e9f2; }
.forecast-row.is-needed { border-left: 3px solid #dc9c30; padding-left: 11px; }
.forecast-row.is-urgent { border-left: 3px solid #db3b45; padding-left: 11px; }
.forecast-item, .forecast-metric { display: grid; gap: 3px; min-width: 0; }
.forecast-item strong, .forecast-metric strong { color: #142747; font-size: 12px; overflow-wrap: anywhere; }
.forecast-item span, .forecast-metric span { color: #526681; font-size: 11px; }
.forecast-item small, .forecast-metric small { color: #7888a1; font-size: 10px; overflow-wrap: anywhere; }
.forecast-trend { color: #17579e; font-weight: 800; }
.forecast-overdue { color: #bb343d; }
.forecast-actions { display: flex; flex-direction: column; align-items: start; gap: 5px; }
.forecast-actions button { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; max-width: 100%; padding: 5px 8px; border: 1px solid #bdd0ea; border-radius: 4px; background: #f7faff; color: #1546c9; font-size: 10px; font-weight: 750; text-align: left; cursor: pointer; }
.forecast-actions button.forecast-buy { border-color: #1546e8; background: #1546e8; color: #fff; }
.forecast-actions button:disabled { opacity: .55; cursor: default; }
.forecast-actions .app-icon { width: 13px; height: 13px; flex: none; }
.forecast-covered { color: #188158; font-size: 11px; font-weight: 750; }
.forecast-followup { color: #a25d14; font-size: 10px; font-weight: 750; }
.forecast-explain { grid-column: 1/-1; margin: 0; color: #526681; font-size: 11px; }
.forecast-explain summary { width: max-content; cursor: pointer; color: #1645d8; font-weight: 700; }
.forecast-explain p { margin: 8px 0 0; line-height: 1.5; }
.forecast-reconciliation { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; margin-top: 9px; padding: 8px; border: 1px solid #e1e8f3; background: #f8faff; color: #415773; font-size: 10px; }
.forecast-reconciliation strong { color: #173761; }
.forecast-explain button { margin-top: 8px; padding: 5px 8px; border: 1px solid #cbd8ea; border-radius: 4px; background: #fff; color: #1546c9; font-size: 11px; cursor: pointer; }
.forecast-confidence { color: #9c6120; }
.forecast-empty { margin: 0; padding: 24px 14px; color: #6b7d97; font-size: 12px; }
.forecast-more { display: block; margin: 12px auto; padding: 7px 14px; border: 1px solid #cbd8ea; border-radius: 4px; background: #fff; color: #1546c9; cursor: pointer; }
.forecast-restock-row { display: grid; grid-template-columns: minmax(200px, 1.4fr) minmax(155px, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #e3e9f2; }
.forecast-restock-row > div:not(:last-child) { display: grid; gap: 3px; }
.forecast-restock-row strong { color: #142747; font-size: 12px; }
.forecast-restock-row span { color: #6e7e97; font-size: 11px; }
.forecast-restock-actions { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.forecast-restock-actions button { min-height: 30px; padding: 5px 9px; border: 1px solid #cbd8ea; border-radius: 4px; background: #fff; color: #1546c9; font-size: 10px; font-weight: 750; cursor: pointer; }
.forecast-restock-actions .forecast-cancel { color: #a8313a; }
.forecast-modal-backdrop { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 16px; background: #0c183a99; }
.forecast-modal { display: grid; gap: 14px; width: min(440px, 100%); padding: 20px; border: 1px solid #cfd9eb; border-radius: 6px; background: #fff; box-shadow: 0 20px 60px #08122e4a; }
.forecast-modal header, .forecast-modal footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.forecast-modal h2 { margin: 0; font-size: 17px; }
.forecast-modal p { margin: 0; color: #526681; font-size: 12px; line-height: 1.5; }
.forecast-modal label { display: grid; gap: 5px; color: #344b6d; font-size: 11px; font-weight: 750; }
.forecast-modal input { width: 100%; min-height: 36px; padding: 6px 9px; border: 1px solid #cbd8ea; border-radius: 4px; }
.forecast-modal button { min-height: 34px; padding: 5px 10px; border: 1px solid #cbd8ea; border-radius: 4px; background: #fff; color: #16345d; cursor: pointer; }
.forecast-modal button.primary { border-color: #1546e8; background: #1546e8; color: #fff; }
.forecast-modal footer { justify-content: flex-end; }
@media (max-width: 1100px) { .forecast-table-head { display: none; } .forecast-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .forecast-actions { align-items: stretch; } .forecast-actions button { max-width: none; } .forecast-explain { grid-column: 1/-1; } }
@media (max-width: 700px) { .forecast-kpis { grid-template-columns: 1fr; gap: 7px; } .forecast-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .forecast-row { grid-template-columns: 1fr; } .forecast-restock-row { grid-template-columns: 1fr; } .forecast-restock-actions { justify-content: flex-start; } .forecast-section-head { display: block; } .forecast-horizon { flex-basis: 100%; } }
