/* Tema rojo y blanco · redondeado · cristal translúcido */
:root {
  --acc: #c8102e;
  --acc-d: #8e0b20;
  --acc-l: #fdecee;
  --acc-t: #8e0b20;
  --t0: #fff4f5;
  --t1: #ffd9de;
  --t2: #ffcbd3;
  --t3: #fff;
  --navy: var(--acc-d);
  --blue: var(--acc);
  --bg: #fff6f7;
  --line: color-mix(in srgb, var(--acc) 14%, transparent);
  --mut: #7a6468;
  --ink: #2a1a1d;
  --glass: rgba(255, 255, 255, 0.66);
  --glass-b: rgba(255, 255, 255, 0.75);
  --sh: 0 10px 34px color-mix(in srgb, var(--acc-d) 10%, transparent);
  --r: 20px;
}
html {
  background: var(--t0);
}
body {
  background:
    radial-gradient(900px 500px at 8% -5%, var(--t1) 0, transparent 60%),
    radial-gradient(800px 500px at 100% 105%, var(--t2) 0, transparent 55%),
    radial-gradient(500px 400px at 60% 40%, var(--t3) 0, transparent 70%), var(--t0);
  background-attachment: fixed;
  color: var(--ink);
}
/* panel lateral (admin) */
aside {
  background: linear-gradient(175deg, color-mix(in srgb, var(--acc) 96%, #fff 4%), var(--acc-d));
  border-radius: 0 30px 30px 0;
  box-shadow: 8px 0 40px color-mix(in srgb, var(--acc-d) 22%, transparent);
  margin: 0;
}
.logo,
.logo img {
  border-radius: 14px;
}
.logo {
  background: rgba(255, 255, 255, 0.95);
  color: var(--acc);
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 9px;
  font-size: 16px;
}
.logo img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  display: block;
}
nav a {
  border-radius: 14px;
  color: #ffe9ec;
  transition: 0.15s;
}
nav a:hover {
  background: rgba(255, 255, 255, 0.16);
}
nav a.on {
  background: rgba(255, 255, 255, 0.92);
  color: var(--acc);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}
nav h4 {
  color: #ffd0d6;
}
.foot {
  color: #ffd0d6;
}
/* tarjetas de cristal */
.card2,
.kpi,
.tablewrap,
.panel,
#modal .card {
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--glass-b);
  border-radius: var(--r);
  box-shadow: var(--sh);
}
#modal {
  background: rgba(70, 10, 20, 0.35);
  backdrop-filter: blur(5px);
}
#modal .card {
  background: rgba(255, 255, 255, 0.88);
}
h1,
.panel h3,
.card2 h3,
#modal h2,
.hd h2 {
  color: var(--acc-t);
}
.kpi b,
.res,
.tot {
  color: var(--acc-t);
}
/* controles */
button,
.btn {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  transition: 0.15s;
}
button:hover,
.btn:hover {
  background: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--acc) 14%, transparent);
}
button.primary,
.btn.primary,
button.pri {
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 85%, #fff 15%), var(--acc-d));
  border: 0;
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--acc) 30%, transparent);
}
button.primary:hover,
button.pri:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 90%, #fff 10%), var(--acc));
}
button.ok {
  border-radius: 999px;
}
button.danger,
button.bad {
  color: var(--acc);
  border-color: color-mix(in srgb, var(--acc) 30%, transparent);
}
input,
select,
textarea {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid color-mix(in srgb, var(--acc) 18%, transparent);
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--acc) 35%, transparent);
  border-color: var(--acc);
}
th {
  background: linear-gradient(135deg, var(--acc), var(--acc-d)) !important;
}
tr.row:hover td {
  background: color-mix(in srgb, var(--acc) 6%, transparent);
}
td {
  border-top-color: var(--line);
}
.tablewrap th:first-child {
  border-top-left-radius: 14px;
}
.tablewrap th:last-child {
  border-top-right-radius: 14px;
}
.bar i,
.days div {
  background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 90%, #fff 10%), var(--acc-d));
}
.badge {
  border-radius: 999px;
}
/* POS */
#bar {
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 95%, #fff 5%), var(--acc-d));
  box-shadow: 0 8px 28px color-mix(in srgb, var(--acc-d) 25%, transparent);
  border-radius: 0 0 26px 26px;
  padding: 10px 20px;
}
#tabs button {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 0;
  border-radius: 999px;
}
#tabs button.on {
  background: #fff;
  color: var(--acc);
}
.chip {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}
.chip.on {
  background: var(--acc);
  color: #fff;
  border-color: var(--acc);
  box-shadow: 0 5px 14px color-mix(in srgb, var(--acc) 30%, transparent);
}
.tile {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--acc-d) 8%, transparent);
  transition: 0.12s;
  overflow: hidden;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--acc-d) 16%, transparent);
}
.tile span {
  color: var(--acc);
}
.tile.has-img {
  color: #fff;
  background-size: cover;
  background-position: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}
