/* 제설관제 — 스마트 제설 대시보드 참고 톤: 선명 스카이블루 페이지 / 네이비 헤더 / 화이트 라운드 카드 / 상태색 초·주황·빨·보라 요약 */
@import url("fx-page-enter.css");
@import url("fx-select.css");
@import url("fx-choice.css");
:root {
    --fx-powder-light: #64b5f6;
    --fx-powder-mid: #2196f3;
    --fx-powder-deep: #1e88e5;
    /* 참고 이미지: 밝고 산뜻한 하늘빛 그라데이션 */
    --fx-page-grad: linear-gradient( 155deg, #e1f5fe 0%, #b3e5fc 38%, #e3f2fd 72%, #f5fbff 100% );
    /* 상단: 딥 네이비 → 로열 블루 (관제 헤더) */
    --fx-nav-grad: linear-gradient( to right, #0d47a1 0%, #1565c0 45%, #1976d2 100% );
    --fx-royal: #1976d2;
    --fx-royal-deep: #0d47a1;
    --fx-royal-mid: #1e88e5;
    --fx-sky-soft: #ffffff;
    --fx-sky-mid: #e3f2fd;
    /* 완료·정상 / 대기·주의 / 긴급 — 대시보드 뱃지 느낌 */
    --fx-accent-green: #2e7d32;
    --fx-accent-green-pop: #43a047;
    --fx-accent-lime: #66bb6a;
    --fx-accent-orange: #fb8c00;
    --fx-accent-red: #e53935;
    /* 합계·요약 지표용 포인트 (참고 UI 보라 계열) */
    --fx-accent-purple: #7e57c2;
    --fx-accent-purple-soft: #ede7f6;
    --fx-text: #0f172a;
    --fx-text-muted: #546e7a;
    --fx-white: #ffffff;
    --fx-glass: rgba(255, 255, 255, 0.97);
    --fx-shadow: 0 14px 44px rgba(13, 71, 161, 0.3);
    --fx-shadow-sm: 0 6px 22px rgba(13, 71, 161, 0.3);
    /* 카드 코너 참고: 약 16~18px */
    --fx-radius: 16px;
    --fx-radius-sm: 12px;
    --fx-font: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, -apple-system, sans-serif;
    --top-header-min-h: 72px;
    /* index 상단(.top-inner) 실제 체감 높이 — 날씨·우측 메뉴 1행 기준, 마이페이지 top 과 동일하게 맞출 때 */
    --top-header-match-h: 96px;
    /* 차량 작업 카드: 상단 하늘색 → 하단 흰색 */
    --fx-vehicle-card-grad: linear-gradient(180deg, #d0e1f9 0%, #e8f2fc 42%, #ffffff 100%);
    --fx-vehicle-card-grad-selected: linear-gradient(180deg, #c5daf5 0%, #e3f0fc 50%, #f8fcff 100%);
    --fx-map-marker-run-grad: linear-gradient(180deg, #6eb8ff 0%, #3d9cf5 42%, #1e6bff 100%);
    --fx-map-marker-work-grad: linear-gradient(180deg, #7dd086 0%, #4caf50 45%, #2e7d32 100%);
    --fx-map-marker-fleet-grad: linear-gradient(180deg, #b0bec5 0%, #78909c 45%, #546e7a 100%);
}

html[data-theme="dark"] {
    --fx-powder-light: #7dd3fc;
    --fx-powder-mid: #38bdf8;
    --fx-powder-deep: #0ea5e9;
    --fx-page-grad: radial-gradient(ellipse 72% 52% at 0% 100%, rgba(56, 189, 248, 0.12) 0%, transparent 54%), radial-gradient(ellipse 64% 46% at 100% 0%, rgba(96, 165, 250, 0.1) 0%, transparent 56%), linear-gradient(155deg, #18202a 0%, #1b2530 45%, #202938 100%);
    /* 상단바 — 본문보다 살짝 밝은 청회색 (너무 어둡지 않게) */
    --fx-nav-grad: linear-gradient(to right, #212c3e 0%, #263548 48%, #2a3e52 100%);
    --fx-royal: #6bb7ff;
    --fx-royal-deep: #f3f7fb;
    --fx-royal-mid: #89caff;
    --fx-sky-soft: #252c38;
    --fx-sky-mid: #2a3340;
    --fx-text: #f3f7fb;
    --fx-text-muted: #b8c2cf;
    --fx-white: rgba(37, 44, 56, 0.96);
    --fx-glass: rgba(37, 44, 56, 0.9);
    --fx-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    --fx-shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.2);
    --fx-vehicle-card-grad: linear-gradient(180deg, rgba(56, 120, 180, 0.38) 0%, rgba(43, 51, 64, 0.94) 58%, rgba(37, 44, 56, 0.98) 100%);
    --fx-vehicle-card-grad-selected: linear-gradient(180deg, rgba(70, 130, 190, 0.45) 0%, rgba(48, 58, 72, 0.96) 55%, rgba(40, 48, 60, 1) 100%);
}

html {
    font-family: var(--fx-font);
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    min-height: 100%;
    background: var(--fx-page-grad);
    /*background: url(/img/bg/index3-body-bg.png) no-repeat center center / cover;;*/
    background-attachment: fixed;
    color: var(--fx-text);
    display: flex;
    flex-direction: column;
}

.top {
    margin: 0;
    overflow: hidden;
    transition: background 1s ease;

}
/* 공통 애니메이션 */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}
@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}
/* 맑음 */
.top.sunny {
    background-image: linear-gradient(90deg, #5bbcff 0%, #1f9ef2 22%, #0d7ee0 48%, #0a5fb8 72%, #083d85 100%);
}

/* 구름 */
.top.cloudy {
    background-image: linear-gradient(90deg, #03A9F4 0%, #9a9a9a 25%, #5f7e96 50%, #2196F3 75%, #3a3a3a 100%);
}

/* 비 */
.top.rainy {
    background-image: linear-gradient(90deg, #357ae8 0%, #2a5fb8 25%, #1f4a94 50%, #16346f 75%, #0d204a 100%);
}

.top.snowy {
    background-image: linear-gradient(90deg, #30b6d4 0%, #9bdcf7 25%, #6fc8f5 50%, #3fb4f3 75%, #1fa0f0 100%);
}




html[data-theme="dark"] body {
    color-scheme: dark;
}
*{
     transition: all 0.4s;
}
.control-wrap {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

    .control-wrap::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        z-index: 0;
        opacity: 0.32;
        background: radial-gradient(ellipse 90% 55% at 100% 0%, rgba(255, 255, 255, 0.22) 0%, transparent 52%), radial-gradient(ellipse 70% 45% at 0% 100%, rgba(255, 255, 255, 0.1) 0%, transparent 48%), repeating-linear-gradient( -36deg, transparent, transparent 28px, rgba(255, 255, 255, 0.04) 28px, rgba(255, 255, 255, 0.04) 29px );
    }

    .control-wrap .layout {
        position: relative;
        z-index: 1;
        flex: 1;
        min-height: 0;
    }

.hint {
    /* position: absolute; */
    z-index: 1000;
    /* top: 14px;
  left: 50%;
  transform: translateX(-50%); */
    padding: 10px 18px;
    border-radius: var(--fx-radius-sm);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--fx-text);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.98);
    box-shadow: var(--fx-shadow-sm), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: calc(100% - 40px);
    text-align: center;
    line-height: 1.45;
    background-size: 200% 200%; /* 배경을 크게 잡아야 움직임이 자연스러워요 */
    animation: moveGradient 8s linear infinite;
}

.hint-updated {
    margin-left: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--fx-powder-deep);
}

.top {
    flex-shrink: 0;
    position: relative;
    will-change: transform, opacity;
    /* 본문(.panel)보다 위 — 계정 드롭다운이 지도·카드에 가리지 않도록 (모달 20000+ 는 그대로 위) */
    z-index: 9000;
    isolation: isolate;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 20px rgba(0, 60, 140, 0.28);
    background-color: #1a7fd4;
    background-image: linear-gradient( 90deg, #89d4ff 0%, #2aa3f2 22%, #1b8ee6 48%, #0f6fc8 72%, #0b4fa1 100% );
    overflow: hidden;
    max-height: 98px;
    opacity: 1 !important;
    background-size: 200% 200%; /* 배경을 크게 잡아야 움직임이 자연스러워요 */
    animation: fx-enter-rise var(--fx-enter-duration) var(--fx-enter-ease) both, moveGradient 8s linear infinite !important;
}

/* 계정 드롭다운이 헤더 밖(아래)로 나올 때 overflow:hidden 에 잘려 본문·사이드바에 가리는 것처럼 보이는 현상 방지 */
.top:has(.top-user-wrap.is-open) {
    overflow: visible;
}

.top-sky {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.top-sky svg {
    display: block;
    width: 100%;
    height: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .top-sky svg animate {
        display: none;
    }
    .top-sky svg circle {
        opacity: 0.85;
    }
}

.top::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0.04) 45%,
        rgba(0, 48, 120, 0.1) 100%
    );
}

.top > *:not(.top-sky) {
    position: relative;
    z-index: 1;
}

/* 다크 모드 — 상단 top 을 본문 배경에 가깝게 (밝은 파란 헤더 제거) */
html[data-theme="dark"] .top {
    background-color: #263548;
    background-image: linear-gradient(
        90deg,
        #212c3e 0%,
        #263548 38%,
        #2a3e52 72%,
        #2e4558 100%
    );
    border-bottom-color: rgba(137, 202, 255, 0.14);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .top::before {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.025) 40%,
        transparent 100%
    );
}

html[data-theme="dark"] .top-sky {
    opacity: 0.36;
}

.top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    min-height: var(--top-header-min-h);
    padding: 16px 26px 16px;
    max-width: 100%;
    box-sizing: border-box;
}

.top-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-center {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.top-right {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px 18px;
}

.top-tab-svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.92;
}

.top-tab-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: var(--fx-radius-sm);
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.top-tab-video {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 20px;
    border: none;
    border-radius: var(--fx-radius-sm);
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

    .top-tab-main:hover,
    .top-tab-video:hover {
        color: var(--fx-white);
        background: rgba(255, 255, 255, 0.1);
    }

    .top-tab-main.active,
    .top-tab-video.active {
        background: rgba(255, 255, 255, 0.18);
        color: var(--fx-white);
        box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.75);
    }

.top-weather {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 10px;
    border-radius: var(--fx-radius-sm);
    background: rgba(255, 255, 255, 0);
    border: 1px solid rgba(255, 255, 255, 0);
}

button.top-weather {
    margin: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

    /* button.top-weather:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
} */

    button.top-weather:focus-visible {
        outline: 2px solid #7dd3fc;
        outline-offset: 2px;
    }

.top-weather-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    /* opacity: 0.95; */
    /* width:6rem; */
    aspect-ratio: 1 / 0.4;
    /* border:1px solid red; */
}

.top-weather-emoji,
.top-weather-lottie {
    width: 100%;
    font-size: 60px;
    line-height: 1;
    display: flex;
    user-select: none;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.top-weather-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.top-weather-temp {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.top-weather-time {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
}

.theme-toggle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 6px 11px 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.6);
}

.theme-toggle:active {
    transform: translateY(1px);
}

.theme-toggle:focus-visible {
    outline: 2px solid #bae6fd;
    outline-offset: 2px;
}

.theme-toggle-ico {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    line-height: 1;
}

.theme-toggle-ico--sun {
    background: rgba(255, 255, 255, 0.92);
    color: #fb8c00;
}

.theme-toggle-ico--moon {
    display: none;
    background: rgba(15, 23, 42, 0.9);
    color: #bfdbfe;
}

.theme-toggle-text {
    min-width: 2.2rem;
}

html[data-theme="dark"] .theme-toggle-ico--sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle-ico--moon {
    display: grid;
}

.top-user-wrap {
    position: relative;
    flex-shrink: 0;
}

    .top-user-wrap.is-open {
        z-index: 50;
    }

.top-user {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.top-user-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
    margin-left: 2px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.2s ease;
}

    .top-user-menu-btn:hover {
        background: rgba(255, 255, 255, 0.22);
        border-color: rgba(255, 255, 255, 0.55);
    }

    .top-user-menu-btn:focus-visible {
        outline: 2px solid #bae6fd;
        outline-offset: 2px;
    }

.top-user-menu-chevron {
    display: block;
    transition: transform 0.2s ease;
}

.top-user-wrap.is-open .top-user-menu-chevron {
    transform: rotate(180deg);
}

.top-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 100;
    min-width: 168px;
    padding: 6px;
    margin: 0;
    background: #fff;
    color: var(--fx-royal-deep, #0f172a);
    border-radius: var(--fx-radius-sm, 10px);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.08);
}

    .top-user-dropdown[hidden] {
        display: none !important;
    }

.top-user-dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--fx-royal-deep, #0f172a);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    box-sizing: border-box;
}

    .top-user-dropdown-item:hover,
    .top-user-dropdown-item:focus-visible {
        background: rgba(33, 150, 243, 0.1);
        outline: none;
    }

.top-user-dropdown-item--logout {
    color: #b91c1c;
}

    .top-user-dropdown-item--logout:hover,
    .top-user-dropdown-item--logout:focus-visible {
        background: rgba(185, 28, 28, 0.1);
        color: #991b1b;
    }

.top-user-pin {
    display: flex;
    background: #fff;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.88);
    color: rgba(0, 61, 107, 0.6);
    flex-shrink: 0;
    padding: 6px;
}

.top-user-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.top-user-region {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.top-user-role {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
}

.top-login-btn {
    flex-shrink: 0;
    margin-left: 4px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

    .top-login-btn:hover {
        background: rgba(255, 255, 255, 0.22);
        border-color: rgba(255, 255, 255, 0.65);
    }

    .top-login-btn:focus-visible {
        outline: 2px solid #bae6fd;
        outline-offset: 2px;
    }

.top-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.top-brand-ico {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 2px 6px rgba(0, 30, 70, 0.28));
}

.top-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.top-brand-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.top-brand-sub {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .top-brand-sub {
        display: none;
    }
}

@media (max-width: 880px) {
    .top-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .top-center {
        justify-content: flex-start;
        order: 3;
        width: 100%;
        padding-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .top-right {
        justify-content: space-between;
        width: 100%;
    }

    .top-brand {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }

    .top-brand-title {
        white-space: normal;
    }
}

.panel {
    display: none;
    flex: 1;
    min-height: 0;
}

    .panel.on {
        display: flex;
        flex-direction: column;
    }

        .panel.on > .control-wrap,
        .panel.on > .tab-body {
            flex: 1;
            min-height: 0;
        }

.tab-body {
    min-height: 0;
    padding: 16px 20px;
    background: var(--fx-page-grad);
    color: var(--fx-royal-deep);
    overflow: auto;
}

.tab-body--grid {
    padding: 20px 24px 28px;
    box-sizing: border-box;
    background: radial-gradient(ellipse 85% 50% at 95% 8%, rgba(255, 255, 255, 0.18) 0%, transparent 52%), radial-gradient(ellipse 60% 40% at 5% 92%, rgba(255, 255, 255, 0.08) 0%, transparent 50%), var(--fx-page-grad);
}

.tab-grid-heading {
    margin: 0 0 18px;
    font-size: 19px;
    font-weight: 700;
    color: var(--fx-royal-deep);
    letter-spacing: -0.03em;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
    align-content: start;
}

@media (max-width: 1600px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.video-grid-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.video-grid-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    background: rgba(13, 71, 161, 0.88);
    border-radius: var(--fx-radius-sm);
    overflow: hidden;
    border: 1px solid rgba(187, 222, 251, 0.55);
    box-shadow: 0 8px 28px rgba(25, 118, 210, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

    .video-grid-frame video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #000;
    }

.video-grid-caption {
    font-size: 14px;
    font-weight: 600;
    color: var(--fx-royal-deep);
    line-height: 1.3;
    padding: 0 2px;
    word-break: keep-all;
}

.video-grid-hint {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--fx-text-muted);
    line-height: 1.45;
}

.video-grid-empty {
    margin: 24px 12px;
    padding: 20px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--fx-text-muted);
    background: rgba(248, 250, 252, 0.9);
    border-radius: var(--fx-radius-sm);
    border: 1px dashed rgba(33, 150, 243, 0.35);
}

.video-grid-cell-error {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #b91c1c;
    background: rgba(254, 242, 242, 0.92);
    line-height: 1.35;
    pointer-events: none;
}

.layout {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    height: 100%;
    width: 100%;
}

.layout--control {
    min-height: 0;
    align-items: stretch;
}

.map-pane {
    flex: 1.35;
    min-width: 200px;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* 좌·우 패널: 가운데 제설 지도(.map-card)와 같은 둥근 카드로 감쌈 */
.sidebar-pane {
    flex: 1 1 auto;
    align-self: stretch;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: visible;
    transition: width 0.28s ease, min-width 0.28s ease, max-width 0.28s ease, padding 0.28s ease, opacity 0.28s ease, transform 0.28s ease;
    will-change: transform, opacity;
}

.sidebar-pane--left {
    padding: 20px 0px 22px 22px;
    max-width: 320px;
}

.sidebar-pane--right {
    padding: 20px 22px 22px 0px;
    max-width: 340px;
}

.sidebar-card {
    flex: 1 1 0;
    min-height: 0;
    width: 300px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--fx-white);
    position: relative;
    overflow: visible;
    background: rgb(255, 255, 255, 0.8);
    background: radial-gradient( circle at center, rgba(255,255,255,0.5) 80%, /* 중앙은 투명 */
    rgba(255,255,255,0.9) 100%); /* 가장자리는 20% 어둡게 */
    border-radius: 16px;
    border: 1px solid rgba(33, 150, 243, 0.1);
    box-shadow: var(--fx-shadow);
    padding: 22px 20px 26px;
    box-sizing: border-box;
}
.sidebar-card.sidebar-card--right{
    background-image:url("../img/bg/index2-body-bg-4k.png") no-repeat center center / cover;
}

.map-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--fx-white);
    background: rgb(255, 255, 255, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(33, 150, 243, 0.1);
    box-shadow: var(--fx-shadow);
    position:relative;
}

.map-card-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fx-royal-deep);
}

