@media screen and (min-width: 1000px) {
    html,
    body {
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
    }

    body {
        display: grid !important;
        grid-template-rows: auto minmax(0, 1fr) auto !important;
        grid-template-columns: 1fr !important;
    }

    .header-main,
    .page-footer {
        flex-shrink: 0;
    }

    .homepage-wrapper {
        display: grid !important;
        grid-template-columns: 16rem minmax(0, 1fr) 18.5rem !important;
        grid-template-rows: minmax(0, 1fr) !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        align-items: stretch !important;
        gap: 0 !important;
        overflow: hidden !important;
    }

    .homepage-wrapper > #map-preloader,
    .homepage-wrapper > .modal {
        position: fixed !important;
        inset: 0;
        z-index: 9999;
    }

    #detailModal .modal-dialog {
        max-width: 100% !important;
        width: 100%;
        height: 100%;
        margin: 0;
    }
    #detailModal .modal-content {
        height: 100% !important;
        max-height: 100% !important;
        display: flex;
        flex-direction: column;
        border-radius: 0;
    }
    #detailModal .modal-header {
        flex-shrink: 0;
    }
    #detailModal .modal-body {
        flex: 1 1 auto;
        min-height: 0 !important;
        height: auto !important;
        overflow: hidden;
        padding: 0;
    }
    #detailModal .modal-body iframe {
        width: 100%;
        height: 100%;
        border: 0;
        display: block;
    }

    .page-sidebar,
    .page-content {
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        align-self: stretch !important;
        overflow: auto !important;
        box-sizing: border-box !important;
    }

    .page-map {
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        align-self: stretch !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .page-sidebar {
        display: flex !important;
        flex-direction: column;
        background-color: #fff;
    }

    .page-map {
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
    }

    .page-map > [aria-label="breadcrumb"] {
        flex-shrink: 0;
        background: #fff;
        padding: 0.35rem 0.5rem 0.25rem;
    }

    .coverage-map-wrapper {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: auto !important;
        margin-bottom: 0 !important;
    }

    .page-map #map,
    .page-map .leaflet-container {
        height: 100% !important;
        min-height: 0 !important;
    }

    .page-content {
        margin: 0 !important;
        background-color: #fff !important;
        border-left: 1px solid #E6E6E6;
        padding: 0.5rem 0.75rem !important;
    }
}

