


.ml-1 {
    margin-left: .25rem !important;
}

.ml-2 {
    margin-left: .5rem !important;
}
.ml-3 {
    margin-left: .75rem !important;
}
.ml-4 {
    margin-left: 1rem !important;
}

.mx-2_5{
    margin-right: 0.75rem !important;
    margin-left: 0.75rem !important;
}

.ms-2_5{
    margin-left: 0.75rem !important;
}
.me-2_5{
    margin-right: 0.75rem !important;
}

body, .app-header {
    background-color: #e5ebf0;
}

body {
    overflow-x: hidden;
}

.app-header .navbar {
    background-color: white;
}

@media (max-width: 767.98px) {
    .app-header {
        padding: 0 20px;
    }
}

body::-webkit-scrollbar {
    width: 13px;               /* width of the entire scrollbar */
}

body::-webkit-scrollbar-track {
    background: transparent;        /* color of the tracking area */
}

body::-webkit-scrollbar-thumb {
    background-color: #185f86;    /* color of the scroll thumb */
    border-radius: 20px;       /* roundness of the scroll thumb */
    border: 3px solid #e5ebf0;  /* creates padding around scroll thumb */
}

.brand-logo .sidebartoggler {
    position: absolute;
    top: 5px;
    right: 25px;
}

.logo-img img {
    width: 240px;
}

@media (max-width: 1200px) {
    .logo-img img {
        width: 200px;
    }
}

.left-sidebar {
    /*background: #0B2838;*/
    background: #0b1e38;
    border-right: 1px solid transparent;
}

.left-sidebar, .card,
.dropdown-menu {
    box-shadow: 2px 2px 5px #0b28385e;
}

#sidebarCollapse {
    color: white;
}
#sidebarCollapse:hover {
    color: rgb(202, 202, 202);
}
.simplebar-scrollbar:before {
    /*background: #afeeee !important;*/
    background: transparent !important; /*Se pone transparent para ponerle scroll a .simplebar-content*/
}

/*estilo de scrollbar de sidebar*/
.simplebar-content {
    overflow-y: scroll;
    height: 100%;
    margin-right: 2px;
}
/*chrome*/
.simplebar-content::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.simplebar-content::-webkit-scrollbar-track {
    background: transparent; 
    border-radius: 10px;
}

.simplebar-content::-webkit-scrollbar-thumb {
    background: #217fb272; 
    border-radius: 10px;
}

.simplebar-content::-webkit-scrollbar-thumb:hover {
    background: #217fb2a1; 
}
/*firefox*/
.simplebar-content::-moz-scrollbar {
    width: 8px;
    height: 8px;
}

.simplebar-content::-moz-scrollbar-track {
    background: transparent; 
    border-radius: 10px;
}

.sidebar-item::-moz-scrollbar-thumb {
    background: #217fb272; 
    border-radius: 10px;
}

.simplebar-content::-moz-scrollbar-thumb:hover {
    background: #217fb2a1; 
}





.nav-small-cap {
    color: white;
}

.sidebar-nav ul .sidebar-item .sidebar-link {
    color: white;
}

.sidebar-nav ul .sidebar-item.selected>.sidebar-link, 
.sidebar-nav ul .sidebar-item.selected>.sidebar-link.active, 
.sidebar-nav ul .sidebar-item>.sidebar-link.open, 
.sidebar-nav ul .sidebar-item>.sidebar-link.active {
    background: #87af26;
    /*background: #afeeee;
    background: #ffb6c1;
    background: #ffa07a;
    
    color: #0B2838;*/

    color: white;

}

.sidebar-nav ul .sidebar-item .sidebar-link:hover {
    background: #afeeee;
    color: #0B2838;
}

.navbar {
    border-radius: 5px;
    box-shadow: 3px 3px 5px #0b28385e;
}

#main-wrapper[data-layout=vertical][data-header-position=fixed] .body-wrapper>.container-fluid, #main-wrapper[data-layout=vertical][data-header-position=fixed] .body-wrapper>.container-lg, #main-wrapper[data-layout=vertical][data-header-position=fixed] .body-wrapper>.container-md, #main-wrapper[data-layout=vertical][data-header-position=fixed] .body-wrapper>.container-sm, #main-wrapper[data-layout=vertical][data-header-position=fixed] .body-wrapper>.container-xl, #main-wrapper[data-layout=vertical][data-header-position=fixed] .body-wrapper>.container-xxl {
    padding-top: calc(70px + 20px);
}

.login .card {
    border-radius: 10px;
    box-shadow: 3px 3px 5px #0b2838bf;
    position: relative;
}

.input-container {
    position: relative;
}

