.planning-map-page {
    width: 100%;
    height: calc(100vh / var(--jump-zoom, 1) - 12px);
    min-height: calc(100vh / var(--jump-zoom, 1) - 12px);
    padding: 14px 16px 18px;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.13), transparent 34rem),
        linear-gradient(135deg, #eef5f9 0%, #f8fafc 48%, #edf2f7 100%);
    overflow: hidden;
}

.planning-map-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}

.planning-map-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(239, 243, 248, 0.78);
    backdrop-filter: blur(8px);
    border-radius: 24px;
}

.planning-map-loading-card {
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    text-align: center;
}

.planning-map-loading-card strong {
    color: #0f172a;
    font-family: "Sora", sans-serif;
    font-size: 1rem;
}

.planning-map-loading-card span {
    color: #475569;
    font-size: 0.92rem;
}

.planning-map-toolbar,
.planning-map-board-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.planning-map-map-header h2,
.planning-map-panel-header h3 {
    margin: 12px 0 6px;
    color: #0f172a;
    font-family: inherit;
    font-weight: 700;
}

.planning-map-map-header h2,
.planning-map-panel-header h3 {
    font-size: 1rem;
}

.planning-map-map-header p,
.planning-map-panel-header p {
    margin: 0;
    color: #475569;
}

.planning-map-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(239, 246, 255, 0.92);
    border: 1px solid rgba(147, 197, 253, 0.8);
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 600;
}

.planning-map-toggle input {
    width: 16px;
    height: 16px;
    accent-color: #0f4c81;
}

.planning-map-toggle-compact {
    margin-top: 0;
    min-height: 38px;
    padding: 7px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.planning-map-toggle-compact span {
    line-height: 1;
}

.planning-map-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
}

.planning-map-config-tabs {
    flex: 1 1 420px;
}

.planning-map-config-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px;
    border: 1px solid rgba(191, 219, 254, 0.92);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(239, 246, 255, 0.82));
    overflow-x: auto;
    scrollbar-width: thin;
}

.planning-map-config-tab {
    flex: 0 0 auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 800;
    transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.planning-map-config-tab:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
}

.planning-map-config-tab.is-active {
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    color: #0f172a;
    box-shadow: 0 12px 24px rgba(15, 76, 129, 0.12);
}

.planning-map-config-tab-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(219, 234, 254, 0.95);
    color: #0f4c81;
}

.planning-map-config-tab-text {
    white-space: nowrap;
}

.planning-map-config-empty {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 700;
}

.planning-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.planning-map-toolbar-button {
    min-width: 132px;
    min-height: 40px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid #d6dde6;
    border-radius: 6px;
    background: linear-gradient(180deg, #f6f8fb 0%, #eef2f6 100%);
    color: #3f4752;
    font-size: 0.94rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.planning-map-toolbar-button:hover:not(:disabled) {
    border-color: #b8c4d2;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    color: #0f172a;
    transform: translateY(-1px);
}

.planning-map-toolbar-button:disabled {
    opacity: 0.72;
    cursor: not-allowed;
}

.planning-map-toolbar-button.is-primary {
    border-color: #0f4c81;
    background: linear-gradient(180deg, #0f5c9a 0%, #0f4c81 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.planning-map-toolbar-button.is-primary:hover:not(:disabled) {
    border-color: #0b3a62;
    background: linear-gradient(180deg, #1469ad 0%, #0f4c81 100%);
    color: #fff;
}

.planning-map-toolbar-button.is-active {
    border-color: rgba(15, 76, 129, 0.38);
    background: linear-gradient(180deg, #ffffff 0%, #eaf3fb 100%);
    color: #0f4c81;
}

.planning-map-toolbar-button .dxbl-wait-indicator {
    transform: scale(0.86);
}

.planning-map-content {
    display: grid;
    grid-template-columns: minmax(0, 2.35fr) minmax(430px, 0.82fr);
    gap: 14px;
    flex: 1 1 auto;
    align-items: stretch;
    min-height: 0;
    height: calc(100vh / var(--jump-zoom, 1) - 220px);
    overflow: hidden;
}

.planning-map-board-card {
    padding: 10px;
}

.planning-map-map-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.planning-map-map-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.planning-map-map-header-actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.planning-map-badge-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.planning-map-badge {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 7px 10px;
    border-radius: 6px;
    background: #0f4c81;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.planning-map-reset-route-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 12px;
    border: 1px solid rgba(191, 219, 254, 0.92);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.94));
    color: #0f4c81;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(15, 76, 129, 0.08);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.planning-map-reset-route-button:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 76, 129, 0.32);
    box-shadow: 0 14px 24px rgba(15, 76, 129, 0.14);
}

.planning-map-reset-route-button.is-disabled,
.planning-map-reset-route-button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.planning-map-reset-route-button.is-disabled:hover,
.planning-map-reset-route-button:disabled:hover {
    transform: none;
    border-color: rgba(191, 219, 254, 0.92);
    box-shadow: none;
}

.planning-map-map-surface {
    position: relative;
    flex: 1 1 auto;
    min-height: calc(100vh / var(--jump-zoom, 1) - 290px);
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(100, 116, 139, 0.32);
    background: #dbeafe;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.planning-map-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: calc(100vh / var(--jump-zoom, 1) - 290px);
}

.planning-map-canvas .leaflet-marker-icon,
.planning-map-canvas .leaflet-div-icon {
    overflow: visible;
    border: 0;
    background: transparent;
}

.planning-map-canvas .leaflet-tile-pane {
    filter: saturate(1.04) contrast(1.02) brightness(1.01);
}

.planning-map-canvas .leaflet-control-zoom {
    border: 0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.planning-map-canvas .leaflet-control-zoom a {
    color: #0f172a;
}

.planning-map-canvas .leaflet-interactive {
    filter: drop-shadow(0 4px 9px rgba(15, 23, 42, 0.24));
}

.planning-map-canvas .planning-map-leaflet-vehicle-marker {
    filter: drop-shadow(0 7px 12px rgba(15, 23, 42, 0.22));
}

.planning-map-canvas .planning-map-vehicle-halo {
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.2));
}

.planning-map-cluster-div-icon {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
}

.planning-map-cluster-marker {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.planning-map-cluster-core {
    position: relative;
    z-index: 2;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84) 52%, rgba(219, 234, 254, 0.92) 100%);
    color: #ffffff;
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.2);
}

