:root {
  --red: #b0202f;
  --red-dark: #8d1824;
  --navy: #131a2a;
  --navy-2: #1d2740;
  --bg: #f4f5f8;
  --card: #ffffff;
  --text: #1a2133;
  --muted: #6b7385;
  --line: #e3e6ec;
  --ok: #1f8a4c;
  --ok-bg: #e6f5ec;
  --warn: #b26b00;
  --warn-bg: #fff4e0;
  --row-atlantida: #fbe3e5;
  --row-occidente: #e4f4d9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(19, 26, 42, .06), 0 2px 8px rgba(19, 26, 42, .05);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; min-height: 100vh;
  display: flex;
}
h1 { font-size: 20px; margin: 0; }
h2 { font-size: 15px; margin: 0 0 14px; }
h3 { font-size: 14px; margin: 18px 0 10px; }
.muted { color: var(--muted); }
code, kbd { font-family: Consolas, monospace; font-size: 12px; background: #eef0f4; padding: 1px 5px; border-radius: 4px; }
kbd { border: 1px solid #d5d9e1; }

/* Sidebar */
.sidebar {
  width: 264px; flex-shrink: 0; color: #c3cad9;
  background:
    radial-gradient(120% 50% at 0% 0%, rgba(176, 32, 47, .22), transparent 60%),
    linear-gradient(180deg, #161e31 0%, #0f1524 100%);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, .04);
  overflow-y: auto;
}
.brand {
  background: #fff; margin: 18px 18px 0; border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35), inset 0 -3px 0 var(--red);
}
.brand img { width: 100%; display: block; }
.brand-sub {
  margin: 12px 18px 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: #8c95aa; text-align: center;
}
nav { display: flex; flex-direction: column; padding: 4px 12px 12px; gap: 2px; }
.nav-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #5f6a82; padding: 16px 12px 6px;
}
nav a {
  position: relative; color: #c3cad9; text-decoration: none; padding: 10px 12px; border-radius: 10px;
  display: flex; align-items: center; gap: 12px; font-weight: 500;
  transition: background .15s, color .15s, transform .15s;
}
nav a span { white-space: nowrap; }
nav a svg {
  width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85;
}
nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
nav a:hover svg { opacity: 1; }
nav a.active {
  background: linear-gradient(90deg, rgba(176, 32, 47, .95), rgba(176, 32, 47, .75));
  color: #fff; box-shadow: 0 6px 16px rgba(176, 32, 47, .35);
}
nav a.active svg { opacity: 1; }
nav a.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px;
  border-radius: 0 4px 4px 0; background: #ff5a6a;
}
.nav-kbd {
  margin-left: auto; font-size: 10px; background: rgba(255, 255, 255, .08); color: #9aa3b8;
  border: 1px solid rgba(255, 255, 255, .1); padding: 1px 6px; border-radius: 5px;
}
nav a.active .nav-kbd { background: rgba(255, 255, 255, .18); color: #fff; border-color: transparent; }
.sidebar-foot { margin-top: auto; padding: 14px 18px 18px; }
.foot-card {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px;
}
.foot-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #9aa3b8; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #e0525f; box-shadow: 0 0 0 3px rgba(224, 82, 95, .18); }
.dot.on { background: #3cc47c; box-shadow: 0 0 0 3px rgba(60, 196, 124, .18); }
.foot-quote { margin-top: 12px; text-align: center; font-size: 11.5px; font-style: italic; color: #6b7590; }

/* Main */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 16px 26px;
  background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5;
}
.status { margin-left: auto; display: flex; gap: 8px; }
.badge { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: #eef0f4; color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.bad { background: #fde8ea; color: var(--red); }
.menu-btn { display: none; border: 0; background: none; font-size: 22px; cursor: pointer; }
.view { padding: 22px 26px; display: none; flex-direction: column; gap: 18px; }
.view.active { display: flex; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid2.nueva { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kpi { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; border-top: 3px solid var(--navy); display: flex; flex-direction: column; gap: 4px; }
.kpi span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.kpi strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); }
.kpi.warn { border-top-color: var(--warn); }
.kpi.ok { border-top-color: var(--ok); }
.kpi:first-child { border-top-color: var(--red); }

.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 100px 1fr 110px; align-items: center; gap: 10px; }
.bar-track { background: #eef0f4; border-radius: 4px; height: 10px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--navy); border-radius: 4px; }
.bar-row .v { text-align: right; font-variant-numeric: tabular-nums; }
.mini-list { display: flex; flex-direction: column; }
.mini-list div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mini-list div:last-child { border-bottom: 0; }
.mini-list b { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff;
  color: var(--text); padding: 8px 14px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 500; white-space: nowrap;
}
.btn:hover { border-color: #c5cad5; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-dark); }
.btn.primary kbd { background: rgba(255,255,255,.18); border-color: transparent; color: #fff; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.sm { padding: 4px 8px; font-size: 12px; }
.icon-btn { border: 0; background: none; cursor: pointer; padding: 4px 6px; border-radius: 6px; font-size: 15px; }
.icon-btn:hover { background: #eef0f4; }
.row-btns { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.row-btns.end { justify-content: flex-end; }

/* Dropzone */
.dropzone {
  border: 2px dashed #c9ced8; border-radius: var(--radius); min-height: 420px; display: flex;
  align-items: center; justify-content: center; position: relative; background: #fafbfc; overflow: hidden; outline: none;
}
.dropzone.small { min-height: 300px; }
.dropzone:focus, .dropzone.over { border-color: var(--red); background: #fdf4f5; }
.dropzone img { max-width: 100%; max-height: 560px; display: block; }
.dz-empty { text-align: center; color: var(--text); padding: 20px; }
.dz-ico { font-size: 40px; color: var(--red); }
.dz-loading {
  position: absolute; inset: 0; background: rgba(255,255,255,.82); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; font-weight: 600;
}
.spinner { width: 34px; height: 34px; border: 3px solid #e5c3c7; border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form label, .filters label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.form label.full { grid-column: 1 / -1; }
input, select, textarea {
  font: inherit; color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; background: #fff; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(176, 32, 47, .25); border-color: var(--red); }
input.filled { background: #fffbea; }
.money { position: relative; }
.form .hint { font-weight: 400; color: var(--muted); }
.dup { margin-top: 12px; background: var(--warn-bg); color: var(--warn); padding: 10px 12px; border-radius: 8px; font-size: 13px; }

.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filters label.grow { flex: 1; min-width: 200px; }
.filters.inline { margin-bottom: 8px; }
.filters label.btn { flex-direction: row; color: #fff; font-size: 14px; }

/* Table */
.table-card { padding: 0; overflow: hidden; }
.table-wrap { overflow: auto; max-height: calc(100vh - 230px); }
.tabla { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabla th {
  background: #f3b58a; color: #1a1a1a; text-align: left; padding: 9px 10px; position: sticky; top: 0;
  font-weight: 700; text-transform: uppercase; font-size: 12px; white-space: nowrap; z-index: 1;
}
.tabla td { padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabla td.num, .tabla th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tabla td.ref { font-family: Consolas, monospace; }
.tabla tr.b-ATLANTIDA td { background: var(--row-atlantida); }
.tabla tr.b-OCCIDENTE td { background: var(--row-occidente); }
.tabla tbody tr:hover td { filter: brightness(.97); }
.tabla tfoot td { font-weight: 700; background: #f7f8fa; position: sticky; bottom: 0; border-top: 2px solid var(--line); }
.tabla .dev { color: var(--red); }
.tabla .acc { text-align: right; }
.pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.pill.pendiente { background: var(--warn-bg); color: var(--warn); }
.pill.conciliado { background: var(--ok-bg); color: var(--ok); }
.pill.posible { background: #e8eefc; color: #2c4fa8; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* Conciliación */
.resumen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 4px; }
.res-sec { margin-top: 0; }
.res-sec h2 { display: flex; align-items: center; gap: 8px; }
.res-sec .count { background: #eef0f4; border-radius: 99px; padding: 1px 9px; font-size: 12px; }
.steps { line-height: 1.8; padding-left: 20px; margin: 0; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(19, 26, 42, .55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 12px; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; padding: 18px 20px; }
.modal-box.wide { max-width: 980px; }
.modal-box.img { max-width: 760px; }
.modal-box header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-box header h2 { margin: 0; }
.x { border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); line-height: 1; }
.img-body { text-align: center; }
.img-body img { max-width: 100%; }

.toast {
  position: fixed; bottom: 22px; right: 22px; background: var(--navy); color: #fff; padding: 12px 16px;
  border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 60; max-width: 380px;
}
.toast.error { background: var(--red); }
.toast.ok { background: var(--ok); }

@media (max-width: 1100px) {
  .kpis, .resumen { grid-template-columns: repeat(2, 1fr); }
  .grid2, .grid2.nueva { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { position: fixed; left: -280px; z-index: 40; transition: left .2s; }
  .sidebar.open { left: 0; }
  .menu-btn { display: block; }
  .view { padding: 16px; }
  .topbar { padding: 12px 16px; }
  .form { grid-template-columns: 1fr; }
  .status { display: none; }
}
.bar-fill.b-ATLANTIDA { background: var(--red); }
.bar-fill.b-OCCIDENTE { background: #4c9a2a; }
.bar-fill.b-BAC { background: var(--navy); }

/* Conciliación: tres estados de cuenta */
.conc-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.conc-top h2 { margin-bottom: 4px; }
.conc-top p { margin: 0; }
#concCard.over { outline: 2px dashed var(--red); outline-offset: 4px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.slot {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff;
  border-top: 4px solid var(--navy); display: flex; flex-direction: column; gap: 8px; min-height: 170px;
}
.slot.b-ATLANTIDA { border-top-color: var(--red); }
.slot.b-OCCIDENTE { border-top-color: #4c9a2a; }
.slot.lleno { background: #fbfcfd; }
.slot-head { display: flex; align-items: center; justify-content: space-between; }
.slot-banco { font-weight: 700; letter-spacing: .04em; }
.slot-fmt { font-size: 11px; font-weight: 600; background: #eef0f4; color: var(--muted); padding: 2px 8px; border-radius: 99px; }
.slot-vacio {
  flex: 1; border: 2px dashed #d3d7df; border-radius: 10px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; cursor: pointer; color: var(--muted); text-align: center; padding: 12px;
}
.slot-vacio:hover { border-color: var(--red); color: var(--text); background: #fdf4f5; }
.slot-plus { font-size: 26px; color: var(--red); line-height: 1; }
.slot-file { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-info { color: var(--ok); font-size: 13px; }
.slot-map summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); }
.slot-map label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.slot-acc { display: flex; gap: 8px; margin-top: auto; }
.tabla td.desc { white-space: normal; min-width: 260px; }
@media (max-width: 1100px) { .slots { grid-template-columns: 1fr; } }
.filters label.btn:not(.primary) { color: var(--text); }
.filters label.btn { font-weight: 500; font-size: 14px; }
.sidebar { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.mismo-row { margin-top: -4px; }
.mismo-btn { background: #f3f5f9; border-color: #dfe3ea; color: var(--navy); }
.mismo-btn:hover { background: #e9edf4; border-color: #c9cfda; }

/* Inicio de sesión */
body.sin-sesion .sidebar, body.sin-sesion .main { visibility: hidden; }
.login {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px;
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(176, 32, 47, .35), transparent 60%),
    linear-gradient(160deg, #161e31 0%, #0f1524 100%);
}
.login-box {
  width: 100%; max-width: 380px; background: #fff; border-radius: 16px; padding: 26px 26px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45); display: flex; flex-direction: column; gap: 12px;
}
.login-logo { padding: 4px 18px 10px; border-bottom: 3px solid var(--red); margin-bottom: 4px; }
.login-logo img { width: 100%; display: block; }
.login-box h2 { margin: 6px 0 0; font-size: 19px; }
.login-box p { margin: 0 0 4px; }
.login-box label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--muted); }
.login-box input { padding: 10px 12px; }
.login-box .btn { justify-content: center; padding: 11px; margin-top: 4px; font-size: 15px; }
.login-err { background: #fde8ea; color: var(--red); padding: 9px 12px; border-radius: 8px; font-size: 13px; }

/* Usuario en la sidebar */
.user-card {
  display: flex; align-items: center; gap: 10px; padding: 10px; margin-bottom: 10px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; font-weight: 700; font-size: 13px;
}
.user-info { flex: 1; min-width: 0; }
.user-nombre { color: #fff; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-perfil { color: #8c95aa; font-size: 11px; }
.user-btn { border: 0; background: none; color: #9aa3b8; cursor: pointer; padding: 5px; border-radius: 7px; display: flex; }
.user-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.user-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Usuarios */
.permisos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; background: #f7f8fa; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.form label.check, .permisos label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; color: var(--text); font-size: 13px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--red); }
.tabla tr.inactivo td { opacity: .55; }
.tabla td.quien { color: var(--muted); font-size: 12px; }
nav a[hidden], nav .nav-label[hidden] { display: none !important; }
@media (max-width: 760px) { .permisos { grid-template-columns: 1fr; } }

/* Acerca de */
.acerca { max-width: 640px; margin: 10px auto; text-align: center; padding: 34px 34px 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.acerca-logo { width: 260px; padding-bottom: 14px; border-bottom: 3px solid var(--red); margin-bottom: 10px; }
.acerca-logo img { width: 100%; display: block; }
.acerca-titulo { font-size: 22px; margin: 4px 0 0; }
.acerca-version { color: var(--muted); margin: 0 0 8px; font-size: 13px; }
.acerca-texto { color: var(--text); line-height: 1.6; margin: 0 0 14px; max-width: 500px; }
.acerca-credito {
  width: 100%; background: linear-gradient(135deg, #161e31, #0f1524); color: #c3cad9; border-radius: 12px;
  padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; box-shadow: inset 0 -3px 0 var(--red);
}
.acerca-lbl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8c95aa; }
.acerca-autor { color: #fff; font-size: 19px; }
.acerca-para b { color: #fff; font-weight: 600; }
.acerca-lista { text-align: left; color: var(--muted); line-height: 1.9; margin: 16px 0 8px; padding-left: 20px; }
.acerca-pie { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

/* Cajas: Caja y Envíos */
.caja-badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }
.caja-badge:empty { display: none; }
.caja-badge.c-CAJA, .caja-pill.c-CAJA { background: #e8eefc; color: #2c4fa8; }
.caja-badge.c-ENVIOS, .caja-pill.c-ENVIOS { background: #fff1de; color: #a65f00; }
.caja-pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #eef0f4; color: var(--muted); }
.bar-fill.c-CAJA { background: #2c4fa8; }
.bar-fill.c-ENVIOS { background: #e08a00; }
.card h2.mt { margin-top: 20px; }

/* Neto = valor - descuento - devoluciones */
.tabla .neto { font-weight: 700; }
.caja-pill.c-ambas { background: #eef0f4; color: #131a2a; }
.conc-caja { margin: 0 0 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Botón "Ver hoy" */
.btn-hoy { align-self: flex-end; }
.btn-hoy.activo { background: var(--red); border-color: var(--red); color: #fff; }
input:disabled { opacity: .5; }

/* Botón de descuento */
.icon-btn.desc-btn { color: var(--red); font-weight: 700; }

/* Botones de acción de las tablas, más grandes y fáciles de tocar */
.tabla .acc { white-space: nowrap; }
.tabla .acc .icon-btn {
  font-size: 19px; min-width: 36px; height: 36px; padding: 4px 8px; margin-left: 2px;
  border: 1px solid #e3e6ec; background: #fff; border-radius: 8px; vertical-align: middle;
}
.tabla .acc .icon-btn:hover { background: #eef0f4; border-color: #cfd4dd; }
.tabla .acc .icon-btn.desc-btn { font-size: 18px; }

/* Ordenar columnas */
.tabla thead th { cursor: pointer; user-select: none; white-space: nowrap; }
.tabla thead th:hover { color: var(--red); }
.tabla thead th.orden-asc::after { content: " ▲"; font-size: 10px; color: var(--red); }
.tabla thead th.orden-desc::after { content: " ▼"; font-size: 10px; color: var(--red); }

/* Cuadre diario */
.cuadre-ayuda { margin: 0 0 12px; }
.cuadre-card { margin-bottom: 16px; }
.cuadre-card h2 { margin-top: 0; }
.cuadre-card h3.mt { margin-top: 16px; }
.cuadre-card.c-CAJA { border-top: 4px solid #2c4fa8; }
.cuadre-card.c-ENVIOS { border-top: 4px solid #e08a00; }
.cuadre-card.total { border-top: 4px solid var(--red); }
/* Historial */
.hist-detalle { max-height: 72vh; overflow: auto; padding: 4px 2px; }
.hist-detalle h3 { margin: 18px 0 8px; font-size: 15px; }
@media print {
  .sidebar, .topbar, .no-print, #toast { display: none !important; }
  body, .main { background: #fff !important; }
  .card { box-shadow: none !important; break-inside: avoid; }
}

/* Cruce con el sistema de facturación */
.sis-chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.sis-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--card); box-shadow: var(--shadow); border-radius: 99px; padding: 6px 8px 6px 14px; border-left: 4px solid var(--navy); font-size: 14px; }
.sis-chip.m-TRANSFERENCIA { border-left-color: #2c4fa8; }
.sis-chip.m-EFECTIVO { border-left-color: var(--ok); }
.sis-chip select { font-size: 12px; padding: 2px 4px; }
.sis-chip .icon-btn { width: 26px; height: 26px; font-size: 13px; }
.cuadre-card.sis-mal { border-top: 4px solid var(--warn); }
.cuadre-card.sis-rev { border-top: 4px solid #e0b000; }
.cuadre-card.sis-ok { border-top: 4px solid var(--ok); }
.resumen.mt { margin-top: 16px; }
.empty-card { color: var(--muted); text-align: center; padding: 30px; }
.cuadre-card.c-EFECTIVO { border-top: 4px solid var(--ok); }
/* Filas marcadas: coincide / no coincide / revisar */
.tabla.marcada tr.est-ok td { background: #e8f6ec; }
.tabla.marcada tr.est-mal td { background: #fde8ea; }
.tabla.marcada tr.est-rev td { background: #fff6d6; }
.tabla.marcada td.estado { font-weight: 700; white-space: nowrap; }
.tabla.marcada tr.est-ok td.estado { color: #1e7a3c; }
.tabla.marcada tr.est-mal td.estado { color: #b3261e; }
.tabla.marcada tr.est-rev td.estado { color: #8a6d00; }
.tabla.marcada[data-filtro="ok"] tr.est-mal, .tabla.marcada[data-filtro="ok"] tr.est-rev, .tabla.marcada[data-filtro="mal"] tr.est-ok { display: none; }
.filtro-est { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.filtro-est .btn.activo { outline: 2px solid var(--navy); font-weight: 700; }
@media print { .tabla.marcada tr td { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