.map-card-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* kakao-map-test.html 과 동일: #map 단독 + 확정 높이 (flex/absolute 제거) */
.map-card-frame {
    flex: 1 1 auto;
    min-height: 280px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.05);
    background: #e8f4fd;
}

.map-card-frame #map {
    display: block;
    width: 100%;
    min-height: 280px;
    cursor: grab;
    overscroll-behavior: contain;
    touch-action: none;
}

.map-card-frame #map.is-map-panning {
    cursor: grabbing;
}

/* 지도 클릭 물방울(ripple) — map-card-frame 기준 좌표 */
.map-ripple-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}
    .map-ripple-layer:after {
        content: "";
        position: absolute;
        inset: 0; /* 위, 오른쪽, 아래, 왼쪽 모두 덮음 */
        pointer-events: none; /* 지도 클릭 방해하지 않음 */
        background: radial-gradient(circle at center, rgba(25,118,210,0) 76%, /* 중앙은 투명 */
        rgba(25,118,210,0.9) 100% /* 가장자리는 파랗게 */
        );
        pointer-events: none;
        /* 눈꽃 오버레이 */
        mask-image: radial-gradient(circle at center, transparent 70%, black 100%);
        -webkit-mask-image: radial-gradient(circle at center, transparent 70%, black 100%);
        -webkit-mask-composite: destination-in;
        mask-composite: intersect;
        background-image: url("/img/bg/snowflake.png");
        background-repeat: repeat;
        background-size: 80px 80px;
        mix-blend-mode: screen; /* 파란색과 눈꽃이 자연스럽게 섞이게 */
        /* 눈꽃 오버레이 */
        background-image: radial-gradient(ellipse 100% 10% at center, rgba(25,118,210,0) 10%, rgba(25,118,210,0.5) 100% ), url("/img/bg/snowflake.png"); /* 눈꽃 무늬 */
        background-repeat: no-repeat, repeat;
        background-size: cover, 20px 20px;
        background-position: center, center;
        filter: drop-shadow(0 0 6px rgba(25,118,210,0.9)); /* 파란빛 그림자 추가 */
        mix-blend-mode: screen; /* 파란색과 눈꽃이 자연스럽게 섞이게 */
    }
    .map-ripple-effect {
        position: absolute;
        width: 0;
        height: 0;
        border-radius: 50%;
        pointer-events: none;
        transform: translate(-50%, -50%);
        border: 2.5px solid rgba(33, 150, 243, 0.82);
        background: radial-gradient( circle, rgba(100, 181, 246, 0.38) 0%, rgba(33, 150, 243, 0.14) 42%, transparent 72% );
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.35), 0 0 18px rgba(33, 150, 243, 0.22), inset 0 0 10px rgba(255, 255, 255, 0.35);
        animation: map-ripple-expand 0.82s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

.map-ripple-effect--delay {
    animation-delay: 0.14s;
    border-color: rgba(30, 136, 229, 0.55);
    background: radial-gradient(
        circle,
        rgba(144, 202, 249, 0.28) 0%,
        rgba(33, 150, 243, 0.08) 50%,
        transparent 75%
    );
}

@keyframes map-ripple-expand {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    65% {
        opacity: 0.5;
    }
    100% {
        width: 112px;
        height: 112px;
        opacity: 0;
    }
}

html[data-theme="dark"] .map-ripple-effect {
    border-color: rgba(125, 211, 252, 0.75);
    background: radial-gradient(
        circle,
        rgba(56, 189, 248, 0.32) 0%,
        rgba(14, 116, 144, 0.18) 45%,
        transparent 72%
    );
    box-shadow:
        0 0 0 0 rgba(56, 189, 248, 0.28),
        0 0 20px rgba(56, 189, 248, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .map-ripple-effect {
        animation: none;
        display: none;
    }
}

/* 카카오맵 내부 div 에 height/width !important 주면 타일·이벤트 레이어가 어긋나 드래그 불가 — 절대 넣지 말 것 */

html[data-theme="dark"] .control-wrap::before {
    opacity: 0.2;
    background: radial-gradient(ellipse 90% 55% at 100% 0%, rgba(96, 165, 250, 0.11) 0%, transparent 52%), radial-gradient(ellipse 70% 45% at 0% 100%, rgba(125, 211, 252, 0.08) 0%, transparent 48%), repeating-linear-gradient(-36deg, transparent, transparent 28px, rgba(255, 255, 255, 0.03) 28px, rgba(255, 255, 255, 0.03) 29px);
}

html[data-theme="dark"] .tab-body,
html[data-theme="dark"] .tab-body--grid {
    background: var(--fx-page-grad);
    color: var(--fx-text);
}

html[data-theme="dark"] .sidebar-card,
html[data-theme="dark"] .map-card,
html[data-theme="dark"] .video-modal-panel,
html[data-theme="dark"] .weather-card,
html[data-theme="dark"] .material-card {
    background: rgba(37, 44, 56, 0.96);
    border-color: rgba(139, 152, 170, 0.26);
    box-shadow: var(--fx-shadow);
}

html[data-theme="dark"] .map-card-frame {
    background: #202938;
}

html[data-theme="dark"] .map-card-frame .leaflet-tile {
    filter: brightness(0.78) contrast(1.02) saturate(0.72) hue-rotate(190deg);
}

html[data-theme="dark"] .map-card-title,
html[data-theme="dark"] .side-title,
html[data-theme="dark"] .region-stock-title,
html[data-theme="dark"] .map-live-title,
html[data-theme="dark"] .snow-status-kicker,
html[data-theme="dark"] .snow-status-place,
html[data-theme="dark"] .snow-status-pct-num,
html[data-theme="dark"] .snow-status-pct-sym,
html[data-theme="dark"] .region-stock-total strong,
html[data-theme="dark"] .region-stock-item-name,
html[data-theme="dark"] .vehicle-work-name,
html[data-theme="dark"] .weather-card-title,
html[data-theme="dark"] .material-card-title {
    color: var(--fx-royal-deep);
}

html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .region-stock-total,
html[data-theme="dark"] .region-stock-item-val,
html[data-theme="dark"] .side-note,
html[data-theme="dark"] .map-live-label,
html[data-theme="dark"] .map-live-unit,
html[data-theme="dark"] .weather-detail-row,
html[data-theme="dark"] .material-card-desc {
    color: var(--fx-text-muted);
}

html[data-theme="dark"] .top-user-region,
html[data-theme="dark"] .top-user-role,
html[data-theme="dark"] .side-panel-toggle,
html[data-theme="dark"] .side-panel-toggle-label,
html[data-theme="dark"] .vehicle-work-name,
html[data-theme="dark"] .vehicle-km-value,
html[data-theme="dark"] .vehicle-km-value strong,
html[data-theme="dark"] .vehicle-km-label,
html[data-theme="dark"] .vehicle-summary-num,
html[data-theme="dark"] .vehicle-summary-label,
html[data-theme="dark"] .vehicle-summary-unit,
html[data-theme="dark"] .refresh-interval-label,
html[data-theme="dark"] .refresh-interval-btn,
html[data-theme="dark"] .refresh-interval-btn.is-active,
html[data-theme="dark"] .refresh-interval-status,
html[data-theme="dark"] .map-frame-btn,
html[data-theme="dark"] .map-live-num,
html[data-theme="dark"] .weather-temp,
html[data-theme="dark"] .weather-place,
html[data-theme="dark"] .weather-detail-value,
html[data-theme="dark"] .material-card-value,
html[data-theme="dark"] .tab-grid-heading {
    color: var(--fx-text);
}

html[data-theme="dark"] .vehicle-km-sub,
html[data-theme="dark"] .vehicle-bar-legend,
html[data-theme="dark"] .vehicle-summary-hint,
html[data-theme="dark"] .weather-desc,
html[data-theme="dark"] .weather-detail-label,
html[data-theme="dark"] .material-card-label {
    color: var(--fx-text-muted);
}

html[data-theme="dark"] .tag-wait {
    background: rgba(184, 194, 207, 0.18);
    color: #d7dee8;
}

html[data-theme="dark"] .tag-move {
    background: rgba(107, 183, 255, 0.18);
    color: #bfe1ff;
}

html[data-theme="dark"] .tag-on {
    background: rgba(67, 160, 71, 0.22);
    color: #bff3cd;
}

html[data-theme="dark"] .top-user-pin {
    background: rgba(243, 247, 251, 0.92);
    color: #253447;
}

html[data-theme="dark"] .snow-status-donut-hole-fill {
    fill: var(--fx-sky-soft);
}

html[data-theme="dark"] .snow-status-donut-track {
    stroke: rgba(139, 152, 170, 0.42);
}

html[data-theme="dark"] .snow-status-donut-wrap::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 65%);
    opacity: 0.35;
}

html[data-theme="dark"] .snow-status-card,
html[data-theme="dark"] .region-stock-list,
html[data-theme="dark"] .region-stock-summary,
html[data-theme="dark"] .map-live-panel,
html[data-theme="dark"] .sidebar--right .vehicle-summary-item,
html[data-theme="dark"] .refresh-interval-bar {
    color: var(--fx-text);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .vehicle-work-card {
    background: var(--fx-vehicle-card-grad);
}

html[data-theme="dark"] .vehicle-work-card.is-selected {
    background: var(--fx-vehicle-card-grad-selected);
}

html[data-theme="dark"] .region-stock-select,
html[data-theme="dark"] .stock-select,
html[data-theme="dark"] select {
    background-color: rgba(43, 51, 64, 0.96);
    color: var(--fx-text);
    border-color: rgba(139, 152, 170, 0.3);
}

html[data-theme="dark"] .top-user-dropdown {
    background: rgba(37, 44, 56, 0.98);
    border-color: rgba(139, 152, 170, 0.32);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .top-user-dropdown-item {
    color: var(--fx-text);
}

html[data-theme="dark"] .top-user-dropdown-item:hover,
html[data-theme="dark"] .top-user-dropdown-item:focus-visible {
    background: rgba(96, 165, 250, 0.16);
}

html[data-theme="dark"] .video-modal-body,
html[data-theme="dark"] .video-grid-modal-body {
    background: var(--fx-page-grad);
}

/* 다크 모드 — index 버튼 (마이페이지와 동일 톤) */
html[data-theme="dark"] .theme-toggle {
    color: #e8f4fc;
    background: rgba(48, 58, 72, 0.82);
    border-color: rgba(107, 183, 255, 0.42);
    box-shadow: none;
}

html[data-theme="dark"] .theme-toggle:hover {
    color: #ffffff;
    background: rgba(56, 90, 130, 0.55);
    border-color: rgba(144, 202, 249, 0.5);
}

html[data-theme="dark"] button.top-weather:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .top-user-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

html[data-theme="dark"] .top-user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.42);
}

