/* Table */


.table-bordered {
    border: 0px;
}

.table-bordered > thead > tr > th{
    border: 0px;
    border-bottom: solid 2px #252525;
    
}

table.table-bordered.dataTable tbody td {
    border-bottom-width: 1px;
}

.table-bordered > tbody > tr > td{
    border: 0px;
    border-bottom: 1px solid #999;
}

/* Contenedor responsivo */
.table-responsive {
    overflow-x: auto; /* Habilita scroll horizontal */
    max-width: 100%; /* Limita el ancho máximo del contenedor */
    margin-bottom: 1rem; /* Espacio debajo de la tabla */
}

/* Estilo para la tabla */
#data {
    width: auto !important; /* Evita que DataTables fuerce un ancho fijo */
    min-width: 100%; /* Asegura que la tabla tenga un ancho mínimo */
    border-collapse: collapse; /* Elimina bordes dobles entre celdas */
}

/* Body */

.breadcrumb {
    margin-bottom: 0px;
    list-style: none;
    background-color: #ffffff;
}

.breadcrumb a {
    color: #4a4a4a;;
    font-weight: 400;
}

/* Box */

.box-desc {
    font-size: 15px;
}

.box .box-header .box-desc i {
    color: white;
    font-size: 1.5em;
    line-height: 40px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    height: 40px;
    width: 40px;
    text-align: center;
}

.box-header.with-border {
    border-bottom: 1px solid #ccc;
}

.box-footer {
    border-top: 1px solid #cccccc;
}

.user-panel > .image > img {
    height: 31px;
}

.box{
    border-top-width: 5px;
}

.box .border-right {
    border-right: 1px solid #ccc;
}

/* Menu */

#menu {
    min-height: 480px;
    margin-top: 20px;
}

.sbox {
    -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.24);
    -moz-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.24);
    -ms-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.24);
    -o-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.24);
    box-shadow: 0 1px 0px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.24);
}

#menu .icon {
    padding-top: 12px;
    width: 150px;
    float: left;
    height: 180px;
    background: #ffffff26;
    margin-right: 10px;
    margin-bottom: 10px;
    position: relative;
    border-radius: 5px;
    transition: width 2s;
    text-align: center;
}

#menu .icon .iconname {
    font-weight: bold;
    width: 100%;
    position: absolute;
    text-align: center;
    font-size: 14px;
    line-height: 10px;
}

#menu .icon .iconimage {
    width: 100%;
    text-align: center;
}

#menu .icon:hover {
    background: #cdcdcd;
    cursor: pointer;
}

#menu img {
    height: 70px;
    margin-top: 15px;
    border-bottom: 1px solid #9E9E9E;
    padding-bottom: 10px;
}

.pd {
    padding: 5px;
}

#menu .icon .icondesc {
    font-weight: normal;
    font-size: 10px;
    line-height: 10px;
}

#menu .icon .iconname .tituloicon {
    font-size: 14px;
    font-weight: bold;
}

#menu a {
    color: #222222;
}

.breadcrumb {
    margin-bottom: 0px;
    list-style: none;
    background-color: #ffffff;
}

.breadcrumb a {
    color: #4a4a4a;;
    font-weight: 400;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    -webkit-border-radius: 0 6px 6px 6px;
    -moz-border-radius: 0 6px 6px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.dropdown-submenu>a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover>a:after {
    border-left-color: #fff;
}

.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu.pull-left>.dropdown-menu {
    left: -100%;
    margin-left: 10px;
    -webkit-border-radius: 6px 0 6px 6px;
    -moz-border-radius: 6px 0 6px 6px;
    border-radius: 6px 0 6px 6px;
}

/* Panel */

.title-second {
    font-size: 22px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #3c8dbc
}

.title-panel {
    font-size: 35px;
    font-family: 'Fjalla One', sans-serif;
}

.text-modules {
    text-align: justify;
}

.icon-module {
    font-size: 7em;
    margin: 20px auto;
}

.img-module {
    margin-top: 120px;
}

.border-footer {
    padding-top: 18px;
    border-top: 2px solid #00a65a;
}

.box-title-sales {
    margin-top: 0px;
    margin-bottom: 0px;
}

#container {
    margin: 0 auto;
    height: 25%;
}

.info-box-number {
    font-weight: normal;
}

.description-block > .description-text {
    text-transform: none;
}

.form-control{
    border-radius: 3px;
}

.username > a{
    color: #333;
}