.tile.has-img span {
  color: #fff;
}
.acc {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
}
.acc:hover {
  background: #fff;
}
#mapwrap svg {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 235, 238, 0.8)) !important;
  border-radius: 22px;
}
.seg button.on {
  background: var(--acc);
  border-color: var(--acc);
}
#toast {
  background: var(--acc-d);
}
.ln .q button {
  border-radius: 12px;
}
/* perfil / avatar */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--acc-l);
  color: var(--acc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}
.avatar.lg {
  width: 84px;
  height: 84px;
  font-size: 28px;
}
.imgin {
  display: flex;
  gap: 10px;
  align-items: center;
}
.imgin .prev {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--acc-l);
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
/* calculadora flotante */
#calcbtn {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 0;
  font-size: 22px;
  z-index: 20;
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 85%, #fff 15%), var(--acc-d));
  color: #fff;
  border: 0;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--acc) 40%, transparent);
}
#calc {
  position: fixed;
  left: 16px;
  bottom: 78px;
  width: 264px;
  z-index: 21;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 50px color-mix(in srgb, var(--acc-d) 30%, transparent);
  user-select: none;
}
#calc .scr {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 8px 12px;
  text-align: right;
  margin-bottom: 10px;
  min-height: 62px;
}
#calc .scr small {
  display: block;
  color: var(--mut);
  min-height: 16px;
  font-size: 12px;
}
#calc .scr b {
  font-size: 28px;
  color: var(--acc-d);
  word-break: break-all;
}
#calc .keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
#calc .keys button {
  padding: 12px 0;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 600;
}
#calc .keys .op {
  background: color-mix(in srgb, var(--acc) 10%, transparent);
  color: var(--acc);
}
#calc .keys .eq {
  background: var(--acc);
  color: #fff;
}
@media (max-width: 800px) {
  aside {
    border-radius: 0 20px 20px 0;
  }
}
.c {
  background: var(--glass) !important;
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-b) !important;
  border-radius: 28px !important;
  box-shadow: var(--sh);
}
.c button {
  border-radius: 999px !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 85%, #fff 15%), var(--acc-d)) !important;
}
.c .logo {
  background: var(--acc);
  color: #fff;
}
#calcbtn.r {
  left: auto;
  right: 18px;
}
#calc.r {
  left: auto;
  right: 18px;
}

/* --- Responsive: tablets y celulares --- */
html {
  -webkit-text-size-adjust: 100%;
}
button,
select,
input {
  touch-action: manipulation;
}
#menubtn {
  display: none;
}
@media (max-width: 900px) {
  body {
    display: block;
  }
  aside {
    position: fixed !important;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100vh !important;
    width: 250px !important;
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 0.25s;
    overflow: auto;
  }
  aside .brand div,
  aside nav h4,
  aside .foot {
    display: block !important;
  }
  aside nav a {
    font-size: 15px !important;
    padding: 12px 16px;
  }
  body.nav-open aside {
    transform: none;
  }
  #scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(60, 5, 15, 0.45);
    z-index: 35;
  }
  body.nav-open #scrim {
    display: block;
  }
  #menubtn {
    display: inline-flex;
    position: fixed;
    left: 10px;
    top: 10px;
    z-index: 30;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    padding: 0;
    background: var(--acc, #c62828);
    color: #fff;
    border: 0;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--acc-d) 35%, transparent);
  }
  main {
    padding: 64px 12px 24px !important;
  }
  header#top {
    gap: 8px;
  }
  header#top h1 {
    font-size: 19px;
    flex-basis: 100%;
  }
  #actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }
  #actions .search {
    flex: 1;
    min-width: 140px;
  }
  .tablewrap,
  .card2 {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  table {
    min-width: 560px;
  }
  .filters {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    padding-bottom: 4px;
  }
  .filters > * {
    flex-shrink: 0;
  }
  #modal .card {
    width: 96vw !important;
    max-height: 94vh;
    padding: 14px;
  }
  .toast,
  #toast {
    max-width: 92vw;
  }
  form .f2,
  .f2 {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 560px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .kpis {
    grid-template-columns: 1fr 1fr !important;
  }
}
/* --- POS --- */
@media (max-width: 1000px) {
  #bar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
  }
  #tabs {
    order: 5;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  #tabs button {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 11px 14px;
  }
  #clock {
    display: none;
  }
  main {
    flex-direction: column !important;
    overflow: auto !important;
    padding: 8px !important;
  }
  .side {
    width: auto !important;
  }
  .side .panel {
    overflow: visible;
  }
  #mapwrap {
    min-height: 340px;
    flex: none;
  }
  #menu {
    flex: none;
    min-height: 0;
  }
  #ticket {
    width: auto !important;
    flex: none;
  }
  .grid {
    max-height: none;
    overflow: visible;
  }
  .lines {
    max-height: none;
  }
}
@media (max-width: 560px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)) !important;
  }
  .brand small,
  .adm {
    display: none;
  }
  #modal .card {
    width: 96vw !important;
    max-height: 94vh;
  }
}
@media (max-width: 1000px) {
  #mapwrap {
    min-height: 0 !important;
  }
  #mapwrap svg {
    height: 300px !important;
  }
}
@media (max-width: 1000px) {
  #menu .grid {
    max-height: 46vh !important;
    overflow: auto !important;
  }
}