.input-container input {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding-top: 0px;
    padding-bottom: 5px;
    /*background: transparent;*/
    outline: none;
    width: 100%;
    position: relative;
    border-bottom: 1px solid #185f864c;
    color: #0b2838 !important;
}

.input-container::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #185f86;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.input-container:focus-within::after {
    transform: scaleX(1);
    background-color: #185f86;
}


.input-container:has(input.password) .eye {
    position: absolute;
    right: 5px;
    bottom: 2px;
    cursor: pointer;
    z-index: 1;
}

.login .card input {
    /*border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0px;
    border-bottom: 1px solid #185f864c;
    box-shadow: none;
    padding-top: 0px;
    padding-bottom: 0px;
    position: relative;*/


}/*
.login .card input::after {
    content: "";
    width: 10px;
    height: 100px;
    position: absolute;
    background:red;
    z-index: 1000;
}

.login .card input:focus {
    border-bottom: 1px solid #185f86;
}*/



.btn-primary {
    background: #185f86;
    border-color: #185f86;
}

.btn-primary:hover, .btn-primary:focus-visible {
    
    background: #124865;
    border-color: #124865;
}
.btn-primary:active {
    /*background: #081c28 !important;
    border-color: #081c28 !important;*/
    background: #0B2838 !important;
    border-color: #0B2838 !important;
}

.btn-primary-2 {
    background: #86af26;
    border-color: #86af26;
    color: white;
}
.btn-primary-2:hover, .btn-primary-2:focus-visible {
    background: #72951f;
    border-color: #72951f;
    color: white;
}

.btn-primary-2:active {
    background: #536e16 !important;
    border-color: #536e16 !important;
    color: white !important;
}



.btn-secondary {
    background: #888f95;
    border-color: #888f95;
}

.btn-secondary:hover, .btn-secondary:focus-visible {
    
    background: #6c757d;
    border-color: #6c757d;
}
.btn-secondary:active {
    background: #495057 !important;
    border-color: #495057 !important;
}

.btn-danger {
    background: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover, .btn-danger:focus-visible {
    
    background: #b22c39;
    border-color: #b22c39;
}
.btn-danger:active {
    background: #93242f !important;
    border-color: #93242f !important;
}

.alert.alert-danger > ul, .alert.alert-danger > p {
    margin-bottom: 0;
}

.form-check-input:checked {
    background-color: #185f86;
    border-color: #185f86;
}

.sidebar-nav ul .sidebar-item .sidebar-link .ti {
    font-size: 24px;
}





/*submenu*/
.sidebar-nav .sidebar-item.dropdown > .sidebar-link::after {
    content: "\ea1f";
    font-family: "tabler-icons";
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%) rotate(0deg);
    font-size: 16px;
    transition: all 0.3s ease-in;
}
.sidebar-nav .sidebar-item.dropdown > .sidebar-link.active::after {
    transform: translateY(-50%) rotate(90deg);
}
.sidebar-nav .sidebar-item.dropdown {
    border-radius: 10px;
    transition: all 0.3s ease-in;
}
.sidebar-nav .sidebar-item.dropdown > .sidebar-link ~ .sidebar-item {
    height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in;
}

.sidebar-nav .sidebar-item.dropdown > .sidebar-link.active ~ .sidebar-item {
    height: auto; /* la altura se calcula en el archivo sidebarmenu.js */
}
.sidebar-nav .sidebar-item.dropdown:has(.sidebar-link.active) {
    background: #86af2658;
}

/*Resaltando el submenu activo*/
.sidebar-nav ul .sidebar-item.dropdown>.sidebar-item>.sidebar-link.selected {
    background: none;
    font-weight: 800;
}
.sidebar-nav ul .sidebar-item.dropdown>.sidebar-item>.sidebar-link.selected::before {
    content: "\efb1";
    font-family: "tabler-icons";
    font-weight: 400;
    margin-right: -10px;
}
.sidebar-nav ul .sidebar-item.dropdown>.sidebar-item>.sidebar-link.selected:hover {
    background: #afeeee;
}



.sidebar-nav ul .sidebar-item .sidebar-link span:first-child{
    margin-right: -10px;
}


th, td {
    white-space: nowrap; 
}

.table.text-center th, .table.table.text-center td {
    text-align: center !important;
}


.pagination .dt-paging-button.page-item a {
    padding: 4px 10px;
    color: #185f86;
}

.pagination .dt-paging-button.page-item a.next,
.pagination .dt-paging-button.page-item a.last,
.pagination .dt-paging-button.page-item a.previous,
.pagination .dt-paging-button.page-item a.first {
    padding: 4px 6px;
}

