/* 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 and all child elements */
        .leaflet-container,
        .leaflet-container * {
            outline: none !important;
            -webkit-tap-highlight-color: transparent !important;
        }

        /* 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;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        #coverageChartHome {
            max-height: 322px !important;
            height: 322px !important;
        }

        .total-session-label {
            padding: 5px;
            text-align: center;
            background: #24a7ff;
            border-radius: 5px;
            color: white;
            font-weight: bold;
        }

        /* 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
        }

        .print-btn {
            background-color: var(--theme-color);
            color: #fff;
            border-color: var(--theme-color);
            background-position: -100%;
            padding: 10px 15px;
            text-decoration: none;
            border-radius: 5px;
            grid-column: span 2;
            text-align: center
        }

        .print-footer {
            display: none;
        }

        /* Print Summary Styles - Hidden on screen, shown on print */
        .print-summary {
            display: none;
        }

        .print-info-panel {
            display: none;
        }

        /* hide on print  */
        @media print {
            @page {
                size: A4 portrait;
                margin: 5mm;
            }

            /* Hide elements */
            .page-sidebar,
            .header-button,
            .sidebar-filter-area,
            .map-controller,
            .map-type-selection,
            #map-expand-trigger,
            #map-preloader,
            .hideOnPrint,
            .print-summary {
                display: none !important;
            }

            /* Show print info panel */
            .print-info-panel {
                display: block !important;
                page-break-inside: avoid;
            }

            /* Layout adjustments */
            .page-content {
                margin: 0 !important;
                padding: 0 !important;
                width: 100% !important;
            }

            .page-map {
                display: flex;
                flex-direction: column;
                height: 100vh;
                width: 100%;
            }

            .homepage-wrapper {
                background: #ffffff !important;
            }

            html, body {
                background: #ffffff !important;
                height: 100%;
                margin: 0;
                padding: 0;
                overflow: hidden;
            }

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

            /* Hide breadcrumb on print */
            #map-navigator {
                display: none !important;
            }

            /* Map container - large at top */
            .coverage-map-wrapper {
                flex: 1;
                position: relative;
                border: 2px solid #333 !important;
                width: 100% !important;
                max-width: 100% !important;
                overflow: hidden !important;
            }

            /* Hide snapshot - use live map instead */
            #map-print-snapshot {
                display: none !important;
            }

            #map {
                width: 100% !important;
                height: 100% !important;
                max-width: 100% !important;
                overflow: hidden !important;
                position: relative !important;
            }

            .leaflet-container {
                width: 100% !important;
                height: 100% !important;
                max-width: 100% !important;
                overflow: hidden !important;
            }

            /* Print Info Panel - Bottom section - REDUCED HEIGHT */
            .print-info-panel {
                margin-top: 3mm !important;
                padding: 5px !important;
                background: white !important;
                border: 2px solid #333 !important;
                page-break-inside: avoid;
                display: grid !important;
                grid-template-columns: 1fr 1fr 1fr !important;
                gap: 6px !important;
                min-height: 60mm !important; /* Reduced from 80mm */
                max-height: 60mm !important;
            }

            /* Left section - Logo and Title */
            .print-info-left {
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: flex-start !important;
                padding: 5px !important;
                border-right: 1px solid #ddd !important;
            }

            .print-logo {
                width: auto !important; /* Reduced from 60px */
                height: 45px !important;
                margin-bottom: 4px !important;
            }

            .print-title {
                font-size: 10px !important; /* Reduced from 11px */
                font-weight: bold !important;
                text-align: center !important;
                margin-bottom: 6px !important;
                line-height: 1.2 !important;
            }

            .print-metadata-table {
                width: 100% !important;
                font-size: 8px !important; /* Reduced from 9px */
                border-collapse: collapse !important;
            }

            .print-metadata-table td {
                padding: 2px 4px !important; /* Reduced padding */
                border: 1px solid #ddd !important;
            }

            .print-metadata-table td:first-child {
                font-weight: bold !important;
                background: #f5f5f5 !important;
                width: 40% !important;
            }

            .print-tech-info {
                margin-top: 4px !important;
                font-size: 6px !important; /* Reduced from 7px */
                line-height: 1.3 !important;
                color: #666 !important;
            }

            /* Center section - Location Map */
            .print-info-center {
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                padding: 5px !important;
                border-right: 1px solid #ddd !important;
            }

            .print-location-title {
                font-size: 10px !important; /* Reduced from 12px */
                font-weight: bold !important;
                margin-bottom: 4px !important;
            }

            .print-location-map {
                width: 80% !important;
                max-width: 70px !important; /* Reduced from 150px */
                height: auto !important;
                border: 1px solid #333 !important;
                margin-bottom: 4px !important;
            }

            .print-compass {
                margin: 4px 0 !important;
            }

            .print-scale {
                font-size: 7px !important; /* Reduced from 8px */
                text-align: center !important;
            }

            /* Right section - Legend */
            .print-info-right {
                display: flex !important;
                flex-direction: column !important;
                padding: 5px !important;
            }

            .print-legend-title {
                font-size: 10px !important; /* Reduced from 12px */
                font-weight: bold !important;
                margin-bottom: 4px !important;
            }

            .print-legend-item {
                display: flex !important;
                align-items: center !important;
                margin: 3px 0 !important; /* Reduced from 4px */
                font-size: 8px !important; /* Reduced from 9px */
            }

            .print-legend-icon {
                width: 16px !important; /* Reduced from 20px */
                height: 12px !important; /* Reduced from 15px */
                margin-right: 5px !important;
                border: 1px solid #666 !important;
                flex-shrink: 0 !important;
            }

            /* EPI marker icon - pin shape */
            .print-legend-icon.epi-marker {
                width: 12px !important;
                height: 16px !important;
                background: #ff0000 !important;
                border-radius: 50% 50% 50% 0 !important;
                transform: rotate(-45deg) !important;
                border: none !important;
                position: relative !important;
            }

            .print-legend-icon.epi-marker::after {
                content: '' !important;
                width: 6px !important;
                height: 6px !important;
                background: white !important;
                border-radius: 50% !important;
                position: absolute !important;
                top: 3px !important;
                left: 3px !important;
            }

            .print-coord-info {
                margin-top: auto !important;
                padding-top: 4px !important;
                border-top: 1px solid #ddd !important;
                font-size: 6px !important; /* Reduced from 7px */
                line-height: 1.3 !important;
            }

            .print-partners {
                display: flex !important;
                justify-content: space-around !important;
                align-items: center !important;
                margin-top: 4px !important;
                padding-top: 4px !important;
                border-top: 1px solid #ddd !important;
            }

            .print-partner-logo {
                height: 20px !important; /* Reduced from 25px */
                width: auto !important;
            }

            /* Print footer */
            .print-footer {
                display: none !important;
            }
        }

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