/* ===== components/buttons.css ===== */
/* region ----------------------------- Botones -- */
.e-button,
.a-button {
    display: flex;
    flex-direction: row;
    gap: 6px;
    width: fit-content;
    justify-content: center;
    align-items: center;
    border-radius: 10px !important;
    color: var(--buttonTextColor) !important;
    background-color: var(--buttonBgColor) !important;
    border: none !important;
    opacity: 1 !important;
    font-size: 14px;
    min-height: 40px;
    padding: 4px 12px;
}
.e-button:hover,
.a-button:hover {
    background-color: var(--buttonHoverBgColor) !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}
.e-button.-disabled,
.a-button.-disabled {
    background-color: var(--buttonHoverBgColor) !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.4 !important;
}

/* region ----------------------------- Primary -- */
.e-button.-primary,
.a-button.-primary {
    --buttonBgColor: #237e54;
    --buttonHoverBgColor: #12402b;
    --buttonTextColor: #ffffff;
}
.e-button.-secondary,
.a-button.-secondary {
    --buttonBgColor: #f3f4f6;
    --buttonHoverBgColor: #e2e4e9;
    --buttonTextColor: #364153;
}
.e-button.-tertiary,
.a-button.-transparent,
.a-button.-tertiary {
    --buttonBgColor: transparent;
    --buttonHoverBgColor: rgba(0, 0, 0, 0.06);
    --buttonTextColor: #4a5565;
}
.e-button.-ghost,
.a-button.-ghost {
    --buttonBgColor: #dcfce7;
    --buttonHoverBgColor: #b2ffcc;
    --buttonTextColor: #237e54;
}
.e-button.-danger,
.a-button.-danger {
    --buttonBgColor: #fbefef;
    --buttonHoverBgColor: #ffd8d5;
    --buttonTextColor: var(--color-danger);
}

[data-search-button-loading] {
    position: relative;
    cursor: progress;
}

[data-search-button-loading] > .a-button__searchLabel {
    opacity: 0;
}

[data-search-button-loading]::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    box-sizing: border-box;
    width: 16rem;
    height: 16rem;
    border: 2rem solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    animation: ecras-search-spin 800ms linear infinite;
}

@keyframes ecras-search-spin {
    to { transform: rotate(1turn); }
}

@media (prefers-reduced-motion: reduce) {
    [data-search-button-loading]::after { animation: none; }
}

/* endregion Primary */
/* endregion Botones */


/* ===== layout/nav.css ===== */
:root {
    --navWidth: 280rem;
    --navFontColor: #010101;
    --navGreyColor: #727272;

    --navSelectedBackgroundColor: linear-gradient(
        180deg,
        #0fa958 0%,
        #3d5b49 100%
    );
}

/* region [ lvl 1 ] ----------------------------- NAVEGADOR -- */

.t-page__nav {
    background-color: var(--containerBackgroundColor);
    border-radius: 8px;
    height: inherit;
    border: var(--containerBorder);
    --iconColor: var(--navGreyColor);
    overflow-y: unset;
    display: flex;
    flex-direction: column;
    flex-grow: 0;
    max-height: calc(100dvh - 16px);
    overflow: hidden;
    top: 8px;
}

.t-page__nav i {
    display: flex;
    transition: 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.t-page__nav > .o-columnNav {
    padding: 18px 0;
    height: 100%;
    min-height: inherit;
    overflow-y: scroll;
    overflow-x: hidden;
    flex: 1;
}

.t-page__nav .o-nav__text {
    white-space: nowrap;
    color: var(--navFontColor);
}
.o-nav__decorativeTitle,
.o-shortcutNav__decorativeTitle {
    color: var(--navGreyColor);
    font-size: 10px;
    margin: 8px 8px 8px 16px;
}

.a-ecrasNav__logo {
    width: 120px;
}
.o-nav__link :is(i, .o-nav__text) {
    line-height: 100%;
    display: flex;
    margin: 0;
}
.o-nav__link :is(.a-icon) {
    --size: 16px;
}
.e-navegador-layout .o-nav__link {
    align-items: flex-end;
    flex-wrap: nowrap;
    padding: 12px 14px !important;
    gap: 8rem;
    height: auto !important;
    flex-wrap: nowrap !important;
}

.e-navegador-layout-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16rem;
    padding: 0 16px;
}

.o-stikyContainer {
    background-color: var(--containerBackgroundColor);
    position: sticky;
    bottom: 0px;
}
.o-stikyContainer .m-collapseButton {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #0101010e;
    gap: 8px;
    font-size: 14px;
}
.o-stikyContainer span {
    color: var(--navFontColor);
}
.o-columnNav .js-subnavToggler::after {
    color: var(--navFontColor);
}
.o-nav__subnav .o-nav__link {
    align-items: center;
}

.o-navItem__wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
}
.o-columnNav ul ul a:before {
    background-color: var(--navFontColor);
}
/* region [ lvl 2 ] ----------------------------- Selected options -- */
.o-columnNav__container > ul > li.-selected > a {
    border: none;
    background-color: transparent;
}
.o-columnNav__container > ul > li.-selected i {
    --iconColor: #008655;
}
.o-columnNav__container > ul > li.-selected > .o-navItem__wrap::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 5px; /* grosor del borde */
    height: 100%;
    background: linear-gradient(180deg, #0fa958 0%, #3d5b49 100%);
    border-radius: 5px 0 0 0; /* respeta la esquina */
}
.o-columnNav__container > ul > li.-selected > a > span {
    font-weight: 700;
    color: var(--navFontColor);
}
.o-columnNav__container > ul > li.-selected > button {
    background-color: transparent;
}

/* endregion Selected options */

/* region [ lvl 2 ] ----------------------------- Colapsable -- */
.-navCollapsed .o-nav__item .o-nav__text,
.-navCollapsed .o-nav__subnav,
.-navCollapsed .t-page__nav .a-subnavToggler,
.-navCollapsed .m-collapseButton span {
    display: none;
}
.-navCollapsed .o-stikyContainer .m-collapseButton i {
    transform: rotate(180deg);
}
/* endregion Colapsable */

/* region [ lvl 2 ] ----------------------------- Scroll -- */
/* width */

.e-navegador-layout > .o-columnNav::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.05);
    background-color: #f7f7f7;
}

.e-navegador-layout > .o-columnNav::-webkit-scrollbar {
    width: 6px;
}

.e-navegador-layout > .o-columnNav::-webkit-scrollbar-thumb {
    background-color: #d4d4d4;
    border-radius: 100px;
}

/* endregion Scroll */

/* endregion NAVEGADOR */

/* region  ----------------------------- Banner -- */
.m-navWrapper {
    padding: 8px;
}
.m-navBanner {
    background-image: url("../images/nav/navBannerBg.png");
    width: 100%;
    background-size: cover;
    border-radius: 16px;
    padding: 8px;
    height: fit-content;
    display: flex;
    flex-direction: column;
}
.m-bannerContent {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.a-bannerLogo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background-color: #fff;
    width: fit-content;
    border-radius: 100px;
}
.a-bannerButton {
    width: 100%;
    color: white;
    background-color: #237e54;
    padding: 16px 8px;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.a-bannerTitle {
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: white;
}
.a-bannerSubtitle {
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    color: white;
    margin-bottom: 48px;
    opacity: 0.8;
}
/* .-navCollapsed .m-navBanner *:not(a,svg,path){} */
.-navCollapsed .m-navBanner {
    display: none;
}
/* endregion Banner */

hr {
    margin: 20rem 8rem;
    width: 240rem;
    align-items: center;
    align-self: stretch;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.-navCollapsed hr {
    width: 40rem;
}

/* Escondemos los nombres del usuario en el colapso*/
.-navCollapsed .title_user {
    display: none;
}

/** Ajuste para que la ventana del nav se vea mas grande */
.-navCollapsed {
    grid-template-columns: 70rem auto;
}

/*.-navCollapsed .o-columnNav .o-nav__link { !**Ajuste para aliniar los iconos del nav verticalmente *!*/
/*padding: 10rem 30rem;*/
/*}*/

.o-columnNav__collapserText {
    font-size: 12rem;
}

.o-columnNav {
    --iconSize: initial;
}

.o-columnNav ul ul {
    background-color: transparent;
}

.o-columnNav__container > ul > li.-selected > ul {
    background-color: transparent;
}

.o-columnNav {
    gap: 10rem;
    background: transparent;
}

.o-columnNav ul {
    background: transparent;
}

.o-columnNav__container > ul > li.-selected > a > span::before {
    filter: invert(100);
}

.o-nav__text {
    margin: auto auto auto 5rem;
    text-align: left;
}

/* Bola Blanca del titulo */
.imagen-redondeada {
    min-width: initial;
    display: flex;
    width: 116rem;
    height: 116rem;
    aspect-ratio: 1/1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border-radius: 50%;
    background-color: white;
    overflow: hidden;
    margin: auto;
    min-height: initial;
}

/** Nav Colapsado */
.-navCollapsed .m-companyLogo__image {
    width: 44rem;
    height: 44rem;
    margin: auto;
}

/** Nav Colapsado  para la bola blanca*/
.-navCollapsed .imagen-redondeada {
    width: 50rem;
    height: 50rem;
}

.m-companyLogo__link {
    width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
}

.m-companyLogo__image {
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: cover;
}

.e-navegator-separator {
    margin: 10rem 20rem;
    width: 200rem;
    background-color: rgba(255, 255, 255, 0.5);
}

.e-nav-sub_span {
    color: whitesmoke;
    margin-top: 5rem;
    margin-left: 20rem;
    opacity: 0.5;
}

/* --------- Iconos del Nav --------- */
.icon-home {
    width: 24rem; /* ajusta el ancho y alto según sea necesario */
    height: 24rem;
    background-image: url("../images/icons/iconos_svg/material-symbols_home-rounded.svg");
    background-size: cover; /* para ajustar el tamaño del fondo */
    margin-right: 16rem;
    size: 1cap;
}

.icon-home_ecras {
    width: 24rem; /* ajusta el ancho y alto según sea necesario */
    height: 24rem;
    background-image: url("../images/icons/iconos_svg/material-symbols_dashboard-rounded.svg");
    background-size: cover; /* para ajustar el tamaño del fondo */
    margin-right: 16rem;
}

.icon-zona_tecnica {
    width: 24rem; /* ajusta el ancho y alto según sea necesario */
    height: 24rem;
    background-image: url("../images/icons/iconos_svg/material-zona_tecnica.svg");
    background-size: cover; /* para ajustar el tamaño del fondo */
    margin-right: 16rem;
}

.icon-zona_electrica {
    width: 24rem; /* ajusta el ancho y alto según sea necesario */
    height: 24rem;
    background-image: url("../images/icons/iconos_svg/material-symbols_electric-zona_electrica.svg");
    background-size: cover; /* para ajustar el tamaño del fondo */
    margin-right: 16rem;
}

.icon-zona_agua {
    width: 24rem; /* ajusta el ancho y alto según sea necesario */
    height: 24rem;
    background-image: url("../images/icons/iconos_svg/material-symbols_water-zona_agua.svg");
    background-size: cover; /* para ajustar el tamaño del fondo */
    margin-right: 16rem;
}

.icon-zona_eficiencia_energetica {
    width: 24rem; /* ajusta el ancho y alto según sea necesario */
    height: 24rem;
    background-image: url("../images/icons/iconos_svg/material-symbols_dynamic-form-eficiencia.svg");
    background-size: cover; /* para ajustar el tamaño del fondo */
    margin-right: 16rem;
}

.icon-zona_resumen_energetico {
    width: 24rem; /* ajusta el ancho y alto según sea necesario */
    height: 24rem;
    background-image: url("../images/icons/iconos_svg/material-symbols_-resumen.svg");
    background-size: cover; /* para ajustar el tamaño del fondo */
    margin-right: 16rem;
}

.icon-zona_monitorizacion {
    width: 24rem; /* ajusta el ancho y alto según sea necesario */
    height: 24rem;
    background-image: url("../images/icons/iconos_svg/material-symbols_monitorizacion.svg");
    background-size: cover; /* para ajustar el tamaño del fondo */
    margin-right: 16rem;
}

.icon-zona_gas {
    width: 24rem; /* ajusta el ancho y alto según sea necesario */
    height: 24rem;
    background-image: url("../images/icons/iconos_svg/material-symbols_mode-zona_gas.svg");
    background-size: cover; /* para ajustar el tamaño del fondo */
    margin-right: 16rem;
}

.icon-user,
.icon-logout {
    display: none;
}
/* --------- Fin Iconos del Nav --------- */

/** Nav Colapsado */
.-navCollapsed .icon-user,
.-navCollapsed .icon-logout {
    display: block;
}

.-navCollapsed .m-companyLogo__image {
    margin: auto;
    height: 44%;
    width: 44%;
}
.a-logout {
    justify-content: center;
}
.text-logout {
    font-family: Roboto;
    font-size: 18rem;
    font-weight: 300;
    text-decoration-line: underline;
}
.-navCollapsed .text-logout {
    display: none;
}

/** titulo */
.ecras_title_name {
    width: 71rem; /* ajusta el ancho y alto según sea necesario */
    height: 32rem;
    background-image: url("../images/nav/Frame 169.png");
    background-size: cover; /* para ajustar el tamaño del fondo */
    display: block;
}

/** Nav Colapsado */
.-navCollapsed .ecras_title_name {
    display: none;
}

.ecras_title_letter {
    background-image: url("../images/nav/Frame 169.png");
    background-size: cover; /* para ajustar el tamaño del fondo */
    display: none;
}

/** Nav Colapsado */
.-navCollapsed .ecras_title_letter {
    width: 26rem; /* ajusta el ancho y alto según sea necesario */
    height: 40rem;
    background-image: url("../images/nav/soloE.png");
    background-size: cover;
    display: block;
}

/* Arreglar enlace del boton nav cuando est acolapsado  */
.-navCollapsed .a-subnavToggler {
    display: none;
}

/* --------- Navegador Figma --------- */

.e-navegador-layout .a-subnavToggler {
    width: 40rem;
    height: 40rem;
}

.-accesoNoContratada .o-nav__list {
    opacity: 0.5;
}

.o-columnNav__options {
    padding: 8rem 0 0 8rem;
}


/* ===== layout/table.css ===== */
@charset "utf-8";

/* La tabla de lecturas usa columnas nativas con la base BEM flex cargada. */
table.e-table {
    display: table;
    width: 100%;
    border: 0;
    border-collapse: collapse;
    background: #fff;
    font-size: 13rem;
}
table.e-table > :is(thead, tbody, tfoot) > tr {
    display: table-row;
    border: solid #e5e7eb;
    border-width: 0 0 1px;
}
table.e-table > :is(thead, tbody, tfoot) > tr > :is(th, td) {
    display: table-cell;
    min-width: 0;
    padding: 6rem 4rem;
    /* La base BEM fija el tamaño de las celdas con !important. */
    font-size: 13rem !important;
    line-height: 1.4;
    text-align: start;
    vertical-align: top;
}
table.e-table > thead > tr > th {
    background: #f9fafb;
    color: #334155;
    font-size: 12rem !important;
    font-weight: 600;
    font-style: normal;
    text-transform: none;
}
table.e-table > :is(tbody, tfoot) > tr > td {
    font-variant-numeric: tabular-nums;
}
tbody{
    width: 100%;
}

.e-list_panel_grafica, .e-table_group {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}
.e-table_group .-flex_3 {
    flex: 3;
    min-width: 480rem;
    flex-wrap: wrap;
}

.e-button-config-mi_panel {
    color: #FFF;
    display: flex;
    padding: 8rem 16rem;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    border-radius: 100rem;
    background: #1E1E2F;
}
.e-button-config-mi_panel i {
    display: flex;
}

/*columna de las filas normales*/
table:not(.-print) th, table:not(.-print) td {
    /*Forzar por que si no, no hacia caso*/
    min-width: 30rem;
}

/* Arreglo para que vayan bien las tablas sin hover NO HOVER*/
table:not(.-print) tbody tr:hover td{
    background-color: transparent;
}

.e-table__comment p {
    white-space: normal !important;
    overflow: visible !important;
    width: 100%;
}

table.big_table .tbSize_1 {
    min-width: 0;
}
table.big_table th, table.big_table td {
    justify-content: center;
}
table.big_table th {
    padding: 8rem;
}
table.big_table td {
    padding: 5rem;
}

/* Colores OMIE anual */
.-fondo_rojo, table.big_table tr:hover td.-fondo_rojo {
    background-color: #FF9D9D;
    color: #222;
}
.-fondo_naranja, table.big_table tr.-fondo_naranja:hover td,
table.big_table tr:hover td.-fondo_naranja{
    background-color: #FF7E00;
    color: #222;
}
.-fondo_lila, table.big_table tr:hover td.-fondo_lila {
    background-color: #E0B0FF;
    color: #222;
}
.-fondo_verde, table.big_table tr:hover td.-fondo_verde {
    background-color: #339900;
    color: #222;
}


/* ===== layout/forms.css ===== */

.m-searchConfigurator__inputContainer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

/* ===== templates/login.css ===== */

.p-login {
    --login-surface: rgba(255, 255, 255, 0.84);

    place-items: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    background: #f4f6fb;
}

.p-login::before,
.p-login::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.p-login::before {
    display: none;
}

.p-login::after {
    background-image:
        radial-gradient(circle at 1px 1px, rgba(17, 24, 39, 0.08) 0.8px, transparent 0.9px),
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.3) 0.7px, transparent 0.8px);
    background-size:
        12px 12px,
        17px 17px;
    background-position:
        0 0,
        6px 5px;
    opacity: 0.22;
    mix-blend-mode: multiply;
    z-index: -1;
}

.p-login > * {
    position: relative;
    z-index: 1;
}

.p-login div {
    transition: all ease 0.5s;
}