html[data-theme="dark"] .refresh-interval-bar {
    background: linear-gradient(135deg, rgba(42, 54, 70, 0.96) 0%, rgba(35, 45, 58, 0.98) 100%);
    border-color: rgba(107, 183, 255, 0.28);
}

html[data-theme="dark"] .refresh-interval-label,
html[data-theme="dark"] .refresh-interval-sublabel {
    color: #b8c9dc;
}

html[data-theme="dark"] .refresh-interval-btn {
    color: rgba(183, 200, 220, 0.7);
    background: transparent;
    border: none;
    box-shadow: none;
}

html[data-theme="dark"] .refresh-interval-btn:hover {
    color: #e3f2fd;
    background: rgba(56, 90, 130, 0.38);
}

html[data-theme="dark"] .refresh-interval-btn.is-active,
html[data-theme="dark"] .refresh-interval-btn--toggle.is-active {
    color: #e8f4fc;
    background: rgba(56, 90, 130, 0.62);
    box-shadow: inset 0 0 0 1px rgba(107, 183, 255, 0.4);
}

html[data-theme="dark"] .refresh-interval-btn--start.is-active {
    color: #c8e6c9;
    background: rgba(46, 125, 50, 0.38);
    box-shadow: inset 0 0 0 1px rgba(129, 199, 132, 0.45);
}

html[data-theme="dark"] .refresh-interval-btn--stop.is-active {
    color: #ffcdd2;
    background: rgba(198, 40, 40, 0.34);
    box-shadow: inset 0 0 0 1px rgba(239, 154, 154, 0.42);
}

html[data-theme="dark"] .map-frame-btn {
    color: #e8f4fc;
    background: rgba(48, 58, 72, 0.94);
    border-color: rgba(107, 183, 255, 0.38);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .map-frame-btn:hover {
    color: #ffffff;
    background: rgba(56, 90, 130, 0.72);
    border-color: rgba(144, 202, 249, 0.5);
}

html[data-theme="dark"] .map-frame-btn--live {
    color: #ffffff;
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    border-color: rgba(129, 199, 132, 0.45);
}

html[data-theme="dark"] .map-frame-btn--live:hover {
    filter: brightness(1.08);
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
}

html[data-theme="dark"] .map-frame-btn--cctv {
    color: #ffffff;
    background: linear-gradient(135deg, #42a5f5 0%, #1565c0 100%);
    border-color: rgba(144, 202, 249, 0.45);
}

html[data-theme="dark"] .map-frame-btn--cctv:hover {
    filter: brightness(1.08);
    background: linear-gradient(135deg, #64b5f6 0%, #1976d2 100%);
}

html[data-theme="dark"] .side-panel-toggle {
    background: transparent;
    color: #e8f4fc;
    border: none;
    box-shadow: none;
}

html[data-theme="dark"] .side-panel-toggle:hover {
    background: rgba(56, 90, 130, 0.28);
}

html[data-theme="dark"] .side-panel-chevron::after {
    border-top-color: #90caf9;
}

html[data-theme="dark"] .sidebar-rail-toggle {
    background: linear-gradient(180deg, #4a6278 0%, #2e4558 100%);
    box-shadow: inset 0 0 0 1px rgba(144, 202, 249, 0.2);
}

html[data-theme="dark"] .sidebar-rail-toggle:hover {
    filter: brightness(1.1);
}

html[data-theme="dark"] .vehicle-media-btn {
    color: #e3f2fd;
    background: rgba(48, 58, 72, 0.92);
    border-color: rgba(107, 183, 255, 0.38);
}

html[data-theme="dark"] .vehicle-media-btn:hover {
    color: #ffffff;
    background: rgba(56, 90, 130, 0.55);
    border-color: rgba(144, 202, 249, 0.5);
}

html[data-theme="dark"] .vehicle-media-btn--cctv {
    color: #ffffff;
    background: linear-gradient(135deg, #42a5f5 0%, #1565c0 100%);
    border-color: rgba(144, 202, 249, 0.45);
}

html[data-theme="dark"] .vehicle-media-btn--live {
    color: #ffffff;
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    border-color: rgba(129, 199, 132, 0.45);
}

html[data-theme="dark"] .vehicle-work-detail-route,
html[data-theme="dark"] .vehicle-work-detail-close {
    color: #ffffff;
    background: linear-gradient(135deg, #42a5f5 0%, #1565c0 100%);
    border-color: rgba(144, 202, 249, 0.4);
    box-shadow: 0 2px 10px rgba(13, 71, 161, 0.35);
}

html[data-theme="dark"] .vehicle-work-detail-route:hover,
html[data-theme="dark"] .vehicle-work-detail-close:hover {
    color: #ffffff;
    filter: brightness(1.08);
}

html[data-theme="dark"] .vehicle-work-detail-close {
    background: linear-gradient(135deg, #607d8b 0%, #455a64 100%);
    border-color: rgba(176, 190, 197, 0.35);
}

.map-frame-toolbar {
    z-index: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    position: absolute;
    top: 22px;
    right: 340px;
}

.map-frame-btn {
    margin: 0;
    padding: 0;
    border: 1px solid rgba(33, 150, 243, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--fx-royal-deep);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.02em;
    box-shadow: 0 4px 14px rgba(25, 118, 210, 0.12);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .map-frame-btn:hover {
        background: #fff;
        border-color: rgba(33, 150, 243, 0.4);
        box-shadow: 0 6px 18px rgba(25, 118, 210, 0.16);
    }

    .map-frame-btn:focus-visible {
        outline: 2px solid var(--fx-powder-mid);
        outline-offset: 2px;
    }

.map-frame-btn--cctv,
.map-frame-btn--live {
    padding: 8px 14px 8px 12px;
}

.map-frame-btn--fs {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 10px;
}

.map-frame-btn-ico {
    flex-shrink: 0;
    opacity: 0.92;
}

.map-frame-btn-label {
    white-space: nowrap;
}

.map-card-frame:fullscreen {
    display: flex;
    flex-direction: column;
    border-radius: 0;
    border: none;
    box-shadow: none;
}
.map-card-frame:fullscreen
.map-card-frame:-webkit-full-screen {
    display: flex;
    flex-direction: column;
    border-radius: 0;
}

    .map-card-frame:fullscreen #map,
    .map-card-frame:-webkit-full-screen #map {
        flex: 1;
        min-height: 0;
    }
    .map-card-frame:fullscreen .map-live-overlay {
        left:26px !important;
        top:20px !important;
    }
    @media (max-width: 520px) {
        .map-frame-btn-label {
        display: none;
    }

    .map-frame-btn--cctv,
    .map-frame-btn--live {
        width: 40px;
        height: 40px;
        padding: 0;
    }
}

/* 지도 위 표시만 — 클릭·드래그는 #map 으로 통과 (자식 기본 auto 가 가로채는 경우 대비) */
.map-live-overlay:not(.ui-float-draggable),
.map-live-overlay:not(.ui-float-draggable) *,
.map-live-overlay:not(.ui-float-draggable) .map-live-panel {
    pointer-events: none !important;
}

.map-live-overlay.ui-float-draggable {
    pointer-events: none !important;
}

.map-live-overlay.ui-float-draggable .map-live-panel,
.map-live-overlay.ui-float-draggable .map-live-panel * {
    pointer-events: auto !important;
}

.map-live-overlay {
    position: absolute;
    bottom: auto;
    right: auto;
    left: 340px;
    top: 22px;
    z-index: 5;
    width: auto;
    max-width: calc(100% - 20px);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    pointer-events: none;
    transition: all 0.5s ease; /* 부드럽게 변화 */
}

.map-live-panel {
    background: rgba(255, 255, 255, 0.6);
    background: radial-gradient( circle at center, rgba(255,255,255,0.5) 80%, /* 중앙은 투명 */
    rgba(255,255,255,1) 100%); /* 가장자리는 20% 어둡게 */
    border: 1px solid rgba(33, 150, 243, 0.12);
    border-radius: 12px;
    padding: 12px 14px 14px;
    box-shadow: 0 8px 28px rgba(25, 118, 210, 0.18), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    max-width: 400px;
    border: 1px solid rgba(33, 150, 243, 0.22);
}

/* 지도 오버레이: 전체·운행·작업 세로 나열 */
.map-live-overlay .map-live-panel {
    max-width: 280px;
    padding: 20px;
    border-radius: var(--fx-radius);
    box-shadow: var(--fx-shadow-sm), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
    border: 1px solid rgba(255, 255, 255, 0.95);
}

.map-live-overlay .map-live-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.map-live-stats--stack,
.map-live-overlay .map-live-stats {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
}

    .map-live-stats--stack .map-live-stat,
    .map-live-overlay .map-live-stat {
        flex: none;
        width: 100%;
        gap: 12px;
        padding: 10px 20px 10px 10px;
        border-radius: var(--fx-radius-sm);
        background: rgba(227, 242, 253, 0.45);
        border: 1px solid rgba(33, 150, 243, 0.22);
        box-sizing: border-box;
    }

html[data-theme="dark"] .map-live-stats--stack .map-live-stat,
html[data-theme="dark"] .map-live-overlay .map-live-stat {
    background: rgba(43, 51, 64, 0.82);
    border-color: rgba(139, 152, 170, 0.24);
}

.map-live-overlay .map-live-ico-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.map-live-overlay .map-live-svg--illus {
    width: 30px;
    height: 30px;
}

.map-live-overlay .map-live-label {
    font-size: 14px;
}

.map-live-overlay .map-live-num {
    font-size: 24px;
}

.map-live-overlay .map-live-unit {
    font-size: 15px;
}

/* 왼쪽 sidebar-card — 지역 재고현황 아래 지역 작업현황 */
.sidebar-card--left .sidebar-region-work {
    flex-shrink: 0;
    margin-top: 0;
    padding: 14px 0 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--fx-text);
}

.sidebar-region-work__title {
    margin: 0 0 12px;
    text-align: left;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fx-royal-deep);
}

.sidebar-region-work__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
}

.sidebar-region-work__item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 8px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(33, 150, 243, 0.22);
}

.sidebar-region-work__item--equipment {
    background: #ebf8ff;
    border-color: #bee3f8;
}

.sidebar-region-work__item--manpower {
    background: #f0f9ff;
    border-color: rgba(33, 150, 243, 0.28);
}

.sidebar-region-work__ico {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, #e3f2fd 100%);
    border: 1px solid rgba(30, 136, 229, 0.35);
    color: var(--fx-royal-mid);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.sidebar-region-work__item--manpower .sidebar-region-work__ico {
    background: linear-gradient(180deg, #ffffff 0%, #e8f4fd 100%);
    color: var(--fx-royal-deep);
}

.sidebar-region-work__ico--shovel .sidebar-region-work__svg-shovel {
    display: block;
    margin: 0 auto;
}

.sidebar-region-work__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sidebar-region-work__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--fx-text-muted);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.sidebar-region-work__num {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: var(--fx-royal-deep);
    letter-spacing: -0.03em;
}

.sidebar-region-work__item--equipment .sidebar-region-work__num {
    color: var(--fx-royal-mid);
}

html[data-theme="dark"] .sidebar-card--left .sidebar-region-work {
    background: transparent;
    border: none;
    border-top: 1px solid rgba(139, 152, 170, 0.28);
    box-shadow: none;
    color: var(--fx-text);
}

html[data-theme="dark"] .sidebar-region-work__title {
    color: var(--fx-royal-deep);
}

html[data-theme="dark"] .sidebar-region-work__item {
    background: rgba(43, 51, 64, 0.65);
    border-color: rgba(139, 152, 170, 0.28);
}

html[data-theme="dark"] .sidebar-region-work__item--equipment,
html[data-theme="dark"] .sidebar-region-work__item--manpower {
    background: rgba(54, 63, 78, 0.75);
}

html[data-theme="dark"] .sidebar-region-work__ico {
    background: linear-gradient(180deg, rgba(54, 63, 78, 0.9) 0%, rgba(43, 51, 64, 0.95) 100%);
    border-color: rgba(139, 152, 170, 0.35);
    color: var(--fx-royal-mid);
}

html[data-theme="dark"] .sidebar-region-work__num {
    color: var(--fx-royal-mid);
}

.map-live-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fx-royal-deep);
}

.map-live-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-end;
    gap: 10px 20px;
}

.map-live-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 140px;
}

.map-live-ico-wrap {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.map-live-svg--illus {
    display: block;
    filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.12));


}
.map-card-frame #map .map-live-svg--illus{
    width:60px !important;
    height: 60px !important;
}

.map-live-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.map-live-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--fx-text-muted);
    letter-spacing: -0.02em;
}

.map-live-value-row {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.map-live-num {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fx-text);
    line-height: 1;
}

/* 참고 대시보드: 합계·운행·작업 수치 색 구분 */
.map-live-stat--total .map-live-num {
    color: var(--fx-accent-purple);
}

.map-live-stat--total .map-live-ico-wrap {
    background: linear-gradient(180deg, #faf8fc 0%, var(--fx-accent-purple-soft) 100%);
    border-color: rgba(126, 87, 194, 0.28);
}

.map-live-stat--run .map-live-num {
    color: var(--fx-royal-mid);
}

.map-live-stat--run .map-live-ico-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #e3f2fd 100%);
    border-color: rgba(30, 136, 229, 0.35);
}

.map-live-stat--work .map-live-num {
    color: var(--fx-accent-green-pop);
}

