.eq-home {
    min-height: 0;
    background: #f5f7fb;
    color: #172033;
}

.eq-home-shell {
    min-width: 0;
    min-height: 0;
}

.eq-home-menu {
    position: relative;
    flex: 0 0 280px;
    width: 280px;
    min-width: 280px;
    background: #172033;
    color: #f8fafc;
    box-shadow: 2px 0 18px rgba(18, 24, 38, 0.12);
    transition: flex-basis 180ms ease, width 180ms ease, min-width 180ms ease;
    z-index: 1000;
}

.eq-home-menu.is-collapsed {
    flex-basis: 44px;
    width: 44px;
    min-width: 44px;
}

.eq-home-menu-header {
    height: 58px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.eq-home-menu-title,
.eq-home-menu-group-label,
.eq-home-menu-item-text,
.eq-home-menu-item-badge,
.eq-home-menu-caret {
    opacity: 1;
    transition: opacity 130ms ease;
    white-space: nowrap;
}

.eq-home-menu.is-collapsed .eq-home-menu-title,
.eq-home-menu.is-collapsed .eq-home-menu-group-label,
.eq-home-menu.is-collapsed .eq-home-menu-item-text,
.eq-home-menu.is-collapsed .eq-home-menu-item-badge,
.eq-home-menu.is-collapsed .eq-home-menu-caret,
.eq-home-menu.is-collapsed .eq-home-menu-children {
    opacity: 0;
    pointer-events: none;
}

.eq-home-menu-toggle {
    position: absolute;
    top: 5px;
    right: -18px;
    width: 36px;
    height: 48px;
    border: 0;
    border-radius: 0 12px 12px 0;
    background: #2f7d68;
    color: #fff;
    box-shadow: 4px 4px 14px rgba(18, 24, 38, 0.18);
    display: grid;
    place-items: center;
    transition: background-color 140ms ease;
}

.eq-home-menu-toggle:hover {
    background: #256b59;
}

.eq-home-menu-toggle i {
    transition: transform 180ms ease;
}

.eq-home-menu.is-collapsed .eq-home-menu-toggle i {
    transform: rotate(180deg);
}

.eq-home-menu-scroll {
    overflow: hidden auto;
    min-height: 0;
}

.eq-home-menu-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.eq-home-menu-group-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: #9fb0c4;
}

.eq-home-menu-item {
    min-height: 42px;
    color: #dfe7f1;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 140ms ease, color 140ms ease;
}

.eq-home-menu-item:hover,
.eq-home-menu-item.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.eq-home-menu-icon {
    width: 26px;
    min-width: 26px;
    text-align: center;
    color: #68c2ad;
}

.eq-home-menu-item-badge {
    background: rgba(104, 194, 173, 0.18);
    color: #b9efe2;
    border-radius: 999px;
    font-size: 0.72rem;
}

.eq-home-menu-children {
    margin-left: 40px;
    transition: opacity 130ms ease;
}

.eq-home-menu-child {
    min-height: 34px;
    color: #b8c4d3;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.92rem;
}

.eq-home-menu-child:hover,
.eq-home-menu-child.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.eq-home-content {
    min-width: 0;
    min-height: 0;
    transition: margin-left 180ms ease;
}

.eq-home-content-loader {
    min-width: 0;
    min-height: 0;
}

.eq-map {
    min-width: 0;
    min-height: 0;
    background: #eef3f8;
    overflow: hidden;
}

.eq-map-main {
    min-width: 0;
    min-height: 0;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.eq-map-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.eq-map .leaflet-container {
    z-index: 0;
}

.eq-map-side {
    position: relative;
    flex: 0 0 320px;
    width: 320px;
    min-width: 320px;
    min-height: 0;
    background: #fff;
    border-left: 1px solid #d9e1eb;
    box-shadow: -8px 0 18px rgba(23, 32, 51, 0.08);
    transition: flex-basis 180ms ease, width 180ms ease, min-width 180ms ease;
    z-index: 2;
}

.eq-map-side.is-collapsed {
    flex-basis: 44px;
    width: 44px;
    min-width: 44px;
}

.eq-map-side-header {
    min-height: 58px;
    padding: 0 0.9rem;
    border-bottom: 1px solid #e4eaf1;
}

.eq-map-side-title {
    min-width: 0;
    color: #172033;
    opacity: 1;
    transition: opacity 130ms ease;
}

.eq-map-side-title small {
    color: #657386;
}

.eq-map-side-toggle {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 6px;
    background: #2f7d68;
    color: #fff;
    display: grid;
    place-items: center;
    transition: background-color 140ms ease;
}

.eq-map-side-toggle:hover {
    background: #256b59;
}

.eq-map-side-toggle i {
    transition: transform 180ms ease;
}

.eq-map-side.is-collapsed .eq-map-side-toggle i {
    transform: rotate(180deg);
}

.eq-map-side-content {
    min-height: 0;
    overflow: hidden auto;
    padding: 1rem;
    opacity: 1;
    transition: opacity 130ms ease;
}

.eq-map-side.is-collapsed .eq-map-side-title,
.eq-map-side.is-collapsed .eq-map-side-content {
    opacity: 0;
    pointer-events: none;
}

.eq-map-side.is-collapsed .eq-map-side-header {
    padding: 0 5px;
}

.eq-map-filter-section {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e8edf3;
}

.eq-map-filter-section h2 {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #516070;
    text-transform: uppercase;
}

.eq-map-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 34px;
    color: #2f3a49;
}

.eq-map-layer-options {
    padding: 0.35rem 0 0.65rem 1.65rem;
}

.eq-map-loading {
    width: 22px;
    min-width: 22px;
    color: #2f7d68;
    text-align: center;
}

.eq-map-energy-scale {
    margin-top: 0.55rem;
    padding-right: 0.15rem;
}

