﻿@import url(../../FW/css/root.css);

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    font-family: var(--font-family-primary);
}

.body-inicio {
    width: 100%;
    min-height: 100%;
    padding-inline: 0;
    gap: 0.5rem;
    background-color: var(--color-backgroundcolor-body-1);
    border-radius: 0.4rem;
}

.div-container-frame {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.containerCards {
    padding: 0.5rem;
    gap: 0.25rem;
}

.container-form-standard {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    width: 100%;
    gap: 0 32px;
    padding: 0rem 0.5rem;
}

/* flex:1 — override intencional: base.css lo omite para que las cards en módulos FW
   no se estiren; en el portal sí se quiere ese comportamiento. */
.container-form-card-standard {
    flex: 1;
}

.card-standard {
    padding: 1rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 0.4rem;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-1 {
    box-shadow: 0px 2px 4px var(--color-secondary-3);
    border-radius: 0.4rem;
    background-color: #ffffff;
    width: 95%;
    height: 4.5rem;
}

.card-1-content {
    padding: 0.5rem 0.5rem 0.5rem 0rem;
    width: 100%;
    height: 100%;
    gap: 0.25rem;
}

.card-1-marker {
    width: 0.5rem;
    height: 100%;
    border-radius: 0.4rem 0rem 0rem 0.4rem;
}

.card-1-left {
    width: 10%;
    height: 100%;
}

.card-1-center {
    width: 80%;
}

.card-1-righ {
    width: 10%;
    height: 100%;
}

.card-1-tit {
    font-weight: 600;
    font-size: var(--font-size-md);
}

.card-1-text {
    font-size: var(--font-size-md);
    color: var(--color-secondary-2);
}

.card-1-text-head {
    font-size: var(--font-size-sm);
}

/******card-2******/
.card-2 {
    box-shadow: 0px 2px 4px var(--color-secondary-3);
    border-radius: 0.4rem;
    background-color: var(--color-secondary-3);
    width: 95%;
    height: 4.5rem;
}

.card-2-content {
    padding: 0.5rem 0.5rem 0.5rem 0rem;
    width: 100%;
    height: 100%;
    gap: 0.2rem;
}

.card-2-marker {
    background-color: transparent;
    width: 0.5rem;
    height: 100%;
    border-radius: 0.4rem 0rem 0rem 0.4rem;
}

.card-2-left {
    width: 10%;
    height: 100%;
}

.card-2-center {
    width: 80%;
}

.card-2-righ {
    width: 10%;
    height: 100%;
}

.card-2-tit {
    font-weight: 600;
    font-size: var(--font-size-md);
}

.card-2-text {
    font-size: var(--font-size-sm);
}

.card-2-text-head {
    font-size: var(--font-size-sm);
}

.btn-icon {
    padding: 0.5rem;
    cursor: pointer;
}

.div-counter {
    cursor: pointer;
    display: flex;
    position: relative;
}

.btn-divSpan-counter {
    background-color: var(--color-primary-2);
    height: 20px;
    color: #ffffff;
    width: 20px;
    position: absolute;
    bottom: 0.9rem;
    right: -0.6rem;
    border-radius: 50%;
    text-align: center;
}

.tr_cel {
    background-color: var(--color-secondary-4);
}

    .tr_cel > td:hover {
        background-color: white !Important;
    }


.footer-modal {
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 0.5rem;
    box-sizing: border-box;
}

@media screen and (max-width: 668px) {
    .footer-modal {
        padding-block: 20px 15px;
    }
}

.chips {
    padding: 1px 6px;
    border-radius: 60px;
    font-weight: 600;
    font-size: var(--font-size-2xs);
    text-transform: uppercase;
}

    .chips.green {
        border: 1px solid #339d57;
        color: #339d57;
    }

    .chips.yellow {
        border: 1px solid #f4b402;
        color: #f4b402;
    }

    .chips.red {
        border: 1px solid #da4437;
        color: #da4437;
    }

    .chips.lightblue {
        border: 1px solid #25bbc8;
        color: #25bbc8;
    }

/****************Listado de tenant*******************/

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
    padding: 50px;
}

.card-item {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background: #F3F3F9;
    width: calc(10% - 0.25rem);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    cursor: pointer;
}

.card-image {
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .card-image img {
        object-fit: contain;
        display: block;
    }

/****************** Spinner en cabecera *****************/
.download-spinner {
    width: 24px;
    height: 24px;
    position: relative
}

/******************Selector de cuentas*******************/
.custom-select-container {
    position: relative;
    width: 250px;
    font-family: Arial, sans-serif;
}

.custom-select-container-mobile {
    display: none
}

.custom-select-selected {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
}

    .custom-select-selected .arrow {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

.custom-select-options {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    border-top: none;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    z-index: 99;
    border-radius: 0 0 4px 4px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
}

    .custom-select-options div {
        padding: 10px;
        cursor: pointer;
    }

        .custom-select-options div:hover {
            background-color: #f1f1f1;
        }

.select-hide {
    display: none;
}

.option.selected {
    background-color: #f0f0f0;
    font-weight: bold;
}

.busqueda-avanzada {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/****** Menú desplegable ******/
.menu-item {
    width: 80%;
    height: 100%;
    border-right: solid #ffffff 1px;
    gap: 0.5rem;
}

.submenu {
    width: 80%;
    position: absolute;
    top: 100%;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.submenu-mobile {
    position: absolute;
    top: 100%;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.submenu-header {
    cursor: default;
    color: black;
    padding: 10px 15px;
    font-weight: bold;
}

.submenu-item {
    padding: 15px 20px 10px 10px;
    cursor: pointer;
    color: #333;
}

    .submenu-item:hover {
        background-color: #f0f0f0;
    }

/*    .submenu-item.mobile {
        border-bottom: 1px solid #e5e7eb
    }

        .submenu-item.mobile:last-child {
            border-bottom: none
        }*/

.profile-menu {
    display: none;
    flex-direction: column;
    gap: 15px;
    width: 300px;
    padding: 20px;
    position: absolute;
    top: 30px;
    right: 0;
    color: #333;
    background-color: #f9fafb;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
}

.profile-menu-header {
    display: flex;
}

.close-session {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--color-secondary-2);
    cursor: pointer;
}

    .close-session:hover {
        color: var(--color-primary-2);
    }

    .close-session svg {
        fill: #a9a9a9;
    }

    .close-session:hover svg {
        fill: var(--color-primary-2);
    }

.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

    .user-info svg {
        fill: #6b7280;
    }

.user-icon {
    width: 30px;
    height: 30px;
    background-color: var(--color-primary-5);
    border-radius: 50%;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .user-details .user-email {
        font-size: var(--font-size-sm);
        color: #6b7280;
    }

/*  Encabezados de iframe entidad_mostrar */
.head-frame {
    width: 100%;
    height: 2.70rem;
    padding: 0.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ddd;
    border-radius: 0.4rem;
    background-color: #ffffff;
}

.head-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.6rem;
}

#block-icon-desktop {
    display: flex
}

#block-icon-mobile {
    display: none
}

@media (max-width: 768px) {
    .head-frame {
        height: auto;
    }

    #block-icon-desktop {
        display: none
    }

    #block-icon-mobile {
        display: flex
    }
}

.tabs-canva-container {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0.5rem;
    background-color: #fff;
    border-radius: 0.4rem;
}

.canva-container {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    /*border: 1px solid #ddd;*/
    /*border-radius: 0 0.4rem 0.4rem 0.4rem;*/
    overflow: hidden;
    /*border-top: 1px solid #ddd;*/
}

.tabs-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
}