.map-live-stat--work .map-live-ico-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #e8f5e9 100%);
    border-color: rgba(67, 160, 71, 0.35);
}

.map-live-unit {
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
}

@media (max-width: 720px) {
    .map-live-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .map-live-stat {
        flex: 1 1 auto;
    }

    .map-live-overlay {
        top: 8px;
        right: 8px;
        max-width: calc(100% - 16px);
    }

    .map-live-panel {
        max-width: 100%;
        padding: 10px 12px 12px;
    }
}

.sidebar {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    min-width: 0;
    background: transparent;
    overflow-x: hidden;
    overflow-y: auto;
    font-size: 16px;
    color: var(--fx-text);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

    .sidebar.sidebar--left {
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: hidden;
    }

        .sidebar.sidebar--left .side-section--snow-status {
            flex-shrink: 0;
        }

        .sidebar.sidebar--left .side-section--material {
            flex: 1 1 0;
            min-height: 0;
            overflow: hidden;
            border-bottom: none;
            padding: 0;
        }

            .sidebar.sidebar--left .side-section--material.region-stock-panel {
                display: flex;
                flex-direction: column;
                min-height: 0;
                padding: 0;
                background: transparent;
                color: var(--fx-text);
                margin-bottom: 12px !important;
                margin-top: 12px !important;
            }

            .sidebar.sidebar--left .region-stock-panel .side-section-body {
                flex: 1 1 0;
                min-height: 0;
               
                -webkit-overflow-scrolling: touch;
            }

.region-stock-title {
    flex-shrink: 0;
    margin: 0 0 10px;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: left;
    color: var(--fx-royal-deep);
}

.region-stock-summary {
    flex-shrink: 0;
    margin-bottom: 10px;
    padding: 12px 11px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: var(--fx-radius-sm);
    box-shadow: var(--fx-shadow-sm);
}

.region-stock-select-wrap {
    display: block;
    margin-bottom: 10px;
}

/* region-stock-select — 트리거/옵션 스타일은 css/fx-select.css */

.region-stock-total {
    margin: 0;
    padding-top: 10px;
    border-top: 1px dotted rgba(33, 150, 243, 0.35);
    font-size: 13px;
    font-weight: 600;
    color: var(--fx-text-muted);
    text-align: center;
    line-height: 1.45;
}

    .region-stock-total strong {
        font-size: 18px;
        font-weight: 800;
        color: var(--fx-royal-deep);
    }

    .region-stock-total span:not(strong) {
        font-weight: 700;
        color: #64748b;
    }

.region-stock-list {
    flex: 1 1 0;
    min-height: 0;
    margin: 0;
    padding: 10px 11px;
    list-style: none;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(165deg, #f0f9ff 0%, #e0f2fe 42%, #dbeafe 100%);
    border: 1px solid rgba(33, 150, 243, 0.28);
    border-radius: var(--fx-radius-sm);
    scrollbar-width: thin;
    scrollbar-color: rgba(33, 150, 243, 0.35) transparent;
}

/* 좌측 패널: 재고 리스트 높이를 줄여 예보 영역 확보 */
.sidebar.sidebar--left .region-stock-list {
    flex: 0 0 auto;
}

/* 5일 예보 카드 */
.region-forecast-panel {
    flex-shrink: 0;
    margin-top: 10px;
    margin-bottom:12px;
}

.region-forecast-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.region-forecast-title {
    margin: 0;
}

.region-forecast-more {
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(33, 150, 243, 0.22);
    background: rgba(255, 255, 255, 0.92);
    color: var(--fx-royal-deep);
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    box-shadow: var(--fx-shadow-sm);
}

.region-forecast-more:hover {
    border-color: rgba(33, 150, 243, 0.4);
    background: #fff;
}

.region-forecast-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 11px;
    border-radius: var(--fx-radius-sm);
    border: 1px solid rgba(33, 150, 243, 0.22);
    background: rgba(255, 255, 255, 0.92);
}

    .region-forecast-grid > :nth-child(1) {
        grid-column: span 2; /* 첫 줄은 2칸 차지 */
    }

    .region-forecast-grid > :nth-child(n+2) {
        grid-column: span 1; /* 나머지 줄은 한 칸씩 */
    }
.region-forecast-item {
    display: grid;
    grid-template-rows: auto auto auto;
    justify-items: center;
    gap: 0;
    padding: 10px 8px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 12px 36px rgba(25, 118, 210, 0.12), var(--fx-shadow-sm);
}

.region-forecast-item:hover {
    transform: translateY(-1px);
    border-color: rgba(33, 150, 243, 0.35);
    box-shadow: 0 6px 18px rgba(25, 118, 210, 0.12);
}

.region-forecast-item:focus-visible {
    outline: 2px solid var(--fx-powder-mid);
    outline-offset: 2px;
}

.region-forecast-day {
    font-size: 12px;
    font-weight: 900;
    color: var(--fx-royal-deep);
    letter-spacing: -0.02em;
}

.region-forecast-emoji,
.region-forecast-lottie {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.region-forecast-emoji {
    font-size: 50px;
    line-height: 1;
}

.weather-lottie-host {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.weather-lottie-host svg {
    width: 100% !important;
    height: 100% !important;
}

.top-weather-lottie {
    width: 60px;
    height: 60px;
}

.weather-hero-emoji.weather-lottie-host {
    width: 72px;
    height: 72px;
    font-size: 52px;
    line-height: 72px;
    text-align: center;
}

.ui-float-draggable .video-modal-header,
.map-live-overlay.ui-float-draggable .map-live-title,
.vehicle-map-hover-popup.ui-float-draggable .vehicle-map-hover-popup__title {
    display: flex;
    align-items: center;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.ui-float-dragging .video-modal-header,
.map-live-overlay.ui-float-dragging .map-live-title,
.vehicle-map-hover-popup.ui-float-dragging .vehicle-map-hover-popup__title {
    cursor: grabbing;
}

.ui-float-draggable .video-modal-header::after,
.map-live-overlay.ui-float-draggable .map-live-title::after {
    content: "⋮⋮";
    margin-left: auto;
    padding-left: 10px;
    font-size: 12px;
    letter-spacing: -2px;
    color: var(--fx-text-muted);
    opacity: 0.55;
    font-weight: 400;
    display:none
}

.video-modal-panel.ui-float-positioned {
    margin: 0;
}

.map-live-overlay.ui-float-positioned {
    right: auto;
    bottom: auto;
}

.region-forecast-temp {
    font-size: 13px;
    font-weight: 900;
    color: var(--fx-text);
    white-space: nowrap;
}

.region-forecast-foot {
    margin: 8px 2px 0;
    opacity: 0.9;
}

.region-forecast-skel {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
}

.region-forecast-skel__bar {
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.9) 0%, rgba(203, 213, 225, 0.9) 50%, rgba(226, 232, 240, 0.9) 100%);
    background-size: 220% 100%;
    animation: dashboard-loading-pulse 1.6s ease-in-out infinite;
}

.region-forecast-skel__bar--2 {
    height: 44px;
    border-radius: 14px;
}

    .region-stock-list::-webkit-scrollbar {
        width: 5px;
    }

    .region-stock-list::-webkit-scrollbar-thumb {
        background: rgba(33, 150, 243, 0.28);
        border-radius: 999px;
    }

.region-stock-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding: 9px 0;
    border-bottom: 1px dotted rgba(33, 150, 243, 0.28);
}

    .region-stock-item:last-child {
        border-bottom: none;
        padding-bottom: 2px;
    }

.region-stock-inout-btn {
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    color: #1565c0;
    background: rgba(21, 101, 192, 0.08);
    border: 1px solid rgba(21, 101, 192, 0.25);
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.region-stock-inout-btn:hover {
    background: rgba(21, 101, 192, 0.18);
    color: #0d47a1;
}

.region-stock-item-name {
    flex: 1 1 100%;   /* 1행 전체 차지 */
    font-size: 12px;
    font-weight: 600;
    color: var(--fx-royal-deep);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.region-stock-item-bar {
    flex: 1 1 60px;   /* 2행, 남은 공간 채움 */
    min-width: 40px;
    height: 7px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.region-stock-item-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #42a5f5 0%, #1976d2 100%);
    min-width: 0;
    transition: width 0.35s ease;
}

.region-stock-item-val {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--fx-text-muted);
    white-space: nowrap;
    text-align: right;
}

.sidebar--left {
    order: 0;
}

.sidebar--right {
    order: 2;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .sidebar--right .side-panel {
        background: transparent;
        border-bottom: none;
    }

    .sidebar--right .side-panel-chevron::after {
        border-top-color: var(--fx-royal-deep);
    }

    .sidebar--right .side-panel-summary {
        background: #ffffff;
        border-bottom-color: rgba(33, 150, 243, 0.18);
    }

    .sidebar--right .side-title {
        color: var(--fx-royal-deep);
    }

    .sidebar--right .vehicle-summary-item {
        background: #ffffff;
        border-color: rgba(33, 150, 243, 0.28);
    }

    .sidebar--right .vehicle-summary-run {
        border-color: rgba(59, 130, 246, 0.35);
        background: rgba(239, 246, 255, 0.95);
    }

    .sidebar--right .vehicle-summary-work {
        border-color: rgba(118, 185, 0, 0.45);
        background: rgba(240, 253, 244, 0.98);
    }

    .sidebar--right .vehicle-work-card {
        border-color: rgba(33, 150, 243, 0.22);
        box-shadow: 0 2px 8px rgba(25, 118, 210, 0.06);
    }

        .sidebar--right .vehicle-work-card:hover {
            border-color: rgba(33, 150, 243, 0.45);
            box-shadow: 0 4px 12px rgba(25, 118, 210, 0.1);
        }

        .sidebar--right .vehicle-work-card.is-selected {
            border-color: var(--fx-powder-mid);
            box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.28);
        }

    .sidebar--right
    .vehicle-bar-fill:not(.vehicle-bar-fill--idle):not(.vehicle-bar-fill--done):not(.vehicle-bar-fill--run) {
        background: linear-gradient(90deg, #84cc16 0%, var(--fx-accent-lime) 45%, #4d7c0f 100%);
    }

.layout--control .map-pane {
    order: 1;
}

.sidebar-rail {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex-shrink: 0;
   
    position: relative;
    z-index: 1000;
}

.sidebar-rail--left {
    order: 0;
}

.sidebar-rail--right {
    order: 2;
}

.sidebar-rail-toggle {
    display: none !important;
}

.sidebar-rail-toggle {
    width: 18px;
    min-width: 18px;
    flex-shrink: 0;
    align-self: stretch;
    margin: 0;
    padding: 0;
    border: none;
    cursor: pointer;
    background: linear-gradient(180deg, var(--fx-powder-deep) 0%, var(--fx-royal-deep) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    transition: filter 0.15s ease, box-shadow 0.15s ease;
    z-index: 2;
}

    .sidebar-rail-toggle:hover {
        filter: brightness(1.08);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    }

    .sidebar-rail-toggle:focus-visible {
        outline: 2px solid #7dd3fc;
        outline-offset: -2px;
    }

.sidebar-rail-toggle-icon {
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    display: block;
}

    .sidebar-rail-toggle-icon::before {
        display: block;
    }

.sidebar-rail--left:not(.is-collapsed) .sidebar-rail-toggle--left .sidebar-rail-toggle-icon::before {
    content: "◀";
}

.sidebar-rail--left.is-collapsed .sidebar-rail-toggle--left .sidebar-rail-toggle-icon::before {
    content: "▶";
}

.sidebar-rail--right:not(.is-collapsed) .sidebar-rail-toggle--right .sidebar-rail-toggle-icon::before {
    content: "▶";
}

.sidebar-rail--right.is-collapsed .sidebar-rail-toggle--right .sidebar-rail-toggle-icon::before {
    content: "◀";
}

.sidebar.sidebar--left,
.sidebar.sidebar--right {
    transition: opacity 0.28s ease;
}

.sidebar-rail--left.is-collapsed .sidebar-pane--left {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.sidebar-rail--left.is-collapsed .sidebar--left {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
}

.sidebar-rail--right.is-collapsed .sidebar-pane--right {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.sidebar-rail--right.is-collapsed .sidebar--right {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
}

.side-panel {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-bottom: 1px solid rgba(33, 150, 243, 0.14);
}

    .side-panel:last-child {
        border-bottom: none;
    }

    .side-panel.is-collapsed {
        flex: 0 0 auto;
    }

.side-panel-toggle {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 0px 0px 12px 0;
    margin: 0;
    border: none;
    /* border-bottom: 1px solid rgba(33, 150, 243, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%); */
    background: #fff;
    cursor: pointer;
    font: inherit;
    color: var(--fx-royal-deep);
    text-align: left;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
/* 
.side-panel-toggle:hover {
  background: linear-gradient(180deg, #f0f9ff 0%, #e3f2fd 100%);
}

.side-panel-toggle:focus-visible {
  outline: 2px solid var(--fx-royal);
  outline-offset: -2px;
} */

.side-panel-toggle-label {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.side-panel-chevron {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
}

    .side-panel-chevron::after {
        content: "";
        display: block;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 7px solid var(--fx-royal-deep);
        transition: transform 0.2s ease;
    }

.side-panel.is-collapsed .side-panel-chevron::after {
    transform: rotate(-90deg);
}

.side-panel-summary {
    flex-shrink: 0;
    padding: 8px 10px 8px;
    background: #f8fcff;
    border-bottom: 1px solid rgba(33, 150, 243, 0.14);
}

.side-panel.is-collapsed .side-panel-summary {
    border-bottom: none;
}

.side-panel-summary .vehicle-summary {
    margin-bottom: 5px;
}

.side-panel-summary .vehicle-summary-hint {
    margin-bottom: 0;
}

.side-panel-body {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    /* padding: 0px 10px 10px; */
    -webkit-overflow-scrolling: touch;
}

.side-panel.is-collapsed .side-panel-body {
    display: none;
}

/* 차량 이력 — 카드 안 (슬라이드 다운 토글) */
.vehicle-work-detail-in-card {
    display: grid;
    grid-template-rows: 0fr;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        grid-template-rows 0.34s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.28s ease,
        margin 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.vehicle-work-detail-in-card > .vehicle-work-detail {
    min-height: 0;
    overflow: hidden;
}

.vehicle-work-detail-in-card.is-open {
    grid-template-rows: 1fr;
    margin: 8px 0 6px;
    opacity: 1;
}

.vehicle-work-detail-in-card[hidden] {
    display: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .vehicle-work-detail-in-card {
        transition: none;
    }
}

.side-section {
    /* padding: 14px 14px 12px; */
    /* border-bottom: 1px solid rgba(46, 139, 192, 0.14); */
    /* background: rgba(255, 255, 255, 0.55); */
    margin-bottom: 1px;
}

    .side-section.side-quick {
        background: rgba(248, 250, 252, 0.75);
        padding-bottom: 12px;
    }

.side-section--snow-status {
    background: transparent;
    /* border-bottom: 1px solid rgba(33, 150, 243, 0.12); */
    padding: 0 0 12px;
    margin-bottom: 0px !important;
}

.snow-status-card {
    --snow-pct: 10;
    background: linear-gradient(165deg, #f0f9ff 0%, #e0f2fe 42%, rgb(42 163 253 / 20%) 100%);
    border-radius: var(--fx-radius-sm);
    padding: 16px 12px 14px;
    color: var(--fx-royal-deep);
    /* box-shadow: 0 8px 26px rgba(33, 150, 243, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9); */
    border: 1px solid rgba(33, 150, 243, 0.28);
}

.snow-status-donut-wrap {
    position: relative;
    width: 168px;
    height: 168px;
    max-width: 100%;
    margin: 0 auto 12px;
    flex-shrink: 0;
    transform-origin: center center;
    animation: snow-donut-float 3.2s ease-in-out 1.15s infinite;
}

.snow-status-donut-motion {
    position: absolute;
    inset: 0;
    transform-origin: center center;
    animation: snow-donut-enter 1.05s cubic-bezier(0.34, 1.25, 0.64, 1) both;
}

.snow-status-donut-svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 2px 10px rgba(33, 150, 243, 0.22));
}

.snow-status-donut-track {
    stroke: #b0c4d8;
}

.snow-status-donut-hole-fill {
    fill: #ffffff;
}

.snow-status-donut-progress {
    stroke: #1565c0;
    stroke-dasharray: 100;
    stroke-dashoffset: calc(100 - var(--snow-pct, 10));
    transition: stroke-dashoffset 0.45s ease;
}

.snow-status-donut-wrap::after {
    content: "";
    position: absolute;
    inset: 14% 24% 56% 28%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 65%);
    pointer-events: none;
    z-index: 5;
    animation: snow-donut-specular 2.8s ease-in-out infinite;
}

@keyframes snow-donut-specular {
    0%, 100% {
        opacity: 0.55;
        transform: translate(0, 0) scale(1);
    }

    50% {
        opacity: 0.92;
        transform: translate(2px, -3px) scale(1.04);
    }
}

@keyframes snow-donut-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-5px) scale(1.02);
    }
}

@keyframes snow-donut-enter {
    0% {
        transform: scale(0.82) rotate(-14deg);
        opacity: 0.55;
    }

    65% {
        transform: scale(1.06) rotate(3deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.snow-status-donut-center {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    padding-bottom: 4px;
}

.snow-status-kicker {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--fx-text-muted);
    margin-bottom: 2px;
}

.snow-status-place {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--fx-royal-deep);
    max-width: 10rem;
    margin: 0 auto 4px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.snow-status-pct-line {
    margin: 0;
    line-height: 1;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1px;
}

.snow-status-pct-num {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--fx-royal-deep);
    font-variant-numeric: tabular-nums;
}

.snow-status-pct-sym {
    font-size: 20px;
    font-weight: 700;
    color: #1976d2;
}

.snow-status-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--fx-text-muted);
}

.snow-status-km-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fx-text-muted);
    margin-top: 4px;
}

.snow-status-km-item strong {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--fx-royal-deep);
}