.planning-map-cluster-count {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, #1f6fd6 0%, #0f4c81 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 10px 18px rgba(15, 76, 129, 0.28);
}

.planning-map-cluster-ring {
    position: absolute;
    inset: 4px;
    z-index: 1;
    border: 2px solid color-mix(in srgb, var(--cluster-color, #0f4c81) 42%, white);
    border-radius: 999px;
    opacity: 0.85;
}

.planning-map-cluster-tooltip {
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    color: #f8fafc;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.24);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 12px;
}

.planning-map-vehicle-div-icon {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
}

.planning-map-vehicle-marker {
    position: relative;
    width: 54px;
    height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.16s ease, filter 0.16s ease;
}

.planning-map-vehicle-marker-plate {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    max-width: 96px;
    min-width: 46px;
    transform: translateX(-50%);
    padding: 3px 8px;
    border: 1px solid rgba(191, 219, 254, 0.95);
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}

.planning-map-vehicle-marker-core {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 42%),
        var(--vehicle-color, #0f4c81);
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.22);
}

.planning-map-vehicle-marker-core img {
    max-width: 30px;
    max-height: 30px;
    object-fit: contain;
}

.planning-map-vehicle-marker-core img + i {
    display: none;
}

.planning-map-vehicle-occupancy {
    position: absolute;
    right: -2px;
    bottom: 0;
    z-index: 3;
    min-width: 36px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: var(--occupancy-color, #ffffff);
    color: #0f172a;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.planning-map-vehicle-occupancy-empty {
    color: #64748b;
}

.planning-map-vehicle-occupancy-low {
    color: #365314;
}

.planning-map-vehicle-occupancy-medium {
    color: #854d0e;
}

.planning-map-vehicle-occupancy-high {
    color: #9f1239;
}

.planning-map-vehicle-marker-pulse {
    position: absolute;
    inset: 18px auto auto 50%;
    width: 46px;
    height: 46px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: color-mix(in srgb, var(--vehicle-color, #0f4c81) 18%, transparent);
    filter: blur(8px);
}

.planning-map-vehicle-div-icon:hover .planning-map-vehicle-marker,
.planning-map-vehicle-div-icon.is-focused .planning-map-vehicle-marker,
.planning-map-vehicle-div-icon.marker-highlight .planning-map-vehicle-marker,
.planning-map-vehicle-div-icon.is-drop-target .planning-map-vehicle-marker {
    transform: translateY(-3px) scale(1.08);
    filter: drop-shadow(0 14px 22px rgba(15, 76, 129, 0.28));
}

.planning-map-page.is-dragging-load .planning-map-vehicle-div-icon .planning-map-vehicle-marker {
    filter: drop-shadow(0 14px 24px rgba(15, 76, 129, 0.22));
}

.planning-map-vehicle-tooltip {
    padding: 3px 7px;
    border: 0;
    border-radius: 5px;
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

.planning-map-side-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    max-height: none;
    margin-bottom: 0;
}

.planning-map-side-body,
.planning-map-panel,
.planning-map-list-shell,
.planning-map-grid-shell {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.planning-map-panel {
    gap: 10px;
    justify-content: flex-start !important;
    align-items: stretch;
    height: 100%;
    padding-top: 10px;
}

.planning-map-side-body {
    height: 100%;
    flex: 1 1 auto;
    justify-content: flex-start !important;
    align-items: stretch;
    overflow: hidden;
    padding-bottom: 0;
}

.planning-map-panel-loads {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    align-content: start;
}

.planning-map-panel-fill {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    align-content: start;
}

.planning-map-panel-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.planning-map-panel-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.planning-map-panel-stat span {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
}

.planning-map-panel-stat strong {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 800;
}

.planning-map-panel-summary-selectors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.planning-map-panel-stat-button {
    position: relative;
    text-align: left;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.planning-map-panel-stat-button i {
    position: absolute;
    top: 12px;
    right: 12px;
    color: #0f4c81;
    font-size: 0.95rem;
}

.planning-map-panel-stat-button:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 76, 129, 0.32);
    box-shadow: 0 12px 24px rgba(15, 76, 129, 0.12);
}

.planning-map-panel-stat-button.is-active {
    border-color: rgba(15, 76, 129, 0.45);
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    box-shadow: 0 14px 26px rgba(15, 76, 129, 0.14);
}

.planning-map-orders-list {
    min-height: 0;
    flex: 1 1 auto;
    height: 100%;
}

.planning-map-list-shell .dxbl-listbox,
.planning-map-list-shell .dxbl-list-box,
.planning-map-list-shell .dxbl-list-box-wrapper,
.planning-map-list-shell .dxbl-list-box-item-container,
.planning-map-list-shell .dxbl-virtual-scroll-view,
.planning-map-list-shell .dxbl-scroll-viewer,
.planning-map-list-shell .dxbl-scroll-viewer-content,
.planning-map-grid-shell,
.planning-map-grid-shell > div,
.planning-map-side-body > .planning-map-panel,
.planning-map-orders-list .dxbl-listbox,
.planning-map-orders-list .dxbl-list-box {
    height: 100%;
}

.planning-map-side-card .planning-map-panel {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    align-self: stretch;
}

.planning-map-side-card .planning-map-panel-header,
.planning-map-side-card .planning-map-panel-summary,
.planning-map-side-card .planning-map-search-box {
    flex: 0 0 auto;
    margin-top: 0 !important;
}

.planning-map-list-shell {
    overflow: hidden auto;
    padding: 2px 4px 0 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 76, 129, 0.48) rgba(226, 232, 240, 0.9);
}

.planning-map-orders-board {
    min-height: 0;
    gap: 10px;
}

.planning-map-active-trips-board {
    display: flex;
    flex-direction: column;
}

.planning-map-load-card.planning-map-active-trip-card {
    display: block;
    align-items: initial;
}

.planning-map-load-card.planning-map-active-trip-card .planning-map-load-content {
    width: 100%;
    min-width: 0;
}

/* Only the operations that carry a load order react to the right click. */
.planning-map-load-card.planning-map-active-trip-card.has-context-menu {
    cursor: context-menu;
}

.planning-map-active-trip-meta,
.planning-map-active-trip-location,
.planning-map-active-trip-reference,
.planning-map-active-trip-weight {
    margin-top: 6px;
    color: #475569;
    font-size: 0.84rem;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
}

.planning-map-active-trip-location {
    color: #334155;
    font-weight: 600;
}

.planning-map-active-trip-reference {
    color: #0f4c81;
    font-weight: 700;
}

.planning-map-side-tabs,
.planning-map-inner-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 4px;
    border: 1px solid rgba(191, 219, 254, 0.92);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(239, 246, 255, 0.78));
}

.planning-map-inner-tabs {
    padding: 3px;
    border-radius: 16px;
    background: #f8fafc;
}

.planning-map-side-tab,
.planning-map-inner-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 12px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 700;
    transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.planning-map-inner-tab {
    min-height: 38px;
    font-size: 0.86rem;
}

.planning-map-side-tab i,
.planning-map-inner-tab i {
    color: #0f4c81;
}

.planning-map-side-tab:hover,
.planning-map-inner-tab:hover {
    background: rgba(255, 255, 255, 0.88);
    color: #0f172a;
}

.planning-map-side-tab.is-active,
.planning-map-inner-tab.is-active {
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
    color: #0f172a;
    box-shadow: 0 10px 20px rgba(15, 76, 129, 0.12);
}

/* Estados vazios: `.jump-form-empty-state` (+ `-compact` / `-fill` / `-plain`).
   The map uses rounder corners and a larger icon than the rest of the product. */
.planning-map-shell .jump-form-empty-state,
.planning-map-driver-times-workspace .jump-form-empty-state {
    border-radius: 18px;
}

.planning-map-shell .jump-form-empty-state i,
.planning-map-driver-times-workspace .jump-form-empty-state i {
    color: #0f4c81;
    font-size: 1.6rem;
}

.planning-map-load-card {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: start;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    cursor: grab;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.planning-map-load-card:hover,
.planning-map-load-card.is-selected {
    transform: translateY(-1px);
    border-color: rgba(15, 76, 129, 0.46);
    box-shadow: 0 18px 32px rgba(15, 76, 129, 0.13);
}

.planning-map-load-card.is-selected::before {
    content: "";
    position: absolute;
    inset: 8px auto 8px 0;
    width: 4px;
    border-radius: 999px;
    background: #0f4c81;
}

.planning-map-load-card:active {
    cursor: grabbing;
}

.planning-map-load-card-readonly,
.planning-map-load-card-readonly:active {
    cursor: default;
}

.planning-map-load-selector {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
}

.planning-map-load-check {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(100, 116, 139, 0.46);
    border-radius: 7px;
    background: #ffffff;
    color: #ffffff;
    font-size: 0.7rem;
}

.planning-map-load-card.is-selected .planning-map-load-check {
    border-color: #0f4c81;
    background: #0f4c81;
}

.planning-map-load-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: start;
    text-align: left;
}

.planning-map-load-title {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
}

.planning-map-load-route {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 7px;
    color: #334155;
    font-size: 0.86rem;
    text-align: left;
}

.planning-map-load-route i {
    color: #0f4c81;
    font-size: 0.72rem;
}

.planning-map-load-meta,
.planning-map-load-reference {
    margin-top: 5px;
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.3;
    text-align: left;
}

.planning-map-load-reference {
    color: #0f4c81;
    font-weight: 700;
}

.planning-map-load-drag-hint {
    color: #94a3b8;
}

.planning-map-stop-icon-wrapper {
    background: transparent;
    border: 0;
}

.planning-map-stop-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.planning-map-stop-label {
    max-width: 138px;
    padding: 6px 12px;
    border: 1px solid rgba(191, 219, 254, 0.96);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.985);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.2);
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.planning-map-stop-pin {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: linear-gradient(180deg, #2d7fe0, #0f4c81);
    box-shadow: 0 18px 34px rgba(15, 76, 129, 0.36);
    color: #ffffff;
}

.planning-map-stop-pin::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 18px;
    height: 18px;
    border-radius: 0 0 4px 0;
    background: inherit;
    transform: translateX(-50%) rotate(45deg);
    z-index: -1;
}