#tabsCanvaContainer {
    padding: 0;
    padding-top: 0.5rem
}

.contenedor-general .contenedor-seccion {
    border: none;
    border-block: 1px solid #ddd;
}

.tabla-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 1rem;
    padding-right: 0.04rem;
}

.text_logo_cabecera {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    font-size: var(--font-size-2xs);
}

.download-spinner {
    position: absolute;
    left: -35px;
}

@media screen and (max-width: 768px) {
    .text_logo_cabecera {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .canva-container {
        margin-bottom: 10px;
    }

    .custom-select-container {
        display: none !important;
    }

    .custom-select-container-mobile {
        display: flex;
    }

    .pd-0-mobile {
        padding: 0 !important;
    }

    .logo-container {
        justify-content: space-evenly
    }
}

@media (min-width: 768px) {
    #iframeCoverDiv {
        display: none;
    }
}
/* Estilos para el dropdown */
/* .dropdown-component base: base.css */
.dropdown-component.show {
    display: flex;
}

.dropdown-menu {
    width: max-content;
    position: absolute;
    z-index: 1001;
    right: 10px;
    top: 9px;
}

/* .dropbtn base: base.css */
.dropbtn svg {
    fill: var(--color-primary-2);
}

/* Normalmente usado en Filtro avanzado */
.dropdown-standard {
    display: none;
    position: absolute;
    top: 30px;
    left: 50%;
    min-width: 190px;
    padding: 0.7rem 0.5rem;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    transform: translateX(-50%);
    border-radius: 0.4rem;
    background-color: #ffffff;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    overflow: hidden;
}

    .dropdown-standard.dropdown-table {
        left: auto !important;
        right: 0 !important;
        transform: none;
    }

    .dropdown-standard.show {
        display: flex;
    }

