.recipient-map-shell {
    direction: rtl;
}

.recipient-map-card {
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 10px;
}

.recipient-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 10px;
    align-items: stretch;
    direction: ltr;
}

.recipient-map-container {
    position: relative;
    height: 520px;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    background: #f7f7f7;
    direction: ltr;
}

.recipient-map-compare {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    padding: 8px;
}

.recipient-map-compare.single-provider {
    grid-template-rows: 1fr;
}

.recipient-map-provider-card {
    position: relative;
    min-height: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: #f8fafc;
}

.recipient-map {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    contain: layout paint;
}

.recipient-map-half {
    height: 100%;
}

.recipient-map-side {
    height: 520px;
    overflow-y: auto;
    border: 1px solid #e6e6e6;
    background: #fbfbfb;
    padding: 10px;
    direction: rtl;
}

.recipient-map-side-modern {
    border: 0;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 44%, #f9fafb 100%);
    box-shadow: inset 0 0 0 1px #e7edf6;
    border-radius: 10px;
}

.recipient-map-side .mud-input-control {
    margin-top: 4px;
    margin-bottom: 4px;
}

.recipient-map-selected-card {
    border: 1px solid #d9d9d9;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
}

.recipient-map-count-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 12px;
}

.recipient-map-count-row:last-child {
    border-bottom: 0;
}

.recipient-map-placeholder {
    height: 92px;
    border: 1px dashed #d7d7d7;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #757575;
    text-align: center;
    padding: 12px;
    background: #fff;
}

.recipient-map-placeholder.compact {
    height: 58px;
    font-size: 12px;
}

.map-side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef5ff 0%, #ffffff 100%);
    border: 1px solid #dce9fb;
    margin-bottom: 10px;
}

.map-side-kicker {
    color: #64748b;
    font-size: 11px;
}

.map-side-title {
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
}

.map-side-section {
    position: relative;
    border: 1px solid #d7e2f2;
    border-right: 4px solid #2563eb;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 100%);
    padding: 8px;
    margin-bottom: 10px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.map-section-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    min-height: 28px;
    border-radius: 10px;
    padding: 2px 4px;
    font-family: inherit;
    font-weight: 700;
    font-size: 12px;
    text-align: right;
}

.map-section-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.map-section-toggle span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.map-section-toggle:disabled {
    cursor: default;
    opacity: 0.75;
}

.map-section-body {
    padding-top: 7px;
    margin-top: 5px;
    border-top: 1px solid #edf2f8;
}

.map-side-section-title {
    display: block;
    color: #475569;
    font-weight: 700;
    margin-bottom: 8px;
}

.selected-zone-section {
    background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
}

.map-zone-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f8fbff;
    padding: 10px;
}

.map-zone-pill span {
    display: block;
    color: #64748b;
    font-size: 11px;
}

.map-zone-pill strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    letter-spacing: 1px;
}

.map-zone-chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.map-zone-chip-row .mud-chip,
.map-send-item .mud-chip {
    height: 23px;
    font-size: 11px;
}

.map-zone-chip-row .mud-chip-content {
    padding-inline: 2px;
}

.map-selection-mode {
    border: 1px solid #d8e4f4;
    border-radius: 8px;
    padding: 0 6px;
    margin: 3px 0;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.map-selection-mode.compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-height: 28px;
}

.map-selection-mode.compact > span {
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.map-selection-mode.compact .mud-radio-group {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
}

.map-selection-mode.compact .mud-radio {
    margin-inline-end: 0;
    padding: 0;
    min-height: 22px;
}

.map-selection-mode.compact .mud-typography {
    font-size: 11px;
    line-height: 1.2;
}

.map-selection-mode.compact .mud-radio-content {
    padding-inline-start: 1px;
}

.map-sequential-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.map-ir-tour-box {
    margin-top: 7px;
    padding: 7px;
    border: 1px dashed #bae6fd;
    border-radius: 11px;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
}

.map-side-section-locked {
    background: #f8fafc;
    border-style: dashed;
    border-right-color: #94a3b8;
    opacity: 0.78;
}

.map-locked-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

.map-live-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    padding: 7px 9px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
    border: 1px solid #bbf7d0;
}

.map-live-count span {
    color: #475569;
    font-size: 11px;
}

.map-live-count strong {
    color: #047857;
    font-size: 15px;
}

.operator-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    margin-top: 6px;
}

.operator-summary-card {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    align-items: center;
    gap: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 6px 8px;
    background: #fff;
    transition: all 0.18s ease;
}

.operator-summary-card.active {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}

