html,
body {
    height: 100%;
    margin: 0;
    background: #fff;
}

a, .btn-link {
    color: #006bb7;
}

* {
    box-sizing: border-box;
}

.page-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.alert{
    margin-bottom: 0 !important;
}
.mw-300{
    max-width: 300px;
}
.rz-dialog {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 15px;
}
.rz-row{
    justify-content: center !important;
}

.terms-link {
    color: var(--rz-primary, #3f51b5);
    cursor: pointer;
    text-decoration: underline;
}

    .terms-link:hover {
        opacity: .85;
    }


.rz-dialog-title {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--AzulUltraMar);
}

.rz-menu:not(.rz-profile-menu) {
    background: var(--P-AzulUltramar);
    color: #fff;
}

.user-menu .rz-menu .rz-menu {
    background: #fff;
    border-radius: .5rem;
    padding: .5rem 0;
}

.user-menu .rz-menuitem .rz-link {
    padding: .6rem 1rem;
    color: #111;
}

    .user-menu .rz-menuitem .rz-link:hover {
        background: #f5f5f5;
    }


.rz-dialog-title {
    font-size: 20px;
    font-family: Avenir-Heavy;
    color: var(--P-AzulUltramar);
}

.rz-dialog-alert-message {
    font-size: 14px;
    font-family: Avenir-Book;
}

.rz-button.rz-primary.rz-shade-default {
    background-color: var(--P-AzulUltramar) !important;
    border: none;
    color: white;
    padding: 6px 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* Header */
.acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #ececec;
    background: #fafafa;
    cursor: pointer;
    user-select: none;
}

    .acc-header .title {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 600;
    }

    .acc-header .right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .acc-header .chevron {
        width: 20px;
        height: 20px;
        transition: transform .25s ease;
        color: #00b0c6;
    }

        .acc-header .chevron.open {
            transform: rotate(180deg);
        }

/* Panel animado */
.acc-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .35s ease, opacity .25s ease;
}

    .acc-content.open {
        max-height: 5000px; /* grande para que quepa tu grid */
        opacity: 1;
        margin-top: 10px;
    }

/* Utilidades existentes */
.cell-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kpi-title {
    font-size: 14px;
    color: #6b7280;
}

.kpi-value {
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}


/*

    TERMS AND CONDITIONS


*/
.contenedor-terms-conditions{
    display: flex;
    gap: 16px;
  
   
    align-items: end;
}

.contenedor-buttons-zoom {
    display: flex;
    align-items: center;
    gap: 4px;
}

.terms-scroll {
    max-height: 80vh;
    overflow: auto; /* pan solo dentro del diálogo */
  
    padding: 0;
}

.terms-img {
    display: block;
    margin: 0 auto;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: auto;
}





.rz-dialog-buttons .rz-button:hover {
    background-color: #1d0a47; /* tono más oscuro */
}

@media (min-width: 320px) and (max-width: 720px){
    .rz-dialog-wrapper {
        top: 70px !important;
    }
}
@media (min-width: 320px) and (max-width: 720px) {
    .contenedor-terms-conditions {
      
        align-items: center;
    }
    .rz-chkbox {
        width: 44px !important;
        height: 30px !important;
    }
    .rz-row {
        flex-direction: column !important;
        flex-wrap: initial !important;
        gap: 0 !important;
        margin-top: 0;
    }
    .rz-row > .rz-col-4 {
        max-width: initial !important;
    }
    .acc-header{
    flex-direction: column;
    }

    .group-buttons {
        flex-direction: column;
    }
}

/* 1) Contenedor con scroll horizontal si no cabe */
.table-responsive {
    overflow-x: auto;
}

    .table-responsive .rz-datatable-table {
        min-width: 720px;
    }
/* ancho mínimo para evitar colapsos raros */

/* Celditas bonitas y que no corten el icono/texto */
.cell-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .cell-with-icon.nowrap {
        white-space: nowrap;
    }

/* 2) Estilo “stacked” en móvil */
.stacked {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 220px;
}

.stacked-main {
    font-weight: 600;
}

.stacked-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pill {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
}

.pill-gray {
    background: #f9fafb;
    color: #374151;
}

.pill-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #c7d2fe;
}

.pill-date {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

/* Afinar cabecera en móvil (opcional) */
@media (max-width: 768px) {
    .rz-datatable .rz-datatable-thead th {
        font-size: 12px;
    }

    .rz-datatable .rz-datatable-data td {
        font-size: 13px;
    }
}
