:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --bg: #f6f2f1; --surface: #fffdfc; --surface-soft: #f9f3f4; --text: #2d1722; --muted: #76636d; --primary: #98164f; --primary-strong: #741039; --accent: #00a59d; --soft: #f6dce7; --border: #ead8df; --shadow: 0 16px 40px rgba(81, 20, 48, .10); --danger: #c64d69; --sidebar: #7e103d; }
:root[data-theme="dark"] { color-scheme: dark; --bg: #140d11; --surface: #251820; --surface-soft: #2e1e29; --text: #f8edf2; --muted: #cebcc5; --primary: #ec5d9f; --primary-strong: #ff91c1; --accent: #4edbd3; --soft: #48243a; --border: #503542; --shadow: 0 16px 40px rgba(0, 0, 0, .34); --danger: #ff8aa0; --sidebar: #260e1b; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); transition: background .2s, color .2s; }
.app-layout { min-height: 100vh; display: flex; }
.app-sidebar { position: sticky; top: 0; width: 244px; height: 100vh; flex: 0 0 244px; display: flex; flex-direction: column; padding: 30px 15px 24px; color: #fff; background: linear-gradient(160deg, #a71853 0%, var(--sidebar) 56%, #650a35 100%); overflow: hidden; }
.app-sidebar::after { content: ""; position: absolute; width: 230px; height: 230px; right: -118px; bottom: -110px; border: 28px solid rgba(57, 226, 210, .9); border-radius: 50%; }
.brand-lockup { position: relative; z-index: 1; display: flex; gap: 13px; align-items: center; padding: 4px 14px 34px; }
.brand-mark { width: 50px; height: 50px; display: grid; place-items: center; background: linear-gradient(135deg, #fff 0 49%, #34d6c8 50%); border-radius: 15px; transform: rotate(-9deg); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.brand-mark span { color: #8b1448; font-size: 30px; font-weight: 900; transform: rotate(9deg); }
.brand-lockup strong { display: block; font-size: 20px; letter-spacing: -.03em; line-height: 1.02; }
.brand-lockup small { display: block; max-width: 110px; margin-top: 7px; color: #f6cfe0; font-size: 10px; font-weight: 700; line-height: 1.15; text-transform: uppercase; letter-spacing: .08em; }
.side-nav { position: relative; z-index: 1; display: grid; gap: 9px; }
.side-nav-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px; color: #f8dfe9; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: #8e1449; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; text-align: left; transition: background .18s ease, color .18s ease, transform .18s ease; }
.side-nav-item:hover { color: #78113c; background: #fff; border-color: #fff; transform: translateX(2px); box-shadow: 0 8px 18px rgba(31,0,15,.26); }
.side-nav-item:hover b { color: #78113c; }
.side-nav-item:focus-visible { outline: 3px solid #39e2d2; outline-offset: 2px; }
.side-nav-item b { display: inline-grid; width: 21px; place-items: center; font-size: 19px; font-weight: 500; }
.side-nav-item.active { color: #f8dfe9; background: #8e1449; }
.side-nav-item.active:hover { color: #78113c; background: #fff; }
.sidebar-footer { position: relative; z-index: 1; margin: auto 12px 0; color: #f6dce7; font-size: 12px; font-weight: 700; line-height: 1.45; }
.sidebar-footer span { color: rgba(255,255,255,.65); font-weight: 500; }
.app-main { min-width: 0; flex: 1; }
.container { width: min(1720px, calc(100% - 56px)); margin: 38px auto 60px; }
.theme-toggle { position: fixed; z-index: 20; top: 22px; right: 28px; border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 9px; color: var(--accent); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(31px, 4vw, 48px); letter-spacing: -.055em; line-height: 1.02; }
.brand-by { display: block; margin-top: 7px; color: var(--primary); font-size: .38em; letter-spacing: .01em; }
.intro { max-width: 760px; margin: 13px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.selection-screen { width: min(1220px, 100%); min-height: calc(100vh - 100px); margin: 0 auto; display: grid; align-content: center; }
.selection-header { margin-bottom: 30px; }
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.option-card { position: relative; min-height: 205px; padding: 22px; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--text); text-align: left; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; align-items: start; gap: 12px; box-shadow: 0 8px 20px rgba(81,20,48,.05); transition: .2s; }
.option-card::after { content: ""; position: absolute; width: 94px; height: 7px; left: 0; bottom: 0; border-radius: 0 8px 0 0; background: var(--accent); }
.option-card:hover, .option-card:focus-visible { color: #fff; border-color: #9b174d; background: linear-gradient(135deg, #b6235f, #7e103e); transform: translateY(-4px); box-shadow: 0 16px 34px rgba(81,20,48,.28); outline: none; }
.option-card:hover::after, .option-card:focus-visible::after { background: #4edbd3; }
.option-card strong { grid-column: 1 / -1; align-self: end; font-size: 21px; line-height: 1.14; letter-spacing: -.03em; }
.option-card > span:last-child { grid-column: 1 / -1; color: var(--muted); line-height: 1.45; font-size: 14px; }
.option-card:hover > span:last-child, .option-card:focus-visible > span:last-child { color: #f9dce9; }
.option-number { display: inline-grid; place-items: center; width: 41px; height: 36px; border-radius: 9px; background: var(--soft); color: var(--primary); font-size: 13px; font-weight: 850; }
.option-card:hover .option-number, .option-card:focus-visible .option-number { background: rgba(255,255,255,.18); color: #fff; }
.option-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; color: var(--primary); font-size: 30px; }
.option-card:hover .option-icon, .option-card:focus-visible .option-icon { color: #fff; }
.extractor-screen > header { position: relative; padding: 28px 30px; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(120deg, var(--surface), var(--surface-soft)); box-shadow: var(--shadow); }
.extractor-screen > header::after { content: ""; position: absolute; width: 270px; height: 270px; right: -110px; top: -195px; border: 26px solid color-mix(in srgb, var(--accent) 70%, transparent); border-radius: 50%; opacity: .75; }
.workflow-bar { position: relative; z-index: 1; margin-top: 22px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--soft) 74%, transparent); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.text-button { padding: 6px 8px; background: transparent; color: var(--primary-strong); text-decoration: underline; }
.provider-bar { position: relative; z-index: 1; margin-top: 12px; padding: 15px 16px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.provider-bar > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.provider-bar strong { font-size: 15px; }
.provider-bar span { color: var(--muted); font-size: 13px; }
.provider-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.provider-form { position: relative; z-index: 1; margin-top: 12px; padding: 18px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-soft); display: grid; grid-template-columns: 1fr 1.4fr 1fr auto; align-items: end; gap: 12px; }
.provider-form-title { grid-column: 1 / -1; color: var(--text); }
.provider-form label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 750; }
.provider-form input, .table-input { min-height: 40px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--text); background: var(--surface); }
.provider-form input:focus, .table-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); outline: none; }
.provider-form-actions { display: flex; gap: 8px; }
.provider-list-panel { position: relative; z-index: 1; margin-top: 12px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface); overflow: hidden; }
.provider-list-header { padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; background: var(--surface-soft); }
.provider-list-header span { color: var(--muted); font-size: 13px; }
.provider-list-scroll { max-height: 330px; overflow: auto; }
.provider-list-table { min-width: 700px; }
.provider-list-table td, .provider-list-table th { padding: 10px 14px; }
.provider-list-table button { padding: 7px 11px; }
.drop-zone { min-height: 205px; margin-top: 24px; border: 2px dashed color-mix(in srgb, var(--primary) 45%, var(--border)); border-radius: 19px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; cursor: pointer; transition: .2s; text-align: center; padding: 30px; }
.drop-zone:hover, .drop-zone:focus, .drop-zone.dragging { border-color: var(--primary); background: var(--surface-soft); outline: none; transform: translateY(-2px); }
.drop-zone .icon { padding: 10px 13px; border-radius: 10px; background: var(--soft); color: var(--primary); font-size: 13px; font-weight: 850; }
.drop-zone strong { font-size: 20px; letter-spacing: -.02em; }
.drop-zone span { color: var(--muted); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 22px 0 14px; }
.toolbar p { margin: 0; color: var(--muted); }
.actions { display: flex; gap: 9px; }
button { appearance: none; border: 0; border-radius: 9px; background: var(--primary); color: #fff; padding: 10px 15px; font-weight: 750; cursor: pointer; transition: transform .15s, filter .15s, box-shadow .15s; }
button:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-1px); }
button.secondary { background: var(--soft); color: var(--primary-strong); }
button:disabled { opacity: .45; cursor: not-allowed; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; white-space: nowrap; }
th { position: sticky; top: 0; z-index: 1; background: linear-gradient(90deg, var(--primary-strong), var(--primary)); color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .025em; }
tbody tr:hover { background: color-mix(in srgb, var(--soft) 34%, transparent); }
.number { text-align: right; font-variant-numeric: tabular-nums; }
.empty td { padding: 44px; color: var(--muted); text-align: center; }
.ok { color: var(--accent); font-weight: 800; }
.error { color: var(--danger); font-weight: 800; }
.table-input { width: 170px; min-height: 38px; }
.amount-with-detail { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; }
.adjustment-button { width: 26px; height: 26px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: var(--soft); color: var(--primary-strong); font-size: 15px; line-height: 1; }
.adjustment-button:hover, .adjustment-button:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.adjustment-dialog { width: min(580px, calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--border); border-radius: 18px; color: var(--text); background: var(--surface); box-shadow: 0 24px 80px rgba(0, 0, 0, .32); }
.adjustment-dialog::backdrop { background: rgba(20, 10, 16, .68); backdrop-filter: blur(3px); }
.adjustment-dialog-header { padding: 20px 22px 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--border); }
.adjustment-dialog h2 { margin: 0; font-size: 24px; }
.adjustment-dialog .eyebrow { margin-bottom: 4px; }
.dialog-close { padding: 8px 11px; }
.adjustment-invoice { margin: 0; padding: 14px 22px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.adjustment-breakdown { padding: 12px 22px 22px; }
.adjustment-line { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.adjustment-line span:last-child { font-variant-numeric: tabular-nums; font-weight: 750; white-space: nowrap; }
.adjustment-line.negative span:last-child { color: var(--danger); }
.adjustment-line.positive span:last-child { color: var(--accent); }
.adjustment-line.total { margin-top: 5px; padding-top: 14px; border-bottom: 0; font-size: 16px; font-weight: 800; }
.adjustment-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
@media (min-width: 1200px) { .extractor-screen table { min-width: 0; } .extractor-screen th, .extractor-screen td { padding: 11px clamp(6px, .65vw, 13px); font-size: clamp(11px, .72vw, 14px); } .extractor-screen th { font-size: clamp(10px, .63vw, 12px); } .extractor-screen .table-input { width: clamp(115px, 9vw, 170px); } }
@media (max-width: 980px) { .app-sidebar { width: 78px; flex-basis: 78px; padding: 22px 10px; } .brand-lockup { justify-content: center; padding: 4px 0 32px; } .brand-lockup > div:last-child, .side-nav-item > span { display: none; } .side-nav-item { justify-content: center; padding: 13px 6px; } .side-nav-item b { font-size: 20px; } .sidebar-footer { display: none; } .container { width: min(1720px, calc(100% - 32px)); } }
@media (max-width: 760px) { .app-layout { display: block; } .app-sidebar { position: relative; width: 100%; height: auto; min-height: 78px; padding: 12px 18px; flex-direction: row; align-items: center; gap: 12px; overflow: visible; } .app-sidebar::after { display: none; } .brand-lockup { flex: 0 0 auto; padding: 0; } .brand-lockup > div:last-child { display: block; } .brand-lockup strong { font-size: 16px; } .brand-lockup small { display: none; } .side-nav { display: flex; flex: 1; justify-content: flex-end; gap: 6px; } .side-nav-item { width: 40px; min-width: 40px; height: 40px; padding: 8px; } .side-nav-item b { font-size: 18px; } .theme-toggle { top: 15px; right: 15px; } .container { width: min(100% - 26px, 1720px); margin: 25px auto 42px; } .selection-screen { min-height: auto; padding: 30px 0; } .option-grid { grid-template-columns: 1fr; } .option-card { min-height: 160px; } }
@media (max-width: 650px) { .toolbar, .provider-bar { align-items: stretch; flex-direction: column; } .actions button, .provider-actions button { flex: 1; } .provider-actions, .provider-form-actions { flex-direction: column; } .provider-form { grid-template-columns: 1fr; } .workflow-bar { align-items: flex-start; flex-direction: column; } .extractor-screen > header { padding: 22px 18px; } }

tbody tr.row-invalid > td {
  background: color-mix(in srgb, var(--danger, #c0392b) 9%, transparent);
  color: var(--muted, #6b6b6b);
}
tbody tr.row-invalid > td:first-child::before {
  content: '⚠ ';
  color: var(--danger, #c0392b);
  font-weight: 700;
}

.history-screen > header { position: relative; padding: 28px 30px; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(120deg, var(--surface), var(--surface-soft)); box-shadow: var(--shadow); }
.history-screen table { min-width: 0; }
.history-screen td { white-space: normal; }

body[data-sesion="pendiente"] .app-layout { display: none; }
.login-screen { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: linear-gradient(140deg, var(--sidebar), var(--primary-strong)); overflow: auto; }
.login-card { display: grid; gap: 15px; width: min(380px, 100%); padding: 32px 30px; border-radius: 22px; background: var(--surface); box-shadow: 0 26px 70px rgba(0,0,0,.35); }
.login-card .brand-mark { justify-self: center; }
.login-card h1 { margin: 0; font-size: 25px; text-align: center; }
.login-intro { margin: -8px 0 4px; color: var(--muted); font-size: 13px; text-align: center; }
.login-card label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.login-card select, .login-card input { padding: 11px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.login-card button { padding: 12px; font-size: 15px; }
.login-error { margin: 0; color: var(--danger); font-size: 13px; font-weight: 700; text-align: center; }
.sidebar-session { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 11px 13px; border: 1px solid rgba(255,255,255,.17); border-radius: 12px; color: #fbe6ef; font-size: 12px; font-weight: 700; }
.sidebar-logout { padding: 5px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; background: transparent; color: #fff; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; }
.sidebar-logout:hover { background: rgba(255,255,255,.16); }
@media (max-width: 980px) { .sidebar-session { flex-direction: column; gap: 5px; padding: 8px 4px; font-size: 10px; text-align: center; } }
@media (max-width: 760px) { .sidebar-session { display: none; } }

.providers-screen > header, .users-screen > header { position: relative; padding: 28px 30px; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(120deg, var(--surface), var(--surface-soft)); box-shadow: var(--shadow); }
.providers-screen table, .users-screen table { min-width: 0; }
.providers-screen td, .users-screen td { white-space: normal; }
.scope-label { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; }
.scope-label select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; }
.provider-hint { margin: 0; color: var(--muted); }
.users-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.user-actions { display: flex; gap: 7px; }
.user-export { display: grid; gap: 11px; margin: 16px 0; padding: 20px 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.user-export p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.user-export textarea { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-soft); color: var(--text); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; resize: vertical; }
@media (max-width: 650px) { .users-form { grid-template-columns: 1fr; } }

.user-dialog { width: min(760px, calc(100vw - 32px)); max-height: 88vh; padding: 0; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.user-dialog::backdrop { background: rgba(26, 5, 16, .55); }
.user-dialog form { display: grid; gap: 17px; max-height: 88vh; padding: 26px 28px 24px; overflow-y: auto; }
.user-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.user-dialog-header h2 { margin: 2px 0 0; font-size: 23px; }
.user-dialog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.user-dialog-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.user-dialog-grid input, .user-dialog-grid select { padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.user-dialog-note { margin: -8px 0 0; color: var(--muted); font-size: 12.5px; }
.permission-group { display: grid; gap: 9px; margin: 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-soft); }
.permission-group legend { padding: 0 8px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.permission { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 11px; padding: 7px 9px; border-radius: 11px; cursor: pointer; }
.permission:hover { background: color-mix(in srgb, var(--soft) 45%, transparent); }
.permission input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--primary); }
.permission span { display: grid; gap: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.permission strong { color: var(--text); font-size: 14px; }
.permission-summary { max-width: 300px; color: var(--muted); font-size: 12.5px; }
@media (max-width: 650px) { .user-dialog-grid { grid-template-columns: 1fr; } }

.compare-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 16px 0 0; padding: 16px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.compare-bar-text strong { display: block; font-size: 15px; }
.compare-bar-text p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.compare-report { display: grid; gap: 14px; margin: 16px 0 0; }
.compare-head { padding: 20px 22px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(120deg, var(--surface), var(--surface-soft)); box-shadow: var(--shadow); }
.compare-head h2 { margin: 0 0 12px; font-size: 20px; }
.compare-head dl { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
.compare-head dt { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.compare-head dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; }
.compare-block { padding: 18px 20px; border: 1px solid var(--border); border-left-width: 5px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.compare-block.neutro { border-left-color: var(--primary); }
.compare-block.aviso { border-left-color: #c98a00; }
.compare-block.malo { border-left-color: var(--danger); }
.compare-block h3 { margin: 0 0 10px; font-size: 15px; }
.compare-block .table-wrap { margin: 0; }
.compare-block table { min-width: 0; }
.compare-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.compare-nota { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.pill { display: inline-block; min-width: 22px; margin-right: 7px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; text-align: center; }
.pill-ok { background: #d9f2df; color: #15692f; }
.pill-mal { background: #fbe0e0; color: #96221f; }
.pill-aviso { background: #fbeecd; color: #875600; }
.pill-neutro { background: var(--soft); color: var(--primary); }
tbody tr.row-ok > td { background: color-mix(in srgb, #2e9e52 11%, transparent); }
tbody tr.row-diff > td { background: color-mix(in srgb, var(--danger, #c0392b) 12%, transparent); }
tbody tr.row-falta > td { background: color-mix(in srgb, #d79a00 15%, transparent); }
tbody tr.row-ok > td:first-child::before { content: '✓ '; color: #15692f; font-weight: 700; }
tbody tr.row-diff > td:first-child::before { content: '✕ '; color: var(--danger); font-weight: 700; }
tbody tr.row-falta > td:first-child::before { content: '• '; color: #875600; font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill-ok { background: #1d4a2c; color: #b7ecc6; } :root:not([data-theme="light"]) .pill-mal { background: #552222; color: #f6c3c0; } :root:not([data-theme="light"]) .pill-aviso { background: #54400f; color: #f6dfa8; } }
:root[data-theme="dark"] .pill-ok { background: #1d4a2c; color: #b7ecc6; }
:root[data-theme="dark"] .pill-mal { background: #552222; color: #f6c3c0; }
:root[data-theme="dark"] .pill-aviso { background: #54400f; color: #f6dfa8; }

tfoot tr.totales > td { position: sticky; bottom: 0; border-top: 2px solid var(--primary); background: var(--surface-soft); font-size: 14px; font-weight: 800; white-space: nowrap; }
tfoot tr.totales > td:first-child { color: var(--primary); letter-spacing: .01em; }

th.acciones, td.acciones { width: 1%; text-align: center; white-space: nowrap; }
.row-delete { padding: 5px 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--muted); cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; }
.row-delete:hover { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
