/* Panel admin — pedidos Mini Módulo
   No pisa el menú del sitio: styles.css manda en .nav / .brand / .btn-login */
:root {
  --admin-bg: #f4f4f5;
  --card: #ffffff;
  --text: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --accent: #c62828;
  --accent-soft: rgba(198, 40, 40, 0.1);
  --ok: #15803d;
  --warn: #a16207;
  color-scheme: only light;
}

* { box-sizing: border-box; }

body {
  background: var(--admin-bg);
}

/* Enlaces del panel (no los del .nav) */
.shell a,
.login-wrap a,
.drawer a {
  color: var(--accent);
  text-decoration: none;
}

.shell a:hover,
.login-wrap a:hover,
.drawer a:hover {
  text-decoration: underline;
}

    .shell {
      width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-title {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 0.95rem;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Al estar dentro: la tarjeta de login no se ve */
body.admin-in #loginView,
#loginView[hidden] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#panelView[hidden] {
  display: none !important;
}

body.admin-in #panelView {
  display: block !important;
}

.login-wrap {
  min-height: calc(100vh - 52px);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.login-card {
  width: min(400px, 100%);
}

.login-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.login-card p.lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(198, 40, 40, 0.25);
  border-color: var(--accent);
}

/* Botones solo del panel (no .nav .btn-login) */
.shell .btn,
.login-wrap .btn,
.drawer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
}

.shell .btn:disabled,
.login-wrap .btn:disabled,
.drawer .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.shell .btn-red,
.login-wrap .btn-red,
.drawer .btn-red {
  background: var(--accent);
  color: #fff;
  width: 100%;
}

.shell .btn-red:hover:not(:disabled),
.login-wrap .btn-red:hover:not(:disabled),
.drawer .btn-red:hover:not(:disabled) {
  background: #b71c1c;
  text-decoration: none;
}

.shell .btn-ghost,
.login-wrap .btn-ghost,
.drawer .btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.shell .btn-ghost:hover,
.login-wrap .btn-ghost:hover,
.drawer .btn-ghost:hover {
  color: var(--text);
  background: #fafafa;
  text-decoration: none;
}

.shell .btn-sm,
.login-wrap .btn-sm,
.drawer .btn-sm {
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  border-radius: 8px;
  width: auto;
}

.shell .btn-ghost.is-on,
.login-wrap .btn-ghost.is-on {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

#modulesView[hidden],
#ordersView[hidden],
#dashView[hidden],
#msgView[hidden],
#monitorView[hidden] {
  display: none !important;
}

.dash-charts {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chart-card canvas {
  max-height: 240px;
}

.dash-split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.broadcast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.65rem;
}

.broadcast-grid input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.broadcast-hold {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.broadcast-hold input,
.broadcast-hold select,
.mod-lcd-hold,
.mod-lcd-unit {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  font: inherit;
  font-size: 0.82rem;
  background: #fff;
  color: var(--text);
}

.mod-lcd-hold { width: 4.2rem; }
.mod-lcd-unit { width: auto; }

.sched-modes,
.sched-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0.55rem 0 0.35rem;
  font-size: 0.88rem;
}

.sched-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.sched-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
}

.sched-item-acts {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.due-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.due-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  font: inherit;
}

.due-item:hover {
  border-color: var(--accent);
}

.due-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.dot-ok { background: #22c55e; }
.dot-warn { background: #eab308; }
.dot-exp { background: #c62828; }

@media (max-width: 860px) {
  .dash-charts,
  .dash-split,
  .broadcast-grid,
  .earn-hero,
  .earn-cols,
  .geo-grid,
  .dash-activity {
    grid-template-columns: 1fr;
  }
  .earn-num {
    font-size: 2.1rem;
  }
}

.serial-id {
  font-family: ui-monospace, Consolas, "Cascadia Mono", monospace;
  letter-spacing: 0.03em;
}

.btn-send-toggle.is-blocked {
  border-color: #991b1b;
  color: #b91c1c;
}

table.orders td .muted {
  max-width: 16rem;
  line-height: 1.3;
  margin-top: 0.2rem;
}

#modulesCard table.orders td {
  padding: 0.45rem 0.45rem;
  vertical-align: middle;
}

#modulesCard table.orders tbody tr.mod-row.is-open,
#ordersCard table.orders tbody tr.mod-row.is-open {
  background: rgba(198, 40, 40, 0.1);
}

#ordersCard table.orders tbody tr.mod-row {
  cursor: pointer;
}

