/* styles.css */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #3f37c9;
    --success: #4cc9f0;
    --warning: #f72585;
    --dark: #212529;
    --light: #f8f9fa;
    --gray: #6c757d;
    --border: #dee2e6;
    --card-bg: rgba(255, 255, 255, 0.95);
    --sidebar-bg: #2c3e50;
    --red-bg: #ff0000;
    --amarillo:#fbff00;
    --naranja:#ff9500;
    
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  
}

body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 50px;  font-size: 0.8em;
}
a{
    text-decoration: none;
}
.textoNegro{
color: var(--dark) !important;;
}
.textoblanco{
color: var(--light) !important;;
}
.centrado{
    text-align: center;
}

.centrado{
text-align: center;
}
.floatE{
    float: right;
}
.inactiva{
   color: var(--warning);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-content .ldc {
    position: relative;
 /*    top:50px; */
 left: 50px;
    bottom: 10px;;
    flex-basis: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.logo i {
    font-size: 2.2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.logo h1 {
  /*   font-size: 1.8rem;
    font-weight: 700; */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-size: clamp(1.2rem, 4vw, 2.5rem);

}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    color: #000;
}

.user-info i {
    font-size: 1.2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
}

.stat-card .desc {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 5px;
}

.tabs {
    display: flex;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tab {
    flex: 1;
    text-align: center;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.tab.active {
    border-bottom: 3px solid var(--primary);
    color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
}

.tab:hover:not(.active) {
    background-color: rgba(67, 97, 238, 0.03);
}

.tab i {
    font-size: 1.1rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}



.card:hover {
    transform: translateY(-3px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 i {
    color: var(--primary);
}

.card-header .actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}
.form-controlT {
    width: 100%;
    padding: 5px 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    margin: 1px;
}
.btn:disabled{
     background: linear-gradient(135deg, var(--gray), var(--sidebar-bg));
    color: white;
}
.btn:disabled:hover{
     background: linear-gradient(135deg, var(--gray), var(--sidebar-bg));
    color: white;
    cursor: default;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    box-shadow: 0 6px 12px rgba(67, 97, 238, 0.25);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--naranja), #ff5200);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg,  var(--naranja), #ff4200);
    transform: translateY(-2px);
}
.btn-dark {
    background: linear-gradient(135deg, var(--dark), var(--gray));
    color: var(--light);
}
.btn-dark:hover {
    background: linear-gradient(135deg, var(--dark), var(--gray));
    transform: translateY(-2px);
}
.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--success));
    color: var(--light);
}
.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary), var(--success));
    transform: translateY(-2px);
}

.btn-sm {
    padding: 5px 9px;
    font-size: 0.8rem;
}
.btn-smt {
    padding: 3px 3px;
    font-size: 0.7rem;
}
.btn-ancho {
  display: block;    /* Para que se comporte como bloque */
  width: 100%;       /* Ocupa todo el ancho padre */
  box-sizing: border-box; /* Incluye padding y border en el ancho */
}