.o-loginContainer {
    box-shadow:
        0 30px 70px rgba(122, 94, 180, 0.12),
        0 10px 24px rgba(122, 110, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(252, 248, 255, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: row;
    border-radius: 28px;
    margin: 16px;
    overflow: hidden;
}

@scope (.o-loginContainer) {
    .m-login__form {
        display: flex;
        padding:48px 7%;
        max-width: 400px;
        width: 100%;
    }

    .a-button {
        width: 100%;
        border-radius: 6px;
        font-size: 14px;
        padding: 12px 8px;
        --buttonBaseColor: #090E18 !important;
    }
    .a-button:hover {
        gap: 16px;
    }

    /* imagen */

    .o-imageVersion {
        padding: 16px;
        width: 100%;
        max-width: 500px;
    }

    .o-imageVersion .image {
        border-radius: 8px;
        width: 100%;
        height: 100%;
        object-fit: cover;
  object-position: left center;
    }

    /* form */
    .o-loginForm__container {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }
    
    hr{
        margin: 0;
        background-color: #193332;
        height: 1px;
    }

    .m-infoItem__logo {
        max-height: 50px;
    }

    .m-infoItem__logo img {
        height: 100%;
        width: auto;
        max-width: 100px;
        object-fit: contain;
        
    }

    .o-login__formGroup {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        gap: 64px;
        width: 100%;
    }

    .m-formItem__title {
        text-align: left;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .m-formItem__title .title {
        font-family: var(--mainFontFamily);
        font-size: 24rem;
        line-height: 1;
        color: #000;
        margin: 0;
        font-weight: 600;
    }

    hr {
        width: 100%;
        opacity: 0.2;
    }

    .m-formItem__title .subtitle {
        font-size: 14rem;
        font-style: normal;
        opacity: 0.6;
    }

    .o-inputsContainer {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .m-inputField {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .titleContainer {
        display: flex;
        align-items: center;
        gap: 8px;
        padding-left: 4px;
    }


    .titleContainer .title {
        color: #193332;
        font-size: 12rem;
        font-weight: 400;
        line-height: 1;
        opacity: 0.78;
    }

    .inputContainer {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 2px;
        border-radius: 8px;
        border: 1px solid rgba(25, 51, 50, 0.12);
        background: rgba(244, 249, 246, 0.98);

        transition:
            border-color 0.2s ease,
            transform 0.2s ease,
            background 0.2s ease;
    }

    .m-inputField:hover .inputContainer {
        border-color: rgba(35, 126, 84, 0.22);
    }

    .inputContainer:focus-within {
        border-color: rgba(15, 169, 88, 0.45);
        box-shadow:
            0 0 0 4px rgba(15, 169, 88, 0.12),
            0 16px 30px rgba(25, 51, 50, 0.12);
        transform: translateY(-1px);
        background: #ffffff;
    }

    .input{
        width: 100%;
        border: 0;
        outline: none;
        border-radius: 8px;
        background: transparent;
        color: var(--secondaryColor);
        padding: 12px;
        font-size: 15rem;
        font-weight: 500;
        line-height: 1.2;
    }

    .input::placeholder {
        color: #93a1aa;
        font-weight: 400;
    }



    .m-formItem__note {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        color: #304c40;
        font-size: 13rem;
        font-weight: 500;
        line-height: 1.4;
    }

    .m-formItem__note::before {
        content: "";
        width: 10px;
        height: 10px;
        border-radius: 50%;
        flex-shrink: 0;
        background: linear-gradient(135deg, #0fa958 0%, #193332 100%);
        box-shadow: 0 0 0 5px rgba(15, 169, 88, 0.14);
    }

    .a-textButton {
        align-self: flex-end;
        padding: 0;
        border: 0;
        background: transparent;
        color: #193332;
        font-size: 12rem;
        font-weight: 400;
        line-height: 1.4;
        text-decoration: none;
        cursor: pointer;
        border-bottom: 1px solid rgba(25, 51, 50, 0.24);
        transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }

    .a-textButton:hover {
        color: #0fa958;
        border-color: rgba(15, 169, 88, 0.5);
        transform: translateY(-1px);
    }

    .a-alert {
        width: 100%;
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
        border-radius: 12px;
        font-size: 13rem;
        line-height: 1.5;
        border: 1px solid transparent;
    }

    .a-alert .text {
        color: inherit;
    }

    .a-alert .text strong {
        color: inherit;
        font-weight: 700;
    }

    .a-alert__icon {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 12rem;
        font-weight: 700;
        line-height: 1;
    }

    .a-alert.-info {
        display: none;
        color: #1b5d3d;
        background: #e9f7ef;
        border-color: rgba(35, 126, 84, 0.18);
        box-shadow: 0 8px 20px rgba(15, 169, 88, 0.08);
    }

    .a-alert.-info::before {
        content: "i";
        width: 22px;
        height: 22px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 12rem;
        font-weight: 700;
        line-height: 1;
        color: #1b5d3d;
        background: rgba(35, 126, 84, 0.12);
    }

    .a-alert.-danger {
        color: #8f2d28;
        background: #fdf0ef;
        border-color: rgba(186, 56, 46, 0.18);
        box-shadow: 0 8px 20px rgba(186, 56, 46, 0.08);
    }

    .a-alert.-danger .a-alert__icon {
        color: #8f2d28;
        background: rgba(186, 56, 46, 0.12);
    }

    .m-formItem__help {
        font-size: 12rem;
        text-align: left;
        opacity: 0.6;
        font-weight: 400;
    }

    @media (width <=700px) {
        .o-imageVersion {
            padding: 0;
            width: 0;
        }

        .m-login__form {
            padding: 32px 16px;
        }

        .o-loginForm__actions {
            align-items: flex-start;
            flex-direction: column;
        }
    }
}



.o-loginContainer .a-button.-green {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 8rem !important;
    font-size: 14px;
    padding: 16px 12px;
    color: #ffffff !important;
    background: linear-gradient(135deg, #0fa958 0%, #193332 100%) !important;
    transition: gap 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.o-loginContainer .a-button.-green:hover {
    gap: 16px;
    transform: translateY(-2rem);
}

.o-loginContainer .a-button.-green .text {
    color: inherit;
    font-family: Poppins, sans-serif;
    font-size: 15rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/* ===== templates/eficienciaEnergetica.css ===== */
/* Ajustamos para poder arreglar cosas del popup de la zona eficiencia energetica*/
.o-sheetPopup__contentSpan .o-sectionGroup {
    margin: 0rem;
}

.link_ver_documento {
    text-decoration-line: underline;
}


/* ===== templates/panelConfig.css ===== */
#panel-config_container {
    padding-left: 10rem;
    padding-right: 10rem;
}

.e-containerHeader__content{
    display: flex;
    justify-content: space-between;
    width: 100%;
}


/*frame347*/
.e-layout-form_config_panel{
    display: flex;
    /*width: 1566rem;*/
    width: 95.6rem;
    padding: 0 16rem;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

/* Caja de tarjetas de la configuracion*/
.card-box-panel_config {
    display: flex;
    padding: 0 1rem;
    align-items: center;
    align-content: center;
    gap: 16rem;
    align-self: stretch;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
}

.e-ul-form_config_panel li{
    list-style-type: none; /* Quita la viñeta solo para los elementos li dentro de .mi-ul */
}

.card_config_panel {
    --columns: 2;
    --gap: 16rem;
    --width: calc((100% + var(--gap)) * (1 / var(--columns)) - var(--gap));
    flex: 1 1 var(--width);
    min-width: 350rem;
}

.e-li-form_config_panel{
    padding-bottom: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #E8EFFF;
    background: #F6F8FC;
    display: flex;
}

.e-li-form_config_panel-body{
    width: 100%;
    display: flex;
    padding-right: 4rem;
    align-items: flex-start;
    align-content: flex-start;
    gap: 16rem;
    flex: 1 0 0;
    flex-wrap: wrap;
}

.e-li-form-config_panel-body_div_input{
    display: flex;
    min-width: 150rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 8rem;
    flex: 1 0 0;
}

.e-flexBoxDix{
    display: flex;
    gap: 16rem;
}

.e-li-form-selector{
    display: flex;
    padding: 8rem 16rem;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    border-radius: 5rem;
    border: 1rem solid #D2D6DA;
    background: white;
    position: relative; /* Añade esta línea para establecer el contexto de posición */
    /* la fletxa del selector*/
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Agrega el SVG como fondo para la flecha */
    background-image: url('../images/icons/iconos_svg/material-symbols_arrow-back-ios-rounded.svg');
    /* Posiciona la imagen de la flecha */
    background-position: calc(100% - 5rem) center; /* Establece el tamaño de la imagen */
    background-size: 12rem; /* Ajusta según tus necesidades */
    background-repeat: no-repeat;
}

/*--------------- Checkbox Slider ---------------*/
/*No probado aun */
.toggler {
    display: block;
    height: 50px;
    width: 100px;
    background-color: rgb(238, 176, 176);
    border-radius: 25px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.5s;
}

.cross, .tick {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background-color: transparent;
    /* border: 1px solid red; */
    border-radius: 50%;
    font-size: 1.6rem;
    position: absolute;
}
.tick {
    color: green;
    left: 2px;
    top: 2px;
    opacity: 0;
    transition: opacity 0.5s;
}
.cross {
    color: red;
    right: 2px;
    top: 2px;
    opacity: 1;
    transition: opacity 0.5s;
}
.togglerSlider {
    display: block;
    height: 44px;
    width: 44px;
    background-color: rgb(90, 95, 95);
    border-radius: 50%;
    position: absolute;
    left: 3px;
    top: 3px;
    z-index: 5;
    transition: left 0.5s;
}

/* Checked Actions */
#toggleBtn:checked + .toggler .togglerSlider {
    left: 53px;
}
#toggleBtn:checked + .toggler {
    background-color: rgb(190, 241, 196);
}
#toggleBtn:checked + .toggler .tick {
    opacity: 1;
}
#toggleBtn:checked + .toggler .cross {
    opacity: 0;
}
#toggleBtn {
    appearance: none;
}

[type="checkbox"]:checked + .m-checkbox__switch span{
    background: #16A862;
}
.panel-config-form { width: 100%; min-width: 0; }
.panel-config-form .panel-workspace { padding: 16rem; box-sizing: border-box; }
.panel-add-tab {
    flex: 0 0 auto;
    min-height: 46px;
    margin: 0;
    border-radius: 18px;
    font-size: 14px;
    white-space: nowrap;
}
.panel-tab-settings { display: flex; align-items: center; flex-wrap: wrap; gap: 12rem; margin-bottom: 16rem; }
.panel-tab-settings input, .panel-config-form input[type="number"] { border: 1rem solid #D2D6DA; border-radius: 5rem; padding: 8rem 12rem; min-width: 0; background: white; }
.panel-tab-settings input { flex: 1; max-width: 400rem; }
.panel-config-form .card_config_panel > .e-container__content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16rem; }
.panel-config-form .e-li-form-config_panel-body_div_input { min-width: 0; }
.panel-config-form .e-li-form-config_panel-body_div_input select { width: 100%; }
.panel-errors { color: #9c2424; background: #fff0f0; padding: 12rem 24rem; }
@media (max-width: 600px) {
    .panel-config-form .card_config_panel > .e-container__content { grid-template-columns: minmax(0, 1fr); }
    .panel-tab-settings input { max-width: none; width: 100%; }
}


/* ===== templates/panelGraph.css ===== */
.panel_graph-box-supperior {
    display: flex;
    padding: 16px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    width: 100%;
}

.m-panel_graph-box-supperior {
    display: flex;
    align-items: center;
    gap: 12px;
    align-self: stretch;
}

.o-sectionGroup {
    width: 100%;
}

/* Boton */
.button_confit_panel {
    color: white;
    border-radius: 100px;
    background: #1e1e2f;
    padding: 5rem;
}

.button_confit_panel:hover {
    background-color: white;
    color: black;
    border: solid black;
    transition: 0.3s;
}

.a-icon-configuration:hover {
    fill: black;
}

table:not(.-print) thead th {
    background: #193332;
}

.e-graph-container .e-graphic {
    padding: 0;
}

.m-panelChart__canvas {
    height: 370rem;
    width: 100%;
    min-width: 0;
}
[data-panel-chart-root] {
    position: relative;
}
.m-panelChart__status {
    flex-direction: column;
    gap: 12rem;
    text-align: center;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 16rem;
    font-size: 14rem;
    line-height: 1.5;
    color: #727272;
}
.m-panelChart__status[hidden] {
    display: none;
}

.e-graph_card {
    --columns: 2;
    --gap: 16rem;
    --width: calc(
        (100% + var(--gap)) * (1 / var(--columns)) - var(--gap)
    ) !important;
    flex: 1 1 var(--width);
    min-width: 400rem;
    max-width: 725rem;
}
/* Mi panel: pestañas y cuatro gráficas por grupo. */
.panel-workspace {
    display: block !important;
    width: 100%;
    min-width: 0;
}
.panel-workspace [hidden] {
    display: none !important;
}
.panel-tabs-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}
.panel-tabs {
    flex: 0 1 auto;
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
}
.panel-tabs .m-radioOptions__item {
    position: relative;
    min-width: 0;
    max-width: 100%;
}
.panel-tabs input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.panel-tabs label {
    cursor: pointer;
    white-space: normal;
    overflow-wrap: anywhere;
}
.panel-tabs input[type="radio"]:focus-visible + label {
    outline: 2rem solid #36a2eb;
    outline-offset: -2rem;
}
.panel-tab-content {
    width: 100%;
    padding: 16px 0 0 0;
    min-width: 0;
}
.panel-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16rem;
}
.panel-chart-grid > .e-container {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
}
.panel-empty {
    padding: 24rem 16rem;
}
@media (max-width: 900px) {
    .panel-chart-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* ===== base/icons.css ===== */
.a-icon.-size8 {
    --size: 8px;
}

.a-icon.-size12 {
    --size: 12px;
}

.a-icon.-size16 {
    --size: 16px;
}

.a-icon.-size24 {
    --size: 24px;
}

.a-icon.-size32 {
    --size: 32px;
}

.a-icon.-size48 {
    --size: 48px;
}

.a-icon.-size64 {
    --size: 64px;
}

.a-icon.-size96 {
    --size: 96px;
}

.a-icon.-size128 {
    --size: 128px;
}

.a-icon {
    --size: 24px;
    width: var(--size);
    height: var(--size);
    flex-shrink: 0;
}



/* SELECTOR DE ICONOS */

.o-iconSelector {
    position: relative;
    display: flex;
}

.m-iconSelector__select {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 52px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.m-iconSelector__preview{
    display: flex;
}

.m-iconSelector__currentIcon,
.icon-selector__icon,
.m-iconSelector__caret {
    display: flex;
    fill: currentColor;
    flex-shrink: 0;
}

.m-iconSelector__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    width: 320px;
    max-width: min(320px, 90vw);
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.m-iconSelector__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 8px;
    max-height: 240px;
    overflow: auto;
}

.m-iconSelector__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    padding: 0;
}

.m-iconSelector__item:hover {
    border-color: #999;
}

.m-iconSelector__item.is-active {
    border-color: #2B7FFF;
    background: #5d95fd;
    color: white;
}

/* ===== base/mandanga.css ===== */
@charset "utf-8";

:root {
    --navBackgroundColor: #193332;
    --mainColor: #304c40;
    --secondaryColor: #1e1e2f;
    --backgroundColor: #ffffff;

    --containerBackgroundColor: #f7f7f7;
    --containerBorder: 1px solid rgba(0, 0, 0, 0.01);
    --ecras-control-radius: 8px;
    --ecras-purple-start: #ad46ff;
    --ecras-purple-end: #9810fa;
    --ecras-green-start: #00c950;
    --ecras-green-end: #00a63e;
    --ecras-orange-start: #f0b100;
    --ecras-orange-end: #ff6900;
    --ecras-blue-start: #2b7fff;
    --ecras-blue-end: #155dfc;

    --blanco: #fff;

    /* Para que todos los inputs tengan la misma altura y consistencia */
    --input-height: 44px;
    --input-border: 1px solid oklch(0.935 0 0);
}

/* ICONOS */
.-size_16 {
    --size: 16px;
}
.-size_18 {
    --size: 18px;
}
.-size_24 {
    --size: 24px;
}
.-size_32 {
    --size: 32px;
}
.-size_64 {
    --size: 64px;
}
.-size_80 {
    --size: 80px;
}
.-size_124 {
    --size: 124px;
}
.-red {
    --iconColor: #d70000;
}
.-blue {
    --iconColor: #0067a5;
}
.-grey {
    --iconColor: #1d1d1d;
}
.-green {
    --iconColor: #0fa958;
}
.-orange {
    --iconColor: #f24e1e;
}
.-sparkle {
    --iconColor: #fe9a00;
}
.-white {
    --iconColor: #fff;
}
.-yellow {
    --iconColor: #ffe01b;
}
.-gold {
    --iconColor: #e1ad16;
}
.-silver {
    --iconColor: #99A1AF;
}
.-iconMainColor {
    --iconColor: var(--mainColor);
}
.-iconSecondaryColor {
    --iconColor: var(--secondaryColor);
}

i svg {
    width: var(--size);
    height: var(--size);
    fill: var(--iconColor);
    color: var(--iconColor);
}

body {
    display: flex;
    align-items: flex-start;
    background-color: var(--backgroundColor);
    padding: 8px;
    height: 100dvh;
}
a {
    text-decoration: none;
}
.-hidden {
    display: none !important;
}

/*Frame 230, no es igual porque si lo es se descuadra */
:where(.e-page) {
    grid-template-rows: 64px auto;
    grid-template-areas: 
    "nav header"
    "nav main"
    ;
    width: 100%;
    grid-template-columns: var(--navWidth) auto;
    z-index: 1;
    gap: 8px;
}
/*Frame 4*/


.e-rowContainer{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
}
.e-columnContainer{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 12px;
}


.e-page__main {
    display: flex;
    padding: 32rem 64rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 24rem;
    align-self: stretch;
    width: 100%;
    flex: 1;
    border-radius: 8px;
    background-color: var(--containerBackgroundColor);
}

.e-sectionHeader {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16rem;
    width: 100%;
}
.e-header__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8rem;
}
/*Frame 101*/
.e-header__title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24rem;
}
.e-header__title h1 {
    color: var(--secondaryColor);
    font-family: Roboto;
    font-size: 40rem;
    font-weight: 500;
    line-height: 1;
}
/*Frame 344*/
.e-header__subtitle {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
}
.e-header__subtitle h2 {
    color: var(--secondaryColor);
    font-family: Roboto;
    font-size: 16rem;
    font-weight: 400;
    line-height: normal;
}
.e-header__subtitle h2 span {
    color: var(--secondaryColor);
    font-family: Roboto;
    font-size: 16rem;
    font-weight: 700;
    line-height: normal;
}
/*Frame 358*/
.e-sectionGroup__container {
    display: flex;
    flex-direction: column;
    gap: 48rem;
    width: 100%;
}

.e-sectionGroup {
    display: flex;
    flex-direction: column;
    gap: 24rem;
    width: 100%;
}
.e-resultContainer {
    display: flex;
    gap: 16rem;
    flex-direction: column;
}
.e-containerGroup {
    background-color: transparent;
    padding: 0;
    border: 1px solid transparent;
    box-shadow: none;
    border-radius: 0;
}
/*Frame Section*/
.e-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16rem;
    align-self: stretch;
    border-radius: 8rem;
    background: var(--blanco);
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.15);
}
.e-container.active {
    padding-bottom: 16rem;
}
/*Frame HeaderSection*/
.e-container__header {
    display: flex;
    padding: 16rem;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8rem 8rem 0 0;
}
.e-container__header::before {
    content: none;
}
.e-container__header .right_content {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12rem;
    align-self: stretch;
}
.right_content i {
    display: flex;
    align-items: center;
}
.e-container__decor::after {
    display: none;
}
.e-container.active .e-container__decor {
    transform: rotate(0deg);
}
.e-container__header .left_content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8rem;
}
.-primary_btn {
    background: var(--secondaryColor);
    color: var(--blanco);
}
.-primary_btn:hover {
    opacity: 0.85;
}
.-secondary_btn {
    background: var(--backgroundColor);
    color: var(--secondaryColor);
    border: 1px solid #dbdbdb;
}
.-secondary_btn:hover {
    opacity: 0.7;
}

.e-container__content {
    gap: 16rem !important;
    padding: 0 16rem;
    width: 100%;
}
/*POSIBLES CONTENIDOS*/
/* 1. Secciones y subsecciones */
.e-cardGroup {
    background-color: transparent;
    box-shadow: none;
}
.e-cardGroup .e-container__content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16rem;
    padding: 0;
}
.card_zona {
    display: flex;
    --columns: 4;
    --gap: 16rem;
    --width: calc((100% + var(--gap)) * (1 / var(--columns)) - var(--gap));
    flex: 1 1 var(--width);
    min-width: 340rem;
}
.card_zona a:hover {
    background: var(--backgroundColor);
}
.card_zona a {
    display: flex;
    padding: 32rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16rem;
    border-radius: 8rem;
    background: var(--blanco);
    box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.15);
    flex: 1;
}
.card_zona :is(.a-icon) {
    --size: 64px;
}
.card_title {
    color: var(--secondaryColor);
    font-family: Roboto;
    font-size: 20rem;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.5rem;
}
#zonas_no_contratadas {
    opacity: 0.3;
}

/* 2. Formulario */
.e-container form {
    width: 100%;
}
.e-container form .e-container__content {
    display: flex;
    padding: 16rem 20rem;
    flex-wrap: wrap;
}
.e-input {
    display: flex;
    min-width: 300rem;
    flex-direction: column;
    align-items: flex-start;
}
.e-input.-fit {
    min-width: inherit;
}
.e-input.-fill {
    flex: 1;
}
.e-input__title {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 500;
    font-size: 14rem;
    line-height: 16rem;
    margin-bottom: 4px;
    color: #121212;
}
.e-input__title span {
    font-weight: 300;
    font-size: 15rem;
}
.e-input select,
.e-input input {
    display: flex;
    padding: 8rem 16rem;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    border-radius: 5rem;
    cursor: pointer;
    font-size: 14px;
    line-height: 16px;
    min-height: var(--input-height);
    border: var(--input-border) !important;
    border-radius: var(--ecras-control-radius) !important;
    box-shadow: none !important;
}
.e-input select{
    padding: 8rem 24rem 8rem 8rem;    
}

.e-input__radio {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8rem;
}

.e-input_select_period {
    min-width: 150rem;
    align-self: flex-end;
}

.e-radioOptions__group {
    --ecras-control-radius: 8px;
    padding: 4px;
    gap: 4px;
    align-items: center;
    border-radius: var(--ecras-control-radius);
    border: var(--input-border);
    background-color: oklch(0.978 0 0);
    min-height: 32rem;
}
.e-radioOptions__item label {
    border-radius: calc(var(--ecras-control-radius) - 3px);
    color: var(--secondaryColor);
    font-family: Roboto;
    font-size: 14rem;
    font-weight: 400;
    white-space: nowrap;
    padding: 0 12px;
    min-height: 36px;
    justify-content: center;
    align-items: center;
    display: flex;
    user-select: none;
    transition: color 0.16s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid transparent;
    cursor: pointer;
}
.e-radioOptions__item input[type="radio"]:checked + label {
    background: oklch(1 0 0);
    color: rgb(8, 124, 84);
    box-shadow: oklch(0 0 0 / 0.035) 0px 1px 2px 0px;
    border: 1px solid oklch(0.935 0 0);
    border-radius: calc(var(--ecras-control-radius) - 3px);
}
.e-dateTime {
    display: flex;
    padding: 2rem;
    align-items: flex-start;
    gap: 4rem;
}
.e-input__date {
    min-width: 150rem;
}
.inputHoraria,
.inputCuartoHoraria {
    align-self: flex-end;
}
.e-input__number {
    min-width: 100rem;
}
.e-input__number input {
    width: fit-content;
}
.e-selectGroup {
    display: flex;
    padding: 2rem;
    align-items: flex-start;
    gap: 4rem;
}
.e-selectGroup .e-input {
    display: inline-flex;
    min-width: inherit;
}
.e-input_btnGroup {
    display: flex;
    min-width: 300rem;
    padding: 6rem 16rem;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8rem;
    border-radius: 5rem;
    background: #f2f4f6;
}
#grupo_botones_periodo {
    gap: 8rem;
}
#grupo_botones_periodo button {
    border-radius: 5rem;
    background-color: white;
}

/* 3. Resultados */
.e-container__content .e-container {
    background: #f6f8fc;
    box-shadow: none;
    border: 1px solid #e8efff;
    width: 100%;
}
.e-container.e-table_result {
    padding-bottom: 0;
}
.e-table__container {
    display: flex;
    padding-bottom: 16rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 16rem;
    align-self: stretch;
    border-radius: 8rem;
    border: 1px solid #e8efff;
    background: #f6f8fc;
    height: max-content;
}
.-no_border,
.-no_border table {
    border: none;
    background: transparent;
}
.e-table__title {
    display: flex;
    padding: 16rem;
    align-items: flex-start;
    gap: 8rem;
    align-self: stretch;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.e-table__title h5 {
    color: var(--secondaryColor);
    font-family: Roboto;
    font-size: 14rem;
    font-weight: 700;
    line-height: normal;
}
.e-table__content {
    display: flex;
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16rem;
    align-self: stretch;
}
.e-table__content p {
    padding-left: 16rem;
}
/* todo Por ahora dejamos la clase, pero la idea es que se aplique a etiquetas genéricas */
.e-table__container table tr,
.e-table__content table tr {
    border: none;
}
.e-table__container table tbody tr,
.e-table__content table tbody tr {
    border-top: 1px solid #e5e7eb;
}

.e-table__content table,
.e-table__container table {
    width: 100%;
    border: none;
    border-collapse: collapse;
}
.e-table__container table tr,
.e-table__container table tfoot tr {
    display: flex;
    padding: 8rem 16rem;
    align-items: center;
    gap: 16rem;
    align-self: stretch;
}
tr:hover,
tr:hover td {
    background-color: inherit;
}
.e-table__container table thead {
    background-color: #f9fafb;
}
.e-table__container table tbody,
.e-table__container table tfoot {
    background: white;
}
.e-table__container table th {
    color: #6b7280 !important ;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    background-color: transparent !important;
    background: transparent !important;
    text-transform: none !important;
}

.e-table__container table td {
    font-family: Roboto;
    font-size: 14rem;
    line-height: 16rem;
}
.e-table__container table th {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}
.e-table__container table td {
    color: #495057;
    font-weight: 400;
}
td.-number {
    justify-content: right;
    text-align: right !important;
}
th.-number {
    justify-content: center;
    text-align: center !important;
}
.e-table__icon {
    padding: 8rem 16rem;
    border-radius: 100rem;
    border: 1px solid #dbdbdb;
    background: var(--backgroundColor);
}
.e-table__icon:hover {
    opacity: 0.85;
    cursor: pointer;
}
.e-table__container table tfoot tr td {
    font-weight: 700;
}

/*Para cuando hay col con tablas*/
.col-50 .e-table__content table,
.col-33 table,
.col-66 table {
    padding-bottom: 16rem;
}
.e-container__content .e-table__container.col-50 {
    border-color: #b9c0c4;
    background-color: #ebedee;
}
.e-table_card {
    --columns: 2;
    --gap: 16rem;
    --width: calc(
        (100% + var(--gap)) * (1 / var(--columns)) - var(--gap)
    ) !important;
    flex: 1 1 var(--width);
}
.e-table_card.-big_table_card {
    min-width: 675rem;
}
.e-table_card.-medium_table_card {
    min-width: 520rem;
}
.e-table_card.-small_table_card {
    min-width: 400rem;
}
.e-container__content .e-table__container.col-50 .e-table__title {
    border-color: #b9c0c4;
}

.e-container__content.-only_content {
    padding-top: 16rem;
}
.e-graphic {
    background: #f6f8fc;
    padding: 16rem;
    border-radius: 8rem;
}

.bloque_alarmas {
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    align-self: stretch;
    flex-wrap: wrap;
}
.bloque_alarmas .e-container {
    width: 49%;
}
.item_alarma {
    display: flex;
    padding: 8rem 16rem 16rem 16rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 32rem !important;
    align-self: stretch;
}
.item_alarma fieldset {
    display: flex;
    min-width: 300rem;
    padding: 20rem 16rem 16rem 16rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 8rem;
    align-self: stretch;
    border-radius: 5rem;
    border: 1px solid #d2d6da;
    background: #fff;
}
.e-fieldset__title {
    display: flex;
    padding: 0 4rem;
    align-items: flex-start;
    gap: 8rem;
    position: absolute;
    left: 11rem;
    top: -10rem;
    background: linear-gradient(180deg, #f6f8fc 44.86%, #fff 67.38%);
    color: var(--secondaryColor);
    font-weight: 700;
}
.e-fieldset__container {
    width: 100%;
}
.e-fieldset__inputGroup {
    display: flex;
    align-items: center;
    gap: 8rem;
}
.e-fieldset__container input {
    background-color: transparent;
    padding: 8rem 16rem;
    opacity: 0.5;
}
.list_emails {
    width: 100%;
    padding: 8rem 16rem;
}
.-disabled {
    opacity: 0.5;
}

/* Panel inicio: ÚLTIMAS ALARMAS - pasar a css propio */
.e-cardGroup_alarma {
    flex-wrap: wrap;
}
.e-card_alarma {
    --columns: 4;
    --gap: 16rem;
    --width: calc((100% + var(--gap)) * (1 / var(--columns)) - var(--gap));
    flex: 1 1 var(--width);
    min-width: 320rem;
    max-width: 350rem;
}
.e-card_alarma .e-container__header {
    height: 92rem;
}
.e-card_alarma .e-container__content {
    display: flex;
    flex-direction: column;
    gap: 4rem !important;
}
.e-card_alarma .e-container__content .alarm_content {
    display: flex;
    flex-direction: column;
    padding: 0 16rem;
    color: #495057;
    font-family: Roboto;
    font-size: 14rem;
    font-weight: 400;
    line-height: 16rem;
}
.-icon_alarma {
    display: flex;
    justify-content: center;
    gap: 8rem;
    font-size: 14rem;
    margin: auto;
}
.-icon_alarma:hover {
    background-color: white;
}

/* Zona Usuario */
.left_content .o-sectionHeader.-object {
    margin: 0;
    background: inherit;
    padding: 0 16rem;
    border-left: var(--color-success) 5rem solid;
}
.left_content .m-header__title {
    font-size: 21rem;
}

/* Modificaciones css origen */
.o-container__group:hover {
    border: 1rem solid #0fa958;
    border-radius: 5rem;
}

/* CSS propio para Ecras */

/*___________________________________ Nav*/

.logo-ecras {
    max-width: 250%;
}

.logo-user-ecras {
    width: 30rem;
    height: 30rem;
    padding: 2rem;
    margin-right: 5rem;
}

.nav-color {
    background-color: #3c4144;
}


/* ICONOS MENÚ NAVEGADOR */
#mainMenu_nav .o-nav__icon:not(.a-icon-home)::before {
    background-image: url("../images/sprite.png");
    width: 24px;
    height: 24px;
    background-size: inherit;
}
/*.o-nav__icon */
.icon-home_ecras {
    width: 20rem; /* ajusta el ancho y alto según sea necesario */
    height: 20rem;
    background-image: url("../images/icons/material-symbols_dashboard-rounded.svg");
    background-size: cover; /* para ajustar el tamaño del fondo */
    margin-right: 16rem;
}
/* ICONOS SUBSECCIONES */
.m-sectionMenuNav .o-shortcutNav__icon::before {
    background-image: url("../images/sprite.png");
    width: 24px;
    height: 24px;
    background-size: inherit;
}
.a-icon-zona_telemedida_electrica::before {
    background-position: -48px 0;
}
.a-icon-zona_graficas_electrica::before {
    background-position: -360px 0;
}
.a-icon-zona_electrica_alarmas_reactiva::before {
    background-position: -456px 0;
}
.a-icon-zona_alarmas_electrica_reactiva::before {
    background-position: -456px 0;
}
.a-icon-zona_electrica_alarmas_potencia::before {
    background-position: -288px 0;
}
.a-icon-zona_alarmas_electrica_potencia::before {
    background-position: -288px 0;
}
.a-icon-zona_telemedida_gas::before {
    background-position: -264px 0;
}
.a-icon-zona_graficas_gas::before {
    background-position: -336px 0;
}
.a-icon-zona_telemedida_agua::before {
    background-position: 0 -72px;
}
.a-icon-zona_graficas_agua::before {
    background-position: -48px -72px;
}
.a-icon-zona_alarmas_gas::before {
    background-position: -312px 0;
}

.o-fieldset__fechas {
    align-items: flex-end;
}

.a-select__autowidth {
    width: max-content;
}

.a-span__input {
    margin-left: -12px;
    margin-top: 8px;
}

.m-section__content.show {
    margin: 0;
}

.popup_alarmas .o-sheetPopup__sheet {
    width: max-content;
    height: min-content;
}

.alarma_activa,
.alarma_activa td,
.alarma_activa:hover,
.alarma_activa:hover td {
    background-color: #fdd;
    color: #900;
}

/* Estilo para radioButton clásico: no funciona, si lo piden ya investigaremos */
.m-radioBtn-ecras .m-radioOptions__group {
    background-color: transparent;
}
.m-radioBtn-ecras
    .m-radioOptions__group
    .m-radioOptions__item
    input[type="radio"] {
    appearance: normal;
}

.m-shortcut__list {
    display: flex;
    flex-flow: wrap;
    flex-direction: row;
    gap: 16rem;
    margin: 0;
    padding: 0;
    justify-content: center;
    width: 100%;
}

.m-shortcut__list_panel_grafica {
    display: flex;
    flex-flow: wrap;
    flex-direction: row;
    gap: 16rem;
    margin: 0;
    padding: 0;
    justify-content: start;
    width: 100%;
}

.m-shortcut__item {
    --columns: 3;
    --gap: 16rem;
    width: calc((100% + var(--gap)) * (1 / var(--columns)) - var(--gap));
}

.m-shortcut__item_2 {
    --columns: 2;
    --gap: 16rem;
    width: calc((100% + var(--gap)) * (1 / var(--columns)) - var(--gap));
    list-style: none;
}

.m-shortcut__item_4 {
    --columns: 4;
    --gap: 16rem;
    width: calc((100% + var(--gap)) * (1 / var(--columns)) - var(--gap));
    list-style: none;
}

.m-shortcut__list .m-shortcut__item {
    flex-grow: 0;
}

#popup_lista_doc_tecnica {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.t-page__header {
    height: 100%;
    box-shadow: none;
    background-color: #F7F7F7;
    border-radius: 8px;
    padding: 12px 8px ;
}