/* Remove click/focus outline box from map elements */
        .leaflet-container {
            outline: none !important;
        }

        .leaflet-container:focus {
            outline: none !important;
        }

        /* Remove focus outline from all map interactive elements */
        .leaflet-interactive {
            outline: none !important;
        }

        .leaflet-interactive:focus {
            outline: none !important;
        }

        /* Remove focus outline from map container children (keep tile overlap fix on images) */
        .leaflet-container * {
            -webkit-tap-highlight-color: transparent !important;
        }

        .leaflet-container *:not(img.leaflet-tile) {
            outline: none !important;
        }

        /* Reduce hairline gaps between adjacent district polygons */
        .page-map .leaflet-overlay-pane svg path,
        #export-map-canvas .leaflet-overlay-pane svg path {
            shape-rendering: geometricPrecision;
        }

        /* Remove any selection highlighting */
        .leaflet-container {
            -webkit-user-select: none !important;
            -moz-user-select: none !important;
            -ms-user-select: none !important;
            user-select: none !important;
        }

        /*    responsive for 1300px width*/
        @media screen and (max-width: 1300px) {
            #vaccine-selection-dropdown {
                display: block !important;
            }

            #vaccine-selection-radio {
                display: none !important;
            }
        }

        /* HTML: <div class="loader"></div> */
        .loader {
            width: 120px;
            height: 20px;
            background: linear-gradient(90deg, #0000, orange) left -50px top 0/50px 20px no-repeat lightblue;
            animation: l2 1s infinite linear;
        }

        @keyframes l2 {
            100% {
                background-position: right -50px top 0
            }
        }

        /* Responsive Ward Label Styles */
        .permanent-ward-label-marker {
            background: none !important;
            border: none !important;
            transition: opacity 0.3s ease, transform 0.2s ease;
        }

        .permanent-ward-label-marker .label-content {
            background: rgba(255, 255, 255, 0.7) !important;
            border: 1px solid rgba(0, 0, 0, 0.3) !important;
            border-radius: 4px !important;
            padding: 1px 3px !important;
            font-size: 11px !important;
            font-weight: bold !important;
            color: #333 !important;
            text-align: center !important;
            white-space: nowrap !important;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
            pointer-events: none !important;
            line-height: 1.2 !important;
        }

        .permanent-ward-label-marker:hover .label-content {
            background: rgba(255, 255, 255, 1) !important;
            transform: scale(1.1);
        }

        /* Hide labels on very low zoom for better performance */
        .leaflet-zoom-anim .permanent-ward-label-marker {
            transition: none !important;
        }

        /* Enhanced Map Label Styles */
        .map-label {
            background: none !important;
            border: none !important;
            box-shadow: none !important;
            font-size: 11px !important;
            color: #000000 !important;
            pointer-events: none !important;
            z-index: 1000 !important;
        }

        /* Epicenter Styles */
        .custom-map-pin {
            background: none !important;
            border: none !important;
        }

        .pin-container {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: 0.2s ease;
        }

        .pin-container svg {
            width: 32px;
            height: 32px;
            min-height: 55px;
            min-width: 55px;
        }

        /* Tooltip Styles */
        .epi-tooltip {
            background: white !important;
            border: 2px solid #0dcaf0 !important;
            border-radius: 8px !important;
            padding: 10px !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
            font-size: 14px !important;
        }

        .epi-popup {
            text-align: center;
            min-width: 150px;
        }

        .epi-type {
            font-weight: bold;
            font-size: 16px;
            color: #0dcaf0;
            margin-bottom: 5px;
            padding-bottom: 5px;
            border-bottom: 1px solid #eee;
        }

        .epi-name {
            color: #333;
            font-size: 14px;
        }

        .epicenter-popup {
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .epicenter-info {
            padding: 8px;
            line-height: 1.4;
        }

        .epicenter-tooltip {
            background: rgba(5, 202, 107, 0.9);
            color: white;
            border: none;
            border-radius: 4px;
            padding: 4px 8px;
            font-weight: bold;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .epicenter-tooltip::before {
            border-top-color: rgba(5, 202, 107, 0.9) !important;
        }

        .epicenter-detailed-tooltip {
            background: rgba(255, 255, 255, 0.95);
            color: #333;
            border: 2px solid #05ca6b;
            border-radius: 8px;
            padding: 8px 12px;
            font-size: 12px;
            line-height: 1.4;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            max-width: 250px;
            z-index: 9999;
        }

        .epicenter-detailed-tooltip .epicenter-info {
            margin: 0;
            padding: 0;
        }

        .epicenter-detailed-tooltip::before {
            border-top-color: #05ca6b !important;
        }

        /* Coverage Tooltip Styles */
        .coverage-tooltip {
            background: rgba(255, 255, 255, 0.95);
            color: #333;
            border: 1px solid #ccc;
            border-radius: 6px;
            padding: 8px 10px;
            font-size: 12px;
            line-height: 1.4;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
            max-width: 300px;
            z-index: 9999;
        }

        .coverage-tooltip strong {
            color: #2c3e50;
            font-weight: 600;
        }

        .coverage-tooltip em {
            color: #7f8c8d;
            font-style: italic;
            text-transform: capitalize;
        }

        /* Map Control Styles */
        .map-control-button {
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid #ccc;
            border-radius: 4px;
            padding: 8px 12px;
            margin: 2px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s ease;
        }

        .map-control-button:hover {
            background: rgba(255, 255, 255, 1);
            border-color: #05ca6b;
            color: #05ca6b;
        }

        /* Vaccine Stats Styles */
        .vaccine-stats {
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid #ddd;
            border-radius: 6px;
            padding: 10px;
            margin: 10px 0;
            font-size: 12px;
        }

        .vaccine-stats h4 {
            margin: 0 0 8px 0;
            color: #2c3e50;
            font-size: 14px;
        }

        .vaccine-stats .stat-item {
            display: flex;
            justify-content: space-between;
            margin: 4px 0;
            padding: 2px 0;
            border-bottom: 1px solid #eee;
        }

        .vaccine-stats .stat-item:last-child {
            border-bottom: none;
        }

        .vaccine-stats .stat-label {
            font-weight: 500;
            color: #34495e;
        }

        .vaccine-stats .stat-value {
            font-weight: 600;
            color: #27ae60;
        }

        /* Coverage Legend Styles */
        .coverage-legend {
            background: rgba(255, 255, 255, 0.95);
            border: 1px solid #ccc;
            border-radius: 6px;
            padding: 10px;
            font-size: 12px;
            line-height: 1.4;
        }

        .coverage-legend h4 {
            margin: 0 0 8px 0;
            font-size: 14px;
            color: #2c3e50;
        }

        .legend-item {
            display: flex;
            align-items: center;
            margin: 4px 0;
        }

        .legend-color {
            width: 20px;
            height: 15px;
            margin-right: 8px;
            border: 1px solid #999;
            border-radius: 2px;
        }

        .legend-label {
            color: #34495e;
            font-weight: 500;
        }

        /* Loader Styles */
        #loader {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 10000;
            background: rgba(255, 255, 255, 0.95);
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            border: 1px solid #ddd;
        }

        #loader::after {
            content: '';
            display: block;
            width: 40px;
            height: 40px;
            margin: 8px auto;
            border-radius: 50%;
            border: 4px solid #f3f3f3;
            border-top-color: #05ca6b;
            animation: spin 1s ease-in-out infinite;
        }

        #performance_table {
            th, td {
                font-size: 12px !important;
                padding: 2px 5px;
            }
        }

        #performance_table .perf-threshold {
            font-weight: 500;
            margin-left: 6px;
            opacity: 0.75;
            white-space: nowrap;
        }

        select {
            height: 38px;
            line-height: 25px !important;
        }

        .form-check {
            margin-bottom: 3px !important;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }
        #coverageChartHome {
            max-height: 350px !important;
            height: 300px !important;
        }
        /* Responsive Design */
        @media (max-width: 768px) {
            .permanent-ward-label-marker .label-content {
                font-size: 10px !important;
                padding: 1px 4px !important;
            }

            .coverage-tooltip {
                font-size: 11px;
                max-width: 250px;
            }

            .epicenter-detailed-tooltip {
                font-size: 11px;
                max-width: 200px;
            }

            .map-control-button {
                padding: 6px 10px;
                font-size: 12px;
            }
        }
        table {
            border: #000000 !important;
        }
        td, th {
            border: #000000 !important;
        }
        .card-header{
            background-color: #0389bd;
            color: #ffffff
        }