.table-container {
  /*   overflow-x: auto; */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: white;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

th {
    background-color: #f8fafd;
    font-weight: 700;
    color: var(--gray);
    position: sticky;
    top: 0;
}

tr:hover {
    background-color: #f8fafd;
}

.status {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    gap: 6px;
}

.status.active {
    background-color: rgba(76, 201, 240, 0.15);
    color: #4cc9f0;
}

.status.inactive {
    background-color: var(--warning);/*rgba(108, 117, 125, 0.15);*/
    color: var(--light);
}

.status.reviewed {
    background-color: rgba(67, 97, 238, 0.15);
    color: var(--primary);
}

.status.pending {
    background-color: rgba(247, 37, 133, 0.15);
    color: var(--warning);
}

.actions {
    display: flex;
    gap: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
/* Ocultamos el texto inicialmente */
.estado::after {
    margin-left: 50px;
  content: "Desactivado";
  color: #888;
  font-weight: bold;
}

/* Cuando el checkbox está chequeado, cambiamos el texto */
input.revisada:checked + .slider + .estado::after {
  content: "Activado";
  color: green;
}




.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(24px);
}
.cursor{
    cursor: pointer;
}
/*--------------------------SLIDER Pequeño----------------------------------*/
.switchTx{
    position: relative;
    display: inline-block;
    width: 35px;
    height: 18px;
}
.switchTx label{
    cursor: pointer;
}
.switchTx input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* El slider que se mueve */
.switchTx .slider {
position: absolute;
 cursor: pointer;
 top: 0;
 left: 0;
 right: 0;
 bottom: 0;
 background-color: #ccc;
 transition: .4s;
}

.switchTx .slider:before {
    position: absolute;
    content: "";
    height: 14px; 
    width: 14px; 
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
}

.switchTx input:checked + .slider {
    background-color: #2196F3;
}

.switchTx input:checked + .slider:before {
    transform: translateX(17px);  /* desplaza acorde al nuevo ancho */
}

.switchTx .slider.round {
    border-radius: 18px;
}

.switchTx .slider.round:before {
    border-radius: 50%;
}


/*--------------------------FIN DE SLIDER Pequeño----------------------------------*/











footer {
    text-align: center;
    padding: 30px;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.total-row {
    font-weight: 700;
    background-color: #f8fafd;
}

.total-row td {
    padding-top: 20px;
    padding-bottom: 20px;
    color: var(--primary);
    font-size: 1.1rem;
}
/*-----------------------------------------pagination----------------------*/
.pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 5px;
    margin-bottom: 5px;
    justify-content: center;   /* Centra los elementos horizontalmente */
align-items: center;       /* Centra los elementos verticalmente */
}
.page-btn,.dots {
    text-decoration: none;
    padding: 4px 8px;
    background: #eee;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 4px;
}
.page-btn:hover{
    background: #ccc;
    border: 1px solid #666;
    color: #666;
}
.page-btn.active {
    background: #4f8cff;
    color: white;
    border-color: #2352a2;
}
.dots{
    cursor:default;
    background: #fdfdfd;
}
/*
.dots1111 {
    padding: 6px 8px;
    user-select: none;
    color: #777;
    font-weight: bold;
}
*/
/*---------------------------------------Fin de pagination----------------------*/


.filtros-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.filtro-group {
    display: flex;
    flex-direction: column;
}

.filtro-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--primary);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark);
}





.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}



.archivo-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.archivo-item:hover {
    transform: translateY(-5px);
}

.archivo-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}

.archivo-preview img {
    max-width: 100%;
    max-height: 100%;
}

.archivo-preview .pdf-icon {
    font-size: 80px;
    color: #e74c3c;
}

.archivo-info {
    padding: 15px;
    background: #f8fafd;
}

.resumen-iva {
    background: #f0f7ff;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid var(--primary);
}

.resumen-iva h4 {
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eaeaea;
}

.resumen-item:last-child {
    border-bottom: none;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.pagination-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

/*-------------------------------------------------------*/
.tabs {
  /*display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
  opacity: 0;
  flex-direction: column;
  */
}
/*
.tabs.show {
  max-height: 500px; /* Ajusta según el espacio necesario 
  opacity: 1;
}
*/
.hamburger {
  display: none;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
}


/*--------------------------------------------------------------------*/

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .card-header .actions {
        width: 100%;
        justify-content: flex-end;
    }
   
    
    .pagination-controls {
        flex-direction: column;
        gap: 15px;
    }
}
/* Estilos para la sección de IVA */
.iva-container {
    margin-bottom: 25px;
}

.iva-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.iva-group {
    background: #f8fafd;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.iva-group:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    background: #f0f7ff;
}

.iva-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.iva-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    background: white;
    transition: all 0.3s ease;
}

.iva-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .iva-row {
        grid-template-columns: 1fr;
    }
    
    .iva-group {
        padding: 15px;
    }
    
    .iva-group input {
        font-size: 1rem;
        padding: 12px;
    }
}
/* Estilos para el desglose de IVA */
.iva-desglose {
    background-color: #f8fafd;
}

.iva-container {
    padding: 12px 20px;
    background: #f0f7ff;
    border-radius: 8px;
    margin: 5px 10px;
}

