@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');



/* ######################################################################################################### */

/*ESTILO PARA CUOTA GREMIAL*/

.grid-table-cg {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.row-cg {
    display: grid;
    grid-template-columns: repeat(7, 1fr);  /* ← ¡Ahora sí! */
    border-bottom: 1px solid #ccc;
}

.header-cg {
    font-weight: bold;
    background-color: #007bff;
    color: white;
}

.cell-cg {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: center;
}

.acciones-cg {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px; /* espacio entre botones */
}

.btn-cg {
    background-color: #007bff;
    color: white;
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;
}

.btn-cg.cancel {
    background-color: #6c757d;
    margin-left: 10px;
}

.form-cg {
    border: 1px solid #ccc;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    background-color: #f9f9f9;
}

.form-cg label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.form-cg input {
    width: 100%;
    padding: 6px;
    margin-top: 4px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-filtro-cg {
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.form-filtro-cg input[type="text"],
.form-filtro-cg input[type="date"] {
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
}


.paginacion-cg {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}
.paginacion-cg a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}


.salto-pagina-cg {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}
.salto-pagina-cg input[type="number"] {
    padding: 4px;
    font-size: 14px;
    text-align: center;
}

.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: white;
    border-radius: 8px;
    width: 400px;
    position: relative;
}
.close {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    font-size: 18px;
}

/* ######################################################################################################### */

/*** Estilos para el formulario de login ***/

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

.contenedor-login {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 60%;
    max-width: 1200px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-body {
    display: flex;
    justify-content: center;   /* Centra horizontalmente */
    align-items: center;       /* Centra verticalmente */
    min-height: 100vh;         /* Ocupa todo el alto de la ventana */
    margin: 0;
    padding: 0;
    background-image: url("../img/background_5.png");
    backdrop-filter: blur(3px);
    background-repeat: no-repeat; 
    background-size: cover;
    font-family: "Ubuntu";
    color: #000;
    animation: rotate 6s infinite alternate linear;
}

.caja-logo {
    flex: 1;
    background-image: url("../img/logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: #fff;
    margin: 5%;
}

.franja {
    width: 5px;
    background: linear-gradient(to bottom, rgba(114, 172, 244, 0.4), rgba(156, 149, 147, 0.4));
    backdrop-filter: blur(10px); /* Difumina el fondo detrás */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.caja-login {
    position: relative;
    z-index: 3;
    width: 55%;
    padding: 30px 10px 44px;
    border-radius: 1.25rem;
    background: #fff;
    text-align: center;
}

.caja-login > h2{
    font-size: 35px;
    font-weight: 600;  
    margin: 0 0 12px;
}

.caja-login > h3{
    color: rgba(0, 0, 0, 0.38);
    margin: 0 0 30px;
    font-size: 1rem;
    font-weight: 500;  
}

.login-form {
    width: 80%;
    margin: 10px auto;
    display: grid;
    /* INICIO DE LA MODIFICACIÓN: Aumentamos el espacio entre elementos */
    gap: 16px; /* Esto reemplaza los <br> */
}

/* Se elimina la regla .login-form > input, .login-form > button */

/* Se modifica el selector para que aplique a AMBOS campos de texto */
.login-form .form-control {
    width: 100%; /* Asegura que ocupen todo el ancho */
    height: 50px;
    border: 2px solid #ebebeb;
    font-family: inherit;
    font-size: 15px;
    padding: 0 16px;
    transition: all 0.375s;
}

/* Se modifica el selector del hover */


.login-form > button {
    cursor: pointer;
    width: 50%;
    padding: 0 16px;
    background: #216ce7;
    color: #f9f9f9;
    border: 0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.375s;
}

.login-form > button:hover {
    background: #10449A;
}

.btn-primary {
    width: 50% auto;
    height: 40px;
}

.login-form > a {
    color: #216ce7;
    text-decoration: none;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    /* Se elimina el margin-bottom para que el 'gap' del grid controle el espacio */
    transition: all 0.375s;
}

.login-form > a:hover {
    color: #10449A;
}

@keyframes rotate {
    100% {
        background-position: 5% 50%;
    }
}

/* Cuando la pantalla sea menor a 800px, cambia a columna */
@media (max-width: 900px) {
    .contenedor-login {
        flex-direction: column;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 70%;
    }
    .caja-logo {
        padding: 25%;
    }

    .login-body {
        padding: 0;
    }
    .caja-login {
        margin: 0;
        width: 400px;
    }

    .login-form > input, .login-form > button, .login-form > a {
        width: auto;
        height: 50px auto;
        margin: 0 auto;
    }

    .btn-primary {
        width: 50% auto;
        height: 40px;
        margin: 0 auto;
    }
    
}

/* Cuando la pantalla sea menor a 600px, cambia a columna */
@media (max-width: 600px) {
    .contenedor-login {
        flex-direction: column;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80%;
    }
    .caja-logo {
        padding: 25%;
    }

    .login-body {
        padding: 0;
    }
    .caja-login {
        margin: 0;
        width: 400px;
    }

    .login-form > input, .login-form > button, .login-form > a {
        width: auto;
        height: 50px auto;
        margin: 0 auto;
    }

    .btn-primary {
        width: 50% auto;
        height: 40px;
        margin: 0 auto;
    }
    
}

/* Cuando la pantalla sea menor a 350px, cambia a columna */
@media (max-width: 350px) {
    .contenedor-login {
        flex-direction: column;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80%;
    }
    .caja-logo {
        padding: 25%;
    }

    .login-body {
        padding: 0;
    }
    .caja-login {
        margin: 0;
        width: 250px;
    }

    .login-form > input, .login-form > button, .login-form > a {
        width: auto;
        height: 50px auto;
        margin: 0 auto;
    }

    .btn-primary {
        width: 50% auto;
        height: 40px;
        margin: 0 auto;
    }
}





/*** Estilos para el formulario de Recuperación de Contraseña ***/

.contenedor-login-reset {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 27%;
    max-width: 1200px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 10px;
}

.caja-login-reset {
    position: relative;
    z-index: 3;
    width: 90%;
    padding: 30px 10px 44px;
    border-radius: 1.25rem;
    background: #fff;
}

.reset-form {
    width: 100%;
    margin: 0;
    display: grid;
    gap: 2px;
}

.reset-form > button {
    cursor: pointer;
    width: 50%;
    padding: 0 16px;
    background: #216ce7;
    color: #f9f9f9;
    border: 0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.375s;
}

.reset-form > input, .reset-form > button {
    width: auto;
    height: 50px;
}

.caja-login-reset > h6{
    color: rgba(0, 0, 0, 0.38); 
}

.reset-form .form-check-input[type="radio"] {
    accent-color: #222;
    border: 2px solid #222;
}

@keyframes rotate {
    100% {
        background-position: 5% 50%;
    }
}

/* Cuando la pantalla sea menor a 800px, cambia a columna */
@media (max-width: 900px) {
    .contenedor-login-reset {
        flex-direction: column;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 70%;
    }
    .caja-logo {
        padding: 25%;
    }

    .login-body {
        padding: 0;
    }
    .caja-login {
        margin: 0;
        width: 400px;
    }

    .login-form > input, .login-form > button, .login-form > a {
        width: auto;
        height: 50px auto;
        margin: 0 auto;
    }

    .btn-primary {
        width: 50% auto;
        height: 40px;
        margin: 0 auto;
    }
    
}

/* Cuando la pantalla sea menor a 600px, cambia a columna */
@media (max-width: 600px) {
    .contenedor-login-reset {
        flex-direction: column;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80%;
    }
    .caja-logo {
        padding: 25%;
    }

    .login-body {
        padding: 0;
    }
    .caja-login {
        margin: 0;
        width: 400px;
    }

    .login-form > input, .login-form > button, .login-form > a {
        width: auto;
        height: 50px auto;
        margin: 0 auto;
    }

    .btn-primary {
        width: 50% auto;
        height: 40px;
        margin: 0 auto;
    }
    
}

/* Cuando la pantalla sea menor a 350px, cambia a columna */
@media (max-width: 350px) {
    .contenedor-login-reset {
        flex-direction: column;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80%;
    }
    .caja-logo {
        padding: 25%;
    }

    .login-body {
        padding: 0;
    }
    .caja-login {
        margin: 0;
        width: 250px;
    }

    .login-form > input, .login-form > button, .login-form > a {
        width: auto;
        height: 50px auto;
        margin: 0 auto;
    }

    .btn-primary {
        width: 50% auto;
        height: 40px;
        margin: 0 auto;
    }
}



/*** Estilos para el formulario de Cambio de Contraseña ***/

.contenedor-login-pass {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 27%;
    max-width: 1200px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 10px;
}

.caja-login-pass {
    position: relative;
    z-index: 3;
    width: 90%;
    padding: 30px 10px 44px;
    border-radius: 1.25rem;
    background: #fff;
}

.caja-login-pass > h6{
    color: rgba(0, 0, 0, 0.38); 
}


@keyframes rotate {
    100% {
        background-position: 5% 50%;
    }
}

/* Cuando la pantalla sea menor a 800px, cambia a columna */
@media (max-width: 900px) {
    .contenedor-login-pass {
        flex-direction: column;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 70%;
    }
    .caja-logo {
        padding: 25%;
    }

    .login-body {
        padding: 0;
    }
    .caja-login {
        margin: 0;
        width: 400px;
    }

    .login-form > input, .login-form > button, .login-form > a {
        width: auto;
        height: 50px auto;
        margin: 0 auto;
    }

    .btn-primary {
        width: 50% auto;
        height: 40px;
        margin: 0 auto;
    }

    .grafico-flujo-caja-container {
        height:50%;
        width: 100%;
    }
    
}

/* Cuando la pantalla sea menor a 600px, cambia a columna */
@media (max-width: 600px) {
    .contenedor-login-pass {
        flex-direction: column;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80%;
    }
    .caja-logo {
        padding: 25%;
    }

    .login-body {
        padding: 0;
    }
    .caja-login {
        margin: 0;
        width: 400px;
    }

    .login-form > input, .login-form > button, .login-form > a {
        width: auto;
        height: 50px auto;
        margin: 0 auto;
    }

    .btn-primary {
        width: 50% auto;
        height: 40px;
        margin: 0 auto;
    }
    
}

/* Cuando la pantalla sea menor a 350px, cambia a columna */
@media (max-width: 350px) {
    .contenedor-login-pass {
        flex-direction: column;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80%;
    }
    .caja-logo {
        padding: 25%;
    }

    .login-body {
        padding: 0;
    }
    .caja-login {
        margin: 0;
        width: 250px;
    }

    .login-form > input, .login-form > button, .login-form > a {
        width: auto;
        height: 50px auto;
        margin: 0 auto;
    }

    .btn-primary {
        width: 50% auto;
        height: 40px;
        margin: 0 auto;
    }
}

/* ######################################################################################################### */

/* Estilos para el botón de editar suave - Tarifario */
.btn.btn-editar-suave {
    background: #e7eafc;
    color: #1976d2;
    border-color: #b6c2f7;
}

.btn.btn-editar-suave:hover,
.btn.btn-editar-suave:focus {
    background: #1976d2;
    color: #fff;
    border-color: #1976d2;
}

/* Estilos para el botón de editar suave -  Home */
.btn-outline-primary {
    background-color: #e9f0fd !important;
    color: rgb(13, 110, 253) !important;
    border-color: #d2d2d2  !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: rgb(13, 110, 253) !important;
    color: #fff !important;
    border-color: #d2d2d2 !important;
}

.btn.btn-outline-danger {
    background: transparent;
    color: #dc3545;
    border-color: #ad9497;
}
.btn.btn-outline-danger:hover, 
.btn.btn-outline-danger:focus {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}

/* Estilos para el botón de editar suave -  movimiento cuenta */

#btn-editarMovimiento {
  background-color: transparent;
  color: #1976d2;
  border-color: #b6c2f7;
}
#btn-editarMovimiento:hover {
  color: #1976d2;
  border-color: #1976d2;
}

#btn-eliminarMovimiento {
  background-color: transparent !important;
  color: #d13a4a;
  border-color: #f5c2c7;
}
#btn-eliminarMovimiento:hover {
  color: #d13a4a;
  border-color: #d13a4a;
}

