*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[x-cloak] { display: none !important; }

:root {
    /* Teal primary */
    --green:       #1E7A6A;
    --green-light: #3DAFA0;
    --green-pale:  #EDF7F6;
    /* Salmon accent */
    --salmon:      #E8674E;
    --salmon-pale: #FFF2EE;
    /* Neutrals – warm-tinted */
    --bg:          #F6F3F1;
    --surface:     #FFFFFF;
    --border:      #E6DDD8;
    --text:        #1A1918;
    --muted:       #6E6560;
    --sidebar-w:   220px;
    /* Legacy aliases so existing classes still work */
    --green-light-hover: #2E9D8E;
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; color: var(--text); background: var(--bg); }

/* Sidebar */
.sidebar {
    position: fixed; top: 0; left: 0; width: var(--sidebar-w); height: 100vh;
    background: #14524A; display: flex; flex-direction: column; padding: 0;
}
.sidebar-logo { color: #fff; font-size: 20px; font-weight: 700; padding: 24px 20px 18px; letter-spacing: .5px; }
.sidebar-logo span { color: var(--salmon); }
.nav-item { display: block; color: rgba(255,255,255,.75); text-decoration: none; padding: 10px 20px; transition: background .15s; font-size: 13.5px; }
.nav-item:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-item.active { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
.sidebar-footer { margin-top: auto; padding: 16px 20px; font-size: 12px; color: rgba(255,255,255,.55); display: flex; flex-direction: column; gap: 4px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-footer a { color: rgba(255,255,255,.55); text-decoration: none; }
.sidebar-footer a:hover { color: #fff; }

/* Content */
.content { margin-left: var(--sidebar-w); padding: 32px; min-height: 100vh; }

/* Login */
.login-page { background: var(--bg); display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { background: var(--surface); border-radius: 14px; padding: 40px; width: 360px; box-shadow: 0 4px 24px rgba(0,0,0,.08); }
.login-box h1 { color: var(--green); font-size: 28px; margin-bottom: 24px; }

/* Cards */
.card { background: var(--surface); border-radius: 12px; padding: 24px; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.04); }

/* Page header */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-header h2 { font-size: 22px; font-weight: 600; }

/* Buttons */
.btn { display: inline-block; padding: 8px 18px; border-radius: 8px; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; border: none; transition: opacity .15s; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { opacity: .88; }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-secondary:hover { background: #D8CEC8; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

/* Forms */
label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 5px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], select, textarea {
    width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 8px;
    font-size: 14px; background: #fff; color: var(--text); transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green-light); box-shadow: 0 0 0 3px rgba(61,175,160,.15); }
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.form-actions { display: flex; gap: 12px; padding-top: 8px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }

/* Tables */
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.table th { background: var(--bg); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 10px 14px; text-align: left; }
.table td { padding: 11px 14px; border-top: 1px solid var(--border); }
.table tr.clickable { cursor: pointer; transition: background .12s; }
.table tr.clickable:hover td { background: var(--salmon-pale); }
.empty { color: var(--muted); font-style: italic; }

/* Badges */
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; color: #fff; }
.badge-count { background: rgba(255,255,255,.25); color: #fff; border-radius: 12px; padding: 1px 8px; font-size: 12px; }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: var(--surface); border-radius: 12px; padding: 20px 24px; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.stat-value { font-size: 28px; font-weight: 700; color: var(--salmon); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Pipeline */
.pipeline-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.pipeline-sort-select { padding: 5px 10px; border-radius: 8px; border: 1.5px solid var(--border); font-size: 13px; background: #fff; color: var(--text); }
.pipeline-grand-total { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.pipeline-total-row { display: flex; gap: 10px; align-items: baseline; justify-content: flex-end; font-size: 13px; }
.pipeline-total-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; min-width: 60px; text-align: right; }
.pipeline-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 24px; align-items: flex-start; }
.pipeline-col { min-width: 240px; max-width: 280px; flex-shrink: 0; display: flex; flex-direction: column; }
.pipeline-col-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--surface); border-radius: 10px 10px 0 0; border: 1px solid var(--border); }
.pipeline-col-body { background: var(--surface); border: 1px solid var(--border); border-top: none; min-height: 80px; }
.pipeline-col--over > .pipeline-col-header { background: var(--green-pale); }
.pipeline-col--over > .pipeline-col-body { background: var(--green-pale); border-color: var(--green-light); }
.pipeline-col-empty { font-size: 12px; color: var(--muted); padding: 20px 14px; text-align: center; font-style: italic; }
.pipeline-col-total { padding: 8px 14px; background: var(--bg); border: 1px solid var(--border); border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; display: flex; flex-direction: column; gap: 2px; }
.pipeline-col-total .pipeline-total-row { justify-content: flex-end; font-size: 12px; font-weight: 600; }
.pipeline-prob { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--bg); border-radius: 6px; padding: 1px 6px; }
.deal-card { background: var(--surface); border-bottom: 1px solid var(--border); padding: 11px 14px; cursor: grab; transition: background .12s; user-select: none; }
.deal-card:active { cursor: grabbing; }
.deal-card:hover { background: var(--salmon-pale); }
.deal-card-title { font-weight: 500; margin-bottom: 3px; font-size: 13px; line-height: 1.3; }
.deal-card-company { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.deal-card-values { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 4px; }
.deal-val-weighted { font-size: 15px; font-weight: 700; color: var(--text); }
.deal-val-raw { font-size: 13px; font-weight: 600; color: var(--text); }
.deal-val-raw--sub { font-size: 12px; font-weight: 400; color: var(--muted); }
.deal-val-sep { color: var(--muted); font-size: 12px; }
.deal-val-prob { font-size: 11px; color: var(--muted); }
.deal-card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 12px; gap: 6px; }
.deal-card-owner { font-size: 11px; background: #e0e7ff; color: #3730a3; border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.deal-close--overdue { color: #b91c1c; font-weight: 600; }
.deal-close--soon    { color: #d97706; font-weight: 500; }
.deal-close--ok      { color: var(--muted); }
/* Confirm overlay */
.pipeline-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 100; display: flex; align-items: center; justify-content: center; }
.pipeline-confirm { max-width: 380px; width: 90%; }

/* Search */
.search-form { display: flex; gap: 8px; margin-bottom: 20px; }
.search-form input { max-width: 320px; }

/* Alert */
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
h3 { font-size: 16px; margin-bottom: 12px; }

/* Nav divider */
.nav-divider { border-top: 1px solid rgba(255,255,255,.15); margin: 8px 16px; }

/* Two-col layout */
.two-col { display: flex; gap: 24px; align-items: flex-start; }

/* Section label */
.section-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 24px 0 8px; }

/* Text helpers */
.text-muted { color: var(--muted); }
.td-actions { display: flex; gap: 6px; }

/* Danger button */
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-danger:hover { background: #fecaca; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-link-danger { background: none; border: none; color: #b91c1c; cursor: pointer; font-size: 12px; padding: 0; }

/* Add-on cards (product show) */
.addon-card { background: var(--green-pale); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; }
.addon-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.role-tag { display: inline-block; background: #e2e8f0; border-radius: 6px; padding: 2px 8px; font-size: 11px; margin: 2px 2px 0 0; }

/* Addon edit card (product form) */
.addon-edit-card { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.addon-edit-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; cursor: pointer; background: var(--bg); transition: background .12s; }
.addon-edit-header:hover { background: var(--green-pale); }

/* Add product bar */
.add-product-bar { background: linear-gradient(135deg, #e8f5ef 0%, #f0faf5 100%); border: 2px dashed var(--green-light); border-radius: 12px; padding: 16px 20px; margin-bottom: 16px; }

/* Quote item cards */
.quote-item-card { margin-bottom: 16px; }
.editable-title:focus { outline: none; border-bottom: 2px solid var(--green-light); }

/* Add-on accordion toggle */
.addon-accordion-toggle { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text); transition: background .12s; }
.addon-accordion-toggle:hover { background: var(--green-pale); }

/* Kalkyl accordion toggle (same style, different class for potential future distinction) */
.kalkyl-accordion-toggle { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #f8fafc; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text); transition: background .12s; margin-bottom: 0; }
.kalkyl-accordion-toggle:hover { background: var(--green-pale); }
.kalkyl-panel { border: 1px solid var(--border); border-top: none; border-radius: 0 0 8px 8px; padding: 0; }

/* Editable addon section title */
.addon-title-input { width: auto; min-width: 140px; max-width: 100%; padding: 3px 6px; font-size: 13px; font-weight: 600; color: var(--text); border: none; border-bottom: 1.5px dashed var(--border); border-radius: 0; background: transparent; transition: border-color .15s; }
.addon-title-input:focus { outline: none; border-bottom-color: var(--green-light); border-bottom-style: solid; background: var(--green-pale); border-radius: 4px 4px 0 0; }
.addon-title-input::placeholder { color: var(--muted); font-weight: 400; }

/* Fully clickable addon rows */
.addon-row-label { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 13px; cursor: pointer; border-bottom: 1px solid var(--border); transition: background .1s; }
.addon-row-label:last-child { border-bottom: none; }
.addon-row-label:hover { background: var(--green-pale); }
.addon-row-label input[type=checkbox] { margin: 0; flex-shrink: 0; accent-color: var(--green); }
.addon-row-name { flex: 1; }
.addon-row-cost { white-space: nowrap; }

/* Tidskalkyl table */
.kalkyl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kalkyl-table th { padding: 7px 12px; text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--bg); border-bottom: 1px solid var(--border); }
.kalkyl-table td { padding: 6px 12px; border-bottom: 1px solid var(--border); }
.kalkyl-table tbody tr:last-child td { border-bottom: none; }
.kalkyl-table tfoot tr.kalkyl-sub td { padding: 5px 12px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); background: var(--bg); }
.kalkyl-table tfoot tr.kalkyl-total td { padding: 8px 12px; background: var(--green-pale); font-size: 13px; border-top: 1px solid var(--border); }
.kalkyl-table input[type=number] { width: 78px; text-align: right; }

/* Consultant costs */
.konsult-cost-list { border-bottom: 1px solid var(--border); }
.konsult-cost-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 13px; border-bottom: 1px solid var(--border); }
.konsult-cost-row:last-child { border-bottom: none; }
.konsult-cost-label { flex: 1; font-weight: 500; }
.konsult-add-form { display: flex; gap: 8px; padding: 10px 14px; flex-wrap: wrap; align-items: flex-end; background: var(--bg); }

/* Item section text blocks */
.item-section { border-top: 1px dashed var(--border); padding-top: 14px; margin-top: 14px; position: relative; cursor: default; }
.item-section[draggable] { cursor: grab; }
.item-section[draggable]:active { cursor: grabbing; }
.item-section.section-dragging { opacity: .4; }
.item-section.section-drag-over { box-shadow: 0 -3px 0 0 var(--green-light); }
.section-drag-handle { position: absolute; left: -18px; top: 18px; color: var(--muted); font-size: 16px; cursor: grab; user-select: none; opacity: .5; }
.section-drag-handle:hover { opacity: 1; }

/* Heading suggestion chips */
.heading-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; border: 1px solid var(--border); background: #f8fafc; font-size: 11px; color: var(--muted); cursor: pointer; transition: all .12s; white-space: nowrap; }
.heading-chip:hover { background: var(--green-pale); border-color: var(--green-light); color: var(--green); }

/* Rich text editor */
.richtext-wrapper { border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.richtext-wrapper:focus-within { border-color: var(--green-light); box-shadow: 0 0 0 3px rgba(61,175,160,.12); }
.richtext-toolbar { display: flex; align-items: center; gap: 2px; padding: 6px 8px; background: #f8fafc; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.richtext-toolbar button { min-width: 28px; height: 28px; padding: 0 6px; border: 1px solid var(--border); border-radius: 5px; background: #fff; cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; color: var(--text); transition: background .1s; }
.richtext-toolbar button:hover { background: var(--green-pale); border-color: var(--green-light); }
.richtext-divider { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }
.richtext-editor { min-height: 90px; padding: 10px 12px; outline: none; font-size: 13px; line-height: 1.65; color: var(--text); }
.richtext-editor ul, .richtext-editor ol { padding-left: 22px; margin: 4px 0; }
.richtext-editor li { margin-bottom: 2px; }

.item-cost-summary { display: flex; gap: 16px; padding: 10px 0 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); margin-top: 12px; }
.item-cost-summary strong { color: var(--text); margin-left: auto; }

/* Quote summary sidebar */
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.summary-total { font-size: 18px; font-weight: 700; color: var(--salmon); border-bottom: none; padding-top: 10px; }

/* Profile */
.profile-link { color: rgba(255,255,255,.85); text-decoration: none; font-size: 13px; }
.profile-link:hover { color: #fff; }
.profile-avatar { width: 64px; height: 64px; background: var(--salmon); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: #fff; margin: 0 auto; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* Won button */
.btn-won { background: var(--green-pale); color: var(--green); border: 1px solid var(--green-light); }
.btn-won:hover { background: #D6EFED; }

/* Activity log */
.activity-row { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.activity-type { background: var(--green-pale); border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 600; color: var(--green); white-space: nowrap; letter-spacing: .03em; }
.activity-meta { margin-left: auto; white-space: nowrap; font-size: 12px; }

/* Company page layout */
.company-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: flex-start; }
.company-sidebar-left { position: sticky; top: 24px; }
.company-log { min-width: 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.contact-chip { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; }
.deal-chip { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; text-decoration: none; color: var(--text); transition: background .12s; }
.deal-chip:hover { background: var(--salmon-pale); border-color: #F0A898; }

/* Communication log */
.log-new-form { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 20px; }
.log-feed { display: flex; flex-direction: column; gap: 0; }
.log-entry { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.log-entry--deal { background: linear-gradient(90deg, rgba(82,183,136,.06) 0%, transparent 100%); margin: 0 -12px; padding: 14px 12px; border-radius: 8px; border-bottom: 1px solid var(--border); }
.log-icon { font-size: 18px; margin-top: 2px; flex-shrink: 0; width: 28px; text-align: center; }
.log-body { flex: 1; min-width: 0; }
.log-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.log-type { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.log-deal-tag { font-size: 12px; background: var(--green-pale); color: var(--green); border-radius: 6px; padding: 1px 8px; text-decoration: none; border: 1px solid rgba(82,183,136,.3); white-space: nowrap; }
.log-deal-tag:hover { background: #d1fae5; }
.log-date { font-size: 12px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.log-text { font-size: 14px; color: var(--text); }

/* Order number badge */
.order-number { font-size: 14px; font-weight: 500; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 2px 10px; margin-left: 10px; vertical-align: middle; }

/* Quote feedback */
.feedback-form { margin-bottom: 20px; }
.impact-group { display: flex; gap: 8px; flex-wrap: wrap; }
.impact-btn { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; border: 1.5px solid var(--border); cursor: pointer; font-size: 13px; font-weight: 500; background: var(--surface); transition: all .15s; }
.impact-btn input[type=radio] { display: none; }
.impact-btn--up.active    { background: #f0fdf4; border-color: #4ade80; color: #166534; }
.impact-btn--down.active  { background: #fef2f2; border-color: #f87171; color: #b91c1c; }
.impact-btn--future.active{ background: #faf5ff; border-color: #c084fc; color: #7e22ce; }
.impact-btn--neutral.active{ background: var(--green-pale); border-color: var(--green-light); color: var(--green); }
.feedback-delta { padding: 10px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.feedback-delta--up   { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.feedback-delta--down { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.feedback-list { display: flex; flex-direction: column; gap: 8px; }
.feedback-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); }
.feedback-row--up     { border-color: #bbf7d0; background: #f0fdf4; }
.feedback-row--down   { border-color: #fecaca; background: #fef2f2; }
.feedback-row--future { border-color: #e9d5ff; background: #faf5ff; }
.feedback-impact-badge { font-size: 18px; width: 28px; text-align: center; flex-shrink: 0; }
.feedback-text { font-size: 14px; margin-bottom: 4px; }
.feedback-meta { font-size: 12px; color: var(--muted); }

/* Manus box */
.manus-box { background: #1a2a1e; color: #d4f1df; font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.7; padding: 24px 28px; border-radius: 12px; white-space: pre-wrap; }

/* Billing milestones */
.milestone-list { display: flex; flex-direction: column; }
.milestone-row { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--border); border-top: none; font-size: 13px; background: var(--surface); flex-wrap: wrap; }
.milestone-row:first-child { border-top: 1px solid var(--border); border-radius: 10px 10px 0 0; }
.milestone-row--invoiced { background: #f0fdf4; color: var(--muted); }
.milestone-status { font-size: 16px; color: var(--muted); width: 20px; text-align: center; flex-shrink: 0; }
.milestone-label { flex: 1; font-weight: 500; }
.milestone-date { font-size: 12px; white-space: nowrap; }
.milestone-amount { font-weight: 600; white-space: nowrap; }
.milestone-actions { display: flex; gap: 6px; margin-left: auto; }
.milestone-total { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--border); border-top: none; border-radius: 0 0 10px 10px; background: var(--bg); font-size: 13px; }
.milestone-total strong { margin-left: auto; color: var(--green); }

/* Forecast view */
.forecast-section h3 { font-size: 18px; margin-bottom: 4px; }
.forecast-months { display: flex; flex-direction: column; gap: 16px; }
.forecast-month-block { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.forecast-month-block--past { opacity: .75; }
.forecast-month-header { display: flex; gap: 12px; align-items: center; padding: 10px 16px; background: var(--green-pale); border-bottom: 1px solid var(--border); }
.forecast-month-label { font-weight: 700; font-size: 14px; min-width: 70px; }
.forecast-month-sum { font-weight: 600; color: var(--green); }
.forecast-deal-row { display: flex; gap: 12px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); background: var(--surface); font-size: 13px; transition: background .12s; flex-wrap: wrap; }
.forecast-deal-row:last-child { border-bottom: none; }
.forecast-deal-row:hover { background: var(--salmon-pale); }
.forecast-deal-title { flex: 1; font-weight: 500; }
.forecast-deal-owner { font-size: 11px; }
.forecast-deal-value { font-weight: 600; white-space: nowrap; }
.forecast-milestone-row { display: flex; gap: 12px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--border); font-size: 13px; background: var(--surface); }
.forecast-milestone-row:last-child { border-bottom: none; }
.forecast-milestone-row--invoiced { background: #f0fdf4; color: var(--muted); }
.forecast-milestone-row--noplan { background: #eff6ff; }
.deal-stage-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