.planning-map-stop-pin::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: rgba(15, 76, 129, 0.16);
    z-index: -2;
}

.planning-map-stop-glyph {
    position: relative;
    z-index: 1;
    font-size: 1.08rem;
}

.planning-map-stop-marker--break .planning-map-stop-pin {
    background: linear-gradient(180deg, #22c55e, #15803d);
    box-shadow: 0 16px 28px rgba(21, 128, 61, 0.28);
}

.planning-map-stop-marker--rest .planning-map-stop-pin {
    background: linear-gradient(180deg, #8b5cf6, #5b21b6);
    box-shadow: 0 16px 28px rgba(91, 33, 182, 0.28);
}

.planning-map-stop-marker--break .planning-map-stop-pin::before {
    background: rgba(34, 197, 94, 0.18);
}

.planning-map-stop-marker--rest .planning-map-stop-pin::before {
    background: rgba(139, 92, 246, 0.18);
}

.planning-map-stop-marker--break .planning-map-stop-label,
.planning-map-stop-marker--rest .planning-map-stop-label {
    max-width: 138px;
}

.planning-map-stop-tooltip {
    border: 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.22);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 10px;
}

.planning-map-stop-tooltip::before {
    display: none;
}

.planning-map-route-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1120;
    border: 0;
    background: rgba(15, 23, 42, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.planning-map-route-modal-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.planning-map-route-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1130;
    width: min(860px, calc(100vw / var(--jump-zoom, 1) - 28px));
    max-height: min(720px, calc(100vh / var(--jump-zoom, 1) - 28px));
    overflow: auto;
    padding: 18px;
    border: 1px solid rgba(191, 219, 254, 0.92);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 34px 60px rgba(15, 23, 42, 0.24);
    transform: translate(-50%, -48%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.planning-map-route-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.planning-map-route-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.planning-map-route-modal-kicker {
    display: inline-block;
    margin-bottom: 6px;
    color: #0f4c81;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.planning-map-route-modal-header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.34rem;
    font-weight: 800;
}

.planning-map-route-modal-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: #eff6ff;
    color: #0f4c81;
}

.planning-map-route-modal-hero,
.planning-map-route-modal-metric,
.planning-map-route-modal-detail-card {
    border: 1px solid rgba(191, 219, 254, 0.84);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.92));
    box-shadow: 0 16px 30px rgba(15, 76, 129, 0.08);
}

