﻿@font-face {
    font-family: 'Roboto-Light';
    src: url('../fonts/Roboto-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto-Regular';
    src: url('../fonts/Roboto-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Archivo-Regular';
    src: url('../fonts/Archivo/Archivo-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Lato-Regular';
    src: url('../fonts/Lato/Lato-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto-Thin';
    src: url('../fonts/Roboto-Thin.ttf') format('truetype');
}

.selector-for-some-widget {
    box-sizing: content-box;
}

:root {
    --light-green: #CFECEC;
    --dark-green: #3B9C9C; /*#008B8B*/
    --light-blue: #F0F8FF;
    --dark-blue: #4863A0;
    --main-bg-color: var(--dark-green);
    --light-bg: var(--light-green);
    --bg-sucess-button: var(--main-bg-color);
    --side-menu-text: #fff;
    --side-submenu-text: #000;
}

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Roboto, 'Open Sans', 'Inter', sans-serif;
    height: 100%;
    font-size: .9em;
}

.bg-Site {
    background-color: var(--main-bg-color) !important;
    color: #ffffff !important;
}
.bg-Site-light {
    background-color: var(--light-bg) !important;
}

.bg-success-button {
    background-color: var(--bg-sucess-button) !important;
}

.text-site-dark {
    color: var(--main-bg-color) !important;
}

.notes-border {
    border-left: 3px solid var(--main-bg-color) !important;
}

.logo-Site {
    width: 120px; /* ancho deseado */
    height: auto; /* mantiene la proporción */
    max-width: 80%; /* opcional, para pantallas pequeñas */
}

.bg-lightgray {
    background-color: #f8f9fa !important;
}

.bg-lightgray-100 {
    background-color: #eeeeee !important;
}

.bg-table-rows {
    background-color: #f8f9fa !important;
    color: #000;
}

/* Modifica el color de las opciones del menu */
.nav-link{
    color: var(--side-menu-text) !important;
}

/*====================================================================================*/
/* Insurance Company Images Start */
/*====================================================================================*/

.image-table{
    width: 70px !important;
}

.image-cards {
    width: 50px !important;
}

/*====================================================================================*/
/* Insurance Company Images End */
/*====================================================================================*/

/*====================================================================================*/
/* ToDo Start */
/*====================================================================================*/

.kanban-scroll {
    max-height: 70vh;
    overflow-y: auto;
}

    .kanban-scroll::-webkit-scrollbar {
        width: 6px;
    }

    .kanban-scroll::-webkit-scrollbar-thumb {
        background: #d6d6d6;
        border-radius: 10px;
    }

.task {
    cursor: pointer;
    transition: all 0.15s ease;
}

    .task:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    }


/* PANEL */
.task-panel {
    position: fixed;
    top: 0;
    right: -380px;
    width: 380px;
    height: 100%;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: all 0.25s ease;
    z-index: 1050;
    display: flex;
    flex-direction: column;
}

    .task-panel.open {
        right: 0;
    }

.panel-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.panel-body {
    padding: 15px;
    overflow-y: auto;
}

/* ACTIVITY */
.activity-item {
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid #f1f1f1;
}

/* PANEL */
.task-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 1050;
}

    .task-panel.open {
        right: 0;
    }

.panel-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.panel-body {
    padding: 15px;
    overflow-y: auto;
}

/* ACTIVITY */
.activity-item {
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid #f1f1f1;
}

.chat-container {
    background: #f5f7fb;
    border-radius: 12px;
}

/* burbuja */
.chat-bubble {
    padding: 10px 12px;
    border-radius: 14px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* mensajes míos */
.chat-me {
    background: #1c2d5a; /* tu azul */
    color: white;
    border-bottom-right-radius: 4px;
}

/* mensajes de otros */
.chat-other {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
}

/* nombre */
.chat-user {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
}

/* fecha */
.chat-time {
    font-size: 11px;
    margin-top: 4px;
    text-align: right;
    opacity: 0.7;
}

.chat-bubble {
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.task-highlight {
    border: 3px solid #ffc107 !important; /* amarillo mostaza */
    box-shadow: 0 0 10px rgba(255,193,7,0.6);
    transform: scale(1.02);
}
/*====================================================================================*/
/* ToDo End */
/*====================================================================================*/

/*====================================================================================*/
/* SignalR Start */
/*====================================================================================*/

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    color: white;
    z-index: 9999;
    min-width: 260px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    animation: fadeIn 0.3s ease;
}

/* 🟡 Comentarios */
.toast-notification-comment {
    background: #1c2d5a; /* azul */
}

/* 🟢 Nueva tarea */
.toast-notification-newtask {
    background: #198754; /* verde bootstrap */
}

    .toast-notification a {
        text-decoration: none;
    }

/*====================================================================================*/
/* SignalR End */
/*====================================================================================*/

/*====================================================================================*/
/*Tareas*/
/*====================================================================================*/

.activity-card {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.timeline {
    position: relative;
    padding-left: 28px;
}

    .timeline::before {
        content: "";
        position: absolute;
        left: 10px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: #e9ecef;
    }

.timeline-item {
    position: relative;
    margin-bottom: 18px;
    color: #000000 !important;
}

.timeline-dot {
    position: absolute;
    left: -10px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0d6efd;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #e9ecef;
    color: #000000 !important;
}

    .timeline-dot.green {
        background: #20c997;
    }

    .timeline-dot.orange {
        background: #fd7e14;
    }
.timeline-content {
    padding-left: 16px;
    color: #000000 !important;
}

.timeline-user {
    font-weight: 600;
    font-size: .9rem;
}

.timeline-time {
    font-size: .75rem;
    color: #6c757d;
}

.message {
    font-size: .9rem;
    color: #495057; 
}
.project-title {
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: 10px;
}

.timeline-item {
    opacity: 0;
    transform: translateY(10px);
    transition: all .4s ease;
}

    .timeline-item.visible {
        opacity: 1;
        transform: translateY(0);
    }

.timeline-scroll {
    max-height: 65vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
    .timeline-scroll::-webkit-scrollbar {
        width: 6px;
    }

    .timeline-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .timeline-scroll::-webkit-scrollbar-thumb {
        background: #cfd4da;
        border-radius: 10px;
        transition: background .3s;
    }

        .timeline-scroll::-webkit-scrollbar-thumb:hover {
            background: #9aa0a6;
        }

    .timeline-scroll::before,
    .timeline-scroll::after {
        content: "";
        position: sticky;
        left: 0;
        right: 0;
        height: 15px;
        pointer-events: none;
    }

    .timeline-scroll::before {
        top: 0;
        background: linear-gradient(to bottom, white, transparent);
    }

    .timeline-scroll::after {
        bottom: 0;
        background: linear-gradient(to top, white, transparent);
    }

/*Policy Notes*/
.chat-bubble {
    max-width: 65%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Mensajes propios */
.chat-me {
    background: #0d6efd;
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Mensajes de otros */
.chat-other {
    background: #f1f3f5;
    color: #212529;
    border-bottom-left-radius: 4px;
}

/* Header */
.chat-header {
    display: flex;
    justify-content: flex-start;
    font-size: 14px;
    margin-bottom: 4px;
    opacity: 0.8;
}

/* Usuario */
.chat-user {
    font-weight: 600;
}

/* Hora */
.chat-time {
    margin-left: 10px;
}

/* Mensaje */
.chat-message {
    word-wrap: break-word;
}

.card-enter {
    opacity: 0;
    transform: translateY(40px) scale(.9);
    transition: all .5s cubic-bezier(.22,1,.36,1);
}



.card-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

#pdfDropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 30px;
    background: #fafafa;
}
.dz-success {
    background-color: #f8f9fa !important;
    border-color: #198754 !important;
}
#dropzoneArchivo {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 30px;
    background: #fafafa;
}

/*============================================================================================*/
/*Spinner*/
/*============================================================================================*/

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-content {
    text-align: center;
}

.icon-wrapper {
    width: 55px;
    height: 55px;
    margin: auto;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef3ff;
}

/* MAIN */
#page-content {
    width: 100%;
}

#aRegistrate a {
    text-decoration: underline;
    font-size: 20px;
}

.border-section {
    border: solid 1px var(--main-bg-color) !important;
}

.btn-pills {
    /*border-radius: 15px;*/
    width: 25px;
    height: 25px;
    padding: 2px 0px;
    border-radius: 15px;
    text-align: center;
    font-size: 13px;
    line-height: 1.42857;
}

.jumbotron2 {
    background-image: url("../Images/bgWelcome1.jpg");
    background-size: cover;
}

.btn-border-pdf {
    border-bottom: 6px solid #F93154;
    color: #fff;
}

.btn-border-excel {
    border-bottom: 6px solid #00B74A;
    color: #fff;
}

.btn-border-copy {
    border-bottom: 6px solid #1266F1;
    color: #fff;
}

.btn-border-print {
    border-bottom: 6px solid #616161;
    color: #fff;
}

/* ===================================================================================================================================================== */
/* TEXT STYLE START  */
/* ===================================================================================================================================================== */


h1 {
    font-family: Lato-Regular, sans-serif;
    font-weight: 800;
}

h2 {
    font-family: Archivo-Regular, sans-serif;
    font-weight: 500;
}

.lato-regular {
    font-family: Lato-Regular, sans-serif;
}

.archivo-regular {
    font-family: Archivo-Regular, sans-serif;
}

.text-title-card {
    font-family: Archivo-Regular, sans-serif;
    font-weight: 500;
    font-size: 26px;
}

p lead {
    font-family: Lato-Regular, sans-serif;
    font-weight: 500;
}

.text-blue {
    color: #0066ff;
}

.font-weight-bold {
    font-weight: bold;
}

.alert-chart {
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid #1dc9b7;
    /*background: #eef7fd;*/
    opacity: 0.8;
    font-weight: 400;
    font-size: 0.875rem;
    border-radius: 0px 8px 8px 0px;
}

.card-chart {
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border-left: 8px solid #1dc9b7;
    /*background: #eef7fd;*/
    opacity: 0.8;
    font-weight: 400;
    font-size: 0.875rem;
    border-radius: 0px 8px 8px 0px;
}

.card-tutorial {
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border-left: 6px solid #dcdcdc;
    /*background: #eef7fd;*/
    font-weight: 400;
    font-size: 0.875rem;
    border-radius: 0px 8px 8px 0px;
}

.table-dashboard thead th {
    font-size: .75rem;
    letter-spacing: .4px;
    color: #6c757d;
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
}

.table-dashboard tbody tr {
    border-bottom: 1px solid #f1f3f5;
}

    .table-dashboard tbody tr:hover {
        background: #f8f9fa;
    }

.client-avatar {
    width: 38px;
    height: 38px;
    font-size: .85rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.badge-soft-danger {
    background: #fde8e8;
    color: #dc3545;
    font-weight: 500;
}

.badge-soft-warning {
    background: #fff3cd;
    color: #b45309;
    font-weight: 500;
}

.amount {
    font-weight: 600;
    color: #2c3e50;
}

.action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-card {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.icon-green {
    background: #d9f3ea;
    color: #00a86b;
}

.icon-blue {
    background: #e7f1ff;
    color: #0d6efd;
}

.icon-orange {
    background: #fff1e6;
    color: #fd7e14;
}

.icon-purple {
    background: #f3e8ff;
    color: #6f42c1;
}

.card-title-small {
    font-size: 12px;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 600;
}
.chart-container {
    position: relative;
    height: 250px; /* controla el alto del gráfico */
    width: 100%;
}

.modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2000 !important;
}

.modal-backdrop {
    z-index: 1500 !important;
}

.modal-backdrop {
    pointer-events: none !important;
}

.modal-dialog {
    position: relative;
    z-index: 1060;
}

/* Modal general */
.modal-content {
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Encabezado del modal */
/*.modal-header {
    background-color: #0d3b66;*/ /* azul oscuro de tu paleta */
    /*color: #fff;
    padding: 1rem 1.5rem;
}*/

/* Forzar modal centrado verticalmente y scrollable */
.modal-scrollable {
    display: flex;
    align-items: center;
    min-height: 100vh; /* altura completa de la pantalla */
}

    .modal-scrollable .modal-content {
        max-height: 90vh; /* que nunca sobrepase la pantalla */
        overflow-y: auto; /* scroll interno si es muy alto */
    }
/* Botón cerrar blanco */
.btn-close-white {
    filter: invert(1);
}

/* Body del modal */
.modal-body {
    background-color: #f8f9fa; /* gris claro para resaltar formularios */
}

/* Dropzone estilizada */
.dropzone .dz-message {
    background-color: #ffffff;
    border: 2px dashed #ced4da;
    border-radius: 0.375rem;
    font-size: 0.95rem;
}

/* Footer del modal */
.modal-footer {
    background-color: #f8f9fa;
}

    /* Botón guardar (acción principal) */
    .modal-footer .btn-warning {
        background-color: #ffc107; /* mostaza */
        border: none;
    }

        .modal-footer .btn-warning:hover {
            background-color: #e0a800;
        }

.dropzone {
    background: #f8f9fa;
    border: 2px dashed #6c757d;
    border-radius: 8px;
}

    .dropzone .dz-message {
        font-size: 14px;
        color: #6c757d;
    }

    .dropzone .dz-preview .dz-details {
        font-size: 12px;
    }
    
    .dz-max-files-reached {
    background-color: red
}

.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}


.custom-button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #007bff;
    transition: background-color 0.2s;
}

    .custom-button:hover {
        background-color: #0056b3;
    }

.modal-header {
    padding: 0rem 1rem !important;
}

#cardsHome a {
    text-decoration: none;
}

/* Chat */
.chat-body {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Mensajes del agente */
.chat-message.agent .message-content {
    background-color: #0d3b66; /* azul oscuro */
    color: #fff;
    align-self: flex-start;
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    max-width: 70%;
    position: relative;
}

/* Mensajes del cliente */
.chat-message.client .message-content {
    background-color: #ffc107; /* mostaza */
    color: #212529;
    align-self: flex-end;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    max-width: 70%;
    position: relative;
}

/* Hora del mensaje */
.message-time {
    display: block;
    font-size: 0.7rem;
    margin-top: 3px;
    opacity: 0.7;
    text-align: right;
}

/* ===================================================================================================================================================== */
/* TEXT STYLE END */
/* ===================================================================================================================================================== */
/* ***************  table style  *************** */
/*.form-control {
    border-top: 0px;
    border-left: 0px;
    border-right: 0px;
    border-bottom: 1px solid;
    border-color: #98AFC7;
}
*/
.avatar-title {
    align-items: center;
    color: #fff;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.font-28 {
    font-size: 28px !important;
}

/*.avatar-lg {
    height: 4.5 rem;
    width: 4.5 rem;
}

.avatar-md {
    height: 3.5 rem;
    width: 3.5 rem;
}*/

.rounded-circle {
    border-radius: 50% !important;
}


.form-control:disabled, .form-control[readonly] {
    background-color: #f8f9fa;
    opacity: 1;
}

select {
    appearance: auto !important;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    background-image: none !important;
}


/*==================================== form-control modern start ====================================*/
/* Inputs modernos */
.form-control-modern,
.form-select-modern {
    border-radius: 10px;
    border: 1px solid #e0e6ed;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #fff;
}

    /* Hover */
    .form-control-modern:hover,
    .form-select-modern:hover {
        border-color: #b0bec5;
    }

    /* Focus (🔥 importante) */
    .form-control-modern:focus,
    .form-select-modern:focus {
        border-color: var(--main-bg-color);
        box-shadow: 0 0 0 3px rgba(59, 156, 156, 0.15);
        outline: none;
    }

/* Labels más elegantes */
.form-label {
    margin-bottom: 4px;
    font-weight: 500;
}

/* Placeholder más suave */
::placeholder {
    color: #9aa0a6;
    font-size: 13px;
}
/* Ajuste para select moderno */
.form-select-modern {
    border-radius: 10px;
    border: 1px solid #e0e6ed;
    padding: 10px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #fff;
    /* Flecha alineada correctamente */
    background-position: right 12px center;
}

    /* Hover */
    .form-select-modern:hover {
        border-color: #b0bec5;
    }

    /* Focus */
    .form-select-modern:focus {
        border-color: var(--main-bg-color);
        box-shadow: 0 0 0 3px rgba(59, 156, 156, 0.15);
    }

/* Evita que el icono estorbe el click */
.position-relative i {
    pointer-events: none;
}

/*==================================== form-control modern end ====================================*/

/*==================================== User cards start ====================================*/

/* BASE */
.card-selectable {
    position: relative;
    cursor: pointer;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    transition: all 0.2s ease;
    background-color: #fff;
}

    /* HOVER */
    .card-selectable:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.08);
        border-color: #cfd8dc;
    }

