:root {
    --bs-btn-bg: #31A0EC;
}
.login-container {
    max-width: 350px;
    padding: 0 15px 15px;
}

.login-background {
    background-image: url("/images/login.jpg");
    background-size: cover;
    background-position: center;
}

#sidebar-toggler {
    position: absolute;
    left: 100%;
    bottom: 25px;
    z-index: 99;
}

#sidebar-offcanvas-toggler {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 99;
}

nav .active {
    color: black !important;
}

.nav-pills .nav-link:hover {
    color: #6D9CA7 !important;
}

.nav-pills .nav-link:active {
    color: var(--bs-black) !important;
    background: var(--bs-primary-bg-subtle) !important;
}

#loader {
    position: absolute;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-content: center;
    color: var(--bs-primary);
    background-color: rgba(0, 0, 0, 0.5);
}

    #loader > div {
        width: 5rem;
        height: 5rem;
    }

html[data-bs-theme="dark"] .logo {
    content: url("/images/logo-dark2.png");
}

/*main:has(> .with-background) {
    background-image: url("/images/background3.jpg");
    background-repeat: no-repeat;
    background-size: cover;
}

.with-background {
    background-image: url("/images/background3.jpg");
     background-size: cover;
    background-position: center;
    background-position: center;
    backdrop-filter: blur(5px) brightness(70%);
    height: 100% !important;
}

.with-background-black {
    background-image: url("/images/background3Black.jpg");
     background-size: cover;
    background-position: center;
    background-position: center;
    backdrop-filter: blur(5px) brightness(70%);
    height: 100% !important;
}

    .with-background .logo {
        content: url("/images/logo-dark2.png");
    }*/

.swal-footer {
    display: flex;
    justify-content: space-around;
}

table a {
    color: var(--bs-body-color);
}

.table-group-divider {
    border-top-color: var(--bs-primary);
}


@font-face {
    font-family: 'Proxima Nova', sans-serif;
    src: url('../fonts/Proxima Nova Reg.ttf') format('truetype'); /* Ajusta la ruta y el formato seg�n tu fuente */
}

body {
    font-family: 'Proxima Nova', sans-serif;
}

label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

    .table-grid > div {
        display: flex;
        flex-direction: column;
    }

.shadow-logo {
    box-shadow: 5px 0.5rem 0.3rem rgba(0, 0, 0, 0.50);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
}

.contentContainer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

    .contentContainer.show {
        max-height: 350px;
    }

    .contentContainer.hide {
        max-height: 0;
    }

input[readonly],
input[readonly]:focus {
    background-color: #f0f0f0;
    color: #6c757d;
}

.status-title {
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(var(--bs-body-bg-rgb));
}

.color-Pendiente {
    background-color: #4bce97;
    border-color: #4bce97;
}

.color-Encurso {
    background-color: #faa53d;
    border-color: #faa53d;
}

.color-Finalizada {
    background-color: #f87462;
    border-color: #f87462;
}

.color-Expedienteencurso {
    background-color: #9f8fef;
    border-color: #9f8fef;
}

.color-ExpedienteFinalizado {
    background-color: #579dff;
    border-color: #579dff;
}

.button-container a {
    font-weight: 600;
    text-transform: uppercase;
    min-height: 60px;
    vertical-align: middle;
    display: grid;
    place-items: center;
    padding: 0 50px;
    color: white;
}

.logo-home {
    /*background-image: url("/images/home.jpg");*/
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 0% 90%;
}