/* botones flotantes (junto a la calculadora) */
#fabs {
  position: fixed;
  left: 78px;
  bottom: 56px;
  display: flex;
  gap: 10px;
  z-index: 20;
  flex-direction: row;
  align-items: center;
}
#fabs.r {
  left: auto;
  right: 80px;
  bottom: 16px;
  flex-direction: row-reverse;
}
.fab {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 85%, #fff 15%), var(--acc-d));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--acc) 35%, transparent);
  overflow: visible;
  flex-shrink: 0;
}
.fab img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.fab.pos {
  width: auto;
  padding: 0 18px;
  border-radius: 26px;
  font-size: 18px;
  gap: 8px;
  background: #fff;
  color: var(--acc);
  border: 2px solid var(--acc);
}
.fab.pos span {
  position: static;
  opacity: 1;
  transform: none;
  background: none;
  color: inherit;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  pointer-events: auto;
}
.fab span {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(60, 5, 15, 0.9);
  color: #fff;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 9px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.fab:hover span {
  opacity: 1;
}
@media (max-width: 900px) {
  #fabs.r {
    right: 76px;
    bottom: 12px;
  }
  #calcbtn.r {
    right: 12px;
    bottom: 12px;
  }
  .fab.pos span {
    display: none;
  }
  .fab.pos {
    width: 52px;
    padding: 0;
  }
}

/* --- buscador general y ayuda --- */
.gs-side {
  display: flex;
  gap: 6px;
  padding: 0 10px 8px;
}
#gsbtn {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffe9ec;
  border-radius: 14px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 13px;
  transition: 0.15s;
}
#gsbtn:hover {
  background: rgba(255, 255, 255, 0.26);
}
#gsbtn kbd {
  font: 11px system-ui;
  opacity: 0.7;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 1px 5px;
}
#gshelp {
  width: 38px;
  padding: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 0;
  font-size: 16px;
}
#gshelp:hover {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}
#gs {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(40, 5, 12, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 9vh 12px 12px;
}
.gs-box {
  width: min(640px, 100%);
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  background: var(--card, #fff);
  color: var(--ink);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.gs-top {
  display: flex;
  gap: 8px;
  padding: 12px;
}
.gs-top input {
  font-size: 16px;
  padding: 12px 14px;
}
.gs-top button {
  width: 44px;
  padding: 0;
}
.gs-list {
  overflow: auto;
  padding: 0 8px 8px;
  flex: 1;
}
.gs-g {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mut);
  padding: 10px 10px 4px;
  font-weight: 700;
}
.gs-i {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}
.gs-i small {
  color: var(--mut);
  white-space: nowrap;
}
.gs-i.on {
  background: color-mix(in srgb, var(--acc) 13%, transparent);
}
.gs-ans {
  margin: 2px 10px 8px 22px;
  padding: 10px 12px;
  border-left: 3px solid var(--acc);
  background: color-mix(in srgb, var(--acc) 6%, transparent);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.5;
}
.gs-empty {
  padding: 30px;
  text-align: center;
  color: var(--mut);
}
.gs-foot {
  padding: 8px 14px;
  font-size: 11px;
  color: var(--mut);
  border-top: 1px solid var(--line);
}
html[data-modo='oscuro'] .gs-box {
  background: #241b1e;
}
@media (max-width: 900px) {
  .gs-side {
    padding-top: 0;
  }
  #gs {
    padding-top: 60px;
  }
  .gs-foot {
    display: none;
  }
}

/* --- Empresa y documentos --- */
.tk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 16px;
  align-items: start;
  max-width: 1200px;
}
.tk-prev {
  position: sticky;
  top: 10px;
}
.tk-paper {
  background: rgba(128, 128, 128, 0.14);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  justify-content: center;
  max-height: 75vh;
  overflow: auto;
}