/* SELECTED */
.card-selected {
    border: 2px solid var(--main-bg-color);
    background-color: #f0fdf9;
    box-shadow: 0 8px 20px rgba(32, 201, 151, 0.15);
    animation: selectPop 0.2s ease;
}

/* ICON */
.card-selectable i {
    color: #6c757d;
    transition: all 0.2s ease;
}

.card-selected i {
    color: #20c997;
}

/* 🔥 CHECK REAL (NO pseudo-elemento) */
.check-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #20c997;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

    /* visible */
    .check-icon.show {
        opacity: 1;
        transform: scale(1);
    }

/* ANIMACIÓN */
@keyframes selectPop {
    0% {
        transform: scale(0.97);
    }

    100% {
        transform: scale(1);
    }
}

/* OPERACIONES */
.operation-card {
    border: 1px solid var(--main-bg-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
}

    .operation-card:hover {
        background-color: #f8f9fa;
        border-color: #20c997;
    }

/* CHIPS */
.badge {
    border-radius: 20px;
    font-size: 13px;
    padding: 6px 12px;
}

/*==================================== User cards end ====================================*/


.card-hover {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #eaeaea;
}

    .card-hover:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        background-color: var(--light-bg) !important;
    }

/* Línea izquierda tipo Monday */
.td-left-indicator {
    position: relative;
    padding-left: 12px !important;
}

    .td-left-indicator::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0%;
        height: 102%;
        width: 4px;
        background-color: var(--main-bg-color); /* 🔵 color base (puedes cambiarlo) */
        border-radius: 3px;
    }