.pagination .dt-paging-button.page-item a:hover {
    background: #d5dee6;
    border-color: #d5dee6;
}

.pagination .dt-paging-button.page-item.active a {
    background: #185f86 !important;
    border-color: #185f86 !important;
    color: white;
}

.pagination .dt-paging-button.page-item.active a:hover,
.pagination .dt-paging-button.page-item.active a:focus-visible,
.pagination .dt-paging-button.page-item.active a:active {
    background: #124865 !important;
    border-color: #124865 !important;
}

.simplebar-content-wrapper {
    overflow-y: auto !important;
}



.table-green {
    /*width: 100%;*/
    border-collapse: collapse;
    color: #0B2838;
   
    /*border-radius: 8px 8px 0 0;
    overflow: hidden;*/
}

.table-green thead th:first-child {
    border-top-left-radius: 8px;
}
.table-green thead th:last-child {
    border-top-right-radius: 8px;
}

.table-green th, .table-green td {
    padding: 8px;
    /*text-align: left;*/
}

.table-green thead th {
    background-color: #87af26 !important;
    color: #fff;
    font-weight: bold;
    border: none;
}

.table-green tbody td, .table-green tbody th {
    border: 1px solid #1248654a;
}

th, td {
    vertical-align: middle;
    white-space: normal;
    word-wrap: break-word;
}


.apexcharts-toolbar {
    z-index: 9 !important;
}
.notification {
    background-color: #87af26 !important;
}


.card-title {
    /*font-size: 22px;*/
    color: #0B2838;
    text-decoration: underline #87af26;
    text-underline-offset: 5px;
}

.form-control, .form-select, .form-check-input {
    border-color: #b3c8ea;
    color: #0B2838;
}
.form-control:focus, .form-select:focus, .form-check-input:focus {
    /*border-color: #185f86c2;*/
    border-color: #86af26d6;
    color: #0B2838;
}

table .form-check-input:checked {
    background-color: #86af26;
    border-color: #86af26;
}

.separate-table {
    border-top: 2px solid black !important;
}
.separate-table>* {
    margin-top: 30px;
}/*
.table-prev-separate {
    border-bottom: 1px solid red !important;
}*/


/*quitar flechitas en inpu tnumber*/
/*firefox*/
input[type="number"][disabled] {
    -moz-appearance: textfield;
}

/* Quitar las flechas en Chrome, Safari, Edge y Opera */
input[type="number"][disabled]::-webkit-outer-spin-button,
input[type="number"][disabled]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}



.form-label:has( + input[required]), 
.form-label:has( + select[required]),
.form-label:has( + textarea[required]),
.form-label.required {
    position: relative;
}
.form-label:has( + input[required]):before, 
.form-label:has( + select[required]):before,
.form-label:has( + textarea[required]):before,
.form-label.required:before {
    position: absolute;
    content: "*";
    color: red;
    font-size: 15px;
    left: -7px;
    top: -2px;
}

.form-control[readonly] {
    background-color: var(--bs-form-control-disabled-bg);
    opacity: 1;
}

.bg-blue {
    background-color: #185f86;
}