.ord-hw {
  display: grid;
  gap: 0.5rem;
}

.ord-hw label {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.ord-hw input,
.ord-hw select,
.ord-hw textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-size: 0.86rem;
  background: #fff;
  color: var(--text);
}

.ord-hw textarea { min-height: 4.2rem; }

.mod-expand {
  padding: 0.2rem 0.55rem 0.75rem !important;
  cursor: default;
  background: rgba(0, 0, 0, 0.04);
}

.mod-panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mod-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.mod-facts strong { color: inherit; font-weight: 650; }

.mod-tools {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mod-tool {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.mod-tool-lbl {
  min-width: 4.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.mod-months,
.mod-lcd1,
.mod-lcd2 {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font: inherit;
  font-size: 0.82rem;
}

.mod-months { width: 3.4rem; }
.mod-lcd1, .mod-lcd2 { width: 8.5rem; }

.similar-note { margin: 0; font-size: 0.78rem; }

.err {
  color: #b91c1c;
  font-size: 0.88rem;
  margin: 0.5rem 0 0;
  display: none;
}

.err.show { display: block; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.stat .n {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat .l {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
}

.chip.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
}

table.orders {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.orders th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

table.orders td {
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.orders tr {
  cursor: pointer;
}

table.orders tbody tr:hover {
  background: #fafafa;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-paid { background: #dcfce7; color: var(--ok); }
.badge-pending_payment { background: #fef3c7; color: var(--warn); }
.badge-packing { background: #e0e7ff; color: #3730a3; }
.badge-shipped { background: #cffafe; color: #0e7490; }
.badge-delivered { background: #f3f4f6; color: #374151; }
.badge-review, .badge-awaiting { background: #fef3c7; color: var(--warn); }
.badge-confirmed { background: #dcfce7; color: var(--ok); }
.badge-annulled { background: #fee2e2; color: #991b1b; }

.voucher-preview {
  width: auto;
  max-width: min(100%, 280px);
  max-height: 220px;
  object-fit: contain;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0.15rem 0 0.35rem;
}

.voucher-preview[hidden] {
  display: none !important;
}

.muted { color: var(--muted); font-size: 0.85rem; }
.empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
}

.drawer-bg {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 27, 0.45);
  display: none;
  z-index: 40;
}

.drawer-bg.open { display: block; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(440px, 100%);
  background: #fff;
  box-shadow: -8px 0 30px rgba(0,0,0,0.12);
  z-index: 50;
  display: none;
  flex-direction: column;
}

.drawer.open {
  display: flex;
}

.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.drawer-body {
  padding: 1.15rem 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.kv {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.35rem 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.note-box {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 640px) {
  .hide-sm { display: none; }
  .kv { grid-template-columns: 1fr; }
}

#modulesCard {
  margin-bottom: 1.15rem;
}

.section-title {
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 0.98rem;
  margin-bottom: 0.45rem;
}

.live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
  animation: livePulse 1.6s ease-out infinite;
  margin-right: 0.4rem;
  vertical-align: 1px;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

table.orders tbody tr.is-selected {
  background: rgba(198, 40, 40, 0.08);
}

#modulesCard table.orders tbody tr.mod-row.same-owner {
  box-shadow: inset 4px 0 0 var(--owner-color, #c62828);
}

#modulesCard table.orders tbody tr.mod-row.same-owner.is-open {
  background: color-mix(in srgb, var(--owner-color, #c62828) 12%, transparent);
}

.owner-mark {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--owner-color, #c62828);
  background: color-mix(in srgb, var(--owner-color, #c62828) 16%, transparent);
  vertical-align: 1px;
}

.owner-note {
  margin: 0;
  padding: 0.4rem 0.55rem;
  border-left: 4px solid var(--owner-color, #c62828);
  font-size: 0.82rem;
  color: inherit;
  background: color-mix(in srgb, var(--owner-color, #c62828) 10%, transparent);
}

.proto-list {
  margin: 0.4rem 0 0.75rem;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.proto-list li {
  margin: 0.28rem 0;
}

.protocol-card {
  margin-top: 1rem;
}

.badge-expired { background: #fee2e2; color: #991b1b; }
.badge-expiring { background: #fef3c7; color: var(--warn); }
.badge-active { background: #dcfce7; color: var(--ok); }
.badge-pending { background: #e0e7ff; color: #3730a3; }
.badge-blocked { outline: 1px solid #991b1b; }

#mWaText {
  min-height: 120px;
}

.earn-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  background: linear-gradient(165deg, rgba(198, 40, 40, 0.12), #fff);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem 1.45rem 1.2rem;
}

.earn-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--muted);
}

.earn-num {
  font-size: 2.55rem;
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0.2rem 0 0.4rem;
}

.earn-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  align-content: center;
}

.earn-col {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: #fff;
}

.earn-col-l {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.earn-col-n {
  font-size: 1.32rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  margin-top: 0.2rem;
}

.geo-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.peru-map-wrap {
  margin-top: 0.55rem;
}

.peru-map-stage {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.peru-map-img {
  display: block;
  width: 100%;
  height: auto;
}

.peru-map-stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pe-dot {
  cursor: pointer;
}

.pe-hit {
  fill: transparent;
}

.pe-dot circle:not(.pe-hit) {
  stroke: rgba(0, 0, 0, 0.35);
  stroke-width: 0.15;
}

.pe-dot.is-on circle:not(.pe-hit) {
  stroke: #ffffff;
  stroke-width: 0.35;
}

.pe-count {
  fill: #1a1a1a;
  font-size: 2.1px;
  font-weight: 700;
  text-anchor: middle;
  pointer-events: none;
}

.pe-lbl {
  fill: #ffffff;
  font-size: 2.15px;
  font-weight: 600;
  pointer-events: none;
}

.geo-cities {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 280px;
  overflow: auto;
  margin-top: 0.55rem;
}

.geo-city {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  cursor: pointer;
  font: inherit;
}

.geo-city small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.geo-city-n {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.geo-city:hover,
.geo-city.is-on {
  border-color: var(--accent);
}

.zone-lcd {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.admin-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.admin-tab {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.admin-tab.is-on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.admin-search-wrap {
  position: relative;
  flex: 1 1 16rem;
  max-width: 28rem;
}
.admin-search {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.admin-search input,
.admin-q {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.48rem 0.75rem;
  font: inherit;
  font-size: 13px;
  background: var(--card);
  color: var(--text);
}
.search-hits {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  max-height: 18rem;
  overflow: auto;
  padding: 0.35rem;
}
.search-hit {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
}
.search-hit:hover { background: var(--accent-soft); }
.search-hit strong { display: block; font-size: 13px; }
.search-hit span { font-size: 12px; color: var(--muted); }
.admin-crumb {
  margin: 0 0 0.85rem;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.topbar {
  align-items: flex-start;
  flex-wrap: wrap;
}
.dash-activity {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.dash-activity .table-wrap { max-height: 280px; overflow: auto; }
.fold-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.2rem 1.1rem 0.85rem;
  margin-bottom: 0.85rem;
}
.fold-card > summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 0 0.55rem;
  font-weight: 650;
}
.fold-card > summary::-webkit-details-marker { display: none; }
.fold-card > summary::before {
  content: "▸";
  color: var(--accent);
  margin-right: 0.4rem;
}
.fold-card[open] > summary::before { content: "▾"; }
.peru-map-sm {
  max-width: 280px;
  margin-inline: auto;
}
.toolbar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}
.earn-hero {
  padding: 1rem 1.15rem 0.95rem;
}
.earn-num { font-size: 2.05rem; }

.ad-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding: 1.15rem 1.25rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(198, 40, 40, 0.14), var(--card));
}
.ad-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  align-content: center;
}
.ad-pill {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.ad-pill span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.ad-pill strong {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.ad-pill small {
  font-size: 0.75rem;
  color: var(--muted);
}
.ad-kpi-row {
  margin-bottom: 0.85rem;
}
.ad-grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.msg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.kind-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
}
.kind-tag.kind-mem {
  background: rgba(198, 40, 40, 0.16);
  color: #c62828;
}
.kind-tag.kind-hw {
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  border: 1px solid var(--line);
}
#geoDept, #geoCity {
  min-width: 10rem;
  flex: 1;
}
.geo-serials { margin: 0.45rem 0 0.7rem; font-size: 12.5px; }
.filters { margin: 0.55rem 0 0.7rem; }

body.admin-in > .nav {
  display: none !important;
}

html.page-space body.admin-in {
  background: #0c0c0c !important;
  color: #f0f0f0;
}

html.page-space body.admin-in .ad-board.shell {
  width: 100%;
  max-width: none;
  padding: 0 1.15rem 2.4rem;
  color: #f0f0f0;
}

html.page-space body.admin-in .card,
html.page-space body.admin-in .stat,
html.page-space body.admin-in .chart-card,
html.page-space body.admin-in .broadcast-card {
  background: #161616 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px;
  box-shadow: none;
  backdrop-filter: none;
}

html.page-space body.admin-in .section-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c62828;
  margin-bottom: 0.35rem;
}

html.page-space body.admin-in .muted {
  color: rgba(240, 240, 240, 0.48);
}

.ad-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 -1.15rem 1.05rem;
  padding: 0.55rem 1.15rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: #111111;
}

.ad-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.ad-brand-txt {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.ad-brand-txt b {
  color: #c62828;
  margin-right: 0.35rem;
}

.ad-bar .admin-tabs {
  flex: 1;
  justify-content: center;
  gap: 0.15rem;
}

.ad-bar .admin-tab {
  background: transparent !important;
  border: 0 !important;
  color: rgba(255, 255, 255, 0.52) !important;
  border-radius: 999px;
  padding: 0.48rem 0.95rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.ad-bar .admin-tab.is-on {
  background: rgba(198, 40, 40, 0.22) !important;
  color: #fff !important;
}

.ad-bar-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.ad-bar .admin-search-wrap {
  max-width: 18rem;
  flex: 1 1 12rem;
}

.ad-bar .admin-search input {
  background: #1a1a1a !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
}

.ad-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #86efac;
  border: 1px solid rgba(134, 239, 172, 0.28);
  border-radius: 999px;
  padding: 0.28rem 0.6rem;
  white-space: nowrap;
}

.ad-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.ad-clock {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(240, 240, 240, 0.55);
  white-space: nowrap;
}

.ad-user {
  border-radius: 999px !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

html.page-space body.admin-in .ad-hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.1rem;
  align-items: end;
  margin-bottom: 0.85rem;
  padding: 1.35rem 1.45rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(198, 40, 40, 0.16), #161616 42%) !important;
}

.ad-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c62828;
}

html.page-space body.admin-in .ad-hero .earn-num {
  font-size: clamp(2.4rem, 5.4vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  color: #fff;
  line-height: 1.05;
  margin: 0.2rem 0 0.15rem;
}

.ad-nav-lbl {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.42);
}

.ad-hero-side {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-end;
}

.ad-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.ad-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1a1a1a;
  font-size: 0.72rem;
}

.ad-pill em {
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.62rem;
}

.ad-pill strong {
  font-size: 0.92rem;
  color: #fff;
}

.ad-pill.is-hw {
  background: rgba(46, 125, 50, 0.22);
  border-color: rgba(46, 125, 50, 0.45);
}
.ad-pill.is-mb {
  background: rgba(198, 40, 40, 0.18);
  border-color: rgba(198, 40, 40, 0.4);
}
.ad-pill.is-wait {
  background: rgba(255, 255, 255, 0.06);
}

.ad-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem;
  font-size: 0.74rem;
  color: rgba(240, 240, 240, 0.5);
}

.ad-kpi-row.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.ad-kpi-row .stat {
  padding: 1rem 1.1rem 0.95rem;
}

.ad-kpi-row .stat .n {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}

.ad-kpi-row .stat .l {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(240, 240, 240, 0.78);
  margin-top: 0.15rem;
}

.ad-kpi-row .stat .s {
  font-size: 0.72rem;
  color: rgba(240, 240, 240, 0.42);
  margin-top: 0.2rem;
}

.ad-kpi-row .stat.is-ok .s { color: #86efac; }
.ad-kpi-row .stat.is-warn .s { color: #ef9a9a; }
.ad-kpi-row .stat.is-bad .s { color: #c62828; }
.ad-kpi-row .stat.is-info .s { color: #a3a3a3; }

.ad-grid-2 {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.ad-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.ad-peak {
  font-size: 0.72rem;
  font-weight: 800;
  color: #c62828;
  letter-spacing: 0.04em;
}

.ad-chart-h {
  height: 250px;
  margin-top: 0.35rem;
}

.ad-mix {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0.7rem;
  align-items: center;
  margin-top: 0.35rem;
}

.ad-donut {
  position: relative;
  height: 210px;
}

.ad-donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}

.ad-donut-center strong {
  font-size: 1.35rem;
  color: #fff;
  line-height: 1;
}

.ad-donut-center span {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.2rem;
}

.ad-mix-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.ad-mix-tbl th,
.ad-mix-tbl td {
  padding: 0.32rem 0.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ad-mix-tbl th {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.ad-mix-tbl i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ad-status-bar {
  margin-top: 0.7rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: rgba(198, 40, 40, 0.16);
  color: #ffcdd2;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-bottom {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 0.85rem;
}

table.orders.ad-dense th,
table.orders.ad-dense td {
  padding: 0.48rem 0.45rem;
  font-size: 0.82rem;
}

.ad-flag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
}

.ad-flag.is-warn { background: rgba(198, 40, 40, 0.2); color: #ef9a9a; }
.ad-flag.is-bad { background: #c62828; color: #fff; }

html.page-space body.admin-in .due-item {
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  padding: 0.7rem 0.15rem;
  background: transparent;
}

html.page-space body.admin-in .due-item:hover {
  border-color: transparent;
  background: rgba(198, 40, 40, 0.08);
}

.ad-risk-foot {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #a3a3a3;
}

.msg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 1180px) {
  .ad-hero,
  .ad-grid-2,
  .ad-mix,
  .msg-grid,
  .ad-bottom { grid-template-columns: 1fr; }
  .ad-hero-side { align-items: flex-start; }
  .ad-pills, .ad-hero-meta { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .ad-kpi-row.stats { grid-template-columns: 1fr 1fr; }
  .ad-bar .admin-tabs { justify-content: flex-start; width: 100%; }
  .ad-clock { display: none; }
}

html.page-space body.admin-in .ad-pills {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

html.page-space body.admin-in .ad-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.42rem 0.75rem;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html.page-space body.admin-in .ad-pill.is-hw {
  background: rgba(46, 125, 50, 0.22);
  border-color: rgba(46, 125, 50, 0.45);
}

html.page-space body.admin-in .ad-pill.is-mb {
  background: rgba(198, 40, 40, 0.18);
  border-color: rgba(198, 40, 40, 0.4);
}

html.page-space body.admin-in .ad-pill.is-wait {
  background: rgba(255, 255, 255, 0.06);
}

html.page-space body.admin-in .chart-card canvas {
  max-height: none;
  height: 100% !important;
}

html.page-space body.admin-in .mod-expand {
  background: transparent !important;
  padding: 0.2rem 0.35rem 1rem !important;
}

.sheet {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.15rem 1.05rem;
}

.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sheet-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: #c62828;
}

.sheet-title {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0.12rem 0 0.2rem;
}

.sheet-hint {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.8rem;
  color: rgba(240, 240, 240, 0.52);
}

.sheet-body {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 0.9rem 1.1rem;
  align-items: start;
}

.sheet-body.has-voucher {
  grid-template-columns: 1fr 0.9fr 0.85fr;
}

.sheet-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 0.95rem;
}

.sheet-field span {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.18rem;
}

.sheet-field strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 650;
  color: #fff;
  word-break: break-word;
}

.sheet-acts {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sheet-act {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

.sheet-act-title {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.5rem;
}

.sheet-voucher {
  display: none;
}

.sheet-body.has-voucher .sheet-voucher {
  display: block;
}

html.page-space body.admin-in .sheet-voucher .voucher-preview {
  width: 100%;
  max-width: none;
  max-height: 320px;
  margin: 0;
  background: #000;
  border-color: rgba(255, 255, 255, 0.1);
}

html.page-space body.admin-in .sheet .ord-hw label {
  color: rgba(255, 255, 255, 0.5);
}

html.page-space body.admin-in .badge-active,
html.page-space body.admin-in .badge-paid,
html.page-space body.admin-in .badge-confirmed,
html.page-space body.admin-in .badge-delivered {
  background: rgba(31, 138, 91, 0.22);
  color: #86cba8;
}

html.page-space body.admin-in .badge-expiring,
html.page-space body.admin-in .badge-review,
html.page-space body.admin-in .badge-awaiting,
html.page-space body.admin-in .badge-pending_payment {
  background: rgba(184, 149, 62, 0.22);
  color: #e8d48b;
}

html.page-space body.admin-in .badge-expired,
html.page-space body.admin-in .badge-annulled,
html.page-space body.admin-in .badge-cancelled {
  background: rgba(198, 40, 40, 0.22);
  color: #ef9a9a;
}

html.page-space body.admin-in .badge-pending,
html.page-space body.admin-in .badge-packing,
html.page-space body.admin-in .badge-shipped {
  background: rgba(106, 106, 117, 0.35);
  color: #c5c5ce;
}

.ad-kpi-row .stat.is-ok .s { color: #1F8A5B; }
.ad-kpi-row .stat.is-warn .s { color: #B8953E; }
.ad-kpi-row .stat.is-bad .s { color: #C62828; }
.ad-kpi-row .stat.is-info .s { color: #8b8b96; }

.dot-ok { background: #1F8A5B; }
.dot-warn { background: #B8953E; }
.dot-exp { background: #C62828; }

.ad-flag.is-warn {
  background: rgba(184, 149, 62, 0.22);
  color: #e8d48b;
}

html.page-space body.admin-in .ad-pill.is-hw {
  background: rgba(31, 138, 91, 0.22);
  border-color: rgba(31, 138, 91, 0.45);
}

@media (max-width: 980px) {
  .sheet-body,
  .sheet-body.has-voucher,
  .sheet-dl { grid-template-columns: 1fr; }
}

html.page-space body.admin-page,
html.page-space body.admin-page.admin-in {
  background: #0c0c0c !important;
  color: #f0f0f0;
}

html.page-space body.admin-page .login-wrap,
html.page-space body.admin-page .shell {
  color: #f0f0f0;
}

html.page-space body.admin-page .card,
html.page-space body.admin-page .login-card,
html.page-space body.admin-page .stat,
html.page-space body.admin-page .chart-card,
html.page-space body.admin-page .broadcast-card,
html.page-space body.admin-page .fold-card,
html.page-space body.admin-page .search-hits {
  background: #161616 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none;
  backdrop-filter: none;
}

html.page-space body.admin-page .ad-bar {
  background: #101010;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.page-space body.admin-page .sheet {
  background: #111111;
}

html.page-space body.admin-page .sheet-act,
html.page-space body.admin-page .ad-pill,
html.page-space body.admin-page .chip {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.1);
}

html.page-space body.admin-page .field input,
html.page-space body.admin-page .field select,
html.page-space body.admin-page .field textarea,
html.page-space body.admin-page .admin-search input,
html.page-space body.admin-page .admin-q,
html.page-space body.admin-page #geoDept,
html.page-space body.admin-page #geoCity,
html.page-space body.admin-page .broadcast-grid input,
html.page-space body.admin-page .broadcast-hold input,
html.page-space body.admin-page .broadcast-hold select,
html.page-space body.admin-page .mod-months,
html.page-space body.admin-page .mod-lcd1,
html.page-space body.admin-page .mod-lcd2,
html.page-space body.admin-page .mod-lcd-hold,
html.page-space body.admin-page .mod-lcd-unit,
html.page-space body.admin-page .ord-hw input,
html.page-space body.admin-page .ord-hw select,
html.page-space body.admin-page .ord-hw textarea {
  background: #1a1a1a !important;
  color: #f0f0f0 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html.page-space body.admin-page .shell .btn-ghost,
html.page-space body.admin-page .login-wrap .btn-ghost,
html.page-space body.admin-page .drawer .btn-ghost {
  background: #1a1a1a;
  color: #c8c8c8;
  border-color: rgba(255, 255, 255, 0.12);
}

html.page-space body.admin-page .shell .btn-ghost:hover,
html.page-space body.admin-page .login-wrap .btn-ghost:hover {
  background: #222222;
  color: #ffffff;
}

html.page-space body.admin-page .drawer {
  background: #141414 !important;
  color: #f0f0f0;
}

html.page-space body.admin-page table.orders th {
  color: rgba(240, 240, 240, 0.45);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.page-space body.admin-page table.orders td {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

html.page-space body.admin-page .due-item,
html.page-space body.admin-page .geo-city,
html.page-space body.admin-page .sched-item {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.08);
}

.sheet-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-end;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.live-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.live-tag.is-on {
  color: #86cba8;
  background: rgba(31, 138, 91, 0.18);
  border-color: rgba(31, 138, 91, 0.4);
}

.live-tag.is-on i {
  box-shadow: 0 0 0 0 rgba(31, 138, 91, 0.55);
  animation: livePulse 1.6s ease-out infinite;
}

.live-tag.is-off {
  color: #9a9a9a;
  background: rgba(255, 255, 255, 0.04);
}

.live-tag.is-susp {
  color: #e8d48b;
  background: rgba(184, 149, 62, 0.18);
  border-color: rgba(184, 149, 62, 0.4);
}

.live-tag.is-unk {
  color: #b8953e;
  background: rgba(184, 149, 62, 0.12);
}

.mon-lead {
  margin: 0 0 0.85rem;
}

.mon-row {
  margin-top: 0.85rem;
}

.mon-lbl {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.72);
  margin-bottom: 0.35rem;
}

.mon-lbl strong {
  font-weight: 800;
  color: #f0f0f0;
  text-transform: none;
  letter-spacing: 0;
}

.mon-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mon-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #3d8b5a;
  transition: width 0.35s ease;
}

.mon-track i.is-ok { background: #2e7d32; }
.mon-track i.is-warm { background: #c9a227; }
.mon-track i.is-hot { background: #c62828; }

.mon-svcs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.mon-svc {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1a1a1a;
  color: rgba(240, 240, 240, 0.7);
}

.mon-svc b {
  font-weight: 800;
}

.mon-svc.is-on {
  background: rgba(46, 125, 50, 0.22);
  border-color: rgba(46, 125, 50, 0.45);
  color: #d4edda;
}

.mon-svc.is-off {
  background: rgba(198, 40, 40, 0.2);
  border-color: rgba(198, 40, 40, 0.45);
  color: #ffcdd2;
}

@media (max-width: 900px) {
  .ad-bar .admin-tab {
    padding: 0.42rem 0.7rem;
    font-size: 0.8rem;
  }
}

.mod-add-card {
  margin-bottom: 0.85rem;
}

.mod-add-row {
  flex-wrap: wrap;
  margin-top: 0.65rem;
}

#newSerial {
  min-width: 11rem;
  flex: 1 1 10rem;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f0f0f0;
  border-radius: 8px;
  padding: 0.42rem 0.65rem;
  font-weight: 800;
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.12em;
  text-transform: none;
}

#newMonths {
  width: 4.2rem;
}

.tag-new {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.08rem 0.42rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #86efac;
  background: rgba(31, 138, 91, 0.28);
  border: 1px solid rgba(31, 138, 91, 0.55);
  vertical-align: middle;
}
