﻿
.btn-fichaje-activo {
    background-color: #C5D1D1;
}

.btnFinalizarPausa {
    background: #592221;
}

    .btnFinalizarPausa:hover {
        background: #c15957;
    }

.btn-primary-tareas-iniciar {
    --bs-btn-color: #000;
    --bs-btn-bg: #5c6b70;
    --bs-btn-border-color: #5c6b70;
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: #6D9CA7;
    --bs-btn-hover-border-color: #6D9CA7;
    --bs-btn-focus-shadow-rgb: 169, 160, 139;
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: #5c6b70;
    --bs-btn-active-border-color: #5c6b70;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #d5dbdd;
    --bs-btn-disabled-border-color: #d5dbdd;
}

:root {
    --bs-primary-rgb: 2, 0, 60;
    --bs-custom-table-bg: #02003c;
    --bs-custom-gradiant-bg: #02003c;
    --bs-body-bg-rgb: 2, 0, 60;
    --bs-primary-bg-subtle: #02003c;
    --bs-nav-pills-link-active-b: #02003c;
    --bs-primary: #ddccb8;
}

.btn-primary {
    --bs-btn-bg: #02003c;
    --bs-btn-border-color: #02003c;
}

nav .nav-pills, nav .nav-link {
    --bs-nav-pills-link-active-bg: #ddccb8;
    color: #fff!important;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #02003c !important;
}

.nav-principal a.nav-link:hover {
    color: #fff !important;
    opacity: 0.5;
}


.btn-secondary {
    --bs-btn-bg: #02003c;
    --bs-btn-border-color: #ddccb8;
    opacity: 0.8;
}

.login-container {
    max-width: 350px;
    padding: 0 15px 15px;
   
}

.login-background {
    background-image: url("/images/fondo.PNG");
    background-repeat: no-repeat;
    background-size: cover;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position-x: center;
    background-color: #02003c;
}


#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.active:hover {
    color: #6D9CA7 !important;
}

.nav-pills .nav-link:hover {
    color: #fff !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;
}


input[readonly], label.readonly {
    pointer-events: none;
    cursor: not-allowed; /* Cambia el cursor a un signo de prohibido */
}

select[readonly] {
    pointer-events: none;
    background-color: #e9ecef;
    cursor: not-allowed;
}

    /* Bloquear interacciones y cambiar el fondo cuando el select tiene readonly */
    select[readonly] + .select2-container .select2-selection {
        pointer-events: none;
        background-color: #e9ecef !important;
        cursor: not-allowed !important;
        opacity: 1;
    }

    /* Asegurar que el cursor de prohibido tambi?n se aplique al contenedor de Select2 */
    select[readonly] + .select2-container {
        cursor: not-allowed !important;
    }

.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 auto;
    background-repeat: no-repeat;
    background-position: 0% 100%;
}

.table-responsive thead, .table-responsive thead:hover {
    background-image: linear-gradient(to right, var(--bs-custom-table-bg), var(--bs-custom-gradiant-bg));
    background-color: var(--bs-custom-table-bg);
    color: white;
}

.comment-box .bi {
    color: #de0c0c;
    cursor: pointer;
}

.accordion-header .accordion-button:not(.collapsed ) h4{
    color:#fff;
}

/*CSS CAJA COMENTARIOS*/
.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%;
    }

.reply-list:before, .reply-list:after {
    display: none;
}

.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;
    }

.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%;
    }

.reply-list .comment-avatar {
    width: 50px;
    height: 50px;
}

.comment-main-level:after {
    content: '';
    width: 0;
    height: 0;
    display: block;
    clear: both;
}

.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;
    }



.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;
}

    .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;
    }

        .comment-box .comment-head i:hover {
            color: #03658c;
        }

.comment-box .comment-name {
    color: #283035;
    font-size: 14px;
    font-weight: 700;
    float: left;
    margin-right: 10px;
}

    .comment-box .comment-name a {
        color: #283035;
    }

.comment-box .comment-head span {
    float: left;
    color: #999;
    font-size: 13px;
    position: relative;
    top: 1px;
}

