html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


tr {
    height: 10px;
}

td {
    font-family: var(--phoenix-font-sans-serif);
    font-size: 12px;
    padding: 0px 5px;
}

#overlay {
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0,0,0,0.6);
}

.cv-spinner {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px #ddd solid;
    border-top: 4px #2e93e6 solid;
    border-radius: 50%;
    animation: sp-anime 0.8s infinite linear;
}

@keyframes sp-anime {
    100% {
        transform: rotate(360deg);
    }
}

.is-hide {
    display: none;
}

.btn-no-padding {
    margin: 0px 5px;
    padding: 0px;
}

.dropzone, .dropzone * {
    box-sizing: border-box;
}

.dropzone {
    position: relative;
}

    .dropzone .dz-preview {
        position: relative;
        display: inline-block;
        width: 200px;
        margin: 0.5em;
    }

        .dropzone .dz-preview .dz-progress {
            display: block;
            height: 15px;
            border: 1px solid #aaa;
        }

            .dropzone .dz-preview .dz-progress .dz-upload {
                display: block;
                height: 100%;
                width: 0;
                background: green;
            }

        .dropzone .dz-preview .dz-error-message {
            color: red;
            display: none;
        }

        .dropzone .dz-preview.dz-error .dz-error-message, .dropzone .dz-preview.dz-error .dz-error-mark {
            display: block;
        }

        .dropzone .dz-preview.dz-success .dz-success-mark {
            display: block;
        }

        .dropzone .dz-preview .dz-error-mark, .dropzone .dz-preview .dz-success-mark {
            position: absolute;
            display: none;
            left: 30px;
            top: 30px;
            width: 54px;
            height: 58px;
            left: 50%;
            margin-left: -27px;
        }

#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro semitransparente */
    z-index: 9999; /* Por encima de todo, incluso del menú */
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Solo aplicar puntero de cursor en pantallas pequeñas */
@media (max-width: 991px) {
    #logoMenuMobile {
        cursor: pointer;
    }
}

@media (min-width: 992px) {
    #logoMenuMobile {
        pointer-events: none; /* Desactiva el clic en escritorio si solo quieres que sea logo */
        cursor: default;
    }
}

.navbar-vertical-content .razon-social-menu {
    font-size: 0.9rem !important; /* Tamaño regular */
    line-height: 1.2;
    word-break: break-word; /* Por si el nombre es una sola palabra muy larga */
}

/* Esto asegura que el contenedor de los tabs siempre tenga espacio arriba */
#tab-documentos {
    margin-top: 1.5rem !important;
}

@media (max-width: 768px) {
    /* En móvil, los tabs suelen amontonarse. 
       Esto les da aire y evita que se escondan tras la navbar */
    .nav-links.nav-tabs {
        margin-top: 20px;
        padding-top: 10px;
    }
}

/* Eliminar bordes y fondos feos de la paginación de DataTables */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.4rem 0.8rem !important;
    margin-left: 2px !important;
    border: 1px solid #d8e2ef !important; /* Color de borde suave de Phoenix */
    border-radius: 4px !important;
    background: white !important;
    color: #3e4c59 !important;
}

    /* Estilo cuando pasas el mouse o estás en la página activa */
    .dataTables_wrapper .dataTables_paginate .paginate_button.current,
    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background: #3874ff !important; /* Color primario azul */
        color: white !important;
        border-color: #3874ff !important;
    }

    /* Ocultar los botones de "Siguiente" y "Anterior" si solo hay una página (opcional) */
    .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Ajuste para que la info de "Pág 1 de 1" no choque con los botones */
.dataTables_info {
    font-size: 0.8rem;
    color: #7e8299;
    margin-bottom: 10px;
}

/* Activa el scroll horizontal y permite el desplazamiento táctil suave */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Suavidad en iPhone/iOS */
    display: block;
    width: 100%;
}

/* Evita que el texto de la tabla salte de línea, forzando el scroll horizontal */
#tabla-guias td, #tabla-guias th {
    white-space: nowrap;
    padding: 10px 8px; /* Un poco más de espacio para el dedo */
}

#tablaProyectos th,
#tablaProyectos td {
    font-size: 1.1rem; /* Aumenta el tamaño de la letra (1rem = 16px aprox) */
    padding: 15px 20px; /* Espaciado interno: 15px arriba/abajo, 20px izquierda/derecha */
    vertical-align: middle; /* Centra el texto verticalmente para que se vea ordenado */
}

/* Opcional: Aumentar un poco el tamaño de los encabezados para que destaquen más */
#tablaProyectos th {
    font-size: 1.15rem;
}