:root {
  --vxm-teal: #23dbd0;
  --vxm-teal-strong: #1bc4ba;
  --vxm-green: #27dc8c;
  --vxm-dark: #373a36;
  --vxm-dark-2: #2a2d29;
  --vxm-dark-3: #1f2220;
  --vxm-light-teal: #a7e6d7;
  --vxm-light-blue: #a4dbe8;

  --bg: #f2f4f3;
  --surface: #ffffff;
  --surface-2: #f5f7f6;
  --ink: #1d1f1c;
  --ink-soft: #5c6360;
  --ink-faint: #8b928f;
  --border: #e4e7e5;
  --border-strong: #d3d8d5;
  --danger: #c0392b;
  --danger-bg: #fbe9e7;
  --danger-border: #f1c4bd;
  --success: #1f9d63;
  --success-bg: #e6f8ee;
  --radius: 14px;
  --shadow-md: 0 10px 24px -8px rgba(55, 58, 54, 0.18);
  --shadow-lg: 0 24px 48px -18px rgba(55, 58, 54, 0.28);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, 'Segoe UI', Roboto, Manrope, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--vxm-teal-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; }

/* ---------- Login ---------- */

.login-stage {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(360px, 42%) 1fr;
}

.login-hero {
  position: relative;
  background: radial-gradient(130% 130% at 12% 8%, var(--vxm-dark-2), var(--vxm-dark-3) 62%);
  color: #f5f6f3;
  overflow: hidden;
  padding: clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.login-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 100% 100%, rgba(35, 219, 208, 0.25), transparent 70%);
  pointer-events: none;
}

.login-hero > * { position: relative; z-index: 1; }

.brand-row { display: flex; align-items: center; gap: 12px; }
.brand-row img { height: 26px; width: auto; }

.hero-copy { max-width: 32ch; }
.hero-copy h1 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.hero-copy p {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(245, 246, 243, 0.72);
  margin: 0;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg);
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 34px);
  box-shadow: var(--shadow-lg);
}