.user-block i {
    background-color: #1EC1BC;
    width: 40px;
    height: 40px;
    float: left;
    color:white;
    font-size: 22px;
    text-align: center;
    line-height: 40px;
    -moz-border-radius: 20px;
    border-radius: 20px;
}

.user-block .username {
    font-weight: 400;
}

.table-wrapper {
    margin: 1rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    background: white;
    border-radius: 5px;
}

.table th {
    background-color: #f8f9fa;
    top: 0;
    
}

.table-responsive {
    width: 100%;
    margin-bottom: 1rem;
}


.form-horizontal {
    max-width: 100%;
    margin: 0 auto;
}

.centered-table {
    width: 100%; /* Asegura que la tabla ocupe todo el ancho disponible */
    border-collapse: collapse; /* Elimina los bordes dobles entre celdas */
    font-family: Arial, sans-serif; /* Fuente legible */
    margin-bottom: 20px; /* Espacio debajo de la tabla */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra ligera para destacar la tabla */
    overflow-x: auto; /* Scroll horizontal si la tabla es demasiado ancha */
}

.centered-table th,
.centered-table td {
    text-align: center; /* Centra el texto en todas las celdas */
    padding: 12px 15px; /* Espaciado interno para mejorar la legibilidad */
    border: 1px solid #ddd; /* Borde claro para separar celdas */
    white-space: nowrap; /* Evita que el texto se rompa en varias líneas */
    font-size: 0.9em; /* Tamaño de fuente adecuado */
}

.centered-table th {
    background-color: #f8f9fa; /* Color de fondo claro para los encabezados */
    color: #333; /* Texto oscuro para contraste */
    font-weight: bold; /* Negrita para destacar los encabezados */
    position: sticky; /* Fija los encabezados al hacer scroll vertical */
    top: 0; /* Posición fija en la parte superior */
    z-index: 1; /* Asegura que los encabezados estén por encima del contenido */
}

.centered-table tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* Fondo alternativo para filas pares */
}

.centered-table tbody tr:hover {
    background-color: #f1f1f1; /* Cambio de color al pasar el mouse sobre una fila */
}

.centered-table td:first-child,
.centered-table th:first-child {
    border-left: none; /* Elimina el borde izquierdo de la primera columna */
}

.centered-table td:last-child,
.centered-table th:last-child {
    border-right: none; /* Elimina el borde derecho de la última columna */
}

.centered-table tfoot td {
    font-weight: bold; /* Negrita para resaltar totales o resúmenes */
    background-color: #e9ecef; /* Fondo diferente para el pie de la tabla */
    text-align: right; /* Alineación derecha para totales */
}

@media (max-width: 768px) {
    .centered-table th,
    .centered-table td {
        font-size: 12px; /* Reduce el tamaño de fuente en pantallas pequeñas */
        padding: 8px 10px; /* Reduce el espaciado interno en pantallas pequeñas */
    }
}


.table-container-fluid {
    min-height: 100vh;
    overflow-y: auto;
}

#amortizationTable {
    max-height: 110vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .table-container-fluid {
        padding-bottom: 60px;
    }
    
    #amortizationTable {
        max-height: 50vh;
    }
}

.text-align-left {
    text-align: left !important; /* Alineación de texto a la izquierda */
}


.row-item {
    display: flex;
    align-items: center; /* Alinea verticalmente el título y el valor */
    gap: 5px; /* Espacio entre el título y el valor */
    white-space: nowrap; /* Evita que el texto se rompa en varias líneas */
}

.dtr-title {
    font-weight: bold; /* Resalta el título */
}

.dtr-data {
    color: #333; /* Color del valor */
}

.btn-info {
    background-color: #1EC1BC; /* Color de fondo */
    border-color: #1EC1BC; /* Color del borde */
    color: white; /* Color del texto */
}

.btn-info:hover {
    background-color: #17A2B8; /* Color de fondo al pasar el mouse*/
    border-color: #17A2B8; /* Color del borde al pasar el mouse */
}

.treeview.active {
    background-color: #f0f0f0; /* Cambia el color de fondo cuando está activo */
}

.treeview.active .fa-angle-left {
    transform: rotate(-90deg); /* Rota la flecha hacia abajo */
}

.treeview-menu li.active {
    font-weight: bold; /* Cambia el estilo del texto cuando está activo */
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-details {
    display: flex;
    flex-direction: column;
}
.admin-details .small {
    font-size: 0.85em;
}