.sidebar-filter-area .export-map-btn,
.sidebar-filter-area .export-map-btn.active {
    grid-column: span 2;
    background: var(--theme-color) !important;
    background-image: none !important;
    color: #fff !important;
    border-color: var(--theme-color) !important;
}

.export-map-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(15, 23, 42, 0.55);
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.export-map-popup.is-open {
    display: flex !important;
}

.export-map-toolbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid #d0d5dd;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

.export-map-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.export-map-grid-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #f8fafc;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.export-map-grid-toggle input {
    margin: 0;
    cursor: pointer;
}

.export-map-view-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.export-map-zoom-btn {
    min-width: 34px;
    padding: 8px 10px;
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
}

.export-map-zoom-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.export-map-frame-adjustable {
    cursor: grab;
}

.export-map-frame-adjustable:active {
    cursor: grabbing;
}

.export-map-action {
    background: var(--theme-color, #0389bd);
    color: #fff;
    border: 0;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;
}

.export-map-action-close {
    background: #64748b;
}

.export-map-stage {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    background: #c5c9d1;
}

.export-map-paper {
    flex-shrink: 0;
    width: 210mm;
    height: 297mm;
    overflow: hidden;
    background: transparent;
}

.export-map-sheet {
    width: 210mm;
    height: 297mm;
    background: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: none;
    padding: 5px;
    transform-origin: top left;
}

.export-map-inner {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #111;
    padding: 10px;
    gap: 5px;
    box-sizing: border-box;
}

.export-map-map-box,
.export-map-info-box {
    box-sizing: border-box;
    border: 1px solid #111;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.export-map-info-box {
    overflow: hidden;
}

.export-map-map-box {
    flex: 5 1 0;
    position: relative;
    background: #fff;
}

.export-map-map-inset {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
}

.export-map-info-box {
    flex: 1 1 0;
}

.export-map-frame {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #c5c5c5;
}

#export-map-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.export-map-graticule {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    font-size: 9px;
    color: #111;
    font-family: Arial, sans-serif;
}

.export-map-graticule.is-hidden {
    display: none;
}

.export-map-tick {
    position: absolute;
    background: #111;
}

.export-map-tick-h {
    width: 8px;
    height: 1px;
}

.export-map-tick-v {
    width: 1px;
    height: 8px;
}

