/* Layout */
html, body, .form {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

body {
    min-height: 100%;
    padding-top: 1px;
    margin-top: -1px;
}

.form {
    height: calc(100vh - 3.13rem); /* 3.13rem is the Header size */
}

.content-wrapper {
    position: relative;
    padding-bottom: 46px; /* Footer Height */
    min-height: calc(100% - 3.13rem); /* 3.13rem is the Header size */
}

html {
    height: 100%;
}

/* Content */
.content {
    width: 100%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    -webkit-overflow-scrolling: touch;
}

/* Footer */
.footer-wrapper {
    height: 46px; /* Footer Height */
    position: absolute;
    bottom: 0;
    width: 100%
}

.footer {
    font-size: 10.5px;
    color: #999999;
}

.footer-link {
    color: #999999;
    border-right: 1px solid #bbbbbb;
    margin-right: 7px;
    padding-right: 10px;
    white-space: nowrap;
}

    .footer-link:last-child {
        border: none;
        margin: 0;
        padding: 0;
    }

.footer-left {
    float: left;
}

.footer-right {
    float: right;
}

.footer-left,
.footer-right {
    padding: 16px 24px;
}

@media (max-width: 599px) {
    .footer-left,
    .footer-right {
        padding: 16px 4px;
    }
}

/* Header */
.app-header {
    /*background: linear-gradient(90deg, #063a32 0%, #ff0505 100%) !important;*/
    background-color: #063a32 !important; /*Color titulo*/
    padding: 0 !important;
    box-shadow: 0px 2px 5px 0 rgb(24 206 15 / 0.45);
    border-bottom-width: 0 !important;
}

    .app-header .left-block {
        float: left;
    }

    .app-header .right-block {
        float: right;
    }

    .app-header .menu-container {
        overflow: hidden;
    }

        .app-header .menu-container > div {
            float: right;
        }

.header-logo {
    background: url('Images/cich.png') no-repeat center;
    background-size: contain; /*cover*/
    height: 56px;
    width: 180px;
}

@media (max-width: 359px) {
    .header-logo {
        background: url('Images/cich.png') no-repeat center;
        background-size: contain;
        height: 36px;
        width: 140px;
    }
}

.app-header .left-block .header-menu .image-item > .dxm-content {
    padding: 0 8px 0 8px;
}

.app-header .right-block .header-menu .image-item > .dxm-content {
    padding: 0 7px 0 7px;
}

.app-header .left-block .header-menu .item.toggle-item > .dxm-content {
    padding: 0 14px 0 14px;
}

.app-header .right-block .header-menu .item.toggle-item > .dxm-content {
    padding: 0 14px 0 14px;
}

.app-header .header-menu .item.selected {
    color: #ffffff !important;
    box-sizing: border-box;
    /* DXCOMMENT: Duplicates color from the web.config (devexpress->themes->baseColor) */
    border-bottom: solid 2px #18CE0F;
}

.app-header .header-menu .item.selected,
.app-header .header-menu .item.hovered {
    background-color: rgba(0, 0, 0, 0.05);
}

    .app-header .header-menu .item.selected .dxm-content {
        margin-bottom: -2px;
    }

    .app-header .header-menu .item.selected .dxm-content,
    .app-header .header-menu .item.hovered .dxm-content {
        color: inherit;
    }

/* Main Menu */
.header-menu {
    background-color: #063a32 !important;
    border-style: none !important;
    height: 4.13rem;
}

@media (max-width: 599px) {
    .menu-container .dxm-ltr > div:not(.header-menu) {
        width: 100% !important;
    }

    .header-sub-menu {
        width: 100% !important;
    }
}

.header-sub-menu .item {
    padding: 12px 7px !important;
}

/* Ellipsis -> Apps Icon */
.header-menu .adaptive-image {
    background: url('Images/adaptive-menu.svg') no-repeat center;
    width: 16px;
    height: 16px;
    padding: 0 8px;
    filter: brightness(0) invert(1);
}
/* Hide item images */
.header-menu.application-menu .item .dxm-content > img {
    display: none !important;
}

@media (max-width: 720px) /* Change Ellipsis image Apps Icon */
{
    .app-header .menu-container > div {
        width: 47px;
    }

    .header-menu .adaptive-image {
        background: url('Images/application.svg') no-repeat center;
        filter: brightness(0) invert(1);
    }

    /* Show item images */
    .header-menu.application-menu .item .dxm-content > img {
        display: inline-block;
    }
}

/* Right area menu */
.header-menu .toggle-item .image {
    background: url('Images/double.svg') no-repeat center;
    filter: brightness(0) invert(1);
}

.header-menu .toggle-item.checked .image {
    background: url('Images/double-close.svg') no-repeat center;
    filter: brightness(0) invert(1);
}

.header-menu .image-item {
    vertical-align: middle !important;
    filter: brightness(0) invert(1);
}

.header-menu .vertically-aligned {
    font-size: 0;
}

/* Account */
.header-menu .account-background {
    width: 32px;
    height: 32px;
    display: flex;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
}

    .header-menu .account-background div {
        border-radius: 50%;
    }

    .header-menu .account-background .empty-image {
        width: 16px;
        height: 16px;
        margin: 8px;
        display: inline-block;
        background: url('Images/user.svg');
    }

    .header-menu .account-background .account-image {
        width: 32px;
        height: 32px;
        font-size: 0.8em;
        font-weight: 600;
        line-height: 32px;
        text-align: center;
        margin: 0 auto;
        display: table;
        background-size: 100%;
    }

.account-imagemenu {
    width: 50px;
    height: 50px;
    font-size: 1.5em;
    font-weight: 600;
    line-height: 36px;
    text-align: center;
    background-size: 100%;
    background-color: #07493f;
    border-radius: 50%;
    align-items: center;
    display: flex;
    justify-content: center;
    color: #fff;
}

.user-info .avatar img {
    float: left;
    height: 43px;
    border-radius: 50%;
}

.user-info .avatar div {
    float: left;
    height: 50px;
    border-radius: 50%;
}

.user-info .text-container {
    height: 3.13rem;
    margin-left: 60px;
}

    .user-info .text-container .user-name {
        color: #444444;
        font-size: 1.14em;
    }

    .user-info .text-container .email {
        display: block;
        color: #666666;
        font-size: 0.86em;
    }

.myaccount-item {
    background-color: #f8f6f6;
}

/* Left Panel */
.left-panel {
    border: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    -webkit-overflow-scrolling: touch;
}

.leftpanel-section {
    border: none !important;
    background-color: rgba(0, 0, 0, 0.1);
}

.section-caption {
    height: 2.69rem;
    line-height: 2.69rem;
    vertical-align: middle;
    margin: 0;
}

.section-caption {
    border-top: solid 1px #f0f0f0;
    border-bottom: solid 1px #f0f0f0;
}

.left-panel.expand-bar,
.right-panel.expand-bar {
    border: 0;
}

a.tree-view-node {
    color: #666666;
    padding-top: 7px !important;
    padding-bottom: 8px !important;
    padding-right: 8px !important;
    border: none !important;
}

    a.tree-view-node.hovered {
        text-decoration: none;
    }

.tree-view-elbow {
    padding-top: 3px;
}

/* Right Panel */
.right-panel {
    border-left: 1px solid #f0f0f0;
}

.settings-content {
    padding: 24px 20px;
}

    .settings-content h2 {
        color: #494949;
        font-size: 1.3em;
        font-weight: 600;
    }

    .settings-content p {
        color: #999999;
    }

/* Toolbar */
.page-toolbar-wrapper {
    position: fixed;
    background-color: white;
    left: 272px;
    right: 0;
    z-index: 1;
}

@media(max-width: 959px) {
    .page-toolbar-wrapper {
        left: 0;
    }
}

.page-toolbar {
    background-color: rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    font-size: 0.93em !important;
    height: 2.69rem;
}

    .page-toolbar .item > h1,
    .section-caption {
        color: #494949;
        font-weight: 600;
        font-style: normal;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-left: 24px;
    }

    .page-toolbar .item > h1 {
        font-size: 1.46em;
    }

    .page-toolbar .item > h1 {
        margin: 0;
        padding: 0 17px;
    }

    .page-toolbar .item .dxm-disabled .dxm-image {
        opacity: 0.3;
    }

@media (max-width: 599px) {
    .page-toolbar .item > h1 {
        max-width: 150px;
    }
}

/* Texto del menú */
.app-header .header-menu .dxm-item,
.app-header .header-menu .dxm-content {
    color: #ffffff !important;
}

    /* Hover y seleccionado */
    .app-header .header-menu .dxm-item.dxm-selected,
    .app-header .header-menu .dxm-item.dxm-hovered {
        color: #ffffff !important;
    }

/* Submenú */
.header-sub-menu .dxm-item,
.header-sub-menu .dxm-content {
    color: rgba(0, 0, 0, 0.5) !important;
}

.menu-icon {
    background-size: contain;
    filter: brightness(0) invert(1);
}

/*Menu Central*/
/* Contenedor */
.menu-dashboard {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding: 40px 20px;
}

/* Item */
.menu-item {
    width: 140px;
    height: 140px;
    background: #ffffff;
    border: 2px solid #0f6b5b; /* nuevo borde */
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    text-align: center;
    /* sombra verde mejorada */
    box-shadow: 0 6px 14px rgba(6, 58, 50, 0.35);
    transition: all 0.25s ease;
}

    /* Icono */
    .menu-item img {
        width: 56px;
        height: 56px;
    }

    /* Hover */
    .menu-item:hover {
        transform: translateY(-5px);
        border-color: #18CE0F; /* verde acento */
        box-shadow: 0 8px 20px rgba(6, 58, 50, 0.5);
    }

    /* Click */
    .menu-item:active {
        transform: scale(0.96);
    }

@media (max-width: 600px) {
    .menu-dashboard {
        flex-direction: column;
    }

    .menu-item {
        width: 130px;
        height: 130px;
    }
}

:root {
    --verde-principal: #0f5c4d;
    --verde-secundario: #198754;
    --verde-claro: #e8f5f1;
    --gris-borde: #dcdcdc;
}

/* Contenedor */
.resumen-container {
    margin: 0 auto 15px auto;
    /*font-family: Arial, sans-serif;*/
    max-width: 1000px;
    width: 90%;
}

@media (max-width: 600px) {
    .resumen-container {
        max-width: 100%;
        padding: 0 10px;
    }
}

/* Header */
.resumen-header {
    margin-bottom: 8px;
    /*font-size: 15px;*/
    color: #333;
}

/* Caja principal */
.resumen-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 10px;
    padding: 12px;
    background-color: var(--verde-claro);
    border: 1px solid #d0e2de; /*var(--verde-principal)*/
    width: 100%;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Items */
.resumen-item {
    /*   flex: 1;
    min-width: 150px;*/
    flex: 1 1 200px;
    min-width: 0;
    background: white;
    border-radius: 8px;
    padding: 10px;
    border-left: 5px solid var(--verde-secundario);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Label */
.label {
    font-size: 14px;
    font-weight: bold;
    color: #555;
}

/* Valor */
.value {
    font-size: 16px;
    font-weight: bold;
    color: var(--verde-secundario);
}

/* Total destacado */
.total {
    border-left: 5px solid var(--verde-secundario);
}

    .total .value {
        color: var(--verde-principal);
        font-size: 16px;
    }

.vencido {
    border-left: 5px solid var(--verde-principal);
}

    .vencido .value {
        color: #b02a37;
        font-size: 16px;
    }

/* Estado */
.estado {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
}

/* Estado NO solvente */
.no-solvente {
    background-color: #ffe5e5;
    color: #b02a37;
    border-left: 5px solid #b02a37;
}

/* Estado solvente (por si lo usas después) */
.solvente {
    background-color: #6ae464;
    color: #1e7e34;
    border-left: 5px solid #1e7e34;
}

/* Responsive */
@media (max-width: 600px) {
    .resumen-box {
        flex-direction: column;
    }

    .resumen-item {
        flex: 1 1 100%;
        width: 100%;
    }
}

.pago-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px auto;
    max-width: 90%;
    padding: 10px 15px;
    border-radius: 10px;
    background-color: #e8f5f1;
    border: 1px solid #d0e2de;
    flex-wrap: wrap;
    gap: 10px;
}

.pago-total {
    font-size: 16px;
}

    .pago-total .label {
        font-weight: bold;
        margin-right: 5px;
    }

#lblTotalSeleccionado {
    font-weight: bold;
    color: #0f5c4d;
    font-size: 18px;
}