.login-card img.card-logo { height: 24px; margin-bottom: 18px; }
.login-card h2 { font-size: 21px; font-weight: 700; margin: 0 0 6px; }
.login-card .sub { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 22px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 7px;
}
.field input, .field select {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--vxm-teal);
  box-shadow: 0 0 0 4px rgba(35, 219, 208, 0.18);
}
.radio-group { display: flex; gap: 22px; align-items: center; min-height: 46px; }
.radio-option { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); cursor: pointer; }
.radio-option input[type="radio"] { width: 18px; height: 18px; accent-color: var(--vxm-teal); cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn-primary {
  width: 100%;
  background: linear-gradient(120deg, var(--vxm-teal), var(--vxm-green));
  color: #12241f;
  box-shadow: 0 14px 30px -14px rgba(35, 219, 208, 0.6);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary {
  background: var(--surface-2);
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
}
.btn-danger { background: var(--danger-bg); color: var(--danger); border: 1.5px solid var(--danger-border); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.alert {
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 13px;
  margin: 0 0 18px;
}
.alert-error { background: var(--danger-bg); border: 1px solid var(--danger-border); color: var(--danger); }
.alert-success { background: var(--success-bg); border: 1px solid #b9e6cd; color: var(--success); }

/* ---------- App shell ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar .brand { display: flex; align-items: center; gap: 10px; }
.topbar .brand img { height: 20px; }
.topbar .brand span { font-weight: 700; font-size: 15px; color: var(--ink); }
.topbar-right { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--ink-soft); }
.topbar-right .role-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(35, 219, 208, 0.15);
  color: var(--vxm-teal-strong);
}
.topbar-right form { margin: 0; }

/* Home / project selection */

.home-wrap { max-width: 960px; margin: 0 auto; padding: 60px 24px; }
.home-wrap h1 { font-size: 26px; margin: 0 0 6px; }
.home-wrap .sub { color: var(--ink-soft); margin: 0 0 36px; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.home-voxme-mark { display: flex; justify-content: center; margin-top: 64px; }
.home-voxme-mark img { height: 76px; width: auto; }

.project-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: var(--ink);
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.project-card .logo-box {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}
.project-card .logo-box img { width: 100%; height: 100%; object-fit: contain; }
.project-card h3 { margin: 0 0 6px; font-size: 17px; }
.project-card p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.project-card .tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.tag-wip { background: #fff3d6; color: #9a6b00; }
.tag-live { background: var(--success-bg); color: var(--success); }

.admin-link-card {
  border-style: dashed;
}

/* Melissa layout: sidebar + content */

.app-stage { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100dvh - 57px); }

.sidebar {
  background: linear-gradient(180deg, var(--vxm-dark) 0%, var(--vxm-dark-3) 100%);
  color: #fff;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar .sidebar-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 18px 10px 8px;
}
.sidebar .sidebar-title:first-child { margin-top: 4px; }
.sidebar a.nav-item, .sidebar .nav-item-disabled {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  margin-bottom: 2px;
}
.sidebar a.nav-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; }
.sidebar a.nav-item.active { background: var(--vxm-teal); color: #12241f; font-weight: 700; }
.sidebar .nav-item-disabled { color: rgba(255, 255, 255, 0.35); cursor: default; }
.sidebar .back-link {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
}
.sidebar .back-link a { color: rgba(255, 255, 255, 0.85); }

.content { padding: 32px; overflow-y: auto; }
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 560px;
  box-shadow: var(--shadow-md);
}
.content-card h2 { margin: 0 0 4px; font-size: 19px; }
.content-card .sub { color: var(--ink-soft); font-size: 13px; margin: 0 0 24px; }
.content-card:has(.cashback-table-wrap) { max-width: 900px; }

/* Layout com painel lateral fixo (ex.: regras ao lado do card de Reativação) */

.content-with-aside {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.content-with-aside > .content-card { flex: 1 1 480px; }

.rules-panel {
  flex: 1 1 300px;
  max-width: 360px;
  background: #fff8e6;
  border: 1px solid #f0dfa8;
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-md);
}
.rules-panel h3 {
  margin: 0 0 4px;
  font-size: 14.5px;
  color: #8a6a00;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rules-panel .sub {
  margin: 0 0 16px;
  font-size: 12px;
  color: #8a6a00;
  opacity: 0.85;
}
.rules-panel ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: #6b5300;
  line-height: 1.55;
}
.rules-panel li { margin-bottom: 10px; }
.rules-panel li:last-child { margin-bottom: 0; }
.rules-panel ul ul { margin-top: 6px; padding-left: 16px; }
.rules-panel ul ul li { margin-bottom: 6px; }

.welcome-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  color: var(--ink-soft);
}
.welcome-empty h2 { color: var(--ink); }

.wip-box {
  max-width: 480px;
  text-align: center;
  margin: 10vh auto 0;
  padding: 40px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.wip-box .icon { font-size: 34px; margin-bottom: 12px; }
.wip-box h2 { margin: 0 0 8px; }
.wip-box p { color: var(--ink-soft); margin: 0; }

/* Autocomplete */

.autocomplete { position: relative; }
.autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  max-height: 220px;
  overflow-y: auto;
  z-index: 20;
  display: none;
}
.autocomplete-list.open { display: block; }
.autocomplete-list .opt {
  padding: 10px 14px;
  font-size: 13.5px;
  cursor: pointer;
}
.autocomplete-list .opt:hover, .autocomplete-list .opt.highlight { background: var(--surface-2); }
.autocomplete-list .empty { padding: 10px 14px; font-size: 12.5px; color: var(--ink-faint); }
.autocomplete-selected {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  background: rgba(35, 219, 208, 0.12);
  color: var(--vxm-teal-strong);
  padding: 5px 10px;
  border-radius: 999px;
}
.autocomplete-selected button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-weight: 700;
}

.result-box {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.result-box.result-error { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }
.result-box.result-warn { background: #fff8e6; border-color: #f0dfa8; color: #8a6a00; }
.result-box.result-ok { background: var(--success-bg); border-color: #b9e6cd; color: #14603c; }
.result-box.result-info {
  background: rgba(164, 219, 232, 0.22);
  border-color: rgba(164, 219, 232, 0.7);
  color: #1a5a72;
  white-space: normal;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.result-box.result-info .icon { font-size: 16px; line-height: 1.3; }

/* Cashback result table */

.cashback-summary {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}
.cashback-summary b { color: var(--ink); }
.cashback-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.cashback-table-wrap table { width: 100%; font-size: 13px; border-collapse: collapse; }
.cashback-table-wrap th { white-space: nowrap; background: var(--surface-2); }
.cashback-table-wrap td { white-space: nowrap; }
.cashback-table-wrap td.loja-cell { white-space: normal; }
.cashback-table-wrap td.chevron { width: 18px; text-align: right; color: var(--ink-faint); }
.cashback-table-wrap tbody tr { cursor: pointer; }
.cashback-table-wrap tbody tr:hover,
.cashback-table-wrap tbody tr:focus-visible { background: var(--surface-2); outline: none; }
.cell-empty { color: var(--ink-faint); }

/* Cashback detail modal */

.cb-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(29, 31, 28, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}
.cb-modal {
  position: relative;
  background: var(--surface);
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.cb-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.cb-modal-close:hover { background: var(--border-strong); color: var(--ink); }
.cb-modal h3 { margin: 0 0 4px; font-size: 17px; padding-right: 30px; }
.cb-modal .cb-modal-sub { margin: 0; font-size: 12.5px; color: var(--ink-faint); }
.cb-modal-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin: 22px 0 12px;
}
.cb-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin: 0;
}
.cb-field-grid dt { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 3px; }
.cb-field-grid dd { margin: 0; font-size: 13.5px; color: var(--ink); font-weight: 600; }
.cb-modal-footer { margin-top: 24px; display: flex; justify-content: flex-end; gap: 10px; }

/* Reativacao: selectable cards */

.cb-select-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.cb-select-card {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  transition: border-color 0.15s ease, background 0.15s ease;
  display: flex;
  flex-direction: column;
}
.cb-select-card.checked { border-color: var(--vxm-teal); background: rgba(35, 219, 208, 0.05); }
.cb-select-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
}
.cb-select-card-head input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--vxm-teal-strong); flex: none; }
.cb-select-card-title { flex: 1; }
.cb-select-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  margin-top: 14px;
  font-size: 12.5px;
}
.cb-select-card-grid dt { color: var(--ink-faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 2px; }
.cb-select-card-grid dd { margin: 0; font-weight: 600; color: var(--ink); }
.cb-select-card-due {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cb-select-card-due-field { min-width: 0; }
.cb-select-card-due label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.cb-select-card-due input[type="date"],
.cb-select-card-due input[type="text"] {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface-2);
  padding: 0 12px;
  font: inherit;
  font-size: 13.5px;
  box-sizing: border-box;
}
.cb-reativar-footer { margin-top: 20px; }
.cb-confirm-list { margin: 0; padding-left: 20px; font-size: 13px; }
.cb-confirm-list li { margin-bottom: 8px; line-height: 1.4; }
.cb-confirm-list b { color: var(--ink); }

/* Minimized modals dock */

.cb-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  z-index: 190;
  pointer-events: none;
}
.cb-dock-chip {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  border-radius: 999px;
  padding: 7px 8px 7px 14px;
  font-size: 12.5px;
  cursor: pointer;
}
.cb-dock-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-dock-chip:hover { border-color: var(--vxm-teal); }
.cb-dock-chip .x {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: none;
  color: var(--ink-faint);
  font-size: 13px;
  cursor: pointer;
}
.cb-dock-chip .x:hover { background: var(--danger-bg); color: var(--danger); }