.table-divider tr td {
    border-bottom: 1px solid #e9ecef;
}

.table-divider tr:last-child td {
    border-bottom: none;
}

table.dataTable thead th,
table.dataTable thead td {
    font-weight: 700 !important;
}

.dataTables_filter {
    text-align: left !important;
}

.active > .page-link, .page-link.active {
    z-index: 3;
    color: #fff;
    background-color: var(--main-bg-color);
    border-color: var(--bs-pagination-active-border-color);
}

div.dataTables_wrapper div.dataTables_filter input {
    margin-left: .5em;
    display: inline-block;
    width: 400px !important; 
}

table.dataTable {
    border-collapse: collapse !important;
}

.dataTables_wrapper {
    width: 100%;
}

.dataTables_wrapper {
    position: relative;
    z-index: 1;
}

.table td, .table th {
    padding: .25rem;
}

table tr, td {
    padding-bottom: .9em;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
}

#tablePDF .tr {
    padding-bottom: .9em;
    border: 1px solid #000;
}

#column-buttons {
    max-width: 85px !important;
    border-right: 2px solid #fff;
}

table.display {
    margin: 0 auto;
    width: 100%;
}

#tableReport {
    width: inherit !important;
}

/* ***************  profile images  *************** */

.profile-image {
    width: 3.125rem;
    height: 3.125rem;
}