/* Normalmente usado en Filtro avanzado */
.dropdown-item-filtro {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Normalmente usado en descarga de csv/excel */
.dropdown-item-descarga {
    padding: 0.3rem;
    color: black;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 0.3rem;
    cursor: pointer;
}

    .dropdown-item-descarga:hover {
        background-color: #e7e7e7;
    }

    .dropdown-item-descarga:active {
        background-color: #f0f0f0;
    }

    .dropdown-item-descarga:hover svg {
        fill: var(--color-primary-2);
    }


@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.rotate {
    animation: rotate360 1s ease-in-out;
}

/*--------Contenedor de Filtros en header --------*/
.filter-main-container {
    width: 100%;
    padding-bottom: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.filter-wrapper {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.filter-input {
    width: auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.3rem;
}

.filter-label {
    font-weight: 600;
    font-size: var(--font-size-md);
    color: #333;
    white-space: nowrap;
}

.actions-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* TODO: reveer estilos para mobile */
@media (max-width: 768px) {
}

/*--------Filtro Avanzado Flotante--------*/
/*
    @author: Emi :)
*/
.btn-flotante {
    cursor: pointer;
}

.flotante {
    display: none;
    position: absolute;
    background-color: white;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 5px;
    width: 200px;
}

/*--------Toggle Switch Checkbox--------*/

.switch-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--font-size-md); /* Texto un poco más chico */
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px; /* Más chico */
    height: 18px;
}

    .switch input {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        cursor: pointer;
        z-index: 2;
    }

.slider {
    position: absolute;
    inset: 0;
    background-color: #ccc;
    transition: background-color 0.3s;
    border-radius: 999px; /* Totalmente redondo */
}

    .slider::before {
        content: "";
        position: absolute;
        height: 14px;
        width: 14px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        transition: transform 0.3s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: var(--color-primary-2, #4caf50);
}

    input:checked + .slider::before {
        transform: translateX(16px);
    }

.tbPages tr td:hover {
    background-color: var(--color-primary-4) !important
}
/* Boton flotante */
.fab-container {
    display: none;
    position: fixed;
    bottom: .5rem;
    left: .5rem;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .fab-container-show {
        display: flex;
    }
}

/* Botón principal */
.fab-main {
    width: 46px;
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: var(--color-primary-2);
    color: white;
    font-size: 2rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.5s ease, background-color 0.5s ease;
    z-index: 0;
}

.fab-container.active .fab-main {
    transform: rotate(360deg);
}

.fab-main:focus {
    outline: none;
}

/* Opciones ocultas inicialmente */
.fab-options {
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-height: 0;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    max-height: 0;
    overflow: visible;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* rebote suave */
}

/* Mostrar opciones al activar */
.fab-container.active .fab-options {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    max-height: 500px;
}

/* Botones de opción */
.fab-option {
    opacity: 0;
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primary-2);
    font-size: 1.5rem;
    border: none;
    border-radius: 50%;
    background-color: #ffffff;
    cursor: pointer;
    transform: translateY(10px) scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 0px 12px rgba(0, 0, 0, 0.4);
}

    .fab-option:focus {
        outline: none;
    }

    .fab-option:active {
        box-shadow: none;
    }

/* Animación escalonada */
.fab-container.active .fab-option {
    opacity: 1;
    transform: translateY(0) scale(1);
}

    .fab-container.active .fab-option:nth-child(1) {
        transition-delay: 0.1s;
    }

    .fab-container.active .fab-option:nth-child(2) {
        transition-delay: 0.2s;
    }

    .fab-container.active .fab-option:nth-child(3) {
        transition-delay: 0.3s;
    }

/* .fab-btn-number-counter: base.css — si el portal necesita un tamaño distinto, usar clase propia */
/*  Widget menú right class*/
.item-location {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
}

    .item-location:hover {
        background-color: #f8f8f8;
        color: var(--color-primary-1);
    }

/* Input de menu left */
#telefono {
    text-align: left !important;
}

#cuit {
    text-align: left !important;
}

.link-selected {
    border: 2px solid var(--color-primary-2);
    padding: 0.5rem;
}

.rotated-arrow-down {
    transform: rotate(180deg);
}

.transition-arrow-rotate {
    transition: transform 0.3s ease;
}

.padd-left {
    padding-left: 1rem !important;
}