.planning-map-route-modal-hero {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.planning-map-route-modal-places {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
}

.planning-map-route-modal-place span,
.planning-map-route-modal-metric span,
.planning-map-route-modal-detail-card span {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.planning-map-route-modal-place strong,
.planning-map-route-modal-metric strong,
.planning-map-route-modal-detail-card strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.3;
}

.planning-map-route-modal-pill-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.planning-map-route-modal-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(191, 219, 254, 0.88);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #33537a;
    font-size: 0.78rem;
    font-weight: 800;
}

.planning-map-route-modal-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(15, 76, 129, 0.12);
    color: #0f4c81;
}

.planning-map-route-modal-metrics,
.planning-map-route-modal-details {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.planning-map-route-modal-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr);
    gap: 12px;
    align-items: start;
}

.planning-map-route-modal-summary .planning-map-route-modal-metrics,
.planning-map-route-modal-summary .planning-map-route-modal-details {
    margin-top: 0;
}

.planning-map-route-modal-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
}

.planning-map-route-modal-details {
    grid-template-columns: 1fr;
    gap: 10px;
}

.planning-map-route-modal-summary .planning-map-route-modal-details {
    align-content: start;
}

.planning-map-route-modal-metric,
.planning-map-route-modal-detail-card {
    padding: 12px 14px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
}

.planning-map-route-modal-metric--primary {
    padding: 14px 16px;
    min-height: 96px;
    background: linear-gradient(145deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.94));
    box-shadow: 0 24px 42px rgba(15, 76, 129, 0.14);
}

.planning-map-route-modal-metric--primary strong {
    font-size: 1.28rem;
}

.planning-map-route-modal-metric:not(.planning-map-route-modal-metric--primary) {
    min-height: 74px;
}

.planning-map-route-modal-detail-card {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 4px;
    min-height: 66px;
    border-color: rgba(226, 232, 240, 0.92);
}

.planning-map-route-modal-details .planning-map-route-modal-detail-card:nth-child(n+3) {
    display: none;
}

.planning-map-route-modal-details .planning-map-route-modal-detail-card strong {
    margin-top: 0;
    font-size: 1rem;
    line-height: 1.25;
}

.planning-map-route-modal-details .planning-map-route-modal-detail-card span {
    font-size: 0.74rem;
    line-height: 1.15;
}

.planning-map-route-modal-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.planning-map-route-modal-section {
    padding: 14px;
    border: 1px solid rgba(191, 219, 254, 0.84);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow: 0 16px 30px rgba(15, 76, 129, 0.06);
}

.planning-map-route-modal-section:nth-child(2) {
    grid-column: auto;
}

.planning-map-route-modal-section:nth-child(1) .planning-map-route-modal-list,
.planning-map-route-modal-section:nth-child(2) .planning-map-route-modal-list {
    max-height: 320px;
    overflow: auto;
    padding-right: 6px;
}

.planning-map-route-modal-section-head {
    margin-bottom: 10px;
}

.planning-map-route-modal-section-head span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.planning-map-route-modal-section-head h4 {
    margin: 4px 0 0;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 800;
}

.planning-map-route-modal-current-meta div,
.planning-map-route-stop-item,
.planning-map-route-event-item {
    padding: 11px 12px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 14px;
    background: #ffffff;
}

.planning-map-route-modal-list {
    display: grid;
    gap: 8px;
}

.planning-map-route-stop-item,
.planning-map-route-event-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
}

.planning-map-route-stop-index,
.planning-map-route-event-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(180deg, #2d7fe0, #0f4c81);
    box-shadow: 0 12px 24px rgba(15, 76, 129, 0.2);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
}

.planning-map-route-event-badge--break {
    background: linear-gradient(180deg, #22c55e, #15803d);
}

.planning-map-route-event-badge--rest {
    background: linear-gradient(180deg, #8b5cf6, #5b21b6);
}

.planning-map-route-stop-body strong,
.planning-map-route-event-body strong {
    display: block;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 800;
}

.planning-map-route-stop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.planning-map-route-stop-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 76, 129, 0.1);
    color: #0f4c81;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.planning-map-route-event-location {
    margin-top: 3px;
    color: #0f4c81;
    font-size: 0.84rem;
    font-weight: 700;
}

.planning-map-route-event-location.is-approximate {
    color: #7c3aed;
}

.planning-map-route-event-location.is-approximate::after {
    content: " aproximado";
    margin-left: 6px;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.planning-map-route-stop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 4px;
    color: #475569;
    font-size: 0.78rem;
}

.planning-map-route-stop-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.planning-map-route-coordinate-text {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.planning-map-route-coordinate-card .planning-map-route-coordinate-text {
    font-size: 0.8rem;
}

/* Route shaping: the line is grabbable so the user can pull it into a via point. */
.planning-map-canvas .planning-map-route-line,
.planning-map-canvas .planning-map-route-hit-line {
    cursor: grab;
}

.planning-map-canvas .planning-map-route-line {
    transition: stroke-width 0.14s ease;
}

.planning-map-canvas .planning-map-route-hit-line:hover + .planning-map-route-line,
.planning-map-canvas .planning-map-route-line:hover {
    stroke-width: 8;
}

.planning-map-canvas.is-route-line-dragging,
.planning-map-canvas.is-route-line-dragging .planning-map-route-line,
.planning-map-canvas.is-route-line-dragging .planning-map-route-hit-line {
    cursor: grabbing;
}

.planning-map-canvas.is-route-recalculating .planning-map-route-line,
.planning-map-canvas.is-route-recalculating .planning-map-route-hit-line {
    cursor: progress;
}

.planning-map-route-via-icon-wrapper {
    border: 0;
    background: transparent;
}

.planning-map-route-via-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: linear-gradient(180deg, #a78bfa, #6d28d9);
    box-shadow: 0 8px 16px rgba(76, 29, 149, 0.34);
    color: #ffffff;
    font-size: 0.66rem;
    cursor: grab;
}

.planning-map-route-via-handle.is-ghost {
    background: linear-gradient(180deg, #c4b5fd, #7c3aed);
    opacity: 0.9;
}

.planning-map-route-recalculating {
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(191, 219, 254, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 28px rgba(15, 76, 129, 0.16);
    color: #0f4c81;
    font-size: 0.82rem;
    font-weight: 700;
    transform: translateX(-50%);
    pointer-events: none;
}

.planning-map-route-zones {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.9);
}

.planning-map-route-zones.is-applied {
    border-color: rgba(13, 148, 136, 0.4);
    background: rgba(204, 251, 241, 0.5);
}

.planning-map-route-zones-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.planning-map-route-zones.is-applied .planning-map-route-zones-badge {
    background: rgba(13, 148, 136, 0.14);
    color: #0f766e;
}

.planning-map-route-zones-body > strong {
    display: block;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 800;
}

.planning-map-route-zones-body > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.planning-map-route-zones.is-applied .planning-map-route-zones-body > span {
    color: #0f766e;
}

.planning-map-route-modal-pill--via {
    background: rgba(124, 58, 237, 0.12);
    color: #5b21b6;
}

.planning-map-route-modal-detail-card--editable {
    gap: 6px;
}

.planning-map-route-schedule-input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid rgba(191, 219, 254, 0.96);
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 700;
}

.planning-map-route-schedule-input:focus {
    border-color: #0f4c81;
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}

.planning-map-route-modal-detail-card--editable small {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
}

.planning-map-route-modal-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px dashed rgba(191, 219, 254, 0.96);
    border-radius: 14px;
    background: rgba(239, 246, 255, 0.6);
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
}