.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;
}

    .comment-box .comment-content textarea {
        padding: 5px;
    }

.comment-box .comment-name.by-author, .comment-box .comment-name.by-author a {
    color: #03658c;
}

    .comment-box .comment-name.by-author:after {
        content: 'autor';
        background: #03658c;
        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;
    }

/*CSS COMENTARIOS*/
.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%;
    }

.reply-list:before, .reply-list:after {
    display: none;
}

.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;
    }

.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%;
    }

.reply-list .comment-avatar {
    width: 50px;
    height: 50px;
}

.comment-main-level:after {
    content: '';
    width: 0;
    height: 0;
    display: block;
    clear: both;
}

.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;
    }

.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;
}

    .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;
    }

        .comment-box .comment-head i:hover {
            color: #03658c;
        }

.comment-box .comment-name {
    color: #283035;
    font-size: 14px;
    font-weight: 700;
    float: left;
    margin-right: 10px;
}

    .comment-box .comment-name a {
        color: #283035;
    }

.comment-box .comment-head span {
    float: left;
    color: #999;
    font-size: 13px;
    position: relative;
    top: 1px;
}

.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;
}

.comment-box .comment-name.by-author, .comment-box .comment-name.by-author a {
    color: #DE0C0C;
}

    .comment-box .comment-name.by-author:after {
        content: 'autor';
        background: #DE0C0C;
        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;
    }


/*calendario*/
.filtro-calendario-container {
    flex-direction: column;
    width: 100%;
    max-width: 200px; /* Limita el ancho de la columna de filtros */
}

.botones-filtro-calendario {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

/* Asegura que el calendario ocupe todo el ancho disponible */
#calendar {
    width: 100% !important;
    min-height: 70vh;
    margin: 0 auto;
    padding: 1em;
}

.botones-filtro-calendario button {
    width: 100%;
}

.fc-daygrid-day {
    height: auto !important; /* Ajustar la altura autom?ticamente */
}

.fc-daygrid-event {
    white-space: nowrap; /* Evita que el texto de los eventos se divida en varias l?neas */
    overflow: hidden;
    text-overflow: ellipsis;
}

.fc-daygrid-body {
    min-height: 80px; /* Ajusta la altura m?nima de cada celda */
}

.fc-daygrid-day-events {
    max-height: 100px; /* Limita la altura de la lista de eventos */
    overflow-y: auto; /* Activa el scroll si hay muchos eventos */
}

.evento-dia {
    width: 100%;
    height: 100%;
    position: absolute; /* Para que ocupe toda la celda */
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column; /* Asegura que los eventos est?n en l?nea separada */
    display: flex;
    align-items: center; /* Centra el texto verticalmente */
    justify-content: center; /* Centra el texto horizontalmente */
    color: white;
    border-radius: 5px; /* Opcional: bordes redondeados */
    text-align: center;
    cursor: pointer;
}

.fc-body .fc-day-grid-container {
    height: auto !important;
}

#eventsModalBody {
    display: flex;
    flex-direction: column;
    gap: .5em;
    max-height: 60vh;
    overflow-y: auto;
}

.evento-modal {
    display: flex;
    justify-content: space-between;
    align-content: center;
    gap: 1em;
    padding: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    border-radius: 5px;
}


.task-day {
    color: #fff;
}

.color-circle {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.evento-item {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

span.fc-day-number {
    padding: 5px;
}

@@media (width > 768px) {
    .fc-body .fc-row {
        height: 11vh !important;
    }
}

@@media (height < 768px) {

    #calendar {
        margin: 0px auto !important;
        padding-top: 8px;
    }

    .fc-body .fc-row {
        height: 10vh !important;
    }

    .fc-toolbar.fc-header-toolbar {
        margin-bottom: 0.5em;
    }
}


.home .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-bottom: 10px solid;
}

    .home .card:hover {
        transform: scale(1.05); /* Pequeño aumento al pasar el mouse */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada */
    }

.home .card-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.home .card-title-2 {
    font-size: 1.5rem;
    font-weight: bold;
}