#btn-printMovimiento {
  background-color: transparent;
  color: #198754;
  border-color: #b7e4c7;
}
#btn-printMovimiento:hover {
  color: #198754;
  border-color: #198754;
}

.btn-voucher-soft {
  background: #d1f5e0!important;
  color: #198754!important;
  border-color: #b7e4c7!important;

}
.btn-voucher-soft:hover {
  background: #198754!important;
  color: #fff!important;
  border-color: #198754!important;
}

/* ######################################################################################################### */



/* Puedes agregar esto en tu <head> o en el bloque de estilos de impresión */
.informe-flex {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 5px; /* separación entre las tablas */
  }
  .informe-bloque {
    flex: 1 1 0;
    max-width: 50%;
    box-sizing: border-box;
    background: #fff;
  }
  @media print {
    body {
      margin: 0;
      padding: 0;
      background: #fff !important;
    }
    .informe-flex {
      display: flex;
      flex-direction: row;
      gap: 5px;
      page-break-inside: avoid;
    }
    .informe-bloque {
      max-width: 49.5%;
      box-sizing: border-box;
      page-break-inside: avoid;
    }
    #informeTarifario {
      display: block !important;
      position: static !important;
      background: #fff !important;
    }
  }

  @media print {
  html, body {
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  #informeTarifario {
    display: block !important;
    position: static !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  .informe-flex {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 5px !important;
    width: 100vw !important;
    box-sizing: border-box !important;
    page-break-inside: avoid !important;
  }
  .informe-bloque {
    width: 49.5vw !important;
    max-width: 49.5vw !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    page-break-inside: avoid !important;
  }
  .informe-bloque table {
    width: 100% !important;
    font-size: 11px !important;
    margin: 0 !important;
  }
  .informe-bloque * {
    font-size: 11px !important;
  }
  /* Opcional: reduce el tamaño del logo para que quepa mejor */
  #logoInforme, #logoInforme2 {
    height: 60px !important;
    margin-right: 20px !important;
  }
}