.text-ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* Button que se comenzo a utilizar en la tabla de contratos, se pasaron aca ya que se estaba duplicando el codigo */
.btn_normal_O {
    background-color: var(--color-primary-2) !important;
    border: none;
    border-radius: 0.6rem;
    box-shadow: rgba(29, 35, 40, 0.15) 0px 3px 5px 0px;
    font-family: var(--font-family-primary);
    text-align: center !important;
    font-weight: bold;
    cursor: pointer !important;
    color: #ffffff;
    width: auto;
    height: 24px;
    font-size: var(--font-size-2xs);
    padding: 0 5px;
}


    .btn_normal_O:hover {
        background-color: var(--color-primary-1) !important;
        transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !important;
        box-shadow: rgba(29, 35, 40, 0.15) 0px 3px 5px 0px;
    }

.btnNormal_N {
    cursor: pointer !important;
    color: var(--color-primary-2);
    border: 2px solid var(--color-primary-2);
    border-radius: 0.6rem;
    font-weight: bold;
    white-space: nowrap;
    font-size: var(--font-size-2xs);
    font-family: var(--font-family-primary);
    box-shadow: rgba(29, 35, 40, 0.15) 0px 3px 5px 0px;
    width: auto;
    height: 24px;
    background-color: #fff;
    padding: 0 5px;
}

    .btnNormal_N:hover {
        background-color: var(--color-secondary-4);
        color: var(--color-primary-1);
    }


    .btnNormal_N[disabled], .btn_normal_O[disabled] {
        background-color: var(--color-secondary-4) !important;
        color: var(--color-secondary-2) !important;
        opacity: 0.6;
        cursor: not-allowed;
        box-shadow: none;
        border-color: var(--color-secondary-4) !important;
        box-shadow: none
    }

.menu-flotante {
    position: fixed;
    /*right: 30px;*/
    min-width: 150px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
    z-index: 1000;
    /*top: -30px;*/
}

    .menu-flotante.open {
        display: block;
    }


.menu-item-flotante {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.3rem;
    gap: 6px;
    text-decoration: none;
    color: var(--color-secondary-2);
    cursor: pointer;
}

    .menu-item-flotante.item-deleted svg {
        fill: #EA3323;
    }

    .menu-item-flotante.item-deleted:hover svg {
        fill: #EA3323;
    }

    .menu-item-flotante:active {
        background-color: #ededed;
    }


.ticket-color {
    opacity: 1;
}

.tooltip {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 3px;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: var(--font-size-sm);
    white-space: normal;
    transition: opacity 0.5s ease;
    opacity: 0;
    display: none;
}

    .tooltip.show {
        opacity: 1;
        display: block;
    }

.menu-flotante.open {
    display: block;
}

.comprobante-cabecera {
    background-color: var(--color-primary-1);
    color: white;
}

/**TABLA TIPO CARD*/

.tabla-row {
    display: flex;
    gap: 0.5rem;
    flex-direction: row;
    width: 100%;
    padding: 0.8rem 0.5rem;
    background-color: #fff;
    box-shadow: rgba(0,0,0,0.1) 0 2px 4px;
    border: 1px solid #ddd;
    border-radius: 0.4rem;
    transition: transform 260ms cubic-bezier(.2,.8,.2,1);
}

.tabla-header {
    display: grid;
    grid-template-columns: var(--tabla-grid);
    align-items: center;
    padding: 0.8rem 0.5rem;
    font-size: 14px;
    color: var(--color-black-3);
    background-color: var(--color-secondary-3);
    margin-bottom: 0.5rem;
}

/***/

.footer-buttons-end {
    padding: 0.5rem;
    gap: 0.5rem;
    width: 100%;
    height: max-content;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin-top: auto;
}

.footer-buttons-center {
    padding: 0.5rem;
    gap: 0.5rem;
    width: 100%;
    height: max-content;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}



/*-----------------ESTILO CARD COMO EN MODAL.CTA-CTE -----------------*/
.contenedor-card {
    box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px;
    border: 1px solid #ddd;
    border-radius: 0.4rem;
    padding: 0.5rem;
}

.contenedor-card-titulo {
    padding: 1px 6px;
    border-radius: 60px;
    font-size: var(--font-size-sm);
    width: max-content;
    border: 1px solid var(--color-primary-2);
    color: var(--color-primary-2);
}

.footer-card {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
}

/* ═══════════════════════════════════════════════════════════════
   Variables portal (complementan root.css)
   ═══════════════════════════════════════════════════════════════ */
