:root {
  --panel-bg: #174c5a;
  --nav-bg: #22313f;
  --accent: #009ee0;
  --accent-hover: #0087c1;
  --page-bg: #f4f7fa;
  --card-bg: #ffffff;
  --text: #22313f;
  --text-main: #22313f;
  --muted: #667786;
  --text-muted: #667786;
  --line: #d8e1e8;
  --border-color: #d8e1e8;
  --danger: #d74747;
  --success: #238a66;
  --warning: #d58b22;
  --danger-hover: #b53535;
  --success-hover: #197053;
  --warning-hover: #b57418;
  --secondary-hover: #edf3f6;
  --accent-soft: #e7f5fb;
  --accent-border: #93c9e0;
  --accent-ink: #007fb4;
}

.library-image-picker { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 22px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card-bg); color: var(--text); }
.library-image-picker::backdrop { background: #22313faa; }
.library-image-picker h2 { margin: 0; font-size: 21px; }
.library-image-picker input { margin: 16px 0 0; }
.library-image-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.library-image-results .btn { display: grid; align-content: start; gap: 8px; text-align: left; overflow-wrap: anywhere; }
.library-image-results img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--page-bg); }
.library-image-selection { display: block; overflow-wrap: anywhere; }

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font: 14px/1.45 Arial, sans-serif;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, var(--nav-bg) 0, var(--nav-bg) 34%, var(--page-bg) 34%, var(--page-bg) 100%);
}
.login-shell {
  width: min(980px, 100%);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(320px, 1.05fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 18px 48px rgba(34, 49, 63, .16);
}
.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 34px;
  background: var(--panel-bg);
  color: white;
  text-align: center;
}
.login-brand {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-brand img {
  width: 190px;
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}
.login-copy h1 {
  margin: 0 0 10px;
  max-width: 360px;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: 0;
}
.login-copy p:not(.eyebrow) {
  max-width: 360px;
  margin: 0;
  color: #cfe1e7;
  font-size: 16px;
}
.login-card {
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
}
.login-shell .login-card {
  border: 0;
  border-radius: 0;
  padding: 48px;
}
.login-card-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 22px;
}
.login-card h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}
.login-card p {
  margin: 0;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-submit {
  width: 100%;
  margin-top: 4px;
}
.login-error {
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid #efcaca;
  border-left: 4px solid var(--danger);
  border-radius: 7px;
  background: #fff4f4;
  color: #a73333;
  font-weight: 800;
}
.login-success {
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid #bedfce;
  border-left: 4px solid var(--success);
  border-radius: 7px;
  background: #f0faf5;
  color: #197053;
  font-weight: 800;
}
.login-hint {
  margin-top: 14px !important;
  color: var(--muted);
  font-size: 12px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  background: var(--nav-bg);
  color: white;
  padding: 18px 12px;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px 20px;
}
.brand img {
  width: 112px;
  height: auto;
  filter: brightness(0) invert(1);
}
.brand span {
  font-size: 11px;
  color: #b9c7d1;
  text-transform: uppercase;
}
.nav-label {
  padding: 14px 10px 6px;
  font-size: 11px;
  color: #93a6b3;
  text-transform: uppercase;
}
.nav-link {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  margin: 2px 0;
  background: transparent;
  color: #e9f0f4;
  text-align: left;
  cursor: pointer;
}
.nav-link:hover,
.nav-link.active {
  background: var(--accent);
  color: white;
}
.nav-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.nav-link.nav-group {
  justify-content: space-between;
}
.nav-chevron {
  margin-left: auto;
  color: #c9d8e0;
  font-size: 13px;
  line-height: 1;
}
.nav-link.nav-group.open,
.nav-link.nav-group.active {
  background: var(--accent);
  color: white;
}
.submenu {
  display: none;
  margin: 2px 0 8px 31px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, .22);
}
.submenu.open { display: block; }
.submenu .nav-link {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 13px;
}
.nav-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 auto;
}

