* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #4a90e2;
    --accent-color: #f39c12;
    --success-color: #27ae60;
    --text-color: #333;
    --bg-color: #f5f7fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

/* Navigation */
.nav {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Sections */
section {
    padding: 32px 0;
}

.section-title {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

/* Introduction Section */
.introduction-section {
    background-color: var(--white);
}

.intro-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.intro-text p {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 1.05em;
}

.intro-features {
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.intro-features h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.intro-features ul {
    list-style: none;
}

.intro-features li {
    padding: 8px 0;
    color: #555;
}

/* Zones Overview */
.zones-overview {
    margin-top: 40px;
}

.zones-overview h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.zone-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.zone-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.zone-card h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3em;
}

.zone-card .fill-rate {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.fill-rate-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #666;
}

.fill-rate-bar {
    height: 25px;
    background-color: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.fill-rate-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color) 0%, #2ecc71 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 0.85em;
    transition: width 0.5s ease;
}

/* Map Section */
.map-section {
    background-color: var(--bg-color);
}

.map-container {
    border-radius: 10px;
    overflow: visible;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    height: 600px;
    margin-top: 20px;
    position: relative;
}

/* Map Search Container */
.map-search-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1001;
    width: 400px;
    max-width: calc(100% - 40px);
}

.search-box {
    display: flex;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 1em;
    font-family: inherit;
}

.search-btn {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: var(--secondary-color);
}

/* Search Results */
.search-results {
    margin-top: 10px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    max-height: 400px;
    overflow-y: auto;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-results-header span {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95em;
}

.close-results-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-results-btn:hover {
    background-color: rgba(0,0,0,0.1);
    color: var(--text-color);
}

.search-results-list {
    padding: 0;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: var(--bg-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-text {
    color: var(--text-color);
    font-size: 0.95em;
    line-height: 1.5;
}

.search-result-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 0.9em;
}

.map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    min-width: 200px;
}

.map-legend h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1em;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    margin-right: 10px;
    border: 1px solid rgba(0,0,0,0.2);
}

#map {
    width: 100%;
    height: 100%;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--white);
    margin: 2% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 15px 20px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: var(--text-color);
}

#zone-details {
    padding: 30px;
}