.bg-blue-gradient {
    background-color: #185f86;
    background: linear-gradient(135deg, #0B2838 0%, #185f86 100%);
}

.bg-blue-gradient * {
    color: white !important;
}

.body-expediente * {
    text-align: left !important;
}

.form-card .card-header {
    background: #86af26;
    background: linear-gradient(135deg, #86af26 0%, #185f86 100%);
    color: white;
    font-weight: 600;
    padding: 5px 20px;
    border-bottom: none;
}

.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 8px;
    margin-right: 8px;
    font-size: 20px;
}

.icon-box.bg-green{
    background-color: #87af26;
    color: white;
}

.ts-control {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.body-expediente .icon-box {
    background: #86af26;
    font-size: 24px;
}

.body-expediente td {
    padding: 10px 15px 10px 15px;
}

.row-expediente > * {
    padding-left: 5px;
    padding-right: 5px;
}

.flag-icon {
    width: 25px;
    height: auto;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 2px;
    vertical-align: middle;
}

.expediente-header .text-muted {
    font-size: 0.9rem;
}

.box-absolute {
    position: absolute;
    top: 10px;
    right: 10px;
}


.separated-cells {
    border-collapse: separate !important;
    border-spacing: 0.5rem !important;
    width: 100% !important;
}

.separated-cells td {
    border-radius: 0.5rem !important;
}

@media (max-width: 992px) {
    .body-expediente .title-card-expediente {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .body-wrapper>.container-fluid, .body-wrapper>.container-lg, .body-wrapper>.container-md, .body-wrapper>.container-sm, .body-wrapper>.container-xl, .body-wrapper>.container-xxl {
        padding: 30px 10px;
    }
    .app-header {
        padding: 0 10px;
    }

    .dashboard > .card > .card-body {
        padding: 20px 10px;
    }
}


.form-select-sm .ts-control {
    min-height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));
    font-size: 0.765625rem !important;
}

.form-select-sm .ts-control input,
.form-select-sm .ts-control [data-ts-item] {
    margin: -10px -5px !important;
}


.border-green {
    border: 1px solid #87af26;
}

.bg-green {
    background-color: #87af26;
}

.bg-green-dark {
    background-color: #124865;
}

/* .w-md-25 { width: 25% !important; }
.w-md-50 { width: 50% !important; }
.w-md-75 { width: 75% !important; }
.w-md-100 { width: 100% !important; }
.w-md-auto { width: auto !important; } */

@media (min-width: 768px) { /* md breakpoint */
    .w-md-25 { width: 25% !important; }
    .w-md-50 { width: 50% !important; }
    /* Agrega más valores según necesites */

    
    .mb-md--1 {
        margin-bottom: -5px !important;
    }
}


@media (max-width: 768px) {
    .col-6-auto {
        flex: 1 0 auto;
        width: 50%;
    }

    .col-12-auto {
        flex: 1 0 auto;
        width: 100%;
    }

    .fs-md-2 {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 500px) {
    .title-card-expediente .icon-box,
    .transportes .icon-box {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .body-expediente .title-card-expediente {
        font-size: 0.9rem;
    }

    .fs-sm-2 {
        font-size: 0.75rem !important;
    }
    
    .fs-sm-1 {
        font-size: 0.65rem !important;
    }
}

@media (min-width: 768px) {
    .col-md-auto {
        width: auto;
    }
}

.carga-row label, .label-overfow {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
    margin-bottom: 0;
}

@media (min-width: 768px) and (max-width: 1400px) {
    .carga-row label {
        font-size: 0.7rem;
    }
}


@media (max-width: 768px) {
    .left-sidebar .scroll-sidebar {
        padding: 0 10px;
    }

    .sidebar-nav ul .sidebar-item .sidebar-link {
        padding: 6px 10px;
    }

    .left-sidebar {
        width: 230px;
    }
    #main-wrapper[data-layout=vertical][data-sidebartype=full] .left-sidebar, #main-wrapper[data-layout=vertical][data-sidebartype=mini-sidebar] .left-sidebar {
        left: -230px;
    }
}

@media (max-width: 550px) {
    /*Tabla vertical en el telefono*/
    .table-compact tr {
        display: flex;
        flex-wrap: wrap;
        border: 1px solid #0070a6;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 5px;
    }

    .table-compact thead tr {
        flex-direction: column;
        position: relative;
    }
    .table-compact thead tr th {
        /* color: #ecad00; */
        width: 100% !important;
        padding: 4px 2px !important;
    }

    .table-compact tbody th, .table-compact tbody td {
        padding: 0 5px;
        box-sizing: border-box !important;
        /* border: 1px solid #ccc;*/
        width: 100%;
        padding: 4px 2px !important;
    }
}

.rounded-tl-14 {
    border-top-left-radius: 14px !important;
}

.rounded-tr-14 {
    border-top-right-radius: 14px !important;
}

.rounded-bl-14 {
    border-bottom-left-radius: 14px !important;
}

.rounded-br-14 {
    border-bottom-right-radius: 14px !important;
}


/* .app-header .navbar .navbar-nav .nav-item .nav-link  {
    transition: all 0.3s ease-in;
}
.app-header .navbar .navbar-nav .nav-item .nav-link:hover  {
    text-shadow: #0070a6 1px 1px 1px;
} */


.yellow-alert {
    background-color: #fff3cd;
    border: 2px solid #ffd54f;
    color: #8d6e00;
    padding-left: 5px;
    animation: gentle-blink-yellow 2s ease-in-out infinite;
}

.red-alert {
    background-color: #f8d7da;
    border: 2px solid #dc3545;
    color: #c53030;
    padding-left: 5px;
    animation: gentle-blink-red 1.5s ease-in-out infinite;
}

@keyframes gentle-blink-yellow {
    0%, 100% { 
        background-color: #fff3cd; 
        box-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
    }
    50% { 
        background-color: #ffeaa7; 
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.6);
    }
}

@keyframes gentle-blink-red {
    0%, 100% { 
        background-color: #f8d7da; 
        box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
    }
    50% { 
        background-color: #f5b5ba; 
        box-shadow: 0 0 15px rgba(220, 53, 69, 0.6);
    }
}