.sidebar .nav-icon:has(svg) { border: 0; border-radius: 0; }
.sidebar .nav-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace { min-width: 0; }
.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--line);
}
.topbar h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}
.topbar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.locale-switcher a {
  min-width: 34px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.locale-switcher a:hover,
.locale-switcher a.active {
  background: var(--accent);
  color: #fff;
}
.config-locale-switcher {
  margin-top: 10px;
  width: fit-content;
}
.content {
  padding: 20px 24px 40px;
}
.content > main,
.content > main.px-3 {
  padding: 0 !important;
}

.panel {
  background: var(--panel-bg);
  color: white;
  border-radius: 8px;
  padding: 18px;
}
.card,
.ui-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.card h2, .card h3, .panel h2, .panel h3 { margin: 0 0 12px; }
.section-title { margin: 0 0 14px; font-size: 16px; }
.muted { color: var(--muted); }
.panel .muted { color: #cae0e6; }
.eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}
.panel .eyebrow { color: #b9d4dc; }
.metric { font-size: 30px; font-weight: 800; line-height: 1.1; }
.metric-small { font-size: 21px; font-weight: 800; }

.dashboard-grid {
  align-items: stretch;
}
.dashboard-weekly {
  min-height: 286px;
  display: flex;
  flex-direction: column;
}
.dashboard-card {
  min-height: 286px;
}
.dashboard-client-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  color: var(--muted);
}
.chart {
  flex: 1;
  min-height: 150px;
  display: flex;
  align-items: end;
  justify-content: space-around;
  gap: 10px;
  margin-top: 20px;
  padding: 20px 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.75);
}
.bar {
  width: 13%;
  min-width: 26px;
  border-radius: 4px 4px 0 0;
  background: var(--accent);
}
.bar.alt {
  background: var(--panel-bg);
}
.dashboard-weekly .bar.alt {
  background: var(--accent);
  opacity: .72;
}

.support-mode-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #f2d6a2;
  background: #fff4df;
  color: #725013;
}
.support-mode-banner strong,
.support-mode-banner span {
  display: block;
}
.support-mode-banner span {
  font-size: 13px;
}