@media print {
  body * {
    visibility: hidden !important;
  }
  #informeTarifario, #informeTarifario * {
    visibility: visible !important;
  }
  #informeTarifario {
    position: absolute !important;
    left: 0;
    top: 0;
    width: 100vw !important;
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
  }
  .informe-flex {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 5px !important;
    width: 100vw !important;
    box-sizing: border-box !important;
    page-break-inside: avoid !important;
  }
  .informe-bloque {
    width: 49vw !important;
    max-width: 49vw !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    page-break-inside: avoid !important;
  }
  .informe-bloque table {
    width: 100% !important;
    font-size: 11px !important;
    margin: 0 !important;
  }
  .informe-bloque * {
    font-size: 11px !important;
  }
  #logoInforme, #logoInforme2 {
    height: 60px !important;
    margin-right: 20px !important;
  }
}

@media print {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    width: 100vw !important;
    height: 100vh !important;
  }
  #informeTarifario {
    position: absolute !important;
    left: 0;
    top: 0;
    width: calc(100vw - 10px) !important;
    height: calc(100vh - 10px) !important;
    margin: 5px !important;
    padding: 0 !important;
    background: #fff !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
    display: block !important;
  }
  .informe-flex {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 5px !important;
    width: 100%;
    height: 100%;
    box-sizing: border-box !important;
    page-break-inside: avoid !important;
  }
  .informe-bloque {
    width: 50%;
    max-width: 50%;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    page-break-inside: avoid !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .informe-bloque table {
    width: 100% !important;
    font-size: 11px !important;
    margin: 0 !important;
  }
  .informe-bloque * {
    font-size: 11px !important;
  }
  
}