.profile-image-md {
    width: 2rem;
    height: 2rem;
}

.profile-image-sm {
    max-width: 1.5625rem;
    height: 1.5625rem;
}

/* ***************  breadcrumb  *************** */

.breadcrumb a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

    .breadcrumb a:hover {
        border-bottom: 2px solid #357EC7;
    }

.card-header span {
    font-weight: 700;
}

#mainCard .card-body {
    padding: 0rem 1rem !important;
}

/* ===================================================================================================================================================== */
/* Alert START  */
/* ===================================================================================================================================================== */

#alertMessages {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 320px;
}

    /* Toast estilo SaaS */
    #alertMessages .alert {
        border: none;
        border-radius: 12px;
        padding: 12px 16px;
        margin-bottom: 10px;
        /*background: rgba(30, 41, 59, 0.95);*/ /* oscuro elegante */
/*        color: #fff;
*/      backdrop-filter: blur(6px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.25);
        animation: slideIn 0.3s ease;
    }

/* Colores por tipo */
.alert-success {
    border-left: 4px solid #22c55e;
}

.alert-danger {
    border-left: 4px solid #ef4444;
}

.alert-warning {
    border-left: 4px solid #f59e0b;
}

.alert-info {
    border-left: 4px solid #3b82f6;
}

/* Título */
#alertMessages .title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Texto */
#alertMessages .bodytext {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Botón cerrar */
#alertMessages .btn-close {
    filter: invert(1);
    opacity: 0.7;
}

