/* --- ESTILOS BASE --- */
html {
    font-size: 14px;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.content {
    padding-top: 1.1rem;
}

/* --- MUDBlAZOR COMPACTO (Global) --- */
.mud-table-root .mud-table-cell {
    padding: 4px 8px !important;
    height: 32px !important;
}

.mud-table-root .mud-table-row {
    height: 32px !important;
}

.mud-table-cell .mud-button-root {
    padding: 2px !important;
}

.custom-popover-width {
    max-width: 450px !important;
}

/* --- TABLA DE TRAZABILIDAD --- */
/* Expansión del contenedor general (+60px) */
.mud-container-maxwidth-large {
    max-width: 1340px !important;
}

.tabla-trazabilidad {
    table-layout: fixed !important;
    width: 100% !important;
}

    .tabla-trazabilidad .mud-table-cell {
        white-space: normal !important;
        word-break: break-word !important;
        padding: 4px 5px !important; /* Compacta el espacio horizontal entre columnas */
        vertical-align: middle !important;
    }

    /* Anchos Fijos Trazabilidad */
    .col-select,
    .tabla-trazabilidad .mud-table-cell-checkbox {
        width: 36px !important;
        max-width: 36px !important;
        padding: 0 2px !important;
        text-align: center !important;
    }

.col-fecha {
    width: 75px !important;
}

.col-codigo {
    width: 80px !important;
}

.col-odontologo {
    width: 110px !important;
}

.col-paciente {
    width: 200px !important;
    text-align: center !important;
}

    .col-paciente .mud-chip {
        width: 190px !important;
        height: 24px !important;
        font-size: 0.75rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

.col-trabajo {
    width: 140px !important;
}

.col-pd {
    width: 68px !important; /* Evita que "Superior" se quiebre en dos líneas */
}

.col-color {
    width: 65px !important;
}

.col-monto {
    width: 105px !important;
}

.col-ext {
    width: 240px !important; /* Mucho más espacio para que los externos no se amontonen */
}

.col-estado {
    width: 105px !important;
}

.col-acciones {
    width: 75px !important;
}

/* --- PANEL DE FILTROS Y BOTONES --- */
.panel-filtros {
    padding: 6px 12px !important;
}

    .panel-filtros .mud-grid-item {
        padding: 1px 6px !important;
    }

.gap-botones {
    gap: 12px !important;
}

.btn-excel-sheets {
    background-color: #34a853 !important;
    color: white !important;
}

.btn-archive-blue {
    background-color: #033C73 !important;
    color: white !important;
}

/* --- CUENTAS CORRIENTES Y MONTOS --- */
.monto-haber {
    font-weight: bold !important;
    font-size: 14px !important;
    color: #2e7d32 !important;
}

.monto-debe-field .mud-input-slot,
.monto-debe-field .mud-input-adornment-start p {
    color: #e57373 !important;
    font-weight: bold !important;
    font-size: 14px !important;
}

.monto-taller-field .mud-input-slot,
.monto-taller-field .mud-input-adornment-start p {
    color: #9e9e9e !important;
    font-weight: bold !important;
    font-size: 14px !important;
}

/* Limpieza de líneas de input en tablas */
.monto-debe-field .mud-input-underline:before,
.monto-debe-field .mud-input-underline:after,
.monto-taller-field .mud-input-underline:before,
.monto-taller-field .mud-input-underline:after {
    display: none !important;
}

/* Corrección de alineación del signo $ */
.monto-taller-field .mud-input-adornment-start,
.monto-debe-field .mud-input-adornment-start {
    margin-top: 0 !important;
    align-self: center;
}

.col-cant-ledger {
    width: 60px !important;
    text-align: center !important;
}

.col-monto-ledger {
    width: 120px !important;
    text-align: right !important;
}

/* --- PESTAÑAS (TABS) - ESTILO PLUS --- */

/* 1. Fondo de la barra de botones (#f1f1f1) */
.mud-tabs-toolbar {
    background-color: #f1f1f1 !important;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding-left: 10px;
}

/* 2. Pestañas Inactivas */
.mud-tabs .mud-tab {
    background-color: #dbdbdb !important;
    color: #424242 !important;
    margin-right: 4px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    text-transform: uppercase;
    font-weight: 500;
    min-height: 48px;
    transition: all 0.2s;
}

    /* 3. Pestaña Activa */
    .mud-tabs .mud-tab.mud-tab-active {
        background-color: #2FA4E7 !important;
        color: white !important;
        font-weight: bold;
    }

/* 4. EL NUEVO ENFOQUE: Línea azul continua al tope del contenido y separación de cajas */
.mud-tabs-panels {
    border-top: 4px solid #2FA4E7 !important; /* Línea permanente de lado a lado */
    padding-top: 28px !important; /* Despega las cajas de totales (verde/rojo/azul) de la línea */
}

/* 5. Ocultar el slider original que se mueve solo debajo del texto */
.mud-tab-slider {
    display: none !important;
}

/* --- ESTILO NO CONTABLE --- */
.cliente-no-contable {
    background-color: #d3d3d3 !important;
    color: #424242 !important;
}