.informeTablaTarifas tbody {
    font-size: 30px !important;
}

.informe-bloque .encabezado-tarifario {
    display: flex !important;
    align-items: center !important;
    gap: 0px !important;
    margin-bottom: 0 !important; /* <--- Cambia a 0 */
}
.informe-bloque table {
    margin-top: 6px !important; /* <--- Espacio mínimo entre encabezado y tabla */
}

/* ######################################################################################################### */

/* Estilos para la imagen de perfil */
.profile-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.profile-foreground-img {
    height: 120px;
    background: linear-gradient(to right, rgba(31, 88, 199, 0.8));
    border-radius: 6px 6px 0 0;
}

/* Estilos adicionales para la tabla de información */
.table th {
    vertical-align: middle;
}

.table td {
    vertical-align: middle;
    word-break: break-word;
}

/* Estilos para la tabla de socios */
    #tabla-socios {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        table-layout: fixed; /* Control más estricto de anchos */
    }

    #tabla-socios thead {
        color: white;
    }

    #tabla-socios th {
        padding: 12px 15px;
        text-align: left;
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: uppercase;
        white-space: nowrap;
    }

    #tabla-socios td {
        padding: 10px 15px;
        border-bottom: 1px solid #f2f2f2;
        font-size: 0.9rem;
        vertical-align: middle;
        white-space: nowrap; /* Evita saltos de línea */
        overflow: hidden;
        text-overflow: ellipsis; /* Agrega ... si el texto es muy largo */
    }

    /* Anchos específicos para las columnas */
   

    #tabla-socios tbody tr:nth-child(even) {
        background-color: #f8f9fa;
    }

    #tabla-socios tbody tr:hover {
        background-color: #e9ecef;
    }

    /* Estilos unificados para los badges */
    .badge-directivo, .badge-no-directivo {
        display: inline-block;
        width: 40px;
        height: 24px;
        line-height: 24px;
        border-radius: 12px;
        text-align: center;
        font-weight: 500;
        font-size: 0.8rem;
        padding: 0;
    }

    .badge-directivo {
        background-color: #198754;
        color: white;
    }

    .badge-no-directivo {
        background-color: #6c757d;
        color: white;
    }

    /* Estilo compacto para el botón de asignar */
    .btn-asignar-cargo {
        background-color: transparent !important;
        padding: 4px 8px;
        font-size: 0.8rem;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Para emails largos */
    .email-truncate {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
        cursor: pointer; /* Indica que hay un tooltip */
    }

    .sin-datos {
        color: #6c757d;
        font-style: italic;
    }

/* Asegurar que el contenido quepa en pantallas pequeñas */
@media (max-width: 576px) {
    .table th {
        width: 40% !important;
    }

    .table td {
        width: 60% !important;
    }
}
/* Estilos para la tabla de socios */
#tabla-socios {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    table-layout: fixed; /* Control más estricto de anchos */
}