.snow-status-km-item--done strong {
    color: #1976d2;
}

.snow-status-km-sep {
    opacity: 0.4;
}

.snow-status-snowflake {
    display: flex;
    color: #2196f3;
    flex-shrink: 0;
}

.snow-status-depth strong {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--fx-royal-deep);
}

/* 대시보드 API 로딩 */
.dashboard-loading {
    position: absolute;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(227, 242, 253, 0.52);
    backdrop-filter: blur(4px);
    pointer-events: all;
    animation: dashboard-loading-overlay-in 0.4s ease-out both;
}

.dashboard-loading[hidden] {
    display: none !important;
}

.dashboard-loading__panel {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-width: 220px;
    padding: 36px 44px 32px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(33, 150, 243, 0.32);
    border-radius: 20px;
    box-shadow:
        0 20px 48px rgba(25, 118, 210, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    animation: dashboard-loading-panel-in 0.55s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}

.dashboard-loading__spinner {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    animation: dashboard-loading-pulse 2s ease-in-out infinite;
}

.dashboard-loading__spinner::before,
.dashboard-loading__spinner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    box-sizing: border-box;
}

.dashboard-loading__spinner::before {
    inset: 0;
    border: 5px solid rgba(33, 150, 243, 0.18);
    border-top-color: var(--fx-royal-mid);
    border-right-color: rgba(33, 150, 243, 0.45);
    animation: dashboard-loading-spin 0.85s linear infinite;
}

.dashboard-loading__spinner::after {
    inset: 11px;
    border: 4px solid rgba(25, 118, 210, 0.12);
    border-bottom-color: var(--fx-royal-deep);
    border-left-color: rgba(33, 150, 243, 0.35);
    animation: dashboard-loading-spin-reverse 1.15s linear infinite;
}

.dashboard-loading__text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.3;
    color: var(--fx-royal-deep);
    text-align: center;
    white-space: nowrap;
    animation: dashboard-loading-text-in 0.6s ease-out 0.12s both;
}

.dashboard-loading__text::after {
    display: inline-block;
    width: 1.35em;
    text-align: left;
    content: "";
    animation: dashboard-loading-dots 1.4s steps(4, end) infinite;
}

@keyframes dashboard-loading-overlay-in {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(4px);
    }
}

@keyframes dashboard-loading-panel-in {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes dashboard-loading-text-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dashboard-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes dashboard-loading-spin-reverse {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes dashboard-loading-pulse {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(33, 150, 243, 0));
    }
    50% {
        transform: scale(1.06);
        filter: drop-shadow(0 0 14px rgba(33, 150, 243, 0.35));
    }
}

@keyframes dashboard-loading-dots {
    0% {
        content: "";
    }
    25% {
        content: ".";
    }
    50% {
        content: "..";
    }
    75%,
    100% {
        content: "...";
    }
}

html[data-theme="dark"] .dashboard-loading {
    background: rgba(15, 23, 42, 0.58);
}

html[data-theme="dark"] .dashboard-loading__panel {
    background: rgba(37, 44, 56, 0.97);
    border-color: rgba(139, 152, 170, 0.35);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

html[data-theme="dark"] .dashboard-loading__text {
    color: var(--fx-text);
}

html[data-theme="dark"] .dashboard-loading__spinner::before {
    border-color: rgba(139, 152, 170, 0.28);
    border-top-color: var(--fx-royal-mid);
    border-right-color: rgba(139, 152, 170, 0.45);
}

html[data-theme="dark"] .dashboard-loading__spinner::after {
    border-color: rgba(139, 152, 170, 0.2);
    border-bottom-color: var(--fx-royal-mid);
    border-left-color: rgba(139, 152, 170, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-loading,
    .dashboard-loading__panel,
    .dashboard-loading__text {
        animation: none;
    }

    .dashboard-loading__spinner {
        animation: none;
    }

    .dashboard-loading__spinner::before {
        animation: dashboard-loading-spin 1.2s linear infinite;
    }

    .dashboard-loading__spinner::after {
        animation: none;
        opacity: 0.5;
    }

    .dashboard-loading__text::after {
        content: "...";
        animation: none;
    }
}

.refresh-interval-bar {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 11px;
    background: linear-gradient(135deg, #e8f4fd 0%, #d6ebfc 55%, #cfe8fb 100%);
    border: 1px solid rgba(33, 150, 243, 0.28);
    border-radius: var(--fx-radius-sm);
    box-shadow: var(--fx-shadow-sm);
}

.refresh-interval-label {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--fx-royal-deep);
    line-height: 1.3;
    display: none;
}

.refresh-interval-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.refresh-interval-row--controls {
    margin-bottom: 2px;
}

.refresh-interval-row--controls .refresh-interval-label {
    display: block;
}

.refresh-interval-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.refresh-interval-sublabel {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: rgba(13, 71, 161, 0.55);
}

.refresh-interval-btn--toggle.is-active {
    color: var(--fx-royal-deep);
    background: rgba(255, 255, 255, 0.85);
}

.refresh-interval-btn--start.is-active {
    color: #1b5e20;
    background: rgba(200, 230, 201, 0.85);
}

.refresh-interval-btn--stop.is-active {
    color: #b71c1c;
    background: rgba(255, 235, 238, 0.9);
}

.refresh-interval-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.refresh-interval-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 42px;
    padding: 2px 4px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font: inherit;
    color: rgba(13, 71, 161, 0.38);
    transition: color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

    .refresh-interval-btn:hover {
        color: rgba(13, 71, 161, 0.62);
        background: rgba(255, 255, 255, 0.45);
    }

    .refresh-interval-btn:focus-visible {
        outline: 2px solid var(--fx-royal);
        outline-offset: 2px;
    }

    .refresh-interval-btn.is-active {
        color: var(--fx-royal-deep);
        background: rgba(255, 255, 255, 0.72);
    }

.refresh-interval-icon {
    width: 26px;
    height: 26px;
    display: block;
}

.refresh-interval-btn.is-active .refresh-interval-icon {
    filter: drop-shadow(0 1px 3px rgba(33, 150, 243, 0.35));
}

.refresh-interval-text {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.refresh-interval-status {
    display: block;
    min-height: 1.2em;
    font-size: 11px;
    font-weight: 700;
    color: rgba(13, 71, 161, 0.62);
    line-height: 1.2;
    text-align: center;
    transition: color 0.18s ease, transform 0.18s ease;
}

.refresh-interval-status.is-flash {
    color: var(--fx-royal-deep);
    transform: scale(1.04);
}

.dashboard-refresh-flash {
    animation: dashboardRefreshFlash 0.75s ease;
}

@keyframes dashboardRefreshFlash {
    0% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
        filter: brightness(1);
    }
    35% {
        box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.24), 0 0 26px rgba(33, 150, 243, 0.28);
        filter: brightness(1.08);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0);
        filter: brightness(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .snow-status-donut-wrap {
        animation: none;
    }

    .snow-status-donut-wrap::after {
        animation: none;
        opacity: 0.7;
    }

    .snow-status-donut-motion {
        animation: none;
    }

    .snow-status-donut-svg {
        filter: drop-shadow(0 2px 8px rgba(33, 150, 243, 0.2));
    }

    .snow-status-donut-progress {
        transition: none;
    }
}

.side-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--fx-royal-deep);
    letter-spacing: -0.02em;
}

.vehicle-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 6px;
}

.vehicle-summary-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 1px 2px;
    padding: 5px 4px;
    background: #ffffff;
    border: 1px solid rgba(33, 150, 243, 0.22);
    border-radius: 6px;
    text-align: center;
}

.vehicle-summary-run {
    border-color: #bee3f8;
    background: #ebf8ff;
}

.vehicle-summary-work {
    border-color: #9ae6b4;
    background: #f0fff4;
}

.vehicle-summary-label {
    width: 100%;
    font-size: 13px;
    font-weight: 600;
    color: var(--fx-text-muted);
}

.vehicle-summary-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--fx-royal-deep);
    line-height: 1;
}

.vehicle-summary-unit {
    font-size: 13px;
    color: var(--fx-text-muted);
    font-weight: 600;
}

.vehicle-summary-hint {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--fx-text-muted);
    line-height: 1.25;
}

.vehicle-status-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    min-height: 0;
    height:100%;
}

.vehicle-work-card {
    padding: 8px 10px;
    background: var(--fx-vehicle-card-grad);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.06);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

    .vehicle-work-card:hover {
        border-color: rgba(33, 150, 243, 0.45);
        box-shadow: 0 4px 12px rgba(25, 118, 210, 0.1);
    }

    .vehicle-work-card:focus-visible {
        outline: 2px solid var(--fx-powder-mid);
        outline-offset: 2px;
    }

    .vehicle-work-card.is-selected {
        border-color: var(--fx-powder-mid);
        box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.28);
        background: var(--fx-vehicle-card-grad-selected);
    }

/* 차량 카드 선택 시 이력 — vehicle-work-card 와 동일 파란 톤 */
.vehicle-work-detail-in-card .vehicle-work-detail {
    margin-bottom: 0;
    padding: 8px 8px 10px;
    border-radius: var(--fx-radius-sm);
    background: var(--fx-vehicle-card-grad-selected);
    border: 1px solid rgba(33, 150, 243, 0.35);
    box-shadow: var(--fx-shadow-sm), 0 0 0 2px rgba(33, 150, 243, 0.12);
    color: var(--fx-text);
}

.vehicle-work-detail-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 10px;
}

.vehicle-work-detail-caption {
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--fx-text-muted);
    font-weight: 600;
}

.vehicle-work-detail-date,
.vehicle-work-detail-time,
.vehicle-work-detail-range {
    flex: 1 1 5.5rem;
    min-width: 0;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    border: 1px solid rgba(33, 150, 243, 0.28);
    border-radius: 6px;
    background: var(--fx-white);
    color: var(--fx-text);
}

.vehicle-work-detail-range {
    flex: 1 1 4.5rem;
}