.o-mainHeader strong {
    text-align: center;
    font-size: 25rem; /* Puedes ajustar este valor según tus preferencias */
    font-weight: bold; /* Puedes agregar negrita si lo deseas */
}

.button-green-show {
    background: #16a862;
    color: #ffffff;
}

.button-blue-show {
    background: #4e7ea9;
    color: #ffffff;
}

.button-blue-show:hover {
    background: #fff;
    color: red;
}

.message-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #4caf50;
    color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 1s ease-in-out;
    display: none;
}

/*Botones */
.m-shortcut__link {
    /*Redefinimos los botones de tempate*/
    display: flex;
    flex-direction: column;
    gap: 16rem;
    align-items: center;
    text-decoration: none;
    background-color: #ffffff;
    border-radius: 25rem;
    padding: 64rem;
    display: flex;
    flex-grow: 1;
    justify-content: center;
    /*border: transparent 1px solid;*/
    border: #17a2b8 1px solid;
    transition: all ease-in-out 0.3s;
}

.m-shortcut__link:hover {
    background-color: #e4f2fa;
    border: #17a2b8 1px solid;
    box-shadow: 0px 30px 40px -20px hsl(229, 6%, 66%);
}

.m-shortcut__title:hover {
    color: white;
}

.m-form__submit {
    margin-top: 3%;
}

/*--------- Breadrumbs ---------*/
.e-breadcrumbs {
    display: flex;
    overflow-x: auto; /* Permite desplazamiento horizontal en pantallas pequeñas */
}
.e-breadcrumbs ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.e-breadcrumbs li {
    margin-right: 4rem;
    color: #237E54;
    font-size: 14px;

}

.e-breadcrumbs li a {
    color: #727272;
    text-decoration: none;
}
.e-breadcrumbs li a:hover {
    text-decoration: underline;
    
}



/*--------- Filtrado Complejo ---------*/
.e-page__main:has(.o-complexFilter__container) {
    min-width: 0;
}
.o-complexFilter__container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;
}
.m-complexFilter__title {
    color: #000;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 125% */
    opacity: 0.5;
}

.m-complexFilter__quickSearch {
    gap: 8rem;
    background: transparent;
    box-shadow: none;
}

.m-complexFilter__quickSearch.active,
.m-complexFilter__quickSearch > .e-container__header,
.m-complexFilter__quickSearch > .e-container__content {
    padding: 0;
}

.m-complexFilter__quickSearch > .e-container__header {
    border-bottom: 0;
    cursor: pointer;
}

.m-complexFilter__fastSearch {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
}

/* region -----------------------------  Presests guardados -- */