#tabla-socios thead {
    color: white;
}

#tabla-socios th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    white-space: nowrap;
}

#tabla-socios td {
    padding: 10px 15px;
    border-bottom: 1px solid #f2f2f2;
    font-size: 0.9rem;
    vertical-align: middle;
    white-space: nowrap; /* Evita saltos de línea */
    overflow: hidden;
    text-overflow: ellipsis; /* Agrega ... si el texto es muy largo */
}

/* Anchos específicos para las columnas */


#tabla-socios tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

#tabla-socios tbody tr:hover {
    background-color: #e9ecef;
}

/* Estilos unificados para los badges */
.badge-directivo, .badge-no-directivo {
    display: inline-block;
    width: 40px;
    height: 24px;
    line-height: 24px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0;
}

.badge-directivo {
    background-color: #198754;
    color: white;
}

.badge-no-directivo {
    background-color: #6c757d;
    color: white;
}

/* Estilo compacto para el botón de asignar */
.btn-asignar-cargo {
    padding: 4px 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Para emails largos */
.email-truncate {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    cursor: pointer; /* Indica que hay un tooltip */
}

.sin-datos {
    color: #6c757d;
    font-style: italic;
}

/* Estilos para la tabla con paginación */
#tabla-socios tbody tr {
    transition: background-color 0.2s ease;
}

#tabla-socios tbody tr:hover {
    background-color: #f8f9fa;
}

/* Estilos para resaltar resultados de búsqueda */
.highlight {
    background-color: #fff3cd;
    transition: background-color 0.5s ease;
}

/* Estilos para paginación */
.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}
/* Agregar estos estilos al <head> del documento */

/* Estilos para la tabla de socios sin la barra de desplazamiento */
@media (max-width: 768px) {
    #tabla-socios {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #tabla-socios thead {
        display: none;
    }

    #tabla-socios tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    #tabla-socios td {
        display: table-cell;
        text-align: left;
        padding: 8px;
        border: none;
        position: relative;
        padding-left: 50%;
    }

    #tabla-socios td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 10px;
        font-weight: bold;
        text-align: left;
    }
}

