/* Panel super admin: limpio, denso en información, tema oscuro. */
body.admin { overflow-y: auto; }

.login-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  width: min(94vw, 380px);
  text-align: center;
}
.login-card .logo { font-size: 3rem; }
.login-card h1 { margin: 6px 0 20px; font-size: 1.4rem; }
.login-card .field { text-align: left; }
.login-card .btn { width: 100%; margin-top: 8px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(14, 16, 23, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand { font-weight: 900; font-size: 1.15rem; display: flex; gap: .5em; align-items: center; }
.topbar .actions { display: flex; gap: 10px; }

.content { padding: 20px 22px 60px; max-width: 1280px; margin: 0 auto; }

.store-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}
.store-card > header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.store-card > header .nm { font-size: 1.35rem; font-weight: 800; flex: 1; }

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.section-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section-card .head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section-card .head .nm { font-weight: 800; font-size: 1.05rem; }
.section-card .now {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.section-card .now .num { font-size: 2.4rem; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; }
.section-card .now .who { font-weight: 700; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-card .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.section-card .phrase { color: var(--muted); font-size: .88rem; font-style: italic; overflow-wrap: anywhere; }
.section-card .row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.section-card .row-actions .btn { font-size: .82rem; padding: .5em .9em; }

.devices-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.devices-table th, .devices-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.devices-table th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.devices-table .dot { font-size: .8rem; }
.devices-table .dot.on { color: var(--ok); }
.devices-table .dot.off { color: var(--muted); }
.devices-table .btn { font-size: .8rem; padding: .45em .8em; }
.devices-table td.actions { display: flex; gap: 6px; flex-wrap: wrap; }

.qr-box { text-align: center; }
.qr-box img { width: 260px; max-width: 80vw; border-radius: 12px; background: #fff; padding: 8px; }
.qr-box .link {
  margin-top: 12px;
  font-family: ui-monospace, monospace;
  font-size: .8rem;
  color: var(--muted);
  overflow-wrap: anywhere;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px;
}

.checks { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; }
.checks label { display: flex; gap: 10px; align-items: center; font-weight: 600; background: var(--surface-2); border-radius: 10px; padding: 8px 12px; }

.section-title { margin: 26px 0 10px; font-size: 1.05rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

/* Gestión de tiendas/secciones (7.3): formulario de sección y confirmaciones */
.checks label.disabled { opacity: .55; cursor: not-allowed; }
.checks label .chip { margin-left: auto; }
.check-inline { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.modal .danger-note { color: var(--danger); font-weight: 600; margin: 0 0 14px; overflow-wrap: anywhere; }