:root {
    --color-text-primary: #1c1c1e;
    --color-text-secondary: #6b7280;
    --color-bg: #ffffff;
    --color-border: #e5e7eb;
    /* Estados operatoria financiera */
    --Aprobada: #16a34a;
    --Evaluacion: #2563eb;
    --Borrador: #6b7280;
    --Rechazada: #dc2626;
    --Cancelada: #dc2626;
}

/* ═══════════════════════════════════════════════════════════════
   Layout de formularios en ventana (page-layout / page-body / page-tab)
   ═══════════════════════════════════════════════════════════════ */
.page-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding-inline: 0.25rem;
}

.page-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.page-tab {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════════
   Nav / tabs
   ═══════════════════════════════════════════════════════════════ */
.nav-tabs { margin-top: 0.5rem; }

/* ═══════════════════════════════════════════════════════════════
   Footer de formulario ventana (detalle-footer)
   ═══════════════════════════════════════════════════════════════ */
.detalle-footer        { justify-content: space-between; }
.detalle-footer-left   { display: flex; align-items: center; }
.detalle-footer-right  { display: flex; align-items: center; gap: 14px; }
.footer-group          { display: flex; align-items: center; gap: 8px; }
.footer-label          { font-size: var(--font-size-sm); font-weight: 600; color: var(--color-text-secondary); }

/* ═══════════════════════════════════════════════════════════════
   Sección resumen — detalle de entidad / operación
   ═══════════════════════════════════════════════════════════════ */
.resumen-seccion {
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

    .resumen-seccion h4 {
        font-size: var(--font-size-sm);
        font-weight: 700;
        color: var(--color-text-secondary);
        text-transform: uppercase;
        letter-spacing: .6px;
        margin: 0 0 14px;
        padding-bottom: 6px;
        border-bottom: 1px solid var(--color-border);
    }

.resumen-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    padding: 0 8px;
}

.resumen-item {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
}

    .resumen-item .resumen-label {
        font-size: var(--font-size-xs);
        font-weight: 600;
        color: var(--color-text-secondary);
        text-transform: uppercase;
    }

    .resumen-item .resumen-valor {
        font-size: var(--font-size-md);
        font-weight: 500;
        color: var(--color-text-primary);
    }

/* ═══════════════════════════════════════════════════════════════
   Badge de estado
   ═══════════════════════════════════════════════════════════════ */
.badge {
    border: 1px solid #9ca3af;
    color: #6b7280;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: var(--font-size-md);
    background: #f9fafb;
    cursor: pointer;
}

.badge-active {
    background-color: var(--color-primary-1);
    border: 1px solid var(--color-primary-1);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   Utilidades portal
   ═══════════════════════════════════════════════════════════════ */
.hide     { display: none !important; }
.flex-row { display: flex; flex-direction: row; gap: 10px; }

.contenedor-botones { display: flex; gap: 0.5rem; flex-direction: row; }

.header-info-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   Iframe y panel visualizador (split-screen)
   ═══════════════════════════════════════════════════════════════ */
.iframe {
    border: none;
    flex: 1;
    padding: 0.75rem;
}

.panel-visualizador {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-left: 1px solid var(--color-border, #ddd);
}

    .panel-visualizador .iframe {
        flex: 1;
        width: 100%;
        height: 100%;
        border: none;
    }

/* ═══════════════════════════════════════════════════════════════
   Resultado de calculadora / análisis
   ═══════════════════════════════════════════════════════════════ */
.calc-resultado {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    margin-top: 4px;
    padding: 16px;
    background: var(--color-backgroundcolor-body-2, #f5f7fa);
    border-radius: 8px;
    flex-wrap: wrap;
}

.calc-resultado-item { display: flex; flex-direction: column; gap: 4px; }

    .calc-resultado-item strong {
        font-size: var(--font-size-xs);
        font-weight: 600;
        color: var(--color-secondary-1);
        text-transform: uppercase;
        letter-spacing: .4px;
    }

    .calc-resultado-item span {
        font-size: var(--font-size-2xl);
        font-weight: 700;
        color: var(--color-primary-1);
    }

/* ═══════════════════════════════════════════════════════════════
   Mobile — formulario ventana
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {

    .detalle-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 14px;
    }

    .detalle-footer-left  { width: 100%; }
    .detalle-footer-right { width: 100%; justify-content: flex-end; gap: 8px; }
    .footer-label         { width: 50%; }

    .detalle-footer-left .footer-group { width: 100%; }

    .detalle-footer-left #estadoContainer,
    .detalle-footer-left #estadoContainer table { width: 100% !important; }

    .resumen-grid { gap: 12px 16px; }
    .nav-tabs     { gap: 0.5rem; }

}