.vehicle-work-detail-route,
.vehicle-work-detail-close {
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(180deg, var(--fx-powder-mid) 0%, var(--fx-royal-mid) 100%);
    border: 1px solid rgba(13, 71, 161, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.vehicle-work-detail-route {
    flex: 0 0 auto;
}

.vehicle-work-detail-route:hover,
.vehicle-work-detail-close:hover {
    background: linear-gradient(180deg, var(--fx-powder-deep) 0%, var(--fx-royal-deep) 100%);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.25);
}

.vehicle-work-detail-table-wrap {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(33, 150, 243, 0.22);
    background: rgba(255, 255, 255, 0.92);
}

.vehicle-work-detail-table-scroll {
    max-height: 11.25rem;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.vehicle-work-detail-table-scroll::-webkit-scrollbar {
    width: 6px;
}

.vehicle-work-detail-table-scroll::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: rgba(33, 150, 243, 0.35);
}

.vehicle-work-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
}

.vehicle-work-detail-table--head th,
.vehicle-work-detail-table--body td {
    width: 50%;
}

.vehicle-work-detail-table th,
.vehicle-work-detail-table td {
    padding: 8px 10px;
    text-align: center;
    border-bottom: 1px solid rgba(33, 150, 243, 0.12);
    color: var(--fx-text);
}

.vehicle-work-detail-table th {
    font-weight: 700;
    color: var(--fx-royal-deep);
    background: linear-gradient(180deg, #e3f2fd 0%, #f5fbff 100%);
}

.vehicle-work-detail-table td {
    font-weight: 600;
}

.vehicle-work-detail-table tbody tr:last-child td {
    border-bottom: none;
}

.vehicle-work-detail-table tbody tr:hover td {
    background: rgba(227, 242, 253, 0.65);
}

.vehicle-work-detail-empty {
    color: var(--fx-text-muted);
    font-size: 12px;
}

.vehicle-work-detail-close {
    display: block;
    width: 100%;
    margin-top: 10px;
    font-size: 13px;
    background: linear-gradient(90deg, var(--fx-royal-deep) 0%, var(--fx-royal) 100%);
}

html[data-theme="dark"] .vehicle-work-detail {
    border-color: rgba(107, 183, 255, 0.35);
    box-shadow: var(--fx-shadow-sm);
}

html[data-theme="dark"] .vehicle-work-detail-date,
html[data-theme="dark"] .vehicle-work-detail-time,
html[data-theme="dark"] .vehicle-work-detail-range {
    background: rgba(37, 44, 56, 0.95);
    border-color: rgba(107, 183, 255, 0.28);
    color: var(--fx-text);
}

html[data-theme="dark"] .vehicle-work-detail-table-wrap {
    background: rgba(37, 44, 56, 0.88);
    border-color: rgba(107, 183, 255, 0.22);
}

html[data-theme="dark"] .vehicle-work-detail-table th {
    background: rgba(56, 120, 180, 0.22);
    color: #e8f4fc;
}

html[data-theme="dark"] .vehicle-work-detail-table tbody tr:hover td {
    background: rgba(56, 120, 180, 0.15);
}

.vehicle-work-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

    /* 지도 map-live-stat 과 동일 .map-live-ico-wrap — 헤더에서만 flex 정렬 보조 */
    .vehicle-work-head .map-live-ico-wrap {
        flex-shrink: 0;
    }

.vehicle-work-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.vehicle-work-name {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-work-meta .tag {
    flex-shrink: 0;
    padding: 2px 8px;
    font-size: 13px;
    line-height: 1.25;
}

.vehicle-km-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}

.vehicle-km-label {
    font-size: 13px;
    color: var(--fx-text-muted);
    font-weight: 600;
}

.vehicle-km-value {
    font-size: 14px;
    color: var(--fx-royal-deep);
}

    .vehicle-km-value strong {
        font-size: 19px;
        font-weight: 800;
        color: var(--fx-royal-deep);
        letter-spacing: -0.03em;
    }

.vehicle-km-sub {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

@keyframes vehicle-bar-bob {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

@keyframes vehicle-bar-fill-gel {
    0%, 100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.45);
    }
}

@keyframes vehicle-bar-shimmer-slide {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(120%);
    }
}

.vehicle-bar {
    height: 9px;
    border-radius: 999px;
    background: #e3f2fd;
    overflow: hidden;
    position: relative;
    transform-origin: 50% 100%;
    animation: vehicle-bar-bob 2.6s ease-in-out infinite;
}

.vehicle-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #42a5f5 0%, var(--fx-powder-mid) 48%, #1565c0 100%);
    transition: width 0.35s ease;
    min-width: 0;
    position: relative;
    overflow: hidden;
    transform-origin: 50% 100%;
}

    .vehicle-bar-fill:not(.vehicle-bar-fill--idle) {
        animation: vehicle-bar-fill-gel 2.2s ease-in-out infinite;
    }

        .vehicle-bar-fill:not(.vehicle-bar-fill--idle)::before {
            content: "";
            position: absolute;
            inset: -40% -30%;
            width: 55%;
            background: linear-gradient( 100deg, transparent 0%, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 65%, transparent 100% );
            animation: vehicle-bar-shimmer-slide 2.8s ease-in-out infinite;
            pointer-events: none;
            border-radius: inherit;
        }

.vehicle-bar-fill--idle {
    background: #bbdefb;
    width: 0 !important;
}

    .vehicle-bar-fill--idle::before {
        display: none;
    }

.vehicle-bar-fill--run {
    background: linear-gradient(90deg, #60a5fa 0%, #2563eb 48%, #1e40af 100%);
}

.vehicle-bar-fill--done {
    background: linear-gradient(90deg, #34d399 0%, #059669 100%);
}

@media (prefers-reduced-motion: reduce) {
    .vehicle-bar,
    .vehicle-bar-fill:not(.vehicle-bar-fill--idle),
    .vehicle-bar-fill:not(.vehicle-bar-fill--idle)::before {
        animation: none;
    }
}

.vehicle-bar-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 3px;
    font-size: 13px;
    color: var(--fx-text-muted);
    font-weight: 600;
}

.vehicle-media-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
    padding-top: 6px;
    border-top: 1px dashed rgba(33, 150, 243, 0.28);
}

.vehicle-media-btn {
    flex: 1 1 calc(50% - 3px);
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 6px;
    border: 1px solid rgba(33, 150, 243, 0.28);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--fx-royal-deep);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.vehicle-media-btn:focus-visible {
    outline: 2px solid var(--fx-royal);
    outline-offset: 2px;
}

.vehicle-media-btn--cctv {
    border-color: rgba(0, 91, 172, 0.45);
    background: linear-gradient(180deg, var(--fx-royal) 0%, var(--fx-royal-deep) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 61, 107, 0.25);
}

.vehicle-media-btn--cctv:hover {
    filter: brightness(1.08);
}

.vehicle-media-btn--live {
    background: linear-gradient(180deg, #64b5f6 0%, #0d47a1 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(22, 101, 52, 0.2);
}

.vehicle-media-btn--live:hover {
    filter: brightness(1.06);
}

.vehicle-media-btn--route {
    background: linear-gradient(180deg, #ffb74d 0%, #e65100 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(230, 81, 0, 0.25);
}

.vehicle-media-btn--route:hover {
    filter: brightness(1.06);
}

html[data-theme="dark"] .vehicle-media-btn--route {
    background: linear-gradient(135deg, #ffa726 0%, #e65100 100%);
    color: #fff;
    border-color: rgba(255, 183, 77, 0.45);
}

.vehicle-media-svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}S

.vehicle-media-btn-text {
    white-space: nowrap;
}

.material-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar--left .material-cards--compact {
    gap: 7px;
}

    .sidebar--left .material-cards--compact .material-card {
        padding: 8px 9px;
    }

    .sidebar--left .material-cards--compact .material-card-head {
        gap: 8px;
        margin-bottom: 6px;
    }

    .sidebar--left .material-cards--compact .material-card-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .sidebar--left .material-cards--compact .material-svg {
        width: 18px;
        height: 18px;
    }

    .sidebar--left .material-cards--compact .material-card-title {
        font-size: 14px;
    }

    .sidebar--left .material-cards--compact .material-card-sub {
        font-size: 13px;
    }

    .sidebar--left .material-cards--compact .material-metric-row {
        margin-bottom: 5px;
    }

    .sidebar--left .material-cards--compact .material-metric-val strong {
        font-size: 18px;
    }

    .sidebar--left .material-cards--compact .material-bar {
        height: 7px;
    }

    .sidebar--left .material-cards--compact .material-bar-legend {
        margin-top: 4px;
        font-size: 13px;
    }

.sidebar--right .side-panel--vehicle-only {
    flex: 1 1 0;
    min-height: 0;
}

.side-panel-heading--vehicle {
    flex-shrink: 0;
    margin: 0;
    padding: 14px 0 0px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fx-royal-deep);
    line-height: 1.3;
    border: none;
    background: transparent;
}

/* 오른쪽 패널 — 차량 작업현황 위 검색 */
.vehicle-search {
    flex-shrink: 0;
    padding: 0 0 8px;
}

.vehicle-search__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.vehicle-search__head-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1 1 auto;
}

.vehicle-search__head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.vehicle-search__label {
    display: block;
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--fx-royal-deep);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.vehicle-search__row {
    display: flex;
    gap: 6px;
    align-items: stretch;
}

.vehicle-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(33, 150, 243, 0.28);
    border-radius: 8px;
    background: #fff;
    color: var(--fx-text);
}

.vehicle-search__input::placeholder {
    color: var(--fx-text-muted);
}

.vehicle-search__input:focus {
    outline: 2px solid rgba(33, 150, 243, 0.35);
    outline-offset: 1px;
    border-color: var(--fx-royal-mid);
}

.vehicle-search__status {
    font-size: 13px;
    font-weight: 700;
    color: var(--fx-text-muted);
    white-space: nowrap;
    line-height: 1.2;
}

.vehicle-search__status-num {
    font-weight: 800;
    color: var(--fx-royal-mid);
}

html[data-theme="dark"] .vehicle-search__status-num {
    color: var(--fx-royal-mid);
}

.vehicle-search__reset {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--fx-royal-deep);
    background: #f0f9ff;
    border: 1px solid rgba(33, 150, 243, 0.22);
    border-radius: 8px;
    cursor: pointer;
}

.vehicle-search__reset-ico {
    display: block;
    transform-origin: center center;
}

@keyframes vehicle-search-reset-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

.vehicle-search__reset.is-spinning .vehicle-search__reset-ico {
    animation: vehicle-search-reset-spin 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    .vehicle-search__reset.is-spinning .vehicle-search__reset-ico {
        animation: none;
    }
}

.vehicle-search__reset:hover {
    background: #e3f2fd;
}

.vehicle-search__reset:focus-visible {
    outline: 2px solid rgba(33, 150, 243, 0.4);
    outline-offset: 1px;
}

.vehicle-search-empty {
    margin: 8px 0 0;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: var(--fx-text-muted);
    background: rgba(33, 150, 243, 0.06);
    border-radius: 8px;
}

html[data-theme="dark"] .vehicle-search {
    background: rgba(43, 51, 64, 0.75);
    border-bottom-color: rgba(139, 152, 170, 0.2);
}

html[data-theme="dark"] .vehicle-search__input {
    background: rgba(37, 44, 56, 0.96);
    border-color: rgba(139, 152, 170, 0.28);
    color: var(--fx-text);
}

html[data-theme="dark"] .vehicle-search__reset {
    background: rgba(48, 58, 72, 0.95);
    border-color: rgba(107, 183, 255, 0.4);
    color: #90caf9;
}

html[data-theme="dark"] .vehicle-search__reset:hover {
    background: rgba(56, 90, 130, 0.6);
    color: #bbdefb;
}

.material-card {
    padding: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: var(--fx-radius-sm);
    box-shadow: var(--fx-shadow-sm);
}

.material-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.material-card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    color: var(--fx-royal-deep);
}

.material-card-icon--usage {
    background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fdba74;
    color: #c2410c;
}