.home .card-text {
    font-size: 0.9rem;
}

.home .table-responsive::-webkit-scrollbar {
    width: 10px;
}

.home .table-responsive::-webkit-scrollbar-track {
    background: transparent;
}

.home .table-responsive::-webkit-scrollbar-thumb {
    background-color: gray;
    border-radius: 20px;
    border: 2px solid transparent;
}


.home .table-responsive {
    scrollbar-width: thin;
    scrollbar-color: gray transparent;
}

.home #tablaResultadosNotas td:nth-child(1) {
    width: 90%;
}

.home #tablaResultadosNotas td:nth-child(2) {
    width: 8%;
}

.home #tablaResultadosNotas td:nth-child(3) {
    width: 2%;
}
/* Estilos para la tabla de ranking */
.home .position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
}

.home .position-1 {
    background-color: #FFD700; /* Oro */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.home .position-2 {
    background-color: #C0C0C0; /* Plata */
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.home .position-3 {
    background-color: #CD7F32; /* Bronce */
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.home .top-1-row {
    background-color: rgba(255, 215, 0, 0.05);
}

.home .top-2-row {
    background-color: rgba(192, 192, 192, 0.05);
}

.home .top-3-row {
    background-color: rgba(205, 127, 50, 0.05);
}

.home .table tr {
    transition: all 0.2s ease;
}

    .home .table tr:hover {
        background-color: rgba(13, 110, 253, 0.05);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

/* Estilo para la tabla que coincide con las tarjetas */
.home .table-responsive {
    border-radius: 0 0 0.375rem 0.375rem;
}

.home .table th {
    border-top: none;
    font-weight: 600;
    color: #white;
}

.home .table td, .table th {
    padding: 0.75rem 1rem;
    border-color: rgba(0, 0, 0, 0.05);
}

.home .ancho-72 {
    width: 72%;
    max-width: 100%; /* evita desbordamientos en pantallas pequeñas */
}

.home .card-body--alto160 {
    min-height: 93px;
}

:root {
    --custom-danger: @dangerColor;
}

.home .bi-arrow-up, .bi-arrow-down {
    stroke-width: 3px;
    -webkit-text-stroke: 1px;
    font-weight: bold;
}

.home .table-group-divider {
    border-top-color: transparent;
}

@media (max-width: 1499px) {
    .home .flex-layout-responsive {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .home .card-title-responsive {
        font-size: 1.1rem !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 0.25rem !important;
    }

    .home .counter-responsive {
        font-size: 1.75rem !important;
        padding-right: 0 !important;
    }
}

/* Ajustes para otros tamaños de pantalla */
@media (max-width: 1919px) and (min-width: 1400px) {
    .home .card-title-responsive {
        font-size: 1.1rem !important;
    }

    .home .counter-responsive {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 1299px) and (min-width: 1200px) {
    .home .card-title-responsive {
        font-size: 0.95rem !important;
    }

    .home .counter-responsive {
        font-size: 1.4rem !important;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .home .card-title-responsive {
        font-size: 0.9rem !important;
    }

    .home .counter-responsive {
        font-size: 1.3rem !important;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .home .card-title-responsive {
        font-size: 1.1rem !important;
    }

    .home .counter-responsive {
        font-size: 1.75rem !important;
    }
}

@media (max-width: 767px) and (min-width: 576px) {
    .home .card-title-responsive {
        font-size: 1rem !important;
    }

    .home .counter-responsive {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 575px) {
    .home .card-title-responsive {
        font-size: 0.9rem !important;
    }

    .home .counter-responsive {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 575.98px) {
    .home .flex-mobile-col { /* cambia la fila a columna */
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
    }

    .home .card-val-mobile { /* cifra un poco más pequeña */
        font-size: 2rem !important; /* antes era display-5 ≈ 3rem */
        padding-right: 0 !important;
    }

    .home .center-mobile {
        justify-content: center !important; /* ← centra la fila */
        padding-right: 0 !important; /* anula el pe-3 */
    }
}