/* 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;
  }
}