/* Estilos para paginación */
    .pagination {
        margin-bottom: 0;
    }
    
    .pagination .page-link {
        padding: 0.25rem 0.75rem;
        font-size: 0.875rem;
        color: #0d6efd;
    }
    
    .pagination .page-item.disabled .page-link {
        color: #6c757d;
    }
    
    .pagination .page-item:not(.disabled) .page-link:hover {
        background-color: #e9ecef;
    }
    
    #info-pagination {
        font-size: 0.875rem;
        color: #6c757d;
    }
    .directiva-footer {
        background-color: transparent !important;
    }

    /* Estilos específicos para alinear recuadros del perfil de usuario */
    .perfil-card {
        margin-bottom: 20px;
    }
    
    /* Ajustar altura mínima para los contenedores de tarjetas */
    #editar-perfil .card, 
    #delegar-directiva .card {
        min-height: 400px;
        display: flex;
        flex-direction: column;
    }
    
    /* Ajuste específico para contenedor de tabla y paginación */
    #delegar-directiva .table-responsive {
        flex: 1;
    }
    
    /* Estilos específicos para la paginación en directiva */
    #delegar-directiva .card-footer {
        background-color: #f8f9fa;
        border-top: 1px solid #dee2e6;
        padding: 0.75rem 1rem;
    }
    
    /* Corrección específica para badges de directivo */
    /* Estilos mejorados para los badges directivos */
    .badge-directivo, .badge-no-directivo {
        display: inline-block;
        width: 40px;
        height: 24px;
        line-height: 24px;
        border-radius: 12px;
        text-align: center;
        font-weight: 500;
        font-size: 0.8rem;
        padding: 0;
    }
    
    .badge-directivo {
        background-color: #198754;
        color: white;
    }
    
    .badge-no-directivo {
        background-color: #6c757d;
        color: white;
    }
    
    /* Centrado específico para la columna de directivo */
    #tabla-socios td.directivo-cell {
        text-align: center !important;
    }
    
    /* Asegurar que el contenedor del badge esté centrado */
    .badge-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    /* Estilo para destacar al presidente */
    .cargo-presidente {
        font-weight: bold;
        color: #0d6efd;
        background-color: rgba(13, 110, 253, 0.1);
        padding: 2px 8px;
        border-radius: 4px;
    }
    
    /* Estilos para otros cargos directivos */
    .cargo-directivo {
        font-weight: 600;
        color: #198754;
    }

     /* Estilos mejorados para los cargos */
    .cargo-presidente {
        font-weight: 600;
        color: #0d6efd;
        background-color: rgba(13, 110, 253, 0.1);
        padding: 2px 8px;
        border-radius: 4px;
        white-space: nowrap !important; /* Prevenir saltos de línea */
        display: inline-block; /* Mantener como bloque en línea */
        overflow: visible !important; /* Asegurar visibilidad completa */
    }
    
    .cargo-directivo {
        font-weight: 600;
        color: #198754;
        white-space: nowrap; /* Evita que se corte el texto */
    }
    
    /* Ajustar el ancho de columnas específicas */
    #tabla-socios th:nth-child(1), #tabla-socios td:nth-child(1) { min-width: 100px; } /* RUT */
    #tabla-socios th:nth-child(2), #tabla-socios td:nth-child(2) { min-width: 180px; } /* Nombre */
    #tabla-socios th:nth-child(3), #tabla-socios td:nth-child(3) { min-width: 90px; }  /* Teléfono */
    #tabla-socios th:nth-child(4), #tabla-socios td:nth-child(4) { min-width: 180px; } /* Email */
    #tabla-socios th:nth-child(5), #tabla-socios td:nth-child(5) { width: 80px; text-align: center; } /* Directivo */
    #tabla-socios th:nth-child(6), #tabla-socios td:nth-child(6) { min-width: 110px; } /* Cargo */
    #tabla-socios th:nth-child(7), #tabla-socios td:nth-child(7) { width: 100px; text-align: center; } /* Acciones */
    
    /* Asegurar que la tabla se desplace horizontalmente si es necesario */
    .table-responsive {
        overflow-x: auto;
    }
    
    /* Mejorar visualización de cargos */
    .cargo-presidente, .cargo-directivo {
        white-space: normal !important;
        overflow: visible !important;
    }
    
    /* Asegurar que los emails largos se muestren correctamente */
    .email-truncate {
        white-space: normal !important;
        overflow: visible !important;
        display: inline !important;
    }

    /* Estilos para tabla simétrica con datos completos */
    #tabla-socios {
        table-layout: auto;
        width: 100%;
        margin-bottom: 0;
    }
    
    /* Alinear los encabezados correctamente */
    #tabla-socios thead th {
        vertical-align: middle;
        padding: 10px;
        background-color: #f8f9fa;
        border-bottom: 2px solid #dee2e6;
        white-space: nowrap;
        font-size: 0.9rem;
    }
    
    /* Ajustar las celdas para mostrar datos completos */
    #tabla-socios td {
        vertical-align: middle;
        padding: 8px 10px;
        white-space: nowrap;
        overflow: visible;
        font-size: 0.9rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    /* Ancho fijo para columnas específicas */
    #tabla-socios th:nth-child(1), #tabla-socios td:nth-child(1) { width: 100px; } /* RUT */
    #tabla-socios th:nth-child(3), #tabla-socios td:nth-child(3) { width: 100px; } /* Teléfono */
    #tabla-socios th:nth-child(5), #tabla-socios td:nth-child(5) { width: 90px; text-align: center; } /* Directivo */
    #tabla-socios th:nth-child(6), #tabla-socios td:nth-child(6) { width: 100px; } /* Cargo */
    #tabla-socios th:nth-child(7), #tabla-socios td:nth-child(7) { width: 100px; text-align: center; } /* Acciones */
    
    /* Hacer que las columnas de nombre y email tomen el espacio restante */
    #tabla-socios th:nth-child(2), #tabla-socios td:nth-child(2) { min-width: 180px; } /* Nombre */
    #tabla-socios th:nth-child(4), #tabla-socios td:nth-child(4) { min-width: 180px; } /* Email */
    
    /* Estilos específicos para badges directivos/no directivos */
    .badge-directivo, .badge-no-directivo {
        display: inline-block;
        width: 40px;
        height: 24px;
        line-height: 24px;
        text-align: center;
        border-radius: 12px;
        font-size: 0.8rem;
        padding: 0;
    }
    
    .badge-directivo {
        background-color: #198754;
        color: white;
    }
    
    .badge-no-directivo {
        background-color: #6c757d;
        color: white;
    }
    
    /* Estilos para los cargos */
    .cargo-presidente {
        display: inline-block;
        padding: 3px 8px;
        background-color: #e6f0ff;
        color: #0d6efd;
        border-radius: 4px;
        font-weight: 500;
        white-space: nowrap;
    }
    
    .cargo-directiva {
        display: inline-block;
        padding: 3px 8px;
        background-color: #e8f5e9;
        color: #198754;
        border-radius: 4px;
        font-weight: 500;
        white-space: nowrap;
    }
    
    /* Estilo para botón asignar */
    .btn-asignar-cargo {
        padding: 4px 10px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    /* Asegurar desplazamiento horizontal en caso necesario */
    .table-responsive {
        overflow-x: auto;
    }

    /* Eliminar la línea roja en el panel izquierdo */
    .perfil-sidebar {
        border-bottom: none !important;
    }
    
    /* Eliminar cualquier margen o padding adicional que cause desalineación */
    .perfil-sidebar .card {
        margin-bottom: 0 !important;
        height: 100%;
    }
    
    /* Hacer que los contenedores principales tengan la misma altura */
    .row.perfil-container {
        display: flex;
        align-items: stretch;
    }
    
    .row.perfil-container > div {
        display: flex;
        flex-direction: column;
    }
    
    /* Eliminar cualquier borde o línea roja inferior */
    .perfil-sidebar::after,
    .perfil-sidebar::before {
        display: none !important;
    }
    
    /* Eliminar padding o margin excesivo en el panel de tabla */
    #delegar-directiva .card {
        margin-bottom: 0 !important;
    }
    
    /* Corregir posible overflow que cause scroll innecesario */
    .container-fluid {
        overflow-x: hidden;
    }

        /* Puedes agregar esto al final de tu archivo style.css */

