:root {
  --red: #c8102e;
  --red-dark: #9f0c25;
  --green: #0f9f6e;
  --green-bg: rgba(15,159,110,.12);
  --blue: #2563eb;
  --blue-bg: rgba(37,99,235,.12);
  --amber: #b7791f;
  --amber-bg: rgba(183,121,31,.13);
  --red-bg: rgba(200,16,46,.1);
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #151827;
  --muted: #667085;
  --line: #dde3ec;
  --line-strong: #c7d0dd;
  --border: var(--line);
  --primary: var(--red);
  --surface-secondary: var(--surface-2);
  --text-primary: var(--ink);
  --text-secondary: var(--muted);
  --shadow: 0 1px 3px rgba(18,24,40,.06), 0 8px 24px rgba(18,24,40,.07);
  --shadow-md: 0 4px 16px rgba(18,24,40,.1), 0 1px 4px rgba(18,24,40,.06);
  --radius: 10px;
  --sidebar: #151827;
  --sidebar-soft: #1f2535;
  --focus: 0 0 0 3px rgba(200,16,46,.2);
  color-scheme: light;
}

body.dark {
  --bg: #0f1118;
  --surface: #171a24;
  --surface-2: #1e2130;
  --ink: #edf0f7;
  --muted: #9ca7ba;
  --line: #2d3547;
  --line-strong: #3c465d;
  --shadow: 0 1px 3px rgba(0,0,0,.2), 0 8px 24px rgba(0,0,0,.22);
  --shadow-md: 0 4px 16px rgba(0,0,0,.28), 0 1px 4px rgba(0,0,0,.18);
  --sidebar: #0b0d13;
  --sidebar-soft: #151927;
  --green-bg: rgba(15,159,110,.15);
  --blue-bg: rgba(37,99,235,.15);
  --amber-bg: rgba(183,121,31,.16);
  --red-bg: rgba(200,16,46,.14);
  color-scheme: dark;
}

/* Reducir movimiento para usuarios con preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }

input, select, textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--red);
  box-shadow: var(--focus);
}

input[readonly] {
  background: var(--surface-2);
  color: var(--muted);
}

textarea { resize: vertical; }

table { width: 100%; border-collapse: collapse; }

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--surface-2);
}

td { font-size: 14px; }

tbody tr {
  transition: background .12s;
}

tbody tr:hover { background: var(--surface-2); }

small { color: var(--muted); font-size: 12px; }

.hidden { display: none !important; }

/* ─── LOGIN ───────────────────────────────────────────── */

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #0b0d13 0%, #151827 30%, #1a0812 65%, #c8102e 100%);
  background-size: 400% 400%;
  animation: gradientShift 9s ease infinite;
}

.login-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
}

.brand-row, .brand-mini, .top-left, .top-actions,
.action-row, .panel-head, .total-row, .user-box,
.line-editor, .filters, .inline-actions {
  display: flex;
  align-items: center;
}
.filters { flex-wrap: wrap; gap: 10px; }
.hist-filters input[type="date"],
.hist-filters input[type="number"] { width: 150px; flex: none; }
.hist-filters input[type="search"] { min-width: 200px; }

.brand-row { gap: 16px; margin-bottom: 28px; }

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .5px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(200,16,46,.4);
}

.brand-mark.small {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 12px;
  box-shadow: none;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 { margin-bottom: 0; font-size: 26px; line-height: 1.2; }
h2 { margin: 0; font-size: 21px; font-weight: 700; }
h3 { margin-bottom: 0; font-size: 17px; font-weight: 700; }

.login-form { display: grid; gap: 14px; }

.login-form label, .field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

.label-optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
}

.pass-wrap {
  position: relative;
}

.pass-wrap input {
  padding-right: 44px;
}

.pass-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  padding: 0;
  transition: color .15s, background .15s;
}

.pass-toggle svg { width: 17px; height: 17px; }

.pass-toggle:hover { color: var(--ink); background: var(--surface-2); }

.form-error {
  min-height: 16px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
}
.btn-login-submit { font-weight: 700; letter-spacing: .03em; }
.login-forgot {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  margin-top: -6px;
  transition: color .15s;
}
.login-forgot:hover { color: var(--red); text-decoration: underline; }
.btn-copy-creds {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 6px;
  transition: all .15s;
}
.btn-copy-creds:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }

.demo-note {
  display: grid;
  gap: 5px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.demo-note strong { color: var(--ink); }

/* ─── APP SHELL ───────────────────────────────────────── */

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 256px 1fr;
}

/* ─── SIDEBAR ─────────────────────────────────────────── */

.sidebar {
  min-height: 100vh;
  background: var(--sidebar);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.07);
}

.sidebar-head {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mini { gap: 10px; }

.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 14px; }
.brand-copy span, .user-box span { color: #8a96b0; font-size: 12px; }

.nav-list { display: flex; flex-direction: column; gap: 1px; padding: 8px 4px; flex: 1; }

.nav-item {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8a96b0;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  transition: background .13s, color .13s;
}

.nav-item:hover { background: var(--sidebar-soft); color: #d8dfed; }

.nav-item.active {
  background: var(--sidebar-soft);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--red);
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  opacity: .7;
}

.nav-item.active .nav-icon { opacity: 1; color: #fff; }
.nav-item:hover .nav-icon { opacity: .9; }
.nav-icon svg { width: 17px; height: 17px; }

.nav-list > details.nav-group {
  display: block;
  margin: 2px 0;
}
.nav-list > details.nav-group[open] {
  background: rgba(255,255,255,.02);
  border-radius: 8px;
  margin: 2px 0;
  padding-bottom: 4px;
}
nav details.nav-group summary {
  list-style: none;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: #8a96b0;
  padding: 9px 10px 9px 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: background .13s, color .13s;
  user-select: none;
  position: relative;
}
nav details.nav-group summary::-webkit-details-marker { display: none; }
nav details.nav-group summary::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  margin-top: -3px;
  width: 6px;
  height: 6px;
  border: solid #5a6e8a;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(-45deg);
  transition: transform .2s, margin-top .2s;
}
nav details.nav-group[open] > summary::before {
  transform: rotate(45deg);
  margin-top: -5px;
}
nav details.nav-group summary:hover {
  background: var(--sidebar-soft);
  color: #d8dfed;
}
nav details.nav-group summary.-nested {
  padding-left: 44px;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
nav details.nav-group summary.-nested::before {
  left: 26px;
}
nav details.nav-group > .nav-item.sub {
  padding-left: 44px;
  font-size: 13px;
  font-weight: 400;
  margin: 0 4px;
  width: calc(100% - 8px);
  border-radius: 6px;
}
nav details.nav-group > .nav-item.sub:hover {
  background: var(--sidebar-soft);
  color: #d8dfed;
}
nav details.nav-group > .nav-item.sub.active {
  background: var(--sidebar-soft);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--red);
}
nav details.nav-group details.nav-group > .nav-item.sub {
  padding-left: 58px;
  font-size: 13px;
  font-weight: 400;
  margin: 0 4px;
  width: calc(100% - 8px);
  border-radius: 6px;
}
nav details.nav-group details.nav-group > .nav-item.sub:hover {
  background: var(--sidebar-soft);
  color: #d8dfed;
}
nav details.nav-group details.nav-group > .nav-item.sub.active {
  background: var(--sidebar-soft);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--red);
}
.nav-divider {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin: 6px 14px;
}