.superadmin-page > .superadmin-hero {
  order: -30;
}
.superadmin-page > .grid.grid-2 {
  order: -20;
}
.superadmin-page > .superadmin-hierarchy-section {
  order: -10;
}
.superadmin-page > section:has(.legacy-superadmin-hidden-marker) {
  display: none;
}
.superadmin-user-create-grid {
  grid-template-columns: minmax(0, 1fr);
}
.superadmin-user-create-grid > form:nth-child(1),
.superadmin-user-create-grid > form:nth-child(2) {
  display: none;
}
.superadmin-hero h2 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: 0;
}
.superadmin-hero .badge-muted {
  background: rgba(255,255,255,.15);
  color: #fff;
}
.superadmin-kpis {
  margin-top: 2px;
}
.superadmin-kpi {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}
.superadmin-kpi span,
.superadmin-kpi small {
  color: #cae0e6;
  font-size: 12px;
  font-weight: 700;
}
.superadmin-kpi strong {
  color: #fff;
  font-size: 30px;
  line-height: 1;
}
.superadmin-global-kpis .superadmin-kpi {
  background: var(--page-bg);
  border-color: var(--line);
}
.superadmin-global-kpis .superadmin-kpi span,
.superadmin-global-kpis .superadmin-kpi small,
.superadmin-global-kpis .superadmin-kpi strong {
  color: var(--text);
}
.superadmin-support-table td strong,
.superadmin-support-table td small {
  display: block;
}
.superadmin-group-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 160px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.superadmin-group-card strong,
.superadmin-group-card small {
  display: block;
}
.superadmin-group-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.superadmin-group-metrics span {
  min-height: 48px;
  padding: 8px;
  border-radius: 7px;
  background: #f4f8fa;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.superadmin-group-metrics strong {
    color: var(--text);
    font-size: 16px;
}
.superadmin-hierarchy {
  gap: 18px;
}
.superadmin-inline-create {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(120px, .7fr) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}
.superadmin-group-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  display: grid;
  gap: 16px;
}
.superadmin-group-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.superadmin-group-form {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) minmax(120px, .7fr) minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 12px;
}
.superadmin-group-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.superadmin-diagnostics-grid {
  align-items: stretch;
}
.superadmin-diagnostic-item {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.superadmin-diagnostic-item strong {
  font-size: 15px;
}
.superadmin-diagnostic-item small {
  display: block;
  line-height: 1.35;
}
.superadmin-quota {
    width: min(220px, 100%);
    display: flex;
  flex-direction: column;
  gap: 6px;
}
.superadmin-quota span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.superadmin-quota-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf1;
}
.superadmin-quota-track span {
  display: block;
  height: 100%;
  min-width: 2px;
  background: var(--accent);
}

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.gap-sm { gap: 7px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.right { justify-content: flex-end; }
.wrap { flex-wrap: wrap; }
.compact { gap: 7px; }
.hidden { display: none !important; }

.btn,
.ui-btn {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover,
.ui-btn:hover { background: var(--accent-hover); }
.btn-dark { background: var(--nav-bg); }
.btn-dark:hover { background: var(--panel-bg); }
.btn-danger { background: var(--page-bg); border-color: var(--text); color: var(--text); }
.btn-danger:hover { background: var(--text); color: var(--card-bg); }
.btn-logout { background: var(--danger); border-color: transparent; color: white; }
.btn-logout:hover { background: var(--danger-hover); color: white; }
.btn-success { background: var(--panel-bg); color: white; }
.btn-success:hover { background: var(--nav-bg); }
.btn-warning { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-ink); }
.btn-warning:hover { background: var(--secondary-hover); }
.btn-edit { background: var(--accent); color: white; }
.btn-edit:hover { background: var(--accent-hover); }
.btn-video { background: var(--panel-bg); color: white; }
.btn-video:hover { background: var(--nav-bg); }
.btn-secondary, .btn-preview, .btn-navigation {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  border-radius: 10px;
  color: var(--accent-ink);
  box-shadow: 0 3px 8px #22313f12;
}
.btn-secondary:hover, .btn-preview:hover, .btn-navigation:hover {
  background: var(--secondary-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 12px #22313f20;
}
.btn-save { background: var(--panel-bg); color: white; }
.btn-save:hover { background: var(--nav-bg); }
.btn-state-active { background: #e5f4ee; border-color: #e5f4ee; color: #197053; }
.btn-state-active:hover { background: #d4e9df; border-color: #197053; }
.btn-state-inactive { background: var(--page-bg); border-color: var(--line); color: var(--muted); }
.btn-state-inactive:hover { background: var(--secondary-hover); color: var(--text); }
.btn:disabled, .ui-btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, .ui-btn:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.btn-icon { width: 38px; padding: 0; font-size: 18px; }
.action-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}
.action-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 12px; color: #445765; }
.input, .select, .textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  background: white;
  color: var(--text);
}
.textarea { min-height: 92px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus,
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(0,158,224,.18);
  border-color: var(--accent) !important;
}

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: #edf3f6; font-size: 11px; text-transform: uppercase; color: #526572; }
tr:last-child td { border-bottom: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e7f5fb;
  color: #007fb4;
  font-size: 11px;
  font-weight: 800;
}
.badge-success { background: #e5f4ee; color: #197053; }
.badge-danger { background: #fae9e9; color: #b53535; }
.badge-warning { background: #fff1dc; color: #9a6417; }
.badge-muted { background: #edf1f4; color: #65727c; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.list { display: flex; flex-direction: column; gap: 8px; }
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: white;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.list-item small { color: var(--muted); }

.promo-library { display: flex; flex-direction: column; gap: 14px; }
.promo-library-head h2 { margin: 0; font-size: 22px; letter-spacing: 0; }
.promo-card-list { display: flex; flex-direction: column; gap: 12px; }
.promo-horizontal-card,
.promo-card {
  display: grid;
  grid-template-columns: 78px minmax(180px, 1.4fr) minmax(120px, .7fr) minmax(140px, .8fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(34,49,63,.06);
}
.promo-thumb,
.promo-image {
  width: 78px;
  height: 62px;
  border-radius: 8px;
  background: #eaf3f6;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.promo-thumb img,
.promo-image img { width: 100%; height: 100%; object-fit: cover; }
.promo-main-info,
.promo-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.promo-main-info strong,
.promo-info strong { font-size: 16px; color: var(--text); }
.promo-main-info span:not(.promo-status),
.promo-main-info small,
.promo-info span:not(.promo-status),
.promo-info small,
.promo-metric-block span,
.promo-metric span { color: var(--muted); }
.promo-status {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.promo-status-active,
.promo-status.active { color: #126447; background: #dff5ec; }
.promo-status-paused,
.promo-status.warning { color: #775100; background: #fff0c7; }
.promo-status-inactive,
.promo-status.inactive { color: #4f5d68; background: #edf1f4; }
.promo-status-expired,
.promo-status.expired { color: #924040; background: #fde3e3; }
.promo-metric-block,
.promo-metric { display: flex; flex-direction: column; gap: 4px; }
.promo-metric-block strong,
.promo-metric strong { font-size: 21px; color: var(--panel-bg); }
.promo-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; min-width: 210px; }
.promo-raffle-btn,
.promo-raffle {
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  background: #ffb000;
  color: #22313f;
  font-weight: 800;
  cursor: pointer;
}
.promo-chip-action,
.promo-mini-action {
  border: 1px solid #cbd8df;
  border-radius: 999px;
  padding: 5px 9px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.promo-chip-muted,
.promo-mini-action.dates { background: #eef8fc; border-color: #bfe4f3; color: #0879a8; }
.promo-icon-actions { display: inline-flex; gap: 6px; }
.icon-btn,
.promo-icon-link,
.promo-icon-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.danger-icon,
.promo-icon-button { color: var(--text); border-color: var(--text); }

.ticket-card-list .promo-horizontal-card {
  grid-template-columns: 58px minmax(180px, 1.4fr) minmax(100px, .55fr) minmax(100px, .55fr) auto;
}
.ticket-library-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--panel-bg);
  color: white;
  font-size: 13px;
  font-weight: 800;
}
.ticket-library-card .promo-actions {
  min-width: 180px;
}
.ticket-delete-trigger {
  color: var(--text);
  line-height: 1;
}
.ticket-delete-trigger:hover { color: var(--card-bg); }
.ticket-delete-trigger svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ticket-delete-trigger svg path {
  fill: none !important;
  stroke: currentColor !important;
}

.media-placeholder {
  min-height: 150px;
  display: grid;
  place-items: center;
  border: 1px dashed #9bb0bb;
  border-radius: 7px;
  color: var(--muted);
  background: #f8fafb;
}
.promo-upload-box {
  min-height: 118px;
  cursor: pointer;
}
.promo-upload-box:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: #eef9fd;
}
.promo-upload-box input {
  display: none;
}
.promo-preview-box,
.promo-preview-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 220px;
}
.promo-preview-image {
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.promo-image-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.promo-image-row img {
  width: 120px;
  height: 90px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.app-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(13, 29, 38, .54);
}
.app-modal {
  width: min(460px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
}
.context-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.context {
  min-height: 78px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 7px;
  padding: 12px;
  background: rgba(255,255,255,.08);
}
.context-button { width: 100%; color: white; text-align: left; cursor: pointer; }
.context-button:hover { background: rgba(255,255,255,.16); }
.preview-screen {
  aspect-ratio: 16 / 9;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: #101b21;
  color: white;
}
.preview-screen img { width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.preview-caption { position: absolute; left: 20px; right: 20px; bottom: 18px; font-size: 20px; font-weight: 800; }
.empty { padding: 32px; text-align: center; border: 1px dashed #aebdc6; border-radius: 8px; color: var(--muted); }
.notice { padding: 12px 14px; border-left: 4px solid var(--accent); background: #eaf7fc; border-radius: 5px; }

.bascula-metrics { margin-bottom: 14px; }
.basculas-table-wrap { background: white; }
.basculas-table { table-layout: fixed; min-width: 980px; }
.basculas-table th:nth-child(1) { width: 160px; }
.basculas-table th:nth-child(2) { width: 125px; }
.basculas-table th:nth-child(3) { width: 80px; }
.basculas-table th:nth-child(4) { width: 105px; }
.basculas-table th:nth-child(5) { width: 115px; }
.basculas-table th:nth-child(6) { width: 230px; }
.basculas-table td { vertical-align: middle; }
.bascula-name-form { display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-width: 0; }
.bascula-name-input { min-width: 0; font-weight: 700; }
.bascula-name-status { min-height: 13px; font-size: 11px; font-weight: 700; color: var(--muted); }
.bascula-name-status.is-saving { color: var(--accent); }
.bascula-name-status.is-saved { color: var(--success); }
.bascula-name-status.is-error { color: var(--danger); }
.bascula-actions { display: flex; align-items: center; gap: 7px; }
.bascula-actions .btn { height: 38px; min-height: 38px; padding-inline: 6px; font-size: 12px; align-self: center; }
.bascula-actions [data-open-tariffs] { zoom: 1.265; }
.bascula-token-cell { min-width: 0; }
.token-prefix { display: block; overflow-wrap: anywhere; line-height: 1.35; }
.bascula-token-help { display: block; font-size: 11px; line-height: 1.25; }
.bascula-token-value {
  min-height: 78px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.45;
  resize: vertical;
  overflow-wrap: anywhere;
}
.bascula-delete-trigger { color: var(--text); line-height: 1; }
.bascula-delete-trigger svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bascula-delete-trigger svg path { fill: none !important; stroke: currentColor !important; }
.bascula-delete-error { min-height: 20px; color: var(--danger); font-weight: 700; }

.bascula-device { overflow: hidden; text-overflow: ellipsis; }

.config-bascula-main { min-width: 0; }
.config-bascula-page {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 14px;
  align-items: stretch;
}
.config-bascula-header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.config-bascula-header h3 { color: var(--text) !important; text-align: left !important; font-size: 18px; }
.config-bascula-back { width: 38px; height: 38px; }
.config-bascula-back svg { width: 20px; height: 20px; }
.config-bascula-controls { grid-column: 1; min-height: 440px; justify-content: center; }
.config-toggle-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  justify-content: stretch !important;
  align-content: center !important;
  justify-items: stretch !important;
}
.config-toggle-grid > div {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafb;
}
.config-toggle-grid > div > div:first-child {
  width: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text) !important;
  font-size: 13px;
  text-align: left !important;
}
.config-toggle-grid label {
  position: relative;
  display: inline-flex !important;
  flex: 0 0 44px;
  width: 44px;
  height: 24px;
  cursor: pointer;
}
.config-toggle-grid label > div:first-of-type {
  position: absolute !important;
  inset: 0 !important;
  width: 44px !important;
  height: 24px !important;
  border: 1px solid #aebdc6;
  border-radius: 999px !important;
  background: #dce4e8 !important;
}
.config-toggle-grid label > div:nth-of-type(2) {
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: white !important;
  box-shadow: 0 1px 3px rgba(34,49,63,.25) !important;
  transform: translateX(0) !important;
  transition: transform .18s ease !important;
}
.config-toggle-grid input:checked ~ div:first-of-type { background: var(--success) !important; border-color: var(--success) !important; }
.config-toggle-grid input:checked ~ div:nth-of-type(2) { transform: translateX(20px) !important; }
.config-toggle-grid input:focus-visible ~ div:first-of-type { outline: 3px solid rgba(0,158,224,.2); outline-offset: 2px; }
.config-preview-panel { grid-column: 2; grid-row: 2 / span 2; min-height: 440px; align-items: center; }
.config-preview-panel > div:first-child { width: 100%; }
.config-preview-device {
  width: min(220px, 100%);
  aspect-ratio: 9 / 16;
  padding: 8px;
  border: 2px solid #132632;
  border-radius: 8px;
  background: #162a36;
  box-shadow: 0 12px 28px rgba(34,49,63,.2);
}
.config-preview-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 30% 70%;
  grid-template-rows: 1fr 15% 15%;
  gap: 2px;
  overflow: hidden;
  border-radius: 4px;
  background: #354b57;
}
.config-preview-zone {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  text-align: center;
  color: white;
  font-size: 11px;
  overflow: hidden;
}
.config-preview-zone[hidden] { display: none !important; }
.config-preview-zone small { color: rgba(255,255,255,.82); }
.preview-zone-time { background: #099ed4; }
.preview-zone-time span { writing-mode: vertical-rl; text-orientation: upright; font-weight: 800; }
.preview-zone-playlist { background: #536b78; }
.preview-zone-playlist span { width: 72%; height: 5px; border-radius: 3px; background: rgba(255,255,255,.62); }
.preview-zone-playlist span:nth-of-type(2) { width: 58%; opacity: .75; }
.preview-zone-playlist span:nth-of-type(3) { width: 44%; opacity: .5; }
.preview-zone-empty { background: #354b57; }
.preview-zone-custom { background: #d97826; }
.preview-zone-rss { background: #347fc4; }
.config-bascula-footer { grid-column: 1; display: flex; justify-content: flex-end; align-items: center; }

.config-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.config-setting-item {
  min-height: 92px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(34,49,63,.05);
}
.config-setting-item:hover { border-color: var(--accent); background: #f8fcfe; }
.config-setting-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--panel-bg);
  color: white;
  font-size: 12px;
  font-weight: 800;
}
.config-setting-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.config-setting-copy strong { font-size: 16px; }
.config-setting-copy small { color: var(--muted); }
.config-setting-arrow { color: var(--accent); font-size: 22px; font-weight: 800; }

.animation-page-toolbar {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(34,49,63,.05);
}
.animation-library-layout { align-items: start; }
.animation-library-layout > .card,
.animation-edit-main,
.animation-edit-actions {
  box-shadow: 0 12px 28px rgba(34,49,63,.07);
}
.animation-program-list { display: flex; flex-direction: column; gap: 8px; }
.animation-library .animation-program-card {
  margin: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 7px;
  background: linear-gradient(90deg, #fff 0, #fff 70%, #f8fbfc 100%);
  box-shadow: none;
}
.animation-library .animation-program-card:hover { background: #f3f9fc; border-color: #b8ddeb; }
.animation-library .animation-program-card.selected { background: #eaf7fc; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,158,224,.12); }
.animation-program-card p { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 800; }
.animation-program-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--panel-bg);
  color: white;
  font-size: 11px;
  font-weight: 800;
}
.animation-program-icon svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.animation-library .animation-program-card .check {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--success);
  color: white;
  font-size: 9px;
}
.animation-library-actions .btn { width: 100%; }

.animation-create-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.animation-create-form { grid-column: span 2; }
.animation-create-destination { min-height: 190px; }
.animation-timeline { display: flex; flex-direction: column; gap: 10px; }
.animation-timeline:empty {
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px dashed #aebdc6;
  border-radius: 8px;
  background: #f8fafb;
}
.animation-timeline:empty::after { content: "Sin contenido multimedia"; color: var(--muted); }
.animation-timeline .bloque {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  background: #f8fafb;
}
.animation-timeline .bloque > div:first-child { display: flex; flex-direction: column; gap: 8px; }
.animation-timeline .handle { color: var(--text) !important; font-size: 13px; font-weight: 800; cursor: grab; }
.animation-timeline input[type="file"],
.animation-timeline input[type="number"],
.animation-timeline select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: white;
  color: var(--text);
}
.animation-timeline button { align-self: flex-start; border: 0; border-radius: 6px !important; padding: 8px 12px !important; background: var(--page-bg) !important; color: var(--text); font-weight: 700; cursor: pointer; }
.animation-timeline .preview-box { width: 220px; height: 150px; border: 1px solid var(--line); border-radius: 7px !important; background: white; overflow: hidden; }

.animation-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, .7fr);
  gap: 14px;
  align-items: start;
}
.animation-edit-main {
  min-width: 0;
  padding: 17px;
}
.animation-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: -1px -1px 16px;
  padding: 12px 13px;
  border: 1px solid #dce8ee;
  border-radius: 7px;
  background: linear-gradient(90deg, #f8fcfe, #fff);
}
.animation-edit-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}
.animation-create-main .field {
  margin-bottom: 12px;
}
.animation-create-main .textarea {
  min-height: 86px;
}
.animation-text-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--panel-bg);
  border-radius: 7px;
  background: #f8fbfc;
  margin-bottom: 16px;
}
.animation-text-row p {
  margin: 0;
  min-width: 0;
  color: var(--text);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.animation-edit-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.animation-edit-section-head .section-title {
  margin-bottom: 0;
}
.animation-edit-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.animation-edit-item {
  display: grid;
  grid-template-columns: 26px 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 7px;
  background: white;
  box-shadow: 0 8px 18px rgba(34,49,63,.04);
}
.animation-edit-item:hover {
  background: #f8fcfe;
  border-color: #b8ddeb;
  border-left-color: var(--accent);
}
.animation-media-thumb {
  width: 84px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #eaf3f6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.animation-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.animation-video-thumb {
  background: var(--panel-bg);
  color: white;
}
.animation-item-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.animation-item-copy strong,
.animation-item-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.animation-item-copy strong {
  font-size: 15px;
}
.animation-item-copy small {
  color: var(--muted);
}
.create-item-fields,
.edit-inline-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.create-item-fields input,
.create-item-fields select,
.edit-inline-fields input,
.edit-inline-fields select {
  width: 100%;
  min-height: 38px;
}
.edit-inline-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.edit-inline-fields label span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}
.video-inline-fields {
  grid-template-columns: minmax(160px, 295px);
}
.inline-save-status {
  min-height: 16px;
  font-size: 12px;
}
.inline-save-status[data-state="saving"] {
  color: #64748b;
}
.inline-save-status[data-state="ok"] {
  color: #15803d;
}
.inline-save-status[data-state="error"] {
  color: #dc2626;
}
.animation-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.animation-item-actions .btn {
  min-height: 36px;
}
.animation-edit-actions {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-top: 4px solid var(--accent);
}
.animation-edit-actions .btn {
  width: 100%;
  justify-content: flex-start;
}
.animation-edit-actions .nav-icon {
  color: inherit;
  border-color: currentColor;
}
.animation-edit-actions .action-icon {
  color: inherit;
}
.animation-edit-actions .btn-success {
  margin-top: 2px;
}

.report-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.report-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.report-toolbar h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}
.report-toolbar p {
  margin-bottom: 0;
}
.report-metrics .card {
  min-height: 138px;
}
.report-main-grid {
  align-items: stretch;
}
.report-chart-card {
  min-height: 278px;
}
.report-chart-box {
  height: 210px;
  min-height: 210px;
  position: relative;
  padding: 8px 4px 0;
}
.report-chart-large {
  height: 238px;
  min-height: 238px;
}
.report-services-card .table-wrap {
  margin-top: 10px;
}
.report-participation {
  min-width: 140px;
  display: grid;
  grid-template-columns: 44px minmax(86px, 1fr);
  align-items: center;
  gap: 8px;
}
.report-positive {
  color: var(--success);
}
.report-negative {
  color: var(--danger);
}

.password-layout {
  align-items: start;
}
.password-form {
  min-height: 360px;
}
.password-help {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}
.password-help .eyebrow {
  margin: 0;
}
.password-help .metric-small {
  font-size: 30px;
  line-height: 1.1;
}
.password-help p {
  max-width: 260px;
  margin: 0;
  font-size: 15px;
}
.password-notice-success {
  border-left-color: var(--success);
  background: #eaf7f1;
  color: #17654b;
  font-weight: 700;
}
.password-notice-error {
  border-left-color: var(--danger);
  background: #fff4f4;
  color: #a73333;
  font-weight: 700;
}

@media (max-width: 900px) {
  .config-bascula-page { grid-template-columns: 1fr; }
  .config-bascula-header, .config-bascula-controls, .config-preview-panel, .config-bascula-footer { grid-column: 1; }
  .config-preview-panel { grid-row: auto; }
  .config-settings-grid { grid-template-columns: 1fr; }
  .animation-create-layout { grid-template-columns: 1fr; }
  .animation-create-form { grid-column: 1; }
  .animation-edit-layout { grid-template-columns: 1fr; }
  .animation-edit-actions { position: static; }
  .report-toolbar { flex-direction: column; }
  .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .superadmin-inline-create,
  .superadmin-group-header,
  .superadmin-group-form {
    grid-template-columns: 1fr;
  }
  .superadmin-group-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .login-page {
    display: block;
    padding: 14px;
    background: var(--page-bg);
  }
  .login-shell {
    min-height: auto;
    grid-template-columns: 1fr;
  }
  .login-panel {
    padding: 26px;
  }
  .login-brand {
    min-height: 72px;
  }
  .login-brand img {
    width: 156px;
  }
  .login-copy h1 {
    font-size: 27px;
  }
  .login-shell .login-card {
    padding: 26px;
  }
}

@media (max-width: 560px) {
  .config-toggle-grid { grid-template-columns: 1fr !important; }
  .animation-library .animation-program-card { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .animation-program-card > .badge { display: none; }
  .animation-timeline .bloque { grid-template-columns: 1fr; }
  .animation-timeline .preview-box { width: 100%; }
  .animation-edit-head,
  .animation-edit-section-head { align-items: flex-start; flex-direction: column; }
  .animation-text-row,
  .animation-edit-item { grid-template-columns: 1fr; }
  .create-item-fields,
  .edit-inline-fields,
  .video-inline-fields { grid-template-columns: 1fr; }
  .animation-item-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .animation-item-actions .btn { width: 100%; }
  .report-metrics { grid-template-columns: 1fr; }
  .report-chart-box,
  .report-chart-large { height: 220px; }
}

@media (max-width: 820px) {
  .bascula-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.danger-zone { border-color: #efcaca; background: #fffafa; }

.ticket-paper,
.thermal-ticket {
  width: min(360px, 100%);
  margin: auto;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(34,49,63,.12);
  font-family: "Courier New", monospace;
}
.thermal-ticket {
  width: 286px;
  padding: 10px 8px;
  color: #000;
  font-size: 13px;
  line-height: 1.16;
  white-space: pre-wrap;
  text-align: left;
}
.thermal-ticket * { color: #000; font-family: inherit; }
.thermal-center { text-align: center; }
.thermal-row { display: flex; justify-content: space-between; gap: 22px; font-weight: 700; font-size: 20px; line-height: 1.05; width: 230px; margin: 0 auto; }
.thermal-data { width: 206px; margin: 0 auto; }
.thermal-line { display: grid; grid-template-columns: 72px 18px 1fr; gap: 2px; font-weight: 700; font-size: 18px; line-height: 1.08; }
.thermal-line span:last-child { font-size: 22px; line-height: 1; }
.thermal-logo {
  display: block;
  width: var(--footer-image-width, 70%);
  max-width: 70%;
  height: auto;
  object-fit: contain;
  margin: 8px auto 6px;
}
.thermal-footer-text { text-align: center; }
.ticket-footer-config { width: 100%; border: 2px solid var(--accent); border-radius: 8px; padding: 14px; }
.ticket-footer-title { display: block; font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.footer-mode-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.footer-mode-label {
  font-size: 13px;
  font-weight: 700;
}
.footer-mode-option {
  min-width: 130px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.footer-mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.footer-mode-option.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.footer-config-block {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-config-block.hidden {
  display: none;
}
.footer-field-label {
  font-size: 12px;
  font-weight: 800;
}
.footer-upload-box {
  min-height: 76px;
  border: 2px dashed #9bb0bb;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  cursor: pointer;
}
.footer-upload-box input {
  display: none;
}
.footer-upload-title {
  display: block;
  font-size: 15px;
  font-weight: 800;
}
.footer-upload-hint {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.footer-image-preview-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 10px;
  text-align: center;
}
.footer-image-preview-wrap.hidden {
  display: none;
}
.footer-image-preview {
  max-width: 70%;
  max-height: 96px;
  object-fit: contain;
}
.footer-width-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-width-row .input {
  max-width: 120px;
}
.footer-remove-image {
  align-self: flex-start;
  color: var(--danger);
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.bg-gradient-to-r.from-cyan-500.to-blue-500 {
  background-color: var(--panel-bg) !important;
  background-image: none !important;
}
main .bg-gray-300,
main .bg-slate-100,
main .bg-slate-50 { background-color: var(--page-bg) !important; }
.bg-blue-400, .bg-blue-500, .bg-blue-600, .bg-blue-700, .bg-blue-800 { background-color: var(--accent) !important; }
.hover\:bg-blue-400:hover, .hover\:bg-blue-500:hover, .hover\:bg-blue-600:hover, .hover\:bg-blue-700:hover, .hover\:bg-blue-800:hover { background-color: var(--accent-hover) !important; }
.text-blue-500, .text-blue-600, .text-blue-700, .text-blue-800 { color: var(--accent) !important; }
.border-blue-300, .border-blue-400 { border-color: var(--accent) !important; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .desktop-only { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .promo-horizontal-card, .promo-card { grid-template-columns: 1fr; }
  .promo-thumb, .promo-image { width: 100%; height: 150px; }
}

/* Expandable SuperAdmin branches share the sidebar link styling. */
.sidebar button.nav-group {width:100%;border:0;font:inherit;text-align:left;cursor:pointer}