/*
  1. Forzar un layout fijo para la tabla.
  Esto es CRUCIAL para que las columnas respeten los anchos definidos.
*/
#tabla-socios {
  table-layout: fixed;
  width: 100%;
}

/*
  2. Definir el comportamiento de la columna de nombres.
*/
#tabla-socios .col-nombre {
  /* Define un ancho. Puedes ajustarlo en px o % */
  width: 220px; 

  /* Las siguientes 3 propiedades trabajan juntas para cortar el texto */
  white-space: nowrap;      /* Evita que el texto salte de línea */
  overflow: hidden;         /* Oculta el texto que se desborda */
  text-overflow: ellipsis;  /* Añade los "..." al final */
}

/* --- INICIO: ESTILOS UNIFICADOS PARA LA TABLA DE SOCIOS --- */
/* Reemplaza cualquier otro bloque #tabla-socios con este */

#tabla-socios {
    table-layout: fixed; /* Obliga a la tabla a respetar los anchos de columna */
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

#tabla-socios thead th {
    padding: 12px 15px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap; /* Evita que los títulos se partan */
    text-align: left;
    vertical-align: middle;
    background-color: transparent !important;
    border-bottom: 2px solid #dee2e6;
}

#tabla-socios td {
    padding: 10px 15px;
    font-size: 0.9rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
}