.user-box {
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ─── TOPBAR ──────────────────────────────────────────── */

.main-area { min-width: 0; }

.topbar {
  min-height: 68px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.top-left { gap: 12px; }
.top-actions { gap: 8px; }

/* ─── CONTENT & VIEWS ────────────────────────────────── */

.content { padding: 24px; }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.view { display: none; }

.view.active {
  display: block;
  animation: viewIn .2s ease;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.section-head p, .panel p, .client-summary { color: var(--muted); }
.section-head p { margin-bottom: 0; font-size: 14px; }

/* ─── PANEL ───────────────────────────────────────────── */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-head {
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-head.compact { padding-bottom: 14px; }

.panel-body { padding: 18px; }

/* ─── KPI CARDS ───────────────────────────────────────── */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--line);
  transition: box-shadow .2s, transform .2s;
  cursor: default;
}

.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.kpi-card.kpi-blue  { border-top-color: var(--blue); }
.kpi-card.kpi-green { border-top-color: var(--green); }
.kpi-card.kpi-amber { border-top-color: var(--amber); }
.kpi-card.kpi-red   { border-top-color: var(--red); }

.kpi-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.kpi-card strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
}

.kpi-card.kpi-blue  strong { color: var(--blue); }
.kpi-card.kpi-green strong { color: var(--green); }
.kpi-card.kpi-amber strong { color: var(--amber); }
.kpi-card.kpi-red   strong { color: var(--red); }

.kpi-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

/* ─── TABLE ───────────────────────────────────────────── */

.table-wrap { overflow-x: auto; }

.table-wrap.short {
  max-height: 520px;
  margin-top: 14px;
  overflow: auto;
}

/* ─── FORMS & LAYOUT ─────────────────────────────────── */

.form-grid { display: grid; gap: 16px; }

.form-grid.two {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
}

.form-grid.split {
  grid-template-columns: minmax(320px, 420px) 1fr;
}

.form-grid.inner { gap: 12px; padding: 18px; margin: 0; }

.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field-pad { padding: 18px 18px 0; }
.field.grow { flex: 1 1 320px; }
.field.tiny { width: 112px; flex: 0 0 112px; }
.checkbox-inline { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; user-select: none; }
.checkbox-inline input { width: auto; margin: 0; }

.client-summary {
  margin: 14px 18px 18px;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  line-height: 1.55;
  font-size: 14px;
}

/* ─── IMAGE PREVIEW ───────────────────────────────────── */

.image-preview, .product-thumb, .line-thumb {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
}

.image-preview { min-height: 110px; }

.image-preview img, .product-thumb img, .line-thumb img,
img.product-thumb, img.line-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb { width: 52px; height: 52px; border-radius: 8px; }
.line-thumb    { width: 42px; height: 42px; border-radius: 7px; }

/* ─── STOCK ───────────────────────────────────────────── */

.stock-number { font-weight: 700; }
.stock-number.low { color: var(--amber); }
.stock-number.out { color: var(--red); }

/* ─── DOCUMENT FORM ───────────────────────────────────── */

.line-editor {
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.line-editor .btn { align-self: end; }

.lines-table input { min-width: 76px; padding: 7px 8px; }

.totals-layout { margin-top: 16px; }

.notes-panel textarea {
  min-height: 180px;
  border: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}

.total-panel { padding: 18px; }

.total-row {
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.total-row.editable label {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 120px;
  color: var(--muted);
}

.total-row.editable input { padding: 7px; text-align: right; }

.total-row.grand {
  border-bottom: 0;
  padding-top: 16px;
  font-size: 22px;
  font-weight: 800;
}

.total-row.grand strong { color: var(--red); }

/* ─── ACTION ROWS ─────────────────────────────────────── */

.action-row {
  justify-content: flex-end;
  gap: 9px;
  margin-top: 16px;
}

.action-row.left { justify-content: flex-start; padding: 0 18px 18px; }

.stack-form { display: grid; gap: 14px; }

.stack-form > .btn.primary { margin: 0 18px 18px; width: fit-content; }

/* ─── FILTERS ─────────────────────────────────────────── */

.inline-panel {
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.inline-panel input { flex: 1; min-width: 180px; }
.inline-panel select { width: 190px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.checkbox-label input[type="checkbox"] { width: auto; margin: 0; }

/* ─── CARDS GRID (users/backup) ───────────────────────── */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  padding: 18px;
}

.user-card, .backup-card { padding: 18px; }

.user-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: box-shadow .15s;
}

.user-card:hover { box-shadow: var(--shadow-md); }

.user-card strong { display: block; }
.user-card span { color: var(--muted); font-size: 13px; }

.backup-grid { padding: 0; }

.backup-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.backup-icon svg { width: 26px; height: 26px; }

.backup-icon-blue  { background: var(--blue-bg);  color: var(--blue); }
.backup-icon-green { background: var(--green-bg); color: var(--green); }
.backup-icon-red   { background: var(--red-bg);   color: var(--red); }

.backup-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; min-height: 54px; }

.danger-zone { border-color: rgba(200,16,46,.3); }

.narrow-panel { max-width: 820px; }

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.chart-panel { padding: 16px; }
.chart-panel.chart-wide { grid-column: 1 / -1; }
.chart-box {
  position: relative;
  height: 260px;
  margin-top: 12px;
}
.chart-panel.chart-wide .chart-box { height: 300px; }

.pdf-design-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.4fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 1100px) {
  .pdf-design-grid { grid-template-columns: 1fr; }
}
.pdf-preview-wrap {
  border: 1px solid var(--border, #e1e4ed);
  border-radius: 8px;
  background: #525659;
  height: calc(100vh - 220px);
  min-height: 540px;
  overflow: hidden;
  padding: 8px;
}
.pdf-preview-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  display: block;
}

/* ─── RUC SEARCH ──────────────────────────────────────── */

.token-help-link {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.token-help-link:hover { text-decoration: underline; }

.doc-search-wrap {
  display: flex;
  gap: 8px;
}

.doc-search-wrap input { flex: 1; }

.doc-search-wrap .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.doc-search-wrap .btn svg {
  width: 14px;
  height: 14px;
}

.ruc-status {
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.ruc-status.ok     { background: var(--green-bg); color: #07633f; }
.ruc-status.warn   { background: var(--amber-bg); color: #7a4f00; }
.ruc-status.error  { background: var(--red-bg);   color: var(--red-dark); }
.ruc-status.loading { background: var(--surface-2); color: var(--muted); }

body.dark .ruc-status.ok    { color: #4fd8a8; }
body.dark .ruc-status.warn  { color: #e8b84e; }
body.dark .ruc-status.error { color: #f47b8b; }

/* ─── TIPO DE CAMBIO ──────────────────────────────────── */

.tipo-cambio-info {
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tipo-cambio-info.ok      { background: var(--green-bg); color: #07633f; }
.tipo-cambio-info.warn    { background: var(--amber-bg); color: #7a4f00; }
.tipo-cambio-info.error   { background: var(--red-bg);   color: var(--red-dark); }
.tipo-cambio-info.loading { background: var(--surface-2); color: var(--muted); }

body.dark .tipo-cambio-info.ok   { color: #4fd8a8; }
body.dark .tipo-cambio-info.warn { color: #e8b84e; }

.tc-label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .8;
}

.tc-date {
  opacity: .7;
  font-size: 11.5px;
}

.tc-pair { font-size: 13px; }
.tc-pair strong { font-weight: 800; }
.tc-sep { opacity: .4; }

/* ─── BADGES ──────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
}

.badge.pending { color: #7a4f00; background: var(--amber-bg); }
.badge.ok      { color: #07633f; background: var(--green-bg); }
.badge.paid    { color: #1a46a0; background: var(--blue-bg); }
.badge.low     { color: #7a4f00; background: var(--amber-bg); }
.badge.cancel  { color: var(--red-dark); background: var(--red-bg); }

body.dark .badge.pending { color: #e8b84e; }
body.dark .badge.ok      { color: #4fd8a8; }
body.dark .badge.paid    { color: #7eb3f7; }
body.dark .badge.low     { color: #e8b84e; }
body.dark .badge.cancel  { color: #f47b8b; }

/* ─── BUTTONS ─────────────────────────────────────────── */

.btn, .icon-btn {
  border: 1.5px solid transparent;
  border-radius: 8px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  transition: transform .13s, background .13s, border-color .13s, box-shadow .13s;
  text-decoration: none;
}

.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn:hover, .icon-btn:hover { transform: translateY(-1px); }
.btn:active, .icon-btn:active { transform: translateY(0); }

.btn.primary { background: var(--red); color: #fff; box-shadow: 0 2px 8px rgba(200,16,46,.3); }
.btn.primary:hover { background: var(--red-dark); box-shadow: 0 4px 14px rgba(200,16,46,.38); }

.btn.secondary { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: var(--surface); border-color: var(--line-strong); }

.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }

.btn.danger { background: var(--red-dark); color: #fff; }
.btn.danger:hover { background: var(--red); }

.btn.small { min-height: 32px; padding: 6px 11px; font-size: 12px; }
.btn.small svg { width: 13px; height: 13px; }

.btn.wide { width: 100%; }

.icon-btn {
  width: 40px;
  padding: 0;
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line);
}

.icon-btn svg { width: 17px; height: 17px; }

.icon-btn.ghost {
  background: transparent;
  color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.15);
}
#logoutBtn { transition: all .2s ease; }
#logoutBtn:hover { color: #ff6b6b; border-color: rgba(255,80,80,.4); background: rgba(255,50,50,.1); }

.icon-btn.ghost:hover { color: #fff; background: rgba(255,255,255,.08); }

.inline-actions { gap: 6px; flex-wrap: wrap; }

.inline-actions .btn { min-height: 30px; padding: 5px 10px; font-size: 12px; }

/* ─── TOAST ───────────────────────────────────────────── */

@keyframes toastIn {
  from { transform: translateY(16px) scale(.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translateY(0) scale(1); opacity: 1; max-height: 80px; margin-top: 0; }
  to   { transform: translateY(8px) scale(.97); opacity: 0; max-height: 0; margin-top: -8px; }
}

.toast-area {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 40px));
}

.toast {
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  animation: toastIn .25s ease;
}

.toast.ok   { border-left-color: var(--green); }
.toast.info { border-left-color: var(--blue); }
.toast.removing { animation: toastOut .25s ease forwards; }

/* ─── MODAL ───────────────────────────────────────────── */

@keyframes modalIn {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,12,20,.55);
  display: grid;
  place-items: center;
  padding: 24px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: none;
}

.modal-overlay:not(.hidden) { animation: fadeOverlay .15s ease; }

@keyframes fadeOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  width: min(440px, 100%);
  box-shadow: 0 24px 64px rgba(0,0,0,.3);
  animation: modalIn .18s ease;
}

.modal-title { margin-bottom: 10px; font-size: 18px; font-weight: 700; }
.modal-message { color: var(--muted); font-size: 14px; margin-bottom: 18px; line-height: 1.55; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ─── EMPTY STATE ─────────────────────────────────────── */

.empty-row {
  color: var(--muted);
  text-align: center;
  padding: 32px;
  font-size: 14px;
}

/* ─── MOBILE ──────────────────────────────────────────── */

.mobile-only { display: none; }

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }

  .form-grid.two, .form-grid.split { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .app-shell { grid-template-columns: 1fr; }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: 280px;
    transform: translateX(-108%);
    transition: transform .22s cubic-bezier(.4,0,.2,1), box-shadow .22s;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 6px 0 32px rgba(0,0,0,.3);
  }

  .mobile-only { display: inline-flex; }

  .topbar {
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .top-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    gap: 6px;
  }

  .content { padding: 16px; }

  .section-head { flex-direction: column; align-items: stretch; }

  .kpi-grid { grid-template-columns: 1fr 1fr; }

  .line-editor { align-items: stretch; }

  .field.tiny { width: 100%; flex-basis: auto; }

  .inline-panel { flex-direction: column; }
  .inline-panel select { width: 100%; }
}

/* ─── API MODULE ───────────────────────────────────── */

.tokens-grid {
  display: grid;
  gap: 10px;
}

.token-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 12.5px;
}

.token-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.token-name {
  font-weight: 700;
  color: var(--ink);
}

.token-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--green-bg);
  color: var(--green);
}

.token-value {
  font-family: 'Courier New', monospace;
  background: var(--surface);
  padding: 8px;
  border-radius: 6px;
  word-break: break-all;
  margin: 8px 0;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.token-copy-btn {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.token-copy-btn:hover { background: var(--red-dark); }

.token-stats {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

.api-test-result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12px;
}

.api-test-result.ok {
  background: var(--green-bg);
  border-color: var(--green);
}

.api-test-result.error {
  background: var(--red-bg);
  border-color: var(--red);
}

.api-test-result pre {
  overflow-x: auto;
  padding: 8px;
  background: var(--surface);
  border-radius: 6px;
  font-size: 11px;
  margin: 8px 0 0;
}

.api-docs {
  padding: 16px;
}

.api-docs h4 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}

.api-docs h4:first-child { margin-top: 0; }

.api-docs pre {
  background: var(--surface-2);
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 12px;
  border: 1px solid var(--line);
}

.api-docs code {
  font-family: 'Courier New', monospace;
  color: var(--muted);
}

.api-docs p {
  color: var(--muted);
  line-height: 1.6;
}

/* ─── TABS ──────────────────────────────────────────── */

.tabs-container {
  display: grid;
  gap: 16px;
}

.tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--line);
}

.tab-btn {
  padding: 12px 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.integrations-list {
  display: grid;
  gap: 12px;
}

.integration-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.integration-info {
  flex: 1;
}

.integration-info h4 {
  margin: 0 0 4px;
  font-size: 14px;
}

.integration-info p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.integration-status {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.integration-status.active {
  background: var(--green-bg);
  color: var(--green);
}

.integration-status.inactive {
  background: var(--amber-bg);
  color: var(--amber);
}

/* ──────────────────────────────────────────────────────── */
/* BREADCRUMBS NAVIGATION */
/* ──────────────────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 0;
  font-size: 13px;
  flex-wrap: wrap;
}

.breadcrumb-item {
  background: none;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: 4px;
  transition: all 0.2s;
  font-size: inherit;
  font-family: inherit;
}

.breadcrumb-item:hover {
  background: var(--surface-secondary);
  color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 600;
  cursor: default;
  pointer-events: none;
}

.breadcrumb-separator {
  color: var(--border);
  margin: 0 4px;
}

/* ──────────────────────────────────────────────────────── */
/* GLOBAL SEARCH */
/* ──────────────────────────────────────────────────────── */
.global-search {
  position: relative;
  flex: 1;
  max-width: 300px;
  margin: 0 16px;
}

.search-wrapper {
  position: relative;
}

.global-search .search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 13px;
  transition: all 0.2s;
}

.global-search .search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(9, 118, 190, 0.1);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.search-results.hidden {
  display: none;
}

.search-group {
  padding: 8px 0;
}

.search-group-title {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-size: 13px;
}

.search-result-item:hover {
  background: var(--surface-secondary);
  color: var(--primary);
}

.search-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.search-text {
  flex: 1;
  text-align: left;
  min-width: 0;
}

.search-label {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-subtitle {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-empty {
  padding: 20px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ──────────────────────────────────────────────────────── */
/* ADVANCED TABLE STYLES */
/* ──────────────────────────────────────────────────────── */
.table-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.table-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px;
  background: var(--surface-secondary);
  border-radius: 6px;
}

.table-search {
  flex: 1;
  min-width: 200px;
}

.table-search .search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 13px;
}

.table-search .search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(9, 118, 190, 0.1);
}

.table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.page-size-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
}

.page-size-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Table Enhancement */
table {
  border-collapse: collapse;
  width: 100%;
}

table thead {
  background: var(--surface-secondary);
  border-bottom: 2px solid var(--border);
}

table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

table th[data-sort] {
  cursor: pointer;
  user-select: none;
  position: relative;
}

table th[data-sort]:hover {
  background: var(--surface);
  color: var(--primary);
}

table th.sorted[data-order="asc"]::after {
  content: " ^";
  margin-left: 4px;
  font-weight: 700;
  color: var(--primary);
}

table th.sorted[data-order="desc"]::after {
  content: " v";
  margin-left: 4px;
  font-weight: 700;
  color: var(--primary);
}

table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

table tbody tr:hover {
  background: var(--surface-secondary);
}

table td {
  padding: 12px;
  font-size: 13px;
  color: var(--text-primary);
}

table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.01);
}

table tbody tr.selected {
  background: rgba(9, 118, 190, 0.1);
}

.empty-row {
  text-align: center;
  padding: 40px !important;
  color: var(--muted);
  font-size: 14px;
}

/* Pagination */
.table-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--surface-secondary);
  border-radius: 6px;
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-info {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.pagination-buttons {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.pagination-buttons .btn {
  min-width: auto;
  padding: 6px 12px;
  font-size: 12px;
}

.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}
.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  right: 12px;
  top: 50%;
  margin-top: -8px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.spinner-overlay.hidden {
  display: none;
}
.spinner-box {
  background: var(--surface);
  padding: 24px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.spinner-box .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--line);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.radio-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
}
.radio-group input[type="radio"] {
  accent-color: var(--red);
  width: 16px;
  height: 16px;
}

.field-help {
  color: var(--muted);
  font-size: 0.85em;
  display: block;
  margin-top: 4px;
}

.tokens-grid {
  margin-top: 16px;
}

.api-docs-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

.pagination-buttons .btn.primary {
  pointer-events: none;
  opacity: 1;
}

/* Responsive Tables */
@media (max-width: 768px) {
  .table-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .table-search {
    min-width: auto;
  }

  .table-actions {
    width: 100%;
  }

  table {
    font-size: 12px;
  }

  table th,
  table td {
    padding: 8px;
  }

  .pagination-buttons {
    width: 100%;
    justify-content: center;
  }

  /* Horizontal scroll for large tables */
  .table-container {
    overflow-x: auto;
  }

  table {
    min-width: 600px;
  }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .login-card { padding: 24px 20px; }
  .tabs-nav { flex-wrap: wrap; }
  .integration-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .global-search { max-width: none; margin: 8px 0; }
  .breadcrumbs { font-size: 12px; gap: 4px; }
  table { font-size: 11px; }
  table th, table td { padding: 6px; }
}

/* ═══════════════════════════════════════════════════════ */
/* TABLA ESTILO SUNAT (Historial de comprobantes)          */
/* ═══════════════════════════════════════════════════════ */
.sunat-table { font-size: 12px; min-width: 1280px; }
.sunat-table th { font-size: 10px; padding: 8px 6px; line-height: 1.25; white-space: nowrap; }
.sunat-table td { padding: 7px 6px; font-size: 12px; }
.sunat-table .th-center { text-align: center; }
.sunat-table .th-right { text-align: right; }
.sn-nowrap { white-space: nowrap; }
.sn-mono { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.sn-muted { color: var(--muted); }
.sn-moneda { font-weight: 600; color: var(--muted); }
.sn-denom { color: var(--ink); text-decoration: none; }
.sn-denom:hover { color: var(--red); text-decoration: underline; }
.sn-row-anulado td { opacity: .55; background: var(--red-bg); }

/* Código de tipo (01, 03, ...) */
.sn-tipo {
  display: inline-block;
  min-width: 24px;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 11px;
  color: var(--ink);
}

/* Marcas ✓ / ✗ */
.sn-mark { font-weight: 800; font-size: 14px; }
.sn-mark.sn-yes { color: var(--green); }
.sn-mark.sn-no  { color: var(--red); }

/* Botón IMPRIMIR (pill azul) */
.sn-btn-print {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 5px 10px;
  transition: filter .15s, transform .1s;
}
.sn-btn-print:hover { filter: brightness(1.08); }
.sn-btn-print:active { transform: scale(.96); }

/* Círculos PDF / XML / CDR */
.sn-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
  display: inline-grid;
  place-items: center;
  transition: transform .1s, filter .15s, box-shadow .15s;
  box-shadow: 0 2px 5px rgba(0,0,0,.15);
}
.sn-circle:hover { filter: brightness(1.08); transform: translateY(-1px); }
.sn-circle:active { transform: scale(.92); }
.sn-pdf { background: #e23b3b; }
.sn-xml { background: #16a34a; }
.sn-cdr { background: #2563eb; }

/* Badge de estado en SUNAT */
.sn-badge {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 26px;
  padding: 0 8px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.sn-badge-green { background: var(--green); }
.sn-badge-red   { background: var(--red); }
.sn-badge-amber { background: var(--amber); }
.sn-badge-gray  { background: var(--line-strong); color: var(--ink); }

/* Menú de Opciones (dropdown) */
.sn-options-cell { position: relative; }
.sn-options-toggle {
  background: transparent;
  border: 0;
  color: var(--blue);
  font-weight: 600;
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 5px;
  white-space: nowrap;
}
.sn-options-toggle:hover { background: var(--blue-bg); }
.sn-options-menu {
  position: fixed;
  z-index: 1000;
  min-width: 210px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sn-options-menu button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background .12s;
}
.sn-options-menu button:hover { background: var(--surface-2); }
.sn-options-menu button.sn-danger { color: var(--red); }
.sn-options-menu button.sn-danger:hover { background: var(--red-bg); }

/* Separador dentro del menu de Opciones */
.sn-menu-sep {
  height: 1px;
  background: var(--line);
  margin: 4px 6px;
}