.iva-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.iva-item {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

/* Mejoras para el modal */


.archivo-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    background: white;
}

.archivo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.archivo-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    overflow: hidden;
}

.archivo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.archivo-preview .pdf-icon {
    font-size: 80px;
    color: #e74c3c;
}

.archivo-info {
    padding: 15px;
    background: #f8fafd;
}

/* Mejoras para la tabla */
.iva-row td {
    padding: 8px 20px;
}

.total-row td {
    font-size: 1.1rem;
    padding: 15px 20px;
}

/* Botones de acciones */
.actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
    /* 
    .actions .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    } */
/* Estilo compacto para desglose IVA */
.iva-desglose td {
    padding: 3px 20px !important;
    font-size: 0.85em;
    background-color: #f8fafd;
}
/* Estilos para archivos actuales */
.archivos-actuales {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; 
    /*grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 10px;*/
}

.archivo-actual {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafd;
}

.archivo-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.archivo-info i {
    font-size: 1.5rem;
    color: #e74c3c;
}

.archivo-acciones {
    display: flex;
    gap: 5px;
}

/* Botones de acción en el modal */
.archivo-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: center;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, #a5281b);
    transform: translateY(-2px);
}

/* Estilos para grid de archivos */
.archivos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.archivo-item {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.archivo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.archivo-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    overflow: hidden;
}

.archivo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.archivo-preview .pdf-icon {
    font-size: 80px;
    color: #e74c3c;
}

.archivo-preview .fa-file {
    font-size: 80px;
    color: #3498db;
}

.archivo-info {
    padding: 15px;
    background: white;
    text-align: center;
}


.archivo-info h4 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}




.truncado {
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
}


.acortado {
  position: relative; /* el contenedor referencia para el tooltip */
}
.tooltip {
  position: absolute;
  left: 50%;                    /* centrar horizontalmente */
  top: 100%;                    /* mostrar debajo */
  transform: translateX(-50%);  /* centrar respecto al padre */
  visibility: hidden;
  opacity: 0;
  max-width: 500px;
  min-width: 100px;             /* ancho mínimo */
  width: max-content;           /* adapta el ancho al contenido */
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 4px;
  z-index: 1000;
  transition: visibility 0.2s, opacity 0.2s;
  box-sizing: border-box;
  white-space: normal;
  word-break: break-word;       /* fuerza el salto en palabras largas */
}

.acortado:hover .tooltip {
  visibility: visible;
  opacity: 1;
}



/* ------------------------------------Buscador  en select  empresas--------------------------------- */
/* CSS - Estilos para el buscador */
.select-container {
    position: relative;
}

.search-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 300px;
    overflow: hidden;
}
.optgroup-label {
  font-weight: bold;   /* 🔹 Aquí forzamos negrita */
  padding: 6px 10px;
  /* background: #f9f9f9; */
  color: #333;
}


.search-container {
    padding: 8px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

.search-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
}