.export-map-tick-label {
    position: absolute;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.85);
    padding: 2px 3px;
    line-height: 1.2;
}

.export-map-tick-label-vertical {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    padding: 2px 3px;
    transform-origin: center center;
}

.export-map-tick-label-horizontal {
    text-align: center;
}

.export-map-footer {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.export-map-box {
    border-right: 1px solid #111;
    padding: 6px 8px;
    overflow: hidden;
    box-sizing: border-box;
    font-size: 8px;
    color: #111;
}

.export-map-box.export-map-box-legend {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.export-map-box:last-child {
    border-right: 0;
}

.export-map-box-id {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.export-map-gov-logo {
    display: block;
    width: 34px;
    height: auto;
    margin: 0 auto 3px;
}

.export-map-title {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
}

.export-map-subtitle {
    font-size: 7px;
    line-height: 1.25;
    text-align: center;
    margin: 0 0 4px;
    color: #333;
}

.export-map-box-id.export-meta-compact .export-map-gov-logo {
    width: 24px;
    margin: 0 auto 1px;
}

.export-map-box-id.export-meta-compact .export-map-title {
    font-size: 11px;
    margin-bottom: 1px;
    line-height: 1.1;
}

.export-map-box-id.export-meta-compact .export-map-subtitle {
    font-size: 6px;
    margin: 0 0 1px;
}

.export-map-box-id.export-meta-compact .export-map-meta th,
.export-map-box-id.export-meta-compact .export-map-meta td {
    padding: 1px 3px;
    font-size: 7px;
}

.export-map-meta {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 6px;
}

.export-map-meta th,
.export-map-meta td {
    border: 1px solid #333 !important;
    padding: 2px 4px;
    font-size: 8px;
    text-align: left;
}

.export-map-meta th {
    width: 38%;
    background: #f3f3f3;
    font-weight: 700;
}

.export-map-tagline {
    font-size: 7px;
    line-height: 1.25;
    margin: 0;
    color: #333;
}

.export-map-box-heading {
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

.export-map-box-locator .export-map-box-heading {
    text-align: center;
    width: 100%;
    margin-bottom: 2px;
}

.export-map-box-locator {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    padding: 5px 8px;
}

.export-index-map-wrap {
    position: relative;
    width: 78%;
    flex: 1 1 auto;
    min-height: 0;
}

#export-index-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: transparent;
    border: none;
}

.export-map-box-scale {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
    padding: 4px 9px 5px;
}

.export-map-compass {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    height: 42px;
    margin: 0;
    overflow: visible;
}

.export-map-compass canvas {
    display: block;
    width: 42px;
    height: 42px;
    margin: 0 auto;
}

.export-map-scale {
    width: 100%;
    text-align: center;
    margin: 0;
    flex: 0 0 auto;
}

.export-map-scale-bar {
    display: none;
}

.export-map-scale-line {
    width: 78%;
    margin: 0 auto;
    position: relative;
    height: 19px;
}

.export-map-scale-line .scale-baseline {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #333;
}

.export-map-scale-line .scale-tick {
    position: absolute;
    bottom: 0;
    width: 1px;
    height: 5px;
    background: #333;
}

.export-map-scale-line .scale-tick-label {
    position: absolute;
    bottom: 6px;
    font-size: 6px;
    color: #333;
    transform: translateX(-50%);
    white-space: nowrap;
}

.export-map-scale-line .scale-tick-label:first-of-type {
    transform: translateX(0);
}

.export-map-scale-line .scale-km {
    position: absolute;
    bottom: -1px;
    right: -12px;
    font-size: 6px;
    color: #333;
    font-style: italic;
}

.export-map-scale-label {
    font-size: 6px;
    min-height: 19px;
}

.export-map-scale-ratio {
    font-size: 7px;
    margin-top: 1px;
}

.export-map-partners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    flex: 0 0 31px;
}

.export-map-partners img {
    width: 30px;
    height: auto;
    max-height: 30px;
    object-fit: contain;
}

.export-map-partners img:last-child {
    width: 48px;
    max-height: 31px;
}

.export-map-developed-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 1px;
    font-size: 7px;
    color: #555;
    flex: 0 0 12px;
}

.export-map-developed-by img {
    width: 32px;
    height: auto;
    object-fit: contain;
}

.export-map-legend-items {
    margin-bottom: 2px;
}

.export-map-legend-items small {
    display: block;
    margin: 1px 0 2px;
    font-size: 7px;
    font-weight: 600;
}

.export-map-legend-items .epi-center-logo {
    margin-bottom: 2px;
}

.export-map-legend-items .legend-outreach,
.export-map-legend-items .fixed-center-logo {
    display: flex !important;
    align-items: center;
    gap: 3px;
    margin: 0 0 1px !important;
    font-size: 6.5px;
}

.export-map-legend-items .legend-outreach img,
.export-map-legend-items .fixed-center-logo img {
    width: 9px !important;
    height: 9px !important;
    object-fit: contain !important;
}

.export-map-legend-items .map-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 2px 0;
    font-size: 8px;
}

