/* Presentación de lista de raya; no modifica cálculos ni la impresión del informe. */
@media screen {
  section[data-section="lista-raya"] {
    --lr-surface: #ffffff;
    --lr-surface-alt: #f4f7fc;
    --lr-head: #e8eef8;
    --lr-text: #172942;
    --lr-muted: #4b607b;
    --lr-line: #cbd7e8;
    --lr-accent: #244bc7;
    --lr-perc-bg: #e1f4ed;
    --lr-perc-text: #065f46;
    --lr-deduc-bg: #fce9e9;
    --lr-deduc-text: #991b1b;
    --lr-oblig-bg: #fff2d7;
    --lr-oblig-text: #814500;
    --lr-net-bg: #e9eaff;
    --lr-net-text: #34369a;
  }
  html[data-theme="dark"] section[data-section="lista-raya"] {
    --lr-surface: #172238;
    --lr-surface-alt: #202e46;
    --lr-head: #263650;
    --lr-text: #f1f5ff;
    --lr-muted: #c2cfe0;
    --lr-line: #526783;
    --lr-accent: #b5c9ff;
    --lr-perc-bg: #164b3c;
    --lr-perc-text: #c3f8df;
    --lr-deduc-bg: #652f36;
    --lr-deduc-text: #ffd1d3;
    --lr-oblig-bg: #5b431b;
    --lr-oblig-text: #ffe6ad;
    --lr-net-bg: #343d70;
    --lr-net-text: #e5e8ff;
  }
  section[data-section="lista-raya"] .lr-filter-panel,
  section[data-section="lista-raya"] .lr-doc-header,
  section[data-section="lista-raya"] .lr-signatures-block {
    background: var(--lr-surface) !important;
    border-color: var(--lr-line) !important;
    color: var(--lr-text) !important;
    backdrop-filter: none !important;
  }
  section[data-section="lista-raya"] .lr-filter-panel h3,
  section[data-section="lista-raya"] .lr-filter-panel label,
  section[data-section="lista-raya"] .lr-doc-header div,
  section[data-section="lista-raya"] .lr-signatures-block div {
    color: var(--lr-text) !important;
  }
  section[data-section="lista-raya"] .lr-filter-panel p,
  section[data-section="lista-raya"] #lrDatosFiscales,
  section[data-section="lista-raya"] #lrFechaPago {
    color: var(--lr-muted) !important;
  }
  section[data-section="lista-raya"] .lr-filter-panel .field select {
    color: var(--lr-text) !important;
    background: var(--lr-surface) !important;
    border-color: var(--lr-line) !important;
  }
  section[data-section="lista-raya"] #btnListaRayaActualizar {
    background: #244bc7 !important;
    border-color: #244bc7 !important;
    color: #fff !important;
  }
  section[data-section="lista-raya"] #btnListaRayaExcel {
    background: #08734e !important;
    border-color: #08734e !important;
    color: #fff !important;
  }
  section[data-section="lista-raya"] #btnListaRayaImprimir {
    background: var(--lr-surface) !important;
    border: 1px solid var(--lr-line) !important;
    color: var(--lr-text) !important;
  }
  section[data-section="lista-raya"] .lr-doc-header {
    border-bottom: 2px solid var(--lr-accent) !important;
  }
  section[data-section="lista-raya"] #lrLogoImg {
    background: #fff;
    padding: 3px;
  }
  section[data-section="lista-raya"] .lr-table-wrap {
    background: var(--lr-surface) !important;
    border-color: var(--lr-line) !important;
    min-height: 180px;
  }
  section[data-section="lista-raya"] .lr-table {
    color: var(--lr-text);
    font-size: 12px;
  }
  section[data-section="lista-raya"] .lr-table th,
  section[data-section="lista-raya"] .lr-table td {
    border-right: 1px solid var(--lr-line) !important;
    border-bottom: 1px solid var(--lr-line) !important;
  }
  section[data-section="lista-raya"] .lr-table .lr-cat-th {
    height: 34px;
    color: #fff !important;
    line-height: 1.2;
  }
  section[data-section="lista-raya"] .lr-table .lr-col-th {
    top: 34px;
    background: var(--lr-head) !important;
    color: var(--lr-text) !important;
    vertical-align: middle !important;
  }
  section[data-section="lista-raya"] .lr-table .lr-th-p { background: var(--lr-perc-bg) !important; color: var(--lr-perc-text) !important; }
  section[data-section="lista-raya"] .lr-table .lr-th-d { background: var(--lr-deduc-bg) !important; color: var(--lr-deduc-text) !important; }
  section[data-section="lista-raya"] .lr-table .lr-th-o { background: var(--lr-oblig-bg) !important; color: var(--lr-oblig-text) !important; }
  section[data-section="lista-raya"] .lr-table .lr-col-th b { color: inherit !important; }
  section[data-section="lista-raya"] .lr-table .lr-th-tp { background: #065f46 !important; color: #fff !important; }
  section[data-section="lista-raya"] .lr-table .lr-th-td { background: #7f1d1d !important; color: #fff !important; }
  section[data-section="lista-raya"] .lr-table .lr-th-net { background: #312e81 !important; color: #fff !important; }
  section[data-section="lista-raya"] .lr-table .lr-th-to { background: #78350f !important; color: #fff !important; }
  section[data-section="lista-raya"] .lr-table .lr-sticky-1 {
    left: 0;
    width: 96px;
    min-width: 96px;
    max-width: 96px;
  }
  section[data-section="lista-raya"] .lr-table .lr-sticky-2 {
    left: 96px;
    min-width: 240px;
    box-shadow: 3px 0 6px rgba(15, 23, 42, .12);
  }
  section[data-section="lista-raya"] .lr-table .lr-emp-row td {
    background: var(--lr-surface) !important;
    color: var(--lr-text) !important;
  }
  section[data-section="lista-raya"] .lr-table .lr-emp-row:hover td {
    background: var(--lr-surface-alt) !important;
  }
  section[data-section="lista-raya"] .lr-table .lr-emp-row td.lr-neto-cell {
    background: var(--lr-net-bg) !important;
    color: var(--lr-net-text) !important;
  }
  section[data-section="lista-raya"] .lr-table .lr-depto-row td,
  section[data-section="lista-raya"] .lr-table .lr-row-subtotal td {
    background: var(--lr-surface-alt) !important;
    color: var(--lr-text) !important;
  }
  section[data-section="lista-raya"] .lr-table .lr-depto-row span {
    color: var(--lr-muted) !important;
  }
  section[data-section="lista-raya"] .lr-table .lr-row-grand td {
    background: #102e5d !important;
    color: #fff !important;
    border-top: 2px solid #416bd5 !important;
    border-bottom: 2px solid #416bd5 !important;
  }
  section[data-section="lista-raya"] .lr-signatures-block div[style*="border-top"] {
    border-color: var(--lr-muted) !important;
  }

  /* ==================== LISTA DE RAYA GRAVADOS Y EXENTOS (TABLA NEUTRA + GRAVADO VERDE / EXENTO AMARILLO) ==================== */
  section[data-section="lista-raya-ge"] {
    --lrge-surface: #ffffff;
    --lrge-surface-alt: #f8fafc;
    --lrge-head: #f1f5f9;
    --lrge-cat: #e2e8f0;
    --lrge-text: #0f172a;
    --lrge-muted: #475569;
    --lrge-line: #cbd5e1;
    --lrge-grav-bg: #dcfce7;
    --lrge-grav-strong: #bbf7d0;
    --lrge-grav-text: #166534;
    --lrge-exen-bg: #fef9c3;
    --lrge-exen-strong: #fef08a;
    --lrge-exen-text: #854d0e;
  }
  html[data-theme="dark"] section[data-section="lista-raya-ge"] {
    --lrge-surface: #172238;
    --lrge-surface-alt: #1f2b42;
    --lrge-head: #24334d;
    --lrge-cat: #2c3d59;
    --lrge-text: #f1f5f9;
    --lrge-muted: #94a3b8;
    --lrge-line: #475569;
    --lrge-grav-bg: #14532d;
    --lrge-grav-strong: #166534;
    --lrge-grav-text: #dcfce7;
    --lrge-exen-bg: #422006;
    --lrge-exen-strong: #713f12;
    --lrge-exen-text: #fef08a;
  }
  section[data-section="lista-raya-ge"] .lr-filter-panel,
  section[data-section="lista-raya-ge"] .lr-doc-header,
  section[data-section="lista-raya-ge"] .lr-signatures-block {
    background: var(--lrge-surface) !important;
    border-color: var(--lrge-line) !important;
    color: var(--lrge-text) !important;
    backdrop-filter: none !important;
  }
  section[data-section="lista-raya-ge"] .lr-filter-panel h3,
  section[data-section="lista-raya-ge"] .lr-filter-panel label,
  section[data-section="lista-raya-ge"] .lr-doc-header div,
  section[data-section="lista-raya-ge"] .lr-signatures-block div {
    color: var(--lrge-text) !important;
  }
  section[data-section="lista-raya-ge"] .lr-filter-panel p,
  section[data-section="lista-raya-ge"] #lrgeDatosFiscales,
  section[data-section="lista-raya-ge"] #lrgeFechaPago {
    color: var(--lrge-muted) !important;
  }
  section[data-section="lista-raya-ge"] .lr-filter-panel .field select {
    color: var(--lrge-text) !important;
    background: var(--lrge-surface) !important;
    border-color: var(--lrge-line) !important;
  }
  section[data-section="lista-raya-ge"] #btnLrgeActualizar {
    background: #334155 !important;
    border-color: #334155 !important;
    color: #fff !important;
  }
  section[data-section="lista-raya-ge"] #btnLrgeExcel {
    background: #166534 !important;
    border-color: #166534 !important;
    color: #fff !important;
  }
  section[data-section="lista-raya-ge"] #btnLrgeImprimir {
    background: var(--lrge-surface) !important;
    border: 1px solid var(--lrge-line) !important;
    color: var(--lrge-text) !important;
  }
  section[data-section="lista-raya-ge"] .lr-doc-header {
    border-bottom: 2px solid var(--lrge-line) !important;
  }
  section[data-section="lista-raya-ge"] #lrgeLogoImg {
    background: #fff;
    padding: 3px;
  }
  section[data-section="lista-raya-ge"] .lr-table-wrap {
    background: var(--lrge-surface) !important;
    border-color: var(--lrge-line) !important;
    min-height: 180px;
  }
  section[data-section="lista-raya-ge"] .lr-table {
    color: var(--lrge-text);
    font-size: 12px;
  }
  section[data-section="lista-raya-ge"] .lr-table th,
  section[data-section="lista-raya-ge"] .lr-table td {
    border-right: 1px solid var(--lrge-line) !important;
    border-bottom: 1px solid var(--lrge-line) !important;
    color: var(--lrge-text) !important;
    background: var(--lrge-surface) !important;
  }
  section[data-section="lista-raya-ge"] .lr-table .lr-cat-th {
    height: 34px;
    background: var(--lrge-cat) !important;
    color: var(--lrge-text) !important;
    line-height: 1.2;
  }
  section[data-section="lista-raya-ge"] .lr-table .lr-col-th {
    top: 34px;
    background: var(--lrge-head) !important;
    color: var(--lrge-text) !important;
    vertical-align: middle !important;
  }
  section[data-section="lista-raya-ge"] .lr-table .lr-sticky-1 {
    left: 0;
    width: 96px;
    min-width: 96px;
    max-width: 96px;
  }
  section[data-section="lista-raya-ge"] .lr-table .lr-sticky-2 {
    left: 96px;
    min-width: 240px;
    box-shadow: 3px 0 6px rgba(15, 23, 42, .10);
  }
  section[data-section="lista-raya-ge"] .lr-table .lr-depto-row td,
  section[data-section="lista-raya-ge"] .lr-table .lr-row-subtotal td {
    background: var(--lrge-surface-alt) !important;
    color: var(--lrge-text) !important;
    font-weight: 700;
  }
  section[data-section="lista-raya-ge"] .lr-table .lr-row-grand td {
    background: var(--lrge-cat) !important;
    color: var(--lrge-text) !important;
    font-weight: 800;
    border-top: 2px solid var(--lrge-line) !important;
    border-bottom: 2px solid var(--lrge-line) !important;
  }
  section[data-section="lista-raya-ge"] .lr-table td.lrge-grav,
  section[data-section="lista-raya-ge"] .lr-table th.lrge-grav {
    background: var(--lrge-grav-bg) !important;
    color: var(--lrge-grav-text) !important;
  }
  section[data-section="lista-raya-ge"] .lr-table td.lrge-tgrav,
  section[data-section="lista-raya-ge"] .lr-table th.lrge-tgrav {
    background: var(--lrge-grav-strong) !important;
    color: var(--lrge-grav-text) !important;
    font-weight: 800;
  }
  section[data-section="lista-raya-ge"] .lr-table td.lrge-exen,
  section[data-section="lista-raya-ge"] .lr-table th.lrge-exen {
    background: var(--lrge-exen-bg) !important;
    color: var(--lrge-exen-text) !important;
  }
  section[data-section="lista-raya-ge"] .lr-table td.lrge-texen,
  section[data-section="lista-raya-ge"] .lr-table th.lrge-texen {
    background: var(--lrge-exen-strong) !important;
    color: var(--lrge-exen-text) !important;
    font-weight: 800;
  }
  section[data-section="lista-raya-ge"] .lr-signatures-block div[style*="border-top"] {
    border-color: var(--lrge-muted) !important;
  }
}