.planning-map-route-modal-notice.is-custom {
    border-style: solid;
    border-color: rgba(124, 58, 237, 0.36);
    background: rgba(237, 233, 254, 0.6);
    color: #5b21b6;
}

.planning-map-route-modal-notice span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* aRoute - Corredores: numbered points of the corridor being drawn. */
.corridor-map-canvas {
    min-height: 420px;
    border-radius: 14px;
    overflow: hidden;
}

.corridor-map-canvas .leaflet-container {
    cursor: crosshair;
}

.corridor-map-point-icon-wrapper {
    border: 0;
    background: transparent;
}

.corridor-map-point {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: linear-gradient(180deg, #2d7fe0, #0f4c81);
    box-shadow: 0 8px 16px rgba(15, 76, 129, 0.32);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    cursor: grab;
}

.corridor-map-point--start {
    background: linear-gradient(180deg, #22c55e, #15803d);
}

.corridor-map-point--end {
    background: linear-gradient(180deg, #f97316, #c2410c);
}

.planning-map-route-schedule-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(124, 58, 237, 0.36);
    border-radius: 999px;
    background: #ffffff;
    color: #5b21b6;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 900px) {
    .planning-map-route-modal-metrics,
    .planning-map-route-modal-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .planning-map-route-modal-summary {
        grid-template-columns: 1fr;
    }

    .planning-map-route-modal-metric,
    .planning-map-route-modal-metric--primary {
        grid-column: auto;
    }

    .planning-map-route-modal-sections {
        grid-template-columns: 1fr;
    }

    .planning-map-route-modal-section:nth-child(1),
    .planning-map-route-modal-section:nth-child(2) {
        grid-column: auto;
    }

    .planning-map-route-modal-places {
        grid-template-columns: 1fr;
    }

    .planning-map-route-modal-separator {
        display: none;
    }
}

@media (max-width: 560px) {
    .planning-map-route-modal {
        padding: 18px;
        border-radius: 22px;
    }

    .planning-map-route-modal-metrics,
    .planning-map-route-modal-details {
        grid-template-columns: 1fr;
    }

    .planning-map-route-stop-item,
    .planning-map-route-event-item {
        grid-template-columns: 1fr;
    }
}

.planning-map-order-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1090;
    /* Let pointer events pass through to the cards underneath so a second
       right-click re-opens the menu on the targeted order (the card handler
       runs and prevents the browser's native context menu) instead of the
       backdrop swallowing the event and letting the browser menu appear. */
    pointer-events: none;
    border: 0;
    background: transparent;
}

.planning-map-order-menu {
    position: fixed;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 280px;
    max-width: 320px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 26px 50px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(18px);
    /* Safety net: never exceed the viewport, even if action labels wrap. */
    max-height: calc(100vh / var(--jump-zoom, 1) - 16px);
    overflow-y: auto;
}

.planning-map-order-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 4px 8px;
    color: #0f172a;
}

.planning-map-order-menu-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: #eff6ff;
    color: #0f4c81;
}

/* Second line of the contextual menu: identifies the record the actions apply to. */
.planning-map-order-menu-target {
    padding: 0 4px 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.planning-map-order-menu-action {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.88));
    color: #0f172a;
    font-weight: 700;
    text-align: left;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.planning-map-order-menu-action i {
    color: #0f4c81;
}

.planning-map-order-menu-action:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 76, 129, 0.32);
    box-shadow: 0 14px 28px rgba(15, 76, 129, 0.14);
}

.planning-map-list-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 12px;
    margin-bottom: 10px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.88);
    cursor: grab;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.planning-map-list-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.95);
}

.planning-map-list-item-readonly {
    cursor: default;
}

.planning-map-list-item-row span {
    display: block;
    color: #1e293b;
    text-align: left;
    line-height: 1.35;
}

.planning-map-list-item-row:first-child span {
    font-weight: 700;
    color: #0f172a;
}

.planning-map-search-box {
    margin-bottom: 2px;
}

.planning-map-search-box .dxbl-tagbox,
.planning-map-search-box .dxbl-text-edit {
    min-height: 48px;
    border-radius: 16px;
}

.planning-map-grid-shell {
    overflow: hidden;
}

/* The grid renders as <dxbl-grid>, so the `> div` height rule above never reached it and the grid
   grew to its content height instead of being bounded by the shell: with nothing to overflow, the
   virtual scrolling viewport had no height and produced no vertical scrollbar. */
.planning-map-grid-shell .grid-size,
.planning-map-grid-shell .dxbl-grid {
    flex: 1 1 auto;
    height: 100% !important;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}

.planning-map-grid-shell .dxbl-grid-data-area {
    min-height: 0;
}

.planning-map-grid-shell-window {
    min-height: calc(56vh / var(--jump-zoom, 1));
}

dxbl-modal > .dxbs-modal > .dxbs-popup:has(.planning-map-locate-sheet),
dxbl-modal > .dxbs-modal > .dxbs-popup:has(.planning-map-filters-sheet),
dxbl-modal > .dxbs-modal > .dxbs-popup:has(.planning-map-driver-times-sheet) {
    border-radius: 24px !important;
    overflow: hidden;
    background: #ffffff !important;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.18) !important;
}

