/* Estilos generales */
body {
    font-family: 'HK Grotesk', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e0e1db;
}

/* Contenedores principales */
#main-container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#secondary-container {
    background-color: transparent;
    padding: .5rem;
}

.btn-container {
    display: flex;
    justify-content: space-evenly;
}

/* Posicionamiento */
.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

/* Dimensiones */
.w-100 {
    width: 100%;
}

.w-75 {
    width: 75%;
}

.h-100 {
    height: 100%;
}

/* Colores y bordes */
.bg-black {
    background-color: black;
}

.rounded-3 {
    border-radius: .75rem; /* rounded-3 */
}

/* Espaciado */
.p-1 {
    padding: .25rem;
}

.mb-2 {
    margin-bottom: .5rem; /* mb-2 */
}

/* Estilos de la tabla */
.container {
    margin: 20px;
}
.filter {
    text-align: left;
}


.table-extern-header {
    position: relative;
    border-top: 1px solid #d1d1d1;
    background-color: #ffffff;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-item {
    font-size: 1rem;
    font-weight: normal;
    color: #6c757d;
}

.title {
    font-size: 1rem;
    font-weight: normal;
    color: #6c757d;
    margin: 0;
}


.table-main-container {
    background-color: #ffffff;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.table-header {
    display: flex;
    justify-content: space-around;
}

.datatable {
    margin: 5px;
    padding: 5px;
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.datatable td, .datatable th {
    padding: 8px;
}

.datatable th {
    background-color: #f2f2f2;
    text-align: center;
}

.datatable tr:nth-child(even) {
    background-color: #f9f9f9;
}


.datatable td:nth-child(1),
.datatable td:nth-child(2),
.datatable td:nth-child(3) {
    width: calc((100% - 10%) / 3);
    text-align: center;
}

.datatable td:nth-child(4) {
    width: 10%;
    align-items: center;
    text-align: center;
}

.table-header .header-item {
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    padding: 10px;
    margin-bottom:0;
}

.datatable-top{
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 1%;
}

.datatable-bottom{
    display: flex;
    width: 100%;
    justify-content: flex-end;
}

.table-row {
    border-top: 1px solid #d1d1d1;
    display: flex;
    justify-content: space-around;
}

.cell {
    text-align: center;
    padding: 10px;
    margin-bottom: 0;
}

a.page-link{
    color: #fd7e14;
}

.total-records, .show-all {
    margin: 0 10px;
    font-size: 1rem;
    color: #6c757d;
}

.show-all {
    font-weight: bold;
}

.section {
    font-family: 'HK Grotesk', sans-serif;
}
.modal-backdrop {
    display: none;
}

main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 30%);
    pointer-events: none;
}

h1 {
    color: black;
    font-size: 40px;
    font-family: 'HK Grotesk', sans-serif;
    text-align: center;
    margin-top: 1%;
}

#titleGarantias {
    display: flex;
    justify-content: center;
}

html, body {
    padding: 0;
    width: 100%;
    margin: 0;
    background: white;
    background-size: 250% 250%;
    position: relative;
    font-family: 'HK Grotesk', sans-serif;
}


.btn-primary{
    background: rgba(255, 184, 28, 0.7);
    font-size: 14px;
    color: #004f59; !important;
    font-weight: bold;
}

.btn:hover {
    color: white; !important;
    background-color: rgba(0, 79, 89, 0.7); !important;
    border-color: transparent; !important;
}

.btn-success {
    background: black;
    border: black;
}

.page-link {
    background-color: black;
    border-color: black;
    color: white;
    &.active {
        background-color: #fd7e14;
    }
}

#actModelo {
    background-color: white;
    color: #004f59;
    width: 100%;
    border-collapse: collapse;
    font-family: 'HK Grotesk', sans-serif;
    font-size: 14px;
}
#actMarcas {
    background-color: white;
    color: #004f59;
    width: 100%;
    border-collapse: collapse;
    font-family: 'HK Grotesk', sans-serif;
    font-size: 14px;
}

