:root {
    --color-default: rgb(19, 57, 116);
    --color-default-light: rgb(19, 57, 116, 0.1);
    --color-secondary: rgb(178, 34, 34);
    --color-secondary-light: rgba(178, 34, 34, 0.1);
    --color-tertiary: rgb(70, 130, 180);
    --color-tertiary-light: rgba(70, 131, 180, 0.2);
    --color-gray: #e9e9e9;
    --color-info: hsl(135, 30%, 54%);
}

body {
    color: rgba(0, 0, 0, 0.9);
}

.user-menu a:hover,
.alertas a:hover,
.menu-lateral ul li a:hover {
    background: var(--color-gray);
}

nav .logo h1 {
    font-size: 1.5rem;
    background: linear-gradient(to right, var(--color-secondary) 0%, var(--color-default) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0;
    margin: 0;
}

.navbar.bg-primary a {
    color: #fff;
    text-decoration: none;
}

.navbar .user-avatar i {
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
}

.navbar .nav-link {
    color: var(--color-default) !important;
    font-weight: 400;
    font-size: 1rem;
    margin: 0 15px;
}

.navbar-nav li+li {
    border-left: 1px solid gray;
}

.navbar .nav-link.active {
    color: var(--color-secondary) !important;
    font-weight: 700;
}

.text-primary {
    color: var(--color-default) !important;
}

.text-secondary {
    color: var(--color-secondary) !important;
}

.text-tertiary {
    color: var(--color-tertiary) !important;
}

.text-info {
    color: var(--color-tertiary) !important;
}

.bg-primary {
    background-color: var(--color-default) !important;
}

.bg-navbar {
    background: linear-gradient(to bottom, #f4f1eb, #eae6df);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.bg-light {
    background-color: var(--color-gray) !important;
}

.bg-lightblue {
    background-color: var(--color-tertiary-light) !important;
}

.bg-lightblue div {
    padding: 15px 0;
}

.bg-lightblue div+div {
    border-top: 1px solid gray;
}

.btn-primary,
.btn-primary:hover {
    font-size: 95%;
    padding: 8px 16px;
    background: linear-gradient(var(--color-secondary) 0%, #ee3420 100%) !important;
    color: #fff !important;
    border: 1px solid #bd1e0d;
    border-radius: 5px;
    box-shadow: rgba(44, 100, 252, 0.2) 0px 8px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 99;
}

.btn-secondary,
.btn-secondary:hover {
    font-size: 95%;
    padding: 8px 16px;
    background: linear-gradient(var(--color-tertiary) 0%, var(--color-tertiary) 100%);
    color: white !important;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    box-shadow: rgba(222, 222, 222, 0.2) 0px 8px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-info,
.btn-info:hover {
    font-size: 95%;
    padding: 8px 16px;
    background: linear-gradient(var(--color-info) 0%, var(--color-info) 100%);
    color: white !important;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    box-shadow: rgba(222, 222, 222, 0.2) 0px 8px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-disabled,
.btn-disabled:hover {
    font-size: 95%;
    padding: 8px 16px;
    background: linear-gradient(silver 0%, silver 100%);
    color: white !important;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
    box-shadow: rgba(222, 222, 222, 0.2) 0px 8px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

footer {
    background-color: var(--color-default);
    color: white;
}

table.data thead th {
    background-color: var(--color-tertiary);
    color: white;
}

@media (min-width: 768px) {

    table.data tbody tr.handle:hover {
        background-color: var(--color-secondary-light);
    }
}

table.data tbody tr.active {
    background-color: var(--color-secondary-light);
}

table.data>tbody>tr:not(.row):hover {
    background-color: var(--color-secondary-light);
    transition: background-color 0.3s ease;
}

.modal-content button.close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0;
    margin: 0;
    width: 40px;
    height: 40px;
    z-index: 1;
    text-shadow: none;
    background: transparent;
    border: 0;
}

.modal-content .form-control,
.modal-content .select2-container--default .select2-selection--multiple {
    background: rgb(19, 57, 116, 0.05);
    padding: 5px 15px;
    border: 1px solid rgb(19, 57, 116, 0.1);
    font-size: 0.9rem;
}

.modal-content .form-select.draw {
    background: rgb(19, 57, 116, 0.05) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='gray' class='bi bi-chevron-down' viewBox='0 0 16 16'> <path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/> </svg>") no-repeat right 10px center;
    background-size: 16px;
    appearance: none;
    padding: 5px 15px;
    font-size: 0.9rem;
    border: 1px solid rgb(19, 57, 116, 0.1);
    border-radius: 0;
}

.form-select {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='gray' class='bi bi-chevron-down' viewBox='0 0 16 16'> <path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/> </svg>") no-repeat right 10px center;
}

.modal-content .form-control.is-invalid {
    padding-right: 2.5rem;
    /* Espacio para el icono */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 16px;
}

input.is-invalid {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.report_card {
    /*
    border: 2px solid #ccc; 
    border-radius: 15px; 
    */
    padding: 0;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 150px;
}

.report_card .card-body {
    position: relative;
}

.report_card .profile {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    position: relative;
    /* Esto no debe afectar el flujo normal */
    min-width: 100px;
    min-height: 100px;
    border: 3px solid rgba(255, 255, 255, 1);
    background: linear-gradient(to bottom right, silver 0%, white 100%);
}

.report_card .profile i {
    background: linear-gradient(to bottom right, var(--color-secondary), black);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3rem;
    font-weight: 700;
    position: relative;
}

.report_card a {
    text-decoration: none;
    color: var(--color-secondary);
}

.report_card .card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: none;
}

section a {
    text-decoration: none;
    color: var(--color-secondary);
}

a.i-lg i {
    font-size: 1.5rem !important;
}

.ck-lg input[type=checkbox]{
    width: 25px;
    height: 25px;
}

@media print {
    .d-lg-table-cell {
        display: table-cell !important;
        /* Asegura que se imprima */
    }
}

div.dt-container .dt-paging .dt-paging-button {
    width: 30px !important;
    height: 30px !important;
}

div.dt-container .dt-paging .dt-paging-button+.dt-paging-button {
    margin-left: 10px !important;
}

.dataTable i {
    font-size: 1.1rem;
}

.dt-paging {
    display: flex;
    justify-content: center;
}