@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;1,500&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: "poppins", sans-serif;
    font-size: 13px;
}


body {
    background-color: #f0f4f9 !important;
    width: 100%;
    height: 100%;
}

.card {
    border: none !important;
    background-color: transparent !important;
}

.card-body {
    border: 1px solid white !important;
    background-color: #fff !important;
    box-shadow: 0 0 10px 0 rgba(183, 192, 206, 0.2) !important;
    word-wrap: break-word;
    padding: 17px !important;
}

.overflow-body-hidden {
    overflow: hidden;
}

#main-content {
    padding: 80px 20px 20px 290px;
    transition: 0.3s ease-in-out;
    background: #80808021;
    min-height: 100vh;
}

.main-content-sidebar-hidden {
    padding: 80px 20px 20px 100px !important;
}

.table {
    min-width: 100% !important;
    width: 100% !important;
}

.table tr th {
    font-weight: 400;
}

.show_form {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.541);
    z-index: 9999;
    display: flex !important;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
}

.show_form .modal-flotante {
    width: 500px;
    top: 28px;
    position: absolute;
    z-index: 701;
    background-color: rgb(255, 255, 255);
    min-width: 400px;
    border-radius: 10px;
    max-width: 90%;
}

.show_form .modal-flotante .body,
.show_form .modal-flotante .header,
.show_form .modal-flotante .footer {
    padding: 20px;
}

.show_form .content-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    background-color: rgb(255, 255, 255);
    min-width: 400px;
    width: 70%;
    max-width: 90% !important;
    max-height: 90%;
    /* Establece una altura máxima para evitar el desbordamiento */
    overflow: auto;
    /* Agrega una barra de desplazamiento vertical cuando se necesite */
    border-radius: 5px;
    padding: 15px;
}

.ui-autocomplete {
    position: absolute;
    z-index: 9999 !important;
    max-height: 500px;
    overflow: hidden auto;
}

.select-filters {
    height: 45px;
    border: 1px solid #00307c !important;
    color: #00307c !important;
    font-size: 13px !important;
}



/* Estilos flotantes (Labels e inputs) */

.input-control {
    height: 50px;
}

.input-container {
    position: relative;
    margin-top: 30px;
}

.input-container .form-control {
    padding: 6px 13px;
}

.input-container .label-float {
    z-index: 400;
    position: absolute;
    top: -11px;
    left: 10px;
    font-size: 13px;
    background: white;
    border-radius: 5px;
    padding: 1px 5px;
    color: #00307c;
    font-weight: 500;

}

.btn-action-form {
    background: #198754;
    color: white;
    border: none !important;
    padding: 8px 15px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
}

.btn-action-form:hover {
    background: #00ad5c;
}

/* Estilos e interfaces inspiradas en google */
hr {
    margin: 0 !important;
}

.article-card {
    border: 1px solid #e1e3e1;
    border-radius: 5px;
    cursor: pointer;
    background: white
}

.article-card header,
.article-card .back-style {
    padding: 18px 24px;
    margin: 0;
}

.mini-title {
    color: #444746;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1px;
    line-height: 16px;
    text-transform: none;
    -moz-hyphens: auto;
    hyphens: auto;
    word-break: break-word;
    word-wrap: break-word;
}

.article-card .back-style:hover {
    background: #c7c7c72d;
}

.img-style {
    width: 70px;
    height: auto;
    border-radius: 100%;
    background-color: #e1e3e150;

}

.title-article {
    font-size: 24px;
}

@media screen and (max-width:770px) {
    .back-style>div {
        margin-top: 10px;
    }

}

@media (max-width: 576px) {
    .col-sm-6 {
        flex: 0 0 auto;
        width: 50% !important;
    }
}

.bootstrap-select button {
    height: 40px;
}



.bg-danger-light {
    --tw-bg-opacity: 1;
    background-color: rgb(254 236 236 / var(--tw-bg-opacity));
}

.bg-light-dark {
    --tw-bg-opacity: 1;
    background-color: rgb(242 243 244 / var(--tw-bg-opacity));
}

.bg-primary-light {
    --tw-bg-opacity: 1;
    background-color: rgb(235 242 255 / var(--tw-bg-opacity));
}


.bg-success-light {
    --tw-bg-opacity: 1;
    background-color: rgb(237 247 237 / var(--tw-bg-opacity));
}

.bg-warning-light {
    --tw-bg-opacity: 1;
    background-color: rgb(254 246 236 / var(--tw-bg-opacity));
}

.text-danger {
    --tw-text-opacity: 1;
    color: rgb(250 64 64 / var(--tw-text-opacity));
    font-weight: 500;
}

.text-primary {
    --tw-text-opacity: 1;
    color: rgb(53 123 255 / var(--tw-text-opacity));
}

.text-success {
    --tw-text-opacity: 1;
    color: rgb(76 175 80 / var(--tw-text-opacity));
    font-weight: 500;
}

.text-warning {
    --tw-text-opacity: 1;
    color: rgb(248 161 62 / var(--tw-text-opacity));
}

:root {
    --color-company: #00307c;
}

.bg-company {
    background-color: var(--color-company) !important;
}

.text-company {
    color: var(--color-company) !important;
}

.obligatorio::after {
    content: "*";
    color: red;
    position: relative;
    left: 5px;
    top: 2px;
}


/* tipos de vistas en las listas tarjetas o tablas o filtros etc) */
.type-view {
    display: flex;
    align-items: center;
    border: 1px solid rgba(143, 142, 142, 0.335);
    border-radius: 22px;
    overflow: hidden;

}

.type-view .type {
    border-right: 1px solid rgba(143, 142, 142, 0.335);
    padding: 10px 17px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    user-select: none;
    cursor: pointer;
    transition: 0.2s ease;
    position: relative;
}

.type-view .type:last-child {
    border-right: none;
}

.type-view .type-active {
    background-color: #c2e7ff;
    color: #004577;
}


/** DATATABLES **/
/* Aplica estilos a cualquier select cuyo atributo name termine en '_length' */
select[name$="_length"] {
    margin-right: 10px;
    border-radius: 0.75rem !important;
}

select[name$="_length"]:focus {
    outline: none;
    border: 1px solid #05334b;
}


.dt-search label {
    display: none;
}

.dt-search .dt-input {
    border-radius: 25px !important;
    transition: border-color 0.3s;
    padding: 5px 20px !important;


}

.dt-search .dt-input::placeholder {
    color: #999;

}

.dt-search .dt-input:focus {
    border-color: #ccc;
    width: 80%;
    outline: none;
    border: 1px solid #05334b;
}

div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button:hover,
div.dt-container .dt-paging .dt-paging-button.current:hover {
    background-color: #05334b !important;
    color: #fff !important;
    border-radius: 0.75rem;
}

div.dt-container .dt-paging .dt-paging-button.disabled:hover {
    color: #fff !important;
}

.rounded-xl {
    border-radius: 1.5rem !important;
}

.rounded-t-xl {
    border-top-left-radius: 1.5rem !important;
    border-top-right-radius: 1.5rem !important;
}

.rounded-t-md {
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

a.close span {
    color: #fff;
    background-color: transparent;
    border: none;
    padding: 0;
    font-size: 24px;
    font-weight: 600;
}

.gap-3 {
    gap: 1rem;
}

.custom-header {
    background-color: #2c3e50;
    color: #fff;
}

.btn-custom {
    color: #fff !important;
    background-color: #2c3e50 !important;
    border-color: #2c3e50 !important;
    display: flex !important;
    align-items: center;
}