.table-responsive thead {
    background-image: linear-gradient(to right, #004B7F, #31A0EC);
    background-color: #004B7F;
    color: white;
}

.comment-box .bi {
    color: #004B7F;
    cursor: pointer;
}

.bi.bi-pencil{
    color: red;
}

.custom-btn {
    color: white;
    background-color: #78afa5;
    border: 1px solid #31A0EC;
    padding: 7px 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .custom-btn:hover {
        background-color: #31A0EC;
    }

.custom-btn i {
    margin-right: 5px;
}

/* Estilos m�nimos de ejemplo para el modal */
.composeModal .modal-header {
    background-color: #f8f9fa; /* Un ligero gris de fondo */
    border-bottom: 2px solid #dee2e6;
}

.composeModal .modal-title {
    font-weight: bold;
}

.composeModal .btn {
    border-radius: 0.5rem;
}

.composeModal .form-floating > label {
    top: -0.65rem;
    left: 0.75rem;
    padding: 0 0.25rem;
    font-size: 0.875rem;
    opacity: 0.65;
}
/* Ejemplo de un estilo de borde o sombra al modal */
.composeModal .modal-content {
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
/* Ajusta la altura del textarea si lo deseas */
.composeModal #body {
    min-height: 150px;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    top: -0.6rem; /* Ajusta seg�n tu preferencia */
    transform: scale(0.85);
    opacity: 0.85;
    height: auto;
}

.form-floating label {
    background: #fff; /* Color de fondo, ajusta seg�n tu dise�o */
    padding: 0 0.3rem; /* Un ligero relleno para "separar" la etiqueta del borde */
    margin-left: 0.5rem; /* Ajusta la posici�n horizontal */
}

/*CSS COMENTARIOS*/
comments-list * {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

comments-list a {
    color: var(--bs-btn-bg);
    text-decoration: none;
}

comments-list ul {
    list-style-type: none;
}

.comments-container h1 {
    font-size: 36px;
    color: #283035;
    font-weight: 400;
}

.comments-container h1 a {
    font-size: 18px;
    font-weight: 700;
}

.comments-list {
    margin-top: 30px;
    position: relative;
}

.comments-list:before {
    content: '';
    width: 2px;
    height: 100%;
    background: #c7cacb;
    position: absolute;
    left: 32px;
    top: 0;
}

.comments-list:after {
    content: '';
    position: absolute;
    background: #c7cacb;
    bottom: 0;
    left: 27px;
    width: 7px;
    height: 7px;
    border: 3px solid #dee1e3;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

.comments-list .reply-list:before, .comments-list .reply-list:after {
    display: none;
}

.comments-list .reply-list li:before {
    content: '';
    width: 60px;
    height: 2px;
    background: #c7cacb;
    position: absolute;
    top: 25px;
    left: -55px;
}

.comments-list li {
    margin-bottom: 15px;
    display: block;
    position: relative;
}

.comments-list li:after {
    content: '';
    display: block;
    clear: both;
    height: 0;
    width: 0;
}

.comments-list .reply-list {
    padding-left: 88px;
    clear: both;
    margin-top: 15px;
}

.comments-list .comment-avatar {
    width: 65px;
    height: 65px;
    position: relative;
    z-index: 99;
    float: left;
    border: 3px solid #FFF;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    overflow: hidden;
}

.comments-list .comment-avatar img {
    width: 100%;
    height: 100%;
}

.comments-list .reply-list .comment-avatar {
    width: 50px;
    height: 50px;
}

.comments-list .comment-main-level:after {
    content: '';
    width: 0;
    height: 0;
    display: block;
    clear: both;
}

#listacomentarios{
    margin-left: 40px;
}
.comments-list .comment-box {
    width: 95%;
    float: right;
    position: relative;
    -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.20);
    -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.20);
    box-shadow: 0 1px 3px rgba(0,0,0,0.20);
}

.comments-list .comment-box:before, .comments-list .comment-box:after {
    content: '';
    height: 0;
    width: 0;
    position: absolute;
    display: block;
    border-width: 10px 12px 10px 0;
    border-style: solid;
    border-color: transparent #FCFCFC;
    top: 8px;
    left: -11px;
}

.comments-list .comment-box:before {
    border-width: 11px 13px 11px 0;
    border-color: transparent rgba(0,0,0,0.17);
    left: -12px;
}


.comments-list .comment-box .comment-head {
    background: #FCFCFC;
    padding: 10px 12px;
    border-bottom: 1px solid #E5E5E5;
    overflow: hidden;
    -webkit-border-radius: 4px 4px 0 0;
    -moz-border-radius: 4px 4px 0 0;
    border-radius: 4px 4px 0 0;
}

.comments-list .comment-box .comment-head i {
    float: right;
    margin-left: 14px;
    position: relative;
    top: 2px;
    color: #A6A6A6;
    cursor: pointer;
    -webkit-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

    .comments-list .comment-box .comment-head i:hover {
        color: var(--bs-btn-bg);
    }

.comments-list .comment-box .comment-name {
    color: #283035;
    font-size: 14px;
    font-weight: 700;
    float: left;
    margin-right: 10px;
}

.comments-list .comment-box .comment-name a {
    color: #283035;
}

.comments-list .comment-box .comment-head span {
    float: left;
    color: #999;
    font-size: 13px;
    position: relative;
    top: 1px;
}

.comments-list .comment-box .comment-content {
    background: #FFF;
    padding: 12px;
    font-size: 15px;
    color: #595959;
    -webkit-border-radius: 0 0 4px 4px;
    -moz-border-radius: 0 0 4px 4px;
    border-radius: 0 0 4px 4px;
}

.comments-list .comment-box .comment-name.by-author, .comments-list .comment-box .comment-name.by-author a {
    color: var(--bs-btn-bg);
}

.comments-list .comment-box .comment-name.by-author:after {
    content: 'autor';
    background: var(--bs-btn-bg);
    color: #FFF;
    font-size: 12px;
    padding: 3px 5px;
    font-weight: 700;
    margin-left: 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

/** =====================
* Responsive
========================*/
.d-none {
    display: none;
}

.comments-list .cursor-pointer {
    cursor: pointer;
}


/* Encabezado fijo */
.table-responsive {
    overflow-x: auto;
    max-height: 70vh;
}

.table thead th {
    position: sticky;
    top: 0;
    background-color: #004B7F; /* mismo color de fondo que ya usas */
    color: white;
    z-index: 2;
    white-space: nowrap;
    font-size: 0.9em;
}

/* Ajuste general de la tabla */
.table td, .table th {
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
    text-align: left;
}

/* Evita que se amontone el texto */
.table td {
    min-width: 120px;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Espaciado entre filas para mejor legibilidad */
.table tbody tr {
    border-bottom: 1px solid #dee2e6;
    font-size: 0.8em;
}

/* Alineaci�n central para botones */
td[data-exclude="true"] {
    text-align: center;
    min-width: 120px;
}

/* Estilo para los tooltips (opcional) */
[tooltip]:hover::after {
    content: attr(tooltip);
    position: absolute;
    background: #222;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    z-index: 99;
}