.operator-summary-grid.colorful .operator-summary-card {
    min-height: 38px;
}

.operator-summary-card.hamrah-card {
    border-color: #99f6e4;
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}

.operator-summary-card.irancell-card {
    border-color: #fde68a;
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
}

.operator-summary-card.total-card {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}

.operator-summary-card.muted {
    opacity: 0.45;
}

.operator-summary-card small {
    color: #475569;
    font-size: 12px;
}

.operator-summary-card strong {
    color: #0f172a;
    font-size: 13px;
}

.operator-dot {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 999px;
}

.operator-dot.hamrah {
    background: #00a693;
}

.operator-dot.irancell {
    background: #f8c300;
}

.operator-dot.rightel {
    background: #7c3aed;
}

.operator-dot.total {
    background: #2563eb;
}

.map-send-list-empty {
    margin-top: 10px;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    padding: 12px;
    color: #64748b;
    text-align: center;
    font-size: 12px;
    background: #fff;
}

.map-send-list {
    display: grid;
    gap: 7px;
    margin-top: 4px;
}

.map-send-card {
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 7px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.04);
}

.map-send-card-top {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 6px;
}

.map-send-card-top strong {
    color: #0f172a;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-send-row-index {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.map-send-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.map-send-card-meta .mud-chip {
    height: 22px;
    font-size: 10.5px;
}

.map-send-card-desc {
    margin-top: 5px;
    color: #64748b;
    font-size: 11px;
    border-top: 1px dashed #dbeafe;
    padding-top: 5px;
}

.map-final-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 11px;
    border: 1px solid #bbf7d0;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
}

.map-final-total span {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.map-final-total strong {
    color: #047857;
    font-size: 16px;
}

.leaflet-container {
    font-family: Samim, Tahoma, Arial, sans-serif;
    background: #f8fafc;
}

.recipient-map .leaflet-fade-anim .leaflet-tile,
.recipient-map .leaflet-zoom-animated {
    transition-duration: 0s !important;
}

.leaflet-control-attribution {
    direction: ltr;
}

.recipient-postal-tooltip.leaflet-tooltip {
    background: rgba(15, 23, 42, .94);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .28);
    color: #ffffff;
    direction: rtl;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 10px;
    text-shadow: none;
    white-space: nowrap;
}

.leaflet-tooltip-top.recipient-postal-tooltip::before,
.leaflet-tooltip-bottom.recipient-postal-tooltip::before,
.leaflet-tooltip-left.recipient-postal-tooltip::before,
.leaflet-tooltip-right.recipient-postal-tooltip::before {
    border-top-color: rgba(15, 23, 42, .94);
}

@media (max-width: 992px) {
    .recipient-map-layout {
        grid-template-columns: 1fr;
    }

    .recipient-map-side {
        height: auto;
        max-height: none;
    }
}

/* ===== Live LBA ===== */
.live-lba-shell .live-lba-header {
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 55%, #eff6ff 100%);
    border-color: #bbf7d0;
}

.live-lba-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #052e16;
    color: #86efac;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.live-lba-pulse {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    animation: live-lba-pulse 1.6s ease-out infinite;
}

@keyframes live-lba-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.live-lba-hint {
    font-size: 11px !important;
}

.live-lba-map-card {
    position: relative;
    height: 100%;
    min-height: 0;
}

.live-lba-map-toolbar {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 500;
    display: flex;
    gap: 6px;
    padding: 5px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #dbeafe;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.live-lba-tool {
    border: 0;
    background: transparent;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 9px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.live-lba-tool.active {
    background: #ecfdf5;
    color: #047857;
}

.live-lba-map-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 500;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(5, 46, 22, 0.9);
    color: #bbf7d0;
    font-size: 11px;
    font-weight: 800;
}

.live-lba-draw-hint {
    position: absolute;
    top: 56px;
    right: 12px;
    z-index: 500;
    max-width: 280px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.88);
    color: #ecfdf5;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    pointer-events: none;
}

.live-lba-draw-caption {
    display: block;
    margin-top: 6px;
    color: #64748b !important;
}

.live-lba-drawing,
.live-lba-drawing.leaflet-container {
    cursor: crosshair !important;
}

.live-lba-drawing .leaflet-interactive {
    cursor: crosshair !important;
}

.live-lba-mode-row,
.live-lba-radius-label,
.live-lba-refresh-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    color: #64748b;
    font-size: 11px;
}

.live-lba-radius-label strong {
    color: #0f172a;
    font-size: 12px;
}

.live-lba-side .map-side-section {
    border-right-color: #16a34a;
}

.live-lba-side .map-section-toggle span::before {
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}