dxbl-modal > .dxbs-modal > .dxbs-popup:has(.planning-map-locate-sheet) .dxbs-popup-header,
dxbl-modal > .dxbs-modal > .dxbs-popup:has(.planning-map-filters-sheet) .dxbs-popup-header,
dxbl-modal > .dxbs-modal > .dxbs-popup:has(.planning-map-driver-times-sheet) .dxbs-popup-header {
    padding: 18px 22px 10px !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92) !important;
    background: #ffffff !important;
}

dxbl-modal > .dxbs-modal > .dxbs-popup:has(.planning-map-locate-sheet) .dxbs-popup-header .dxbs-text,
dxbl-modal > .dxbs-modal > .dxbs-popup:has(.planning-map-filters-sheet) .dxbs-popup-header .dxbs-text,
dxbl-modal > .dxbs-modal > .dxbs-popup:has(.planning-map-driver-times-sheet) .dxbs-popup-header .dxbs-text {
    color: #0f172a !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
}

dxbl-modal > .dxbs-modal > .dxbs-popup:has(.planning-map-locate-sheet) .dxbs-popup-content,
dxbl-modal > .dxbs-modal > .dxbs-popup:has(.planning-map-filters-sheet) .dxbs-popup-content,
dxbl-modal > .dxbs-modal > .dxbs-popup:has(.planning-map-driver-times-sheet) .dxbs-popup-content,
dxbl-modal > .dxbs-modal > .dxbs-popup:has(.planning-map-locate-sheet) .dxbs-popup-body,
dxbl-modal > .dxbs-modal > .dxbs-popup:has(.planning-map-filters-sheet) .dxbs-popup-body,
dxbl-modal > .dxbs-modal > .dxbs-popup:has(.planning-map-driver-times-sheet) .dxbs-popup-body {
    padding: 12px 18px 10px !important;
    background: transparent !important;
}

dxbl-modal > .dxbs-modal > .dxbs-popup:has(.planning-map-locate-sheet) .dxbs-popup-footer,
dxbl-modal > .dxbs-modal > .dxbs-popup:has(.planning-map-filters-sheet) .dxbs-popup-footer,
dxbl-modal > .dxbs-modal > .dxbs-popup:has(.planning-map-driver-times-sheet) .dxbs-popup-footer {
    padding: 0 18px 14px !important;
    border-top: 0 !important;
    background: transparent !important;
}

.planning-assignment-modal {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: calc(72vh / var(--jump-zoom, 1));
    padding: 6px 4px 2px;
    color: #0f172a;
}

.planning-assignment-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.planning-assignment-stat,
.planning-assignment-resource-card,
.planning-assignment-workspace {
    border: 1px solid rgba(191, 219, 254, 0.9);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.96));
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.1);
}

.planning-assignment-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 78px;
    padding: 14px 16px;
    background: radial-gradient(circle at top right, rgba(96, 165, 250, 0.18), transparent 44%), linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.92));
}

.planning-assignment-stat span {
    color: #5b6f92;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.planning-assignment-stat strong {
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.planning-assignment-stat-wide strong {
    font-size: 1.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.planning-assignment-resource-card {
    padding: 12px 14px 4px;
}

.planning-assignment-workspace {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.planning-assignment-pane-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 0;
}

.planning-assignment-pane-header strong {
    display: block;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.planning-assignment-pane-header span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.4;
}

.planning-assignment-fieldset {
    padding: 12px 14px;
    border: 1px solid rgba(203, 213, 225, 0.72);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    flex: 0 0 auto;
}

.planning-assignment-footer {
    gap: 10px;
    padding: 2px 2px 10px;
}

.planning-assignment-submit {
    min-width: 188px;
}

.planning-assignment-submit .dxbl-btn {
    min-height: 44px;
    padding-inline: 16px;
    border-radius: 14px;
    box-shadow: 0 14px 26px rgba(15, 76, 129, 0.18);
}

.planning-map-sheet-intro-card {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
    align-items: center;
}

.planning-map-locate-tip {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(239, 246, 255, 0.86);
    color: #0f172a;
}

.planning-map-locate-tip i {
    margin-top: 2px;
    color: #0f4c81;
}

.planning-map-locate-sheet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
    overflow: visible;
}

.planning-map-sheet-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
}

.planning-map-sheet-card:has(.ctlf4-search-popover) {
    z-index: 2100;
}

.planning-map-locate-sheet-card-wide {
    grid-column: 1 / -1;
}

.planning-map-locate-card-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.planning-map-locate-card-header strong {
    display: block;
    margin-bottom: 3px;
    color: #0f172a;
    font-size: 0.96rem;
    font-weight: 800;
}

.planning-map-locate-card-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
}

.planning-map-locate-card-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(219, 234, 254, 0.95), rgba(191, 219, 254, 0.9));
    color: #0f4c81;
    font-size: 0.92rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.planning-map-secondary-button {
    min-width: 120px;
}

.planning-map-radius-sheet {
    max-width: 760px;
}

.planning-map-radius-sheet-compact {
    max-width: 560px;
    min-height: auto;
}

.planning-map-radius-sheet-compact.planning-assignment-modal {
    min-height: auto;
    gap: 10px;
}

.planning-map-radius-sheet-compact .planning-assignment-resource-card {
    padding: 8px 10px 0;
}

.planning-map-radius-sheet-header .planning-assignment-pane-header {
    padding: 10px 12px 8px;
}

.planning-map-radius-sheet-header .planning-assignment-pane-header strong {
    font-size: 1rem;
}

.planning-map-radius-sheet-header .planning-assignment-pane-header span {
    font-size: 0.82rem;
}

.planning-map-radius-workspace {
    flex: 0 0 auto;
    min-height: 0;
}

