/* Admin operations — Phase 1 foundation */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #0f1419;
  --text-muted: #5c6570;
  --border: #e2e5ea;
  --accent: #1a2332;
  --accent-soft: #2d3a4d;
  --focus: #3d5a80;
  --danger: #b42318;
  --success: #0f6e42;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(15, 20, 25, 0.06), 0 4px 12px rgba(15, 20, 25, 0.04);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --sidebar-w: 260px;
  --topbar-h: 56px;
  --content-max: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.muted {
  color: var(--text-muted);
  font-size: 0.9rem;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 1000;
}
.skip-link:focus {
  left: 8px;
}

/* —— Auth (login) —— */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(1200px 600px at 10% -10%, #e8ecf2 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #dfe6f0 0%, transparent 50%), var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 28px 28px;
}

.auth-card__brand {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-card__lead {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: #fafbfc;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(61, 90, 128, 0.15);
  background: #fff;
}

/* Multi-column admin forms (investments products, rules, etc.) */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  align-items: start;
}

@media (max-width: 880px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-grid .form-actions {
  margin-top: 4px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form-actions .btn--primary {
  width: auto;
  min-width: 160px;
}

.form-grid input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.form-grid select,
.form-grid textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: #fafbfc;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.form-grid input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(61, 90, 128, 0.15);
  background: #fff;
}

.input-wrap {
  position: relative;
}

.input-wrap .form-control {
  padding-right: 42px;
}

.toggle-pass {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
}
.toggle-pass:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  width: 100%;
}
.btn--primary:hover {
  background: #131b26;
}

.btn--danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
  width: auto;
}
.btn--danger:hover {
  filter: brightness(1.05);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  background: #f8f9fb;
}

.form-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert--error {
  background: #fef3f2;
  border-color: #fecdca;
  color: #7a271a;
}
.alert--success {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #054f31;
}
.alert--info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a5f;
  position: relative;
  padding-right: 36px;
}

.alert__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  font-size: 1rem;
  line-height: 1;
  padding: 4px;
}
.alert__close:hover {
  opacity: 1;
}

.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 4px;
}

.otp-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.otp-row .form-control {
  width: 44px;
  text-align: center;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}

/* —— App shell —— */
.app-shell {
  margin: 0;
  min-height: 100vh;
}

.app-frame {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--accent);
  color: #e8eaee;
  display: flex;
  flex-direction: column;
  padding: 20px 0 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: transform 0.2s ease, width 0.2s ease;
  z-index: 50;
}

.sidebar__brand {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.sidebar__logo {
  display: block;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.sidebar__tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.65;
}

.sidebar__section {
  padding: 16px 20px 8px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.45;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: #c9ced8;
  font-size: 0.88rem;
  font-weight: 500;
  border-left: 3px solid transparent;
}
.sidebar__link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
}
.sidebar__link.is-active {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-left-color: #8ba4c7;
}

.sidebar__icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.9;
  flex-shrink: 0;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg);
}

.topbar {
  min-height: var(--topbar-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar__menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.topbar__menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.topbar__titles {
  min-width: 0;
}

.breadcrumb {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb__sep {
  margin: 0 6px;
  opacity: 0.5;
}
.breadcrumb__current {
  color: var(--text-muted);
}

.topbar__heading {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__center {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 420px;
}

.search-placeholder {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: 1px dashed var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: #fafbfc;
}
.search-placeholder__icon {
  opacity: 0.5;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: not-allowed;
  opacity: 0.6;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font: inherit;
}
.profile-chip__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.profile-chip__text {
  text-align: left;
  line-height: 1.2;
}
.profile-chip__name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
}
.profile-chip__role {
  display: block;
  font-size: 0.72rem;
}
.profile-chip__caret {
  font-size: 0.65rem;
  opacity: 0.5;
}

.dropdown {
  position: relative;
}
.dropdown__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px;
  z-index: 60;
}
.dropdown__panel[hidden] {
  display: none !important;
}
.dropdown__item {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
}
.dropdown__item:hover {
  background: #f4f6f9;
  text-decoration: none;
}
.dropdown__divider {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}

.content-wrap {
  flex: 1;
  padding: 24px;
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 24px;
}
.page-header h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
}
.page-header p {
  margin: 0;
  color: var(--text-muted);
}

.grid-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: 0 1px 0 rgba(15, 20, 25, 0.04);
}
.card__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.card__value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.placeholder-block {
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  background: #fafbfc;
  margin-bottom: 16px;
}

.restricted-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 520px;
  background: var(--surface);
}
.restricted-card h2 {
  margin-top: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: #fafbfc;
}