.btn-procesar {
    background-color: #024422;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

@media (max-width: 600px) {
    .btn-procesar {
        display: block;
        margin: 0 auto;
    }
}

.btn-procesar:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}


.modal-pago {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
    width: 90%;
    max-width: 400px;
}

/*bloqueo*/

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

/*Contenedor TC V1*/

.custom-container-tc-res {
    position: fixed; /* clave */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001; /* mayor que overlay */

    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

.custom-container-tc-res-imput {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /*align-items: center;*/
    margin: 0 auto; /* Centra el contenedor */
    margin-bottom: 10px; /* Espacio entre cada contenedor */
    max-width: 350px; /* Limita el ancho del contenedor a 600px */
    width: 100%;
}

/*Con TC V2*/
.tc-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 420px; /* límite en desktop */
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.25);
    z-index: 1001;
    padding: 20px;
}

/* HEADER */
.tc-modal-header {
    margin-bottom: 15px;
}

    .tc-modal-header h3 {
        margin: 0 0 10px 0;
        font-size: 18px;
    }

/* TOTAL */
.pago-total-modal {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    padding: 10px;
    background: #f3f3f3;
    border-radius: 8px;
}

/* FORM COLUMN */
.tc-modal-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    /* INPUTS UNIFORMES */
    .tc-modal-body input {
        width: 100%;
        max-width: 100%; /* clave */
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
        box-sizing: border-box;
        font-size:15px;
    }