.search-box {
    width: 100%;
    padding: 8px 15px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.options-container {
    max-height: 250px;
    overflow-y: auto;
    background-color: #DDD;
    border-left: solid 3px var(--primary-dark) ;
}

.option-item {
    padding: 8px 15px;
    cursor: pointer;
    transition: background 0.2s;
}
.options-container .option-item:nth-child(odd) {
  background-color: #f0f0f0; /* color más claro para elementos impares */
}
.options-container .option-item:nth-child(even) {
  background-color: #DDD; /* fondo normal o diferente para elementos pares */
}
.options-container .option-item:nth-child(odd):hover, .options-container .option-item:nth-child(even):hover {
 /* background-color: #DDD; /* fondo normal o diferente para elementos pares */
    filter: brightness(85%);
  transition: filter 0.3s ease;
}
.option-item.selected {
  background:var(--primary-dark) !important;
  color: #fff;        
  font-weight: bold;
}

.proveedor-select.fake-select-span {
  white-space: nowrap;       /* Evita salto de línea */
  overflow: hidden;          /* Oculta lo que no cabe */
  text-overflow: ellipsis;   /* Muestra '...' al final si se recorta */
  display: inline-block;     /* Para que funcionen las propiedades anteriores */
  max-width: 100%;           /* Limita el ancho al contenedor padre */
}

/* .option-item.selected {
    background: #e6f7ff;
    font-weight: bold;
} */
/* ------------------------------------Fin de Buscador  en select  empresas--------------------------------- */


/*-------------------------------------MODAL----------------------------------------------------*/ 
.no-scroll {
/*
    position: fixed;
    width: 100%;
    overflow: hidden; 
    */
    overflow: hidden;
  height: 100vh;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%; 
    background-color: rgba(0,0,0,0.8);
    overflow: auto;
}
.modal-content {
    background-color: #3D5E99;
    margin: 1% auto;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    width: 98%;
    max-width: 98%;
  /*   max-height: 90vh; */
    max-height: 100%;
    overflow-y: hidden;
}
.modal-content h2{
color:#fff;
}
/*-------------------------------------FIN de MODAL----------------------------------------------------*/ 

  iframe {
      width: 100%;
      height: 100vh;
      border: none;
    }

    .avatar {
            width: 60px;
            height: 60px;
            background: #3498db;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 24px;
            font-weight: bold;
            color: white;
        }




        /*-------------------------------------importar datos-----------------------------------------*/
        .preview-table th { 
    position: relative; 
    vertical-align: top;
}
.mapping-select { 
    width: 90%; 
    margin-top: 5px;
    padding: 3px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 60px;
    justify-content: space-between;
}
.column-name {
    font-weight: bold;
    margin-bottom: 5px;
    word-break: break-word;
    text-align: left;
}
.mapping-select {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
}

.column-name {
    font-weight: bold;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.column-name:hover {
    background-color: #f0f0f0;
}

.sort-arrow {
    float: inline-end;
    margin-left: 5px;
    font-size: 12px;
}

.enlinea {
  display: flex;
  align-items: center; /* para que ambos se alineen verticalmente centrados */
  gap: 8px; /* opcional, para separar un poco los elementos */
}



table.reducida {
  border-collapse: collapse;
  width: auto;          /* Ajusta automáticamente al contenido */
  font-size: 12px;      /* Tamaño de texto reducido */
  font-family: Arial, sans-serif;
  margin: 0;
}




table.reducida th,
table.reducida td {
  padding: 2px 4px;     /* Poca separación interna */
  border: 1px solid #ccc;  /* borde fino y claro */
  white-space: nowrap;  /* evita que el contenido se rompa en varias líneas */
}

table.reducida th {
  background-color: #f0f0f0;
  font-weight: bold;
}

table.reducida tr {
  height: 20px;         /* fila compacta */
}
.mustraColores{
    height: 50px;
    display: inline-block;
    background: lightblue; 
    padding: 10px; 
    box-sizing: border-box;
    margin-bottom: 10px;
}

table.reducida tr.colorActualizado, .cActulaizar{
  background-color: #ffaff6; /* Color gris claro */
}

table.reducida tr.colorInsertado, .cInsertar{
  background-color: #baffac; /* Color gris claro */
}
table.reducida tr.colorNoInsertado, .cNoInsertar{
  background-color: #ffffff; /* Color gris claro */
}
.demoColores{
    display: inline-block;
    border: 1px solid #000;
}
    /*----------------------------------importar datos--------------------------------------------*/

/*-----------------------------------------alert-----------------------------*/
.alert {
    position: relative;
  padding: 1em 1.5em;
  border-radius: 5px;
  margin: 1em 0;
  font-size: 1.05em;
  font-weight: 500;
 /*   display: flex;
 align-items: center;
  gap: 8px; */
  box-shadow: 0 2px 8px rgba(114, 110, 110, 0.08);
  border-left: 5px solid;
  
  transition: opacity 0.3s;
}

/* Tipos de alert */
.alert-success {
  background: #e7f9ee;
  color: #267150;
border-color: #34c98f;

border-top: 1px solid  #71edbe;  
border-right: 1px solid #71edbe;
border-bottom: 1px solid #71edbe;
}
.alert-error {
  background: #fde6e6;
  color: #a12525;
  border-color: #e85d5d;

border-top: 1px solid  #e47575;  
border-right: 1px solid #e47575;
border-bottom: 1px solid #e47575;
}
.alert-warning {
  background: #fff7e0;
  color: #856404;
  border-color: #ffcf00;

border-top: 1px solid  #f4d85a;  
border-right: 1px solid #f4d85a;
border-bottom: 1px solid #f4d85a;
}
.alert-info {
  background: #e6f1fd;
  color: #2166a1;
  border-color: #4f8cff;

border-top: 1px solid  #85acf4;  
border-right: 1px solid #85acf4;
border-bottom: 1px solid #85acf4;
}

.alert .close-btn {
 position: absolute;
  top: 8px;    /* Ajusta el espacio desde arriba */
  right: 8px;  /* Ajusta el espacio desde la derecha */
  background: transparent;
  border: none;
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  line-height: 1;
  padding: 0;
}

.alert h4 {
  margin-bottom: 0.5em;
}

.alert > br {
  display: block;
  content: '';
  margin: 0.5em 0;
}

.alert > div {
  display: block;
  margin: 0.5em 0;
}


/*----------------------------------------fin de alert-----------------------------*/








        /* Opcional: mejora visual del collapse */
.collapse {
  margin: 1rem 0;
  border: 1px solid #bbb;
  border-radius: 4px;
  padding: 0.5rem;
  background: #f8f8f8;
}

.collapse summary {
  cursor: pointer;
  font-weight: bold;
  outline: none;
}

.collapse[open] {
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}



/* Estilos para ocultar el select real y dar forma al componente personalizado */
#table_datosTable thead {
  position: relative; /* o absolute, sticky, según necesidad */
  z-index: 9999; /* un valor alto para estar encima */
}

.vistaPropuestos {
margin: 1.5px;
  display: inline-block;
  padding: 4px 8px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  position: relative; /* necesario para posicionar el tooltip */
  user-select: none;
  max-width: 30px;
}

.tooltiptext {
  visibility: hidden;
  width: max-content;
  max-width: 350px;
  background-color: black;
  color: #fff;
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 99%; /* posición arriba del botón */
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0px 0px 10px rgba(0,0,0,0.3);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.vistaPropuestos:hover .tooltiptext, .tooltiptext:hover  {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}
.sugerenciasNfacturas {
  font-weight: bold;             /* Fuente gruesa */
  text-decoration: underline;    /* Subrayado */
  color: lightgreen;             /* Color verde claro */
}
 /*------------------button subir------------------------------*/
 #toTop{
	position: fixed;
	bottom: 100px;
	right: 0px;
	cursor: pointer;
	display: none;
	opacity:0.7;
	color: black;
	z-index: 999999;
}
#toTop:hover{
	color: white;
}
#toBottom{
	position: fixed;
	bottom: 68px;
	right: 0px;
	cursor: pointer;
	display: none;
	opacity:0.7;
	color: black;
	z-index: 999999;
}
#toBottom:hover{
	color: white;
}
 /*------------------button subir------------------------------*/




