/* ===================== VARIABLES ===================== */
:root {
    --sidebar-width: 240px;
    --sidebar-collapsed: 64px;
    --topbar-height: 56px;
    --sidebar-bg: #1a2e4a;
    --sidebar-hover: rgba(255,255,255,0.08);
    --sidebar-active: #2563eb;
    --sidebar-text: rgba(255,255,255,0.82);
    --sidebar-section: rgba(255,255,255,0.38);
    --content-bg: #f0f4f8;
    --card-shadow: 0 1px 4px rgba(0,0,0,.08);
    --accent: #2563eb;
    --accent-light: #eff6ff;
}

body.ecatch-body {
    background: var(--content-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: .9rem;
    overflow-x: hidden;
}

/* ===== SIDEBAR ===== */
.ecatch-sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: width .25s ease;
    overflow: hidden;
}
.ecatch-sidebar.collapsed { width: var(--sidebar-collapsed); }

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px 14px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    white-space: nowrap;
    min-height: var(--topbar-height);
}
.sidebar-logo { font-size: 1.5rem; color: #60a5fa; flex-shrink: 0; }
.sidebar-brand { font-weight: 700; font-size: 1.05rem; color: #fff; }
.sidebar-version { font-size:.65rem; background:var(--accent); color:#fff; border-radius:4px; padding:1px 5px; margin-left:auto; }

.sidebar-nav { list-style:none; padding:10px 0; margin:0; flex:1; overflow-y:auto; scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.18) transparent; }
.sidebar-nav::-webkit-scrollbar { width:4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background:rgba(255,255,255,.18); border-radius:2px; }

.sidebar-section { font-size:.65rem; font-weight:700; letter-spacing:1px; color:var(--sidebar-section); padding:8px 20px 4px; white-space:nowrap; text-transform:uppercase; }

/* ---- Collapsible sidebar groups ---- */
.sidebar-group { list-style: none; padding: 0; }

.sidebar-section-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 20px 4px;
    background: none;
    border: none;
    color: var(--sidebar-section);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s;
}
.sidebar-section-btn:hover { color: rgba(255,255,255,.65); }

.sidebar-chevron {
    font-size: .7rem;
    transition: transform .22s ease;
    opacity: .7;
    flex-shrink: 0;
}
.sidebar-section-btn:not(.collapsed) .sidebar-chevron { transform: rotate(180deg); }

.sidebar-subnav { list-style: none; padding: 0; margin: 0; }

/* When sidebar is fully collapsed (icon-only), force all sub-navs visible */
.ecatch-sidebar.collapsed .sidebar-section-btn { display: none; }
.ecatch-sidebar.collapsed .sidebar-subnav { display: block !important; }

.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 20px; color: var(--sidebar-text);
    text-decoration: none; white-space: nowrap;
    transition: background .15s, color .15s;
}
.sidebar-link:hover { background: var(--sidebar-hover); color: #fff; text-decoration: none; }
.sidebar-link.active { background: var(--sidebar-active); color: #fff; font-weight: 600; }
.sidebar-link i { font-size: 1.05rem; flex-shrink: 0; width: 20px; text-align: center; }

.ecatch-sidebar.collapsed .sidebar-link span,
.ecatch-sidebar.collapsed .sidebar-section,
.ecatch-sidebar.collapsed .sidebar-brand,
.ecatch-sidebar.collapsed .sidebar-version,
.ecatch-sidebar.collapsed .sidebar-footer span { display: none; }

.sidebar-footer { padding:12px 20px; font-size:.68rem; color:var(--sidebar-section); border-top:1px solid rgba(255,255,255,.08); display:flex; align-items:center; gap:6px; white-space:nowrap; }

/* ===== MAIN WRAPPER ===== */
#main-wrapper { margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .25s ease; }
#main-wrapper.expanded { margin-left: var(--sidebar-collapsed); }

/* ===== TOPBAR ===== */
.ecatch-topbar {
    height: var(--topbar-height);
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex; align-items: center;
    padding: 0 20px 0 12px;
    position: sticky; top: 0; z-index: 1030;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.breadcrumb { font-size: .8rem; }

/* ===== CONTENT ===== */
.ecatch-content { flex: 1; padding: 24px; }
.page-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.page-title { font-size:1.25rem; font-weight:700; color:#1e293b; margin:0; }

/* ===== KPI CARDS ===== */
.kpi-card {
    background: #fff; border-radius: 12px; padding: 20px 22px;
    box-shadow: var(--card-shadow);
    display: flex; align-items: center; gap: 16px;
    height: 100%;
    transition: transform .15s, box-shadow .15s;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.kpi-card-alert { border: 1px solid #fecaca; background: #fff5f5; }
.kpi-icon { width:52px; height:52px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:1.4rem; flex-shrink:0; }
.kpi-icon.blue   { background:#eff6ff; color:#2563eb; }
.kpi-icon.green  { background:#f0fdf4; color:#16a34a; }
.kpi-icon.orange { background:#fff7ed; color:#ea580c; }
.kpi-icon.purple { background:#faf5ff; color:#9333ea; }
.kpi-icon.teal   { background:#f0fdfa; color:#0d9488; }
.kpi-icon.red    { background:#fef2f2; color:#dc2626; }
.kpi-value { font-size:1.8rem; font-weight:700; color:#1e293b; line-height:1; }
.kpi-label { font-size:.78rem; color:#64748b; margin-top:3px; }

/* ===== PRODUCT MINI-STATS ===== */
.prod-stat {
    border-radius: 10px; padding: 10px 14px; text-align: center;
    height: 100%; border: 1px solid transparent;
    transition: opacity .15s;
}
.prod-stat:hover { opacity: .85; }
.prod-stat-val  { font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.prod-stat-lbl  { font-size: .72rem; margin-top: 2px; }
.prod-stat-success  { background:#f0fdf4; border-color:#bbf7d0; color:#15803d; }
.prod-stat-primary  { background:#eff6ff; border-color:#bfdbfe; color:#1d4ed8; }
.prod-stat-info     { background:#f0f9ff; border-color:#bae6fd; color:#0369a1; }
.prod-stat-danger   { background:#fef2f2; border-color:#fecaca; color:#dc2626; }
.prod-stat-warning  { background:#fffbeb; border-color:#fde68a; color:#92400e; }
.prod-stat-secondary{ background:#f8fafc; border-color:#e2e8f0; color:#475569; }
.prod-stat-muted    { background:#f8fafc; border-color:#e2e8f0; color:#94a3b8; }

/* ===== TABLE ===== */
.ecatch-table { background:#fff; border-radius:12px; box-shadow:var(--card-shadow); overflow:hidden; }
.ecatch-table .table { margin:0; }
.ecatch-table .table thead th { background:#f8fafc; font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:#64748b; border-bottom:1px solid #e2e8f0; padding:10px 14px; }
.ecatch-table .table tbody td { padding:10px 14px; vertical-align:middle; font-size:.86rem; border-bottom:1px solid #f1f5f9; }
.ecatch-table .table tbody tr:last-child td { border-bottom:none; }
.ecatch-table .table tbody tr:hover { background:#f8fafc; }
.solo-ficha { display: none; }   /* solo visible cuando la tabla pasa a fichas (celular) */

/* ── Responsive móvil (solo pantallas chicas; NO afecta el desktop) ── */
@media (max-width: 900px) {
    /* Contenido a ancho completo */
    #main-wrapper, #main-wrapper.expanded { margin-left: 0 !important; }
    /* Sidebar off-canvas: oculto por defecto, se abre con el botón */
    .ecatch-sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 1060;
        width: var(--sidebar-width) !important; transform: translateX(-100%); transition: transform .25s ease; }
    .ecatch-sidebar.mobile-open { transform: translateX(0); box-shadow: 4px 0 28px rgba(0,0,0,.30); }
    /* En móvil el sidebar off-canvas siempre muestra las etiquetas, aunque quedara 'collapsed' */
    .ecatch-sidebar.collapsed .sidebar-link span,
    .ecatch-sidebar.collapsed .sidebar-section,
    .ecatch-sidebar.collapsed .sidebar-brand,
    .ecatch-sidebar.collapsed .sidebar-version,
    .ecatch-sidebar.collapsed .sidebar-section-btn,
    .ecatch-sidebar.collapsed .sidebar-footer span { display: revert !important; }
    #sb-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.42); z-index: 1055; opacity: 0; visibility: hidden; transition: opacity .2s; }
    #sb-backdrop.show { opacity: 1; visibility: visible; }
    /* Tablas: scroll horizontal dentro de la card (no aplasta las columnas) */
    .ecatch-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    #tblOpc { min-width: 860px; }
    .ecatch-topbar { padding-left: .6rem; padding-right: .6rem; }

    /* ── Tablas anchas → FICHAS en celular (opt-in: class="tabla-fichas" en el <table> + data-label en cada <td>) ──
       Reutilizable por OC / Facturas / Cotizaciones / etc. En escritorio no hace nada (fuera del media query). */
    .tabla-fichas { min-width: 0 !important; table-layout: auto !important; }
    .tabla-fichas thead, .tabla-fichas colgroup { display: none !important; }
    .tabla-fichas, .tabla-fichas tbody, .tabla-fichas tr, .tabla-fichas td { display: block; width: 100% !important; }
    .tabla-fichas tr {
        border: 1px solid #dee2e6 !important; border-radius: .55rem;
        margin-bottom: .6rem; padding: .5rem .7rem;
        box-shadow: 0 1px 2px rgba(0,0,0,.06); background: #fff;
    }
    .tabla-fichas td {
        border: none !important; padding: .2rem 0 !important;
        display: flex; gap: .6rem; align-items: flex-start;
        font-size: .85rem !important; text-align: left !important; max-width: none !important;
        overflow-wrap: anywhere; word-break: break-word; white-space: normal !important;
    }
    .tabla-fichas td:empty { display: none !important; }   /* celdas vacías (acciones/relleno colspan) no ocupan línea */
    .tabla-fichas td[data-label]::before {
        content: attr(data-label); flex: 0 0 88px; color: #94a3b8;
        font-size: .66rem; font-weight: 700; text-transform: uppercase;
        letter-spacing: .3px; padding-top: 3px;
    }
    .tabla-fichas td.td-full { display: block; }
    .tabla-fichas td.td-full[data-label]::before { display: block; margin-bottom: .2rem; }
    .tabla-fichas td[data-label=""]::before { content: none; }   /* sin etiqueta: no reservar la columna */
    .tabla-fichas td.text-end { text-align: left !important; }
    .tabla-fichas td[colspan] { justify-content: center; text-align: center !important; }
    .tabla-fichas td[colspan]::before { content: none; }
    /* La última celda (acciones) separada con una franja */
    .tabla-fichas td.td-acciones { border-top: 1px dashed #e2e8f0 !important; margin-top: .35rem; padding-top: .5rem !important; }
    .tabla-fichas td.td-acciones .btn-group,
    .tabla-fichas td.td-acciones > div { flex-wrap: wrap; justify-content: flex-start !important; gap: .35rem; }
    /* Texto que SOLO se ve en modo ficha (oculto en escritorio con .solo-ficha) */
    .tabla-fichas .solo-ficha { display: inline !important; }
}

/* ===== SEARCH BAR ===== */
.search-bar { background:#fff; border-radius:12px; padding:14px 18px; box-shadow:var(--card-shadow); margin-bottom:18px; }

/* ===== PRODUCT CARDS ===== */
.producto-card { background:#fff; border-radius:12px; box-shadow:var(--card-shadow); padding:18px; height:100%; display:flex; flex-direction:column; transition:transform .15s, box-shadow .15s; }
.producto-card:hover { transform:translateY(-3px); box-shadow:0 6px 20px rgba(0,0,0,.1); }
.producto-card-icon { width:48px; height:48px; background:var(--accent-light); border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:1.3rem; color:var(--accent); margin-bottom:10px; }
.producto-card-code { font-size:.7rem; color:#94a3b8; font-weight:600; letter-spacing:.5px; text-transform:uppercase; }
.producto-card-name { font-weight:600; font-size:.88rem; color:#1e293b; margin:4px 0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.producto-card-brand { font-size:.78rem; color:#64748b; }
.producto-card-stock { font-size:.75rem; margin-top:auto; padding-top:10px; }
.stock-ok { color:#16a34a; } .stock-low { color:#ea580c; } .stock-none { color:#dc2626; }

/* ===== LOGIN ===== */
.login-page { min-height:100vh; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#1a2e4a 0%,#2563eb 100%); }
.login-card { background:#fff; border-radius:16px; padding:40px; width:100%; max-width:380px; box-shadow:0 20px 60px rgba(0,0,0,.25); }
.login-logo { font-size:3rem; color:var(--accent); text-align:center; margin-bottom:6px; }
.login-title { text-align:center; font-weight:800; font-size:1.5rem; color:#1e293b; margin-bottom:4px; }
.login-subtitle { text-align:center; color:#64748b; font-size:.85rem; margin-bottom:28px; }

/* ===== PAGINATION ===== */
.pagination .page-link { color:var(--accent); border-color:#e2e8f0; font-size:.82rem; }
.pagination .page-item.active .page-link { background:var(--accent); border-color:var(--accent); }

/* ===== MISC ===== */
.badge-familia { background:var(--accent-light); color:var(--accent); border-radius:6px; padding:2px 8px; font-size:.72rem; font-weight:600; }

/* ===== DASHBOARD SECTION BLOCKS ===== */
.dash-section {
    border-radius: 16px;
    padding: 18px 20px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}
.dash-section-title {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,.07);
}
.dash-section-title-left { display:flex; align-items:center; gap:8px; }
.ds-blue   { background:#eff6ff; border-color:#bfdbfe; }
.ds-blue   .dash-section-title { color:#1d4ed8; border-bottom-color:#bfdbfe; }
.ds-green  { background:#f0fdf4; border-color:#bbf7d0; }
.ds-green  .dash-section-title { color:#15803d; border-bottom-color:#bbf7d0; }
.ds-amber  { background:#fffbeb; border-color:#fde68a; }
.ds-amber  .dash-section-title { color:#92400e; border-bottom-color:#fde68a; }
.ds-purple { background:#faf5ff; border-color:#e9d5ff; }
.ds-purple .dash-section-title { color:#7c3aed; border-bottom-color:#e9d5ff; }
.ds-slate  { background:#f8fafc; border-color:#e2e8f0; }
.ds-slate  .dash-section-title { color:#475569; border-bottom-color:#e2e8f0; }
.ds-rose   { background:#fff1f2; border-color:#fecdd3; }
.ds-rose   .dash-section-title { color:#be123c; border-bottom-color:#fecdd3; }
.ds-orange { background:#fff7ed; border-color:#fed7aa; }
.ds-orange .dash-section-title { color:#c2410c; border-bottom-color:#fed7aa; }

/* KPI cards inside colored sections: white elevated */
.dash-section .kpi-card { box-shadow: 0 1px 6px rgba(0,0,0,.07); }

/* ===== SYNC SECTION BLOCKS ===== */
.sync-section {
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 28px;
    border: 1px solid transparent;
    border-left-width: 4px;
}
.sync-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,.07);
}
.sync-section-title {
    font-size: .95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.sync-chevron {
    font-size: .8rem;
    transition: transform .25s ease;
    opacity: .5;
}
.ss-blue   { background:#eff6ff; border-color:#bfdbfe; border-left-color:#3b82f6; }
.ss-blue   .sync-section-title  { color:#1e40af; }
.ss-blue   .sync-section-header { border-bottom-color:#bfdbfe; }
.ss-amber  { background:#fffbeb; border-color:#fde68a; border-left-color:#f59e0b; }
.ss-amber  .sync-section-title  { color:#92400e; }
.ss-amber  .sync-section-header { border-bottom-color:#fde68a; }
.ss-green  { background:#f0fdf4; border-color:#bbf7d0; border-left-color:#22c55e; }
.ss-green  .sync-section-title  { color:#166534; }
.ss-green  .sync-section-header { border-bottom-color:#bbf7d0; }
.ss-slate  { background:#f8fafc; border-color:#e2e8f0; border-left-color:#64748b; }
.ss-slate  .sync-section-title  { color:#334155; }
.ss-slate  .sync-section-header { border-bottom-color:#e2e8f0; }

/* KPI cards inside sync sections */
.sync-section .kpi-card { box-shadow: 0 1px 5px rgba(0,0,0,.06); }
.sync-section .ecatch-table { box-shadow: 0 1px 5px rgba(0,0,0,.06); }

/* Mini sync status panel (dashboard) */
.sync-panel {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    height: 100%;
    box-shadow: 0 1px 5px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sync-panel-header { display:flex; align-items:center; justify-content:space-between; }
.sync-panel-title  { font-size:.82rem; font-weight:700; display:flex; align-items:center; gap:6px; }
.sync-panel-footer { margin-top:auto; padding-top:8px; }

/* Quick access buttons */
.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 600;
    transition: border-color .15s, transform .15s, box-shadow .15s;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.quick-btn i { font-size: 1.35rem; }
.quick-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(37,99,235,.12); text-decoration: none; }

/* Botones extra-chicos del visor de archivos: Bootstrap 5 NO trae btn-xs, así que sin esto salen tamaño normal (gigantes). */
.btn-xs { padding: .05rem .3rem; font-size: .72rem; line-height: 1.25; border-radius: .2rem; }
.btn-xs .bi { font-size: .72rem; }
/* Lista del visor más compacta para que quepan/scrolleen todos los archivos */
#vb-lista .border { padding: .35rem !important; margin-bottom: .35rem !important; }
/* La LISTA del visor scrollea con alto de VIEWPORT (robusto, sin depender del flex del offcanvas): se ven TODOS. */
#ocVB .offcanvas-body { height: auto !important; }
#ocVB #vb-lista { max-height: calc(100vh - 175px); overflow-y: auto; }
/* En modo CONSULTA (no ofertar) se ocultan los botones/aprobación del ofertar, pase lo que pase. */
#ocVB.vb-modo-consulta #vb-footer-ofertar,
#ocVB.vb-modo-consulta #vb-aprob-hint { display: none !important; }
/* En consulta el panel es más ancho (el editor de Word necesita espacio) y el editor llena su caja. */
#ocVB.vb-modo-consulta { width: 1150px !important; max-width: 95vw !important; }
#vb-docedit { width: 100%; height: calc(100% - 36px); overflow: hidden; }
#vb-docedit .e-documenteditorcontainer { width: 100% !important; }

@media (max-width: 768px) {
    .ecatch-sidebar { width: var(--sidebar-collapsed); }
    #main-wrapper { margin-left: var(--sidebar-collapsed); }
    .ecatch-content { padding: 16px; }
    .dash-section { padding: 14px 14px 16px; }
    .sync-section { padding: 16px 16px; }
}

/* ── Asistente de voz (barra superior) ── */
.ecatch-voz-input { width: 150px; height: 30px; font-size: .82rem; }
.ecatch-voz-btn { height: 30px; display: inline-flex; align-items: center; }
.ecatch-voz-btn.grabando { color: #fff; background-color: #dc3545; border-color: #dc3545; animation: vozpulse 1s infinite; }
@keyframes vozpulse { 0% { box-shadow: 0 0 0 0 rgba(220,53,69,.5);} 70% { box-shadow: 0 0 0 8px rgba(220,53,69,0);} 100% { box-shadow: 0 0 0 0 rgba(220,53,69,0);} }
/* Panel del asistente estilo MATRIX: verde sobre fondo oscuro, monoespaciado (el azul no se veía). */
.ecatch-voz-panel { position: absolute; top: calc(100% + 8px); right: 0; width: 320px; max-width: 88vw;
    background: #060a06; border: 1px solid #1f6f3f; border-radius: .5rem; padding: .6rem .7rem; z-index: 1080;
    color: #33ff66; font-family: 'Consolas','Courier New',monospace; box-shadow: 0 0 14px rgba(0,255,90,.25); }
.ecatch-voz-panel #vozChat { max-height: 230px; overflow-y: auto; }
.ecatch-voz-panel #vozEstado, .ecatch-voz-panel .fw-bold, .ecatch-voz-panel small { color: #33ff66 !important; }
.voz-msg { padding: .3rem .55rem; border-radius: .4rem; margin-bottom: .35rem; font-size: .82rem; line-height: 1.25; max-width: 92%; word-wrap: break-word; font-family: 'Consolas','Courier New',monospace; }
.voz-user { background: rgba(0,255,90,.12); color: #9dff5a; margin-left: auto; text-align: right; border: 1px solid rgba(0,255,90,.35); }
.voz-bot  { background: rgba(0,255,90,.05); color: #33ff66; border: 1px solid rgba(0,255,90,.18); }
@media (max-width: 767px) { .ecatch-voz-input { width: 110px; } }

/* ── Asistente de voz: estados del micrófono ── */
.ecatch-voz-btn.manos { color:#fff; background-color:#198754; border-color:#198754; }
.ecatch-voz-btn.escuchando { animation: vozescucha 1.3s infinite; }
@keyframes vozescucha { 0%{ box-shadow:0 0 0 0 rgba(25,135,84,.5);} 70%{ box-shadow:0 0 0 8px rgba(25,135,84,0);} 100%{ box-shadow:0 0 0 0 rgba(25,135,84,0);} }

/* ── Asistente de voz: estado "en espera" (wake word) ── */
.ecatch-voz-btn.durmiendo { color:#000; background-color:#ffc107; border-color:#ffc107; animation:none !important; }

/* Transcripción en vivo: el input se resalta mientras te escucha */
.ecatch-voz-input.oyendo { color:#0d6efd; font-style:italic; box-shadow:0 0 0 .15rem rgba(13,110,253,.25); }

/* ── Nombre del organismo en el listado de OC ──
   Antes se cortaba a 45 caracteres desde el servidor: se comía el 29% de los nombres (109 de 372)
   y, peor, la parte que identifica al establecimiento — el prefijo "SERVICIO DE SALUD…" es casi
   siempre el mismo y lo que distingue va al final ("…HOSPITAL DR A|BRAHAM GODOY PEÑA LAUTARO").
   Ahora se manda entero y se recorta acá, según el ancho REAL: en pantalla ancha entran los 72
   caracteres del más largo, y el title lo muestra completo igual.
   En móvil no estorba: el bloque responsive de arriba ya fuerza max-width:none y
   white-space:normal, así que ahí el nombre se ve completo en varias líneas. */
.td-organismo {
    max-width: 26rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── La piel de los listados (OC, Facturas, …) ──
   Esto vivía como un bloque <style> dentro de Views/OrdenesCompra/Index.cshtml, atado al id
   #tblOC. Por eso el listado de Facturas se veía distinto: no era el thead oscuro solamente,
   era que le faltaba TODA esta piel — los bordes de celda, el padding, el encabezado en
   mayúsculas y los tamaños.
   Al ser una clase y no un id, las dos tablas comparten la misma definición y no se vuelven a
   separar cuando se toque una. */
.tabla-listado th,
.tabla-listado td {
    padding: 5px 8px;
    border: 1px solid #dee2e6;
}
.tabla-listado thead th {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #555;
}
.tabla-listado tbody td {
    font-size: .8rem;
}