.material-card-icon--wh {
    background: linear-gradient(145deg, #ecfeff 0%, #e0f2fe 100%);
    border-color: #7dd3fc;
    color: #0369a1;
}

.material-card-icon--cal {
    background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
    color: #166534;
}

.material-svg {
    width: 22px;
    height: 22px;
    display: block;
}

.material-card-titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.material-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.material-card-sub {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
}

.material-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.material-metric-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.material-metric-val {
    font-size: 15px;
    color: #334155;
}

    .material-metric-val strong {
        font-size: 22px;
        font-weight: 800;
        color: var(--fx-royal-deep);
    }

.material-bar {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.material-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.35s ease;
    min-width: 0;
}

.material-bar-fill--usage {
    background: linear-gradient(90deg, #fb923c 0%, #ea580c 100%);
}

    .material-bar-fill--usage.material-bar-fill--warn {
        background: linear-gradient(90deg, #f87171 0%, #dc2626 100%);
    }

.material-bar-fill--stock {
    background: linear-gradient(90deg, #42a5f5 0%, #1976d2 100%);
}

.material-bar-fill--stock-high {
    background: linear-gradient(90deg, #34d399 0%, #059669 100%);
}

.material-bar-fill--stock-low {
    background: linear-gradient(90deg, #fca5a5 0%, #dc2626 100%);
}

.material-bar-fill--days {
    background: linear-gradient(90deg, #4ade80 0%, #16a34a 100%);
}

.material-bar-fill--days-low {
    background: linear-gradient(90deg, #fbbf24 0%, #d97706 100%);
}

.material-bar-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 600;
}

.side-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e6ed;
    border-radius: 6px;
    background: #fafbfc;
}

.side-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

    .side-table th,
    .side-table td {
        padding: 6px 8px;
        text-align: left;
        border-bottom: 1px solid #e8ecf2;
    }

    .side-table th {
        background: #eef2f7;
        color: #4a5568;
        font-weight: 600;
        white-space: nowrap;
    }

    .side-table tr:last-child td {
        border-bottom: none;
    }

.tag {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.tag-on {
    background: #c6f6d5;
    color: #22543d;
}

.tag-wait {
    background: #e2e8f0;
    color: #4a5568;
}

.tag-move {
    background: #bbdefb;
    color: #1565c0;
}

.weather-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: radial-gradient(ellipse 120% 80% at 100% 0%, rgba(187, 222, 251, 0.55) 0%, transparent 55%), radial-gradient(ellipse 90% 70% at 0% 100%, rgba(227, 242, 253, 0.9) 0%, transparent 50%), linear-gradient(165deg, #ffffff 0%, #f0f9ff 38%, #e3f2fd 100%);
    border: 1px solid rgba(33, 150, 243, 0.28);
    border-radius: calc(var(--fx-radius-sm) + 4px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 12px 36px rgba(25, 118, 210, 0.12), var(--fx-shadow-sm);
}

.weather-card-glow {
    pointer-events: none;
    position: absolute;
    inset: -40% -20% auto auto;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(100, 181, 246, 0.35) 0%, transparent 68%);
    filter: blur(2px);
    opacity: 0.85;
}

.weather-hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 14px 16px;
    padding: 18px 18px 16px;
}

.weather-hero-emoji {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    line-height: 1;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(227, 242, 253, 0.75) 100%);
    border-radius: 16px;
    border: 1px solid rgba(33, 150, 243, 0.2);
    box-shadow: 0 4px 14px rgba(25, 118, 210, 0.12);
}

.weather-hero-main {
    min-width: 0;
    flex: 1;
}

.weather-place {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .weather-place::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--fx-powder-mid), var(--fx-powder-deep));
        box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
    }

.weather-temp-line {
    margin: 0 0 8px;
    line-height: 1.05;
}

.weather-temp-value {
    font-size: clamp(2.25rem, 6vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--fx-royal-deep);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.weather-desc-badge {
    display: inline-block;
    margin: 0;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 700;
    color: #1565c0;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(33, 150, 243, 0.28);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
}

.weather-alert-callout {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 14px 14px;
    padding: 12px 14px;
    border-radius: var(--fx-radius-sm);
    background: linear-gradient(135deg, rgba(255, 243, 224, 0.95) 0%, rgba(255, 224, 178, 0.55) 100%);
    border: 1px solid rgba(251, 140, 0, 0.28);
    box-shadow: 0 2px 10px rgba(251, 140, 0, 0.1);
}

.weather-alert-ico {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1;
    color: #ef6c00;
    opacity: 0.85;
}

.weather-sub {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #e65100;
    font-weight: 600;
}

.weather-details-wrap {
    position: relative;
    z-index: 1;
    margin: 0 12px 12px;
    padding: 12px 12px 10px;
    border-radius: var(--fx-radius-sm);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.weather-details-heading {
    margin: 0 0 8px 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #90a4ae;
}

.weather-detail-list {
    margin: 0;
    padding: 0;
    border-top: none;
}

.weather-detail-row {
    display: grid;
    grid-template-columns: minmax(6.5rem, 9rem) 1fr;
    gap: 8px 12px;
    align-items: center;
    padding: 9px 10px;
    margin: 0 0 4px;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 10px;
    border-bottom: none;
    background: rgba(248, 250, 252, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .weather-detail-row:nth-child(even) {
        background: rgba(255, 255, 255, 0.65);
    }

    .weather-detail-row:hover {
        background: rgba(227, 242, 253, 0.65);
        border-color: rgba(33, 150, 243, 0.22);
        box-shadow: 0 2px 8px rgba(25, 118, 210, 0.06);
    }

    .weather-detail-row:last-child {
        margin-bottom: 0;
    }

.weather-detail-k {
    color: #64748b;
    font-weight: 600;
    font-size: 12px;
}

.weather-detail-v {
    color: #0f172a;
    font-weight: 700;
    text-align: right;
    word-break: break-word;
    font-size: 13px;
}

.weather-modal-foot {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 10px 18px 16px;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.45;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.45);
}

    .weather-modal-foot a {
        color: #1976d2;
        font-weight: 600;
        text-decoration: none;
    }

        .weather-modal-foot a:hover {
            text-decoration: underline;
        }

    .weather-modal-foot code {
        font-size: 10px;
        padding: 2px 5px;
        border-radius: 4px;
        background: rgba(241, 245, 249, 0.9);
        border: 1px solid rgba(226, 232, 240, 0.9);
    }

.side-note {
    margin: 8px 0 0;
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.4;
    display: none;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-bottom));
}

    .video-modal[hidden] {
        display: none !important;
    }

.video-modal--player {
    z-index: 21001;
}

.video-grid-modal .video-grid-modal-panel {
    width: min(1180px, 100%);
    max-height: min(92vh, 920px);
}

.video-grid-modal-body {
    padding: 18px 20px 22px;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: min(calc(92vh - 72px), 820px);
    box-sizing: border-box;
    background: radial-gradient(ellipse 85% 50% at 95% 8%, rgba(255, 255, 255, 0.18) 0%, transparent 52%), radial-gradient(ellipse 60% 40% at 5% 92%, rgba(255, 255, 255, 0.08) 0%, transparent 50%), var(--fx-page-grad);
}

.weather-detail-modal .video-modal-panel {
    width: min(640px, 100%);
    max-height: min(92vh, 900px);
    overflow: hidden;
}

.weather-detail-modal .video-modal-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(227, 242, 253, 0.35) 100%);
    border-bottom: 1px solid rgba(33, 150, 243, 0.15);
}

.weather-detail-modal .weather-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .weather-detail-modal .weather-modal-title::before {
        content: "";
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: linear-gradient(135deg, #64b5f6, #1976d2);
        box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.22);
    }

.weather-modal-forecast-section {
}

.weather-modal-forecast-heading {
    padding: .9rem 0 .5rem;
    margin: 0;
    font-size: .8rem;
}

.weather-modal-forecast-src {
    margin-top: .5rem;
    padding: 0;
}

/* 예보 그리드가 팝업 안에서 가로 스크롤 없이 감싸지도록 */
.weather-modal-forecast-section .region-forecast-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 0;
    background: none;
    border: none;
    overflow-x: unset;
}

.weather-modal-body {
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: min(calc(88vh - 88px), 700px);
    -webkit-overflow-scrolling: touch;
}

.weather-detail-modal .weather-modal-source {
    display: none;
}

.weather-detail-modal .video-modal-backdrop {
    background: rgba(30, 58, 138, 0.36);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: no-preference) {
    .weather-detail-modal:not([hidden]) .video-modal-panel {
        /* animation: weatherPanelIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both; */
    }
}

@keyframes weatherPanelIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(25, 118, 210, 0.42);
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.video-modal-panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(90vh, 900px);
    background: linear-gradient(180deg, #ffffff 0%, var(--fx-sky-soft) 42%, var(--fx-sky-mid) 100%);
    border-radius: var(--fx-radius);
    box-shadow: 0 28px 72px rgba(25, 118, 210, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    border: 1px solid rgba(33, 150, 243, 0.28);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position:fixed;
    top:50%;left:50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease-out;
}

.video-modal.is-open .video-modal-panel,
.video-modal:not([hidden]) .video-modal-panel {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.video-grid .video-grid-cell {
    opacity: 0;
    transform: translateY(16px);
    transition: transform 240ms ease, opacity 240ms ease;
}
.video-modal.is-open .video-grid .video-grid-cell {
    opacity: 1;
    transform: translateY(0);
}
.video-modal.is-open .video-grid .video-grid-cell:nth-child(1) {
    transition-delay: 40ms;
}
.video-modal.is-open .video-grid .video-grid-cell:nth-child(2) {
    transition-delay: 80ms;
}
.video-modal.is-open .video-grid .video-grid-cell:nth-child(3) {
    transition-delay: 120ms;
}
.video-modal.is-open .video-grid .video-grid-cell:nth-child(4) {
    transition-delay: 160ms;
}
.video-modal.is-open .video-grid .video-grid-cell:nth-child(5) {
    transition-delay: 200ms;
}
.video-modal.is-open .video-grid .video-grid-cell:nth-child(6) {
    transition-delay: 240ms;
}
.video-modal.is-open .video-grid .video-grid-cell:nth-child(7) {
    transition-delay: 280ms;
}
.video-modal.is-open .video-grid .video-grid-cell:nth-child(8) {
    transition-delay: 320ms;
}

.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    /* background: var(--fx-nav-grad);*/
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.video-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}
    .video-modal-title:before {
        content: "";
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: linear-gradient(135deg, #64b5f6, #1976d2);
        box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.22);
    }
    .video-modal-close {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 8px;
        background: transparent;
        font-size: 31px;
        line-height: 1;
        cursor: pointer;
        display: grid;
        place-items: center;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .video-modal-close:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
    }

    .video-modal-close:focus-visible {
        outline: 2px solid #7dd3fc;
        outline-offset: 2px;
    }

.video-modal-body {
    padding: 14px 16px 18px;
    overflow: auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(224, 242, 254, 0.45) 100%);
}

    .video-modal-body video {
        width: 100%;
        background: #0f172a;
        border-radius: var(--fx-radius-sm);
        border: 1px solid rgba(33, 150, 243, 0.35);
        box-shadow: 0 12px 32px rgba(25, 118, 210, 0.22);
    }

.video-modal-demo-note {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff8e6;
    border: 1px solid #f0c040;
    font-size: 14px;
    line-height: 1.45;
    color: #7a5a00;
    font-weight: 600;
}

.video-modal-label {
    margin: 10px 0 0;
    font-size: 16px;
    color: var(--fx-text-muted);
    line-height: 1.45;
}

/* Leaflet: 차량 마커 — 원형(상태색) + 방향 화살표 + 차량명 */
/* 색: 회색=대기, 파랑=운행, 초록=작업 — StatusCode 문자열과 매칭 */
.map-vehicle-marker {
    pointer-events: auto;
    cursor: pointer;
    background: transparent;
    border: none;
}

/* 지도 차량 마커 호버 시 상세 카드 — 클래스명: vehicle-map-hover-popup */
.vehicle-map-hover-popup {
    pointer-events: auto;
    min-width: 220px;
    max-width: 320px;
    padding: 0;
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
    color: var(--fx-text);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.18);
    overflow: hidden;
    margin-top: -6px;
}

.map-vehicle-marker--hover-tip,
.map-vehicle-marker--hover-tip * {
    cursor: pointer;
    z-index:1900
}

.vehicle-map-hover-popup__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 12px 8px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fx-royal-deep);
    border-bottom: 1px solid rgba(33, 150, 243, 0.18);
    background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%);
}

.vehicle-map-hover-popup.ui-float-draggable .vehicle-map-hover-popup__title::after {
    content: "⋮⋮";
    margin-left: auto;
    font-size: 11px;
    letter-spacing: -2px;
    opacity: 0.45;
    font-weight: 400;
}

.vehicle-map-hover-popup__body {
    padding: 8px 12px 10px;
}

.vehicle-map-hover-popup__row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 6px;
}

.vehicle-map-hover-popup__row:last-child {
    margin-bottom: 0;
}

.vehicle-map-hover-popup__label {
    flex: 0 0 5.4em;
    font-size: 12px;
    font-weight: 700;
    color: var(--fx-text-muted);
}

.vehicle-map-hover-popup__value {
    flex: 1 1 auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--fx-text);
    word-break: break-word;
}

html[data-theme="dark"] .vehicle-map-hover-popup {
    background: rgba(37, 44, 56, 0.98);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .vehicle-map-hover-popup__title {
    color: var(--fx-royal-deep);
    background: linear-gradient(180deg, rgba(43, 51, 64, 0.96) 0%, rgba(37, 44, 56, 0.98) 100%);
    border-bottom-color: rgba(139, 152, 170, 0.28);
}

/* 레거시·다른 화면용 */
.map-vehicle-infowindow {
    min-width: 220px;
    max-width: 320px;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
}

.map-sdk-error {
    margin: 0;
    padding: 24px 16px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--fx-text-muted);
    text-align: center;
}

.map-sdk-error code {
    font-size: 12px;
}

/* 지도 차량·궤적 마커 — map-live-svg 트럭 (대기/운행/작업) */
.map-vehicle-live-marker-wrap {
    pointer-events: auto;
    cursor: pointer;
}

.map-vehicle-live-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.28));
}
    .map-vehicle-live-marker.map-live-stat--work,
    .map-vehicle-live-marker.map-live-stat--run {
        animation: moveSide 1s ease-in-out infinite alternate;
    }
    .map-vehicle-live-marker.map-live-stat--work {
        animation-delay: 0s;
    }
    .map-vehicle-live-marker.map-live-stat--run {
        animation-delay: 0.3s;
    }
    @keyframes moveSide {
        0% {
        transform: translateX(-2px);
    }

    100% {
        transform: translateX(2px);
    }
}
.map-vehicle-live-marker__ico.map-live-ico-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background:none !important;
    border: none !important;
    box-shadow: none !important;


}

.map-vehicle-live-marker--compact .map-vehicle-live-marker__ico.map-live-ico-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.map-vehicle-live-marker--compact .map-live-svg--illus {
    width: 22px;
    height: 22px;
}

.map-vehicle-live-marker.map-live-stat--total .map-vehicle-live-marker__ico.map-live-ico-wrap {
    background: linear-gradient(180deg, #faf8fc 0%, var(--fx-accent-purple-soft) 100%);
    border-color: rgba(126, 87, 194, 0.28);
}

.map-vehicle-live-marker.map-live-stat--run .map-vehicle-live-marker__ico.map-live-ico-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #e3f2fd 100%);
    border-color: rgba(30, 136, 229, 0.35);
}

.map-vehicle-live-marker.map-live-stat--work .map-vehicle-live-marker__ico.map-live-ico-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #e8f5e9 100%);
    border-color: rgba(67, 160, 71, 0.35);
}

.map-vehicle-live-marker__label {
    margin-top: 0px;
    padding: 2px 8px;
    max-width: 9rem;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--fx-text);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(33, 150, 243, 0.22);
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-vehicle-marker__bearing {
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: 50% 50%;
}

.map-vehicle-marker__ring {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    /* border: 3px solid #fff; */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.28),
        inset 0 -2px 6px rgba(0, 40, 120, 0.18);
}

.map-vehicle-marker__ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.12) 38%, transparent 58%);
    pointer-events: none;
    z-index: 1;
}

.map-dir-marker--fleet .map-vehicle-marker__ring {
    background: var(--fx-map-marker-fleet-grad);
}

.map-dir-marker--run .map-vehicle-marker__ring {
    background: var(--fx-map-marker-run-grad);
}