.export-map-legend-items .map-legend-item span {
    display: block;
    width: 10px;
    height: 10px;
    border: 1px solid #333;
}

.export-map-legend-items .map-legend-item.coverage-below-80 span {
    background-color: #FF4C4C;
}

.export-map-legend-items .map-legend-item.coverage-80 span {
    background-color: #F7931E;
}

.export-map-legend-items .map-legend-item.coverage-85 span {
    background-color: #EDED9D;
}

.export-map-legend-items .map-legend-item.coverage-90 span {
    background-color: #A6D96A;
}

.export-map-legend-items .map-legend-item.coverage-95 span {
    background-color: #2CA25F;
}

.export-map-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 3px 0;
    font-size: 8px;
}

.export-map-legend-epi,
.export-map-legend-line,
.export-map-legend-fill {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    border: 1px solid #333;
}

.export-map-legend-epi {
    border-radius: 50%;
    background: #d32f2f;
}

.export-map-legend-line {
    height: 0;
    border: 0;
    border-top: 2px dashed #111;
    background: none;
}

.export-map-legend-fill {
    background: #f2e6b8;
}

.export-map-tech {
    margin-top: 3px;
    padding-top: 2px;
    border-top: 1px solid #ccc;
    font-size: 6.5px;
    line-height: 1.25;
}

body.export-map-open {
    overflow: hidden;
}

.export-map-stats-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 600;
    display: flex;
    flex-direction: column;
    gap: 1mm;
    width: 58mm;
    max-width: calc(100% - 40px);
    pointer-events: none;
}

.export-stats-card {
    background-color: var(--theme-color, #0289bd);
    color: #fff;
    min-height: 16mm;
    padding: 2.2mm 13mm 2.2mm 3mm;
    display: block;
    box-sizing: border-box;
    border-radius: 2px;
    background-position: right 2.5mm top 2.5mm;
    background-repeat: no-repeat;
    background-size: 10.5mm auto;
}

.export-stats-divider {
    height: 2px;
    background: rgba(255,255,255,0.4);
    margin: 4px -8px;
}

.export-stats-card-text {
    min-width: 0;
}

.export-stats-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 0.8mm;
    white-space: nowrap;
}

.export-stats-value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1mm;
}

.export-stats-gender {
    display: flex;
    align-items: center;
    gap: 3mm;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.export-stats-gender > span {
    display: inline-flex;
    align-items: center;
    gap: 1.2mm;
    line-height: 1;
}

.export-stats-gender > span > span {
    display: inline;
    line-height: 1;
}

.export-stats-gender img {
    display: block;
    width: 4mm;
    height: 4mm;
    flex: 0 0 auto;
    object-fit: contain;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    html, body {
        width: 210mm !important;
        height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: #fff !important;
    }

    body > *:not(#export-map-popup) {
        display: none !important;
    }

    #export-map-popup {
        display: flex !important;
        position: fixed !important;
        inset: 0 !important;
        width: 210mm !important;
        height: 297mm !important;
        align-items: center !important;
        justify-content: center !important;
        background: none !important;
        padding: 0 !important;
        overflow: hidden !important;
        opacity: 1 !important;
    }

    .export-map-toolbar {
        display: none !important;
    }

    .export-map-stage {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 210mm !important;
        height: 297mm !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: none !important;
    }

    .export-map-paper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: none !important;
        padding: 0 !important;
        overflow: visible !important;
        box-shadow: none !important;
        border: 0 !important;
        width: 210mm !important;
        height: 297mm !important;
        margin: 0 !important;
    }

    .export-map-sheet {
        width: 200mm !important;
        height: 287mm !important;
        overflow: hidden !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        transform: none !important;
        border: none !important;
        padding: 4px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .leaflet-control-container {
        display: none !important;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}