/* Estilos generales para tabla */
table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
}

thead {
  background-color: #007BFF;
  color: white;
}

th, td {
  padding: 8px;
  border: 1px solid #ddd;
  text-align: left;
}

/* Media query para móviles: menor o igual a 600px */
@media only screen and (max-width: 600px) {
    .tabs{
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, opacity 0.4s ease-out;
        
    }
    .tabs.show {
        max-height: 500px; /* o lo que necesite para mostrar contenido */
        opacity: 1;
        /*display: flex; /* se mantiene flex para que la transición funcione */
    }
    .hamburger {
        display: block;
    }
   

  /* Convertir tabla en bloques para mobile */
  table, thead, tbody, th, td, tr {
   /* display: block;*/
  }

  /* Ocultar encabezado tradicional */
  thead tr {
    display: none;
  }

  /* Ajustes para tbody */
  tbody {
    max-height: 100vh;        /* Usar toda la altura del viewport */
    min-height: 100vh;
    overflow-y: auto;         /* Scroll vertical si se excede */
  }

  /* Estilo filas como bloques con borde y espacio */
  tbody tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    padding: 0.5rem;
  }

  /* Estilo a cada td para simular filas de etiquetas y datos */
  tbody td {
    position: relative;
    padding-left: 30%;
    text-align: left;
    border: none;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
  }

  /* Mostrar el nombre de la columna antes de cada dato */
  tbody td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 0;
    padding: 0.1rem;
    font-weight: bold;
    white-space: nowrap;
  }