/* Comportamiento de truncamiento SÓLO para la columna de nombre y email */
#tabla-socios .col-nombre {
    white-space: nowrap;     /* No partir el texto */
    overflow: hidden;        /* Ocultar lo que no cabe */
    text-overflow: ellipsis; /* Mostrar '...' */
}

/* Anchos de columna para mantener todo alineado */
#tabla-socios th:nth-child(1), #tabla-socios td:nth-child(1) { width: 10%; } /* RUT */
#tabla-socios th:nth-child(2), #tabla-socios td:nth-child(2) { width: 25%; } /* NOMBRE */
#tabla-socios th:nth-child(3), #tabla-socios td:nth-child(3) { width: 12%; } /* TELÉFONO */
#tabla-socios th:nth-child(4), #tabla-socios td:nth-child(4) { width: 20%; } /* EMAIL */
#tabla-socios th:nth-child(5), #tabla-socios td:nth-child(5) { width: 10%; text-align: center; } /* DIRECTIVO */
#tabla-socios th:nth-child(6), #tabla-socios td:nth-child(6) { width: 10%; } /* CARGO */
#tabla-socios th:nth-child(7), #tabla-socios td:nth-child(7) { width: 11%; text-align: center; } /* ACCIONES */

/* --- FIN: ESTILOS UNIFICADOS PARA LA TABLA DE SOCIOS --- */

/* Estilos para la tabla de información de perfil (tarjeta lateral) */
.perfil-usuario-card table td {
    /* Permite que el texto se rompa correctamente */
    word-break: break-all;
    /* Previene que el texto se corte */
    white-space: normal;
    /* Asegura que no haya desbordamiento oculto */
    overflow: visible;
    /* Proporciona un espaciado adecuado */
    padding: 6px 0;
    /* Asegura que el texto sea legible */
    font-size: 0.9rem;
}

/* Específicamente para el email y otros campos largos */
#perfil-email, #perfil-direccion {
    /* Fuerza la ruptura de palabras largas como emails */
    word-break: break-all;
    /* Mantiene el ancho completo disponible */
    max-width: 100%;
    /* Añade un pequeño espaciado en la parte inferior */
    padding-bottom: 4px;
}

/* Para permitir que la tabla se expanda según sea necesario */
.perfil-usuario-card .table {
    table-layout: fixed;
    width: 100%;
}

/* Ajusta el ancho relativo de las columnas de la tabla */
.perfil-usuario-card .table th {
    width: 35%;
    vertical-align: top;
    padding-top: 6px;
}

.perfil-usuario-card .table td {
    width: 65%;
}
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}
#modal-es-directivo {
        border: 1px solid #6e6e6e;
        width: 1.3em;
        height: 1.3em;
        accent-color: #0d6efd; /* azul Bootstrap */
        cursor: pointer;
    }
#modal-asignar-cargo .directivo-box {
        border: 1px solid #8b8b8b;
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 1rem;
    }

    /* --- Estilos para el ícono de previsualización de contraseña --- */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper .form-control {
    padding-right: 40px; /* Espacio para que el texto no quede debajo del ícono */
}

/* INICIO MODIFICACIÓN: Cambiamos de ID a CLASE para que sea reutilizable */
.password-wrapper .toggle-password-icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
}
/* FIN MODIFICACIÓN */

/* === SOLUCIÓN DEFINITIVA PARA INPUTS DEL LOGIN === */

/* 1. Eliminar cualquier estilo previo para estos elementos específicos */
.login-form .input-wrapper,
.login-form .password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

/* 2. Reglas consistentes para ambos campos */
.login-form .input-wrapper input,
.login-form .password-wrapper input {
    width: 100% !important;
    height: 50px !important;
    border: 2px solid #ebebeb !important;
    font-family: inherit !important;
    font-size: 15px !important;
    padding: 0 16px !important;
    border-radius: 4px !important;
    margin: 0 !important;
}

/* 3. Asegurar posición correcta del icono */
.login-form .password-wrapper #togglePassword {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    z-index: 100;
}

/* 4. Arreglar problemas de responsividad */
@media (min-width: 100px) and (max-width: 900px) {
    .login-form .input-wrapper,
    .login-form .password-wrapper {
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}