.forecast-bidding-page {
    --fb-blue: #2563eb;
    --fb-cyan: #0891b2;
    --fb-green: #059669;
    --fb-amber: #d97706;
    --fb-red: #dc2626;
    --fb-purple: #7c3aed;
    color: #0f172a;
}

.forecast-bidding-page * { box-sizing: border-box; }
.forecast-bidding-page .fb-page-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.forecast-bidding-page .fb-title { margin: 0; font-size: 1.55rem; font-weight: 850; }
.forecast-bidding-page .fb-subtitle { margin: 6px 0 0; color: #64748b; font-size: .9rem; line-height: 1.55; }
.forecast-bidding-page .fb-asof {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}
.forecast-bidding-page .fb-panel {
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
}
.forecast-bidding-page .fb-filter-panel { padding: 16px; margin-bottom: 16px; }
.forecast-bidding-page .fb-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.forecast-bidding-page .fb-section-title { margin: 0; font-size: 1rem; font-weight: 850; }
.forecast-bidding-page .fb-section-desc { margin: 4px 0 0; color: #64748b; font-size: .78rem; line-height: 1.45; }
.forecast-bidding-page .fb-filter-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(145px, 1fr));
    gap: 12px;
}
.forecast-bidding-page .fb-filter-grid.secondary { margin-top: 12px; grid-template-columns: 1.35fr repeat(5, minmax(140px, 1fr)); }
.forecast-bidding-page label { display:block; color:#475569; font-size:.75rem; font-weight:750; margin-bottom:6px; }
.forecast-bidding-page input,
.forecast-bidding-page select,
.forecast-bidding-page textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 9px 11px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: .84rem;
    outline: none;
}
.forecast-bidding-page input:focus,
.forecast-bidding-page select:focus,
.forecast-bidding-page textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.forecast-bidding-page .fb-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:14px; flex-wrap:wrap; }
.forecast-bidding-page .fb-btn {
    border: 0;
    border-radius: 10px;
    min-height: 40px;
    padding: 9px 14px;
    font-weight: 800;
    cursor: pointer;
    transition: .15s ease;
    white-space: nowrap;
}
.forecast-bidding-page .fb-btn:hover { transform: translateY(-1px); }
.forecast-bidding-page .fb-btn-primary { background: linear-gradient(135deg,#059669,#06b6d4); color:#fff; box-shadow:0 9px 18px rgba(5,150,105,.18); }
.forecast-bidding-page .fb-btn-blue { background: linear-gradient(135deg,#2563eb,#0891b2); color:#fff; }
.forecast-bidding-page .fb-btn-soft { background:#eef2f7; color:#334155; border:1px solid #dbe3ee; }
.forecast-bidding-page .fb-btn-danger { background:#fff1f2; color:#be123c; border:1px solid #fecdd3; }
.forecast-bidding-page .fb-kpi-grid { display:grid; grid-template-columns:repeat(5,minmax(155px,1fr)); gap:14px; margin-bottom:16px; }
.forecast-bidding-page .fb-kpi {
    position:relative;
    padding:17px 16px 15px;
    min-height:108px;
    overflow:hidden;
}
.forecast-bidding-page .fb-kpi::before { content:''; position:absolute; inset:0 auto 0 0; width:4px; background:var(--fb-kpi,#2563eb); }
.forecast-bidding-page .fb-kpi-label { color:#475569; font-size:.78rem; font-weight:800; }
.forecast-bidding-page .fb-kpi-value { margin-top:8px; font-size:1.7rem; line-height:1; font-weight:900; color:#0f172a; }
.forecast-bidding-page .fb-kpi-sub { margin-top:8px; color:#64748b; font-size:.73rem; line-height:1.35; }
.forecast-bidding-page .fb-insight {
    display:flex;
    gap:12px;
    align-items:flex-start;
    padding:14px 16px;
    margin-bottom:16px;
    border:1px solid #bae6fd;
    background:linear-gradient(135deg,#f0f9ff,#ecfeff);
    border-radius:14px;
}
.forecast-bidding-page .fb-insight-icon { width:36px; height:36px; display:flex; align-items:center; justify-content:center; border-radius:10px; background:#fff; flex:0 0 auto; }
.forecast-bidding-page .fb-insight strong { display:block; margin-bottom:4px; }
.forecast-bidding-page .fb-insight span { color:#475569; font-size:.82rem; line-height:1.5; }
.forecast-bidding-page .fb-chart-grid { display:grid; grid-template-columns:1.35fr .85fr; gap:16px; margin-bottom:16px; }
.forecast-bidding-page .fb-chart-card { padding:16px; min-height:340px; }
.forecast-bidding-page .fb-chart-wrap { position:relative; height:270px; }
.forecast-bidding-page .fb-table-panel { padding:16px; margin-bottom:16px; }
.forecast-bidding-page .fb-table-wrap { overflow:auto; border:1px solid #e2e8f0; border-radius:12px; }
.forecast-bidding-page table { width:100%; border-collapse:collapse; font-size:.82rem; }
.forecast-bidding-page th {
    background:#f8fafc;
    color:#475569;
    font-size:.73rem;
    font-weight:850;
    text-align:left;
    padding:11px 10px;
    border-bottom:1px solid #dbe3ee;
    white-space:nowrap;
    position:sticky;
    top:0;
    z-index:1;
}
.forecast-bidding-page td { padding:10px; border-bottom:1px solid #edf2f7; vertical-align:middle; }
.forecast-bidding-page tbody tr:hover td { background:#f8fafc; }
.forecast-bidding-page .fb-num { text-align:right; font-variant-numeric:tabular-nums; }
.forecast-bidding-page .fb-center { text-align:center; }
.forecast-bidding-page .fb-type-code { font-weight:900; color:#0f766e; }
.forecast-bidding-page .fb-type-label { display:block; color:#64748b; font-size:.7rem; margin-top:3px; }
.forecast-bidding-page .fb-total-row td { background:#f1f5f9; font-weight:900; }
.forecast-bidding-page .fb-expire-table { min-width: 980px; }
.forecast-bidding-page .fb-forecast-table { min-width: 1160px; }
.forecast-bidding-page .fb-detail-table { min-width: 1280px; }
.forecast-bidding-page .fb-edit {
    min-width:72px !important;
    min-height:34px !important;
    padding:6px 8px !important;
    text-align:right;
    border-radius:8px !important;
}
.forecast-bidding-page .fb-notes { min-width:160px !important; min-height:34px !important; padding:6px 8px !important; }
.forecast-bidding-page .fb-forecast-value { font-weight:900; color:#1d4ed8; font-size:.92rem; }
.forecast-bidding-page .fb-badge { display:inline-flex; align-items:center; gap:5px; border-radius:999px; padding:5px 9px; font-size:.72rem; font-weight:850; white-space:nowrap; }
.forecast-bidding-page .fb-badge-green { color:#047857; background:#d1fae5; }
.forecast-bidding-page .fb-badge-amber { color:#b45309; background:#fef3c7; }
.forecast-bidding-page .fb-badge-red { color:#b91c1c; background:#fee2e2; }
.forecast-bidding-page .fb-badge-gray { color:#475569; background:#e2e8f0; }
.forecast-bidding-page .fb-pill { display:inline-flex; align-items:center; padding:6px 10px; border-radius:999px; background:#ecfeff; color:#0e7490; border:1px solid #a5f3fc; font-size:.76rem; font-weight:850; }
.forecast-bidding-page .fb-empty { padding:34px 16px; text-align:center; color:#64748b; }
.forecast-bidding-page .fb-mini-actions { display:flex; align-items:center; gap:5px; justify-content:flex-end; }
.forecast-bidding-page .fb-mini-btn { border:1px solid #cbd5e1; background:#fff; color:#475569; border-radius:7px; padding:4px 7px; font-size:.7rem; font-weight:800; cursor:pointer; }
.forecast-bidding-page .fb-pagination { display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-top:12px; color:#64748b; font-size:.78rem; }
.forecast-bidding-page .fb-page-buttons { display:flex; gap:6px; }
.forecast-bidding-page .fb-page-btn { border:1px solid #dbe3ee; background:#fff; border-radius:8px; padding:6px 9px; font-weight:750; cursor:pointer; }
.forecast-bidding-page .fb-page-btn:disabled { opacity:.45; cursor:not-allowed; }

@media (max-width: 1300px) {
    .forecast-bidding-page .fb-filter-grid { grid-template-columns:repeat(3,minmax(160px,1fr)); }
    .forecast-bidding-page .fb-filter-grid.secondary { grid-template-columns:repeat(3,minmax(160px,1fr)); }
    .forecast-bidding-page .fb-kpi-grid { grid-template-columns:repeat(3,minmax(160px,1fr)); }
}
@media (max-width: 900px) {
    .forecast-bidding-page .fb-page-head { flex-direction:column; }
    .forecast-bidding-page .fb-chart-grid { grid-template-columns:1fr; }
    .forecast-bidding-page .fb-kpi-grid { grid-template-columns:repeat(2,minmax(145px,1fr)); }
}
@media (max-width: 640px) {
    .forecast-bidding-page .fb-filter-grid,
    .forecast-bidding-page .fb-filter-grid.secondary { grid-template-columns:1fr 1fr; gap:9px; }
    .forecast-bidding-page .fb-kpi-grid { grid-template-columns:1fr 1fr; gap:9px; }
    .forecast-bidding-page .fb-kpi { min-height:92px; padding:14px 13px; }
    .forecast-bidding-page .fb-kpi-value { font-size:1.35rem; }
    .forecast-bidding-page .fb-filter-panel,
    .forecast-bidding-page .fb-table-panel,
    .forecast-bidding-page .fb-chart-card { padding:12px; border-radius:13px; }
    .forecast-bidding-page .fb-actions { display:grid; grid-template-columns:1fr 1fr; }
    .forecast-bidding-page .fb-btn { width:100%; }
    .forecast-bidding-page .fb-section-head { flex-direction:column; }
}

/* V86.19: multi-select device type filter */
.forecast-bidding-page .fb-label-hint {
    color: #0284c7;
    font-size: .66rem;
    font-weight: 750;
    margin-left: 4px;
}
.forecast-bidding-page .fb-type-filter-cell { position: relative; min-width: 0; }
.forecast-bidding-page .fb-multi-select { position: relative; width: 100%; }
.forecast-bidding-page .fb-multi-toggle {
    width: 100%;
    min-height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 9px 11px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: .84rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    text-align: left;
}
.forecast-bidding-page .fb-multi-toggle:hover { border-color: #38bdf8; }
.forecast-bidding-page .fb-multi-select.is-open .fb-multi-toggle {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}
.forecast-bidding-page .fb-multi-chevron { color: #64748b; transition: transform .15s ease; }
.forecast-bidding-page .fb-multi-select.is-open .fb-multi-chevron { transform: rotate(180deg); }
.forecast-bidding-page .fb-multi-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: max(100%, 270px);
    max-width: 340px;
    z-index: 40;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(15,23,42,.18);
    overflow: hidden;
}
.forecast-bidding-page .fb-multi-select.is-open .fb-multi-menu { display: block; }
.forecast-bidding-page .fb-multi-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}
.forecast-bidding-page .fb-multi-toolbar button {
    border: 0;
    background: transparent;
    color: #0369a1;
    font-size: .72rem;
    font-weight: 850;
    cursor: pointer;
    padding: 4px 2px;
}
.forecast-bidding-page .fb-multi-options {
    max-height: 310px;
    overflow-y: auto;
    padding: 6px;
}
.forecast-bidding-page .fb-multi-option {
    display: grid;
    grid-template-columns: 20px minmax(0,1fr);
    column-gap: 8px;
    align-items: center;
    margin: 0;
    padding: 8px 9px;
    border-radius: 8px;
    cursor: pointer;
}
.forecast-bidding-page .fb-multi-option:hover { background: #f0f9ff; }
.forecast-bidding-page .fb-multi-option input {
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 0;
    accent-color: #059669;
}
.forecast-bidding-page .fb-multi-option span {
    color: #0f172a;
    font-size: .8rem;
    font-weight: 800;
}
.forecast-bidding-page .fb-multi-option small {
    grid-column: 2;
    color: #64748b;
    font-size: .65rem;
    margin-top: 2px;
}

@media (max-width: 640px) {
    .forecast-bidding-page .fb-multi-menu {
        position: fixed;
        left: 12px;
        right: 12px;
        top: auto;
        bottom: 12px;
        width: auto;
        max-width: none;
        max-height: 70vh;
        border-radius: 16px;
        z-index: 1000;
    }
    .forecast-bidding-page .fb-multi-options { max-height: calc(70vh - 52px); }
}