.app-footer {
  padding: 16px 24px 28px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.section-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--surface);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.metric-card.is-hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.metric-card__label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.metric-card__value {
  margin: 6px 0 4px;
  font-size: 1.5rem;
  font-weight: 750;
}
.metric-card__subtext {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.metric-card--ok {
  border-color: #d1f2e0;
}
.metric-card--warn {
  border-color: #ffe3b3;
}
.metric-card--risk {
  border-color: #ffd6d1;
}

.quick-actions {
  margin-bottom: 20px;
}
.quick-actions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.quick-action {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}
.quick-action:hover {
  text-decoration: none;
  border-color: #c8d2df;
}
.quick-action__label {
  display: block;
  font-weight: 650;
  color: var(--text);
}
.quick-action__desc {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: capitalize;
  border: 1px solid var(--border);
  background: #f6f7f8;
}
.status-pill--info {
  background: #eef4ff;
  border-color: #c8dafd;
  color: #274674;
}
.status-pill--active {
  background: #ecfdf3;
  border-color: #c5edd6;
  color: #145f3e;
}
.status-pill--inactive {
  background: #f4f4f5;
  border-color: #e4e4e7;
  color: #3f3f46;
}
.status-pill--restricted {
  background: #fff7e8;
  border-color: #ffd7a2;
  color: #7a3b00;
}
.status-pill--suspended {
  background: #fef2f2;
  border-color: #fecaca;
  color: #7f1d1d;
}
.status-pill--requires_password_reset {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.status-pill--restricted_placeholder {
  background: #fff7e8;
  border-color: #ffd7a2;
  color: #7a3b00;
}
.status-pill--matured_placeholder {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

.type-pill,
.direction-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: capitalize;
  border: 1px solid var(--border);
  background: #f6f7f8;
  color: #2c3e50;
}

.type-pill--deposit,
.direction-pill--credit {
  background: #ecfdf3;
  border-color: #c5edd6;
  color: #145f3e;
}

.type-pill--withdrawal,
.direction-pill--debit {
  background: #fef2f2;
  border-color: #fecaca;
  color: #7f1d1d;
}

.type-pill--investment_allocation,
.type-pill--fee {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.type-pill--profit_credit,
.type-pill--maturity_payout_placeholder {
  background: #eef4ff;
  border-color: #c8dafd;
  color: #274674;
}

.type-pill--adjustment_placeholder {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #4c1d95;
}

.dashboard-two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.activity-list {
  margin: 0;
  padding-left: 18px;
}
.activity-list li {
  margin-bottom: 8px;
}

.alert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.filters-wrap {
  margin: 0;
}
.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.filters-actions {
  display: flex;
  gap: 8px;
}

.pagination-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 14px;
}
.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}
.pagination-link.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.user-summary-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.info-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 14px;
}
.info-grid dt {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.info-grid dd {
  margin: 2px 0 0;
  font-weight: 600;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.tabs-nav__item {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.tabs-nav__item.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.tab-panel {
  margin-bottom: 16px;
}

.report-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.report-category-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.report-category-card:hover {
  text-decoration: none;
  border-color: #c8d2df;
}
.report-category-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
}

.report-aside-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notification-body {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.export-actions-card {
  margin-top: 16px;
}

.metric-card--default {
  border-color: var(--border);
}
.metric-card--info {
  border-color: #c8dafd;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}
.metric-card--success {
  border-color: #c5edd6;
  background: linear-gradient(180deg, #f4fdf8 0%, #fff 100%);
}
.metric-card--danger {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fffafa 0%, #fff 100%);
}

.linked-entity-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.status-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
}

.notes-form {
  margin-bottom: 12px;
}
.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}
.notes-list {
  display: grid;
  gap: 10px;
}
.note-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fcfcfd;
}
.note-item__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.note-item__body {
  margin: 0;
  color: var(--text);
}
.empty-inline {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px;
  color: var(--text-muted);
  text-align: center;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.timeline-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}
.timeline-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.timeline-item__from,
.timeline-item__meta {
  margin: 6px 0 0;
  font-size: 0.82rem;
}
.timeline-item__reason {
  margin: 8px 0 0;
  color: var(--text);
}

.page-header--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.card--warn {
  border-color: #fcd34d;
  background: #fffbeb;
}

.permissions-matrix__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 14px;
  margin-top: 10px;
}
.permissions-matrix__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.88rem;
}
.permissions-matrix__item input {
  margin-top: 3px;
}

/* Sidebar collapse / mobile */
@media (max-width: 960px) {
  .topbar__menu-btn {
    display: flex;
  }
  .topbar__center {
    display: none;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.12);
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  .app-main {
    width: 100%;
  }

  .dashboard-two-col,
  .user-summary-grid {
    grid-template-columns: 1fr;
  }
}