/* FOOTER BOTONES */
.tc-modal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    gap: 10px;
}

/* BOTONES */
.btn-cancelar, .btn-pagar {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.btn-cancelar {
    background: #e0e0e0;
}

.btn-pagar {
    cursor: pointer;
    transition: 0.2s;
    background: #024422;
    color: white;
}

    .btn-pagar:disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }


/* RESPONSIVE MOBILE */
@media (max-width: 480px) {
    .tc-modal {
        width: 95%;
        padding: 15px;
    }

    .tc-modal-footer {
        flex-direction: column;
    }
}

.tc-modal {
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.payment-logos {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 40px;
}

.payment-logo {
    height: 25px;
    width: auto;
}

.alert {
    position: absolute; /* Cambiado a absolute para que no afecte el flujo */
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    z-index: 9999;
}

.alert-container {
    /*position: fixed;*/ /* Hace que el contenedor esté en una posición fija */
    /*top: 3%;
    left: 219px;
    transform: translateX(-50%);*/ /* Centramos el contenedor */
    /*width: 100%;*/ /* El contenedor ocupa el 100% del ancho */
    /*z-index: 9999;
    display: flex;*/ /* Usamos flexbox para asegurar que se alinee bien */
    /*justify-content: center;*/ /* Esto centra la alerta en el contenedor */
    position: fixed;
    top: 3%;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    min-width: 300px;
    max-width: 500px;
    z-index: 9999;
}

.error-alert {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.success-alert {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alerterror {
    position: absolute; /* Cambiado a absolute para que no afecte el flujo */
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #f44336; /* Rojo para el error */
    z-index: 9999;
}

.alerterror-container {
    position: fixed; /* Hace que el contenedor esté en una posición fija */
    top: 3%;
    left: 219px;
    transform: translateX(-50%); /* Centramos el contenedor */
    width: 100%; /* El contenedor ocupa el 100% del ancho */
    z-index: 9999;
    display: flex; /* Usamos flexbox para asegurar que se alinee bien */
    justify-content: center; /* Esto centra la alerta en el contenedor */
}

/* Estilo para el botón de cierre */
.close-btnerror {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 18px;
    color: white;
    cursor: pointer;
}

    .close-btnerror:hover {
        color: #ddd;
    }

/*certificados*/
.card-colegiado {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    /*margin-top: 15px;*/
    max-width: 1000px;
    width: 90%;
    margin: 0 auto 15px auto;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 600px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .badge-estado {
        align-self: flex-start;
    }
}

.codigo {
    font-size: 13px;
    color: #888;
}

.nombre {
    font-size: 15px;
    font-weight: 500;
    color: #222;
}

/* Badge estado */
.badge-estado {
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
}

    .badge-estado.solvente {
        background: #d4f5dd;
        color: #1e7e34;
    }

    .badge-estado.medio-solvente {
        background: #ffc107;
        color: #333;
    }

    .badge-estado.no-solvente {
        background: #fde2e2;
        color: #a71d2a;
    }

/* Área de acción */
.card-body {
    margin-top: 15px;
    font-size: 15px;
}

/* Botones */
/*.botones-acciones {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}*/

.btn-accion {
    transition: 0.2s;
    max-width: 220px;
    width: 100%;
    text-align: center;
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
}

.btn-descargar {
    background: #007bff;
    color: white;
}

.btn-generar {
    background: #024422;
    color: white;
}

.btn-ir-pagar {
    background: #ffc107;
    color: #333;
}

.seccion {
    max-width: 1000px;
    width: 90%;
    margin: 0 auto;
}

.titulo-seccion {
    font-size: 16px;
    font-weight: 600;
    color: #1f3b2c; /* tono institucional */
    margin: 10px 0 8px 0;
    padding-left: 4px;
    border-left: 4px solid #28a745;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        font-size: 13px;
        color: #444;
        font-weight: 500;
        display: block;
        margin-bottom: 5px;
    }

.input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
}

    .input:focus {
        border-color: #28a745;
        box-shadow: 0 0 0 2px rgba(40,167,69,0.15);
        outline: none;
    }

.form-group.full {
    grid-column: span 2;
    /*align-items: center;*/
    /* display: flex;
    justify-content: flex-start;  importante */
}

    .form-group.full > *:not(label) {
        max-width: 520px;
        width: 100%;
    }

    .form-group.full .input,
    .form-group.full select,
    .form-group.full textarea {
        max-width: 520px;
        width: 100%;
    }

@media (max-width: 600px) {
    .form-group.full .input,
    .form-group.full select,
    .form-group.full textarea {
        max-width: 100%;
    }
}

.form-group.grupo-empresa {
    display: flex;
    flex-direction: row; /* los field-group en una sola fila */
    flex-wrap: wrap; /* se apilan en pantallas pequeñas */
    gap: 16px;
    align-items: flex-start;
}

.form-group.grupo-extranjera {
    display: flex;
    flex-direction: row; /* los field-group en una sola fila */
    flex-wrap: wrap; /* se apilan en pantallas pequeñas */
    gap: 16px;
    align-items: flex-start;
}

.field-group {
    display: flex;
    flex-direction: column; /* label arriba, input abajo */
    flex: 1;
    min-width: 250px; /* mínimo antes de apilarse */
    max-width: 520px;
}

.form-group.grupo-razon {
    display: flex;
    flex-direction: row; /* los field-group en una sola fila */
    flex-wrap: wrap; /* se apilan en pantallas pequeñas */
    gap: 16px;
    align-items: flex-start;
}

.input-error {
    border: 2px solid #e53e3e !important;
    background-color: #fff5f5 !important;
    outline: none;
}

/* BOTONES en desktop */
.botones-acciones {
    /*display: flex;
    gap: 15px;
    justify-content: center;*/
    display: flex !important;
    flex-direction: row !important;
    gap: 12px;
    /*    align-items:center;*/
}

.btn-accion {
    max-width: 220px;
    width: 100%;
}

@media (max-width: 600px) {

    .botones-acciones {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch; /* clave */
        gap: 12px;
    }

    .btn-accion {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* MOBILE */
/*@media (max-width: 600px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: span 1;
    }*/

/* botones se apilan SOLO en móvil */
/*.botones-acciones {
        flex-direction: column;
        align-items: center;
    }

    .btn-accion {
        max-width: 100%;
    }
}*/

.display-text {
    font-size: 15px;
    font-weight: normal;
    color: #555;
}

* {
    box-sizing: border-box;
}

/*---*/
.select-box {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 180px;
    cursor: pointer;
}

.ts-wrapper {
    max-width: 350px;
    width: 100%;
}

    .ts-wrapper.single {
        border: 1px solid #cfd8dc !important;
        border-radius: 10px !important;
        background: #fff !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
        transition: all 0.2s ease !important;
        min-height: 34px !important;
        height: 34px !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 !important;
    }

        .ts-wrapper.single::after {
            display: none !important;
        }

        .ts-wrapper.single .ts-control {
            border: none !important;
            background: transparent !important;
            box-shadow: none !important;
            border-radius: 10px !important;
            min-height: 34px !important;
            height: 34px !important;
            padding: 0 36px 0 12px !important;
            display: flex !important;
            align-items: center !important;
            position: relative !important;
            cursor: pointer !important;
            width: 100% !important;
        }

.ts-control input {
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ts-wrapper.single .ts-control .item {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333 !important;
    line-height: 34px !important;
}

.ts-wrapper.single:focus-within,
.ts-wrapper.single.focus {
    border-color: #1f9d55 !important;
    box-shadow: 0 0 0 3px rgba(31,157,85,0.18) !important;
}

.select-icon {
    position: absolute !important;
    top: 50% !important;
    right: 10px !important;
    transform: translateY(-50%) !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    z-index: 10 !important;
    color: #1f9d55 !important;
    display: flex !important;
    align-items: center !important;
}

.ts-dropdown.single {
    border: 1px solid #cfd8dc !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
    margin-top: 4px !important;
    font-size: 13px !important;
    overflow: hidden !important;
}

.ts-dropdown .option {
    padding: 8px 12px !important;
    cursor: pointer !important;
}

    .ts-dropdown .option:hover,
    .ts-dropdown .option.active {
        background-color: rgba(31,157,85,0.1) !important;
        color: #1f9d55 !important;
    }

    .ts-dropdown .option.selected {
        background-color: rgba(31,157,85,0.08) !important;
        font-weight: 600 !important;
    }

.codigo-select {
    display: none !important;
}

.codigo-label {
    margin-right: 8px;
    font-size: 13px;
    color: #888;
}


.form-grid {
    display: flex;
    flex-direction: column;
    gap: 5px; /* separación entre bloques completos */
}

.form-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* separación horizontal entre columnas */
    margin-bottom: 10px;
}

.field-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 300px;
    gap: 4px; /* separación entre label y control */
}

.field-group label {
    margin-bottom: 4px;
    font-weight: 600;
}

.input,
.codigo-select {
    min-height: 42px;
}

#PageContent_Contenedor6 .ts-wrapper {
    width: 100%;
}


#PageContent_Contenedor6 .select-wrapper {
    position: relative;
    display: block !important;
    align-items: center;
    min-width: 180px;
    cursor: pointer;
}

#PageContent_Contenedor6 .ts-wrapper {
    width: 100%;
}