.m-complexFilter__savedGroup {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    align-items: stretch;
    grid-auto-rows: 1fr;
    gap: 16px;
    flex: 1 1 640px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.m-complexFilter__saveItem.-blue {
    --savedItemBgColor: linear-gradient(135deg, var(--ecras-blue-start) 0%, var(--ecras-blue-end) 100%);
    --savedItemBgColorHover: linear-gradient(135deg, var(--ecras-blue-start) 0%, color-mix(in srgb, var(--ecras-blue-end) 80%, #fff 20%)100%);
}
.m-complexFilter__saveItem.-purple {
    --savedItemBgColor: linear-gradient(135deg, var(--ecras-purple-start) 0%, var(--ecras-purple-end) 100%);
    --savedItemBgColorHover: linear-gradient(135deg, var(--ecras-purple-start) 0%, color-mix(in srgb, var(--ecras-purple-end) 80%, #fff 20%)100%);
}
.m-complexFilter__saveItem.-green {
    --savedItemBgColor: linear-gradient(135deg, var(--ecras-green-start) 0%, var(--ecras-green-end) 100%);
    --savedItemBgColorHover: linear-gradient(135deg, var(--ecras-green-start) 0%, color-mix(in srgb, var(--ecras-green-end) 80%, #fff 20%)100%);
}
.m-complexFilter__saveItem.-orange {
    --savedItemBgColor: linear-gradient(135deg, var(--ecras-orange-start) 0%, var(--ecras-orange-end) 100%);
    --savedItemBgColorHover: linear-gradient(135deg, var(--ecras-orange-start) 0%, color-mix(in srgb, var(--ecras-orange-end) 80%, #fff 20%)100%);
}
.m-complexFilter__saveItem.-empty {
    --savedItemBgColor: transparent;
    --savedItemBorderColor: #0FA958;
    --savedItemTextColor: #121212;
    --savedItemIcoBgColor: rgba(15, 169, 87, 0.2);
    
}

.m-complexFilter__saveItem {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 16px;
    background: var(--savedItemBgColor, #2b7fff);
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    border: 1px dashed var(--savedItemBorderColor, transparent);
    color: var(--savedItemTextColor, #fff);
    cursor: pointer;
}
.m-complexFilter__saveItem:hover:not(:has(.a-savedItem__edit:hover)) {
    background: var(--savedItemBgColorHover);
}

.m-complexFilter__saveItem.-empty.-placeholder::before {
    content: "";
    position: absolute;
    background-color: #E0F0E8;
    inset: -2px; 
    z-index: 1;
    opacity: 1;
    border-radius: 16px;
    transition: all ease 0.3s;
}
.m-complexFilter__saveItem.-empty.-placeholder:hover::before {
    opacity: 0;
}

.m-savedItem__header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}
.a-savedItem__ico {
    display: flex;
    width: 42px;
    height: 42px;
    background-color: var(--savedItemIcoBgColor, rgba(255, 255, 255, 0.2));
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}
.a-savedItem__ico svg{
    width: 24px;
    height: 24px;
}
.a-savedItem__ckeckedIco {
    display: flex;
    width: 16px;
    height: 16px;
    background-color: #00c950;
    border: 4px solid #fff;
    border-radius: 100%;
    opacity: 0;
}
.m-complexFilter__saveItem.-checked .a-savedItem__ckeckedIco {
    opacity: 1;
}
.m-savedItem__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}
.m-savedItemContent__title {
    font-size: 16px;
}
.m-savedItemContent__desc {
    font-size: 14px;
    opacity: 0.8;
}
.m-savedItem__chips {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 4px;
    flex-wrap: wrap;
    padding: 0;
    margin: 12px 0 0;
}
.m-savedItem__chipItem {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 12px;
    align-items: flex-start;
    justify-content: flex-start;
    color: #fff;
    max-width: 100%;
    min-width: 0;
}
.a-savedItemChip__label,
.m-searchConfiguratorInputItem__labelText {
    text-transform: capitalize;
    text-wrap: nowrap;
}
.a-savedItemChip__label {
    white-space: normal;
    text-wrap: wrap;
}
.a-savedItemChip__label::after {
    content: ": ";
}
.m-searchConfiguratorInputItem__label svg{
    color: #9810FA;
    --size:16px;
}
.m-searchConfiguratorInputItem__label{
    font-size: 14rem;
}
.a-savedItemChip__value {
    position: relative;
    display: inline-block;
    width: 100%;
    min-width: 0;
}
.a-savedItemChip__valueText {
    display: block;
    white-space: normal;
    text-wrap: wrap;
    overflow-wrap: anywhere;
    min-width: 0;
}
.m-savedItem__footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
}
.m-complexFilter__saveItem.-empty .m-savedItem__footer > * {
    display: none;
}
.m-savedItem__details.-inline {
    width: 100%;
}
.m-complexFilter__saveItem:has(.m-savedItem__details:not(.-inline)[open]) {
    z-index: 40;
}
.m-savedItem__popover {
    position: absolute;
    flex-wrap: nowrap;
    top: calc(100% + 8px);
    left: 0;
    z-index: 40;
    box-sizing: border-box;
    width: min(400px, calc(100vw - 32px));
    max-height: min(420px, 60vh);
    overflow: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 12px;
    background: #fff;
    color: var(--secondaryColor);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 25px #0002;
    cursor: auto;
}
.m-savedItem__popover .m-savedItem__chipItem {
    flex-shrink: 0;
    background: #f3f4f6;
    color: inherit;
}
.a-savedItem__details.a-button {
    min-height: 44px;
    padding: 4px 8px;
    box-sizing: border-box;
    list-style: none;
    cursor: pointer;
    --buttonTextColor: inherit;
    --buttonHoverBgColor: rgba(255, 255, 255, 0.2);
}
.a-savedItem__details::-webkit-details-marker {
    display: none;
}
.a-savedItem__details svg {
    width: 16px;
    height: 16px;
}
.m-savedItem__details[open] > .a-savedItem__details svg {
    transform: rotate(180deg);
}
.a-savedItem__details:focus-visible,
.m-savedItem__popover:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
.a-savedItem__edit{
    position: static;
    font-size: 14px;
    display: flex;
    --buttonTextColor: white !important;
    opacity: 0.7 !important;
}
.a-savedItem__edit:hover{
    opacity: 1;
}
.a-savedItem__delete {
    display: none;
}
.m-complexFilter__saveItem:not(.-empty):is(:hover, :focus-within) :is(.a-savedItem__delete,.a-savedItem__edit){
    display: flex;
}
.m-complexFilter__saveItem:hover :is(.-hiddenIcon) {
    display: none !important;
}
.a-savedItem__edit svg{
    width: 16px;
    height: 16px;
}

@media (max-width: 760px) {
    .e-page:has(.m-complexFilter__savedGroup) {
        grid-template-columns: 70px minmax(0, 1fr);
        grid-template-rows: auto 1fr;
    }
    .e-page:has(.m-complexFilter__savedGroup) .e-page__main {
        padding: 20px 12px;
    }
    .e-page:has(.m-complexFilter__savedGroup) .t-page__header {
        min-width: 0;
        gap: 8px;
        padding: 8px;
    }
    .e-page:has(.m-complexFilter__savedGroup) .t-page__header .a-buttonContainer {
        display: none;
    }
    .e-page:has(.m-complexFilter__savedGroup):not(.-navCollapsed) > .t-page__nav {
        position: fixed;
        top: 8px;
        left: 8px;
        width: min(280px, calc(100vw - 16px));
        height: calc(100dvh - 16px);
        z-index: 110;
    }
}
/* endregion  Presests guardados */

/* region ----------------------------- Busquedas recientes -- */
.m-complexFilter__recentSearchGroup {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 24px 24px 12px 24px;
    width: auto;
    max-width: 100%;
    min-width: 0;
    flex: 0 1 360px;
}
.m-complexFilter__recentSearchGroup .m-complexFilter__title {
    margin-bottom: 8px;
}
.a-recentItem__ico {
    display: flex;
    justify-content: center;
    align-items: center;
}
.m-complexFilter__recentItem {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    border: 1px solid #e5e7eb;
    padding: 8px 12px;
    border-radius: 12px;
    gap: 8px;
    width: fit-content;
    cursor: pointer;
}
.m-complexFilter__recentItem:hover {
    background-color: rgba(0, 0, 0, 0.03);
}
.a-recentItem__value {
    color: #364153;
    font-size: 14px;
    line-height: 20px;
    text-wrap: nowrap;
}
.m-complexFilter__recentItem
    .a-recentItem__value
    + .a-recentItem__value::before {
    content: " - ";
}
.a-recentItem__time:before {
    content: "·";
}
.a-recentItem__time {
    color: #99a1af;
    font-size: 12px;
    line-height: 20px;
    text-wrap: nowrap;
}


/* endregion Busquedas recientes */

/* region ----------------------------- configurator -- */

.m-searchConfigurator__ico {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
    border-radius: 15px;
    background: linear-gradient(135deg, #ad46ff 0%, #615fff 100%);
}
.m-searchConfigurator__ico.-orange {
    background: linear-gradient(135deg, var(--ecras-orange-start) 0%, var(--ecras-orange-end) 100%);
}
.m-searchConfigurator__header {
    display: flex;
    min-width: 0;
    overflow-wrap: anywhere;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    justify-content: flex-start;
}
.m-container__title {
    font-size: 16px;
    letter-spacing: normal;
    color: #010101;
    line-height: 1;
}
.m-container__subtitle {
    font-size: 14px;
    color: #727272;
    line-height: 1.4;
    letter-spacing: -.1px;
}

.m-searchConfigurator__inputItem {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}
.m-searchConfigurator__inputItem:has(.m-searchConfiguratorInputItem__input :is(.-fv-required, [required])) .m-searchConfiguratorInputItem__labelText::after {
    content: " *";
    color: #d70000;
}
.m-actionContainer__group,
.m-searchConfiguratorInputItem__label,
.m-searchConfiguratorInputItem__input,
.m-searchConfiguratorInputItem__clear {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.m-searchConfiguratorInputItem__label {
    gap: 8px;
    flex: 1;
}
.m-searchConfiguratorInputItem__input {
    flex: 10;
}
.m-searchConfigurator__actionContainer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-top: 1px solid #E5E7EB;
    padding: 12px 0 0 0;
}
/* endregion configurator */


/* Rediseño de checkbox switch */

.m-checkbox{
    border: none;
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10rem;
    min-height: 44rem;
}
.m-checkbox label:not(.m-checkbox__switch){
    flex-shrink: 0;
    background: #f1f3f2;
    color: #768078;
    padding: 6rem 8rem;
    border-radius: 5rem;
    font-size: 11rem;
    }

.m-checkbox:has(input[type="checkbox"]:checked) label:not(.m-checkbox__switch) {
    background: #edf7f0;
    color: #237e54;
}


/* ===== components/step-icon.css ===== */
.a-stepIcon {
    --stepIcon-start: var(--ecras-purple-start);
    --stepIcon-end: var(--ecras-purple-end);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40rem;
    width: 40rem;
    height: 40rem;
    box-sizing: border-box;
    border-radius: 5rem;
    background: linear-gradient(135deg, var(--stepIcon-start) 0%, var(--stepIcon-end) 100%);
    color: #fff;
    font-size: 20rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    user-select: none;
}
.a-stepIcon[data-step="2"] {
    --stepIcon-start: var(--ecras-green-start);
    --stepIcon-end: var(--ecras-green-end);
}
.a-stepIcon[data-step="3"] {
    --stepIcon-start: var(--ecras-orange-start);
    --stepIcon-end: var(--ecras-orange-end);
}
.a-stepIcon[data-step="4"] {
    --stepIcon-start: var(--ecras-blue-start);
    --stepIcon-end: var(--ecras-blue-end);
}


/* ===== components/page-loader.css ===== */
/* Cortina inicial: conserva el layout y las medidas de los controles/gráficas. */
html[data-ecras-page-loading]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    background: var(--backgroundColor, #fff);
    opacity: 1;
    cursor: progress;
    pointer-events: auto;
    transition: opacity 160ms ease-out;
}

html[data-ecras-page-loading="revealing"]::before {
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    html[data-ecras-page-loading]::before { transition: none; }
}

@media print {
    html[data-ecras-page-loading]::before { display: none; }
}


/* ===== components/search-skeleton.css ===== */
.m-searchStatus {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.m-searchSkeleton__placeholder {
    --placeholder-width: 80rem;
    display: block;
    width: min(100%, var(--placeholder-width));
    height: 10rem;
    border-radius: 4rem;
    background: var(--search-placeholder, #dce5eb);
}

.m-searchSkeleton__shimmer {
    position: relative;
    overflow: hidden;
}

.m-searchSkeleton__shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.8) 50%, transparent 70%);
    pointer-events: none;
    animation: ecras-search-shimmer 1.65s ease-in-out infinite;
}

@keyframes ecras-search-shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .m-searchSkeleton__shimmer::after {
        content: none;
        animation: none;
    }
}

.m-searchSkeleton {
    min-width: 0;
    width: 100%;
}

:is(.e-resultContainer, .o-sectionGroup, [data-search-results])[data-search-results-pending] {
    display: none;
}

.m-searchSkeleton__panel .right_content,
.m-searchSkeleton__content {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.m-searchSkeleton__panel .m-searchConfigurator__header {
    width: min(230rem, 62vw);
}

.m-searchSkeleton__icon {
    --placeholder-width: 24rem;
    height: 24rem;
    flex-shrink: 0;
}

.m-searchSkeleton__heading {
    --placeholder-width: 200rem;
    height: 14rem;
}

.m-searchSkeleton__action {
    --placeholder-width: 48rem;
    height: 24rem;
}

.m-searchSkeleton__table {
    width: 100%;
    background: #fff;
}

.m-searchSkeleton__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: clamp(8rem, 2vw, 24rem);
    min-height: 36rem;
    padding-inline: 16rem;
    border-top: 1px solid #e5e7eb;
}

.m-searchSkeleton__row:first-child {
    background: #f9fafb;
}

.m-searchSkeleton__row > :last-child {
    --placeholder-width: 36rem;
}

.m-searchSkeleton__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12rem;
}

.m-searchSkeleton__cards.-list {
    grid-template-columns: minmax(0, 1fr);
}

.m-searchSkeleton__card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 48rem;
    align-items: center;
    gap: 12rem;
    min-height: 76rem;
    padding-inline: 12rem;
    border: 1px solid #e5e7eb;
    border-radius: 8rem;
}

.m-searchSkeleton__cardCopy {
    display: grid;
    gap: 8rem;
}

@media (max-width: 760px) {
    .m-searchSkeleton__cards {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* ===== components/daterangepicker.css ===== */
.m-dateRangePicker.-dateRangeEnhanced .m-dateRangePicker__nativeInputs,
.m-dateRangePicker:not(.-dateRangeEnhanced) .m-dateRangePicker__visibleInput {
    display: none;
}
/* Ajustes para el lsitado de rangos predefinidos */
.daterangepicker .ranges ul {
    width: 165px !important;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 12px 0 !important;
    border-right: 1px solid;
}
.daterangepicker .ranges li {
    margin-right: 16px;
    border-radius: 4px;
    font-size: 12px !important;
    height: 32px;
    color: #585858;
    display: flex;
    align-items: center;
}
/* =================================== */

/* Ajustes para el select de meses */
.daterangepicker select.monthselect, .daterangepicker select.yearselect{
    border: none;
    height: 32px !important;
    margin: 0;
    color: #0b0b0b;
    font-weight: 500;
    font-size: 14px !important;
    line-height: 32px !important;
    text-align: center;
    white-space: nowrap;
    appearance: none;
}
.daterangepicker select.monthselect:hover,
.daterangepicker select.yearselect:hover{
    background-color: #00000010;
}
/* =================================== */




.m-dateRangePicker {
    width: fit-content;
    max-width: 100%;
    min-width: 0;
}

.m-dateRangePicker__visibleInput {
    min-width: inherit;
    max-width: 100%;
    position: relative;
}

/* Periodos cerrados: la misma biblioteca muestra sólo las opciones del campo. */
.daterangepicker.ecras-dateRangePicker.-restrictedPeriods {
    width: 320px;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
}

.daterangepicker.ecras-dateRangePicker.-restrictedPeriods .ranges {
    float: none;
}

.daterangepicker.ecras-dateRangePicker.-restrictedPeriods .ranges ul {
    width: 100% !important;
    border: 0;
    max-height: 320px;
    overflow-y: auto;
    flex-wrap: nowrap;
    margin-bottom: 8px !important;
}

.daterangepicker.ecras-dateRangePicker.-restrictedPeriods .ranges li {
    margin: 0;
    flex-shrink: 0;
}

.daterangepicker.ecras-dateRangePicker .ranges li:focus-visible,
.daterangepicker.ecras-dateRangePicker td.available:focus-visible,
.m-dateRangePicker__display:focus-visible {
    outline: 2px solid #237e54;
    outline-offset: 2px;
}

.daterangepicker.ecras-dateRangePicker.-restrictedPeriods .ranges li.active {
    background-color: #237e54;
    color: #fff;
}

.daterangepicker.ecras-dateRangePicker.-restrictedPeriods .drp-calendar,
.daterangepicker.ecras-dateRangePicker.-restrictedPeriods .applyBtn,
.daterangepicker.ecras-dateRangePicker.-restrictedPeriods .ecras-dateRangeSelection {
    display: none !important;
}
.daterangepicker.ecras-dateRangePicker {
    box-shadow:
        0 20px 48px oklch(0% 0 0 / 0.105),
        0 3px 10px oklch(0% 0 0 / 0.045);
    z-index: 99999999999;
    border-radius: 8px !important;
    padding: 8px 8px 0 8px !important;
}

.daterangepicker.ecras-dateRangePicker:before,
.daterangepicker.ecras-dateRangePicker:after {
    display: none;
}

/* Adapter contra estilos globales de tablas del backoffice. */
.daterangepicker.ecras-dateRangePicker .calendar-table table {
    border-collapse: collapse;
    border-spacing: 0;
    display: table;
    margin: 0;
    width: 100%;
}

.daterangepicker.ecras-dateRangePicker .calendar-table thead {
    display: table-header-group;
}

.daterangepicker.ecras-dateRangePicker .calendar-table tbody {
    display: table-row-group;
    width: auto;
}

.daterangepicker.ecras-dateRangePicker .calendar-table tr {
    display: table-row;
    padding: 0;
    border: none !important;
}

.daterangepicker.ecras-dateRangePicker .calendar-table th {
    color: #7d7d7d;
    font-size: 12px !important;
    text-transform: none !important;
    align-items: initial;
    background: transparent;
    display: table-cell;
    font-weight: 400 !important;
    width: 36px;
}
.daterangepicker.ecras-dateRangePicker .calendar-table td {
    align-items: initial;
    background: transparent;
    display: table-cell;
    justify-content: initial;
    line-height: 23px;
    min-width: 36px;
    text-align: center;
    vertical-align: middle;
    width: 36px;
    height: 36px;
    color: #121212 !important;
    border: none !important;
    vertical-align: middle;
}

.daterangepicker.ecras-dateRangePicker .calendar-table th.month {
    width: auto;
}

.daterangepicker.ecras-dateRangePicker td.available:hover,
.daterangepicker.ecras-dateRangePicker th.available:hover {
    background-color: #eee;
    border-color: transparent;
    color: inherit;
}

.daterangepicker.ecras-dateRangePicker td.off,
.daterangepicker.ecras-dateRangePicker td.off.in-range,
.daterangepicker.ecras-dateRangePicker td.off.start-date,
.daterangepicker.ecras-dateRangePicker td.off.end-date {
    background-color: #fff;
    border-color: transparent;
    color: #999;
}

.daterangepicker.ecras-dateRangePicker td.in-range {
    background-color: #ebf4f8;
    border-color: transparent;
    color: #000;
}

.daterangepicker.ecras-dateRangePicker td.active,
.daterangepicker.ecras-dateRangePicker td.active:hover {
    background-color: #237e54;
    border-color: transparent;
    color: #fff !important;
}
.daterangepicker.ecras-dateRangePicker.-emptySelection td.active,
.daterangepicker.ecras-dateRangePicker.-emptySelection td.active:hover,
.daterangepicker.ecras-dateRangePicker.-emptySelection td.start-date,
.daterangepicker.ecras-dateRangePicker.-emptySelection td.end-date,
.daterangepicker.ecras-dateRangePicker.-emptySelection td.in-range {
    background-color: transparent !important;
    border-color: transparent !important;
    color: inherit !important;
}
.daterangepicker.ecras-dateRangePicker.-emptySelection .ranges li.active {
    background-color: transparent !important;
    color: inherit !important;
}
.daterangepicker.ecras-dateRangePicker.-emptySelection .ecras-dateRangeSelection { display: none; }

/* Días de meses contiguos: secundarios incluso si pertenecen al rango seleccionado. */
.daterangepicker.ecras-dateRangePicker .calendar-table td.off.ends {
    background-color: transparent !important;
    color: #b0b0b0 !important;
}
.daterangepicker.ecras-dateRangePicker .calendar-table td.off.ends.available:hover {
    color: #7d7d7d !important;
}

/* Modificar espaciado de los calendarios */
.daterangepicker .drp-calendar.right{
    padding: 8px 16px 8px 16px !important;
}
.daterangepicker .drp-calendar.left{
    padding: 8px 0 8px 16px !important;
}
/* =================================== */


.daterangepicker td.start-date {
    border-radius: 12px 0 0 12px !important;
}
.daterangepicker td.end-date {
    border-radius: 0 12px 12px 0 !important;
}

.daterangepicker .ranges ul,
.daterangepicker.ecras-dateRangePicker .drp-buttons {
    border-color: oklch(0.965 0 0) !important;
}

.daterangepicker.ecras-dateRangePicker .calendar-table table,
.daterangepicker.show-ranges.ltr .drp-calendar.left,
.daterangepicker .calendar-table {
    border: none !important;
}
.daterangepicker.ecras-dateRangePicker .btn {
    gap: 6px;
    width: fit-content;
    justify-content: center;
    align-items: center;
    border-radius: 4px !important;
    color: var(--buttonTextColor) !important;
    background-color: var(--buttonBgColor) !important;
    border: none !important;
    opacity: 1 !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
    text-transform: capitalize;
}
.daterangepicker.ecras-dateRangePicker .btn:hover {
    background-color: var(--buttonHoverBgColor) !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}
.daterangepicker.ecras-dateRangePicker .btn.-disabled {
    background-color: var(--buttonHoverBgColor) !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.4 !important;
}

/* region ----------------------------- Primary -- */
.daterangepicker.ecras-dateRangePicker .btn-primary {
    --buttonBgColor: #237e54;
    --buttonHoverBgColor: #12402b;
    --buttonTextColor: #ffffff;
}
.daterangepicker.ecras-dateRangePicker .btn-default {
    --buttonBgColor: #f3f4f6;
    --buttonHoverBgColor: #e2e4e9;
    --buttonTextColor: #364153;
}

.m-dateRangePicker__display {
    max-width: 100%;
    box-sizing: border-box;
    text-overflow: ellipsis;
    width: 100%;
    padding-left: 40px !important;
    padding-right: 32px !important;
    cursor: pointer;
    font-size: 14px;
    line-height: 16px;
    min-height: var(--input-height);
    border: var(--input-border) !important;
    border-radius: var(--ecras-control-radius) !important;
    box-shadow: none !important;
    width: fit-content;
}
.m-dateRangePicker__display:placeholder-shown{
    background-color: white;
}
.m-dateRangePicker__display::placeholder{
    color: #71717a;
}
.m-dateRangePicker__calendarIcon {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 16px;
    height: 16px;
    color: oklch(0.46 0 0);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}
.m-dateRangePicker__caret {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 16px;
    height: 16px;
    color: oklch(0.46 0 0);
    transform: translateY(-50%);
    pointer-events: none;
    transition: transform 160ms ease;
}
.m-dateRangePicker__visibleInput:has(
        .m-dateRangePicker__display[aria-expanded="true"]
    )
    .m-dateRangePicker__caret {
    transform: translateY(-50%) rotate(180deg);
}

.m-searchConfigurator__inputItem:is(.-unavailable, .-inactive) {
    display: none;
}

.daterangepicker.ecras-dateRangePicker.-dateOnly .calendar-time {
    opacity: 0.45;
    pointer-events: none;
}

.daterangepicker.ecras-dateRangePicker .drp-buttons .btn {
    margin-top: 4px;
    margin-left: 0;
}
.daterangepicker.ecras-dateRangePicker .drp-buttons {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 8px 14px 8px ;
}
.daterangepicker.ecras-dateRangePicker .ecras-dateRangeSummary {
    order: 0;
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.daterangepicker.ecras-dateRangePicker .ecras-dateRangeSelection {
    order: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 1 auto;
    gap: 5px;
    min-width: 0;
}
.daterangepicker.ecras-dateRangePicker .ecras-dateRangeSelectionLabel {
    white-space: nowrap;
    font-size: 12px;
    color: oklch(0.59 0 0);
}

.daterangepicker.ecras-dateRangePicker .ecras-dateRangeClear {
    order: 1;
}
.daterangepicker.ecras-dateRangePicker .drp-selected {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: left;
    font-size: 14px;
    line-height: 16px;
    font-weight: 500;
}
.daterangepicker.ecras-dateRangePicker .ecras-dateRangeOpenEnd,
.daterangepicker.ecras-dateRangePicker .ecras-dateRangeOpenStart {
    order: 2;
}
.daterangepicker.ecras-dateRangePicker .cancelBtn {
    order: 3;
    margin-left: auto !important;
}
.daterangepicker.ecras-dateRangePicker .applyBtn {
    order: 4;
}




@media (max-width: 767px) {
    .daterangepicker.ecras-dateRangePicker {
        position: fixed !important;
        top: 8vh !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-height: 84vh;
        overflow: auto;
        box-sizing: border-box;
    }

    .daterangepicker.ecras-dateRangePicker .ranges ul {
        width: auto;
        display: flex;
        flex-wrap: wrap;
    }

    .daterangepicker.ecras-dateRangePicker .drp-calendar {
        float: none;
        max-width: none;
        width: 100%;
        box-sizing: border-box;
    }

    .daterangepicker.ecras-dateRangePicker .drp-buttons {
        white-space: normal;
    }

    .daterangepicker.ecras-dateRangePicker .drp-selected {
        display: block;
    }
}


/* ===== components/filter-controls.css ===== */
.m-filterMultiSelect {
    position: relative;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    color: #18181b;
    font-size: 14px;
    box-sizing: border-box;
}
.m-searchConfiguratorInputItem__input > .e-input {
    flex: 1 1 0%;
    width: 100%;
    min-width: 0;
    align-items: stretch;
}
.m-filterMultiSelect select.-multiEnhanced {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.m-filterMultiSelect__button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: var(--input-height);
    border: var(--input-border) !important;
    border-radius: var(--ecras-control-radius);
    background: #fff;
    padding: 6px 12px 6px 6px;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    box-sizing: border-box;
}
.m-filterMultiSelect__button:is(:hover, [aria-expanded="true"]):not(:disabled) {
    border-color: #a1a1aa;
    background: #fafafa;
}
.m-filterMultiSelect__button:focus-visible,
.m-filterMultiSelect__option:has(input:focus-visible) {
    outline: 2px solid #237e54;
    outline-offset: 2px;
}
.m-filterMultiSelect__button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.m-filterMultiSelect__value {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    min-height: 28px;
    flex: 1;
    overflow: hidden;
}
.m-filterMultiSelect__chip,
.m-filterMultiSelect__more {
    min-width: 0;
    max-width: 144px;
    overflow: hidden;
    padding: 4px 8px;
    border-radius: var(--ecras-control-radius);
    box-shadow: oklch(0.965 0 0) 0px 0px 0px 1px inset;
    background: #f4f4f5;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 24px;
}
.m-filterMultiSelect__more {
    flex-shrink: 0;
    color: #52525b;
    font-variant-numeric: tabular-nums;
}
.m-filterMultiSelect__placeholder {
    color: #71717a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 6px;
}
.m-filterMultiSelect__chevron {
    color: oklch(0.46 0 0);
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}
.m-filterMultiSelect__button[aria-expanded="true"]
    .m-filterMultiSelect__chevron {
    transform: rotate(180deg);
}
.m-filterMultiSelect__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 5000;
    padding: 6px;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    box-shadow:
        0 10px 30px #18181b12,
        0 2px 6px #18181b08;
    background: #fff;
    width: fit-content;
    min-width: 250px;
}
.m-filterMultiSelect__panel[hidden] {
    display: none;
}
.m-filterMultiSelect__search {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
}
.m-filterMultiSelect__actions {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-bottom: 1px solid #f4f4f5;
}
.m-filterMultiSelect__actions button {
    border: 0;
    padding: 0;
    background: none;
    color: #52525b;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.m-filterMultiSelect__options {
    max-height: 260px;
    overflow-y: auto;
    padding-top: 4px;
    width: fit-content;
    min-width: 250px;
}
.m-filterMultiSelect__option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 7px;
    cursor: pointer;
}
.m-filterMultiSelect__option:hover {
    background: #f4f4f5;
}
.m-filterMultiSelect__option > span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.m-filterMultiSelect__option input[type="checkbox"] {
    display: block;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
}
.m-filterMultiSelect__check {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #237e54;
    visibility: hidden;
}
.m-filterMultiSelect__option.-selected .m-filterMultiSelect__check {
    visibility: visible;
}
.m-filterMultiSelect__option:has(input:disabled) {
    opacity: 0.42;
    cursor: not-allowed;
}

.m-searchConfiguratorInputItem__input {
    min-width: 0;
}
.m-searchConfigurator__hint {
    margin: 0 0 16px;
    color: #727272;
    font-size: 12px;
    line-height: 1.6;
}
.m-complexFilter__searchConfigurator {
    min-width: 0;
}
.m-complexFilter__searchConfigurator .m-searchConfigurator__header {
    min-width: 0;
}

.m-searchConfigurator__actionContainer,
.m-searchConfigurator__actionContainer .m-actionContainer__group {
    flex-wrap: wrap;
    gap: 8px;
}
.m-searchConfiguratorInputItem__input > .e-input > :is(select, input) {
    min-width: 0;
    max-width: 100%;
}
.e-container__content:has(
    > .fran6validate > .m-searchConfigurator__inputContainer
) {
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .m-searchConfigurator__inputItem {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 24px;
        gap: 8px;
    }
    .m-searchConfiguratorInputItem__label {
        grid-column: 1;
        grid-row: 1;
    }
    .m-searchConfiguratorInputItem__input {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .m-searchConfiguratorInputItem__clear {
        grid-column: 2;
        grid-row: 1;
    }
    .m-filterMultiSelect__panel {
        min-width: 0;
        box-sizing: border-box;
    }
}

.m-filterComparisonNotices {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    box-sizing: border-box;
}
.m-filterComparisonNotices ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.m-chartSupplies {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0 0;
}
.m-chartSupplies__header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 8px;
}
.m-chartSupplies__title {
    font-size: 12px;
    font-weight: normal;
    color: #52525b;
}
.m-chartSupplies__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.m-chartSupplies__item {
    position: relative;
    display: flex;
    min-width: 0;
    max-width: 100%;
}
.m-chartSupplies__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    background: #fff;
    color: #27272a;
    font: inherit;
    font-size: 13px;
    line-height: 20px;
    cursor: pointer;
}
.m-chartSupplies__toggle:hover {
    border-color: #71717a;
}
.m-chartSupplies__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.m-chartSupplies__toggle[aria-pressed="false"] {
    color: #71717a;
    background: transparent;
}
.m-chartSupplies__toggle[aria-pressed="false"] .m-chartSupplies__name {
    text-decoration: line-through;
}
.m-chartSupplies__toggle[aria-pressed="false"] .m-chartSupplies__color {
    opacity: 0.35;
}
.m-chartSupplies__color {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
}
.m-chartSupplies__code {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 5;
    width: max-content;
    max-width: min(80vw, 500px);
    padding: 6px 10px;
    border-radius: 4px;
    background: #18181b;
    color: #fff;
    overflow-wrap: anywhere;
}
.m-chartSupplies__item:hover .m-chartSupplies__code,
.m-chartSupplies__item:focus-within .m-chartSupplies__code {
    display: block;
}
.m-chartSupplies__states {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 4px 10px;
    border: 1px solid #dce3ed;
    border-radius: 6px;
    background: #edf1f6;
    color: #475569;
    font-size: 12px;
    line-height: 18px;
}
.m-chartSupplies__state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.m-chartSupplies__state::before {
    content: "";
    width: 22px;
    border-top: 2px solid #52525b;
}
.m-chartSupplies__state.-simulated::before {
    border-top-style: dashed;
}
.m-filterChart[data-chart-type="bar"] .m-chartSupplies__state::before {
    width: 18px;
    height: 10px;
    box-sizing: border-box;
    border: 1px solid #52525b;
    border-radius: 2px;
    background: #52525b;
}
.m-filterChart[data-chart-type="bar"]
    .m-chartSupplies__state.-simulated::before {
    background: repeating-linear-gradient(
        135deg,
        #52525b 0,
        #52525b 1px,
        transparent 1px,
        transparent 4px
    );
}
.m-filterChart {
    height: auto !important;
    min-height: 370px;
}
.m-filterChart .o-jaxChart__body {
    flex: 1 0 220px;
    min-height: 220px;
}
:is(.m-filterChart, .m-panelChart__canvas) .m-jaxChartHeader {
    flex-wrap: wrap;
    gap: 8px 16px;
}
:is(.m-filterChart, .m-panelChart__canvas) .m-jaxChartHeader__action {
    flex-wrap: wrap;
}
.m-chartType {
    display: inline-flex;
    gap: 2px;
    padding: 2px;
    border: 1px solid #d4d4d8;
    border-radius: 6px;
    background: #edf1f6;
}
.m-chartType__button {
    min-height: 28px;
    padding: 4px 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #52525b;
    font: inherit;
    font-size: 12px;
    line-height: 20px;
    cursor: pointer;
}
.m-chartType__button[aria-pressed="true"] {
    background: #fff;
    color: #175b3c;
    box-shadow: 0 1px 3px #18181b15;
}
.m-chartType__button:focus-visible {
    outline: 2px solid #237e54;
    outline-offset: 2px;
}
.m-chartVariables {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 0;
}
.m-chartVariables__label {
    margin-right: 6px;
    font-size: 12px;
    color: #52525b;
}
.m-chartVariables__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid #237e54;
    border-radius: 6px;
    background: #eaf5ee;
    color: #175b3c;
    font: inherit;
    font-size: 13px;
    line-height: 20px;
    cursor: pointer;
}
.m-chartVariables__toggle[aria-pressed="false"] {
    border-color: #d4d4d8;
    color: #71717a;
    background: #fff;
}
.m-chartVariables__toggle:focus-visible,
.m-chartSupplies__toggle:focus-visible {
    outline: 2px solid #237e54;
    outline-offset: 3px;
}
.m-chartVariables__check {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}
.m-chartVariables__toggle[aria-pressed="false"] .m-chartVariables__check {
    visibility: hidden;
}
.m-chartVariables__empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    padding: 12px;
    border-radius: 6px;
    background: #fffffff0;
    color: #52525b;
    text-align: center;
    font-size: 13px;
    pointer-events: none;
}
.m-chartVariables__empty[hidden] {
    display: none;
}
@media (max-width: 600px) {
    .m-chartVariables__label {
        width: 100%;
    }
    :is(.m-filterChart, .m-panelChart__canvas) .m-jaxChartHeader__action {
        gap: 8px;
        flex-wrap: wrap;
    }
}
.m-searchConfigurator__inputItem[data-filter="formato_exportacion"] .m-searchConfiguratorInputItem__input {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.m-searchConfigurator__inputItem[data-filter="formato_exportacion"] .m-searchConfiguratorInputItem__label {
    min-width: 0;
}
.m-searchConfigurator__inputItem[data-filter="formato_exportacion"] .m-searchConfiguratorInputItem__labelText {
    text-wrap: wrap;
    text-transform: none;
}
.m-exportFormatHint {
    display: block;
    max-width: 460px;
    color: #71717a;
    font-size: 12px;
    line-height: 1.5;
}

.m-cupsStatus {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8rem;
    color: var(--mainColor);
    font-size: 13rem;
}

.m-cupsStatus:has(span:not(:empty)) {
    margin-top: 6rem;
}

.m-cupsStatus[data-state="loading"] span::before {
    content: "";
    display: inline-block;
    width: 10rem;
    height: 10rem;
    margin-inline-end: 7rem;
    border: 2rem solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    animation: ecras-search-spin 800ms linear infinite;
}

.m-cupsStatus [hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .m-cupsStatus[data-state="loading"] span::before {
        animation: none;
    }
}


/* ===== components/chart-tooltip.css ===== */
.m-chartTooltip {
    --reading-border: #e5e7eb;
    box-sizing: border-box;
    padding: 12rem 14rem;
    border: 1px solid var(--reading-border);
    border-radius: 8rem;
    background: var(--backgroundColor, #fff);
    color: var(--secondaryColor, #1e1e2f);
    box-shadow: 0 2px 8px #1e1e2f12;
    font: 13rem/1.35 Roboto, Arial, sans-serif;
    overflow-wrap: anywhere;
}
.m-chartTooltip__time,
.m-chartTooltip__cups,
.m-chartTooltip__help,
.m-chartTooltip__unit {
    color: #475569;
    font-size: 11rem;
    font-weight: 400;
}
.m-chartTooltip__identity {
    display: flex;
    align-items: flex-start;
    gap: 7rem;
    margin-top: 6rem;
}
.m-chartTooltip__identity .m-chartSupplies__color { flex: 0 0 8rem; height: 8rem; margin-top: 5rem; }
.m-chartTooltip__name { font-weight: 600; }
.m-chartTooltip__cups { display: block; margin-top: 2rem; }
.m-chartTooltip__data {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: baseline;
    gap: 4rem 14rem;
    margin-top: 9rem;
    padding-top: 8rem;
    border-top: 1px solid var(--reading-border);
}
.m-chartTooltip__data > .m-readingOrigin { grid-column: 1 / -1; }
.m-chartTooltip__value { grid-column: 2; font-size: 18rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.m-chartTooltip__unit { margin-inline-start: 4rem; }
.m-chartTooltip__help {
    margin-top: 8rem;
    padding-top: 7rem;
    border-top: 1px solid var(--reading-border);
}
.m-readingOrigin {
    display: inline-flex;
    align-items: center;
    gap: 5rem;
    color: #475569;
    font-size: 11rem;
    white-space: nowrap;
}
.m-readingOrigin::before {
    content: "";
    width: 10rem;
    border-top: 2rem solid currentColor;
}
.m-readingOrigin.-simulated::before { border-top-style: dashed; }


/* ===== components/chart-readings.css ===== */
.m-chartReadings__hint,
.m-chartReadings__empty {
    margin: 8rem 0;
    color: #475569;
    font-size: 13rem;
}

.o-jaxChart__canvas[aria-describedby]:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}

.m-chartReadings {
    --reading-border: #e2e8f0;
    --reading-excess: #b91c1c;
    --reading-header: #f8fafc;
    --reading-surface: var(--backgroundColor, #fff);
    container-type: inline-size;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 12rem 0 10rem;
    border: 1px solid var(--reading-border);
    border-radius: 8rem;
    background: var(--reading-surface);
    color: var(--secondaryColor, #1e1e2f);
    user-select: text;
}
.m-chartReadings__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8rem 16rem;
    padding: 12rem 16rem;
    border-bottom: 1px solid var(--reading-border);
}
.m-chartReadings__title {
    margin: 0;
    font-size: 16rem;
    font-weight: 600;
    line-height: 1.3;
}
.m-chartReadings__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem 8rem;
    margin-top: 4rem;
    color: #475569;
    font-size: 12rem;
    font-variant-numeric: tabular-nums;
}
.m-chartReadings__count {
    padding: 2rem 7rem;
    border-radius: 10rem;
    background: #f1f5f9;
}
.m-chartReadings__actions {
    display: flex;
    align-items: center;
    gap: 4rem;
}
.m-chartReadings__actions .a-button {
    min-width: 36rem;
    min-height: 36rem;
    padding: 4rem 10rem;
}
.m-chartReadings__actions .m-chartReadings__step {
    font-size: 21rem;
    line-height: 1;
}
.m-chartReadings__actions .a-button[aria-disabled=true] {
    opacity: .46 !important;
    cursor: default;
}
.m-chartReadings :is(button, .m-chartReadings__scroll):focus-visible {
    outline: 2px solid var(--mainColor, #304c40);
    outline-offset: -2px;
}
.m-chartReadings__empty { padding-inline: 16rem; }
.m-chartReadings__scroll {
    container-type: inline-size;
    max-height: min(320rem, 55vh);
    overflow: auto;
    border-radius: 0 0 7rem 7rem;
}
table.m-chartReadings__table {
    --reading-identity-width: clamp(144rem, 24cqi, 280rem);
    --reading-metric-width: 108rem;
    --reading-metric-budget: calc((100cqi - var(--reading-identity-width)) / var(--readings-columns, 1));
    min-width: calc(var(--reading-identity-width) + var(--reading-metric-width) * var(--readings-columns, 1));
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}
.m-chartReadings table.m-chartReadings__table > :is(thead, tbody) > tr > :is(th, td) {
    box-sizing: border-box;
    padding: 11rem 14rem;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
}
.m-chartReadings table.m-chartReadings__table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--reading-header);
    box-shadow: inset 0 -1px var(--reading-border);
}
.m-chartReadings__table tbody tr + tr > :is(th, td) {
    border-top: 1px solid var(--reading-border);
}
.m-chartReadings table.m-chartReadings__table tbody tr:hover > :is(th, td) {
    background-color: var(--reading-header);
}
.m-chartReadings table.m-chartReadings__table tr > .-numeric {
    width: clamp(var(--reading-metric-width), var(--reading-metric-budget), 210rem);
    text-align: right;
}
.m-chartReadings__table tr > .-origin {
    width: clamp(var(--reading-metric-width), var(--reading-metric-budget), 156rem);
}
.m-chartReadings table.m-chartReadings__table tr > :first-child {
    position: sticky;
    left: 0;
    background: var(--reading-surface);
    box-shadow: inset -1px 0 var(--reading-border);
}
.m-chartReadings table.m-chartReadings__table thead tr > :first-child {
    z-index: 2;
    background: var(--reading-header);
    box-shadow: inset -1px -1px var(--reading-border);
}
.m-chartReadings__identity {
    display: flex;
    align-items: flex-start;
    gap: 8rem;
    font-weight: 600;
}
.m-chartReadings__identity .m-chartSupplies__color {
    flex: 0 0 8rem;
    height: 8rem;
    margin-top: 5rem;
}
.m-chartReadings table.m-chartReadings__table th :is(.m-chartReadings__identity, .m-chartReadings__label, .m-chartReadings__code) {
    overflow: visible;
    white-space: normal;
}
.m-chartReadings__label { min-width: 0; }
.m-chartReadings__table .m-chartReadings__code,
.m-chartReadings table.m-chartReadings__table td > small {
    display: block;
    margin-top: 3rem;
    color: #475569;
    font-size: 11rem;
    font-weight: 400;
    white-space: normal;
    overflow: visible;
}
.m-chartReadings__table .m-readingOrigin {
    display: flex;
    width: fit-content;
    padding: 2rem 7rem;
    border-radius: 10rem;
    background: #f1f5f9;
}
.m-chartReadings__table .m-readingOrigin + .m-readingOrigin { margin-top: 4rem; }
.m-chartReadings__table .m-readingOrigin.-simulated {
    background: #fff4e5;
    color: #854d0e;
}
.m-chartReadings table.m-chartReadings__table tr.-over-capacity > :is(:nth-child(3), .-usage) {
    color: var(--reading-excess);
    font-weight: 600;
}
.m-chartReadings__usageLabel {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 4rem 7rem;
}
.m-chartReadings__percentage { white-space: nowrap; }
.m-chartReadings__excess {
    order: -1;
    padding: 2rem 7rem;
    border-radius: 10rem;
    background: #fef2f2;
    color: var(--reading-excess);
    font-size: 11rem;
}
.m-chartReadings__bar {
    display: block;
    width: 56rem;
    height: 4rem;
    margin: 5rem 0 0 auto;
    overflow: hidden;
    border-radius: 4rem;
    background: #e2e8f0;
}
.m-chartReadings__bar::after {
    content: "";
    display: block;
    width: var(--reading-usage);
    height: 100%;
    border-radius: inherit;
    background: var(--mainColor, #304c40);
}
.-over-capacity .m-chartReadings__bar::after { background: var(--reading-excess); }

@container (max-width: 640px) {
    .m-chartReadings__header { padding-inline: 12rem; }
    .m-chartReadings table.m-chartReadings__table > :is(thead, tbody) > tr > :is(th, td) {
        padding-inline: 10rem;
    }
}


/* ===== components/graph-search-start.css ===== */
.m-graphSearchStart__panel {
    display: grid;
    grid-template-columns: minmax(0, 340rem) minmax(0, 340rem);
    justify-content: center;
    align-items: center;
    gap: clamp(24rem, 5vw, 64rem);
    padding: clamp(20rem, 4vw, 44rem);
    border: 1px solid #dce8df;
    border-radius: 8rem;
    background: linear-gradient(110deg, #eef5ef, #fff 80%);
}

.m-graphSearchStart__image {
    display: block;
    justify-self: center;
    width: auto;
    max-width: 100%;
    max-height: 224rem;
    height: auto;
    object-fit: contain;
}

.m-graphSearchStart__copy {
    display: grid;
    gap: 8rem;
    overflow-wrap: anywhere;
}

.m-graphSearchStart__copy h2 {
    margin: 0;
    color: var(--mainColor);
    font-size: clamp(22rem, 2.2vw, 28rem);
    font-weight: 500;
    line-height: 1.2;
}

.m-graphSearchStart__copy p {
    margin: 0;
    color: #48594f;
    font-size: 16rem;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .m-graphSearchStart__panel {
        grid-template-columns: minmax(0, 340rem);
        gap: 16rem;
        text-align: center;
    }

    .m-graphSearchStart__image {
        max-height: 156rem;
    }
}

.m-graphQuery__notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12rem;
    margin: 0;
    padding: 12rem 16rem;
    border: 1px solid #efcfc1;
    border-radius: 8rem;
    background: #fff2ed;
    color: #893b24;
    font-size: 15rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.m-graphQuery__notice::before {
    content: "!" / "";
    display: grid;
    place-items: center;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    background: #f9ded2;
    font-weight: 600;
    line-height: 1;
}

.m-graphQuery__notice + .a-button {
    margin-top: 12rem;
}

.m-graphQuery__chart {
    height: 370rem;
    min-width: 0;
}

.m-graphQuery__skeleton ~ * {
    display: none;
}

.m-graphQuery__chartSkeleton {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 12rem;
}

.m-graphQuery__chartHeader,
.m-graphQuery__ticks {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12rem;
}

.m-graphQuery__chartActions {
    display: flex;
    gap: 6rem;
}

.m-searchSkeleton__placeholder.-icon { --placeholder-width: 24rem; height: 24rem; flex-shrink: 0; }
.m-searchSkeleton__placeholder.-title { --placeholder-width: 230rem; height: 14rem; }
.m-searchSkeleton__placeholder.-subtitle { --placeholder-width: 160rem; }
.m-searchSkeleton__placeholder.-chartTitle { --placeholder-width: 132rem; height: 14rem; }
.m-searchSkeleton__placeholder.-action { width: 26rem; height: 26rem; }
.m-searchSkeleton__placeholder.-legend { --placeholder-width: 108rem; }
.m-searchSkeleton__placeholder.-tick { --placeholder-width: 36rem; height: 8rem; }

.m-graphQuery__skeletonPanel .m-searchConfigurator__header {
    width: min(230rem, 62vw);
    min-width: 0;
}

.m-graphQuery__plot {
    border-left: 1px solid var(--search-placeholder, #dce5eb);
    border-bottom: 1px solid var(--search-placeholder, #dce5eb);
    background:
        repeating-linear-gradient(to bottom, #e2e9ee 0 1px, transparent 1px 20%),
        repeating-linear-gradient(to right, transparent 0 calc(25% - 1px), #e2e9ee calc(25% - 1px) 25%);
}


/* ===== components/tree-view.css ===== */
.m-treeView {
    --tree-text: var(--secondaryColor, #1e1e2f);
    --tree-muted: #71717a;
    --tree-line: #e5e7eb;
    --tree-hover: #f4f6f5;
    --tree-selected: #eaf4ee;
    color: var(--tree-text);
    font: 13px/1.4 var(--mainFontFamily, "Roboto", sans-serif);
    text-align: left;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.m-treeView, .m-treeView ul { list-style: none; padding: 0; margin: 0; }
.m-treeView .m-treeView__item { display: block; min-width: 0; outline: none; }
.m-treeView__row { position: relative; display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 8px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; box-sizing: border-box; transition: background-color .14s ease; }
.m-treeView__item[aria-selected="true"] > .m-treeView__row { background: var(--tree-selected); --tree-action-background: var(--tree-selected); }
.m-treeView__item:focus-visible > .m-treeView__row { outline: 2px solid #237e54; outline-offset: -2px; }
.m-treeView__chevron { flex: 0 0 12px; width: 12px; font-size: 20px; line-height: 1; text-align: center; color: var(--tree-muted); transition: transform .14s ease; }
.m-treeView__item[aria-expanded="true"] > .m-treeView__row > .m-treeView__chevron { transform: rotate(90deg); }
.m-treeView__icon { flex: 0 0 18px; width: 18px; height: 18px; color: #64748b; }
.m-treeView__icon.-folder { color: #b58a32; }
.m-treeView__icon.-workbook, .m-treeView__icon.-sheet { color: #237e54; }
.m-treeView__icon.-archive { color: #8260b3; }
.m-treeView__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-treeView__badge { flex: 0 0 auto; padding: 2px 6px; border-radius: 5px; background: #f4f4f5; color: var(--tree-muted); font-size: 10px; line-height: 1.5; }
.m-treeView__badge.-warning { background: #fff5d9; color: #926518; }
.m-treeView__actions { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; border-radius: 5px; }
.m-treeView__action { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 28px; min-height: 28px; padding: 4px; border: 0; border-radius: 5px; background: transparent; color: var(--tree-muted); font: inherit; cursor: pointer; }
.m-treeView__action svg { width: 17px; height: 17px; }
.m-treeView__action:hover, .m-treeView__action:focus-visible { background: var(--tree-selected); color: var(--tree-text); }
.m-treeView__action:focus-visible { outline: 2px solid #237e54; outline-offset: 1px; }
@media (hover: hover) and (pointer: fine) {
    .m-treeView__actions { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); opacity: 0; pointer-events: none; background: var(--tree-action-background, var(--tree-hover)); }
    .m-treeView__row:hover > .m-treeView__actions, .m-treeView__item:focus > .m-treeView__row > .m-treeView__actions, .m-treeView__row:focus-within > .m-treeView__actions { opacity: 1; pointer-events: auto; }
    .m-treeView__row.-hasActions:hover > .m-treeView__badge, .m-treeView__item:focus > .m-treeView__row.-hasActions > .m-treeView__badge, .m-treeView__row.-hasActions:focus-within > .m-treeView__badge { visibility: hidden; }
}
.m-treeView .m-treeView__group { margin: 2px 0 2px 14px; padding-left: 10px; border-left: 1px solid var(--tree-line); animation: tree-view-reveal .14s ease-out; }
@keyframes tree-view-reveal { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
@media (hover: hover) and (pointer: fine) { .m-treeView__row:hover { background: var(--tree-hover); } }
@media (prefers-reduced-motion: reduce) { .m-treeView__row, .m-treeView__chevron { transition: none; } .m-treeView__group { animation: none; } }
[data-theme="dark"] .m-treeView { --tree-text: #e4e4e7; --tree-muted: #a1a1aa; --tree-line: #3f3f46; --tree-hover: #27272a; --tree-selected: #193b2b; }


/* ===== templates/export-workspace.css ===== */
.m-exportWorkspace {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
    gap: 16px;
    width: 100%;
    min-width: 0;
    padding: 0;
}
.m-exportWorkspace > .e-container {
    width: 100%;
    min-width: 0;
    margin: 0;
    align-self: auto;
}
.m-exportWorkspace__config .e-container__header {
    cursor: default;
}

.m-exportWorkspace__config .m-searchConfigurator__inputItem {
    display: grid;
    grid-template-columns: 126px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}
.m-exportWorkspace__config .m-searchConfiguratorInputItem__label,
.m-exportWorkspace__config .m-searchConfiguratorInputItem__clear {
    padding-top: 11px;
}
.m-exportWorkspace__config .m-searchConfiguratorInputItem__input {
    min-width: 0;
    max-width: 100%;
}
.m-exportWorkspace__config .m-searchConfiguratorInputItem__input > .e-input {
    min-width: 0;
    width: 100%;
}
.m-exportWorkspace__config .m-dateRangePicker,
.m-exportWorkspace__config .m-dateRangePicker__visibleInput {
    min-width: 0;
    max-width: 100%;
}
.m-exportWorkspace__config .m-dateRangePicker__visibleInput {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.m-exportWorkspace__config .m-dateRangePicker__display {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    text-overflow: ellipsis;
}
.m-exportWorkspace__config .m-filterMultiSelect {
    min-width: 0;
}
.m-exportWorkspace__config .m-filterMultiSelect__chip {
    max-width: 130px;
}
.m-exportWorkspace__config .e-radioOptions__group {
    flex-wrap: wrap;
    max-width: 100%;
}
.m-exportWorkspace__config .m-searchConfiguratorInputItem__labelText {
    white-space: normal;
    text-wrap: wrap;
    text-transform: none;
}
.m-exportWorkspace__config .m-searchConfigurator__actionContainer {
    flex-wrap: wrap;
    gap: 12px;
}
.m-exportWorkspace__config [data-export-submit]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.m-exportPreview {
    position: sticky;
    top: 24px;
}
.m-exportPreview > .e-container__header {
    gap: 12px;
    cursor: default;
}
.m-exportPreview > .e-container__header .right_content {
    min-width: 0;
}
.m-exportPreview > .e-container__header .left_content {
    flex: 0 0 auto;
}
.m-exportPreview__download {
    flex: 0 0 auto;
    white-space: nowrap;
}
.m-exportPreview__download:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.m-exportPreview__content {
    padding: 0 16px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
.m-exportPreview [data-preview-results] {
    min-width: 0;
    width: 100%;
}
.m-exportPreview [hidden] {
    display: none !important;
}
.m-exportPreview__state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 260px;
    padding: 24px 12px;
    text-align: center;
    border: 1px dashed #dfe5e1;
    border-radius: 12px;
    color: #71717a;
    font-size: 14px;
    line-height: 1.6;
}
.m-exportPreview__state p {
    max-width: 290px;
    margin: 0;
}
.m-exportPreview__stateIcon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f0f4f1;
    color: #58806a;
    font-size: 32px;
}
.m-exportPreview__state.-loading .m-exportPreview__stateIcon {
    animation: export-preview-pulse 1s ease-in-out infinite alternate;
}
@keyframes export-preview-pulse {
    to {
        opacity: 0.35;
    }
}
.m-exportPreview__summary {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-bottom: 16px;
    font-size: 12px;
    line-height: 1.5;
    color: #71717a;
}
.m-exportPreview__summaryLine {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
}
.m-exportPreview__summary strong {
    font-size: 13px;
    font-weight: 500;
    color: #1e1e2f;
}
.m-exportPreview__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid #edf0ee;
}
.m-exportPreview__format {
    padding: 3px 7px;
    border-radius: 5px;
    color: #237e54;
    background: #eaf4ee;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.m-exportPreview__toolbar > div {
    display: flex;
    gap: 12px;
}
.m-exportPreview__toolbar button {
    padding: 3px 0;
    border: 0;
    background: transparent;
    color: #71717a;
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}
.m-exportPreview__toolbar button:hover {
    color: #237e54;
}
.m-exportPreview__tree {
    padding: 2px;
}
.m-exportPreview__notice {
    margin: 16px 0 0;
    padding: 10px 12px;
    border: 1px solid #f3e7c6;
    border-radius: 8px;
    color: #8c651e;
    background: #fffbef;
    font-size: 12px;
    line-height: 1.5;
}
.m-exportPreview__footer {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid #edf0ee;
    color: #8a8a94;
    font-size: 11px;
    line-height: 1.6;
}
@media (max-width: 1150px) {
    .m-exportWorkspace {
        grid-template-columns: minmax(0, 1fr);
    }
    .m-exportPreview {
        position: static;
    }
}
@media (max-width: 600px) {
    .e-page:has(.m-exportWorkspace) .e-page__main {
        padding: 16px 12px;
    }
    .m-exportWorkspace {
        gap: 16px;
    }
    .m-exportWorkspace__config .m-searchConfigurator__inputItem {
        grid-template-columns: minmax(0, 1fr) 20px;
        gap: 8px;
    }
    .m-exportWorkspace__config .m-searchConfiguratorInputItem__label,
    .m-exportWorkspace__config .m-searchConfiguratorInputItem__clear {
        padding-top: 0;
    }
    .m-exportWorkspace__config .m-actionContainer__group {
        flex-wrap: wrap;
    }
    .m-exportWorkspace__config
        .m-searchConfigurator__actionContainer
        > .m-actionContainer__group:last-child {
        width: 100%;
        justify-content: flex-end;
    }
    .m-exportPreview__content {
        padding: 16px;
    }
    .m-exportPreview > .e-container__header {
        flex-wrap: wrap;
    }
    .m-exportPreview > .e-container__header .left_content {
        margin-left: auto;
    }
    .m-exportPreview .m-treeView__group {
        margin-left: 8px;
        padding-left: 4px;
    }
    .m-exportPreview .m-treeView__row {
        gap: 5px;
        padding: 6px 4px;
    }
    .m-exportWorkspace .right_content {
        min-width: 0;
    }
    .m-exportWorkspace .m-container__title,
    .m-exportWorkspace h3 {
        line-height: 1.4;
        overflow-wrap: anywhere;
    }
    .m-exportWorkspace .m-container__subtitle {
        font-size: 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .m-exportPreview__state.-loading .m-exportPreview__stateIcon {
        animation: none;
    }
}
.e-page:has(.m-exportWorkspace) {
    grid-template-columns: var(--navWidth) minmax(0, 1fr);
}
.e-page.-navCollapsed:has(.m-exportWorkspace) {
    grid-template-columns: 70px minmax(0, 1fr);
}
.e-page:has(.m-exportWorkspace) .e-page__main,
.e-page:has(.m-exportWorkspace) .e-sectionGroup,
.o-complexFilter__container:has(.m-exportWorkspace) {
    min-width: 0;
    max-width: 100%;
}
.o-complexFilter__container:has(.m-exportWorkspace)
    .m-complexFilter__savedGroup {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    flex-basis: auto;
}
.o-complexFilter__container:has(.m-exportWorkspace) .m-complexFilter__saveItem {
    padding: 16px;
    gap: 12px;
}
.o-complexFilter__container:has(.m-exportWorkspace)
    .m-complexFilter__saveItem.-placeholder {
    display: none;
}
@media (max-width: 600px) {
    .o-complexFilter__container:has(.m-exportWorkspace)
        .m-complexFilter__savedGroup {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
    }
    .o-complexFilter__container:has(.m-exportWorkspace)
        .m-complexFilter__saveItem {
        flex: 0 0 220px;
    }
}


/* ===== components/client-context.css ===== */
.t-page__header:has(.m-clientContext) {
    min-width: 0;
    gap: 12px;
}
.t-page__header .o-mainHeader__infoGroup {
    min-width: 0;
    flex: 0 1 auto;
}
.m-clientContext {
    display: flex;
    align-items: center;
    min-width: 0;
    width: max-content;
    max-width: 100%;
}
.m-clientContext__identity {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    width: max-content;
    max-width: 100%;
}
.m-clientContext__caption {
    color: #727272;
    font-size: 11px;
    line-height: 1;
}
.m-clientContext .m-clientContext__name {
    color: var(--secondaryColor);
    font-size: 16px;
    line-height: 1.25;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: min(48vw, 520px);
}
.m-clientContext__switcher {
    position: relative;
    flex: 0 1 auto;
    width: max-content;
    max-width: 100%;
    min-width: 0;
}
.m-clientContext__switcher > summary {
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: flex-start;
    list-style: none;
    padding: 8px 32px 8px 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    width: max-content;
    max-width: 100%;
}
.m-clientContext__switcher > summary::-webkit-details-marker {
    display: none;
}
.m-clientContext__switcher > summary::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #727272;
    border-bottom: 1.5px solid #727272;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.15s ease;
}
.m-clientContext__switcher[open] > summary::after {
    transform: translateY(-25%) rotate(225deg);
}
.m-clientContext__switcher > summary:hover {
    background-color: #ffffff13;
}
.m-clientContext__switcher[open] > summary {
    background-color: #0000000e;
}
.m-clientContext__form {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    z-index: 6000;
    width: 350px;
    max-width: calc(100vw - 100px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 25px #0002;
}
.m-clientContext__options {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.m-clientContext__options legend {
    margin-bottom: 8px;
    padding: 0;
    font-weight: 600;
    font-size: 14px;
}
.m-clientContext__choices {
    max-height: min(390px, max(80px, calc(100dvh - 260px)));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px;
    border: var(--input-border);
    border-radius: var(--ecras-control-radius);
}
.m-clientContext__clients,
.m-clientContext__centers {
    margin: 0;
    padding: 0;
    list-style: none;
}
.m-clientContext__group + .m-clientContext__group {
    margin-top: 6px;
    padding-top: 6px;
    border-top: var(--input-border);
}
.m-clientContext__branch {
    margin: 2px 0 4px 16px;
    padding-left: 8px;
    border-left: var(--input-border);
}
.m-clientContext__choice,
.m-clientContext__groupName {
    padding: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.m-clientContext__choice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-height: 36px;
    box-sizing: border-box;
    border-radius: var(--ecras-control-radius);
    cursor: pointer;
}
.m-clientContext__choice input {
    appearance: auto;
    flex: none;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    padding: 0;
    accent-color: var(--mainColor);
}
.m-clientContext__choice small {
    display: block;
    font-weight: 400;
}
.m-clientContext__centers .m-clientContext__choice {
    font-weight: 400;
}
.m-clientContext__choice:hover {
    background: var(--containerBackgroundColor);
}
.m-clientContext__choice:has(input:checked) {
    background: #e4f2e9;
    color: var(--mainColor);
}
.m-clientContext__choice:has(input:focus-visible) {
    outline: 2px solid #237e54;
    outline-offset: -2px;
}
.m-clientContext__form small {
    font-size: 12px;
    line-height: 1.5;
    color: #727272;
}
.m-clientContext__actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.m-clientContext__actions .a-button {
    padding: 10px 12px;
}
.m-clientContext__error {
    font-size: 12px;
    color: #a52a2a;
}
.m-clientContext :is(summary, button, a):focus-visible {
    outline: 2px solid #237e54;
    outline-offset: 3px;
}
@media (max-width: 900px) {
    .m-clientContext__form {
        left: auto;
        right: 0;
    }
}
@media (max-width: 600px) {
    .t-page__header .o-mainHeader__infoGroup {
        max-width: calc(100% - 56px);
    }
    .m-clientContext .m-clientContext__name {
        max-width: calc(100vw - 150px);
        font-size: 13px;
    }
    .m-clientContext__caption {
        font-size: 10px;
    }
    .m-clientContext__switcher > summary {
        font-size: 12px;
    }
    .m-clientContext__form {
        position: fixed;
        top: 80px;
        left: 82px;
        right: 16px;
        width: auto;
        max-width: none;
    }
}


/* ===== components/client-map.css ===== */
.m-clientMapContent { padding-bottom: 16px; min-width: 0; }
.m-clientMap { display: flex; flex-direction: column; gap: 16px; width: 100%; min-width: 0; }
.m-clientMap__notice { border: 1px solid #cfe5d6; background: #f1f8f3; border-radius: 8px; padding: 16px; color: var(--secondaryColor); font-size: 14px; }
.m-clientMap__notice p { margin: 6px 0 0; line-height: 1.5; }
.m-clientMap__empty { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 148px; padding: 16px; box-sizing: border-box; border: 1px solid #e0e7e1; border-radius: 10px; background: #f2f6f3; text-align: center; overflow-wrap: anywhere; }
.m-clientMap__emptyIcon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e4ebe6; }
.m-clientMap__empty > strong { color: var(--secondaryColor); }
.m-clientMap__empty > p { max-width: 42ch; margin: 0; font-size: 13px; line-height: 1.5; color: #52525b; }
.m-clientMap__help { margin: 0; font-size: 12px; line-height: 1.5; color: #727272; }
.m-clientMap__toolbar, .m-clientMap__modes { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.m-clientMap__toolbar { justify-content: space-between; }
.m-clientMap .a-button { padding: 10px 14px; min-height: 40px; }
.m-clientMap .m-clientMap__canvas { height: 450px; width: 100%; min-width: 0; border-radius: 10px; border: 1px solid #e0e7e1; background: #f2f6f3; z-index: 0; font-size: 14px; }
.m-clientMap__canvas .leaflet-control a { font-family: sans-serif; }
.m-clientMap__canvas .leaflet-control-container { position: static; }
.m-clientMap__canvas .leaflet-bottom.leaflet-right { max-width: 100%; }
.m-clientMap__canvas.leaflet-container .leaflet-control-attribution {
    padding: 3px 6px;
    background: #fff;
    color: #23392c;
    font: 12px/1.35 Roboto, sans-serif;
}
.m-clientMap__canvas .leaflet-control-attribution a {
    color: #204e3a;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.m-clientMap__canvas .leaflet-control-attribution a:focus-visible { outline: 2px solid currentColor; outline-offset: -1px; }
.m-clientMap__canvas .leaflet-tooltip.m-clientMap__tooltip { width: max-content; max-width: min(280px, 65vw); white-space: normal; overflow-wrap: break-word; word-break: normal; line-height: 1.35; border-radius: 5px; padding: 6px 9px; box-shadow: 0 2px 8px #0003; pointer-events: none; }
.m-clientMapTooltip {
    position: absolute;
    z-index: 1100;
    width: min(360px, calc(100% - 20px));
    max-height: calc(100% - 20px);
    container-type: inline-size;
    border-radius: 10px;
    background: #fff;
    color: #23392c;
    box-shadow: 0 5px 20px #0003;
    font: 14px/1.35 Roboto, sans-serif;
}
.m-clientMapTooltip[hidden] { display: none; }
.m-clientMapTooltip::before {
    content: "";
    position: absolute;
    top: -5px;
    left: var(--tooltip-arrow-x, 50%);
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background: inherit;
    transform: translateX(-50%) rotate(45deg);
}
.m-clientMapTooltip.-above::before { top: auto; bottom: -5px; }
.m-clientMapTooltip__card {
    position: relative;
    max-height: var(--tooltip-max-height);
    box-sizing: border-box;
    overflow: auto;
    overscroll-behavior: contain;
    border-radius: inherit;
    padding: 12px 14px 6px;
}
.m-clientMapTooltip__header { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 10px; }
.m-clientMapTooltip__header h3 { margin: 0; font: 700 15px/1.25 Roboto, sans-serif; color: inherit; overflow-wrap: anywhere; }
.m-clientMapTooltip__header p, .m-clientMapTooltip__footer > span { margin: 3px 0 0; color: #65716a; font-size: 12px; }
.m-clientMapTooltip__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    color: var(--tooltip-accent, #237e54);
    background: var(--tooltip-tint, #edf5f0);
}
.m-clientMapTooltip__header .m-clientMapTooltip__icon { width: 34px; height: 34px; }
.m-clientMapTooltip__icon svg { width: 17px; height: 17px; color: inherit; fill: currentColor; }
.m-clientMapTooltip__header svg { width: 18px; height: 18px; }
.m-clientMapTooltip__energies {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    list-style: none;
    margin: 0;
    padding: 9px 0;
    border-block: 1px solid #e3e9e5;
}
.m-clientMapTooltip__energy { min-width: 0; padding-right: 6px; }
.m-clientMapTooltip__energy:not([hidden]) ~ .m-clientMapTooltip__energy:not([hidden]) { border-left: 1px solid #e3e9e5; padding-left: 6px; }
.m-clientMapTooltip__energy .m-clientMapTooltip__icon { width: 25px; height: 25px; }
.m-clientMapTooltip__energy.-gas { --tooltip-accent: #a65e29; --tooltip-tint: #fff0e5; }
.m-clientMapTooltip__energy.-water { --tooltip-accent: #4bc0c0; --tooltip-tint: color-mix(in srgb, #4bc0c0 17%, #fff); }
.m-clientMapTooltip__energy .m-clientMapTooltip__graph {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.m-clientMapTooltip__energyName { display: flex; align-items: center; gap: 5px; font-size: 12px; overflow-wrap: anywhere; }
.m-clientMapTooltip__graph:not([href]) { cursor: inherit; }
.m-clientMapTooltip__graph[href] .m-clientMapTooltip__energyName > span:last-child { color: var(--mainColor); text-decoration: underline; text-underline-offset: 2px; }
.m-clientMapTooltip__energyValue { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 3px; }
.m-clientMapTooltip__energy strong { font-size: 16px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.m-clientMapTooltip__energy strong.-state, .m-clientMapTooltip__energy small { font-size: 11px; color: #65716a; }
.m-clientMapTooltip__energy strong.-state { font-weight: 500; }
.m-clientMapTooltip .m-clientMapTooltip__loading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 21px;
}
.m-clientMapTooltip__loading::before {
    content: "";
    flex: none;
    box-sizing: border-box;
    width: 13px;
    height: 13px;
    border: 2px solid var(--mainColor);
    border-inline-end-color: transparent;
    border-radius: 50%;
    animation: ecras-search-spin 800ms linear infinite;
}
@media (prefers-reduced-motion: reduce) {
    .m-clientMapTooltip__loading::before { animation: none; }
}
.m-clientMapTooltip__energy small:empty, .m-clientMapTooltip__footer > span:empty { display: none; }
.m-clientMapTooltip__footer { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; padding-top: 3px; }
.m-clientMapTooltip__footer > span { flex: 1 1 130px; }
.m-clientMapTooltip [hidden] { display: none; }
.m-clientMap .m-clientMapTooltip__action.a-button {
    --buttonTextColor: var(--mainColor);
    padding: 3px 6px;
    min-height: 32px;
    max-width: 100%;
    font-size: 12px;
    font-weight: 600;
    white-space: normal;
}
@container (max-width: 335px) {
    .m-clientMapTooltip__card { padding-inline: 10px; }
    .m-clientMapTooltip__header { padding-bottom: 7px; }
    .m-clientMapTooltip__energies { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); padding: 2px 0; }
    .m-clientMapTooltip__energy,
    .m-clientMapTooltip__energy:not([hidden]) ~ .m-clientMapTooltip__energy:not([hidden]) { padding: 0; border-left: 0; border-top: 1px solid #e3e9e5; }
    .m-clientMapTooltip__energy .m-clientMapTooltip__graph { flex-direction: row; align-items: center; justify-content: space-between; gap: 6px; height: auto; padding: 3px 0; }
    .m-clientMapTooltip__energyValue { justify-content: flex-end; }
    .m-clientMapTooltip__energy .m-clientMapTooltip__icon { width: 23px; height: 23px; }
    .m-clientMapTooltip__energy svg { width: 15px; height: 15px; }
    .m-clientMapTooltip__footer > span { flex-basis: 110px; }
}
@media (pointer: coarse) {
    .m-clientMap .m-clientMapTooltip__action.a-button { min-height: 44px; }
}
.m-clientMap__pin { border-radius: 50%; background: #237e54; color: #fff; border: 3px solid #fff; box-shadow: 0 2px 8px #0004; font: 600 14px/30px Roboto, sans-serif; text-align: center; cursor: pointer; }
.m-clientMap__pin:hover { box-shadow: 0 0 0 4px #237e5440, 0 3px 10px #0005; }
.m-clientMap__pin.-group { background: #364153; border-radius: 9px; }
.m-clientMap__pin.-selected { box-shadow: 0 0 0 4px #237e5480, 0 2px 8px #0004; }
.m-clientMap__pin:focus-visible { outline: 3px solid #237e54; outline-offset: 4px; }
.m-clientMap__selection[hidden], .m-clientMap__help[hidden] { display: none; }
.m-clientMap__selection { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.m-clientMap__listHeader, .m-clientMap__groupHeader { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.m-clientMap__listHeader h3 { margin: 0; font-size: 16px; }
.m-clientMap__listHeader > span { font-size: 12px; color: #727272; }
.m-clientMap__group { border-top: 1px solid #e5e7eb; padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.m-clientMap__groupHeader h4 { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.m-clientMap__clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 8px; min-width: 0; }
.m-clientMap__client { min-width: 0; }
.m-clientMap__centers { margin: 6px 0 0 12px; padding: 0; display: grid; gap: 6px; list-style: none; }
.m-clientMap__choice.a-button { width: 100%; justify-content: flex-start; text-align: left; min-width: 0; gap: 12px; }
.m-clientMap__choice[aria-pressed="true"] { --buttonBgColor: #e4f2e9; --buttonTextColor: #17603f; --buttonHoverBgColor: #d5e9dc; }
.m-clientMap__choiceName { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.m-clientMap__choiceIcon { display: flex; align-items: center; justify-content: center; flex: 0 0 24px; height: 24px; border-radius: 50%; background: #e4ebe6; font-size: 12px; }
.m-clientMap__choiceIcon.-group { border-radius: 5px; background: #364153; color: #fff; }
.m-clientMap__selected { visibility: hidden; }
.m-clientMap__choice[aria-pressed="true"] .m-clientMap__selected { visibility: visible; }
.m-clientMap :is(button, a):focus-visible { outline: 2px solid #237e54; outline-offset: 3px; }
@media (max-width: 900px) {
    .p-mi_mapa .e-page__main { padding: 24px 20px; }
}
@media (max-width: 600px) {
    :is(.p-mi_mapa, .p-home) { grid-template-columns: 70px minmax(0, 1fr); }
    :is(.p-mi_mapa, .p-home) .t-page__nav .o-nav__text, :is(.p-mi_mapa, .p-home) .t-page__nav .o-nav__subnav, :is(.p-mi_mapa, .p-home) .t-page__nav .a-subnavToggler, :is(.p-mi_mapa, .p-home) .m-collapseButton span, :is(.p-mi_mapa, .p-home) .m-navBanner { display: none; }
    :is(.p-mi_mapa, .p-home) .t-page__nav hr { width: 40px; }
    :is(.p-mi_mapa, .p-home) .a-ecrasNav__logo { width: 48px; }
    .p-mi_mapa .e-page__main { padding: 20px 12px; min-width: 0; }
    .p-mi_mapa .e-header__title h1 { font-size: 30px; }
    :is(.p-mi_mapa, .p-home) #nav_zona_usuario .a-buttonContainer { display: none; }
    .m-clientMap__canvas { height: 320px; }
    .m-clientMap__canvas[data-map-type="image"] { height: 240px; }
    .m-clientMap__toolbar > [data-map-fit] { width: 100%; }
}


/* ===== templates/home-dashboard.css ===== */
/* Inicio: composition only. Map and chart internals keep their shared styles. */
.p-home .e-page__main {
    min-width: 0;
    padding: 28rem 32rem;
    background-color: var(--containerBackgroundColor);
    background-image:
        linear-gradient(180deg, rgba(247, 247, 247, .16), rgba(247, 247, 247, .45) 42%, #f7f7f7 100%),
        linear-gradient(90deg, #f7f7f7 0%, rgba(247, 247, 247, .88) 28%, rgba(247, 247, 247, .18) 100%),
        url('../images/bg/home-energy-landscape.webp');
    background-repeat: no-repeat;
    background-position: top right;
    background-size: 100% 480rem;
}
.p-home .e-header__title h1 { font-size: 32rem; line-height: 1.2; overflow-wrap: anywhere; margin: 0; }
.p-home .e-header__subtitle h2 { margin: 0; line-height: 1.5; color: #727272; }
.m-homeWelcome { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; gap: 24rem; padding: 8rem 0; }
.m-homeWelcome__context { display: flex; flex-direction: column; align-items: flex-end; gap: 5rem; max-width: 40%; font-size: 12rem; color: #727272; text-align: right; }
.m-homeWelcome__context strong { font-size: 14rem; color: var(--mainColor); overflow-wrap: anywhere; }
.m-homeDashboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24rem; width: 100%; min-width: 0; }
.m-homeDashboard > *, .m-homeDashboard__side > * { min-width: 0; width: 100%; }
.m-homeDashboard__side { display: contents; }
.m-homeNotices { grid-column: 1 / -1; }
.m-homeDashboard .e-container__header { gap: 12rem; flex-wrap: wrap; }
.m-homeDashboard .e-container__header > .right_content { flex: 1 1 160rem; }
.m-homeDashboard__map { align-self: stretch; }
.m-homeDashboard__map.-empty { align-self: start; }
.m-homeDashboard__map.-empty .e-container__header > .right_content { flex-basis: auto; }
.m-homeDashboard__map > .m-clientMapContent { display: flex; flex: 1; }
.m-clientMap--compact { flex: 1; }
.m-clientMap--compact .m-clientMap__canvas { flex: 1; height: auto; min-height: 300px; }
.m-homeMetrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 20rem;
    width: 100%;
}
.m-homeMetric {
    --homeMetricRadius: 14rem;
    --homeMetricHeaderText: #fff;
    --homeMetricInk: color-mix(in srgb, var(--homeMetricColor) 50%, var(--secondaryColor));
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--homeMetricRadius);
    background: var(--blanco, #fff);
    box-shadow: 0 1px 3px #1e1e2f1a;
    overflow-wrap: anywhere;
    font-family: Inter, Roboto, sans-serif;
}
.m-homeMetric.-electricity { --homeMetricColor: #237e54; --homeMetricHeaderText: #fff; }
.m-homeMetric.-gas { --homeMetricColor: #ff6384; }
.m-homeMetric.-water { --homeMetricColor: #4bc0c0; }
.m-homeMetric.-alarms { --homeMetricColor: #f59e0b; }
.m-homeMetric__header {
    display: flex;
    align-items: center;
    gap: 10rem;
    min-height: 52rem;
    padding: 6rem 10rem 6rem 16rem;
    border-radius: var(--homeMetricRadius) var(--homeMetricRadius) 0 0;
    background: var(--homeMetricColor);
    color: var(--homeMetricHeaderText);
}
.m-homeMetric__header h2 { min-width: 0; margin: 0; color: inherit; font-size: 15rem; line-height: 1.25; font-weight: 700; }
.m-homeMetric__icon {
    display: grid;
    place-items: center;
    flex: 0 0 32rem;
    height: 32rem;
    border-radius: 8rem;
    background: #ffffff30;
}
.m-homeMetric.-electricity .m-homeMetric__icon { background: #0002; }
.m-homeMetric__icon svg { width: 18rem; height: 18rem; fill: currentColor; }
.m-homeMetric__body {
    flex: 1;
    min-width: 0;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    container-type: inline-size;
    padding: 12rem 16rem 14rem;
    border-radius: 0 0 var(--homeMetricRadius) var(--homeMetricRadius);
    background: linear-gradient(150deg, color-mix(in srgb, var(--homeMetricColor) 9%, #fff), #fff 78%);
}
.m-homeMetric__watermark.a-icon {
    --size: clamp(90rem, 55cqi, 138rem);
    position: absolute;
    z-index: -1;
    inset-inline-end: -16rem;
    inset-block-end: -25rem;
    color: var(--homeMetricColor);
    fill: currentColor;
    opacity: .14;
    pointer-events: none;
}
.m-homeMetric__value {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6rem;
    min-height: 40rem;
    color: var(--secondaryColor);
    font-variant-numeric: tabular-nums;
}
.m-homeMetric__value strong {
    font-size: clamp(24rem, 3vw, 36rem);
    font-size: clamp(24rem, 13.8cqi, 36rem);
    line-height: 1.08;
    font-weight: 750;
}
.m-homeMetric.-alarms .m-homeMetric__value strong { font-size: 36rem; }
.m-homeMetric__value:has([data-home-consumption-unit]:not([hidden])) strong,
.m-homeMetric__value [data-home-alarm-total] {
    color: var(--homeMetricColor);
}
.m-homeMetric__value span { color: var(--homeMetricInk); font-size: 14rem; font-weight: 700; }
.m-homeMetric__value[aria-busy="true"] {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10rem;
    color: var(--homeMetricInk);
}
.m-homeMetric__value[aria-busy="true"]::before {
    content: "";
    flex: none;
    box-sizing: border-box;
    width: 22rem;
    height: 22rem;
    border: 2rem solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    animation: ecras-search-spin 800ms linear infinite;
}
.m-homeMetric__value[aria-busy="true"]::after {
    content: "";
    width: 76rem;
    max-width: 50%;
    height: 14rem;
    border-radius: 8rem;
    background: #e5e7eb;
}
.m-homeMetric__period { margin-bottom: 6rem; color: #354456; font-size: 13rem; line-height: 18rem; font-weight: 650; }
.m-homeMetric__status {
    display: flex;
    align-items: center;
    gap: 5rem;
    width: fit-content;
    min-height: 22rem;
    color: #4b5563;
    font-size: 12rem;
    line-height: 16rem;
}
.m-homeMetric__statusIcon.a-icon { display: none; --size: 14rem; fill: currentColor; }
[data-consumption-state="reading"] .m-homeMetric__statusIcon.-reading,
[data-consumption-state="empty"] .m-homeMetric__statusIcon.-empty { display: block; }
.m-homeMetric__body[data-consumption-state="empty"] .m-homeMetric__value { color: #647184; }
.m-homeMetric__body[data-consumption-state="empty"] .m-homeMetric__status {
    padding: 2rem 7rem;
    border-radius: 6rem;
    background: #e9edf1;
    font-weight: 600;
}
.m-homeMetric.-alarms .m-homeMetric__status { font-size: 13rem; font-weight: 650; }
a.m-homeMetric:is(:link, :visited) { color: inherit; text-decoration: none; }
.m-homeMetric__arrow {
    display: grid;
    place-items: center;
    flex: 0 0 36rem;
    height: 36rem;
    margin-left: auto;
    border-radius: 8rem;
    background: #0000000f;
}
.m-homeMetric__arrow svg { width: 18rem; height: 18rem; transform: rotate(180deg); }
a.m-homeMetric:focus-visible { outline: 2px solid var(--secondaryColor); outline-offset: 3px; }
@media (hover: hover) {
    a.m-homeMetric { transition: transform 160ms ease, box-shadow 160ms ease; }
    a.m-homeMetric:hover { transform: translateY(-2px); box-shadow: 0 4px 10px #1e1e2f20; }
}
@media (prefers-reduced-motion: reduce) {
    a.m-homeMetric { transition: none; }
    a.m-homeMetric:hover { transform: none; }
    .m-homeMetric__value[aria-busy="true"]::before { animation: none; }
}
.m-homeDashboard .e-container__content { width: 100%; min-width: 0; }
.m-homeDashboard .a-button { min-height: 40rem; padding: 10rem 14rem; text-decoration: none; }
.m-homeDashboard :is(a, summary):focus-visible { outline: 2px solid #237e54; outline-offset: 3px; }
.m-homeTracking__content, .m-homeNotices__content { display: flex; flex-direction: column; align-items: flex-start; gap: 16rem; }
.m-homeTracking__workspace .panel-tabs { width: 100%; }
.m-homeTracking__workspace .panel-tabs label { font-size: 12rem; }
.m-homeTracking .e-graph_card { width: 100%; min-width: 0; max-width: none; box-shadow: none; border-radius: 0; border: 0; gap: 12rem; background: transparent; }
.m-homeTracking .e-graph_card .e-container__header { border: 0; padding: 0; }
.m-homeTracking .e-graph_card .e-container__content { padding: 0; background: transparent; border: 0; }
.m-homeTracking .e-graphic { width: 100%; background: transparent; border: 0; }
.m-homeTracking .m-panelChart__canvas { height: 260rem; }
.m-homeEmpty { margin: 0; padding: 12rem 0; font-size: 14rem; line-height: 1.6; color: #727272; }
.m-homeEmpty p { margin: 0 0 16rem; }
.m-homeNote { margin: 0; font-size: 12rem; line-height: 1.6; color: #727272; }

.m-homeZones__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 125rem), 1fr)); gap: 8rem; }
.m-homeZones__grid .m-homeZones__link { width: 100%; min-width: 0; flex-direction: column; gap: 10rem; text-align: center; padding: 16rem 10rem; font-size: 12rem; line-height: 1.4; }
.m-homeZones__link i { display: flex; width: 24rem; height: 24rem; align-items: center; justify-content: center; }
.m-homeZones__link i svg { width: 24rem; height: 24rem; }
.m-homeZones__link small { display: block; margin-top: 4rem; font-size: 11rem; font-weight: 400; color: #727272; }
.m-homeDiscover { background: linear-gradient(145deg, #fff, #fff7ed); }
.m-homeDiscover__content { display: flex; flex-direction: column; gap: 8rem; }
.m-homeDiscover__zone { width: 100%; border: 1px solid #e5e7eb; border-radius: 8rem; background: #fff; }
.m-homeDiscover__zone summary { display: flex; align-items: center; gap: 10rem; padding: 12rem; cursor: pointer; font-size: 14rem; list-style: none; }
.m-homeDiscover__zone summary::-webkit-details-marker { display: none; }
.m-homeDiscover__zone summary > i { display: flex; flex: 0 0 20rem; }
.m-homeDiscover__zone summary > i svg { width: 20rem; height: 20rem; }
.m-homeDiscover__zone summary > span { overflow-wrap: anywhere; }
.m-homeDiscover__plus { margin-left: auto; font-size: 20rem; color: var(--mainColor); }
.m-homeDiscover__zone[open] .m-homeDiscover__plus { transform: rotate(45deg); }
.m-homeDiscover__zone p { margin: 0; padding: 0 12rem 12rem; font-size: 13rem; line-height: 1.6; color: #727272; }
@media (max-width: 1200px) {
    .m-homeDashboard { grid-template-columns: minmax(0, 1fr); }
    .m-homeMetrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .m-homeDashboard--zones { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .p-home .e-page__main { padding: 24rem 20rem; }
    .m-homeWelcome { align-items: flex-start; flex-direction: column; gap: 16rem; }
    .m-homeWelcome__context { align-items: flex-start; text-align: left; max-width: 100%; }
    .m-homeDashboard--zones { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .m-homeMetrics { grid-template-columns: minmax(0, 1fr); gap: 10rem; }
    .m-homeMetric__header { gap: 8rem; padding-inline: 12rem 8rem; }
    .m-homeMetric__header h2 { font-size: 14rem; }
    .m-homeMetric__icon { flex-basis: 28rem; height: 28rem; }
    .m-homeMetric__arrow { flex-basis: 32rem; height: 32rem; }
    .m-homeMetric__body { padding-inline: 12rem; }
}
@media (max-width: 600px) {
    .p-home .e-page__main {
        padding: 20rem 12rem;
        background-size: 100% 380rem, 100% 380rem, auto 380rem;
    }
    .p-home .e-header__title h1 { font-size: 28rem; }
    .m-homeDashboard { gap: 16rem; }
    .m-clientMap--compact .m-clientMap__canvas { flex: none; height: 240px; min-height: 240px; }
}


/* ===== components/dashboard-carousel.css ===== */
.m-homeCarousel { width: 100%; min-width: 0; }
.m-homeCarousel__track { display: flex; width: 100%; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; border: 1px solid #e5e7eb; border-radius: 8rem; }
.m-homeCarousel__track::-webkit-scrollbar { display: none; }
.m-homeCarousel__track:focus-visible { outline: 2px solid #237e54; outline-offset: 3px; }
.m-homeCarousel__slide { flex: 0 0 100%; min-width: 0; padding: 12rem; scroll-snap-align: start; scroll-snap-stop: always; }
.m-homeCarousel__slide .e-graph_card .e-container__header { user-select: none; }
.m-homeCarousel__navigation { display: flex; justify-content: space-between; align-items: center; gap: 12rem; padding-top: 12rem; }
.m-homeCarousel__dots { display: flex; flex: 1; flex-wrap: wrap; justify-content: center; min-width: 0; }
.m-homeCarousel__dots .m-homeCarousel__dot { width: 24rem; min-height: 40rem; padding: 0; }
.m-homeCarousel__dot > span { width: 8rem; height: 8rem; border-radius: 50%; background: #c5cbd1; }
.m-homeCarousel__dot[aria-current="true"] > span { background: var(--mainColor); }
.m-homeCarousel__position { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.m-homeCarousel[hidden], .m-homeCarousel__navigation[hidden] { display: none; }
.m-homeAlarmCarousel .m-homeCarousel__track { align-items: flex-start; overflow-y: hidden; border: 0; border-radius: 0; }
.m-homeAlarmCarousel .m-homeCarousel__slide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16rem; padding: 0; align-content: start; align-items: stretch; }
.m-homeAlarmCarousel__range { margin: 0 0 14rem; color: #65716a; font-size: 13rem; line-height: 1.5; }
.m-homeAlarmCarousel .m-homeCarousel__position { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; text-align: center; font-size: 13rem; line-height: 1.5; color: #526258; }
.m-homeAlarmCarousel .m-homeCarousel__navigation { padding-top: 16rem; gap: 12rem; }
.m-homeCarousel__navigation button:disabled { opacity: 0.45 !important; cursor: default; }
@media (max-width: 1200px) {
    .m-homeAlarmCarousel .m-homeCarousel__slide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .m-homeAlarmCarousel .m-homeCarousel__navigation { flex-wrap: wrap; }
    .m-homeAlarmCarousel .m-homeCarousel__position { flex: 1 0 100%; order: -1; }
}


/* ===== components/alarms.css ===== */
/* Shared alarm inbox, panel summary and editor. The root scale is 1px. */
:is(.p-mis_alarmas, .p-home_ecras) .e-page__main { min-width: 0; }
.m-alarmsHeader { flex-direction: row; align-items: center; justify-content: space-between; gap: 24rem; }
.m-alarmsHeader > .a-button { flex-shrink: 0; }
.m-alarmsIntro { margin: 8rem 0 0; color: #647068; font-size: 15rem; line-height: 1.6; }
.m-alarmsWorkspace { min-width: 0; width: 100%; }
.m-alarmsTabs { display: flex; gap: 24rem; border-bottom: 1px solid #e1e6e2; }
.m-alarmsTabs a { padding: 14rem 4rem; color: #65716a; font-size: 15rem; border-bottom: 3rem solid transparent; text-decoration: none; }
.m-alarmsTabs a[aria-current] { color: var(--mainColor); font-weight: 600; border-bottom-color: #237e54; }
.m-alarmsFilters, .m-alarmsResults { width: 100%; min-width: 0; }
.m-alarmsCount { display: inline-flex; align-items: center; justify-content: center; min-width: 28rem; padding: 3rem 8rem; border-radius: 6rem; color: var(--mainColor); background: #edf3ef; font-size: 13rem; font-weight: 600; }
.m-alarmsField { display: flex; flex-direction: column; gap: 8rem; min-width: 0; }
.m-alarmsField > label { font-size: 13rem; font-weight: 500; line-height: 1.5; color: #45554b; }
.m-alarmsField select, .m-alarmsField input, .m-alarmsField textarea { width: 100%; min-width: 0; min-height: 44rem; border: 1px solid #d8dfda; border-radius: 8rem; background: #fff; padding: 10rem 12rem; font: inherit; font-size: 14rem; color: #263d30; }
.m-alarmsField textarea { resize: vertical; }
.m-alarmsField small { font-size: 12rem; color: #68756c; line-height: 1.6; }
.m-alarmsField .m-filterMultiSelect { width: 100%; min-width: 0; }
.m-alarmsField .m-filterMultiSelect__button { min-height: 44rem; }
.m-alarmsStatus:empty { display: none; }
.m-alarmsStatus { color: #237e54; font-size: 14rem; margin: 0 0 16rem; }
.m-alarmsList { display: flex; flex-direction: column; width: 100%; }
.m-alarmCard, .m-alarmRule { --alarm-accent: #8a681b; --alarm-tint: #fff7e0; }
.m-alarmCard { display: grid; grid-template-columns: 44rem minmax(0, 1fr) minmax(150rem, .4fr) auto; gap: 20rem; align-items: center; padding: 24rem 0; border-bottom: 1px solid #e8ece9; min-width: 0; width: 100%; }
.m-alarmsResults .m-alarmCard { grid-template-columns: 44rem minmax(280rem, 620rem) minmax(190rem, 250rem) minmax(200rem, 1fr); column-gap: 16rem; }
.m-alarmsResults .m-alarmCard__actions .a-button { white-space: nowrap; }
.m-alarmsResults .m-alarmCard__actions { width: 210rem; justify-self: end; }
.m-alarmCard:last-child { border-bottom: 0; }
.m-alarmCard.-gas, .m-alarmRule.-gas { --alarm-accent: #a65e29; --alarm-tint: #fff0e5; }
.m-alarmCard__symbol { display: grid; place-items: center; width: 44rem; height: 44rem; background: var(--alarm-tint); color: var(--alarm-accent); border-radius: 10rem; align-self: start; }
.m-alarmCard__symbol svg { color: inherit; fill: currentColor; }
.m-alarmCard__identity { min-width: 0; }
.m-alarmCard__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8rem 12rem; font-size: 11rem; color: var(--alarm-accent); margin-bottom: 8rem; }
.m-alarmCard__state { color: #6a776e; background: #f1f4f2; border-radius: 4rem; padding: 3rem 6rem; }
.m-alarmCard__identity h3 { margin: 0 0 8rem; color: #23392c; font-size: 16rem; font-weight: 600; line-height: 1.4; }
.m-alarmCard__identity p { margin: 0; font-size: 13rem; line-height: 1.65; overflow-wrap: anywhere; }
.m-alarmCard__supply { font-weight: 500; color: #374b3f; }
.m-alarmCard__client { color: #738078; }
.m-alarmCard__cups { font-size: 11rem !important; color: #78827c; letter-spacing: .2rem; }
.m-alarmCard__data { display: flex; flex-direction: column; align-items: flex-start; gap: 7rem; min-width: 0; }
.m-alarmCard__data > span { color: #748078; font-size: 11rem; }
.m-alarmCard__data > strong { color: #263c2f; font-size: 22rem; line-height: 1.2; font-weight: 500; overflow-wrap: anywhere; }
.m-alarmCard__data time, .m-alarmCard__data small { font-size: 12rem; color: #738078; line-height: 1.5; }
.m-alarmCard__actions { display: flex; flex-direction: column; align-items: stretch; gap: 6rem; min-width: 0; }
.m-alarmCard__actions .a-button { width: 100%; white-space: normal; text-align: center; }
.m-alarmCard__noGraph { max-width: 160rem; color: #78827c; font-size: 12rem; line-height: 1.6; }
.m-alarmCard__error, .m-alarmEditor__error { color: #a7352b; font-size: 13rem; line-height: 1.6; margin: 6rem 0 0; overflow-wrap: anywhere; }
.m-alarmsWorkspace .a-button, .m-alarmsPanelGrid .a-button, #panel-active-alarms > .e-container__header .a-button, .m-alarmSheet .a-button, .m-alarmGraphContext .a-button { min-height: 40rem; padding: 10rem 14rem; line-height: 1.4; cursor: pointer; }
.m-alarmsWorkspace :focus-visible, #panel-active-alarms :focus-visible, .m-alarmSheet :focus-visible, .m-alarmGraphContext :focus-visible { outline: 2px solid #237e54; outline-offset: 3px; }
.m-alarmCard button:disabled, .m-alarmEditor button:disabled { cursor: wait; opacity: .5 !important; }
.m-alarmsEmpty { display: flex; flex-direction: column; align-items: center; gap: 12rem; text-align: center; padding: 48rem 24rem; color: #748078; line-height: 1.6; }
.m-alarmsEmpty h3 { margin: 0; font-size: 17rem; color: #3c5143; font-weight: 500; }
.m-alarmsEmpty p { margin: 0; font-size: 14rem; max-width: 500rem; }
.m-alarmsEmpty i { color: #237e54; background: #edf7f0; padding: 12rem; border-radius: 50%; }
.m-alarmsEmpty[hidden], .m-alarmCard [hidden], .m-alarmEditor [hidden], .m-alarmsFilters [hidden] { display: none; }
.m-alarmsPagination { display: flex; align-items: center; justify-content: center; gap: 16rem; padding: 20rem 0 8rem; font-size: 14rem; }
.m-alarmsPanelCount { font-size: 12rem; color: #748078; margin: 0 0 12rem; }
.m-alarmsPanelGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16rem; width: 100%; }
.m-alarmsPanelGrid .m-alarmCard { container-type: inline-size; grid-template-columns: 40rem minmax(0, 1fr); grid-template-rows: auto 1fr auto; align-items: start; gap: 16rem 12rem; padding: 20rem; border: 1px solid #e3e9e5; border-radius: 8rem; }
.m-alarmsPanelGrid .m-alarmCard__symbol { width: 40rem; height: 40rem; }
.m-alarmsPanelGrid .m-alarmCard__eyebrow { justify-content: space-between; line-height: 1.5; }
.m-alarmsPanelGrid .m-alarmCard__identity h3 { margin-bottom: 12rem; }
.m-alarmsPanelGrid .m-alarmCard__data, .m-alarmsPanelGrid .m-alarmCard__actions { grid-column: 1 / -1; }
.m-alarmsPanelGrid .m-alarmCard__data { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6rem 16rem; align-self: start; padding: 16rem; background: #f5f7f5; border-radius: 8rem; }
.m-alarmsPanelGrid .m-alarmCard__data > span, .m-alarmsPanelGrid .m-alarmCard__data > strong { grid-column: 1; }
.m-alarmsPanelGrid .m-alarmCard__data > small { grid-column: 1 / -1; }
.m-alarmsPanelGrid .m-alarmCard__data time { grid-column: 2; grid-row: 1 / 3; align-self: center; text-align: right; }
.m-alarmsPanelGrid .m-alarmCard__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150rem), 1fr)); gap: 8rem; width: 100%; padding-top: 12rem; border-top: 1px solid #e8ece9; }
.m-alarmsPanelGrid .m-alarmCard__actions .a-button { width: 100%; min-height: 44rem; padding: 10rem 12rem; font-size: 13rem; }
.m-alarmsPanelGrid .m-alarmCard__noGraph { max-width: none; align-self: center; }
.m-alarmsPanelGrid .m-alarmCard__error { grid-column: 1 / -1; width: 100%; }
@container (max-width: 340px) {
    .m-alarmsPanelGrid .m-alarmCard__data { grid-template-columns: minmax(0, 1fr); }
    .m-alarmsPanelGrid .m-alarmCard__data time { grid-column: 1; grid-row: auto; text-align: left; }
}
.m-alarmsRuleList { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20rem; padding: 8rem 0 16rem; }
.m-alarmRule { padding: 24rem; border: 1px solid #e1e7e3; border-radius: 8rem; min-width: 0; }
.m-alarmRule__heading { display: flex; justify-content: space-between; gap: 12rem; align-items: flex-start; margin-bottom: 20rem; }
.m-alarmRule__heading h3 { margin: 6rem 0 0; font-size: 17rem; line-height: 1.4; color: #263d30; }
.m-alarmRule__identity { display: flex; align-items: flex-start; gap: 12rem; min-width: 0; }
.m-alarmRule__identity > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.m-alarmRule__identity .m-alarmCard__symbol { flex-shrink: 0; }
.m-alarmRule__energy { font-size: 11rem; color: var(--alarm-accent); }
.m-alarmRule__activation { border: none; position: relative; display: flex; align-items: center; flex-shrink: 0; gap: 10rem; min-height: 44rem; }
.m-alarmRule__activation .m-alarmRule__state { cursor: pointer; }
.m-alarmRule [hidden] { display: none; }
.m-alarmRule__state { flex-shrink: 0; background: #f1f3f2; color: #768078; padding: 6rem 8rem; border-radius: 5rem; font-size: 11rem; }
.m-alarmRule__state.-enabled { background: #edf7f0; color: #237e54; }
.m-alarmRule__supply { font-size: 14rem; line-height: 1.6; font-weight: 500; overflow-wrap: anywhere; }
.m-alarmRule > p { font-size: 12rem; color: #748078; line-height: 1.6; margin: 2rem 0; overflow-wrap: anywhere; }
.m-alarmRule__cups { font-size: 11rem !important; }
.m-alarmRule dl { display: flex; flex-direction: column; gap: 12rem; padding: 20rem 0; margin: 16rem 0; border-top: 1px solid #edf0ee; border-bottom: 1px solid #edf0ee; }
.m-alarmRule dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16rem; }
.m-alarmRule dt { color: #6e7b72; font-size: 13rem; line-height: 1.6; width: auto; max-width: none; min-width: 0; flex: 1; padding: 0; background: transparent; text-align: left; font-weight: 400; margin: 0; }
.m-alarmRule dd { color: #293f32; font-size: 16rem; margin: 0; width: auto; padding: 0; flex-shrink: 0; }
.m-alarmRule__footer { display: flex; align-items: center; gap: 16rem; justify-content: space-between; }
.m-alarmRule__footer p { margin: 0; font-size: 12rem; color: #748078; line-height: 1.6; overflow-wrap: anywhere; }
.m-alarmRule__footer button { flex-shrink: 0; }
.m-alarmGraphContext { display: flex; justify-content: space-between; align-items: center; gap: 20rem; padding: 20rem; background: #edf5f0; border-radius: 8rem; color: #304c40; }
.m-alarmGraphContext strong { font-size: 15rem; }
.m-alarmGraphContext p { font-size: 13rem; margin: 8rem 0 0; line-height: 1.6; }
.m-alarmGraphContext .a-button { flex-shrink: 0; }
.m-alarmSheet .o-sheetPopup__sheet { width: min(640rem, 100vw); background: #fff; height: 100dvh; }
.m-alarmSheet .o-sheetPopup__title { font-size: 20rem; min-width: 0; flex-shrink: 1; white-space: normal; line-height: 1.4; }
.m-alarmSheet .o-sheetPopup__contentFrame { flex: 1; min-height: 0; overflow-y: auto; }
.m-alarmSheet .o-sheetPopup__content { height: auto; overflow: visible; }
.m-alarmEditor { display: flex; flex-direction: column; gap: 24rem; padding: 28rem; }
.m-alarmEditor__intro { font-size: 14rem; line-height: 1.7; color: #6b786e; margin: 0; }
.m-alarmEditor__step { display: flex; flex-direction: column; gap: 16rem; margin: 0; padding: 0; }
.m-alarmEditor__step > h3 { display: flex; align-items: center; gap: 12rem; margin: 0 0 4rem; font-size: 16rem; line-height: 1.5; color: #2d4435; }
.m-alarmEditor__step > h3 > span { display: grid; place-items: center; width: 28rem; height: 28rem; flex-shrink: 0; border-radius: 7rem; color: #237e54; background: #edf5f0; font-size: 13rem; }
.m-alarmEditor__step > h3 > .m-alarmEditor__stepTitle:not([hidden]) { display: block; width: auto; height: auto; flex-shrink: 1; border-radius: 0; color: inherit; background: transparent; font-size: inherit; }
.m-alarmEditor__step > h3 small:not([hidden]) { margin-left: auto; padding: 4rem 8rem; border-radius: 99rem; color: #237e54; background: #eaf5ee; font-size: 11rem; font-weight: 600; white-space: nowrap; }
.m-alarmEditor__identity { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 16rem 20rem; margin: 0; padding: 18rem; border: 1px solid #e1e8e3; border-radius: 8rem; background: #f7f9f7; }
.m-alarmEditor__identity > div { display: flex; flex-direction: column; align-items: flex-start; gap: 5rem; min-width: 0; }
.m-alarmEditor__identity > div:last-child { grid-column: 1 / -1; padding-top: 12rem; border-top: 1px solid #e1e8e3; }
.m-alarmEditor .m-alarmEditor__identity dt { display: block; width: auto; max-width: none; margin: 0; padding: 0; color: #748078; background: transparent; font-size: 11rem; line-height: 1.4; text-align: left; }
.m-alarmEditor .m-alarmEditor__identity dd { display: block; width: auto; max-width: 100%; margin: 0; padding: 0; color: #304638; background: transparent; font-size: 14rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.m-alarmEditor.-editing [data-editor-changeable] { padding: 18rem; border: 1px solid #dce9df; border-left: 3rem solid #6daf83; border-radius: 8rem; background: #fbfdfb; }
.m-alarmEditor__step fieldset { display: flex; flex-direction: column; gap: 16rem; border: 1px solid #e0e7e2; border-radius: 8rem; padding: 16rem; margin: 0; min-width: 0; }
.m-alarmEditor__step legend { font-size: 13rem; padding: 0 6rem; color: #4b6052; }
.m-alarmEditor__hint { font-size: 12rem; line-height: 1.7; color: #748078; margin: 0; }
.m-alarmEditor__value { display: flex; align-items: center; gap: 10rem; }
.m-alarmEditor__value > span { min-width: 20rem; font-size: 14rem; color: #6e7b72; }
.m-alarmEditor__reference { font-size: 13rem; padding: 12rem; margin: 0; background: #f5f7f5; border-radius: 6rem; line-height: 1.6; color: #4e6254; }
.m-alarmEditor__activation { position: relative; align-items: center; justify-content: space-between; gap: 16rem; padding: 14rem 16rem; border: 1px solid #d8dfda; border-radius: 8rem; background: #f7f9f7; min-height: 76rem; }
.m-alarmEditor__activationText { display: flex; flex-direction: column; gap: 6rem; min-width: 0; }
.m-alarmEditor__activationText label { cursor: pointer; font-size: 13rem; line-height: 1.5; color: #617166; }
.m-alarmEditor__activationText strong { color: #53665a; font-size: 16rem; line-height: 1.4; font-weight: 600; }
.m-alarmEditor__activation[data-enabled="true"] { border-color: #acd3b9; background: #f0f8f2; }
.m-alarmEditor__activation[data-enabled="true"] strong { color: #237e54; }
.m-alarmActivation .m-checkbox__input { position: absolute; left: auto; right: 0; top: 50%; transform: translateY(-50%); width: 44rem; height: 44rem; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.m-alarmEditor__activation .m-checkbox__input { right: 14rem; }
.m-alarmActivation .m-checkbox__switch { flex-shrink: 0; margin: 0; cursor: pointer; }
.m-alarmActivation .m-checkbox__switch span { background: #b8c4bc; }
.m-alarmActivation .m-checkbox__switch span::after { display: none; background-image: none; }
.m-alarmActivation .m-checkbox__input:checked + .m-checkbox__switch span { background: #237e54; }
.m-alarmActivation .m-checkbox__input:focus-visible + .m-checkbox__switch span { outline: 2px solid #237e54; outline-offset: 4px; }
.m-alarmActivation .m-checkbox__input:disabled + .m-checkbox__switch { opacity: .5; cursor: wait; }
.m-alarmEditor__notifications { display: flex; flex-direction: column; gap: 14rem; border-top: 1px solid #e4eae6; padding-top: 20rem; }
.m-alarmEditor__notifications h4 { margin: 0; font-size: 14rem; line-height: 1.5; color: #465e4e; font-weight: 500; }
.m-alarmEditor [data-editor-account] { font-size: 13rem; line-height: 1.6; overflow-wrap: anywhere; color: #607166; margin: 0; }
.m-alarmEditor__summary { border-radius: 8rem; background: #f1f7f3; padding: 16rem; }
.m-alarmEditor__summary h3 { font-size: 13rem; color: #304c40; margin: 0 0 10rem; }
.m-alarmEditor__summary p { font-size: 13rem; line-height: 1.8; color: #566c5d; margin: 0; overflow-wrap: anywhere; }
.m-alarmEditor__actions { display: flex; justify-content: flex-end; gap: 12rem; border-top: 1px solid #e8ece9; padding-top: 20rem; }
.m-alarmEditor__actionSpacer { flex: 1; }
@media (max-width: 1200px) {
    .m-alarmsPanelGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .m-alarmCard { grid-template-columns: 40rem minmax(0, 1fr) minmax(140rem, .5fr); gap: 16rem; }
    .m-alarmsResults .m-alarmCard { grid-template-columns: 40rem minmax(0, 1fr) minmax(140rem, .5fr); }
    .m-alarmCard__actions { grid-column: 2 / -1; flex-direction: row; flex-wrap: wrap; }
    .m-alarmCard__actions .a-button { width: auto; }
    .m-alarmsResults .m-alarmCard__actions { width: auto; justify-self: stretch; }
    .m-alarmsRuleList { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 650px) {
    :is(.p-mis_alarmas, .p-home_ecras) { grid-template-columns: 70rem minmax(0, 1fr); }
    :is(.p-mis_alarmas, .p-home_ecras) .t-page__nav { width: 70rem; }
    :is(.p-mis_alarmas, .p-home_ecras):not(.-navCollapsed) .t-page__nav { position: fixed; width: min(274rem, calc(100vw - 50rem)); height: 100dvh; z-index: 110; box-shadow: 8rem 0 32rem #0002; }
    :is(.p-mis_alarmas, .p-home_ecras) .e-page__main { padding: 20rem 16rem; }
    .p-home_ecras .e-container__header { flex-wrap: wrap; gap: 12rem; }
    .p-home_ecras .e-container__header .right_content { flex: 1; }
    .m-alarmsHeader { flex-direction: column; align-items: flex-start; gap: 16rem; }
    .p-mis_alarmas .e-header__title h1 { font-size: 30rem; }
    .m-alarmsTabs { gap: 12rem; flex-wrap: wrap; }
    .m-alarmsTabs a { font-size: 12rem; }
    .m-alarmCard { grid-template-columns: 36rem minmax(0, 1fr); gap: 14rem 12rem; }
    .m-alarmsResults .m-alarmCard { grid-template-columns: 36rem minmax(0, 1fr); }
    .m-alarmCard__symbol { width: 36rem; height: 36rem; }
    .m-alarmCard__data, .m-alarmCard__actions { grid-column: 2; }
    .m-alarmCard__data > strong { font-size: 20rem; }
    .m-alarmCard__actions { flex-direction: column; align-items: flex-start; }
    .m-alarmsPanelGrid { grid-template-columns: minmax(0, 1fr); }
    #panel-active-alarms > .e-container__header { flex-wrap: wrap; gap: 12rem; }
    #panel-active-alarms > .e-container__header .right_content { flex-basis: 100%; }
    .m-alarmRule { padding: 16rem; }
    .m-alarmRule__heading, .m-alarmRule__footer { flex-wrap: wrap; }
    .m-alarmRule dl > div { flex-wrap: wrap; gap: 6rem; }
    .m-alarmGraphContext { flex-direction: column; align-items: flex-start; }
    .m-alarmEditor { padding: 20rem 16rem; }
    .m-alarmEditor__identity { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 14rem 16rem; padding: 14rem; }
    .m-alarmEditor.-editing [data-editor-changeable] { padding: 14rem 12rem; }
    .m-alarmEditor__actions { flex-wrap: wrap; }
    .m-alarmEditor__actionSpacer { flex-basis: 100%; }
    .m-alarmEditor__delete { margin-right: auto; }
    .m-alarmSheet .o-sheetPopup__header { padding: 0 12rem; }
}
@media (max-width: 420px) {
    .m-alarmEditor__identity { grid-template-columns: minmax(0, 1fr); }
    .m-alarmEditor__identity > div:last-child { grid-column: auto; }
}

/* Inicio reuses the personal-panel cards inside pages of three. */
.m-homeNotices .m-alarmCard__client, .m-homeNotices .m-alarmCard__state { display: none; }
.m-homeNotices .m-alarmCard__identity h3 { margin: 6rem 0 10rem; }
.m-homeNotices .m-alarmCard__cups { overflow-wrap: anywhere; }
.m-homeNotices .m-alarmCard__actions { align-self: end; }
.m-homeNotices [hidden] { display: none; }


/* ===== components/calculated-points.css ===== */
.m-calculated__header { flex-direction: row; align-items: center; justify-content: space-between; gap: 24rem; }
.m-calculated__header > .a-button { flex-shrink: 0; }
.m-calculated { gap: 24rem; }
.m-calculated [hidden] { display: none !important; }
.m-calculated__fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24rem; }
.m-calculated [data-calculated-form] { display: flex; flex-direction: column; gap: 24rem; min-width: 0; }
.m-calculated__fieldset > .e-container { min-width: 0; }
.m-calculated__formula { grid-column: 1 / -1; }
.m-calculated__result { padding: 12rem 16rem 16rem; }
.m-calculated__resultCard > .e-container__header { flex-wrap: wrap; gap: 16rem; }
.m-calculated__resultCard > .e-container__header .right_content { flex: 1 1 260rem; min-width: 0; }
.m-calculated__resultCard > .e-container__header .left_content { flex: 0 0 auto; max-width: 100%; }
.m-calculated__criteria { margin-top: 16rem; border-top: 1px solid #e3e8e5; padding-top: 12rem; color: #626b68; font-size: 13rem; line-height: 1.6; }
.m-calculated__criteria summary { cursor: pointer; width: fit-content; }
.m-calculated__criteria p { margin: 8rem 0 0; }
.m-calculated__previewControls { display: grid; grid-template-columns: minmax(0,260rem) minmax(0,200rem) max-content; justify-content: start; align-items: end; gap: 16rem; }
.m-calculated__previewPeriod { display: flex; flex-direction: column; gap: 8rem; min-width: 0; }
.m-calculated__previewPeriod > span { font-size: 14rem; font-weight: 500; }
.m-calculated__previewPeriod .e-input { min-width: 0; max-width: 100%; }
.m-calculated__previewStatus { margin-top: 16rem; color: #626b68; font-size: 13rem; line-height: 1.5; }
.m-calculated__preview [data-calculated-preview-output] > .e-resultContainer { margin-top: 16rem; }
.m-calculated__preview .m-calculated__resultCard { box-shadow: none; border: 1px solid #e3e8e5; }
.m-calculated__preview.-stale .m-calculated__previewStatus { color: #8b5d1a; }
.m-calculated__chart .a-chartTile { display: none; }
.m-calculated__chart .m-jaxChartHeader { justify-content: flex-end; min-height: 32rem; margin-bottom: 8rem; }
.m-calculated__fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24rem; }
.m-calculated__fields.-nameOnly { grid-template-columns: minmax(0,1fr); }
.m-calculated .e-input { display: flex; flex-direction: column; gap: 8rem; min-width: 0; width: 100%; }
.m-calculated .e-input input, .m-calculated .e-input select { min-width: 0; width: 100%; box-sizing: border-box; }
.m-calculated__help { color: #626b68; line-height: 1.6; font-size: 13rem; margin-top: 12rem; }
.m-calculated__alert { padding: 16rem; border-radius: 8rem; background: #fff2ed; color: #893b24; }
.m-calculated__list { padding: 0 16rem 16rem; }
.m-calculated__card { display: flex; justify-content: space-between; align-items: center; gap: 24rem; padding: 24rem 0; border-bottom: 1px solid #e3e8e5; }
.m-calculated__card:last-child { border-bottom: 0; }
.m-calculated__card h3 { font-size: 18rem; margin: 0 0 8rem; overflow-wrap: anywhere; }
.m-calculated__card p, .m-calculated__card small { color: #626b68; font-size: 13rem; line-height: 1.5; }
.m-calculated__empty { padding: 40rem 16rem; text-align: center; color: #626b68; }
.m-calculated__operands { display: flex; flex-direction: column; gap: 12rem; margin-bottom: 16rem; }
.m-calculated__operand { border: 1px solid #dfe5e2; background: #f7f9f8; border-radius: 8rem; padding: 16rem; min-width: 0; }
.m-calculated__rowHeader { display: flex; justify-content: space-between; align-items: center; gap: 12rem; margin-bottom: 12rem; }
.m-calculated__rowHeader h4 { margin: 0; font-size: 14rem; }
.m-calculated__rowFields { display: grid; grid-template-columns: 140rem minmax(0,1fr) 230rem; align-items: start; gap: 16rem; }
.m-calculated__actions { display: flex; align-items: center; justify-content: space-between; gap: 24rem; }
.m-calculated__actions > .a-button { flex-shrink: 0; }
.m-calculated__legend .m-chartSupplies__name { white-space: normal; text-align: left; overflow-wrap: anywhere; }
.m-calculated__chart { height: 400rem; min-width: 0; }
.m-calculated :is(a,button,select,input):focus-visible { outline: 2px solid #237e54; outline-offset: 3px; }
.p-zona_puntos_calculados_electrica .e-page__main, .p-zona_puntos_calculados_gas .e-page__main, .p-zona_puntos_calculados_agua .e-page__main { min-width: 0; }
@media(max-width:1100px) { .m-calculated__rowFields { grid-template-columns: 100rem minmax(0,1fr); } .m-calculated__rowFields > :last-child { grid-column: 2; } }
@media(max-width:760px) {
    .m-calculated__chart .m-jaxChartHeader { flex-wrap: wrap; gap: 8rem; align-items: flex-start; }
    .m-calculated__chart .a-chartTile { flex: 1 1 100%; min-width: 0; overflow-wrap: anywhere; }
    .m-calculated__chart .m-jaxChartHeader__action { flex-wrap: wrap; gap: 8rem; max-width: 100%; }
    .m-calculated__header { flex-direction: column; align-items: flex-start; gap: 16rem; }
    .m-calculated__fieldset, .m-calculated__fields, .m-calculated__rowFields, .m-calculated__previewControls { grid-template-columns: minmax(0,1fr); }
    .m-calculated__rowFields > :last-child { grid-column: auto; }
    .m-calculated__actions, .m-calculated__card { align-items: flex-start; flex-direction: column; gap: 12rem; }
    .p-zona_puntos_calculados_electrica.e-page, .p-zona_puntos_calculados_gas.e-page, .p-zona_puntos_calculados_agua.e-page { grid-template-columns: 70px minmax(0,1fr); grid-template-rows: auto 1fr; }
    :is(.p-zona_puntos_calculados_electrica,.p-zona_puntos_calculados_gas,.p-zona_puntos_calculados_agua) .e-page__main { padding: 20px 12px; }
    :is(.p-zona_puntos_calculados_electrica,.p-zona_puntos_calculados_gas,.p-zona_puntos_calculados_agua) .e-header__title h1 { font-size: 30rem; line-height: 1.2; overflow-wrap: anywhere; }
    :is(.p-zona_puntos_calculados_electrica,.p-zona_puntos_calculados_gas,.p-zona_puntos_calculados_agua):not(.-navCollapsed) > .t-page__nav { position: fixed; top: 8px; left: 8px; width: min(280px,calc(100vw - 16px)); height: calc(100dvh - 16px); z-index: 110; }
}


/* ===== templates/comparison.css ===== */
.p-zona_comparativa .e-page__main {
    min-width: 0;
}
.m-comparison {
    --comparison-plot-height: 440px;
    min-width: 0;
    width: 100%;
}
.m-comparison > form,
.m-comparison > form > .e-container {
    width: 100%;
    min-width: 0;
    margin: 0;
}
.m-comparison > form {
    margin-bottom: 24px;
}
.m-comparison .m-comparison__configuration,
.m-comparison .m-comparison__output {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}
.m-comparison > form > .e-container:not(.active) > .m-comparison__configuration {
    display: none;
}
.m-comparison .m-searchConfigurator__inputItem[data-filter="periodo"] .m-dateRangePicker,
.m-comparison .m-searchConfigurator__inputItem[data-filter="periodo"] .m-dateRangePicker__visibleInput {
    width: fit-content;
    max-width: 100%;
}

.m-comparison__frequency {
    width: fit-content;
    max-width: 100%;
}
.m-comparison__frequency .e-radioOptions__group {
    flex-wrap: wrap;
    max-width: 100%;
}
.m-comparison__frequency .e-radioOptions__item input[type="radio"]:disabled + label {
    opacity: .45;
    cursor: not-allowed;
}
.m-comparison__frequencyControl {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}
.m-comparison__info {
    position: relative;
    flex: 0 0 auto;
}
.m-comparison__infoButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid #dfdfdf;
    border-radius: 50%;
    background: #fff;
    color: #dfdfdf;
    font: 600 14px/1 Roboto, sans-serif;
    cursor: help;
}
.m-comparison__tooltip {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, calc(100vw - 40px));
    padding: 12px 14px;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(0 0 0 / .16);
    color: #364153;
    font-size: 13rem;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
    pointer-events: none;
}
.m-comparison__info:hover .m-comparison__tooltip,
.m-comparison__info:focus-within .m-comparison__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.m-comparison__infoButton:focus-visible {
    outline: 2px solid #237e54;
    outline-offset: 3px;
}
.m-comparison__commonFilter[data-filter="frecuencia"] .m-searchConfiguratorInputItem__labelText {
    text-transform: none;
}
.m-comparison__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    font-size: 14rem;
    color: #364153;
}

.m-comparison__field select {
    height: auto;
    min-height: 42px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #fff;
}
.m-comparison select[data-field="cups"] {
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
    white-space: normal;
    line-height: 1.35;
    text-overflow: clip;
}
.m-comparison .m-dateRangePicker__visibleInput {
    display: flex;
}
.m-comparison .m-dateRangePicker__display {
    flex: 1 1 0;
    min-width: 0;
    text-overflow: ellipsis;
}
.m-comparison__supplies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr));
    align-items: start;
    gap: 12px;
    min-width: 0;
}
.m-comparison__supply {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    background: #fafafa;
}
.m-comparison__supplyHeader {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.m-comparison__supplyHeader > h4 {
    margin: 0;
    font-size: 14rem;
    font-weight: 600;
    color: #364153;
}
.m-comparison__supplyHeader > button {
    margin-left: auto;
}
.m-comparison__supplyFields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 12px 16px;
    align-items: end;
}
.m-comparison__supplyFields > .m-comparison__cupsField {
    grid-column: 1 / -1;
}
.m-comparison__colorField {
    align-items: flex-start;
}
.m-comparison__color {
    width: 56px;
    height: 42px;
    padding: 4px;
    border: var(--input-border);
    border-radius: var(--ecras-control-radius);
    background: #fff;
    cursor: pointer;
}
.m-comparison__variables,
.m-comparison__actions,
.m-comparison__legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.m-comparison__variable {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 36px;
    padding: 4px 10px;
    border: 1px solid #e4e4e7;
    border-radius: 8px;
    background: #fff;
    color: #364153;
    font-size: 13rem;
    cursor: pointer;
    box-sizing: border-box;
}
.m-comparison__variable > input {
    position: static;
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
    opacity: 1;
    appearance: auto;
    accent-color: #237e54;
}
.m-comparison__variable > span:last-child {
    overflow-wrap: anywhere;
}
.m-comparison__variable:has(input:checked) {
    border-color: #237e54;
    background: #f0fdf4;
}
.m-comparison__swatch {
    display: inline-block;
    width: 18px;
    height: 3px;
    flex: 0 0 auto;
    border-radius: 2px;
}
.m-comparison__help,
.m-comparison__output > [role="status"] {
    margin: 0;
    color: #52525b;
    font-size: 13rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.m-comparison .a-button {
    min-height: 40px;
    padding: 8px 14px;
    cursor: pointer;
}
.m-comparison .a-button:disabled {
    opacity: .45 !important;
    cursor: not-allowed;
}
.m-comparison :is(button, select, input, summary):focus-visible,
.m-comparison__variable:has(input:focus-visible) {
    outline: 2px solid #237e54;
    outline-offset: 3px;
}
.m-comparison__chart {
    width: 100%;
    min-width: 0;
}
.m-comparison__chart .o-jaxChart__body {
    position: relative;
    height: var(--comparison-plot-height);
    min-width: 0;
}
.m-comparison .m-graphQuery__chartSkeleton {
    height: auto;
}
.m-comparison .m-graphQuery__plot {
    min-height: var(--comparison-plot-height);
}
.m-comparison__chart .m-jaxChartHeader {
    flex-wrap: wrap;
    gap: 12px;
}
.m-comparison__chart .m-jaxChartHeader__action {
    flex-wrap: wrap;
}
.m-comparison__legend .a-button {
    max-width: 100%;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}
.m-comparison__legend [aria-pressed="false"] {
    text-decoration: line-through;
    opacity: .55 !important;
}
.m-comparison__notices {
    color: #52525b;
    font-size: 13rem;
    line-height: 1.6;
}
.m-comparison__notices summary {
    cursor: pointer;
}
.m-comparison [hidden] {
    display: none !important;
}
@media (max-width: 760px) {
    .p-zona_comparativa.e-page {
        grid-template-columns: 70px minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        min-width: 0;
    }
    .p-zona_comparativa .e-page__main {
        padding: 20px 12px;
    }
    .p-zona_comparativa .t-page__header {
        min-width: 0;
        gap: 8px;
        padding: 8px;
    }
    .p-zona_comparativa .t-page__header .a-buttonContainer {
        display: none;
    }
    .p-zona_comparativa:not(.-navCollapsed) > .t-page__nav {
        position: fixed;
        top: 8px;
        left: 8px;
        width: min(280px, calc(100vw - 16px));
        height: calc(100dvh - 16px);
        z-index: 110;
    }

    .m-comparison__supplyFields {
        grid-template-columns: minmax(0, 1fr) 76px;
    }
    .m-comparison__supplies {
        grid-template-columns: minmax(0, 1fr);
    }
    .m-comparison__supply {
        padding: 12px;
    }
    .m-comparison {
        --comparison-plot-height: 340px;
    }
    .m-comparison__chart .m-jaxChartHeader__action {
        width: 100%;
        justify-content: flex-start;
    }
}


/* ===== templates/report-document.css ===== */
.m-reports__sheet { width: 760px; height: 1075px; background: #fff; color: #20362b; padding: 48px 52px 32px; box-sizing: border-box; display: flex; flex-direction: column; font-family: Arial, sans-serif; overflow-wrap: anywhere; }
.m-reports__documentHeader { display: flex; align-items: center; gap: 24px; min-height: 50px; flex-shrink: 0; padding-bottom: 22px; border-bottom: 2px solid #304c40; }
.m-reports__documentHeader img { max-width: 112px; width: auto; height: 44px; object-fit: contain; object-position: left center; }
.m-reports__documentHeader .m-reports__brandLogo { max-width: 120px; height: 42px; }
.m-reports__documentIdentity { flex: 1; min-width: 0; text-align: right; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.m-reports__documentContext { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.m-reports__documentPeriod { font-size: 11px; color: #66746b; }
.m-reports__documentNumber { font-size: 16px; color: #237e54; border-left: 1px solid #dce5df; padding-left: 18px; }
.m-reports__coverBody { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 60px; }
.m-reports__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: #237e54; font-weight: 700; margin: 0 0 28px; }
.m-reports__coverBody h2 { font-size: 42px; line-height: 1.17; font-weight: 700; letter-spacing: -1.2px; margin: 0; overflow-wrap: anywhere; }
.m-reports__documentSubtitle { font-size: 20px; line-height: 1.5; color: #66746b; margin: 18px 0 0; overflow-wrap: anywhere; }
.m-reports__longTitle .m-reports__coverBody h2 { font-size: 30px; }
.m-reports__coverMeta { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid #dce5df; }
.m-reports__coverMeta span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: #66746b; margin-bottom: 10px; }
.m-reports__coverMeta strong { display: block; font-size: 14px; line-height: 1.6; font-weight: 400; }
.m-reports__documentFooter { margin-top: 24px; flex-shrink: 0; border-top: 1px solid #dce5df; padding-top: 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; font-size: 11px; color: #66746b; line-height: 1.5; }
.m-reports__documentFooter > span { max-width: 540px; overflow-wrap: anywhere; }
.m-reports__documentFooter img { display: block; width: auto; max-width: 82px; height: 28px; object-fit: contain; object-position: right center; }
.m-reports__pageGraphs { margin-top: 28px; display: grid; grid-template-rows: repeat(2,minmax(0,1fr)); gap: 30px; flex: 1; min-height: 0; }
.m-reports__pageGraph { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.m-reports__chartHeading { flex-shrink: 0; display: flex; align-items: flex-start; gap: 12px; }
.m-reports__chartHeading > span { color: #789081; font-size: 13px; padding-top: 4px; }
.m-reports__chartHeading > div { flex: 1; min-width: 0; }
.m-reports__chartHeading h3 { font-size: 21px; line-height: 1.3; margin: 0; font-weight: 600; }
.m-reports__chartHeading h3 small { font-size: 13px; font-weight: 400; color: #66746b; margin-left: 8px; }
.m-reports__chartHeading p { font-size: 11px; line-height: 1.4; color: #66746b; margin: 6px 0 0; overflow-wrap: anywhere; }
.m-reports__chartHeading > b { font-size: 10px; color: #546b5e; background: #f0f5f1; border-radius: 4px; padding: 5px 8px; font-weight: 400; white-space: nowrap; }
.m-reports__chartCode { flex-shrink: 0; color: #66746b; font-size: 10px; margin: 8px 0 16px 28px; overflow-wrap: anywhere; }
.m-reports__chart { flex: 0 0 280px; height: 280px; min-height: 0; min-width: 0; }
.m-reports__chart .m-jaxChartHeader { display: none; }
.m-reports__chart .o-jaxChart__body { height: 100%; }
.m-reports__chartEmpty { display: flex; justify-content: center; align-items: center; border: 1px dashed #ccd9d0; border-radius: 4px; background: #fafcfb; color: #789081; font-size: 14px; }
.m-reports__sheet * { box-sizing: border-box; font-family: inherit; }
.m-reports__chart > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.m-reports__chartCriteria { flex-shrink: 0; margin: 6px 0 0; color: #66746b; font-size: 9px; line-height: 1.3; }


/* ===== templates/reports.css ===== */
.p-mis_informes .e-page__main,
.p-mis_informes .e-header__content,
.p-mis_informes .e-sectionGroup {
    min-width: 0;
}
.p-mis_informes .e-sectionGroup {
    width: 100%;
}
.p-mis_informes .e-header__title h1 {
    overflow-wrap: anywhere;
    line-height: 1.2;
}
@media (max-width: 760px) {
    .p-mis_informes.e-page {
        grid-template-columns: 70px minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        min-width: 0;
    }
    .p-mis_informes .e-page__main {
        padding: 20px 12px;
    }
    .p-mis_informes .e-header__title h1 {
        font-size: 30rem;
    }
    .p-mis_informes .t-page__header {
        min-width: 0;
        gap: 8px;
        padding: 8px;
    }
    .p-mis_informes .t-page__header .a-buttonContainer {
        display: none;
    }
    .p-mis_informes:not(.-navCollapsed) > .t-page__nav {
        position: fixed;
        top: 8px;
        left: 8px;
        width: min(280px, calc(100vw - 16px));
        height: calc(100dvh - 16px);
        z-index: 110;
    }
}

.m-reports__sectionHeader { flex-direction: row; align-items: center; justify-content: space-between; gap: 24rem; }
.m-reports__sectionHeader > .a-button { flex-shrink: 0; }
.m-reports { gap: 24rem; }
.m-reports [hidden] { display: none !important; }
.m-reports .e-container__header { flex-wrap: wrap; gap: 12rem; }
.m-reports .e-container__header .right_content { min-width: 0; }
.m-reports__fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 24rem; }
.m-reports__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20rem; }
.m-reports .e-input { min-width: 0; width: 100%; display: flex; flex-direction: column; gap: 8rem; }
.m-reports .e-input input,
.m-reports .e-input select { min-width: 0; width: 100%; box-sizing: border-box; }
.m-reports .e-input label { font-size: 14rem; font-weight: 500; }
.m-reports .e-input small,
.m-reports__muted { color: #626b68; font-size: 13rem; line-height: 1.5; }
.m-reports .e-input input[type=file] { height: auto; min-height: 44rem; padding: 10rem; }
.m-reports__dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16rem; }
.m-reports__dates.-dateRangeEnhanced { display: block; }
.m-reports__graphs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16rem; margin: 20rem 0 16rem; }
.m-reports__graph { border: 1px solid #dfe5e2; background: #f7f9f8; border-radius: 8rem; padding: 16rem; min-width: 0; }
.m-reports__graphHeader,
.m-reports__toolbar,
.m-reports__actions { display: flex; justify-content: space-between; align-items: center; gap: 12rem; flex-wrap: wrap; }
.m-reports__graphHeader { margin-bottom: 16rem; }
.m-reports__graphHeader h4 { margin: 0; font-size: 16rem; }
.m-reports__graphFields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16rem; }
.m-reports__graphFields > :nth-child(-n+2) { grid-column: 1 / -1; }
.m-reports__logo { display: flex; align-items: center; flex-wrap: wrap; gap: 16rem; margin-top: 16rem; }
.m-reports__logo img { max-width: 160rem; max-height: 64rem; object-fit: contain; }
.m-reports__list { padding: 0 16rem 16rem; }
.m-reports__card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24rem; align-items: center; padding: 24rem 0; border-bottom: 1px solid #e3e8e5; }
.m-reports__card:last-child { border-bottom: 0; }
.m-reports__card h3 { font-size: 18rem; margin: 0 0 8rem; }
.m-reports__card p { margin: 6rem 0 0; }
.m-reports__badge { display: inline-block; background: #edf5ef; color: #237e54; border-radius: 8rem; padding: 6rem 10rem; font-size: 13rem; }
.m-reports__empty { text-align: center; padding: 56rem 24rem; }
.m-reports__empty h3 { font-size: 22rem; margin: 16rem 0 8rem; }
.m-reports__empty p { color: #626b68; line-height: 1.6; max-width: 550rem; margin: auto; }
.m-reports__alert { padding: 16rem; background: #fff2ed; color: #893b24; border-radius: 8rem; }
.m-reports__card { overflow-wrap: anywhere; }
.m-reports__viewer { overflow: hidden; container-type: inline-size; }
.m-reports__viewerControls, .m-reports__workspace, .m-reports__viewerFooter { width: 100%; box-sizing: border-box; }
.m-reports__viewerControls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 180rem); align-items: center; gap: 8rem 16rem; padding: 12rem 20rem; border-bottom: 1px solid #e2e7e4; background: #fafbfa; }
.m-reports__pagination { display: flex; align-items: center; gap: 8rem; min-width: 0; }
.m-reports__pagination .e-input { flex: 0 1 140rem; }
.m-reports__pagination button { min-width: 40rem; font-size: 24rem; }
.m-reports__pageCounter { white-space: nowrap; color: #626b68; font-size: 13rem; padding: 0 8rem; }
@container (max-width: 420px) {
    .m-reports__viewerControls { grid-template-columns: minmax(0, 1fr); gap: 8rem; padding: 10rem 12rem; }
    .m-reports__pagination .e-input { flex: 1; }
}
.m-reports__workspace { --report-scale: 1; --report-stage-padding: 28px; display: grid; grid-template-columns: 190rem minmax(0,1fr); min-width: 0; }
.m-reports__outline { height: calc(1075px * var(--report-scale) + 2 * var(--report-stage-padding)); overflow: auto; box-sizing: border-box; padding: 24rem 12rem; border-right: 1px solid #e2e7e4; background: #fafbfa; }
.m-reports__outline > p { margin: 0 8rem 16rem; color: #626b68; font-size: 11rem; text-transform: uppercase; letter-spacing: 1rem; font-weight: 600; }
.m-reports__outline .a-button { width: 100%; justify-content: flex-start; text-align: left; gap: 12rem; padding: 12rem 8rem; margin-bottom: 8rem; }
.m-reports__outline .a-button > span:last-child { min-width: 0; }
.m-reports__outline small { display: block; margin-top: 4rem; color: #626b68; font-size: 11rem; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
.m-reports__pageIcon { width: 28rem; height: 36rem; border: 1px solid #b8c9bf; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12rem; color: #304c40; border-radius: 2rem; }
.m-reports__stage { position: relative; padding: var(--report-stage-padding) 28px; background: #e8ecea; overflow: auto; height: calc(1075px * var(--report-scale) + 2 * var(--report-stage-padding)); min-width: 0; box-sizing: border-box; scroll-behavior: smooth; overscroll-behavior: contain; }
.m-reports__pageFrame { position: relative; width: calc(760px * var(--report-scale)); height: calc(1075px * var(--report-scale)); margin: 0 auto 28px; flex-shrink: 0; }
.m-reports__pageFrame:last-child { margin-bottom: 0; }
.m-reports__sheet { position: absolute; inset: 0 auto auto 0; box-shadow: 0 3px 16px #20362b1a; transform: scale(var(--report-scale)); transform-origin: top left; }
.m-reports__viewerFooter { display: flex; justify-content: space-between; align-items: flex-start; gap: 16rem; padding: 14rem 20rem; font-size: 12rem; color: #626b68; }
.m-reports__viewerFooter > p { margin: 0; }
.m-reports__viewerFooter details { max-width: 580rem; }
.m-reports__viewerFooter summary { cursor: pointer; }
.m-reports__viewerFooter details p { line-height: 1.6; padding-top: 12rem; }
.m-reports__srOnly { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1000px) {
    .m-reports__workspace { grid-template-columns: minmax(0,1fr); }
    .m-reports__outline { display: none; }
}
@media (max-width: 600px) {
    .m-reports__workspace { --report-stage-padding: 16px; }
    .m-reports__stage { padding-inline: 12px; }
    .m-reports__viewerFooter { flex-direction: column; padding: 12rem; }
}
@media (prefers-reduced-motion: reduce) { .m-reports__stage { scroll-behavior: auto; } }
.m-reports button:focus-visible,
.m-reports a:focus-visible,
.m-reports summary:focus-visible { outline: 2px solid #237e54; outline-offset: 3px; }
@media (max-width: 1200px) {
    .m-reports__card { grid-template-columns: minmax(0,1fr) auto; }
    .m-reports__card .m-reports__actions { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 900px) {
    .m-reports__graphs { grid-template-columns: minmax(0,1fr); }
    .m-reports__sectionHeader { flex-direction: column; align-items: flex-start; gap: 16rem; }
}
@media (max-width: 600px) {
    .m-reports__fields,
    .m-reports__dates,
    .m-reports__graphFields,
    .m-reports__card { grid-template-columns: minmax(0,1fr); }
    .m-reports__section { padding: 16rem 12rem; }
    .m-reports__graph { padding: 12rem; }
    .m-reports__card { gap: 16rem; }
    .m-reports__card .m-reports__actions { justify-content: flex-start; }
}
.m-reports__logo input[type=checkbox] {
    position: static;
    width: 18rem;
    height: 18rem;
    margin: 0;
    flex: 0 0 auto;
    opacity: 1;
    appearance: auto;
    accent-color: #237e54;
}
.p-mis_informes .e-header__title { flex-direction: column; align-items: flex-start; gap: 8rem; min-width: 0; }
.p-mis_informes .e-header__title p { margin: 0; line-height: 1.5; }

.m-reports__scheduleLayout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .78fr);
    align-items: start;
    gap: 24rem;
}
.m-reports__scheduleEditor,
.m-reports__scheduleControls { min-width: 0; }
.m-reports__scheduleControls { border: 0; padding: 0; margin: 0; }
.m-reports__switchRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12rem;
    min-height: 44rem;
}
.m-reports__switchRow > label { font-weight: 600; cursor: pointer; }
.m-reports__scheduleGroup {
    display: grid;
    gap: 16rem;
    padding-block: 16rem;
    border-top: var(--input-border);
}
.m-reports__scheduleGroup:last-child { padding-bottom: 0; }
.m-reports__scheduleGroup h3,
.m-reports__scheduleSummary h3,
.m-reports__scheduleSummary h4 { margin: 0; font-size: 15rem; font-weight: 600; }
.m-reports__scheduleGroup .m-reports__switchRow { min-height: auto; }
.m-reports__scheduleControls .e-input :is(input, select):disabled,
.m-reports__scheduleControls .e-input button:disabled {
    background-color: var(--containerBackgroundColor);
    color: #626b68;
    cursor: default;
}
.m-reports__scheduleSentence {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10rem 16rem;
    min-width: 0;
    font-size: 14rem;
    margin-bottom: 16px;
}
.m-reports__scheduleSentence:has(details[open]) { position: relative; z-index: 2; }
.m-reports__schedulePhrase {
    display: flex;
    align-items: center;
    gap: 8rem;
    min-width: 0;
    max-width: 100%;
}
.m-reports__schedulePhrase > :is(label, span) { color: var(--secondaryColor); }
.m-reports__schedulePhrase .e-input { width: auto; }
.m-reports__schedulePhrase select { background-color: #fff; }
.m-reports__schedulePhrase input[type="number"] { width: 54rem; padding-inline: 8rem; text-align: center; }
.m-reports__scheduleDays { min-width: 0; max-width: 100%; }
.m-reports__scheduleDays summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10rem;
    box-sizing: border-box;
    min-height: var(--input-height);
    padding: 8rem 12rem;
    border: var(--input-border);
    border-radius: var(--ecras-control-radius);
    background: #fff;
    line-height: 1.35;
    list-style: none;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.m-reports__scheduleDays summary::-webkit-details-marker { display: none; }
.m-reports__scheduleDays summary::after {
    content: "";
    flex: 0 0 7rem;
    height: 7rem;
    border: solid currentColor;
    border-width: 0 1.5rem 1.5rem 0;
    transform: translateY(-2rem) rotate(45deg);
}
.m-reports__scheduleDays[open] summary::after { transform: translateY(2rem) rotate(225deg); }
.m-reports__weekdays {
    position: absolute;
    inset: calc(100% + 6rem) auto auto 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 328rem;
    min-width: 0;
    padding: 12rem;
    margin: 0;
    border: var(--input-border);
    border-radius: var(--ecras-control-radius);
    background: #fff;
    box-shadow: 0 6rem 20rem #20362b24;
}
.m-reports__weekdayOptions { display: grid; grid-template-columns: repeat(auto-fit, minmax(36rem, 1fr)); gap: 6rem; }
.m-reports__weekdayOptions span {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 40rem;
    box-sizing: border-box;
    color: var(--secondaryColor);
    border: var(--input-border);
    border-radius: var(--ecras-control-radius);
    cursor: pointer;
}
.m-reports__weekdayOptions input:checked + span { color: var(--mainColor); border-color: var(--mainColor); background: #edf7f0; font-weight: 600; }
.m-reports__weekdayOptions input:focus-visible + span { outline: 2px solid var(--mainColor); outline-offset: 2rem; }
.m-reports__weekdayOptions input:disabled + span { opacity: .58; cursor: default; }
.m-reports__recipientEntry { display: flex; align-items: stretch; width: 100%; gap: 8rem; }
.m-reports__recipientEntry input { flex: 1; }
.m-reports__recipientList { display: flex; flex-wrap: wrap; gap: 6rem; padding: 0; margin: 0; max-width: 100%; }
.m-reports__recipientList li {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding-inline-start: 10rem;
    color: var(--mainColor);
    background: #edf7f0;
    border-radius: var(--ecras-control-radius);
    font-size: 13rem;
    overflow-wrap: anywhere;
}
.m-reports__recipientList .a-button { min-height: 32rem; min-width: 32rem; padding: 0; font-size: 18rem; flex-shrink: 0; }
.m-reports .m-reports__scheduleError { color: #893b24; }
.m-reports__scheduleSummary {
    min-width: 0;
    padding: 20rem;
    border: 1px solid #dfe5e2;
    border-radius: var(--ecras-control-radius);
    color: var(--mainColor);
    background: #f7f9f8;
}
.m-reports__scheduleSummary p { margin: 10rem 0 0; line-height: 1.55; overflow-wrap: anywhere; }
.m-reports__scheduleSummary [data-schedule-upcoming] { margin-top: 20rem; }
.m-reports__scheduleSummary ol { padding: 0; margin: 6rem 0 0; list-style: none; }
.m-reports__scheduleSummary li { padding: 8rem 0; border-bottom: 1px solid #dfe5e2; line-height: 1.45; }
.m-reports__historyPanel { display: block; width: 100%; min-width: 0; box-sizing: border-box; }
.m-reports__historyPanel > .e-container__content { box-sizing: border-box; }
.m-reports__historyPanel summary { cursor: pointer; list-style: none; }
.m-reports__historyPanel summary::-webkit-details-marker { display: none; }
.m-reports__historyPanel:not([open]) summary { border-bottom: 0; }
.m-reports__historyCaret { display: flex; flex-shrink: 0; }
.m-reports__historyPanel[open] .m-reports__historyCaret { transform: rotate(180deg); }
.m-reports__history { padding: 0; margin: 0; width: 100%; list-style: none; }
.m-reports__history li {
    display: grid;
    grid-template-columns: minmax(82rem, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12rem;
    padding: 12rem 0;
}
.m-reports__history li + li { border-top: var(--input-border); }
.m-reports__history time { display: grid; gap: 2rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.m-reports__historyStatus { display: flex; flex-wrap: wrap; align-items: center; gap: 6rem; min-width: 0; overflow-wrap: anywhere; }
.m-reports__historyStatus [data-history-tone="neutral"] { color: var(--secondaryColor); background: var(--containerBackgroundColor); }
.m-reports__historyStatus [data-history-tone="attention"] { color: #893b24; background: #fff2ed; }
@media (max-width: 520px) {
    .m-reports__history li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .m-reports__history li > a { grid-column: 1 / -1; justify-self: start; max-width: 100%; min-width: 0; box-sizing: border-box; white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 1024px) {
    .m-reports__scheduleLayout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .m-reports__scheduleLayout { gap: 12rem; }
    .m-reports__scheduleSummary { padding: 16rem; }
}

.m-reports__scheduleEditor {
    border: var(--input-border);
    border-radius: 12rem;
    padding: 18rem;
}
.m-reports__frequencyCards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8rem;
}
.m-reports__frequencyCards .a-button {
    position: relative;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    min-height: 80rem;
    padding: 10rem 4rem;
    gap: 7rem;
    border: var(--input-border);
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}
.m-reports__frequencyCards .a-button[aria-pressed="true"] {
    color: var(--mainColor);
    border-color: var(--mainColor);
    background: #edf7f0;
    font-weight: 600;
}
.m-reports__scheduleSummary h3,
.m-reports__scheduleGroup h3 {
    display: flex;
    align-items: center;
    gap: 8rem;
}
.m-reports__scheduleFacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190rem), 1fr));
    gap: 10rem;
    margin: 16rem 0 0;
}
.m-reports__scheduleFact {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6rem;
    min-width: 0;
    padding: 12rem;
    border: var(--input-border);
    border-radius: var(--ecras-control-radius);
    background: #fff;
}
.m-reports__scheduleFact h4 { margin: 0; color: #626b68; font-size: 12rem; font-weight: 600; overflow-wrap: anywhere; }
.m-reports__scheduleFact p { min-width: 0; margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 600px) {
    .m-reports__scheduleEditor { padding: 12rem; }
    .m-reports__frequencyCards .a-button { min-height: 65rem; }
    .m-reports__frequencyCards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 100rem), 1fr)); }
}
.m-reports__scheduleLayout,
.m-reports__weekdayOptions label { position: relative; }
.m-reports__scheduleLayout .m-reports__srOnly { inset-inline-start: 0; }
@media (max-width: 600px) {
    .m-reports__scheduleGroup { grid-template-columns: minmax(0, 1fr); }
    .m-reports__recipientEntry { min-width: 0; flex-wrap: wrap; }
    .m-reports__recipientEntry input { flex-basis: 110rem; }
}

.m-reports__split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 24rem;
    align-items: start;
}
.m-reports__editorColumn { min-width: 0; display: grid; gap: 20rem; }
.m-reports__editorColumn .m-reports__graphs,
.m-reports__editorColumn .m-reports__scheduleLayout { grid-template-columns: minmax(0, 1fr); }
.m-reports__previewPanel { position: sticky; top: 16rem; min-width: 0; gap: 0; overflow: hidden; height: fit-content; }
.m-reports__previewPanel > p { padding-block: 20rem; margin: 0; }
.m-reports__previewPanel > .m-reports__draftStatus { flex: 0 0 auto; padding: 8rem 16rem; }
.m-reports__previewPanel:has(> .m-reports__previewFrame:not([hidden])) { height: calc(100dvh - 32rem); box-sizing: border-box; }
.m-reports__previewPanel > .e-container__header { flex-shrink: 0; }
.m-reports__previewFrame { display: block; flex: 1 1 0; min-height: 0; width: 100%; border: 0; }
.m-reports__embeddedMain { width: 100%; min-width: 0; }
.m-reports__embeddedMain .m-reports__viewer { box-shadow: none; }
@media (max-width: 1100px) {
    .m-reports__split { grid-template-columns: minmax(0, 1fr); }
    .m-reports__previewPanel { position: static; }
}

body:has(.m-reports__embeddedMain) { display: block; margin: 0; padding: 0; overflow: hidden; }
.m-reports__embeddedMain .m-reports__viewer { height: 100dvh; gap: 0; }
.m-reports__embeddedMain .m-reports__workspace { display: flex; flex: 1 1 0; min-height: 0; --report-stage-padding: 12px; }
.m-reports__embeddedMain .m-reports__outline { display: none; }
.m-reports__embeddedMain .m-reports__stage { flex: 1; min-width: 0; height: 100%; overflow: hidden; padding: var(--report-stage-padding); }
.m-reports__embeddedMain .m-reports__pageFrame {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}
.m-reports__embeddedMain .m-reports__pageFrame:not([data-report-active-page]) { visibility: hidden; }
.m-reports__embeddedMain .m-reports__viewerFooter { max-height: 20dvh; overflow: auto; }
.m-reports__embeddedMain .m-reports__stage[data-report-enlarged] { overflow: auto; }
.m-reports__embeddedMain [data-report-enlarged] .m-reports__pageFrame {
    inset: 0 auto auto 0;
    transform: none;
}
.m-reports__embeddedMain [data-report-enlarged] .m-reports__pageFrame[data-report-active-page] {
    position: relative;
    margin-inline: auto;
}


