.azbce-wildfire {
    --azbce-accent: #fcb900;
    --azbce-accent-dark: #d39a00;
    --azbce-red: #c62828;
    --azbce-red-dark: #8e1414;
    --azbce-green: #2e7d32;
    --azbce-ink: #1f1f1f;
    --azbce-muted: #5f6368;
    --azbce-line: #e3e5e8;
    --azbce-bg: #f6f7f8;
    --azbce-card: #ffffff;
    --azbce-shadow: 0 8px 24px rgba(20, 20, 20, 0.06);
    box-sizing: border-box;
    color: var(--azbce-ink);
    font-family: inherit;
}

.azbce-wildfire *,
.azbce-wildfire *::before,
.azbce-wildfire *::after {
    box-sizing: border-box;
}

.azbce-toolbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}

.azbce-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--azbce-muted);
    margin-bottom: 6px;
}

.azbce-field select,
.azbce-field input,
.azbce-reset {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--azbce-line);
    border-radius: 10px;
    background: #fff;
    padding: 8px 12px;
    font: inherit;
    color: var(--azbce-ink);
}

.azbce-field select:focus,
.azbce-field input:focus {
    outline: 2px solid var(--azbce-accent);
    border-color: var(--azbce-accent);
}

.azbce-field select:disabled {
    background: #f1f3f4;
    color: #9aa0a6;
}

.azbce-field-search {
    position: relative;
}

.azbce-search-wrap {
    position: relative;
}

.azbce-search-results {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--azbce-line);
    border-radius: 10px;
    box-shadow: var(--azbce-shadow);
    max-height: 260px;
    overflow: auto;
}

.azbce-search-results li button {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 8px 12px;
    font: inherit;
    cursor: pointer;
}

.azbce-search-results li button:hover,
.azbce-search-results li button:focus {
    background: #fff6d6;
}

.azbce-search-meta {
    display: block;
    color: var(--azbce-muted);
    font-size: 12px;
}

.azbce-field-action {
    display: flex;
    align-items: flex-end;
}

.azbce-reset {
    cursor: pointer;
    font-weight: 700;
    background: var(--azbce-accent);
    border-color: var(--azbce-accent);
    color: #111;
}

.azbce-reset:hover {
    background: var(--azbce-accent-dark);
    border-color: var(--azbce-accent-dark);
    color: #111;
}

.azbce-updated {
    margin: 0 0 16px;
    color: var(--azbce-muted);
    font-size: 13px;
}

.azbce-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.azbce-stat {
    background: var(--azbce-card);
    border: 1px solid var(--azbce-line);
    border-top: 3px solid var(--azbce-accent);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--azbce-shadow);
}

.azbce-stat span {
    display: block;
    color: var(--azbce-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.azbce-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 26px;
    line-height: 1.1;
}

.azbce-dashboard {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
    align-items: stretch;
}

.azbce-card {
    background: var(--azbce-card);
    border: 1px solid var(--azbce-line);
    border-radius: 14px;
    padding: 12px;
    box-shadow: var(--azbce-shadow);
}

.azbce-dash-chart {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.azbce-dash-chart canvas {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
}

.azbce-table-card {
    margin-bottom: 12px;
}

.azbce-table-head h3 {
    margin: 4px 0 2px;
    font-size: 18px;
}

.azbce-table-head p {
    margin: 0 0 10px;
    color: var(--azbce-muted);
    font-size: 13px;
}

.azbce-table-wrap {
    overflow-x: auto;
}

.azbce-table {
    width: 100%;
    border-collapse: collapse;
}

.azbce-table th,
.azbce-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--azbce-line);
    vertical-align: middle;
}

.azbce-table th {
    font-size: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--azbce-muted);
}

.azbce-table tbody tr {
    cursor: pointer;
}

.azbce-table tbody tr:hover {
    background: #fff8e1;
}

.azbce-table tr.is-largest {
    background: #fff3cc;
}

.azbce-table tr.is-largest td:first-child {
    font-weight: 800;
}

.azbce-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--azbce-accent);
    color: #111;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.azbce-contain {
    min-width: 140px;
}

.azbce-contain-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.azbce-wildfire .marker-cluster-small,
.azbce-wildfire .marker-cluster-medium,
.azbce-wildfire .marker-cluster-large {
    background-color: rgba(252, 185, 0, 0.35);
}

.azbce-wildfire .marker-cluster div {
    background-color: #fcb900;
    color: #111;
    font-weight: 800;
}

.azbce-map {
    height: min(70vh, 720px);
    min-height: 420px;
    border-radius: 14px;
    overflow: hidden;
    z-index: 1;
}

.azbce-empty {
    padding: 18px;
    color: var(--azbce-muted);
}

.azbce-wildfire .fire-icon svg,
.azbce-wildfire .rx-icon svg {
    height: 25px;
    width: 25px;
    padding: 3px;
    border-radius: 50%;
}

.azbce-wildfire .fire-icon svg {
    background-color: red;
    border: 2px solid black;
}

.azbce-wildfire .rx-icon svg {
    background-color: green;
    border: 2px solid green;
    fill: white;
}

.azbce-popup h3 {
    font-size: 20px !important;
    font-weight: 700;
    color: red;
    margin: 0 0 8px;
}

.azbce-popup.rx-data h3 {
    color: green;
}

.azbce-popup h2 {
    font-size: 25px !important;
    font-weight: 900;
    margin: 0 0 6px;
}

.azbce-popup .containment {
    margin-top: 16px;
}

.azbce-popup .progress-container,
.azbce-contain .progress-container {
    width: 100%;
    background-color: #ddd;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
}

.azbce-popup .progress-bar,
.azbce-contain .progress-bar {
    height: 100%;
    background-color: var(--azbce-accent);
    transition: width 0.5s ease-in-out;
}

.azbce-impact {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
}

.azbce-impact .azbce-kpi {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    color: #c62828;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.azbce-impact .azbce-kpi span {
    line-height: 1;
}

.azbce-impact svg {
    width: 14px;
    height: 14px;
    display: block;
    margin: 0;
    fill: #c62828;
    flex-shrink: 0;
}

.azbce-chart-wrap {
    margin-top: 12px;
}

.azbce-chart-wrap h4 {
    margin: 0 0 6px;
    font-size: 13px;
}

.azbce-chart-frame {
    width: 240px;
    height: 110px;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.azbce-chart-frame canvas {
    display: block !important;
    width: 240px !important;
    height: 110px !important;
    max-width: 240px !important;
    max-height: 110px !important;
}

.leaflet-popup-content-wrapper {
    overflow: hidden !important;
}

.leaflet-popup-content {
    width: 280px !important;
    min-width: 260px;
    max-width: 280px;
    max-height: 320px;
    overflow: auto;
    margin: 12px 14px !important;
}

.azbce-popup a {
    color: var(--azbce-accent-dark);
}

@media screen and (max-width: 960px) {
    .azbce-toolbar,
    .azbce-stats,
    .azbce-dashboard {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 640px) {
    .azbce-toolbar,
    .azbce-stats,
    .azbce-dashboard {
        grid-template-columns: 1fr;
    }

    .azbce-map {
        height: 70vh;
        min-height: 320px;
    }
}