.planning-map-radius-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.planning-map-radius-input-wrap {
    width: min(100%, 320px);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.planning-map-radius-input-wrap label {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.planning-map-radius-input {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(147, 197, 253, 0.7);
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.96);
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.planning-map-radius-input:focus {
    outline: 0;
    border-color: rgba(15, 76, 129, 0.5);
    box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.2);
}

.planning-map-radius-input-wrap small {
    color: #64748b;
    font-size: 0.84rem;
}

.planning-map-radius-sheet-compact .planning-assignment-fieldset {
    padding: 12px 14px;
}

.planning-map-radius-sheet-compact .planning-assignment-footer {
    padding-top: 8px;
}

.planning-map-radius-sheet-compact .planning-assignment-footer .planning-map-toolbar-button {
    min-width: 162px;
}

.planning-map-lookup-host {
    position: relative;
    width: 100%;
    overflow: visible;
    z-index: 2147483646;
}

.planning-map-lookup-host .control-f4-root,
.planning-map-lookup-host .ctlf4-native-combobox,
.planning-map-lookup-host .ctlf4-native-editor {
    width: 100%;
}

.planning-map-lookup-host .ctlf4-label,
.planning-map-lookup-host .ctlf4-label-error {
    display: none;
    width: 0 !important;
}

.planning-map-lookup-host .ctlf4-native-input {
    min-height: 40px;
    font-size: 0.95rem;
    line-height: 40px;
}

.planning-map-lookup-host .ctlf4-native-editor {
    min-height: 42px;
    border-radius: 12px;
}

.planning-map-lookup-host .ctlf4-search-layer {
    position: absolute;
    inset: 0;
    overflow: visible;
    pointer-events: none;
}

.planning-map-lookup-host .ctlf4-search-popover {
    z-index: 2147483647 !important;
    pointer-events: auto;
}

.planning-map-filters-sheet-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.28fr);
    gap: 14px;
    align-items: start;
    overflow: visible;
}

.planning-map-filters-card-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(239, 246, 255, 0.9);
    color: #33537a;
    font-size: 0.88rem;
    line-height: 1.4;
}

.planning-map-filters-card-note i {
    margin-top: 2px;
    color: #0f4c81;
}

.planning-map-filters-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.planning-map-filters-grid-compact {
    grid-template-columns: 1fr;
}

.planning-map-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.planning-map-filter-field-wide {
    grid-column: 1 / -1;
}

.planning-map-filter-field label {
    color: #334155;
    font-size: 0.86rem;
    font-weight: 700;
}

.planning-map-filters-card .dxbl-tagbox,
.planning-map-filters-card .dxbl-text-edit {
    min-height: 42px;
    border-radius: 12px;
}

.planning-map-primary-button {
    min-width: 132px;
}

.planning-map-driver-times-sheet {
    min-height: calc(50vh / var(--jump-zoom, 1));
    gap: 10px;
}

.planning-map-driver-times-workspace {
    padding: 12px;
}

.planning-map-driver-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    align-content: start;
}

.planning-map-driver-times-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 160px;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.08), transparent 42%),
        rgba(255, 255, 255, 0.9);
}

.planning-map-driver-times-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.planning-map-driver-times-card-header span {
    display: block;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.planning-map-driver-times-card-header strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.planning-map-driver-times-card-header i {
    color: #0f4c81;
    font-size: 0.95rem;
}

.planning-map-driver-times-meter {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.95);
}

.planning-map-driver-times-meter span {
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #93c5fd 0%, #0f4c81 100%);
}

.planning-map-driver-times-card-low .planning-map-driver-times-meter span {
    background: linear-gradient(90deg, #d9f99d 0%, #65a30d 100%);
}

.planning-map-driver-times-card-medium .planning-map-driver-times-meter span {
    background: linear-gradient(90deg, #fde68a 0%, #d97706 100%);
}

.planning-map-driver-times-card-high .planning-map-driver-times-meter span {
    background: linear-gradient(90deg, #fda4af 0%, #dc2626 100%);
}

.planning-map-driver-times-card-empty .planning-map-driver-times-meter span {
    background: linear-gradient(90deg, #cbd5e1 0%, #94a3b8 100%);
}

.planning-map-driver-times-range {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.planning-map-driver-times-range div {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.planning-map-driver-times-range label {
    display: block;
    margin: 0 0 3px;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.planning-map-driver-times-range strong {
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 800;
}

.planning-map-driver-times-sheet .planning-assignment-stat {
    min-height: 70px;
    padding: 12px 14px;
}

.planning-map-driver-times-sheet .planning-assignment-stat strong {
    font-size: 1.15rem;
}

.planning-map-driver-times-sheet .planning-assignment-stat-wide strong {
    font-size: 1.05rem;
}

.planning-map-driver-times-sheet .planning-assignment-resource-card {
    padding: 10px 12px 2px;
}

.planning-map-driver-times-sheet .planning-assignment-pane-header {
    padding: 12px 14px 0;
}

.planning-map-driver-times-sheet .planning-assignment-pane-header strong {
    font-size: 0.94rem;
}

.planning-map-driver-times-sheet .planning-assignment-pane-header span {
    font-size: 0.82rem;
}

.planning-map-driver-times-sheet .planning-map-locate-tip {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.84rem;
}

.planning-map-driver-times-sheet .planning-assignment-footer {
    padding-top: 0;
    padding-bottom: 8px;
}

.planning-map-driver-times-sheet .planning-map-secondary-button .dxbl-btn,
.planning-map-driver-times-sheet .planning-map-secondary-button.dxbl-btn {
    min-height: 40px;
    padding-inline: 14px;
    border-radius: 12px;
}

/* The driver times modal gives the whole height to the empty state. */
.planning-map-driver-times-workspace > .jump-form-empty-state {
    min-height: 360px;
}

.planning-map-driver-times-workspace > .jump-form-empty-state span {
    max-width: 320px;
    line-height: 1.45;
}

.planning-map-filter-date-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

.planning-map-filter-operator {
    width: 56px;
}

.planning-map-filter-operator .dxbl-text-edit,
.planning-map-filter-operator .dxbl-btn-edit,
.planning-map-filter-operator .dxbl-edit {
    min-height: 44px;
    border-radius: 14px;
}

.planning-map-filter-operator .dxbl-text-edit {
    position: relative;
    padding-inline: 0;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(239, 246, 255, 0.92));
}

.planning-map-filter-operator .dxbl-edit-box,
.planning-map-filter-operator .dxbl-edit-box-container,
.planning-map-filter-operator .dxbl-edit-input-container {
    justify-content: center;
}

.planning-map-filter-operator .dxbl-edit-btn-clear,
.planning-map-filter-operator .dxbl-btn {
    display: none;
}

.planning-map-filter-operator-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    color: #334155;
    font-size: 0.95rem;
}

.planning-map-filter-operator .dxbl-text-edit::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.planning-map-lookup-host {
    display: flex;
    align-items: center;
    min-height: 38px;
}

.planning-map-legend-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 6px 2px;
}

.planning-map-legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0f172a;
}

.planning-map-legend-divider {
    height: 1px;
    margin: 4px 0;
    background: rgba(203, 213, 225, 0.95);
}

.planning-map-legend-image {
    width: 28px;
    height: 34px;
    object-fit: contain;
}

.planning-map-legend-color {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.18);
}

.planning-map-legend-icon {
    color: #0f4c81;
    font-size: 1.25rem;
}

.planning-map-legend-occupancy-dot {
    width: 18px;
    height: 18px;
    display: inline-flex;
    border: 1px solid rgba(148, 163, 184, 0.7);
    border-radius: 999px;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.planning-map-legend-occupancy-dot.occupancy-empty {
    background: #ffffff;
}

.planning-map-legend-occupancy-dot.occupancy-low {
    background: #d7ecc8;
}

.planning-map-legend-occupancy-dot.occupancy-medium {
    background: #ffd86b;
}

.planning-map-legend-occupancy-dot.occupancy-high {
    background: #f8c1c5;
}

.planning-map-radial-menu {
    width: 224px;
    display: none;
    position: absolute;
    z-index: 1000;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 22px 38px rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.planning-map-context-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 12px 8px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.planning-map-context-menu-header strong {
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 800;
}

.planning-map-context-close {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.96);
    color: #475569;
}

.planning-map-context-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px 12px;
}

.planning-map-context-action {
    min-height: 62px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 10px 10px 9px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 15px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #0f172a;
    text-align: left;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.planning-map-context-action:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 76, 129, 0.32);
    box-shadow: 0 14px 24px rgba(15, 76, 129, 0.12);
}

.planning-map-context-action i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(15, 76, 129, 0.08);
    color: #0f4c81;
    font-size: 0.86rem;
}