.modal-content {
    background-color: #3D5E99;
    margin: 1% auto;
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    width: 98%;
    max-width: 98%;
  /*   max-height: 90vh; */
    max-height: 100%;
    overflow-y: hidden;
}
.modal-content h2{
color:#fff;
}
}

.fade-out {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}


/*------------------------------tab subir archivo----------------------------*/
/* Contenedor de tabs */
.tabs-container {
  width: 100%;
  margin-bottom: 5px;
}

/* Oculta todos los contenido inicialmente */
.tab-content {
  display: none;
  margin-bottom: 5px;
}

/* Estilo de los botones o etiquetas de las pestañas */
.tab-label {
  display: inline-block;
  padding: 10px 20px;
  cursor: pointer;
  background: #eee;
  margin-right: 5px;
  border-radius: 5px 5px 0 0;
}

.tab-label:hover {
  background: #ddd;
}

/* Cuando el input está seleccionado, muestra el contenido relacionado */
input[type="radio"]:checked + label {
  background: white;
  border-bottom: 2px solid white;
  font-weight: bold;
  border: 1px solid #DDD;
  border-bottom: 0px;
}

input#tab1:checked ~ #subirArchivo,
input#tab2:checked ~ #seleccionarArchivo,
input#tab3:checked ~ #subirArchivo,
input#tab4:checked ~ #seleccionarArchivo {
  display: block;
  padding: 10px;
  border: 1px solid #DDD;
}



.option-item.selected-symbol {
    color: #0077c8;
}
.option-item.selected-global {
    background: #d0e8ff;
    font-weight: bold;
    color: #147; /* Personaliza el color */
}


/*------------------------------fin tab subir archivo----------------------------*/


/* Margen (margin) */
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.ml-4 { margin-left: 1.5rem !important; }
.ml-5 { margin-left: 3rem !important; }

.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mr-4 { margin-right: 1.5rem !important; }
.mr-5 { margin-right: 3rem !important; }

/* Padding (relleno) */
.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

.pl-0 { padding-left: 0 !important; }
.pl-1 { padding-left: 0.25rem !important; }
.pl-2 { padding-left: 0.5rem !important; }
.pl-3 { padding-left: 1rem !important; }
.pl-4 { padding-left: 1.5rem !important; }
.pl-5 { padding-left: 3rem !important; }

.pr-0 { padding-right: 0 !important; }
.pr-1 { padding-right: 0.25rem !important; }
.pr-2 { padding-right: 0.5rem !important; }
.pr-3 { padding-right: 1rem !important; }
.pr-4 { padding-right: 1.5rem !important; }
.pr-5 { padding-right: 3rem !important; }





/*-----------------------------------------------------------*/
.user-info {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    margin-left: 8px;
    color: #333;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: auto;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 6px 18px rgba(52,90,180,0.14);
    min-width: 140px;
    z-index: 99;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a, .dropdown-menu button {
    display: block;
    width: 100%;
    padding: 10px 18px;
    background: none;
    border: none;
    text-align: left;
    color: #222;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
}

.dropdown-menu a:hover, .dropdown-menu button:hover {
    background: #f2f6fa;
    color: #2474ef;
}
/*----------------------------------------------------------------------------*/







.arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid black;
}

div.barraMenu {
  width: 30px;
  height: 4px;
  margin: 6px 3px;
  background-color: rgb(255, 255, 255);
}

.cabeceraTable{
    background-color: var(--dark);
     color:color-mix(in srgb, var(--naranja), #000 20%);
}
.cabeceraTable a{
    color:var(--naranja)
}