#actBaterias {
    background-color: white;
    color: #004f59;
    width: 100%;
    border-collapse: collapse;
    font-family: 'HK Grotesk', sans-serif;
    font-size: 14px;
}

.table-wrapper {
    padding: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#actModelo th, #actModelo td {
    text-align: center;
    padding: 6.93px;
}

#actMarcas th, #actMarcas td {
    text-align: center;
    padding: 6.93px;
    align-content: center;
    color: #004f59;
}

#actBaterias th, #actBaterias td {
    text-align: center;
    padding: 6.93px;
    align-content: center;
    color: #004f59;
}

#actModelo thead th {
    background-color: #004f59;
    font-weight: bold;
    color: white;
    padding: 9.495px;
}

#actMarcas thead th {
    background-color: #004f59;
    font-weight: bold;
    color: white;
    padding: 9.495px;
}
#actBaterias thead th {
    background-color: #004f59;
    font-weight: bold;
    color: white;
    padding: 9.495px;
}
#actModelo tbody tr:nth-child(even) {
    background-color: rgba(0, 79, 89, 0.6);
}
#actMarcas tbody tr:nth-child(even) {
    background-color: rgba(0, 79, 89, 0.6);
}

#actBaterias tbody tr:nth-child(even) {
    background-color: rgba(0, 79, 89, 0.6);
}
.table-wrapper {
    padding: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.baterias-table {
    width: 100%;
    border-collapse: collapse;
}

.baterias-table th,
.baterias-table td {
    padding: 8px;
    text-align: left;
}

.baterias-table thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 1;
    box-shadow: 0 2px 2px -2px;
}
/* Estilos para ocultar/mostrar el dropdown */
.dropdown-menu {
    display: none;
    position: absolute;  /* Posicionar el menú de forma absoluta */
    top: 100%;           /* Aparece justo debajo del botón */
    left: 0;             /* Alineado con el botón */
    background-color: white;
    border: 1px solid #ccc;
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 1000;
    width: 200px;
}

.dropdown-menu.show {
    display: block;
}

/* Estilos del dropdown item */
.dropdown-item {
    padding: 8px 16px;
    text-decoration: none;
    color: black;
}

.dropdown-item:hover {
    background-color: #f1f1f1;
}

.import-div {
    display: flex;
    flex-direction: row;
    align-items: center;
}
#import-button{
    margin-left: 3%;
    margin-top: 4%;
    padding-right: 9%;
}

.table-responsive {
    margin-bottom: 10px;
    width: 98%;
    max-height: 60vh;
    border-radius: 5px;
}

/* Estilos personalizados para el scroll en la tabla responsiva */
.table-responsive::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background-color: #e0e1db
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: #ffb81c;
    border-radius: 10px;
    border: 2px solid #e0e1db;
}

.table-responsive::-webkit-scrollbar-track {
    background-color: #d6d7d1;
    border-radius: 10px;
}

.datatable-input{
    display: block;
    width: 100%;
    padding: 0.5rem 0.5rem;
    font-size: 12px;
    font-weight: 400;
    color: #004f59;
    background-color: rgba(0, 79, 89, 0.05);
    background-clip: padding-box;
    border: 0.5px solid #004f59;
    appearance: none;
    border-radius: 0.375rem;
    transition: 0.2s ease;
}

.datatable-selector {
    width: 25%;
    font-size: 14px;
    font-weight: 400;
    color: #004f59;
    background-color: rgba(0, 79, 89, 0.05);
    border: 0.5px solid #004f59;
    border-radius: 0.375rem;
}
#text-select{
    font-size: 12px;
}
.datatable-dropdown{
    align-content: center;
}

.flex.justify-between.flex-1.sm\:hidden {
    display: none !important;
}

.pagination-item{
    background-color: #004f59;!important;
}