.map-dir-marker--work .map-vehicle-marker__ring {
    background: var(--fx-map-marker-work-grad);
}

/* 경로 궤적 포인트 — 방향 화살표(차량 트럭 마커와 별도) */
.map-vehicle-marker{}
.map-route-point-marker .map-vehicle-marker__ring {
    width: 30px;
    height: 30px;
    border-width: 0 !important;
     background: transparent !important;
     box-shadow: none !important;
}

.map-route-point-marker .map-vehicle-marker__arrowIn svg {
    width: 12px;
    height: 12px;
}

/* 경로 포인트 마커 — inline SVG 화살표 크기 축소 */
.map-route-point-marker .map-vehicle-marker__bearing svg {
    width: 16px;
    height: 16px;
}

.map-vehicle-marker__arrowIn {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -1px;
    filter: drop-shadow(0 1px 2px rgba(0, 30, 80, 0.35));
}

    .map-vehicle-marker__arrowIn svg {
        display: block;
        width: 16px;
    }

    .map-vehicle-marker__arrowIn .cls-1 {
        fill: #000000;
        stroke: rgba(0, 0, 0, 0.4);
        stroke-width: 0.4;
    }

.map-vehicle-marker__caption {
    margin-top: 5px;
    padding: 4px 10px 5px;
    background: #1a237e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    border-radius: 3px;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
}

/* Final responsive overrides
   Mobile <=576, Tablet >=768, Desktop >=992, Large >=1200 */
@media (max-width: 576px) {
    :root {
        --top-header-min-h: 58px;
        --top-header-match-h: 58px;
        --fx-radius: 12px;
        --fx-radius-sm: 10px;
    }

    .top-inner {
        padding: 10px 12px;
        gap: 8px;
    }

    .top-left,
    .top-center,
    .top-right {
        flex: 1 1 100%;
        justify-content: center;
    }

    .top-brand {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .top-brand-text {
        align-items: center;
    }

    .top-center {
        order: 3;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .top-tab-main,
    .top-tab-video {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 14px;
        white-space: nowrap;
    }

    .top-weather {
        display: none;
    }

    .top-user {
        max-width: 100%;
    }

    .top-user-region,
    .top-user-role {
        max-width: 46vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .panel {
        min-height: calc(100vh - var(--top-header-min-h));
        overflow: auto;
    }

    .layout,
    .layout--control {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
    }

    .sidebar-rail--left {
        order: 2;
        width: 100%;
        display: block;
    }

    .map-pane {
        order: 1;
        flex: 0 0 auto;
    }

    .sidebar-rail--right {
        order: 3;
        width: 100%;
        display: block;
    }

    .sidebar-pane,
    .map-pane {
        width: 100%;
        padding: 8px 10px;
    }

    .sidebar-card,
    .map-card {
        width: 100%;
        padding: 12px 10px;
        border-radius: 12px;
    }

    .sidebar-pane,
    .sidebar-card,
    .sidebar,
    .side-panel,
    .side-panel-body,
    .side-section,
    .sidebar.sidebar--left .side-section--material,
    .sidebar.sidebar--left .side-section--material.region-stock-panel {
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .sidebar-card {
        display: block;
    }

    .sidebar {
        display: block;
    }

    .side-panel-body {
        display: block;
    }

    .side-section--snow-status {
        padding-bottom: 10px;
    }

    .region-stock-panel {
        margin-top: 10px;
    }

    .region-stock-list {
        flex: 0 0 auto !important;
        max-height: 160px !important;
        overflow-y: auto !important;
    }

    .vehicle-status-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .vehicle-work-card {
        flex: 0 0 auto;
    }

    .map-card {
        min-height: 0;
    }

    .map-card-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .map-card-body {
        flex: 0 0 auto;
    }

    .map-card-frame {
        flex: 0 0 auto;
        height: auto;
        min-height: 240px;
        max-height: none;
    }

    .map-card-frame #map {
        min-height: 200px;
    }

    .map-live-overlay {
        top: 8px;
        right: 8px;
    }

    .map-live-overlay .map-live-panel {
        max-width: min(100%, 240px);
        padding: 12px 14px 14px;
    }

    .map-live-overlay .map-live-stats {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .map-live-overlay .map-live-stat {
        flex-direction: row;
        align-items: center;
        min-width: 0;
        gap: 10px;
        padding: 10px 12px;
    }

    .map-live-overlay .map-live-title {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .map-live-ico-wrap {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .map-live-svg--illus {
        width: 20px;
        height: 20px;
    }

    .map-live-text {
        min-width: 0;
        gap: 2px;
    }

    .map-live-label {
        font-size: 10px;
        white-space: nowrap;
    }

    .map-live-num {
        font-size: 15px;
    }

    .map-live-unit {
        font-size: 10px;
    }

    .sidebar-rail--left .sidebar-card,
    .sidebar-rail--right .sidebar-card {
        min-height: 0;
    }

    .sidebar-rail--left .snow-status-donut-wrap {
        width: 190px;
        height: 190px;
        margin: 0 auto 10px;
    }

    .sidebar-rail--left .snow-status-donut-center {
        position: absolute;
        inset: 0;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0 16px 4px;
        pointer-events: none;
    }

    .sidebar-rail--left .snow-status-kicker,
    .sidebar-rail--left .snow-status-place {
        max-width: 8.8rem;
        margin-left: auto;
        margin-right: auto;
    }

    .sidebar-rail--left .snow-status-kicker {
        font-size: 12px;
    }

    .sidebar-rail--left .snow-status-place {
        font-size: 11px;
        margin-bottom: 3px;
    }

    .sidebar-rail--left .snow-status-pct-line {
        justify-content: center;
    }

    .sidebar-rail--left .snow-status-pct-num {
        font-size: 34px;
    }

    .sidebar-rail--left .snow-status-pct-sym {
        font-size: 18px;
    }

    .sidebar-rail--left .snow-status-foot {
        justify-content: center;
        font-size: 12px;
        gap: 5px;
    }

    .sidebar-rail--left .region-stock-list {
        max-height: 120px;
    }

    .map-card-title {
        font-size: 17px;
    }

    .tab-body,
    .tab-body--grid {
        padding: 12px;
    }

    .video-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .video-modal-panel,
    .video-grid-modal .video-grid-modal-panel,
    .weather-detail-modal .video-modal-panel {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        border-radius: 14px;
    }

    .vehicle-work-card,
    .side-panel,
    .region-stock-panel {
        border-radius: 12px;
    }
}

@media (min-width: 577px) and (max-width: 767.98px) {
    .panel {
        min-height: calc(100vh - var(--top-header-min-h));
        overflow: auto;
    }

    .layout,
    .layout--control {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 0;
    }

    .map-pane {
        order: 1;
        flex: 0 0 auto;
    }

    .sidebar-rail--left {
        order: 2;
        width: 100%;
        display: block;
    }

    .sidebar-rail--right {
        order: 3;
        width: 100%;
        display: block;
    }

    .sidebar-pane,
    .map-pane {
        width: 100%;
        padding: 10px 14px;
    }

    .sidebar-card,
    .map-card {
        width: 100%;
        min-height: 0;
        border-radius: 14px;
    }

    .map-card-frame {
        min-height: 240px;
    }

    .map-card-frame #map {
        min-height: 220px;
    }

    .map-live-overlay {
        top: 8px;
        right: 8px;
    }

    .map-live-overlay .map-live-panel {
        max-width: min(100%, 240px);
        padding: 12px 14px 14px;
    }

    .map-live-overlay .map-live-stats {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .map-live-overlay .map-live-stat {
        flex-direction: row;
        align-items: center;
        min-width: 0;
        gap: 10px;
        padding: 10px 12px;
    }

    .map-live-overlay .map-live-title {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .map-live-ico-wrap {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .map-live-svg--illus {
        width: 20px;
        height: 20px;
    }

    .map-live-label {
        font-size: 10px;
        white-space: nowrap;
    }

    .map-live-num {
        font-size: 15px;
    }

    .map-live-unit {
        font-size: 10px;
    }

    .sidebar-pane,
    .sidebar-card,
    .sidebar,
    .side-panel,
    .side-panel-body,
    .side-section,
    .sidebar.sidebar--left .side-section--material,
    .sidebar.sidebar--left .side-section--material.region-stock-panel {
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .sidebar-card,
    .sidebar,
    .side-panel-body {
        display: block;
    }

    .region-stock-list {
        flex: 0 0 auto !important;
        min-height: 128px;
        max-height: 180px;
        overflow-y: auto;
    }

    .sidebar-rail--right .side-panel-body {
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 8px;
    }

    .sidebar-rail--right .vehicle-status-list {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(150px, 38vw);
        grid-template-columns: none;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 8px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-rail--right .vehicle-work-card {
        min-width: 0;
        scroll-snap-align: start;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .layout--control {
        display: grid;
        grid-template-columns: minmax(250px, 32%) minmax(0, 1fr);
        grid-template-areas:
            "left map"
            "right right";
        height: auto;
        min-height: 0;
        overflow: auto;
    }

    .sidebar-rail--left {
        grid-area: left;
        width: 100%;
        min-width: 0;
    }

    .sidebar-pane--left {
        padding: 16px 0 16px 16px;
        width: 100%;
    }

    .map-pane {
        grid-area: map;
        padding: 16px;
        min-height: clamp(390px, 48vh, 480px);
    }

    .map-card {
        min-height: clamp(350px, 44vh, 440px);
        padding: 16px;
    }

    .map-card-header {
        margin-bottom: 10px;
    }

    .sidebar-rail--left .sidebar-card {
        padding: 14px 12px;
    }

    .sidebar-rail--left .snow-status-card {
        padding: 12px 10px;
    }

    .sidebar-rail--left .snow-status-donut-wrap {
        width: 122px;
        height: 122px;
        margin-bottom: 8px;
    }

    .sidebar-rail--left .refresh-interval-bar {
        padding: 10px;
    }

    .sidebar-rail--left .region-stock-list {
        max-height: 115px;
    }

    .sidebar-rail--right {
        grid-area: right;
        width: 100%;
        min-width: 0;
    }

    .sidebar-pane--right {
        width: 100%;
        padding: 0 16px 16px;
    }

    .sidebar-rail--right .sidebar-card,
    .sidebar-rail--right .sidebar--right,
    .sidebar-rail--right .side-panel {
        width: 100%;
        max-width: 100%;
    }

    .sidebar-rail--right .side-panel-body {
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 8px;
    }

    .sidebar-rail--right .vehicle-status-list {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - 18px) / 4);
        grid-template-columns: none;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 8px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .sidebar-rail--right .vehicle-work-card {
        min-width: 0;
        scroll-snap-align: start;
    }

    .sidebar-rail--right .side-note {
        margin-top: 8px;
    }

    .sidebar-rail--right .vehicle-km-row,
    .sidebar-rail--right .vehicle-bar,
    .sidebar-rail--right .vehicle-bar-legend {
        display: none;
    }

    .sidebar-rail--right .vehicle-work-card {
        min-height: 112px;
    }

    .sidebar-rail--right .vehicle-work-head {
        margin-bottom: 8px;
    }

    .sidebar-card {
        width: 100%;
    }

    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) and (max-height: 820px) {
    .panel.on {
        min-height: 0;
        overflow: auto;
    }

    .panel.on > .control-wrap {
        min-height: 0;
        height: auto;
    }

    .layout--control {
        min-height: 0;
        align-content: start;
    }

    .map-pane {
        min-height: clamp(260px, 34vh, 340px);
    }

    .map-card {
        min-height: clamp(235px, 30vh, 310px);
    }

    .sidebar-card {
        max-height: none;
    }

    .sidebar-rail--right .sidebar-card {
        padding: 12px 14px 14px;
    }

    .sidebar-rail--right .side-panel-toggle {
        min-height: 34px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .sidebar-rail--right .side-panel-body {
        min-height: 136px;
        max-height: 158px;
    }

    .sidebar-rail--right .vehicle-status-list {
        min-height: 124px;
    }

    .sidebar-rail--right .vehicle-work-card {
        min-height: 112px;
        padding: 8px 9px;
    }

    .sidebar-rail--right .side-note {
        display: none;
    }

    .sidebar-rail--left .snow-status-donut-wrap {
        width: 104px;
        height: 104px;
    }

    .sidebar-rail--left .region-stock-list {
        max-height: 92px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) and (max-height: 680px) {
    .layout--control {
        grid-template-columns: minmax(220px, 30%) minmax(0, 1fr);
    }

    .sidebar-pane--left,
    .map-pane {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .map-pane {
        min-height: clamp(220px, 30vh, 280px);
    }

    .map-card {
        min-height: clamp(200px, 27vh, 255px);
        padding: 14px;
    }

    .map-card-header {
        margin-bottom: 10px;
    }

    .sidebar-card {
        padding-top: 14px;
        padding-bottom: 16px;
    }

    .sidebar-rail--right .side-panel-body {
        min-height: 128px;
        max-height: 148px;
    }

    .sidebar-rail--right .vehicle-status-list {
        min-height: 116px;
    }

    .sidebar-rail--right .vehicle-work-card {
        min-height: 104px;
    }

    .sidebar-rail--left .snow-status-donut-wrap {
        width: 88px;
        height: 88px;
        margin-bottom: 6px;
    }

    .sidebar-rail--left .snow-status-card {
        padding: 10px 8px;
    }

    .sidebar-rail--left .region-stock-list {
        max-height: 74px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .sidebar-card {
        width: 270px;
        padding: 18px 16px 22px;
    }

    .map-pane {
        padding: 18px;
    }

    .map-card {
        padding: 20px;
    }

    .video-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1200px) {
    .top-inner {
        padding-left: 28px;
        padding-right: 28px;
    }

    .video-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1600px) {
    .video-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}

/* GPS 궤적(route/route.json) — 카카오맵 마커 팝업 */
.route-track-popup {
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.45;
    color: #1a1a1a;
    min-width: 120px;
}
.route-track-popup__vehicle {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #e65100;
    margin-bottom: 2px;
}
.route-track-popup strong {
    font-weight: 700;
}
.route-track-popup__coord {
    font-size: 11px;
    color: #5f6368;
}