.planning-map-context-action span {
    color: #1e293b;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.15;
}

.planning-map-context-action-clear {
    background: linear-gradient(180deg, #fff8f1 0%, #fff1f2 100%);
}

.planning-map-context-action-clear i {
    background: rgba(234, 88, 12, 0.12);
    color: #c2410c;
}

.planning-map-context-action-clear span {
    color: #9a3412;
}

.planning-map-marker {
    position: relative;
    width: 46px;
    height: 58px;
}

.planning-map-marker-selected-load {
    width: 40px;
    height: 54px;
}

.planning-map-marker-shell {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px 18px 18px 4px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.planning-map-marker-shell-local {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.planning-map-marker-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 76px;
    min-width: 36px;
    padding: 2px 6px;
    border-radius: 5px;
    color: #0f172a;
    background: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.planning-map-marker-badge-local {
    top: -8px;
    max-width: 88px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #0f172a;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(191, 219, 254, 0.92);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.planning-map-marker-badge-local-start {
    border-color: rgba(21, 128, 61, 0.22);
    color: #166534;
}

.planning-map-marker-badge-local-end {
    border-color: rgba(190, 24, 93, 0.22);
    color: #9d174d;
}

.planning-map-marker-badge-local-mid {
    border-color: rgba(15, 76, 129, 0.22);
    color: #0f4c81;
}

.planning-map-marker-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.planning-map-marker-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    background: linear-gradient(180deg, rgba(15, 76, 129, 0.98) 0%, rgba(37, 99, 235, 0.98) 100%);
}

.planning-map-selected-load-pin {
    position: absolute;
    inset: 14px 0 0 0;
    display: flex;
    justify-content: center;
}

.planning-map-selected-load-core {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.98);
    border-radius: 999px;
    background: linear-gradient(180deg, #1f6fd6 0%, #0f4c81 100%);
    color: #ffffff;
    box-shadow: 0 14px 24px rgba(15, 76, 129, 0.24);
}

.planning-map-selected-load-core::after {
    content: "";
    position: absolute;
    bottom: -8px;
    width: 12px;
    height: 12px;
    border-radius: 2px 2px 10px 2px;
    background: #0f4c81;
    transform: rotate(45deg);
    z-index: -1;
}

.planning-map-selected-load-core i {
    font-size: 0.9rem;
}

.planning-map-marker-local-start .planning-map-selected-load-core {
    background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
    box-shadow: 0 14px 24px rgba(21, 128, 61, 0.24);
}

.planning-map-marker-local-start .planning-map-selected-load-core::after {
    background: #15803d;
}

.planning-map-marker-local-end .planning-map-selected-load-core {
    background: linear-gradient(180deg, #f43f5e 0%, #be123c 100%);
    box-shadow: 0 14px 24px rgba(190, 24, 93, 0.24);
}

.planning-map-marker-local-end .planning-map-selected-load-core::after {
    background: #be123c;
}

.planning-map-popup {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.planning-map-popup strong {
    color: #0f172a;
    font-size: 0.95rem;
}

.planning-map-popup span {
    color: #64748b;
    font-size: 0.78rem;
}

.marker-highlight {
    transform: scale(1.45);
    z-index: 1000;
    filter: brightness(72%) contrast(115%);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.dxbl-list-box .dxbl-list-box-highlighted-text,
.dxbl-list-box-render-container .dxbl-list-box-highlighted-text {
    background-color: #d9ecff;
}

@media (max-width: 1200px) {
    .planning-map-content {
        grid-template-columns: 1fr;
    }

    .planning-map-content {
        min-height: auto;
    }

    .planning-map-locate-sheet-grid {
        grid-template-columns: 1fr;
    }

    .planning-map-locate-sheet-card-wide {
        grid-column: auto;
    }

    .planning-assignment-summary {
        grid-template-columns: 1fr;
    }

    .planning-map-sheet-intro-card,
    .planning-map-filters-sheet-grid {
        grid-template-columns: 1fr;
    }

    .planning-map-filters-grid,
    .planning-map-filters-grid-compact {
        grid-template-columns: 1fr;
    }

    .planning-map-driver-times-range {
        grid-template-columns: 1fr;
    }

    .planning-map-filter-field-wide {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .planning-map-page {
        padding: 12px;
    }

    .planning-map-toolbar,
    .planning-map-board-card {
        border-radius: 18px;
    }

    .planning-map-actions {
        width: 100%;
        justify-content: stretch;
    }

    .planning-map-toolbar-button {
        flex: 1 1 calc(50% - 10px);
    }

    .planning-map-map-surface,
    .planning-map-canvas {
        min-height: calc(54vh / var(--jump-zoom, 1));
    }

    .planning-map-locate-tip {
        min-width: 0;
        width: 100%;
    }

    .planning-map-config-switcher {
        width: 100%;
    }

    .planning-map-config-tab {
        flex: 1 1 auto;
        justify-content: center;
    }

}