.eq-map-energy-scale-title {
    margin-bottom: 0.3rem;
    color: #516070;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.eq-map-energy-scale-bar {
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(90deg, #236fa1 0%, #f2c453 50%, #d03f44 100%);
    box-shadow: inset 0 0 0 1px rgba(23, 32, 51, 0.12);
}

.eq-map-energy-scale-labels {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.25rem;
    color: #657386;
    font-size: 0.74rem;
}

.eq-map-day-filter {
    margin-top: 0.25rem;
    padding: 0.5rem 0.6rem;
    border: 1px solid #e1e7ef;
    border-radius: 0.45rem;
    background: #f8fafc;
}

.eq-map-day-filter-title,
.eq-map-day-filter-count,
.eq-map-day-filter-range {
    color: #657386;
    font-size: 0.74rem;
}

.eq-map-forecast-legend {
    display: grid;
    gap: 0.15rem;
    margin-bottom: 0.45rem;
    color: #657386;
    font-size: 0.7rem;
}

.eq-map-forecast-list {
    max-height: 300px;
    overflow: auto;
    border: 1px solid #e1e7ef;
    border-radius: 0.45rem;
    background: #fff;
}

.eq-map-forecast-item {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    background: transparent;
    color: #2f3a49;
    text-align: left;
}

.eq-map-forecast-item:last-child { border-bottom: 0; }
.eq-map-forecast-item:hover { background: #f2f7f5; }
.eq-map-forecast-item.is-selected { background: #e4f5f2; box-shadow: inset 3px 0 #2f7d68; }
.eq-map-forecast-item .forecast-meta { color: #657386; font-size: 0.72rem; }
.eq-map-forecast-item .forecast-prob { color: #2f7d68; font-weight: 700; }
.eq-map-forecast-item .forecast-location { margin-top: 0.2rem; color: #3f4b5a; font-size: 0.74rem; line-height: 1.25; }
.eq-map-forecast-item .forecast-details { margin-top: 0.35rem; padding: 0; border: 0; background: transparent; color: #2f7d68; font-size: 0.74rem; font-weight: 700; }
.eq-map-forecast-item .forecast-details:hover { text-decoration: underline; }

.eq-map-day-filter-title {
    font-weight: 700;
}

.eq-map-day-filter-count {
    white-space: nowrap;
}

.eq-map-day-filter .form-range {
    display: block;
    min-width: 0;
    margin: 0;
}

.eq-map-month-slider {
    margin: 0.35rem 0 0.2rem;
}

.eq-map-month-arrow {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid #ccd5e1;
    border-radius: 50%;
    background: #fff;
    color: #516070;
    font-size: 0.7rem;
}

.eq-map-month-arrow:hover:not(:disabled) {
    border-color: #2f7d68;
    color: #2f7d68;
}

.eq-map-month-arrow:disabled {
    opacity: 0.4;
}

.eq-map-day-filter-range {
    min-height: 1rem;
    text-align: center;
}

.eq-processes {
    min-width: 0;
    background: #f7f9fc;
}

.eq-processes-header {
    background: #fff;
}

.eq-processes-title h1 {
    color: #172033;
}

.eq-processes-filters .form-label {
    color: #516070;
}

.eq-processes-summary {
    background: #fff;
}

.eq-processes-workarea {
    min-height: 0;
    background: #fff;
}

.eq-processes-executions {
    flex: 0 0 520px;
    width: 520px;
    min-width: 320px;
    min-height: 0;
    overflow: auto;
    background: #fff;
}

.eq-processes-log {
    min-height: 0;
    background: #fff;
}

.eq-processes-table-head {
    position: sticky;
    top: 0;
    background: #eef3f8;
    z-index: 1;
}

.eq-log-level {
    display: inline-block;
    min-width: 70px;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    background: #e8edf3;
    color: #445163;
}

.eq-log-level-debug {
    background: #eceff3;
    color: #536071;
}

.eq-log-level-info {
    background: #dff3ec;
    color: #236c58;
}

.eq-log-level-warning {
    background: #fff1d6;
    color: #8a5a00;
}

.eq-log-level-error {
    background: #ffe1e1;
    color: #9b1c1c;
}

.eq-log-detail {
    max-height: 110px;
    overflow: auto;
    white-space: pre-wrap;
    font-size: 0.78rem;
    color: #4c5969;
}

.eq-execution-row {
    cursor: pointer;
}

.eq-execution-row.is-selected {
    --bs-table-bg: #e8f2ff;
    --bs-table-hover-bg: #e1eefc;
}

.eq-execution-status {
    font-size: 1rem;
}

.eq-execution-status-pendiente {
    color: #7d8997;
}

.eq-execution-status-ejecutando {
    color: #2f7d68;
}

.eq-execution-status-deteniendo,
.eq-execution-status-warning {
    color: #8a5a00;
}

.eq-execution-status-ok {
    color: #236c58;
}

.eq-execution-status-error {
    color: #9b1c1c;
}

.eq-execution-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.eq-execution-action {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    display: inline-grid;
    place-items: center;
    line-height: 1;
}

.eq-execution-action:hover {
    background: rgba(23, 32, 51, 0.08);
}

.eq-execution-refresh {
    color: #2f7d68;
    text-decoration: none;
}

.eq-execution-stop {
    color: #9b1c1c;
    text-decoration: none;
}

.eq-execution-delete {
    color: #596579;
    text-decoration: none;
}

@media (max-width: 992px) {
    .eq-processes-workarea {
        flex-direction: column;
    }

    .eq-processes-executions {
        flex: 0 0 260px;
        width: 100%;
        min-width: 0;
        border-right: 0 !important;
        border-bottom: 1px solid #dee2e6;
    }
}
