@import url('/css/bm-app-shell.css?v=20260715-1');
@import url('/css/bm-unified-theme.css?v=20260715-2');

:root {
    --bm-bg: #f4f6f8;
    --bm-surface: #ffffff;
    --bm-text: #17202a;
    --bm-muted: #697586;
    --bm-border: #e2e7ed;
    --bm-dark: #16202a;
    --bm-orange: #ff9800;
    --bm-green: #16883e;
    --bm-red: #c63637;
    --bm-blue: #1677be;
    --bm-radius: 18px;
    --bm-shadow: 0 12px 30px rgba(28, 39, 49, .08);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; max-width: 100%; }
body {
    margin: 0;
    background: var(--bm-bg);
    color: var(--bm-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bm-modern-app { min-height: 100vh; }
.bm-modern-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--bm-border);
    box-shadow: 0 7px 24px rgba(25, 37, 48, .08);
    backdrop-filter: blur(12px);
}

.bm-modern-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--bm-text);
    text-decoration: none;
    white-space: nowrap;
}
.bm-modern-brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--bm-orange);
    color: #fff;
    font-weight: 900;
    letter-spacing: -.04em;
}
.bm-modern-brand strong, .bm-modern-brand small { display: block; line-height: 1.05; }
.bm-modern-brand small { margin-top: 4px; color: var(--bm-muted); font-size: 11px; }
.bm-modern-icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; fill: none; color: currentColor; vertical-align: -.18em; }
.bm-modern-header-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--bm-border);
    border-radius: 12px;
    background: #fff;
    color: #34404c;
    text-decoration: none;
}
.bm-modern-header-icon:hover { border-color: #f0b65a; background: #fff8ed; color: #a85e00; }

.bm-modern-scale-strip {
    display: flex;
    flex: 1 1 320px;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 3px 2px;
}
.bm-modern-scale-chip {
    flex: 0 0 auto;
    min-width: 52px;
    padding: 9px 12px;
    border: 1px solid var(--bm-border);
    border-radius: 999px;
    background: #fff;
    color: var(--bm-text);
    text-align: center;
    text-decoration: none;
    font-weight: 800;
}
.bm-modern-scale-chip:hover { border-color: var(--bm-orange); color: #a85e00; }
.bm-modern-scale-chip.active { border-color: var(--bm-green); background: #e8f7ed; color: var(--bm-green); }
.bm-modern-scale-chip.is-peripheral { border-style: dashed; border-color: #72a9d2; background: #eef7fd; color: #176592; font-size: 11px; }
.bm-modern-scale-chip.is-peripheral::before { content: 'P·'; font-size: 9px; opacity: .72; }
.bm-modern-scale-chip.is-peripheral.active { border-color: #1677be; background: #dceffc; color: #0b5e98; }
.bm-modern-user-picker { flex: 0 1 280px; min-width: 190px; }
.bm-modern-user-picker .form-select { height: 42px; border-color: var(--bm-border); border-radius: 12px; font-size: 13px; font-weight: 700; }
.bm-modern-user-gear { display: none; }

.bm-modern-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.bm-modern-sidebar {
    position: sticky;
    top: 72px;
    height: calc(100vh - 72px);
    flex-direction: column;
    padding: 20px 14px;
    overflow-y: auto;
    background: var(--bm-dark);
    color: #fff;
}
.bm-modern-nav { display: grid; gap: 5px; }
.bm-modern-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 13px;
    border-radius: 12px;
    color: rgba(255,255,255,.76);
    text-decoration: none;
    font-weight: 650;
}
.bm-modern-nav-link:hover, .bm-modern-nav-link.active { background: rgba(255,255,255,.11); color: #fff; }
.bm-modern-nav-link.active { box-shadow: inset 3px 0 0 var(--bm-orange); }
.bm-modern-nav-group { border-radius: 12px; }
.bm-modern-nav-group summary {
    min-height: 44px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border-radius: 12px;
    color: rgba(255,255,255,.76);
    cursor: pointer;
    font-weight: 650;
    list-style: none;
}
.bm-modern-nav-group summary::-webkit-details-marker { display: none; }
.bm-modern-nav-group summary:hover, .bm-modern-nav-group[open] > summary { background: rgba(255,255,255,.09); color: #fff; }
.bm-modern-nav-chevron { font-size: 19px; transition: transform .18s ease; }
.bm-modern-nav-group[open] .bm-modern-nav-chevron { transform: rotate(90deg); }
.bm-modern-nav-submenu { display: grid; gap: 2px; padding: 4px 5px 8px 34px; }
.bm-modern-nav-sublink { padding: 7px 9px; border-radius: 8px; color: rgba(255,255,255,.62); font-size: 12px; font-weight: 650; text-decoration: none; }
.bm-modern-nav-sublink:hover, .bm-modern-nav-sublink.active { background: rgba(255,255,255,.09); color: #fff; }
.bm-modern-nav-sublink.active { box-shadow: inset 2px 0 0 var(--bm-orange); }
.bm-modern-sidebar-footer { margin-top: auto; padding: 12px; color: rgba(255,255,255,.48); font-size: 12px; }

.bm-modern-main { min-width: 0; padding: 28px; }
.bm-modern-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}
.bm-modern-title-row h1 { margin: 0; font-size: clamp(23px, 2.3vw, 32px); letter-spacing: -.025em; }
.bm-modern-eyebrow { margin: 0 0 5px; color: var(--bm-orange); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.bm-modern-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: min(72vw, 720px);
    margin: 7px 0 0;
    padding: 4px 9px;
    border: 1px solid var(--bm-border);
    border-radius: 999px;
    background: rgba(255,255,255,.72);
    color: var(--bm-muted);
    font-size: 12px;
}
.bm-modern-location span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-modern-location .bm-modern-icon { width: 15px; height: 15px; color: var(--bm-orange); }
.bm-modern-last-update { padding: 11px 14px; border: 1px solid var(--bm-border); border-radius: 13px; background: #fff; text-align: right; }
.bm-modern-last-update span, .bm-modern-last-update strong { display: block; }
.bm-modern-last-update span { color: var(--bm-muted); font-size: 12px; }
.bm-modern-last-update strong { margin-top: 3px; font-size: 14px; }

.bm-modern-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -5px 0 18px;
    padding: 8px;
    overflow-x: auto;
    border: 1px solid var(--bm-border);
    border-radius: 15px;
    background: #fff;
    scrollbar-width: thin;
}
.bm-modern-toolbar a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--bm-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
}
.bm-modern-toolbar a:hover { background: #fff4e3; color: #a85e00; }

.bm-modern-daily-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}
.bm-modern-daily-card {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--bm-border);
    border-radius: 15px;
    background: #fff;
}
.bm-modern-daily-card span, .bm-modern-daily-card strong, .bm-modern-daily-card small { display: block; }
.bm-modern-daily-card span { color: var(--bm-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.bm-modern-daily-card strong { margin-top: 5px; font-size: 25px; line-height: 1.1; }
.bm-modern-daily-card small { margin-top: 5px; overflow: hidden; color: var(--bm-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.bm-modern-daily-card.is-positive strong { color: var(--bm-green); }
.bm-modern-daily-card.is-negative strong { color: var(--bm-red); }
.bm-modern-daily-featured { border-color: #f3c57d; background: #fffaf0; }

.bm-modern-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bm-modern-metric {
    position: relative;
    min-height: 154px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--bm-border);
    border-radius: var(--bm-radius);
    background: var(--bm-surface);
    box-shadow: var(--bm-shadow);
}
.bm-modern-metric::after { content: ""; position: absolute; right: -24px; bottom: -38px; width: 110px; height: 110px; border-radius: 50%; background: currentColor; opacity: .055; }
.bm-modern-metric span { display: block; color: var(--bm-muted); font-weight: 700; }
.bm-modern-metric strong { display: inline-block; margin-top: 16px; font-size: clamp(34px, 4vw, 54px); line-height: .95; letter-spacing: -.055em; }
.bm-modern-metric small { display: block; margin: 7px 0 0; color: var(--bm-muted); font-size: 11px; font-weight: 700; line-height: 1.35; }
.bm-modern-metric-weight { color: #6846c7; }
.bm-modern-positive { color: var(--bm-green); }
.bm-modern-negative { color: var(--bm-red); }
.bm-modern-metric-temperature { color: #d65b2b; }
.bm-modern-metric-humidity { color: var(--bm-blue); }

.bm-modern-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.bm-modern-status-card { padding: 18px 20px; border: 1px solid var(--bm-border); border-radius: var(--bm-radius); background: #fff; }
.bm-modern-status-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bm-modern-status-heading span { color: var(--bm-muted); font-weight: 700; }
.bm-modern-status-heading strong { font-size: 22px; }
.bm-modern-status-label { display: inline-flex; align-items: center; gap: 8px; }
.bm-modern-status-label .bm-modern-icon { width: 25px; height: 25px; color: var(--bm-orange); }
.bm-modern-status-card p { margin: 0; color: var(--bm-muted); }
.progress { height: 10px; border-radius: 999px; }

.bm-modern-info-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .65fr); gap: 14px; margin-top: 14px; }
.bm-modern-info-card { overflow: hidden; border: 1px solid var(--bm-border); border-radius: var(--bm-radius); background: #fff; }
.bm-modern-info-card .bm-modern-panel-heading { padding-bottom: 14px; }
.bm-modern-heading-with-icon { display: inline-flex; align-items: center; gap: 9px; }
.bm-modern-heading-with-icon .bm-modern-icon { width: 25px; height: 25px; color: var(--bm-orange); }
.bm-modern-weather-state { color: var(--bm-muted); font-size: 12px; font-weight: 750; }
.bm-modern-weather-values, .bm-modern-sim-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--bm-border); border-top: 1px solid var(--bm-border); }
.bm-modern-weather-values > div, .bm-modern-sim-values > div { min-width: 0; padding: 16px; background: #fff; }
.bm-modern-weather-values span, .bm-modern-sim-values span { display: block; color: var(--bm-muted); font-size: 12px; font-weight: 700; }
.bm-modern-weather-values strong, .bm-modern-sim-values strong { display: block; margin-top: 5px; font-size: 23px; letter-spacing: -.03em; }
.bm-modern-sim-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bm-modern-sim-values strong { font-size: 18px; }
.bm-modern-decision-card { min-width: 0; }
.bm-decision-day-switch, .bm-decision-activity-switch { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--bm-border); border-radius: 12px; background: #f4f6f8; }
.bm-decision-day-switch button, .bm-decision-activity-switch button { border: 0; border-radius: 9px; background: transparent; color: var(--bm-muted); font-size: 12px; font-weight: 850; }
.bm-decision-day-switch button { padding: 8px 12px; }
.bm-decision-activity-switch button { padding: 7px 13px; }
.bm-decision-day-switch button.active, .bm-decision-activity-switch button.active { background: #fff; color: var(--bm-text); box-shadow: 0 2px 8px rgba(31, 41, 55, .12); }
.bm-decision-day-switch button:focus-visible, .bm-decision-activity-switch button:focus-visible { outline: 3px solid rgba(13, 110, 253, .2); outline-offset: 1px; }
.bm-decision-body { padding: 16px 18px 14px; }
.bm-decision-result { display: flex; align-items: center; gap: 15px; min-height: 76px; }
.bm-decision-result > div { min-width: 0; }
.bm-decision-result > div > strong, .bm-decision-result > div > span { display: block; }
.bm-decision-result > div > strong { font-size: 21px; line-height: 1.15; }
.bm-decision-result > div > span { margin-top: 5px; color: var(--bm-muted); font-size: 13px; font-weight: 700; }
.bm-decision-status { display: inline-flex; flex: 0 0 130px; min-height: 62px; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 16px; font-size: 20px; font-weight: 950; letter-spacing: .02em; text-align: center; }
.bm-decision-go { background: #dff7e8; color: #08713b; }
.bm-decision-caution { background: #fff1ce; color: #8a5200; font-size: 16px; line-height: 1.05; }
.bm-decision-no-go { flex-basis: 72px; width: 72px; min-height: 72px; padding: 8px; border-radius: 0; background: #d82437; color: #fff; clip-path: polygon(29% 0, 71% 0, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0 71%, 0 29%); font-size: 19px; text-shadow: 0 1px 1px rgba(0, 0, 0, .18); }
.bm-decision-pending { background: #edf1f4; color: #52606d; }
.bm-decision-activity-switch { margin-top: 13px; }
.bm-decision-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.bm-decision-reasons li { position: relative; min-width: 0; padding: 10px 44px 10px 30px; border: 1px solid var(--bm-border); border-radius: 11px; background: #fbfcfd; }
.bm-decision-reasons li::before { position: absolute; top: 13px; left: 12px; width: 9px; height: 9px; border-radius: 50%; background: #aab4bd; content: ''; }
.bm-decision-reasons li[data-state="good"]::before { background: #19a35b; }
.bm-decision-reasons li[data-state="warn"]::before { background: #f59e0b; }
.bm-decision-reasons li[data-state="bad"]::before { background: #dc3545; }
.bm-decision-mark { position: absolute; top: 50%; right: 10px; display: inline-flex; width: 25px; height: 25px; align-items: center; justify-content: center; transform: translateY(-50%); border: 1px solid #cbd3da; border-radius: 50%; background: #eef2f5; color: #66727d; font-size: 16px; font-style: normal; font-weight: 950; line-height: 1; box-shadow: 0 1px 3px rgba(31, 41, 55, .08); }
.bm-decision-reasons li[data-state="good"] .bm-decision-mark { border-color: #99d8b5; background: #e2f7eb; color: #08713b; }
.bm-decision-reasons li[data-state="warn"] .bm-decision-mark { border-color: #efc15d; background: #fff2cf; color: #8a5200; }
.bm-decision-reasons li[data-state="bad"] .bm-decision-mark { border-color: #dc3545; background: #dc3545; color: #fff; }
.bm-decision-reasons span, .bm-decision-reasons strong { display: block; }
.bm-decision-reasons span { color: var(--bm-muted); font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.bm-decision-reasons strong { margin-top: 2px; font-size: 13px; line-height: 1.3; }
.bm-decision-details { margin-top: 12px; border-top: 1px solid var(--bm-border); }
.bm-decision-details summary { padding: 12px 0 3px; cursor: pointer; color: #0d6efd; font-size: 12px; font-weight: 850; list-style: none; }
.bm-decision-details summary::-webkit-details-marker { display: none; }
.bm-decision-details summary::after { margin-left: 6px; content: '⌄'; }
.bm-decision-details[open] summary::after { content: '⌃'; }
.bm-decision-details > div { padding-top: 9px; color: #52606d; font-size: 12px; line-height: 1.55; }
.bm-decision-details p { margin: 0 0 6px; }
.bm-decision-sources { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.bm-decision-sources a { color: #0d6efd; font-size: 11px; font-weight: 800; text-decoration: none; }
.bm-modern-forecast-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(112px, 1fr));
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    border-top: 1px solid var(--bm-border);
    background: #f8fafb;
    scrollbar-width: thin;
}
.bm-modern-forecast-day {
    min-width: 112px;
    padding: 10px;
    border: 1px solid var(--bm-border);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.bm-modern-forecast-day:hover, .bm-modern-forecast-day.active { border-color: rgba(239, 143, 0, .72); box-shadow: 0 5px 18px rgba(31, 41, 55, .09); transform: translateY(-1px); }
.bm-modern-forecast-day:focus-visible { outline: 3px solid rgba(13, 110, 253, .22); outline-offset: 2px; }
.bm-modern-forecast-day span, .bm-modern-forecast-day strong, .bm-modern-forecast-day small, .bm-modern-forecast-day em { display: block; }
.bm-modern-forecast-day span { color: var(--bm-muted); font-size: 12px; font-weight: 800; }
.bm-modern-forecast-day .bm-modern-weather-icon { margin: 5px 0 2px; font-size: 24px; line-height: 1; }
.bm-modern-forecast-day strong { font-size: 16px; }
.bm-modern-forecast-day small { margin-top: 4px; color: var(--bm-blue); font-size: 11px; font-weight: 750; }
.bm-flight-status { margin-top: 7px; padding: 3px 6px; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 850; }
.bm-flight-status.bm-flight-good { background: rgba(25, 163, 91, .13); color: #0b773f; }
.bm-flight-status.bm-flight-warn { background: rgba(245, 158, 11, .16); color: #925500; }
.bm-flight-status.bm-flight-bad { background: rgba(220, 53, 69, .12); color: #a01f2e; }
.bm-modern-flight-details { margin: 0 12px 14px; padding: 14px 16px; border: 1px solid var(--bm-border); border-left: 4px solid var(--bm-blue); border-radius: 12px; background: #f8fafb; }
.bm-modern-flight-details.bm-flight-good { border-left-color: #19a35b; background: #f4fbf7; }
.bm-modern-flight-details.bm-flight-warn { border-left-color: #f59e0b; background: #fffaf1; }
.bm-modern-flight-details.bm-flight-bad { border-left-color: #dc3545; background: #fff7f8; }
.bm-flight-details-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bm-flight-details-heading span { display: block; color: var(--bm-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.bm-flight-details-heading strong { display: block; margin-top: 2px; font-size: 18px; }
.bm-flight-window { padding: 5px 9px; border-radius: 999px; background: #fff; color: var(--bm-text) !important; font-size: 12px !important; text-transform: none !important; }
.bm-flight-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
.bm-flight-facts span { padding: 7px 9px; border-radius: 8px; background: #fff; color: var(--bm-muted); font-size: 11px; }
.bm-flight-facts b { display: block; margin-top: 2px; color: var(--bm-text); font-size: 13px; }
.bm-modern-flight-details ul { margin: 10px 0 0; padding-left: 18px; color: #52606d; font-size: 12px; }

.bm-modern-fire-risk { display: flex; flex-direction: column; }
.bm-fire-risk-level { display: inline-flex; min-width: 118px; min-height: 54px; padding: 10px 18px; align-items: center; justify-content: center; border: 2px solid rgba(31, 41, 55, .08); border-radius: 16px; background: #edf1f4; color: #52606d; font-size: 21px; font-weight: 950; line-height: 1; box-shadow: 0 7px 18px rgba(31, 41, 55, .10); }
.bm-fire-risk-body { flex: 1; padding: 16px 18px 12px; }
.bm-fire-risk-body > strong { display: block; font-size: 18px; }
.bm-fire-risk-body > p { margin: 7px 0 14px; color: var(--bm-muted); font-size: 12px; line-height: 1.5; }
.bm-fire-risk-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.bm-fire-risk-scale i { height: 13px; border-radius: 999px; opacity: .4; transition: opacity .15s ease, transform .15s ease; }
.bm-fire-risk-scale i:nth-child(1) { background: #9effaa; }
.bm-fire-risk-scale i:nth-child(2) { background: #a6caf0; }
.bm-fire-risk-scale i:nth-child(3) { background: #fff200; }
.bm-fire-risk-scale i:nth-child(4) { background: #ff9f00; }
.bm-fire-risk-scale i:nth-child(5) { background: #ee1b24; }
.bm-fire-risk-scale i.active { opacity: 1; transform: scaleY(1.7); }
.bm-fire-risk-source { display: block; padding: 11px 18px; border-top: 1px solid var(--bm-border); color: #0d6efd; font-size: 12px; font-weight: 800; text-decoration: none; }

.bm-modern-panel { margin-top: 18px; overflow: hidden; border: 1px solid var(--bm-border); border-radius: var(--bm-radius); background: #fff; box-shadow: var(--bm-shadow); }
.bm-modern-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border-bottom: 1px solid var(--bm-border); }
.bm-modern-panel-heading h2 { margin: 0; font-size: 22px; }
.bm-modern-panel .table thead th { padding: 13px 15px; background: #f8fafb; color: var(--bm-muted); font-size: 12px; text-transform: uppercase; white-space: nowrap; }
.bm-modern-panel .table td { padding: 13px 15px; white-space: nowrap; }
.bm-table-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.bm-table-actions .form-control { width: min(310px, 52vw); }
.bm-tabulator-host { min-height: 150px; background: #fff; }
.bm-modern-days-table-actions { margin-top: 18px; }
.bm-modern-days-table { max-height: none; margin-top: 10px; }
.bm-modern-location-history-panel .tabulator { border-width: 0; }
.bm-location-current-report { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px; background: #fffaf0; }
.bm-location-current-report > div { min-width: 0; }
.bm-location-current-report span, .bm-location-current-report strong, .bm-location-current-report small { display: block; }
.bm-location-current-report span { color: var(--bm-orange); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.bm-location-current-report strong { margin-top: 3px; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.bm-location-current-report small { margin-top: 3px; color: var(--bm-muted); }
.bm-location-history-details { border-top: 1px solid var(--bm-border); }
.bm-location-history-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 20px; cursor: pointer; color: #3e4b57; font-size: 13px; font-weight: 850; list-style: none; }
.bm-location-history-details summary::-webkit-details-marker { display: none; }
.bm-location-history-details summary::after { content: '⌄'; color: var(--bm-orange); font-size: 18px; }
.bm-location-history-details[open] summary::after { transform: rotate(180deg); }
.bm-location-history-details summary span { margin-left: auto; padding: 2px 7px; border-radius: 999px; background: #edf1f4; color: var(--bm-muted); font-size: 10px; }
.bm-modern-panel .tabulator { border: 0; background: #fff; font-size: 13px; }
.bm-modern-panel .tabulator .tabulator-header { border-color: var(--bm-border); background: #f8fafb; color: #52606d; }
.bm-modern-panel .tabulator .tabulator-header .tabulator-col { border-color: var(--bm-border); background: #f8fafb; }
.bm-modern-panel .tabulator .tabulator-header .tabulator-col .tabulator-col-content { padding: 10px 9px; }
.bm-modern-panel .tabulator .tabulator-row { border-color: #edf0f3; }
.bm-modern-panel .tabulator .tabulator-row:hover { background: #fff8ed; }
.bm-modern-panel .tabulator .tabulator-cell { padding: 10px 9px; border-color: #edf0f3; }
.bm-modern-panel .tabulator .tabulator-footer { border-color: var(--bm-border); background: #f8fafb; }
.bm-modern-charts-panel .accordion-button { padding: 16px 20px; font-weight: 800; }
.bm-modern-charts-panel .accordion-button:not(.collapsed) { background: #fff8ed; color: #9a5800; box-shadow: none; }
.bm-modern-chart-wrap { position: relative; width: 100%; height: 330px; }
.bm-modern-days-table { max-height: 340px; margin-top: 18px; }
.bm-modern-days-table thead { position: sticky; top: 0; z-index: 2; }

.bm-modern-offcanvas { background: var(--bm-dark); color: #fff; }

/* Device overview (default.php) */
.bm-fleet-title-row { margin-bottom: 16px; }
.bm-fleet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.bm-fleet-card { overflow: hidden; border: 1px solid var(--bm-border); border-radius: var(--bm-radius); background: #fff; box-shadow: var(--bm-shadow); }
.bm-fleet-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; }
.bm-fleet-card-top h2 { margin: 2px 0 0; font-size: 21px; }
.bm-fleet-infographic-wrap { display: grid; place-items: start center; padding: 0 14px 8px; background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%); }
.bm-fleet-infographic { display: block; width: min(100%, 360px); aspect-ratio: 309 / 423; border: 0; background: transparent; }
.bm-fleet-card-body { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 16px; min-height: 152px; padding: 4px 18px 14px; }
.bm-fleet-hive { display: block; width: 104px; height: 132px; object-fit: contain; border-radius: 12px; background: #fffaf0; }
.bm-fleet-primary span { display: block; color: var(--bm-muted); font-size: 12px; font-weight: 750; }
.bm-fleet-primary strong { display: block; margin-top: 3px; font-size: clamp(30px, 4vw, 42px); line-height: 1; letter-spacing: -.05em; }
.bm-fleet-primary small { display: block; margin-top: 8px; font-size: 15px; font-weight: 850; }
.bm-fleet-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--bm-border); border-bottom: 1px solid var(--bm-border); background: #f8fafb; }
.bm-fleet-metrics > div { min-width: 0; padding: 11px 9px; border-right: 1px solid var(--bm-border); }
.bm-fleet-metrics > div:last-child { border-right: 0; }
.bm-fleet-metrics span { display: flex; align-items: center; gap: 4px; color: var(--bm-muted); font-size: 10px; font-weight: 750; }
.bm-fleet-metrics .bm-modern-icon { width: 16px; height: 16px; color: var(--bm-orange); }
.bm-fleet-metrics strong { display: block; margin-top: 3px; font-size: 16px; white-space: nowrap; }
.bm-fleet-location { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 11px 18px 0; color: var(--bm-muted); font-size: 12px; font-weight: 700; }
.bm-fleet-location .bm-modern-icon { flex: 0 0 auto; width: 18px; height: 18px; color: var(--bm-orange); }
.bm-fleet-location span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bm-fleet-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px 16px; }
.bm-fleet-card-footer small { overflow: hidden; color: var(--bm-muted); text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 991.98px) {
    .bm-modern-header { flex-wrap: wrap; gap: 9px; padding: 8px 10px; }
    .bm-modern-header > .btn { order: 1; flex: 0 0 auto; }
    .bm-modern-brand { order: 2; flex: 0 0 auto; }
    .bm-modern-header-icon { order: 3; }
    .bm-modern-scale-strip { order: 4; flex: 1 1 120px; width: auto; }
    .bm-modern-header > .dropdown { order: 5; flex: 0 0 auto; }
    .bm-modern-brand > span:last-child { display: none; }
    .bm-modern-layout { display: block; }
    .bm-modern-main { padding: 18px 12px 28px; }
    .bm-modern-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bm-modern-title-row { align-items: stretch; flex-direction: column; }
    .bm-modern-last-update { text-align: left; }
    .bm-modern-user-picker { order: 6; flex: 1 0 100%; width: 100%; min-width: 0; }
    .bm-modern-user-picker .form-select { width: 100%; }
    .bm-modern-info-grid { grid-template-columns: 1fr; }
    .bm-modern-daily-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bm-modern-daily-featured { grid-column: 1 / -1; }
}

@media (max-width: 1240px) and (min-width: 992px) {
    .bm-modern-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .bm-flight-details-heading { align-items: flex-start; flex-direction: column; }
    .bm-flight-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bm-decision-result { align-items: flex-start; flex-direction: column; }
    .bm-decision-status { flex-basis: auto; width: 100%; min-height: 52px; }
    .bm-decision-status.bm-decision-no-go { flex-basis: 72px; width: 72px; min-height: 72px; }
    .bm-decision-day-switch, .bm-decision-activity-switch { width: 100%; }
    .bm-decision-day-switch button, .bm-decision-activity-switch button { flex: 1 1 0; }
    .bm-decision-reasons { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    body { overflow-x: clip; }
    .bm-modern-header { align-items: center; }
    .bm-modern-brand-mark { width: 40px; height: 40px; }
    .bm-modern-scale-strip { flex-basis: 92px; }
    .bm-modern-scale-chip { min-width: 48px; padding: 8px 10px; }
    .bm-modern-header .dropdown .btn { width: 46px; height: 40px; padding: 0; white-space: nowrap; }
    .bm-modern-header .dropdown .btn::after { display: none; }
    .bm-modern-user-name { display: none; }
    .bm-modern-user-gear { display: inline; font-size: 20px; line-height: 1; }
    .bm-modern-metrics { gap: 9px; }
    .bm-modern-daily-summary { gap: 8px; }
    .bm-modern-daily-card { padding: 12px; }
    .bm-modern-daily-card strong { font-size: 21px; }
    .bm-modern-daily-card small { white-space: normal; }
    .bm-modern-metric { min-height: 124px; padding: 15px; }
    .bm-modern-metric strong { margin-top: 13px; font-size: 36px; }
    .bm-modern-status-grid { grid-template-columns: 1fr; gap: 9px; }
    .bm-modern-panel-heading { align-items: flex-start; flex-direction: column; }
    .bm-table-actions { width: 100%; justify-content: stretch; }
    .bm-table-actions .form-control { width: 100%; flex: 1 1 100%; }
    .bm-modern-weather-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bm-modern-sim-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bm-modern-weather-values strong { font-size: 21px; }
    .bm-modern-chart-wrap { height: 270px; }
    .bm-fleet-grid { grid-template-columns: 1fr; }
    .bm-fleet-card-body { grid-template-columns: 88px 1fr; min-height: 130px; }
    .bm-fleet-hive { width: 82px; height: 108px; }
    .bm-fleet-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bm-fleet-metrics > div:nth-child(2) { border-right: 0; }
    .bm-fleet-metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--bm-border); }
    .bm-location-current-report { align-items: flex-start; flex-direction: column; }
    .bm-location-current-report .btn { width: 100%; }
}
.bm-modern-header-language { display: flex; align-items: center; }
@media (max-width: 767px) {
    .bm-modern-header-language { margin-left: auto; }
    .bm-modern-header-language + .dropdown { margin-left: 0 !important; }
}
.bm-active-fire-banner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:15px;align-items:start;margin:0 0 18px;padding:16px 18px;border:1px solid #e59aa1;border-left:7px solid #c62835;border-radius:16px;background:linear-gradient(110deg,#fff1f2,#fff 68%);box-shadow:0 8px 24px rgba(166,36,49,.11)}
.bm-active-fire-sign{display:grid;place-items:center;width:48px;height:48px;border:4px solid #fff;border-radius:50%;outline:3px solid #c62835;background:#c62835;color:#fff;font-size:29px;font-weight:900;line-height:1}
.bm-active-fire-copy p{margin:0;color:#a12632;font-size:11px;font-weight:900;letter-spacing:.08em}.bm-active-fire-copy h2{margin:2px 0;font-size:20px}.bm-active-fire-copy span{display:block;font-weight:700}.bm-active-fire-copy small{display:block;margin-top:4px;color:#69494c}.bm-active-fire-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.bm-active-fire-list{display:grid;gap:7px;max-height:260px;margin:12px 0 0;padding:0;overflow:auto;list-style:none;scrollbar-gutter:stable}
.bm-active-fire-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border:1px solid rgba(198,40,53,.17);border-radius:10px;background:rgba(255,255,255,.78)}
.bm-active-fire-list li strong{font-size:14px}.bm-active-fire-list li span{display:inline;margin-left:7px;font-size:13px;font-weight:700}.bm-active-fire-list li small{margin-top:1px;font-size:11px}.bm-active-fire-list li>a{flex:0 0 auto;color:#a12632;font-size:12px;font-weight:800;text-decoration:none}.bm-active-fire-list li>a:hover{text-decoration:underline}
@media(max-width:760px){.bm-active-fire-banner{grid-template-columns:auto 1fr}.bm-active-fire-actions{grid-column:1/-1;justify-content:flex-start}}
