/* ── SUBSECTION TITLE ── */
.subsection-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0 0.25rem;
    border-bottom: 1px solid var(--border-glass2);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.25rem;
}
.exw-subsection { color: var(--exw-color); border-bottom-color: rgba(106,27,154,0.15); }

/* ── INPUT SUFFIX GROUP ── */
.input-suffix-group {
    position: relative;
    display: flex;
    align-items: center;
}
.input-suffix-group input { padding-right: 2.5rem; width: 100%; }
.input-suffix {
    position: absolute;
    right: 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
}

/* ── TABLA DE COSTOS ── */
.tabla-costos {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
}
.tabla-costos-exw {
    border-color: rgba(106,27,154,0.2);
}

.fila-costo {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border-glass2);
    transition: background 0.2s;
}
.fila-costo:last-child { border-bottom: none; }
.fila-costo:hover { background: #f0f7ff; }

.fila-costo-exw {
    border-bottom-color: rgba(106,27,154,0.08);
}
.fila-costo-exw:hover { background: rgba(106,27,154,0.04); }

.fila-label {
    min-width: 220px;
    max-width: 220px;
    padding: 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #f8fafc;
    border-right: 1px solid var(--border-glass2);
    flex-shrink: 0;
}
.fila-costo-exw .fila-label { border-right-color: rgba(106,27,154,0.08); }

.fila-nombre {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}
.fila-nota {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}
.exw-nota { color: var(--exw-color); }

.fila-inputs {
    flex: 1;
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}
.fila-inputs .form-group { flex: 1; min-width: 110px; }
.fila-inputs .form-group label { font-size: 0.7rem; }
.fila-inputs .form-group input,
.fila-inputs .form-group select { font-size: 0.83rem; padding: 0.5rem 0.65rem; }

/* ── TOTAL SECCIÓN ── */
.total-seccion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #e8f0fe, #f0f7ff);
    border: 1.5px solid rgba(26,86,196,0.2);
}
.total-fca { background: linear-gradient(135deg, #e8f0fe, #f0f7ff); border-color: rgba(26,86,196,0.2); }
.total-logistica { background: linear-gradient(135deg, #e8f5e9, #f1f8e9); border-color: rgba(46,125,50,0.2); }
.total-aeroportuario { background: linear-gradient(135deg, #fff8e1, #fffde7); border-color: rgba(249,168,37,0.3); }
.total-impuestos { background: linear-gradient(135deg, #fce4ec, #fff3f3); border-color: rgba(229,57,53,0.2); }

/* EXW totals */
.total-exw { background: linear-gradient(135deg, #f3e5f5, #fce4ec); border-color: rgba(106,27,154,0.2); }
.total-logistica-exw { background: linear-gradient(135deg, #e8f5e9, #f1f8e9); border-color: rgba(46,125,50,0.2); }
.total-aeroportuario-exw { background: linear-gradient(135deg, #fff8e1, #fffde7); border-color: rgba(249,168,37,0.3); }
.total-impuestos-exw { background: linear-gradient(135deg, #fce4ec, #fff3f3); border-color: rgba(229,57,53,0.2); }

.total-seccion-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
}
.total-seccion-valores {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.total-valor-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
}
.total-valor-item span { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }
.total-valor-item strong { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text-main); }
.total-clp strong     { color: var(--primary); font-size: 1.1rem; }
.total-clp-exw strong { color: var(--exw-color); font-size: 1.1rem; }

/* ── GRAN TOTAL PANEL ── */
.gran-total-panel {
    padding: 2rem;
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f7ff 100%);
    border-top: 2px solid rgba(26,86,196,0.2);
    border-bottom: 2px solid rgba(26,86,196,0.2);
}
.gran-total-panel-exw {
    background: linear-gradient(135deg, #f3e5f5 0%, #fce4ec 100%);
    border-color: rgba(106,27,154,0.2);
}
.gran-total-panel h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.gran-total-grid { display: flex; flex-direction: column; gap: 0.5rem; }

.gran-linea {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
}
.gran-linea:hover { background: rgba(255,255,255,0.03); }
.gran-valores { display: flex; gap: 1.5rem; }

.gran-linea-importante {
    background: rgba(66,165,245,0.08);
    border: 1px solid rgba(66,165,245,0.15);
    font-weight: 600;
    color: #90caf9;
}
.gran-linea-exw { background: rgba(186,104,200,0.08); border-color: rgba(186,104,200,0.15); color: #ce93d8; }

.gran-linea-final {
    background: linear-gradient(135deg, rgba(13,71,161,0.5), rgba(66,165,245,0.2));
    border: 2px solid rgba(66,165,245,0.4);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-top: 0.25rem;
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
}
.gran-linea-final-exw {
    background: linear-gradient(135deg, rgba(74,20,140,0.5), rgba(186,104,200,0.2));
    border-color: rgba(186,104,200,0.4);
}

/* Valores en Gran Total */
.valor-exento  { font-family:'Outfit',sans-serif; font-size:1rem; font-weight:700; color:var(--primary); }
.valor-compra  { font-family:'Outfit',sans-serif; font-size:1rem; font-weight:700; color:var(--text-main); }
.valor-total   { font-family:'Outfit',sans-serif; font-size:1.1rem; font-weight:700; color:var(--primary); }
.valor-total-exw { font-family:'Outfit',sans-serif; font-size:1.1rem; font-weight:700; color:var(--exw-color); }
.valor-iva     { font-family:'Outfit',sans-serif; font-size:1rem; font-weight:700; color:#c62828; }
.valor-iva-exw { font-family:'Outfit',sans-serif; font-size:1rem; font-weight:700; color:#c62828; }
.valor-gran-total     { font-family:'Outfit',sans-serif; font-size:1.4rem; font-weight:800; color:var(--primary); }
.valor-gran-total-exw { font-family:'Outfit',sans-serif; font-size:1.4rem; font-weight:800; color:var(--exw-color); }
.valor-importacion    { font-family:'Outfit',sans-serif; font-size:1.1rem; font-weight:700; color:var(--primary); }

.valor-exento small, .valor-total small, .valor-total-exw small,
.valor-iva small, .valor-iva-exw small {
    font-size: 0.68rem; font-weight: 500; opacity: 0.75;
    display: block; text-align: right; margin-top: 1px;
}

/* ── TIEMPO TRÁNSITO BOX ── */
.tiempo-transito-box {
    margin-top: 1.25rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tiempo-transito-box strong { color: #fff; }
.tiempo-transito-box-exw { border-color: rgba(186,104,200,0.15); }

/* ── INFO BOX EXW ── */
.info-box-exw {
    padding: 0.75rem 1rem;
    background: rgba(249,168,37,0.08);
    border: 1px solid rgba(249,168,37,0.2);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: #ffd54f;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* ── RESPONSIVE para filas ── */
@media (max-width: 900px) {
    .fila-costo { flex-direction: column; }
    .fila-label { max-width: 100%; min-width: 100%; border-right: none; border-bottom: 1px solid rgba(66,165,245,0.08); }
    .fila-inputs { flex-wrap: wrap; }
    .fila-inputs .form-group { min-width: calc(50% - 0.5rem); }
    .total-seccion { flex-direction: column; gap: 1rem; text-align: center; }
    .gran-linea { flex-direction: column; gap: 0.25rem; text-align: center; }
}
@media (max-width: 600px) {
    .fila-inputs .form-group { min-width: 100%; }
    .form-grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════
   ESTILOS FORMULARIOS LCL (Marítimo Consolidado)
   ══════════════════════════════════════════════════════ */
.gastos-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(66,165,245,0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.gasto-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(66,165,245,0.08);
    transition: background 0.2s;
    min-height: 52px;
}
.gasto-item:last-child { border-bottom: none; }
.gasto-item:hover { background: rgba(66,165,245,0.04); }
.gasto-label {
    min-width: 220px;
    max-width: 240px;
    padding: 0.75rem 1rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-main);
    background: rgba(255,255,255,0.02);
    border-right: 1px solid rgba(66,165,245,0.08);
    flex-shrink: 0;
    line-height: 1.3;
}
.gasto-inputs {
    flex: 1;
    display: flex;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.gasto-inputs input,
.gasto-inputs select {
    flex: 1;
    min-width: 90px;
    font-size: 0.83rem;
    padding: 0.45rem 0.65rem;
    background: #ffffff;
    border: 1.5px solid var(--border-input);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    transition: border-color 0.2s;
}
.gasto-inputs input:focus,
.gasto-inputs select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-input-focus);
    box-shadow: 0 0 0 3px rgba(26,86,196,0.1);
}
.readonly-input {
    background: #f8fafc !important;
    border-color: var(--border-glass2) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    cursor: default;
}
.subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    margin-top: 0.75rem;
    background: linear-gradient(135deg, rgba(21,101,192,0.2), rgba(66,165,245,0.08));
    border: 1px solid rgba(66,165,245,0.2);
    border-radius: var(--radius-md);
    gap: 1rem;
    flex-wrap: wrap;
}
.subtotal-row > span:first-child {
    font-size: 0.85rem;
    font-weight: 700;
    color: #90caf9;
    flex: 1;
}
.subtotal-val-usd   { font-family:'Outfit',sans-serif; font-size:0.95rem; font-weight:700; color:#64b5f6; }
.subtotal-val-clp   { font-family:'Outfit',sans-serif; font-size:1rem; font-weight:700; color:var(--accent-light); }
.subtotal-val-neto  { font-size:0.88rem; font-weight:700; color:#e0e8f5; }
.subtotal-val-iva   { font-size:0.88rem; font-weight:600; color:#ef9a9a; }
.subtotal-val-total { font-family:'Outfit',sans-serif; font-size:0.95rem; font-weight:700; color:#a5d6a7; }
.panel-resumen {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(13,71,161,0.4), rgba(21,101,192,0.2));
    border-top: 2px solid rgba(66,165,245,0.3);
    border-bottom: 2px solid rgba(66,165,245,0.3);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 1.25rem 0;
    border-radius: var(--radius-md);
}
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.input-with-icon input { width: 100%; padding-right: 2.5rem; }
.input-with-icon i,
.input-with-icon .input-icon-text {
    position: absolute;
    right: 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
}
@media (max-width: 900px) {
    .gasto-item { flex-direction: column; align-items: flex-start; }
    .gasto-label { max-width: 100%; min-width: 100%; border-right: none; border-bottom: 1px solid rgba(66,165,245,0.08); }
    .gasto-inputs { flex-wrap: wrap; }
    .subtotal-row { flex-direction: column; text-align: center; }
}

/* ── ESTILOS DEL HISTORIAL Y GANANCIAS ── */
.historial-table th, .historial-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-glass2);
    color: var(--text-main);
}
.historial-table th {
    background: #f8fafc;
    color: var(--text-label);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.historial-table tbody tr:hover {
    background: #f0f7ff;
}
.hist-badge {
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    white-space: nowrap;
}
.hist-btn {
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
}
.hist-btn:hover {
    color: #fff;
    transform: translateY(-1px);
}
.hist-btn-edit:hover { background: rgba(33,150,243,0.25); border-color: rgba(33,150,243,0.45); color: #64b5f6; }
.hist-btn-pdf:hover  { background: rgba(255,152,0,0.25); border-color: rgba(255,152,0,0.45); color: #ffb74d; }
.hist-btn-del:hover  { background: rgba(229,57,53,0.25); border-color: rgba(229,57,53,0.45); color: #ef5350; }

.kpi-card {
    transition: var(--transition);
}
.kpi-card:hover {
    background: rgba(255,255,255,0.08) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-action {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    background: rgba(255,255,255,0.08);
    color: var(--text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: var(--transition);
    font-size: 0.9rem;
}
.btn-action:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.btn-action-save {
    background: rgba(76, 175, 80, 0.15) !important;
    border-color: rgba(76, 175, 80, 0.3) !important;
    color: #a5d6a7 !important;
}
.btn-action-save:hover {
    background: rgba(76, 175, 80, 0.3) !important;
    color: #fff !important;
}

/* ── ESTILOS SELECTOR DE ESTADO EN HISTORIAL ── */
.hist-status-select {
    padding: 0.25rem 1.5rem 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    outline: none;
    appearance: none; /* remove browser style */
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 8px;
}

/* Chevron SVG SVG arrow icon */
.hist-status-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.status-pendiente {
    background-color: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.35);
}
.status-pendiente option {
    background: #fff;
    color: #b45309;
}

.status-aceptada {
    background-color: rgba(46, 125, 50, 0.12);
    color: #2e7d32;
    border-color: rgba(46, 125, 50, 0.3);
}
.status-aceptada option {
    background: #fff;
    color: #2e7d32;
}

.status-rechazada {
    background-color: rgba(198, 40, 40, 0.1);
    color: #c62828;
    border-color: rgba(198, 40, 40, 0.3);
}
.status-rechazada option {
    background: #fff;
    color: #c62828;
}

.hist-status-select option {
    font-weight: bold;
    text-transform: uppercase;
}

.hist-status-select:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

/* Contenedor de nuevo cliente expandible */
.cliente-nuevo-box {
    margin-top: 1rem;
    padding: 1.25rem;
    border: 1px dashed rgba(129, 199, 132, 0.3);
    border-radius: var(--radius-md);
    background: rgba(129, 199, 132, 0.03);
    display: none; /* hidden by default */
    grid-column: span 3;
    animation: slideDownFade 0.25s ease-out;
}

.cliente-nuevo-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #81c784;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cliente-nuevo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

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

@media (max-width: 768px) {
    .cliente-nuevo-grid {
        grid-template-columns: 1fr;
    }
}

/* Pestañas de estado para cotizaciones asociadas a un cliente */
.status-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glass2);
    padding-bottom: 1.25rem;
}

.status-tabs .tab-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}

.status-tabs .tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateY(-1px);
}

.status-tabs .tab-btn.active#btn_cl_quotes_pendiente {
    background: rgba(255, 183, 77, 0.15);
    color: #ffd54f;
    border-color: rgba(255, 183, 77, 0.35);
    box-shadow: 0 0 10px rgba(255, 183, 77, 0.1);
}

.status-tabs .tab-btn.active#btn_cl_quotes_aceptada {
    background: rgba(129, 199, 132, 0.15);
    color: #81c784;
    border-color: rgba(129, 199, 132, 0.35);
    box-shadow: 0 0 10px rgba(129, 199, 132, 0.1);
}

.status-tabs .tab-btn.active#btn_cl_quotes_rechazada {
    background: rgba(239, 154, 154, 0.15);
    color: #ef9a9a;
    border-color: rgba(239, 154, 154, 0.35);
    box-shadow: 0 0 10px rgba(239, 154, 154, 0.1);
}

/* ── ESTILOS DEL MODAL DE GANANCIAS (TABLAS) ── */
.ganancias-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.78rem !important; /* Smaller text */
    color: var(--text-main);
    table-layout: auto;
}

.ganancias-table th,
.ganancias-table td {
    padding: 6px 8px !important; /* Shrunk padding to separate columns cleanly */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
    line-height: 1.3;
}

/* Force inline font-size overrides from JS to be smaller */
.ganancias-table td[style*="font-size"] {
    font-size: 0.75rem !important;
}

.ganancias-table th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem !important; /* Smaller headers */
    color: var(--text-muted) !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.3px;
    background: rgba(255, 255, 255, 0.01);
}

.ganancias-table tbody tr {
    transition: background-color 0.15s ease;
}

.ganancias-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ganancias-table .hist-badge {
    font-size: 0.68rem !important;
    padding: 0.12rem 0.4rem !important;
}

/* Fix width and wrapping issues */
#tabla_rentabilidad_servicio th:nth-child(1),
#tabla_rentabilidad_servicio td:nth-child(1) {
    width: 25%;
}
#tabla_rentabilidad_servicio th:nth-child(2),
#tabla_rentabilidad_servicio td:nth-child(2) {
    width: 10%;
    text-align: center;
}
#tabla_rentabilidad_servicio th:nth-child(3),
#tabla_rentabilidad_servicio td:nth-child(3) {
    width: 22%;
    white-space: nowrap;
}
#tabla_rentabilidad_servicio th:nth-child(4),
#tabla_rentabilidad_servicio td:nth-child(4) {
    width: 23%;
    white-space: nowrap;
}
#tabla_rentabilidad_servicio th:nth-child(5),
#tabla_rentabilidad_servicio td:nth-child(5) {
    width: 20%;
    white-space: nowrap;
}

#tabla_detalle_operaciones th:nth-child(1),
#tabla_detalle_operaciones td:nth-child(1) {
    width: 14%;
    white-space: nowrap; /* ID should not wrap */
    font-size: 0.75rem !important;
}
#tabla_detalle_operaciones th:nth-child(2),
#tabla_detalle_operaciones td:nth-child(2) {
    width: 15%; /* Service badge */
}
#tabla_detalle_operaciones th:nth-child(3),
#tabla_detalle_operaciones td:nth-child(3) {
    width: 22%; /* Client name */
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important; /* Keep client name in one line and use ellipsis */
}
#tabla_detalle_operaciones th:nth-child(4),
#tabla_detalle_operaciones td:nth-child(4) {
    width: 11%;
    white-space: nowrap; /* Date should not wrap */
    font-size: 0.75rem !important;
}
#tabla_detalle_operaciones th:nth-child(5),
#tabla_detalle_operaciones td:nth-child(5) {
    width: 13%;
    white-space: nowrap;
}
#tabla_detalle_operaciones th:nth-child(6),
#tabla_detalle_operaciones td:nth-child(6) {
    width: 11%;
    white-space: nowrap;
}
#tabla_detalle_operaciones th:nth-child(7),
#tabla_detalle_operaciones td:nth-child(7) {
    width: 11%;
    white-space: nowrap;
}
#tabla_detalle_operaciones th:nth-child(8),
#tabla_detalle_operaciones td:nth-child(8) {
    width: 13%; /* Status badge */
}