.zone-detail-header {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.zone-detail-header h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 10px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    color: var(--primary-color);
    font-size: 1.4em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.detail-item {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.detail-item::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.detail-item strong {
    color: var(--text-color);
    margin-right: 5px;
}

.incentive-list {
    list-style: none;
    padding-left: 0;
}

.incentive-list li {
    padding: 10px;
    margin-bottom: 8px;
    background-color: var(--bg-color);
    border-left: 4px solid var(--accent-color);
    border-radius: 5px;
}

.legal-docs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.legal-doc-item {
    background-color: var(--bg-color);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}

.legal-doc-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.plot-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* Leaflet Layer Control Styling */
.leaflet-control-layers {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    padding: 10px;
}

.leaflet-control-layers-overlays {
    margin-top: 10px;
}

.leaflet-control-layers-overlays label {
    display: flex;
    align-items: center;
    padding: 5px 0;
    cursor: pointer;
    font-size: 14px;
}

.leaflet-control-layers-overlays input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

/* VR360 Iframe Modal */
.iframe-modal-content {
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    padding: 0;
}

.iframe-container {
    width: 100%;
    height: 100%;
    position: relative;
    padding: 50px 0 0 0;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 10px 10px;
}

.iframe-close {
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 10;
    color: var(--white);
    background: rgba(0, 0, 0, 0.5);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.iframe-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .intro-content {
        grid-template-columns: 1fr;
    }
    
    .zones-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .map-container {
        height: 400px;
    }
    
    .map-legend {
        bottom: 10px;
        right: 10px;
        padding: 10px;
        min-width: 150px;
        font-size: 0.85em;
    }
    
    .legend-color {
        width: 15px;
        height: 15px;
    }
    
    .iframe-modal-content {
        width: 98%;
        height: 95vh;
    }
    
    .iframe-container {
        padding: 40px 0 0 0;
    }
    
    .iframe-close {
        top: 5px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
}

/* =====================
   IOC HẠ TẦNG ĐÔ THỊ
   ===================== */

.ioc-section {
    background-color: var(--white);
}

/* IOC layout: cố gắng fit trong 1 màn hình trên desktop */
.ioc-dashboard-container {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.ioc-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.ioc-kpi-row {
    display: grid;
    grid-template-columns: 2fr 1.1fr;
    gap: 20px;
    align-items: stretch;
    margin-top: 10px;
}

.ioc-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 30px 0 40px;
}

.ioc-kpi-card {
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 20px 22px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.ioc-kpi-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.1em;
}

.ioc-kpi-main {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.ioc-kpi-value {
    font-size: 2em;
    font-weight: 700;
    color: var(--secondary-color);
}

.ioc-kpi-label {
    font-size: 0.95em;
    color: #666;
}

.ioc-kpi-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ioc-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8em;
    font-weight: 500;
    background-color: #e5e7eb;
    color: #374151;
}

.ioc-tag.success {
    background-color: rgba(46, 204, 113, 0.15);
    color: #1e8449;
}

.ioc-tag.warning {
    background-color: rgba(243, 156, 18, 0.15);
    color: #b9770e;
}

.ioc-tag.danger {
    background-color: rgba(231, 76, 60, 0.15);
    color: #c0392b;
}

.ioc-tag.info {
    background-color: rgba(52, 152, 219, 0.15);
    color: #21618c;
}

.ioc-tag.neutral {
    background-color: rgba(149, 165, 166, 0.2);
    color: #566573;
}

.ioc-tag.accent {
    background-color: rgba(155, 89, 182, 0.15);
    color: #7d3c98;
}

/* KPI mini charts */
.ioc-kpi-charts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ioc-mini-chart-card {
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.ioc-mini-chart-card h4 {
    font-size: 0.9em;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.ioc-stacked-bar {
    display: flex;
    height: 22px;
    border-radius: 999px;
    overflow: hidden;
    background-color: #ecf0f1;
    font-size: 0.75em;
    color: #fff;
}

.ioc-stacked-bar .segment {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.ioc-stacked-bar .segment.success {
    background-color: #27ae60;
}

.ioc-stacked-bar .segment.warning {
    background-color: #f39c12;
}

.ioc-stacked-bar .segment.danger {
    background-color: #e74c3c;
}

.ioc-gauge {
    position: relative;
    height: 26px;
    background: #ecf0f1;
    border-radius: 13px;
    overflow: hidden;
}

.ioc-gauge .gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.ioc-gauge .gauge-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: #145a32;
    font-weight: 600;
}

.ioc-progress .progress-bar {
    background: #ecf0f1;
    border-radius: 999px;
    overflow: hidden;
    height: 22px;
}

.ioc-progress .progress-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    color: #7f3b02;
}

.ioc-progress .progress-fill.warning {
    background: linear-gradient(90deg, #f39c12, #d68910);
}

/* Bố cục bảng + biểu đồ trong panel */
.ioc-metrics-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 10px;
}

.ioc-metrics-row + .ioc-metrics-row {
    margin-top: 8px;
}

.ioc-metrics-col {
    min-width: 0;
}

.ioc-metrics-col-chart h4 {
    margin-top: 0;
}

/* Biểu đồ thanh ngang */
.chart-horizontal-bars {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
}

.chart-bar-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 6px;
    font-size: 0.8em;
    margin-bottom: 6px;
}

.chart-bar-row:last-child {
    margin-bottom: 0;
}

.chart-bar-label {
    white-space: nowrap;
}

.chart-bar-track {
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.chart-bar-fill {
    height: 100%;
    border-radius: inherit;
}

.chart-bar-fill.success {
    background: #27ae60;
}

.chart-bar-fill.warning {
    background: #f39c12;
}

.chart-bar-fill.danger {
    background: #e74c3c;
}

.chart-bar-fill.info {
    background: #3498db;
}

.chart-bar-value {
    font-weight: 600;
}

/* Biểu đồ cột dọc */
.chart-columns {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 8px;
    background: #f8f9fb;
    border-radius: 10px;
    padding: 10px 8px 6px;
    border: 1px solid var(--border-color);
    height: 120px;
}

.chart-col {
    flex: 1;
    min-width: 0;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.chart-col-bar {
    display: block;
    width: 100%;
    max-width: 18px;
    margin: 0 auto;
    border-radius: 6px 6px 2px 2px;
    background: #4a90e2;
}

.chart-col-bar.success {
    background: #27ae60;
}

.chart-col-bar.warning {
    background: #f39c12;
}

.chart-col-bar.danger {
    background: #e74c3c;
}

.chart-col-bar.neutral {
    background: #95a5a6;
}

.chart-col-label {
    font-size: 0.7em;
    margin-top: 4px;
}

/* Donut chart đơn giản */
.chart-donut-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fb;
    border-radius: 10px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
}

.chart-donut {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background:
        conic-gradient(#27ae60 0 65%, #f39c12 65% 90%, #e74c3c 90% 100%);
    position: relative;
}

.chart-donut::after {
    content: "";
    position: absolute;
    inset: 9px;
    background: #f8f9fb;
    border-radius: 50%;
}

.chart-donut-center {
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    font-weight: 600;
    color: #2c3e50;
}

.chart-donut-legend {
    font-size: 0.75em;
}

.chart-donut-legend div {
    margin-bottom: 2px;
}

.chart-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.chart-dot.success {
    background: #27ae60;
}

.chart-dot.warning {
    background: #f39c12;
}

.chart-dot.danger {
    background: #e74c3c;
}

/* Line chart đơn giản (điện năng) */
.chart-line-card {
    background: #f8f9fb;
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
}

.chart-line-legend {
    font-size: 0.75em;
    margin-top: 6px;
    color: #555;
}

.chart-line {
    position: relative;
    width: 100%;
    height: 120px;
    background: linear-gradient(to top, rgba(52, 152, 219, 0.18), rgba(52, 152, 219, 0));
    border-radius: 6px;
    overflow: hidden;
}

.chart-line-grid {
    position: absolute;
    inset: 8px 4px 16px 4px;
    border-left: 1px solid #dde1e4;
    border-bottom: 1px solid #dde1e4;
}

.chart-line-path {
    position: absolute;
    inset: 12px 8px 24px 8px;
    background: linear-gradient(90deg, rgba(52, 152, 219, 0.55), rgba(52, 152, 219, 0.1));
    clip-path: polygon(
        0% 55%,
        10% 52%,
        20% 50%,
        30% 47%,
        40% 45%,
        50% 43%,
        60% 44%,
        70% 46%,
        80% 49%,
        90% 52%,
        100% 55%,
        100% 100%,
        0% 100%
    );
    border-bottom: 1px solid rgba(46, 204, 113, 0.6);
}

.chart-line-points {
    position: absolute;
    inset: 12px 8px 24px 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.chart-line-point {
    position: relative;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2980b9;
}

.chart-line-point::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 2px solid rgba(41, 128, 185, 0.55);
}

.chart-line-xlabels {
    position: absolute;
    bottom: 2px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 0.7em;
    color: #777;
}

/* Collapse bảng số liệu */
.ioc-collapse {
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    overflow: hidden;
}

.ioc-collapse-header {
    width: 100%;
    padding: 8px 12px;
    background-color: #f4f6f7;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 500;
    color: var(--primary-color);
}

.ioc-collapse-header span {
    pointer-events: none;
}

.ioc-collapse-icon {
    font-weight: 600;
    font-size: 1em;
}

.ioc-collapse-body {
    display: none;
    padding: 8px 10px 10px;
}

.ioc-collapse.open .ioc-collapse-body {
    display: block;
}

/* Nhỏ gọn hơn trên mobile */
@media (max-width: 768px) {
    .ioc-metrics-row {
        grid-template-columns: 1fr;
    }
}

.ioc-panels-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.4fr 1.2fr;
    gap: 24px;
}

.ioc-panel {
    background-color: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ioc-panel-header {
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(44,90,160,0.95), rgba(74,144,226,0.9));
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.ioc-panel-header h3 {
    font-size: 1.05em;
    font-weight: 600;
}

.ioc-panel-badge {
    font-size: 0.8em;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    white-space: nowrap;
}

.ioc-panel-badge.accent {
    background-color: rgba(243, 156, 18, 0.25);
    border-color: rgba(252, 243, 207, 0.8);
}

.ioc-panel-body {
    padding: 18px 18px 20px;
}

.ioc-panel-body h4 {
    margin: 10px 0 8px;
    font-size: 0.95em;
    color: var(--primary-color);
}

.ioc-two-col {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr;
    gap: 16px;
    margin-bottom: 12px;
}

.ioc-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    font-size: 0.85em;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.ioc-table th,
.ioc-table td {
    padding: 6px 8px;
    border-bottom: 1px solid #ecf0f1;
}

.ioc-table th {
    background-color: #f4f6f7;
    text-align: left;
    font-weight: 600;
    color: #555;
}

.ioc-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.ioc-table tbody tr:last-child td {
    border-bottom: none;
}

.ioc-table-sub {
    margin-top: 6px;
}

.ioc-table-compact th,
.ioc-table-compact td {
    padding: 4px 6px;
    font-size: 0.8em;
}

/* Embedded GIS map on IOC page */
.embedded-map-container {
    margin-top: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.16);
    border: 1px solid var(--border-color);
    height: calc(100vh - 160px);
}

.embedded-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 1200px) {
    .ioc-kpi-row {
        grid-template-columns: 1fr;
    }

    .ioc-kpi-charts {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 992px) {
    .ioc-panels-grid {
        grid-template-columns: 1fr;
    }

    .ioc-two-col {
        grid-template-columns: 1fr;
    }

    .embedded-map-container {
        height: calc(100vh - 180px);
    }
}

@media (max-width: 768px) {
    .ioc-kpi-grid {
        grid-template-columns: 1fr;
    }

    .ioc-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .embedded-map-container {
        height: calc(100vh - 200px);
    }
}