/* Animación */
@keyframes slideIn {
    from {
        transform: translateX(40px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* ===================================================================================================================================================== */
/* Alert END  */
/* ===================================================================================================================================================== */


/* ===================================================================================================================================================== */
/* NAVBAR START  */
/* ===================================================================================================================================================== */

.navbar {
    padding-top: 0px;
    padding-bottom: 0px;
}

    .navbar .dropdown-menu a:hover {
        color: #616161 !important;
    }

.nav-item {
    font-family: Lato-Regular, sans-serif;
    text-align: center;
}

    .nav-item:hover {
        color: #000;
        text-decoration: none;
        border-bottom: 2px solid #357EC7;
    }

.navbar-dark .navbar-nav .nav-link {
    color: #fff;
}

    .navbar-dark .navbar-nav .nav-link:hover .nav-item:hover .nav-link:focus {
        color: #000;
        text-decoration: none;
        border-bottom: 2px solid #357EC7;
    }

.dropdown-item {
    font-size: .9em;
}

    .dropdown-item:focus, .dropdown-item:hover {
        color: #000;
        text-decoration: none;
        background-color: lightgray;
        border-bottom: 2px solid #357EC7;
    }


/* ============ desktop view ============ */
@media all and (min-width: 992px) {
    .dropdown-menu li {
        position: relative;
    }

    .nav-item .submenu {
        display: none;
        position: absolute;
        left: 100%;
        top: -7px;
    }

    .nav-item .submenu-left {
        right: 0%;
        left: auto;
    }

    .dropdown-menu > li:hover {
        background-color: #f1f1f1
    }

        .dropdown-menu > li:hover > .submenu {
            display: block;
        }
}
/* ============ desktop view .end// ============ */

/* ============ small devices ============ */
@media (max-width: 991px) {
    .dropdown-menu .dropdown-menu {
        margin-left: 0.7rem;
        margin-right: 0.7rem;
        margin-bottom: .5rem;
    }
}
/* ============ small devices .end// ============ */

/* ===================================================================================================================================================== */
/* NAVBAR END  */
/* ===================================================================================================================================================== */

.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* encima de todo */
}

.loader {
    width: 80px;
    height: 80px;
    border: 10px solid rgba(255, 255, 255, 0.3);
    border-top: 10px solid #357EC7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hm-gradient {
    background-image: linear-gradient(to top, #f3e7e9 0%, #e3eeff 99%, #e3eeff 100%);
}

.half, .half .container > .row {
    height: 100vh;
    min-height: 700px;
}

    .half .contents {
        background: #fff;
    }

    .half .bg {
        width: 25%;
    }

@media (max-width: 767.98px) {
    .half .bg {
        width: 100%;
        height: 200px;
    }
}

.half .contents {
    width: 75%;
}

@media (max-width: 767.98px) {
    .half .contents {
        width: 100%;
    }
}

.half .bg {
    background-size: cover;
    background-position: center;
}

.half a {
    color: #888;
    text-decoration: underline;
}

.half .btn {
    padding-left: 30px;
    padding-right: 30px;
}

.half .forgot-pass {
    position: relative;
    top: 2px;
    font-size: 14px;
}

.form-block {
    background: #fff;
    padding: 40px;
    max-width: 500px;
    -webkit-box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.2);
}

@media (max-width: 767.98px) {
    .form-block {
        padding: 25px;
    }
}

.control {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    cursor: pointer;
    font-size: 14px;
}


/*================================ COLORS ========================================== */
.bg-primary-50 {
    background-color: #E3F2FD !important;
}

.bg-primary-100 {
    background-color: #BBDEFB !important;
}

.bg-primary-200 {
    background-color: #90CAF9 !important;
}

.bg-primary-300 {
    background-color: #64B5F6 !important;
}

.bg-primary-400 {
    background-color: #42A5F5 !important;
}

.bg-primary-500 {
    background-color: #2196F3 !important;
}

.bg-primary-600 {
    background-color: #1E88E5 !important;
}

.bg-primary-700 {
    background-color: #1976D2 !important;
}

.bg-primary-800 {
    background-color: #1565C0 !important;
}

.bg-primary-900 {
    background-color: #0D47A1 !important;
}

.bg-success-50 {
    background-color: #E0F2F1 !important;
}

.bg-success-100 {
    background-color: #B2DFDB !important;
}

.bg-success-200 {
    background-color: #80CBC4 !important;
}

.bg-success-300 {
    background-color: #4DB6AC !important;
}

.bg-success-400 {
    background-color: #26A69A !important;
}

.bg-success-500 {
    background-color: #009688 !important;
}

.bg-success-600 {
    background-color: #00897B !important;
}

.bg-success-700 {
    background-color: #00796B !important;
}

.bg-success-800 {
    background-color: #00695C !important;
}

.bg-success-900 {
    background-color: #004D40 !important;
}

.bg-info-50 {
    background-color: #9acffa !important;
}

.bg-info-100 {
    background-color: #82c4f8 !important;
}

.bg-info-200 {
    background-color: #6ab8f7 !important;
}

.bg-info-300 {
    background-color: #51adf6 !important;
}

.bg-info-400 {
    background-color: #39a1f4 !important;
}

.bg-info-500 {
    background-color: #2196F3 !important;
}

.bg-info-600 {
    background-color: #0d8aee !important;
}

.bg-info-700 {
    background-color: #0c7cd5 !important;
}

.bg-info-800 {
    background-color: #0a6ebd !important;
}

.bg-info-900 {
    background-color: #0960a5 !important;
}

.bg-warning-50 {
    background-color: #ffebc1 !important;
}

.bg-warning-100 {
    background-color: #ffe3a7 !important;
}

.bg-warning-200 {
    background-color: #ffdb8e !important;
}

.bg-warning-300 {
    background-color: #ffd274 !important;
}

.bg-warning-400 {
    background-color: #ffca5b !important;
}

.bg-warning-500 {
    background-color: #ffc241 !important;
}

.bg-warning-600 {
    background-color: #ffba28 !important;
}

.bg-warning-700 {
    background-color: #ffb20e !important;
}

.bg-warning-800 {
    background-color: #f4a500 !important;
}

.bg-warning-900 {
    background-color: #da9400 !important;
}

.bg-danger-50 {
    background-color: #feb7d9 !important;
}

.bg-danger-100 {
    background-color: #fe9ecb !important;
}

.bg-danger-200 {
    background-color: #fe85be !important;
}

.bg-danger-300 {
    background-color: #fe6bb0 !important;
}

.bg-danger-400 {
    background-color: #fd52a3 !important;
}

.bg-danger-500 {
    background-color: #fd3995 !important;
}

.bg-danger-600 {
    background-color: #fd2087 !important;
}

.bg-danger-700 {
    background-color: #fc077a !important;
}

.bg-danger-800 {
    background-color: #e7026e !important;
}

.bg-danger-900 {
    background-color: #ce0262 !important;
}

.bg-Purple-50 {
    background-color: #F3E5F5 !important;
}

.bg-Purple-100 {
    background-color: #E1BEE7 !important;
}

.bg-Purple-200 {
    background-color: #CE93D8 !important;
}

.bg-Purple-300 {
    background-color: #BA68C8 !important;
}

.bg-Purple-400 {
    background-color: #AB47BC !important;
}

.bg-Purple-500 {
    background-color: #9C27B0 !important;
}

.bg-Purple-600 {
    background-color: #8E24AA !important;
}

.bg-Purple-700 {
    background-color: #7B1FA2 !important;
}

.bg-Purple-800 {
    background-color: #6A1B9A !important;
}

.bg-Purple-900 {
    background-color: #4A148C !important;
}

.bg-Purple-A100 {
    background-color: #EA80FC !important;
}

@media only screen and (max-device-width: 830px) {

    .nav-item, .dropdown-item {
        text-align: end !important;
        padding-right: 10px;
    }

        .nav-item:hover {
            color: #000;
            text-decoration: none;
            border-bottom: none;
        }

    .nav-link {
        border-bottom: 1px solid #fff;
    }

        .nav-link :hover {
            text-decoration: underline !important;
            color: #fff !important;
        }

    .navbar-collapse {
        padding-top: 2px;
    }

    .border-bottom-sm {
        /*border-bottom: 1px solid #fff;*/
    }

    #barApp .dropdown-menu {
        background-color: var(--light-bg);
        border: none;
    }

    .dropdown-item {
        border-bottom: 1px solid #357EC7;
    }
}