@media (max-width: 1000px) {
  .tk-grid {
    grid-template-columns: 1fr;
  }
  .tk-prev {
    position: static;
    order: -1;
  }
  .tk-paper {
    max-height: 60vh;
  }
}

/* tablas que en pantallas angostas se vuelven tarjetas */
@media (max-width: 720px) {
  table.stk thead {
    display: none;
  }
  table.stk,
  table.stk tbody {
    display: block;
  }
  table.stk tr {
    display: block;
    border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
    border-radius: 12px;
    padding: 8px 10px;
    margin: 0 0 10px;
  }
  table.stk td {
    display: block;
    border: 0 !important;
    padding: 3px 0 !important;
    width: auto !important;
  }
}

/* Categorías del menú extensibles */
nav .grp > h4 {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  border-radius: 8px;
  padding: 6px 10px;
  margin: 10px 0 2px;
}
nav .grp > h4:hover {
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.08);
}
nav .grp > h4:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
nav .chev {
  display: inline-block;
  transition: transform 0.2s;
  font-size: 11px;
}
nav .grp.cerrado .chev {
  transform: rotate(-90deg);
}
nav .navtools {
  display: flex;
  gap: 6px;
  padding: 8px 10px 0;
}
nav .navtools button {
  flex: 1;
  font-size: 11px;
  padding: 5px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
nav .navtools button:hover {
  background: rgba(255, 255, 255, 0.14);
}
@media (min-width: 901px) and (max-width: 900px) {
}

/* Ayuda: guía de uso */
.ayu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.ayu-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.ayu-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 8px 10px;
  border-radius: 12px;
  position: relative;
  flex-wrap: wrap;
}
.ayu-chip .n {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--acc, #c8102e);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.ayu-chip.on {
  outline: 2px solid var(--acc, #c8102e);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.ayu-chip.hit {
  background: #fff3c4;
}
.ayu-chip.pronto {
  opacity: 0.6;
}
.ayu-chip.pronto .n {
  background: #999;
}
.ayu-chip small {
  width: 100%;
  font-size: 10px;
  opacity: 0.8;
  padding-left: 32px;
  margin-top: -4px;
}
.ayu-body {
  max-width: 900px;
}
.ayu-badge {
  display: inline-block;
  background: var(--acc, #c8102e);
  color: #fff;
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
}
.ayu-head h2 {
  margin: 8px 0 2px;
}
.ayu-txt {
  line-height: 1.6;
}
.ayu-txt h3 {
  margin: 22px 0 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(128, 128, 128, 0.25);
}
.ayu-txt .lead {
  font-size: 1.05em;
}
.ayu-txt code {
  background: rgba(128, 128, 128, 0.16);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}
.ayu-txt kbd {
  border: 1px solid rgba(128, 128, 128, 0.5);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0 6px;
  font-size: 0.9em;
}
.ayu-txt a[data-go] {
  color: var(--acc, #c8102e);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline dotted;
}
.ayu-txt .pasos {
  padding-left: 22px;
}
.ayu-txt .pasos li {
  margin: 6px 0;
}
.ayu-txt .tip {
  background: rgba(255, 193, 7, 0.16);
  border-left: 4px solid #f5b400;
  padding: 10px 12px;
  border-radius: 8px;
  margin: 12px 0;
}
.ayu-txt .tip.ok {
  background: rgba(46, 160, 67, 0.14);
  border-left-color: #2ea043;
}
.ayu-txt .zonas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.ayu-txt .zonas > div {
  background: rgba(128, 128, 128, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
}
.ayu-txt .zonas span {
  display: block;
  font-size: 0.93em;
  margin-top: 2px;
}
.ayu-txt .tabla {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}
.ayu-txt .tabla th,
.ayu-txt .tabla td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}
.ayu-txt .tabla th {
  background: rgba(128, 128, 128, 0.12);
}
.ayu-pie {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}
@media (max-width: 720px) {
  .ayu-txt .tabla,
  .ayu-txt .tabla tbody,
  .ayu-txt .tabla tr,
  .ayu-txt .tabla td,
  .ayu-txt .tabla th {
    display: block;
    width: 100%;
  }
  .ayu-txt .tabla tr {
    border: 1px solid rgba(128, 128, 128, 0.25);
    border-radius: 10px;
    margin-bottom: 8px;
    padding: 4px 0;
  }
  .ayu-txt .tabla th {
    display: none;
  }
  .ayu-txt .tabla td {
    border: 0;
    padding: 4px 10px;
  }
  .ayu-nav {
    grid-template-columns: 1fr 1fr;
  }
}
.ayu-txt .tabla {
  table-layout: auto;
  max-width: 100%;
}
.ayu-txt .tabla th,
.ayu-txt .tabla td {
  white-space: normal !important;
  word-break: break-word;
}
.ayu-txt .tabla td:first-child {
  width: 24%;
}
.ayu-chip {
  min-width: 0;
}
.ayu-chip > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  white-space: normal;
  line-height: 1.2;
}
@media (max-width: 900px) {
  header#top h1 {
    padding-left: 54px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
.ayu-txt .tip.warn {
  background: rgba(220, 53, 69, 0.12);
  border-left-color: #dc3545;
}
@media (max-width: 720px) {
  .ayu-txt .tabla {
    min-width: 0 !important;
  }
  .ayu-txt .tabla td:first-child {
    width: 100%;
  }
}

/* --- Centro de ayuda (reorganizado) --- */
.ayu-top {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.ayu-idx-btn {
  display: none;
  flex: none;
}
.ayu2 {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.ayu-side {
  position: sticky;
  top: 8px;
  max-height: calc(100vh - 90px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(128, 128, 128, 0.07);
}
.ayu-side button {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  width: 100%;
  padding: 7px 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  box-shadow: none;
}
.ayu-side button:hover {
  background: rgba(128, 128, 128, 0.16);
}
.ayu-side button.on {
  background: var(--acc, #c8102e);
  color: #fff;
}
.ayu-side .ayu-cat {
  font-weight: 700;
}
.ayu-side .ayu-cat .tx {
  flex: 1;
  min-width: 0;
}
.ayu-side .ayu-cat small {
  opacity: 0.7;
  font-weight: 500;
}
.ayu-side .ayu-cat.on {
  background: rgba(200, 16, 46, 0.14);
  color: inherit;
}
.ayu-side .sub {
  padding-left: 30px;
  font-size: 0.92em;
  line-height: 1.25;
}
.ayu-g {
  margin: 10px 6px 2px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.65;
  font-weight: 700;
}
.ayu-main {
  min-width: 0;
  max-width: 900px;
}
.ayu-hero {
  padding: 6px 2px 4px;
}
.ayu-hero h2 {
  margin: 0 0 4px;
}
.ayu-prog {
  height: 8px;
  border-radius: 6px;
  background: rgba(128, 128, 128, 0.25);
  overflow: hidden;
  margin: 10px 0 4px;
}
.ayu-prog > div {
  height: 100%;
  background: var(--acc, #c8102e);
  border-radius: 6px;
}
.ayu-h {
  margin: 20px 0 8px;
}
.ayu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}
.ayu-cards.big {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.ayu-card {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 14px;
  min-width: 0;
  white-space: normal;
  line-height: 1.25;
}
.ayu-card .ic {
  flex: none;
  font-size: 22px;
}
.ayu-card small {
  display: block;
  opacity: 0.7;
  font-weight: 400;
  margin-top: 2px;
}
.ayu-ruta {
  padding-left: 22px;
}
.ayu-ruta li {
  margin: 5px 0;
}
.ayu-ruta a {
  color: var(--acc, #c8102e);
  font-weight: 600;
}
.ayu-temas {
  display: grid;
  gap: 6px;
}
.ayu-tema {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 9px 12px;
  border-radius: 12px;
  white-space: normal;
}
.ayu-tema .n {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--acc, #c8102e);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.ayu-crumb {
  font-size: 13px;
  opacity: 0.85;
}
.ayu-crumb a {
  color: var(--acc, #c8102e);
  text-decoration: none;
  font-weight: 600;
}
.ayu-ir {
  margin: 6px 0 0;
}
.ayu-res {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  white-space: normal;
}
.ayu-res small {
  opacity: 0.7;
}
.ayu-res span {
  font-weight: 400;
  opacity: 0.9;
  font-size: 0.92em;
}
.ayu-txt a[data-ay] {
  color: var(--acc, #c8102e);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline dotted;
}
.ayu-txt details {
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 12px;
  padding: 8px 12px;
  margin: 8px 0;
}
.ayu-txt summary {
  cursor: pointer;
  font-weight: 700;
}
.ayu-txt details[open] summary {
  margin-bottom: 6px;
}
.ayu-txt h3:first-child {
  border-top: 0;
  margin-top: 4px;
  padding-top: 0;
}
@media (max-width: 900px) {
  .ayu2 {
    grid-template-columns: 1fr;
  }
  .ayu-idx-btn {
    display: inline-flex;
  }
  .ayu-side {
    display: none;
    position: static;
    max-height: 60vh;
  }
  .ayu-side.open {
    display: flex;
  }
}
.ayu-side .ayu-cat {
  align-items: flex-start;
}
.ayu-side .ayu-cat .tx {
  white-space: normal;
  line-height: 1.25;
}
.ayu-side .ayu-cat small,
.ayu-side .ayu-cat .car {
  flex: none;
}
.ayu-side .ayu-it {
  white-space: normal;
  line-height: 1.25;
}
.ayu-main .ayu-h {
  margin: 24px 0 10px !important;
}
@media (max-width: 720px) {
  .ayu-txt .tabla tr:has(th) {
    display: none;
  }
}

/* página de atajos de teclado */
.atj-list {
  display: flex;
  flex-direction: column;
}
.atj-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px auto;
  gap: 6px 12px;
  align-items: center;
  padding: 8px 6px;
  border-top: 1px solid var(--line, rgba(127, 127, 127, 0.2));
}
.atj-row.mal {
  background: rgba(220, 40, 40, 0.08);
  border-radius: 8px;
}
.atj-b {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.atj-b button {
  padding: 6px 12px;
}
.atj-kb kbd {
  display: inline-block;
  min-width: 22px;
  text-align: center;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(127, 127, 127, 0.45);
  border-bottom-width: 3px;
  background: rgba(127, 127, 127, 0.1);
  font:
    600 12px/1.3 ui-monospace,
    Consolas,
    monospace;
}
@media (max-width: 640px) {
  .atj-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .atj-b {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
}

/* --- Contabilidad --- */
.ct-per {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 12px;
}
.ct-per button {
  padding: 6px 12px;
}
.ct-rng {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.ct-acc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
.ct-tools {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ct-card {
  margin-bottom: 12px;
}
.ct-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4px 12px;
  align-items: start;
}
.ct-chk {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
  cursor: pointer;
}
.ct-t {
  width: 100%;
  border-collapse: collapse;
  min-width: 0 !important;
}
.ct-t th,
.ct-t td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line, #e5e5e5);
  text-align: left;
  vertical-align: top;
}
.ct-t .r {
  text-align: right;
  white-space: nowrap;
}
.ct-t td.neg,
.ct-neg b {
  color: #c62828;
}
.ct-pos b {
  color: #1a8a4a;
}
.ct-t tr.tot td {
  font-weight: 700;
  border-top: 2px solid var(--line, #999);
  background: rgba(127, 127, 127, 0.06);
}
.ct-t tr.tot.big td {
  font-size: 16px;
}
.ct-t tr.ct-sub td:first-child {
  padding-left: 24px;
  opacity: 0.9;
}
.ct-t tr.ct-sec td {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--brand, #c8102e);
  padding-top: 14px;
}
.ct-t tr.ct-info td {
  opacity: 0.6;
}
.ct-t td.warn {
  color: #b26a00;
}
.ct-t td.bad {
  color: #c62828;
  font-weight: 600;
}
.ct-t td.b {
  font-weight: 700;
}
.ct-t .ct-btns {
  white-space: nowrap;
}
.ct-t .ct-btns button {
  padding: 4px 8px;
  margin-left: 4px;
}
.ct-delta {
  font-size: 12px;
  font-weight: 700;
  margin-left: 4px;
}
.ct-delta.up {
  color: #1a8a4a;
}
.ct-delta.down {
  color: #c62828;
}
.ct-alertas {
  background: #fff5e0;
  border: 1px solid #f0c36d;
  color: #7a5600;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: grid;
  gap: 4px;
}
[data-modo='oscuro'] .ct-alertas {
  background: #3a2f12;
  color: #ffd98a;
  border-color: #6b5420;
}
.ct-pres {
  margin: 8px 0;
}
.ct-pres-h {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  flex-wrap: wrap;
}
.ct-pres-bar {
  height: 10px;
  background: rgba(127, 127, 127, 0.15);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 4px;
}
.ct-pres-bar i {
  display: block;
  height: 100%;
  border-radius: 6px;
}
.ct-flujo {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 160px;
  padding-top: 6px;
}
.ct-flujo > div {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 100%;
  min-width: 4px;
}
.ct-flujo i {
  flex: 1;
  display: block;
  border-radius: 3px 3px 0 0;
  min-height: 1px;
}
.ct-flujo i.in {
  background: #1f9d55;
}
.ct-flujo i.out {
  background: #d93025;
}
.ct-comp {
  display: flex;
  align-items: stretch;
  gap: 6px;
  height: 190px;
}
.ct-comp > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.ct-comp .cols {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.ct-comp i {
  flex: 1;
  display: block;
  border-radius: 3px 3px 0 0;
  min-height: 1px;
}
.ct-comp i.v {
  background: #2f6fed;
}
.ct-comp i.n {
  background: #1f9d55;
}
.ct-comp i.n.neg {
  background: #d93025;
}
.ct-comp small {
  font-size: 11px;
  opacity: 0.75;
}
.ct-out {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(127, 127, 127, 0.08);
}
.ct-out > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}
.ct-out > div.b b {
  font-size: 18px;
  color: var(--brand, #c8102e);
}
.ct-dlg {
  position: fixed;
  inset: 0;
  z-index: 950;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
}
.ct-dlg > .card2 {
  width: min(440px, 100%);
  background: var(--card, #fff);
}
.ro-banner {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 99px;
  background: #e8f0ff;
  color: #1a4fa0;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .ct-t {
    font-size: 13px;
  }
  .ct-t th,
  .ct-t td {
    padding: 6px 5px;
  }
  .ct-comp {
    height: 150px;
  }
  .ct-per .ct-rng {
    width: 100%;
  }
}
body[data-rol='contador'] #actions .primary,
body[data-rol='contador'] #fabs .fab.pos,
body[data-rol='contador'] #mform ~ .btns button[type='submit'],
body[data-rol='contador'] #mdel {
  display: none !important;
}

/* --- Notificaciones --- */
.noti-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 40px;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 18px;
  line-height: 1;
}
.noti-btn.hay {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--acc, #c8102e) 35%, transparent);
}
.noti-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e02424;
  color: #fff;
  font:
    700 11px/20px system-ui,
    sans-serif;
  text-align: center;
  box-shadow: 0 0 0 2px var(--card, #fff);
}
.noti-badge.hidden {
  display: none;
}
#tabs .noti-btn {
  height: auto;
  min-width: 0;
  padding: 9px 14px !important;
}
#notipanel {
  position: fixed;
  z-index: 960;
  width: min(400px, calc(100vw - 16px));
  max-height: min(70vh, 620px);
  display: flex;
  flex-direction: column;
  background: var(--card, #fff);
  color: var(--ink, #1c1c1a);
  border: 1px solid var(--line, #e5e5e5);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  font-size: 14px;
}
[data-modo='oscuro'] #notipanel {
  background: #1f2026;
  color: #eee;
  border-color: #3a3b44;
}
.noti-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line, #e5e5e5);
  font-size: 15px;
}
.noti-hd .noti-cnt {
  flex: 1;
  font-size: 12px;
  opacity: 0.7;
}
#notipanel button {
  font: inherit;
}
.noti-x {
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  padding: 4px 8px !important;
  cursor: pointer;
  box-shadow: none !important;
  min-height: 0 !important;
}
.noti-f {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line, #eee);
}
.noti-f button[data-f] {
  border: 1px solid var(--line, #ddd) !important;
  background: transparent !important;
  color: inherit !important;
  border-radius: 999px !important;
  padding: 4px 12px !important;
  font-size: 12px !important;
  cursor: pointer;
  box-shadow: none !important;
  min-height: 0 !important;
}
.noti-f button[data-f].on {
  background: var(--acc, #c8102e) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.noti-link {
  border: 0 !important;
  background: transparent !important;
  color: var(--acc-t, var(--acc, #c8102e)) !important;
  font-size: 12px !important;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px !important;
  box-shadow: none !important;
  min-height: 0 !important;
}
.noti-list {
  overflow: auto;
  flex: 1;
  overscroll-behavior: contain;
}
.noti-it {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line, #f0f0f0);
  cursor: pointer;
  border-left: 4px solid var(--nv, #9aa);
  transition: background 0.15s ease;
}
.noti-it:hover {
  background: rgba(127, 127, 127, 0.08);
}
.noti-it.niv-ok {
  --nv: #1f9d55;
}
.noti-it.niv-warn {
  --nv: #e6a100;
}
.noti-it.niv-bad {
  --nv: #d93025;
}
.noti-it.niv-info {
  --nv: #2f6fed;
}
.noti-it:not(.leida) {
  background: color-mix(in srgb, var(--nv) 7%, transparent);
}
.noti-it.leida {
  opacity: 0.62;
}
.noti-it.leida b {
  font-weight: 500;
}
.noti-ic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: color-mix(in srgb, var(--nv) 15%, transparent);
}
.noti-tx {
  min-width: 0;
  display: grid;
  gap: 1px;
}
.noti-tx b {
  font-size: 14px;
  line-height: 1.25;
}
.noti-tx span {
  font-size: 12.5px;
  opacity: 0.85;
  overflow-wrap: anywhere;
}
.noti-tx small {
  font-size: 11px;
  opacity: 0.6;
}
.noti-dot {
  border: 0 !important;
  background: transparent !important;
  color: var(--nv) !important;
  font-size: 15px !important;
  cursor: pointer;
  padding: 4px 6px !important;
  box-shadow: none !important;
  min-height: 0 !important;
  line-height: 1;
}
.noti-ft {
  padding: 8px 12px;
  border-top: 1px solid var(--line, #eee);
  text-align: center;
}
.noti-nota {
  font-size: 12px;
  opacity: 0.6;
}
.noti-vacio {
  padding: 34px 16px;
  text-align: center;
  opacity: 0.75;
  display: grid;
  gap: 6px;
}
.noti-vacio b {
  font-size: 30px;
}
/* página Notificaciones */
.nt-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.nt-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line, #e5e5e5);
  border-left: 5px solid var(--nv, #9aa);
  border-radius: 14px;
  background: var(--card, #fff);
  margin-bottom: 8px;
}
.nt-card.niv-ok {
  --nv: #1f9d55;
}
.nt-card.niv-warn {
  --nv: #e6a100;
}
.nt-card.niv-bad {
  --nv: #d93025;
}
.nt-card.niv-info {
  --nv: #2f6fed;
}
.nt-card.leida {
  opacity: 0.65;
}
.nt-card:not(.leida) {
  background: color-mix(in srgb, var(--nv) 6%, var(--card, #fff));
}
.nt-card .ic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 21px;
  background: color-mix(in srgb, var(--nv) 15%, transparent);
}
.nt-card .tx {
  min-width: 0;
}
.nt-card .tx b {
  display: block;
}
.nt-card .tx span {
  display: block;
  font-size: 13px;
  opacity: 0.85;
  overflow-wrap: anywhere;
}
.nt-card .tx small {
  font-size: 12px;
  opacity: 0.6;
}
.nt-card .ac {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nt-card .ac button {
  padding: 5px 10px;
  font-size: 12px;
}
.nt-dia {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
  margin: 14px 0 6px;
}
.nt-tipo {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 4px;
  border-top: 1px solid var(--line, #eee);
}
.nt-tipo .tt {
  flex: 1;
  min-width: 0;
}
.nt-tipo .tt small {
  display: block;
  opacity: 0.6;
  font-size: 12px;
}
.nt-sw {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 0 !important;
  background: #c9c9cf !important;
  cursor: pointer;
  padding: 0 !important;
  flex: 0 0 auto;
  box-shadow: none !important;
  min-height: 0 !important;
}
.nt-sw::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s cubic-bezier(0.3, 1.4, 0.6, 1);
}
.nt-sw.on {
  background: #1f9d55 !important;
}
.nt-sw.on::after {
  transform: translateX(20px);
}
.an-demo {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  min-height: 64px;
}
.an-demo > div {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--acc-l, #fde8ec);
  border: 1px solid var(--line, #eee);
  font-weight: 600;
  animation: dsPop calc(0.35s * var(--an-k)) var(--an-pop) both;
}
.an-demo > div:nth-child(2) {
  animation-name: dsFadeUp;
  animation-delay: calc(0.08s * var(--an-k));
}
.an-demo > div:nth-child(3) {
  animation-name: dsSlideIn;
  animation-delay: calc(0.16s * var(--an-k));
}
.an-demo > div:nth-child(4) {
  animation-name: dsDrop;
  animation-delay: calc(0.24s * var(--an-k));
}
@media (max-width: 600px) {
  .nt-card {
    grid-template-columns: 38px 1fr;
  }
  .nt-card .ac {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
  .nt-card .ic {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}
.an-demo {
  align-items: flex-start;
}
#tabs .noti-btn .noti-badge {
  top: 1px;
  right: 1px;
  box-shadow: none;
}

/* copia fuera del computador */
.nb-estado {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 8px;
  border: 1px solid var(--line, #e5e5e5);
}
.nb-estado.ok {
  background: #e9f7ee;
  border-color: #9fd6b2;
  color: #14532d;
}
.nb-estado.mal {
  background: #fdecec;
  border-color: #f0a8a8;
  color: #7f1d1d;
}
.nb-estado.off {
  background: #fff5e0;
  border-color: #f0c36d;
  color: #7a5600;
}
[data-modo='oscuro'] .nb-estado.ok {
  background: #12301f;
  color: #b6f0c9;
  border-color: #1f6b3d;
}
[data-modo='oscuro'] .nb-estado.mal {
  background: #3a1616;
  color: #ffc9c9;
  border-color: #7a2a2a;
}
[data-modo='oscuro'] .nb-estado.off {
  background: #3a2f12;
  color: #ffd98a;
  border-color: #6b5420;
}
.nb-estado .note {
  color: inherit;
  opacity: 0.85;
}
.nb-ico {
  font-size: 28px;
  line-height: 1;
}
.nb-det {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--line, #e5e5e5);
  border-radius: 12px;
  margin: 6px 0;
}
.nb-estado.ok .nb-ico {
  animation: dsPulse 2.6s ease-in-out infinite;
  display: inline-block;
}