/* Lojas > Cadastro CM */

.content-card:has(.lojacm-grid) { max-width: 760px; }

.lojacm-grid { margin-top: 24px; }
.lojacm-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.lojacm-codigo { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-faint); }
.lojacm-header h3 { margin: 4px 0 0; font-size: 17px; }

.lojacm-readonly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px 16px;
  margin: 0 0 4px;
}
.lojacm-readonly-grid dt { font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 3px; }
.lojacm-readonly-grid dd { margin: 0; font-size: 13.5px; color: var(--ink); font-weight: 600; }

.lojacm-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin: 24px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lojacm-section-title .lojacm-section-hint { font-weight: 500; text-transform: none; letter-spacing: normal; color: var(--ink-faint); opacity: 0.8; }

.lojacm-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0 16px;
}
.lojacm-edit-grid .field.field-dirty input {
  border-color: var(--vxm-teal);
  background: rgba(35, 219, 208, 0.06);
}

.lojacm-preview {
  margin-top: 4px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.lojacm-footer { display: flex; justify-content: flex-end; }

/* Material de apoio: pasta do Google Drive incorporada */

.content-card.gdrive-card { max-width: none; display: flex; flex-direction: column; height: calc(100vh - 176px); }
.gdrive-embed {
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.gdrive-embed iframe { width: 100%; height: 100%; border: none; display: block; }

/* Admin */

.admin-wrap { max-width: 960px; margin: 0 auto; padding: 40px 24px; }
.admin-wrap h1 { font-size: 22px; margin: 0 0 4px; }
.admin-wrap .sub { color: var(--ink-soft); margin: 0 0 28px; font-size: 13.5px; }

.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}
.admin-panel h2 { font-size: 16px; margin: 0 0 16px; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; align-items: end; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-faint); font-weight: 700; }
tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.badge-admin { background: rgba(35, 219, 208, 0.15); color: var(--vxm-teal-strong); }
.badge-suporte { background: rgba(164, 219, 232, 0.35); color: #1a5a72; }
.badge-active { background: var(--success-bg); color: var(--success); }
.badge-inactive { background: #f1f1ef; color: var(--ink-faint); }

.logs-table { overflow-x: auto; }
.logs-table pre { margin: 0; font-size: 11.5px; white-space: pre-wrap; word-break: break-word; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}
.pagination-info { font-size: 13px; color: var(--ink-soft); }
.btn[aria-disabled="true"] { opacity: 0.5; cursor: default; pointer-events: none; }

.empty-state { color: var(--ink-faint); font-size: 13px; padding: 20px 0; text-align: center; }

.nav-back { display: inline-block; margin-bottom: 18px; font-size: 13px; }

@media (max-width: 860px) {
  .login-stage { grid-template-columns: 1fr; }
  .login-hero { min-height: 240px; }
  .app-stage { grid-template-columns: 1fr; }
  .sidebar { flex-direction: row; overflow-x: auto; }
}
