/* ==========================================================================
   StreamHafen License Server
   CSS Rules 3.0 Foundation
   Current migration stage: layout + sidebar + dashboard finished
   ========================================================================== */

/* ==========================================================================
   THEME
   ========================================================================== */

:root {
  --radius-xl: 1.5rem;
  --radius-lg: 1.25rem;
  --radius-md: 1rem;
  --radius-sm: .9rem;
  --blur: 20px;
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --text-xs: .75rem;
  --text-sm: .875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --container-max: 1200px;
  --primary: #7c3aed;
  --primary-2: #8b5cf6;
  --accent: #06b6d4;
  --accent-2: #14b8a6;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #22c55e;
  --sidebar-w: 256px;
  --bg-base: #0b1220;
  --bg-text: #e5e7eb;
  --bg-text-muted: rgba(229,231,235,.75);
  --bg-divider: rgba(255,255,255,.10);
  --bg-input: rgba(255,255,255,.10);
  --bg-input-border: rgba(255,255,255,.14);
  --glass-bg: rgba(255,255,255,.22);
  --glass-border: rgba(255,255,255,.15);
  --glass-highlight: rgba(255,255,255,.10);
  --dropdown-bg: rgba(15,23,42,.88);
  --btn-ghost-bg: rgba(255,255,255,.06);
  --btn-ghost-border: rgba(255,255,255,.10);
  --btn-ghost-hover-bg: rgba(255,255,255,.10);
  --btn-ghost-hover-border: rgba(255,255,255,.16);
  --btn-ghost-hover-shadow: none;
  --table-row-hover: rgba(255,255,255,.04);
  --shadow-soft: 0 10px 40px rgba(0,0,0,.40);
  --shadow-inner: inset 0 1px 0 rgba(255,255,255,.10);
  --glow-primary: 0 0 22px rgba(124,58,237,.40);
  --glow-accent: 0 0 22px rgba(6,182,212,.35);
  --link: rgba(229,231,235,.92);
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--bg-text);
  background: var(--bg-base);
  background-attachment: fixed;
}

@media (prefers-color-scheme: dark) {
  body.theme-system {
    --bg-base: #0b1220;
    --bg-text: #e5e7eb;
    --bg-text-muted: rgba(229,231,235,.75);
    --bg-divider: rgba(255,255,255,.10);
    --bg-input: rgba(255,255,255,.10);
    --bg-input-border: rgba(255,255,255,.14);
    --glass-bg: rgba(255,255,255,.22);
    --glass-border: rgba(255,255,255,.15);
    --glass-highlight: rgba(255,255,255,.10);
    background: radial-gradient(circle at 20% 20%, rgba(124,58,237,.20), transparent 45%), radial-gradient(circle at 80% 60%, rgba(6,182,212,.18), transparent 45%), radial-gradient(circle at 50% 110%, rgba(139,92,246,.14), transparent 55%), #0b1220;
  }
}

@media (prefers-color-scheme: light) {
  body.theme-system {
    --bg-base: #f8fafc;
    --bg-text: #0f172a;
    --bg-text-muted: rgba(15,23,42,.70);
    --bg-divider: rgba(15,23,42,.08);
    --bg-input: rgba(255,255,255,.70);
    --bg-input-border: rgba(15,23,42,.08);
    --glass-bg: rgba(255,255,255,.70);
    --glass-border: rgba(15,23,42,.06);
    --glass-highlight: rgba(255,255,255,.70);
    --dropdown-bg: rgba(255,255,255,.92);
    --btn-ghost-bg: rgba(255,255,255,.82);
    --btn-ghost-border: rgba(15,23,42,.14);
    --btn-ghost-hover-bg: rgba(255,255,255,.98);
    --btn-ghost-hover-border: rgba(124,58,237,.22);
    --btn-ghost-hover-shadow: 0 0 0 3px rgba(124,58,237,.08);
    --table-row-hover: rgba(15,23,42,.05);
    --shadow-soft: 0 10px 40px rgba(2,6,23,.12);
    --shadow-inner: inset 0 1px 0 rgba(255,255,255,.50);
    --glow-primary: 0 0 22px rgba(124,58,237,.20);
    --glow-accent: 0 0 22px rgba(6,182,212,.18);
    --link: rgba(15,23,42,.82);
    background: radial-gradient(circle at 20% 20%, rgba(167,139,250,.26), transparent 46%), radial-gradient(circle at 80% 60%, rgba(103,232,249,.22), transparent 46%), radial-gradient(circle at 50% 110%, rgba(20,184,166,.12), transparent 55%), #f8fafc;
  }
}

body.theme-dark {
  --bg-base: #0b1220;
  --bg-text: #e5e7eb;
  --bg-text-muted: rgba(229,231,235,.75);
  --bg-divider: rgba(255,255,255,.10);
  --bg-input: rgba(255,255,255,.10);
  --bg-input-border: rgba(255,255,255,.14);
  --glass-bg: rgba(255,255,255,.22);
  --glass-border: rgba(255,255,255,.15);
  --glass-highlight: rgba(255,255,255,.10);
  background: radial-gradient(circle at 20% 20%, rgba(124,58,237,.20), transparent 45%), radial-gradient(circle at 80% 60%, rgba(6,182,212,.18), transparent 45%), radial-gradient(circle at 50% 110%, rgba(139,92,246,.14), transparent 55%), #0b1220;
}

body.theme-light {
  --bg-base: #f8fafc;
  --bg-text: #0f172a;
  --bg-text-muted: rgba(15,23,42,.70);
  --bg-divider: rgba(15,23,42,.08);
  --bg-input: rgba(255,255,255,.70);
  --bg-input-border: rgba(15,23,42,.08);
  --glass-bg: rgba(255,255,255,.70);
  --glass-border: rgba(15,23,42,.06);
  --glass-highlight: rgba(255,255,255,.70);
  --dropdown-bg: rgba(255,255,255,.92);
  --btn-ghost-bg: rgba(255,255,255,.82);
  --btn-ghost-border: rgba(15,23,42,.14);
  --btn-ghost-hover-bg: rgba(255,255,255,.98);
  --btn-ghost-hover-border: rgba(124,58,237,.22);
  --btn-ghost-hover-shadow: 0 0 0 3px rgba(124,58,237,.08);
  --table-row-hover: rgba(15,23,42,.05);
  --shadow-soft: 0 10px 40px rgba(2,6,23,.12);
  --shadow-inner: inset 0 1px 0 rgba(255,255,255,.50);
  --glow-primary: 0 0 22px rgba(124,58,237,.20);
  --glow-accent: 0 0 22px rgba(6,182,212,.18);
  --link: rgba(15,23,42,.82);
  background: radial-gradient(circle at 20% 20%, rgba(167,139,250,.26), transparent 46%), radial-gradient(circle at 80% 60%, rgba(103,232,249,.22), transparent 46%), radial-gradient(circle at 50% 110%, rgba(20,184,166,.12), transparent 55%), #f8fafc;
}

/* ==========================================================================
   BASE
   ========================================================================== */

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

* {
  box-sizing: border-box;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.25rem;
}

.muted {
  color: var(--bg-text-muted);
}

.hr {
  height: 1px;
  background: var(--bg-divider);
  border: 0;
  margin: 1rem 0;
}

footer {
  margin-top: 1.25rem;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--bg-text-muted);
  opacity: .85;
}

footer a,
.auth-card-footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover,
.auth-card-footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   VISIBILITY
   ========================================================================== */

[hidden] {
  display: none !important;
}

.u-hidden {
  display: none !important;
}

.u-z-5000 {
  z-index: 5000 !important;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: block;
  position: relative;
  overflow-x: hidden;
}

.main {
  min-width: 0;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.25rem;
  box-sizing: border-box;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-title {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: .2px;
}


/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: visible;
  overscroll-behavior: contain;
  padding: 1rem;
  z-index: 30;
  background: radial-gradient(circle at 30% 20%, rgba(124,58,237,.28), transparent 50%), radial-gradient(circle at 70% 90%, rgba(6,182,212,.22), transparent 55%), rgba(255,255,255,.04);
  border-right: 1px solid var(--bg-divider);
  backdrop-filter: blur(14px);
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .75rem;
  border-radius: 1rem;
}

.sidebar-brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: .75rem;
  min-height: 44px;
}

.sidebar-brand-row .brand {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 0;
}

.sidebar-brand-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  text-decoration: none;
  overflow: visible;
  flex-wrap: nowrap;
}

.sidebar-brand-logo {
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  border-radius: 14px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 42px;
  display: block;
}

.sidebar-brand-title {
  min-width: 0;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.15;
  letter-spacing: .2px;
  color: var(--bg-text);
  word-break: break-word;
}

.sidebar-profile-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .4rem;
  margin-bottom: .9rem;
  padding: .75rem;
  border-radius: 1rem;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.sidebar-profile-avatar-wrap {
  flex: 0 0 auto;
}

.sidebar-profile-avatar,
.sidebar-profile-avatar-fallback {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(135deg, rgba(124,58,237,.42), rgba(6,182,212,.35));
  border: 1px solid rgba(255,255,255,.1);
}

.sidebar-profile-meta {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: .38rem;
}

.sidebar-profile-name {
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-profile-actions {
  display: flex;
  align-items: center;
  gap: .42rem;
}

.sidebar-profile-logout-form {
  margin: 0;
}

.sidebar-profile-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--bg-text);
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.sidebar-profile-action svg {
  width: 15px;
  height: 15px;
}

.sidebar-profile-action:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.12);
}

.sidebar-profile-action-danger:hover {
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.2);
  color: #fecaca;
}

.nav {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.sidebar-link,
.nav a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .72rem .8rem;
  border-radius: 1rem;
  color: var(--bg-text);
  opacity: .92;
  transition: background .18s ease, border-color .18s ease, opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}

.sidebar-link:hover,
.nav a:hover {
  background: rgba(255,255,255,.06);
  opacity: 1;
  text-decoration: none;
}

.sidebar-link.active,
.nav a.active {
  position: relative;
  background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(6,182,212,.14));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--glow-primary);
  opacity: 1;
}

.sidebar-link.active::before,
.nav a.active::before {
  content: "";
  position: absolute;
  left: -.38rem;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 62%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(139,92,246,.98), rgba(6,182,212,.98));
  box-shadow: 0 0 18px rgba(124,58,237,.45);
}

.sidebar-link-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-text);
}

.sidebar-link-icon svg {
  width: 18px;
  height: 18px;
}

.sidebar-link-label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav .sidebar-section-title {
  margin-top: 1rem;
  margin-bottom: .32rem;
  padding: .2rem .8rem;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bg-text-muted);
  opacity: .72;
  font-weight: 700;
}

.nav > .sidebar-section-title:first-child {
  margin-top: .15rem;
}

.nav .sidebar-section-title.active-section {
  color: var(--bg-text);
  opacity: 1;
  text-shadow: 0 0 18px rgba(124,58,237,.28);
}

.nav .sidebar-section-title.active-section::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: .5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(139,92,246,1), rgba(6,182,212,1));
  box-shadow: 0 0 18px rgba(124,58,237,.38);
}

.sidebar-collapse-toggle {
  position: fixed;
  top: 50%;
  left: 255px;
  width: 23px;
  height: 23px;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.10);
  color: var(--bg-text);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, left .18s ease;
  box-shadow: 0 8px 22px rgba(4,10,28,.18), 0 0 0 1px rgba(255,255,255,.03);
  z-index: 2000;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.sidebar-collapse-toggle:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.16);
  box-shadow: var(--glow-primary);
}

.sidebar-collapse-toggle svg {
  width: 19px;
  height: 19px;
  transition: transform .18s ease;
}

.theme-toggle {
  position: relative;
  margin: 0;
  background: inherit;
  border: inherit;
  font-size: 16px;
  cursor: pointer;
  opacity: 1;
}


.sidebar-profile-action.theme-toggle {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--glass-border);
}
.theme-toggle-slot {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-slot svg {
  width: 15px;
  height: 15px;
  display: block;
}

html.sidebar-collapsed .sidebar {
  width: 92px;
  padding-left: .8rem;
  padding-right: .8rem;
}

html.sidebar-collapsed .main {
  margin-left: 92px;
}

html.sidebar-collapsed .sidebar-collapse-toggle {
  left: 91px;
}

html.sidebar-collapsed .sidebar-collapse-toggle svg {
  transform: rotate(180deg);
}

html.sidebar-collapsed .sidebar-brand-title,
html.sidebar-collapsed .sidebar-profile-meta,
html.sidebar-collapsed .sidebar-link-label,
html.sidebar-collapsed .nav .sidebar-section-title {
  display: none !important;
}

html.sidebar-collapsed .sidebar .brand {
  justify-content: center;
  padding: .55rem 0;
}

html.sidebar-collapsed .sidebar-profile-card {
  justify-content: center;
  padding: .6rem;
}

html.sidebar-collapsed .sidebar-profile-avatar,
html.sidebar-collapsed .sidebar-profile-avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

html.sidebar-collapsed .sidebar-link {
  justify-content: center;
  padding: .8rem .55rem;
}

html.sidebar-collapsed .sidebar-link-icon {
  flex-basis: auto;
}

html.sidebar-collapsed .nav {
  gap: .35rem;
}

html.sidebar-collapsed .nav a.active::before {
  left: 50%;
  top: auto;
  bottom: -.26rem;
  transform: translateX(-50%);
  width: 56%;
  height: 4px;
}

@media (max-width: 980px) {
  .sidebar {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
  }

  .main {
    margin-left: 0;
    min-height: auto;
    height: auto;
  }

  .sidebar-collapse-toggle {
    display: none;
  }

  html.sidebar-collapsed .sidebar {
    width: var(--sidebar-w);
    padding-left: 1rem;
    padding-right: 1rem;
  }

  html.sidebar-collapsed .main {
    margin-left: 0;
  }

  html.sidebar-collapsed .sidebar-brand-title,
  html.sidebar-collapsed .sidebar-profile-meta,
  html.sidebar-collapsed .sidebar-link-label,
  html.sidebar-collapsed .nav .sidebar-section-title {
    display: initial !important;
  }
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(var(--blur));
  box-shadow: var(--shadow-soft), var(--shadow-inner);
  overflow: visible;
}

.glass-card .card-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--bg-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.glass-card .card-body {
  padding: 1.25rem;
}

.customers-table-card,
.audit-table-card,
.dashboard-panel {
  overflow: hidden;
}

.card-title {
  font-weight: 700;
}

.card-subtitle {
  font-size: var(--text-sm);
  color: var(--bg-text-muted);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .72rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--bg-input-border);
  font-weight: 650;
  cursor: pointer;
  user-select: none;
  transition: transform .08s ease, box-shadow .12s ease, opacity .12s ease, background .12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: var(--glow-primary);
  border-color: rgba(255,255,255,.10);
}

.btn-primary:hover {
  box-shadow: 0 0 28px rgba(124,58,237,.55);
}

.btn-secondary {
  color: var(--bg-text);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.10);
}

.btn-secondary:hover {
  background: rgba(255,255,255,.12);
}

.btn-ghost {
  color: var(--bg-text);
  background: var(--btn-ghost-bg);
  border-color: var(--btn-ghost-border);
}

.btn-ghost:hover {
  background: var(--btn-ghost-hover-bg);
  border-color: var(--btn-ghost-hover-border);
  box-shadow: var(--btn-ghost-hover-shadow);
}

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 0 24px rgba(239,68,68,.35);
  border-color: rgba(255,255,255,.10);
}

.btn-sm {
  padding: .5rem .8rem;
  border-radius: .9rem;
  font-size: var(--text-sm);
  line-height: 1.1;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

label {
  display: block;
  margin-bottom: .35rem;
  font-size: var(--text-sm);
  color: var(--bg-text-muted);
}

.input,
textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  color: var(--bg-text);
  background: var(--bg-input);
  border: 1px solid var(--bg-input-border);
  border-radius: 1rem;
  padding: 0 .85rem;
  outline: none;
}

.input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  color: var(--bg-text);
  background: var(--bg-input);
  border: 1px solid var(--bg-input-border);
  border-radius: 1rem;
  padding: .45rem .75rem;
  min-height: 2.25rem;
  outline: none;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.input:focus,
textarea:focus {
  border-color: rgba(124,58,237,.45);
  box-shadow: 0 0 0 3px rgba(124,58,237,.18);
}

.sh-modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.sh-form-grid {
  display: grid;
  gap: 1rem;
}

.sh-form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sh-form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sh-form-field-span-2 {
  grid-column: span 2;
}

.form-note {
  padding: .95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(124,58,237,.24);
  background: linear-gradient(135deg, rgba(124,58,237,.14), rgba(6,182,212,.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.form-note-title {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: .25rem;
  color: var(--bg-text);
}

.form-note-text {
  font-size: var(--text-sm);
  color: var(--bg-text-muted);
}

@media (max-width: 900px) {
  .sh-form-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .sh-form-grid-2,
  .sh-form-grid-3 {
    grid-template-columns: 1fr;
  }

  .sh-form-field-span-2 {
    grid-column: auto;
  }
}

/* ==========================================================================
   TABLES
   ========================================================================== */

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.table th,
.table td {
  text-align: left;
  padding: .85rem;
  border-bottom: 1px solid var(--bg-divider);
  font-size: var(--text-sm);
}

.table th {
  color: var(--bg-text-muted);
  font-weight: 650;
}


.table th a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.table th a:hover {
  color: inherit;
  text-decoration: none;
}

.table tr:hover td {
  background: var(--table-row-hover);
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.sh-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.72);
  z-index: 2500;
  padding: 2rem;
  overflow: auto;
}

.sh-modal-window {
  max-width: 760px;
  margin: 3rem auto;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025)), var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft), var(--shadow-inner);
  padding: 1.25rem;
}

.sh-modal-window-lg {
  max-width: 1280px;
  width: min(1280px, calc(100vw - 2rem));
}

.sh-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sh-modal-header-tight {
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--bg-divider);
}

.sh-modal-window-md {
  max-width: 860px;
}

.sh-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  flex-wrap: wrap;
  padding-top: .2rem;
}

@media (max-width: 700px) {
  .sh-modal-window,
  .sh-modal-window-md,
  .sh-modal-window-lg {
    margin: 1rem auto;
    padding: 1rem;
  }

  .sh-modal-overlay {
    padding: 1rem;
  }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.center-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-card {
  width: min(520px, 100%);
}

.error-code {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

/* ==========================================================================
   AUTH + ERROR
   ========================================================================== */

.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem 1rem;
}

.auth-card {
  width: min(760px, 100%);
}

.auth-card-body {
  padding: 1.15rem;
}

.auth-card-footer {
  margin-top: 1.15rem;
  padding-top: .95rem;
  border-top: 1px solid var(--bg-divider);
  text-align: center;
  font-size: .86rem;
  color: var(--bg-text-muted);
}

.auth-form {
  margin-top: .25rem;
}

.auth-form-grid {
  display: grid;
  gap: .65rem;
}

.auth-help-box {
  padding: .85rem .95rem;
  border-radius: 1rem;
  border: 1px solid var(--bg-divider);
  background: rgba(255,255,255,.045);
  color: var(--bg-text-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}

.auth-actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  align-items: center;
}

.auth-actions-center {
  justify-content: center;
}

.auth-error-actions {
  justify-content: flex-start;
}

.auth-flash-card {
  margin-bottom: 1rem;
}

.auth-error-list {
  margin: .55rem 0 0;
  padding-left: 1.1rem;
}

.auth-error-layout {
  display: grid;
  grid-template-columns: minmax(220px, 240px) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: center;
}

.auth-error-brand-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-error-brand-wrap {
  width: 100%;
}

.auth-error-brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  text-align: center;
}

.auth-error-brand-mark .brand-mark-image {
  width: min(100%, 210px);
  max-width: 210px;
  height: auto;
  border-radius: 1.9rem;
  object-fit: cover;
  display: block;
}

.auth-error-brand-mark .brand-mark-text {
  display: block;
  font-weight: 760;
  font-size: 1.08rem;
  line-height: 1.24;
  text-align: center;
  color: var(--bg-text);
}

.auth-error-content-column {
  display: grid;
  align-content: center;
}

.auth-error-wrap {
  text-align: left;
}

.auth-error-title {
  margin-bottom: .2rem;
}

.auth-error-subtitle {
  margin-top: 0;
  margin-bottom: .7rem;
}

.auth-error-message {
  margin-top: .55rem;
  margin-bottom: 1rem;
  font-size: var(--text-md);
  line-height: 1.5;
}

.error-code {
  font-size: clamp(3rem, 7vw, 4.5rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .5rem;
}

@media (max-width: 760px) {
  .auth-card-body {
    padding: 1rem;
  }

  .auth-error-layout {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .auth-error-brand-mark .brand-mark-image {
    max-width: 170px;
    border-radius: 1.6rem;
  }

  .auth-error-content-column,
  .auth-error-wrap {
    text-align: center;
  }

  .auth-error-actions {
    justify-content: center;
  }

  .auth-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.audit-pager-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 1rem;
}

.audit-pager-meta {
  flex: 1 1 260px;
  min-width: 0;
  font-size: var(--text-sm);
  color: var(--bg-text-muted);
}

.audit-pager-center {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audit-pager-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.audit-pager-actions .btn {
  min-width: 2.3rem;
}

.audit-pager-right,
.audit-pager-per-page {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.audit-per-page-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audit-per-page-label {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}


/* =========================
   Badges (GLOBAL)
========================= */

.badge{
display:inline-flex;
align-items:center;
padding:0.25rem 0.55rem;
border-radius:999px;
font-size:var(--text-xs);
font-weight:600;
border:1px solid var(--glass-border);
}

.badge-active,
.badge-success{
color:var(--success);
background:rgba(34,197,94,0.12);
border-color:rgba(34,197,94,0.25);
}

.badge-deactivated,
.badge-danger{
color:var(--danger);
background:rgba(239,68,68,0.12);
border-color:rgba(239,68,68,0.25);
}

.badge-warning{
color:var(--warning);
background:rgba(245,158,11,0.12);
border-color:rgba(245,158,11,0.25);
}

.badge-secondary,
.badge-muted{
color:var(--bg-text);
background:rgba(255,255,255,.08);
border-color:rgba(255,255,255,.10);
}

.badge-info{
color:var(--accent);
background:rgba(6,182,212,0.12);
border-color:rgba(6,182,212,0.25);
}

/* =========================
   Actor Badges
========================= */

.badge-actor-admin{
  color: color-mix(in srgb, white 84%, var(--primary) 16%);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border-color: color-mix(in srgb, var(--primary) 68%, transparent);
}

.badge-actor-shop-webhook{
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.badge-actor-license-server{
  color: var(--bg-text-muted);
  background: color-mix(in srgb, var(--bg-text-muted) 14%, transparent);
  border-color: color-mix(in srgb, var(--bg-text-muted) 30%, transparent);
}

.badge-actor-wbb-connector{
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent-2) 30%, transparent);
}


body.theme-light .badge-actor-admin{
  color: color-mix(in srgb, var(--primary) 82%, black 18%);
  background: color-mix(in srgb, var(--primary) 10%, white 90%);
  border-color: color-mix(in srgb, var(--primary) 42%, transparent);
}

@media (prefers-color-scheme: light){
  body.theme-system .badge-actor-admin{
    color: color-mix(in srgb, var(--primary) 82%, black 18%);
    background: color-mix(in srgb, var(--primary) 10%, white 90%);
    border-color: color-mix(in srgb, var(--primary) 42%, transparent);
  }
}


/* ==========================================================================
   DROPDOWN
   ========================================================================== */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown--full {
  display: block;
  width: 100%;
}

.dropdown[open] {
  z-index: 240;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 84px;
  width: 100%;
  min-height: 2.25rem;
  box-sizing: border-box;
  padding: .45rem .75rem;
  border: 1px solid var(--bg-input-border);
  border-radius: 1rem;
  background: var(--bg-input);
  color: var(--bg-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.dropdown--full .dropdown-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 84px;
  width: 100%;
  min-height: 2.25rem;
  box-sizing: border-box;
  padding: .45rem .75rem;
  border: 1px solid var(--bg-input-border);
  border-radius: 1rem;
  background: var(--bg-input);
  color: var(--bg-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.dropdown-trigger::-webkit-details-marker {
  display: none;
}

.dropdown-trigger:hover {
  border-color: rgba(124,58,237,0.35);
}

.dropdown-value {
  font-weight: 700;
}

.dropdown-caret {
  font-size: 12px;
  opacity: 0.85;
  transition: transform .16s ease;
}

.dropdown[open] .dropdown-caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 84px;
  padding: 8px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--dropdown-bg);
  color: var(--bg-text);
  box-shadow: var(--shadow-soft), var(--shadow-inner);
  backdrop-filter: blur(var(--blur));
  z-index: 120;
}

.dropdown--full .dropdown-menu {
  left: 0;
  right: 0;
  min-width: 100%;
}

.audit-per-page-form .dropdown-menu {
  top: auto;
  bottom: calc(100% + 8px);
  transform-origin: bottom right;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--bg-text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.dropdown-item.is-disabled,
.dropdown-item:disabled {
  opacity: .55;
  cursor: default;
  pointer-events: none;
}

.dropdown-item:hover {
  background: rgba(124,58,237,0.15);
  text-decoration: none;
}

.dropdown-item.is-active {
  background: linear-gradient(135deg, rgba(124,58,237,0.28), rgba(6,182,212,0.16));
  color: #fff;
}

.audit-btn-disabled {
  opacity: .65;
  cursor: default;
  pointer-events: none;
}

.audit-pager-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  color: var(--bg-text-muted);
}


/* ==========================================================================
   PAGE DASHBOARD
   ========================================================================== */

.page-dashboard .dashboard-hero {
  margin-bottom: 1rem;
}

.page-dashboard .dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.page-dashboard .dashboard-kpi-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-height: 156px;
  padding: 1.25rem;
  overflow: hidden;
}

.page-dashboard .dashboard-kpi-icon {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
}

.page-dashboard .dashboard-kpi-icon svg {
  width: 22px;
  height: 22px;
}

.page-dashboard .dashboard-kpi-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .45rem;
  min-width: 0;
}

.page-dashboard .dashboard-kpi-label {
  font-size: var(--text-sm);
  color: var(--bg-text);
  font-weight: 700;
}

.page-dashboard .dashboard-kpi-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}

.page-dashboard .dashboard-kpi-card.is-customers .dashboard-kpi-value {
  color: #60a5fa;
}

.page-dashboard .dashboard-kpi-card.is-licenses .dashboard-kpi-value {
  color: #c084fc;
}

.page-dashboard .dashboard-kpi-card.is-installations .dashboard-kpi-value {
  color: #2dd4bf;
}

.page-dashboard .dashboard-kpi-meta {
  font-size: var(--text-xs);
  color: var(--bg-text-muted);
}

.page-dashboard .dashboard-kpi-glow {
  position: absolute;
  inset: auto -44px -44px auto;
  width: 180px;
  height: 110px;
  border-radius: 999px;
  opacity: .32;
  filter: blur(26px);
  pointer-events: none;
}

.page-dashboard .dashboard-kpi-card.is-customers .dashboard-kpi-glow {
  background: rgba(96,165,250,.28);
}

.page-dashboard .dashboard-kpi-card.is-licenses .dashboard-kpi-glow {
  background: rgba(139,92,246,.28);
}

.page-dashboard .dashboard-kpi-card.is-installations .dashboard-kpi-glow {
  background: rgba(20,184,166,.25);
}

.page-dashboard .dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  gap: 1rem;
  align-items: start;
}

.page-dashboard .dashboard-content-main,
.page-dashboard .dashboard-content-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.page-dashboard .dashboard-panel {
  min-width: 0;
}

.page-dashboard .dashboard-panel-head {
  align-items: flex-start;
}

.page-dashboard .dashboard-panel-dots,
.page-dashboard .dashboard-settings-icon {
  color: var(--bg-text-muted);
  opacity: .8;
}

.page-dashboard .dashboard-settings-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.page-dashboard .dashboard-settings-icon svg {
  width: 20px;
  height: 20px;
}

.page-dashboard .dashboard-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  margin-bottom: 1rem;
}

.page-dashboard .dashboard-legend-item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--bg-text-muted);
  font-size: .92rem;
}

.page-dashboard .dashboard-legend-item.is-active {
  color: var(--bg-text);
}

.page-dashboard .dashboard-legend-swatch {
  display: inline-block;
  width: 18px;
  height: 6px;
  border-radius: 999px;
  vertical-align: middle;
  flex: 0 0 auto;
}

.page-dashboard .dashboard-legend-swatch.is-activate { background: linear-gradient(90deg, #60a5fa, #3b82f6); }
.page-dashboard .dashboard-legend-swatch.is-refresh { background: linear-gradient(90deg, #f472b6, #ec4899); }
.page-dashboard .dashboard-legend-swatch.is-self-reset { background: linear-gradient(90deg, #f59e0b, #f97316); }
.page-dashboard .dashboard-legend-swatch.is-stale-reset { background: linear-gradient(90deg, #ef4444, #f87171); }

.page-dashboard .dashboard-zero-note {
  font-size: .8rem;
  opacity: .75;
}

.page-dashboard .dashboard-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.page-dashboard .dashboard-period-toggles,
.page-dashboard .dashboard-series-toggles {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.page-dashboard .dashboard-period-toggle,
.page-dashboard .dashboard-series-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  padding: .55rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: var(--bg-text);
  font: inherit;
  font-size: .83rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.page-dashboard .dashboard-period-toggle:hover,
.page-dashboard .dashboard-series-toggle:hover {
  background: rgba(255,255,255,.10);
}

.page-dashboard .dashboard-period-toggle.is-active,
.page-dashboard .dashboard-series-toggle.is-active {
  background: linear-gradient(135deg, rgba(124,58,237,.26), rgba(6,182,212,.16));
  border-color: rgba(255,255,255,.14);
  box-shadow: var(--glow-primary);
}

.page-dashboard .dashboard-panel-chart {
  min-height: 420px;
  overflow: visible;
}

.page-dashboard .dashboard-panel-chart .card-body {
  overflow: visible;
}

.page-dashboard .dashboard-line-chart-card {
  position: relative;
  padding: 1rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  overflow: visible;
}

.page-dashboard .dashboard-line-chart {
  display: block;
  width: 100%;
  height: auto;
}

.page-dashboard .dashboard-line-grid {
  stroke: rgba(255,255,255,.10);
  stroke-width: 1;
}

.page-dashboard .dashboard-line-grid-vertical {
  stroke: rgba(255,255,255,.06);
}

.page-dashboard .dashboard-line-axis-label,
.page-dashboard .dashboard-line-x-label {
  fill: var(--bg-text-muted);
  font-size: 12px;
  font-weight: 600;
}

.page-dashboard .dashboard-line-series {
  fill: none;
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.page-dashboard .dashboard-line-series.is-activate { stroke: #60a5fa; }
.page-dashboard .dashboard-line-series.is-refresh { stroke: #f472b6; }
.page-dashboard .dashboard-line-series.is-self-reset { stroke: #f59e0b; }
.page-dashboard .dashboard-line-series.is-stale-reset { stroke: #ef4444; }

.page-dashboard .dashboard-line-series-zero {
  stroke-dasharray: 6 6;
  opacity: .6;
}

.page-dashboard .dashboard-line-area {
  opacity: 1;
}

.page-dashboard .dashboard-line-area-zero {
  opacity: .3;
}

.page-dashboard .dashboard-line-point {
  stroke: rgba(15,23,42,.85);
  stroke-width: 2;
}

.page-dashboard .dashboard-line-point.is-activate { fill: #60a5fa; }
.page-dashboard .dashboard-line-point.is-refresh { fill: #f472b6; }
.page-dashboard .dashboard-line-point.is-self-reset { fill: #f59e0b; }
.page-dashboard .dashboard-line-point.is-stale-reset { fill: #ef4444; }

.page-dashboard .dashboard-line-hit {
  cursor: pointer;
}

.page-dashboard .dashboard-line-tooltip {
  position: absolute;
  z-index: 60;
  min-width: 180px;
  max-width: 260px;
  padding: .7rem .8rem;
  border-radius: 1rem;
  background: rgba(11,18,32,.92);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  color: #e5e7eb;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .15s ease, transform .15s ease;
}

.page-dashboard .dashboard-line-tooltip.is-visible {
  opacity: 1;
  transform: translateY(-12px);
}

.page-dashboard .dashboard-line-tooltip-title {
  font-weight: 800;
  margin-bottom: .45rem;
}

.page-dashboard .dashboard-line-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-size: .88rem;
}

.page-dashboard .dashboard-line-tooltip-key {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.page-dashboard .dashboard-line-x-label.is-today {
  fill: #ffffff;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(96,165,250,.35);
}

.page-dashboard .dashboard-line-series-animated {
  animation: dashboardLineDraw .7s ease both;
}

.page-dashboard .dashboard-line-area-animated {
  animation: dashboardAreaFade .45s ease both;
}

.page-dashboard .dashboard-table-wrap {
  overflow-x: auto;
}

.page-dashboard .dashboard-mini-table {
  width: 100%;
  border-collapse: collapse;
}

.page-dashboard .dashboard-mini-table th,
.page-dashboard .dashboard-mini-table td {
  padding: .85rem 0;
  border-bottom: 1px solid var(--bg-divider);
  font-size: var(--text-sm);
  text-align: left;
  vertical-align: middle;
}

.page-dashboard .dashboard-mini-table th {
  color: var(--bg-text-muted);
  font-weight: 650;
}

.page-dashboard .dashboard-table-empty {
  color: var(--bg-text-muted);
}

.page-dashboard .dashboard-activity-list {
  display: flex;
  flex-direction: column;
}

.page-dashboard .dashboard-activity-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: .8rem;
  align-items: center;
  padding: .8rem 0;
}

.page-dashboard .dashboard-activity-item + .dashboard-activity-item {
  border-top: 1px solid var(--bg-divider);
}

.page-dashboard .dashboard-activity-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, rgba(124,58,237,.34), rgba(6,182,212,.28));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.page-dashboard .dashboard-activity-main {
  min-width: 0;
}

.page-dashboard .dashboard-activity-title {
  font-weight: 700;
}

.page-dashboard .dashboard-activity-subtitle,
.page-dashboard .dashboard-activity-time {
  color: var(--bg-text-muted);
  font-size: var(--text-sm);
}

.page-dashboard .dashboard-settings-list {
  display: flex;
  flex-direction: column;
}

.page-dashboard .dashboard-settings-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .7rem 0;
}

.page-dashboard .dashboard-settings-row + .dashboard-settings-row {
  border-top: 1px solid var(--bg-divider);
}

.page-dashboard .dashboard-settings-row-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 16px rgba(124,58,237,.32);
}

.page-dashboard .dashboard-settings-row-label {
  color: var(--bg-text);
  font-weight: 700;
}

.page-dashboard .dashboard-settings-row-value {
  font-weight: 700;
  text-align: right;
}

@media (max-width: 1180px) {
  .page-dashboard .dashboard-chart-toolbar {
    align-items: flex-start;
  }

  .page-dashboard .dashboard-content-grid {
    grid-template-columns: 1fr;
  }

  .page-dashboard .dashboard-content-main,
  .page-dashboard .dashboard-content-side {
    gap: 1rem;
  }
}

@media (max-width: 980px) {
  .page-dashboard .dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-dashboard .dashboard-activity-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .page-dashboard .dashboard-activity-time {
    grid-column: 2;
  }

  .page-dashboard .dashboard-settings-row {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .page-dashboard .dashboard-settings-row-value {
    grid-column: 2;
    text-align: left;
  }
}

@keyframes dashboardLineDraw {
  from {
    opacity: 0;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
  }

  to {
    opacity: 1;
    stroke-dasharray: 1200;
    stroke-dashoffset: 0;
  }
}

@keyframes dashboardAreaFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}




/* ==========================================================================
   PAGE CUSTOMERS
   ========================================================================== */

.page-customers-header {
  margin-bottom: 1rem;
}


.customers-header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.customers-create-modal-window {
  max-width: 420px;
}

.customers-create-form {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.customers-create-form .form-group {
  margin-bottom: 0;
}

.customers-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  margin-top: .25rem;
}

.customers-form-error {
  margin-top: .35rem;
  font-size: .875rem;
  color: var(--danger);
}

.customers-filter-card,
.customers-status-card {
  margin-bottom: 1rem;
}

.customers-filter-card {
  position: relative;
  z-index: 20;
}

.customers-table-card {
  position: relative;
  z-index: 1;
}

.customers-filter-form {
  display: grid;
  grid-template-columns: minmax(320px, 1.8fr) minmax(180px, 240px) auto;
  gap: 1rem;
  align-items: end;
}

.customers-filter-form .form-group {
  margin-bottom: 0;
}

.customers-filter-actions {
  display: flex;
  align-items: flex-end;
  gap: .75rem;
  flex-wrap: wrap;
}

.customers-filter-actions .btn {
  min-height: 46px;
  padding-top: .7rem;
  padding-bottom: .7rem;
}

.customers-table-wrap {
  overflow-x: auto;
}

.customers-table {
  min-width: 980px;
}

.customers-table-actions {
  text-align: right;
  white-space: nowrap;
  width: 180px;
}

.customers-pagination {
  margin-top: 1rem;
}

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

  .customers-filter-actions {
    justify-content: flex-start;
  }
}


/* customer page spacing */
.customer-header-card{
margin-bottom:var(--space-lg,24px);
}






.customers-license-create-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.customers-license-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.customers-license-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.customers-license-create-field {
  min-width: 0;
}

@media (max-width: 700px) {
  .customers-license-row-2,
  .customers-license-row-3 {
    grid-template-columns: 1fr;
  }
}

.customers-edit-modal-window {
  max-width: 420px;
}

.customer-edit-form-stack {
  display: flex;
  flex-direction: column;
  gap: .95rem;
}

.customer-hero-layout {
  display: grid;
  grid-template-columns: minmax(220px, .9fr) minmax(420px, 1.6fr) auto;
  align-items: start;
  gap: 1rem 1.25rem;
}

.customer-hero-kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bg-text-muted);
  margin-bottom: .45rem;
}

.customer-hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: .65rem;
}

.customer-hero-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.customer-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
}

.customer-hero-meta-label {
  font-size: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bg-text-muted);
}

.customer-hero-actions {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  min-width: 200px;
}

.customer-hero-actions .btn {
  width: 100%;
  justify-content: center;
}

.customer-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.customer-summary-grid-hero {
  align-self: stretch;
}

.customer-summary-item {
  padding: .9rem 1rem;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  border-radius: 18px;
  min-width: 0;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.customer-summary-item-wide {
  min-width: 160px;
}

.customer-summary-label {
  font-size: .8rem;
  color: var(--bg-text-muted);
  margin-bottom: .35rem;
}

.customer-summary-value {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
}

.customer-summary-value-date {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.customer-switch-head {
  padding-bottom: 0;
}

.customer-switch-tabs {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.customer-switch-tab {
  min-width: 132px;
}

.customer-switch-tab.is-active {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: transparent;
  box-shadow: var(--glow-primary);
  color: #fff;
}

.customer-switch-body {
  padding-top: 1rem;
}

.customer-tab-panel {
  min-width: 0;
}

.customer-log-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 1rem 0;
}

.customer-log-body {
  padding: 0;
}

.customer-license-module-list {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.customer-license-module-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .22rem .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  font-size: .78rem;
  color: var(--bg-text);
}

.sh-form-grid-module {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


@media (max-width: 1240px) {
  .customer-hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-summary-grid-hero {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1100px) {
  .customer-detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .customer-summary-grid,
  .customer-summary-grid-hero,
  .sh-form-grid-module {
    grid-template-columns: 1fr;
  }

  .sh-form-grid-module .sh-form-field-span-2 {
    grid-column: auto;
  }
}





/* ==========================================================================
   PAGE SETTINGS SECURITY
   ========================================================================== */

.settings-security-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.settings-security-item {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
}

.settings-security-item label {
  color: var(--bg-text);
  font-size: var(--text-sm);
  font-weight: 700;
}

.settings-security-item-switch {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.settings-security-item-switch > div {
  min-width: 0;
}

.settings-security-item-switch .admins-switch-control {
  width: 3.2rem;
  height: 1.9rem;
}

.settings-security-token-item,
.settings-security-ips-item {
  justify-content: flex-start;
}

.settings-security-token-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  margin-top: .35rem;
}

.settings-security-ips-textarea {
  min-height: 168px;
  resize: vertical;
}

@media (max-width: 1200px) {
  .settings-security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-security-ips-item {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .settings-security-grid {
    grid-template-columns: 1fr;
  }

  .settings-security-ips-item {
    grid-column: auto;
  }

  .settings-security-item-switch {
    align-items: flex-start;
  }
}
/* ==========================================================================
   PAGE MODULES
   ========================================================================== */

.modules-modal-window {
  max-width: 760px;
}

.modules-form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modules-form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.modules-form-grid-1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  max-width: 320px;
}

.modules-readonly-input {
  opacity: .8;
  color: var(--bg-text-muted);
  cursor: default;
}

.modules-readonly-input:focus {
  border-color: var(--bg-input-border);
  box-shadow: none;
}

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

  .modules-form-grid-1 {
    max-width: none;
  }
}



/* ==========================================================================
   PAGE PRODUCTS
   ========================================================================== */

.products-modal-window {
  max-width: 368px;
}

.products-form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.products-form-grid-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  max-width: 320px;
}

.products-form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.products-form-grid-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  max-width: 320px;
}

.products-form-help {
  margin-top: .7rem;
  font-size: var(--text-sm);
  color: var(--bg-text);
  font-weight: 600;
}

.products-form-note {
  max-width: 320px;
}

.products-readonly-input {
  opacity: .8;
  color: var(--bg-text-muted);
  cursor: default;
}

.products-readonly-input:focus {
  border-color: var(--bg-input-border);
  box-shadow: none;
}

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

  .products-form-grid-compact {
    max-width: none;
  }

  .products-form-grid-status {
    max-width: none;
  }

  .products-form-note {
    max-width: none;
  }
}



.flash-card {
  margin-bottom: 1.25rem;
}



/* ==========================================================================
   PAGE RELEASES
   ========================================================================== */

.releases-modal-window {
  max-width: 860px;
}

.releases-form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.releases-form-grid-1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.releases-form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

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


/* ==========================================================================
   PAGE INSTALLATIONS
   ========================================================================== */

.installations-search-card {
  margin-bottom: 1.25rem;
}

.installations-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

.installations-search-field {
  min-width: 0;
}

.installations-search-actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.installations-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  flex-wrap: wrap;
}

.installations-modal-window {
  max-width: 760px;
}

.installations-modal-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem;
  flex-wrap: wrap;
}

.installations-detail-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


.installations-modal-header-button {
  min-width: 126px;
  justify-content: center;
}

.installations-software-stack {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.installations-software-block {
  display: flex;
  flex-direction: column;
  gap: .18rem;
}

.installations-software-label {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bg-text-muted);
}

.installations-software-value {
  color: var(--bg-text);
  line-height: 1.45;
}

.installations-module-version-list {
  display: flex;
  flex-direction: column;
  gap: .24rem;
}

.installations-module-version-item {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  flex-wrap: wrap;
}

.installations-module-version-key {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
}

.installations-module-version-sep {
  color: var(--bg-text-muted);
}

.installations-module-version-value {
  color: var(--bg-text);
}

.installations-detail-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(124,58,237,.16), rgba(6,182,212,.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.installations-detail-kicker {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bg-text-muted);
  margin-bottom: .35rem;
}

.installations-detail-machine,
.installations-detail-license {
  margin: 0;
}

.installations-detail-machine {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.installations-detail-machine code,
.installations-detail-license code,
.installations-detail-row dd code {
  font-size: inherit;
}

.installations-detail-license {
  color: var(--bg-text-muted);
}

.installations-detail-status-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.installations-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.installations-detail-section {
  padding: 1rem 1.1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.installations-detail-section-title {
  margin-bottom: .9rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--bg-text);
}

.installations-detail-list {
  margin: 0;
  padding: 0;
}

.installations-detail-row {
  display: grid;
  grid-template-columns: minmax(130px, 150px) minmax(0, 1fr);
  gap: .9rem;
  align-items: start;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.installations-detail-row:first-child {
  padding-top: 0;
}

.installations-detail-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.installations-detail-row dt {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--bg-text-muted);
}

.installations-detail-row dd {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--bg-text);
  word-break: break-word;
}

.installations-textarea {
  min-height: 110px;
  padding-top: .7rem;
  padding-bottom: .7rem;
}

@media (max-width: 760px) {
  .installations-search-form,
  .installations-detail-grid {
    grid-template-columns: 1fr;
  }

  .installations-search-actions,
  .installations-modal-header-actions,
  .installations-detail-status-wrap {
    justify-content: flex-start;
  }

  .installations-detail-intro {
    flex-direction: column;
  }

  .installations-detail-row {
    grid-template-columns: 1fr;
    gap: .2rem;
  }
}


/* ==========================================================================
   PAGE LOG
   ========================================================================= */

.audit-filter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.audit-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.audit-filter-field {
  min-width: 0;
}

.audit-filter-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  flex-wrap: wrap;
}

.audit-filter-btn {
  min-width: 124px;
}

@media (max-width: 980px) {
  .audit-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .audit-filter-grid {
    grid-template-columns: 1fr;
  }

  .audit-filter-actions {
    justify-content: flex-start;
  }
}

.audit-actor-badge {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
}

.audit-actor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  font-size: .9rem;
  line-height: 1;
  flex: 0 0 auto;
}

.audit-log-modal-window {
  max-width: 1180px;
}

.audit-log-summary-card {
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(124,58,237,.22);
  background: linear-gradient(135deg, rgba(124,58,237,.13), rgba(6,182,212,.10));
  box-shadow: var(--shadow-soft), var(--shadow-inner), inset 0 1px 0 rgba(255,255,255,.05);
}

.audit-log-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.audit-log-summary-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bg-text-muted);
  margin-bottom: .4rem;
}

.audit-log-summary-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-bottom: .35rem;
}

.audit-log-summary-pill {
  min-height: 2.2rem;
}

.audit-log-summary-code {
  font-size: var(--text-sm);
  color: var(--bg-text-muted);
  word-break: break-word;
}

.audit-log-summary-actor {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.audit-log-summary-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem 1rem;
  margin-top: 1rem;
}

.audit-log-summary-meta-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.audit-log-summary-meta-label,
.audit-log-summary-extra-title {
  font-size: .78rem;
  font-weight: 700;
  color: var(--bg-text-muted);
}

.audit-log-summary-meta-value {
  font-size: var(--text-sm);
  color: var(--bg-text);
  word-break: break-word;
}

.audit-log-summary-extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.audit-log-summary-extra-block {
  padding-top: .95rem;
  border-top: 1px solid rgba(255,255,255,.08);
}

.audit-compare-card {
  background: linear-gradient(135deg, rgba(124,58,237,.13), rgba(6,182,212,.10));
  border: 1px solid rgba(124,58,237,.22);
  border-radius: 1.35rem;
  box-shadow: var(--shadow-soft), var(--shadow-inner), inset 0 1px 0 rgba(255,255,255,.05);
  padding: 1rem 1.05rem;
  min-width: 0;
}

.audit-compare-card-before {
  border-color: rgba(124,58,237,.22);
}

.audit-compare-card-after {
  border-color: rgba(6,182,212,.22);
}

.audit-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .9rem;
  margin-bottom: .95rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.audit-panel-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.audit-panel-subtitle {
  margin-top: .2rem;
  font-size: .88rem;
  color: var(--bg-text-muted);
}

.audit-state-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0 .75rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,.1);
}

.audit-state-pill-before {
  color: #d8b4fe;
  background: rgba(124,58,237,.14);
  border-color: rgba(124,58,237,.28);
}

.audit-state-pill-after {
  color: #99f6e4;
  background: rgba(6,182,212,.12);
  border-color: rgba(6,182,212,.24);
}

.audit-kv-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.audit-kv-list-compact {
  gap: .55rem;
}

.audit-kv-list-compare {
  gap: .8rem;
}

.audit-kv-row {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr);
  gap: .85rem;
  align-items: flex-start;
  padding-bottom: .7rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.audit-kv-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.audit-kv-row.is-changed.is-before {
  border-left: 3px solid rgba(124,58,237,.34);
  padding-left: .7rem;
  margin-left: -.7rem;
}

.audit-kv-row.is-changed.is-after {
  border-left: 3px solid rgba(6,182,212,.34);
  padding-left: .7rem;
  margin-left: -.7rem;
}

.audit-kv-row.is-permission-row {
  grid-template-columns: 1fr;
  gap: .5rem;
}

.audit-kv-key {
  font-size: .84rem;
  font-weight: 700;
  color: var(--bg-text-muted);
  word-break: break-word;
}

.audit-kv-value {
  min-width: 0;
  color: var(--bg-text);
  font-size: .95rem;
  line-height: 1.45;
  word-break: break-word;
}

.audit-kv-value code {
  font-size: .86rem;
  word-break: break-all;
}

.audit-kv-nested {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.audit-empty-value {
  color: var(--bg-text-muted);
}

.audit-inline-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0 .55rem;
  border-radius: 999px;
  background: rgba(124,58,237,.12);
  border: 1px solid rgba(124,58,237,.22);
  color: #e9d5ff;
  font-size: .78rem;
  font-weight: 700;
}

.audit-list-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.audit-list-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0 .55rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.05);
  font-size: .78rem;
  font-weight: 600;
}

.audit-permission-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}

.audit-permission-cell {
  display: flex;
  align-items: center;
  min-height: 2.05rem;
  padding: .3rem .65rem;
  border-radius: .85rem;
  border: 1px solid rgba(6,182,212,.18);
  background: rgba(6,182,212,.07);
  color: var(--bg-text);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.3;
}

.audit-list-value {
  margin: 0;
  padding-left: 1.1rem;
}

.audit-list-item-complex {
  margin-bottom: .55rem;
}

.audit-log-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}


@media (max-width: 980px) {
  .audit-permission-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .audit-permission-table {
    grid-template-columns: minmax(0, 1fr);
  }
}
.audit-log-empty-state {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px dashed rgba(255,255,255,.12);
  color: var(--bg-text-muted);
  background: rgba(255,255,255,.03);
}

@media (max-width: 900px) {
  .audit-log-summary-meta,
  .audit-log-summary-extra,
  .audit-log-compare-grid {
    grid-template-columns: 1fr;
  }

  .audit-log-summary-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .audit-log-summary-actor {
    justify-content: flex-start;
  }

  .audit-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .audit-kv-row {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .audit-kv-row.is-changed.is-before,
  .audit-kv-row.is-changed.is-after {
    margin-left: 0;
    padding-left: .55rem;
  }
}

/* ==========================================================================
   PAGE ADMINS
   ========================================================================== */

.admins-status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.admins-actions-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
}

.admins-generated-password-card {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.admins-generated-password-title {
  font-size: var(--text-base);
  font-weight: 700;
}

.admins-generated-password-text {
  color: var(--bg-text-muted);
  font-size: var(--text-sm);
}

.admins-generated-password-code {
  display: inline-flex;
  align-self: flex-start;
  max-width: 100%;
  padding: .8rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(124,58,237,.26);
  background: rgba(15,23,42,.68);
  color: #fff;
  overflow-wrap: anywhere;
}

.admins-modal-window {
  max-width: 1180px;
}

.admins-modal-form {
  gap: 1.25rem;
}

.admins-form-grid-2,
.admins-switch-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admins-switch-grid-owner {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admins-form-error {
  margin-top: .35rem;
  color: #fecaca;
  font-size: var(--text-sm);
}

.admins-switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
}

.admins-switch-title {
  display: block;
  margin-bottom: .2rem;
  color: var(--bg-text);
  font-size: var(--text-sm);
  font-weight: 700;
}

.admins-switch-text {
  display: block;
  color: var(--bg-text-muted);
  font-size: var(--text-sm);
}

.admins-switch-control {
  position: relative;
  flex: 0 0 auto;
  width: 3.2rem;
  height: 1.9rem;
}

.admins-switch-control-sm {
  width: 2.8rem;
  height: 1.7rem;
}

.admins-switch-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.admins-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(148,163,184,.28);
  border: 1px solid rgba(255,255,255,.08);
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.admins-switch-slider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: .2rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 6px 14px rgba(15,23,42,.28);
  transform: translateY(-50%);
  transition: transform .2s ease;
}

.admins-switch-control-sm .admins-switch-slider::after {
  width: 1.15rem;
  height: 1.15rem;
}

.admins-switch-control input:checked + .admins-switch-slider {
  background: linear-gradient(135deg, rgba(124,58,237,.88), rgba(6,182,212,.72));
  border-color: rgba(124,58,237,.35);
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}

.admins-switch-control input:checked + .admins-switch-slider::after {
  transform: translate(1.25rem, -50%);
}

.admins-switch-control-sm input:checked + .admins-switch-slider::after {
  transform: translate(.95rem, -50%);
}

.admins-switch-control input:disabled + .admins-switch-slider {
  opacity: .65;
  cursor: not-allowed;
}

.admins-permissions-block {
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
}

.admins-permissions-head {
  margin-bottom: 1rem;
}

.admins-permissions-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--bg-text);
}

.admins-permissions-text {
  margin-top: .25rem;
  color: var(--bg-text-muted);
  font-size: var(--text-sm);
}

.admins-permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.admins-permission-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: .85rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
}

.admins-permission-item-title {
  display: block;
  color: var(--bg-text);
  font-size: var(--text-sm);
  font-weight: 650;
}

@media (max-width: 1100px) {
  .admins-permission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admins-permission-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .admins-switch-grid-owner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admins-form-grid-2,
  .admins-switch-grid,
  .admins-switch-grid-owner {
    grid-template-columns: 1fr;
  }

  .admins-actions-row {
    justify-content: flex-start;
  }

  .admins-switch-card {
    align-items: flex-start;
  }
}



/* ==========================================================================
   PAGE SETTINGS MAIL
   ========================================================================== */

.settings-mail-card .card-body,
.settings-mail-test-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-mail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.settings-mail-item {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
}

.settings-mail-item label {
  color: var(--bg-text);
  font-size: var(--text-sm);
  font-weight: 700;
}

.settings-mail-item-switch {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.settings-mail-item-switch > div {
  min-width: 0;
}

.settings-mail-item-switch .admins-switch-control {
  width: 3.2rem;
  height: 1.9rem;
}

.settings-mail-item-note {
  justify-content: center;
}

.settings-mail-test-card {
  margin-top: 1.5rem;
}

.settings-mail-test-row {
  display: block;
}

.settings-mail-test-field {
  min-width: 0;
  max-width: 760px;
}

.settings-mail-test-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  max-width: 760px;
}

.settings-mail-test-action {
  display: flex;
  align-items: center;
}

.settings-mail-test-action .btn {
  white-space: nowrap;
  padding: .72rem 1rem;
}

.settings-mail-test-input-row .input {
  padding: .72rem .75rem;
}

@media (max-width: 1200px) {
  .settings-mail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .settings-mail-grid {
    grid-template-columns: 1fr;
  }

  .settings-mail-test-input-row {
    grid-template-columns: 1fr;
  }

  .settings-mail-item-switch {
    align-items: flex-start;
  }

  .settings-mail-test-action {
    align-items: stretch;
  }

  .settings-mail-test-field {
    max-width: 100%;
  }
}

/* ==========================================================================
   PAGE SETTINGS GENERAL
   ========================================================================== */

.settings-general-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.settings-general-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.settings-general-item {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: 1rem 1.05rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.02));
}

.settings-general-item label {
  color: var(--bg-text);
  font-size: var(--text-sm);
  font-weight: 700;
}

.settings-general-item-switch {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.settings-general-item-switch > div {
  min-width: 0;
}

.settings-general-item-switch .admins-switch-control {
  width: 3.2rem;
  height: 1.9rem;
}

.settings-general-item-note {
  justify-content: center;
}

.settings-general-actions {
  justify-content: flex-start;
  margin-top: .6rem;
}

@media (max-width: 1200px) {
  .settings-general-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .settings-general-grid {
    grid-template-columns: 1fr;
  }

  .settings-general-item-switch {
    align-items: flex-start;
  }
}

/* ==========================================================================
   PAGE BRANDING
   ========================================================================== */

.branding-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.branding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.branding-panel {
  border: 1px solid var(--bg-divider);
  border-radius: 1.2rem;
  background: rgba(255,255,255,.03);
  overflow: hidden;
}

.branding-panel-head {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--bg-divider);
}

.branding-panel-title {
  font-weight: 700;
}

.branding-panel-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.branding-preview-wrap,
.branding-asset-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 128px;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--bg-input-border);
  background: rgba(255,255,255,.035);
}

.branding-preview-wrap-app {
  justify-content: flex-start;
}

.branding-app-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.branding-app-preview-image {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
  flex: 0 0 96px;
}

.branding-app-preview-text {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--bg-text);
  word-break: break-word;
}

.branding-asset-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.branding-asset-upload {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: .55rem;
}

.branding-asset-preview-logo,
.branding-asset-preview-favicon {
  min-height: 128px;
  min-width: 128px;
  width: 128px;
  flex: 0 0 128px;
}

.branding-asset-image {
  display: block;
  max-width: 100%;
  height: auto;
}

.branding-asset-image-logo,
.branding-asset-image-favicon {
  max-width: 96px;
  max-height: 96px;
}

.branding-asset-empty {
  color: var(--bg-text-muted);
  font-size: var(--text-sm);
}

.branding-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .25rem;
}

@media (max-width: 1100px) {
  .branding-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .branding-asset-row {
    flex-direction: column;
    align-items: stretch;
  }

  .branding-asset-preview-logo,
  .branding-asset-preview-favicon {
    width: 100%;
    min-width: 0;
  }

  .branding-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   Profile
   ========================= */

.profile-stack{
  display:grid;
  gap:1rem;
}

.profile-bottom-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:1rem;
  align-items:start;
}

.profile-form-grid{
  display:grid;
  gap:1rem;
}

.profile-form-grid-2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-error{
  margin-top:.4rem;
  color:#fecaca;
  font-size:var(--text-xs);
}

.form-actions-end{
  margin-top:1rem;
  display:flex;
  justify-content:flex-end;
  gap:.75rem;
}

.form-actions-between{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:.75rem;
}

.profile-2fa-state{
  display:flex;
  align-items:center;
  gap:.75rem;
  flex-wrap:wrap;
}

.profile-2fa-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.35rem .7rem;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  border:1px solid rgba(245,158,11,.25);
  background:rgba(245,158,11,.14);
  color:#fde68a;
}

.profile-2fa-badge-active{
  border-color:rgba(34,197,94,.25);
  background:rgba(34,197,94,.14);
  color:#bbf7d0;
}

.profile-2fa-setup{
  display:grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap:1.25rem;
  margin-top:1rem;
  align-items:start;
}

.profile-qr-card{
  padding:1rem;
  border-radius:20px;
  border:1px solid var(--bg-divider);
  background:rgba(255,255,255,0.04);
}

.profile-qr-title,
.profile-secret-label{
  font-size:var(--text-sm);
  font-weight:700;
  margin-bottom:.5rem;
}

.profile-qr-box{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:220px;
  border-radius:18px;
  border:1px solid var(--bg-divider);
  background:rgba(255,255,255,0.04);
}

.profile-qr-image{
  width:220px;
  max-width:100%;
  height:auto;
  border-radius:12px;
}

.profile-qr-note{
  margin-top:.75rem;
  font-size:var(--text-xs);
}

.profile-secret-block,
.profile-2fa-panel,
.profile-2fa-action-box{
  padding:1rem;
  border-radius:20px;
  border:1px solid var(--bg-divider);
  background:rgba(255,255,255,0.04);
}

.profile-secret-code{
  display:block;
  white-space:normal;
  word-break:break-all;
  padding:.8rem .9rem;
  border-radius:16px;
  background:rgba(15,23,42,.34);
  border:1px solid rgba(255,255,255,.06);
  color:var(--bg-text);
}

.profile-uri-textarea{
  min-height:96px;
}

.profile-inline-note{
  padding:.75rem .9rem;
  border-radius:16px;
  border:1px solid var(--bg-divider);
  background:rgba(255,255,255,0.04);
  font-size:var(--text-sm);
}

.profile-2fa-state-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}

.profile-2fa-count{
  font-size:var(--text-sm);
  color:var(--bg-text-muted);
}

.profile-2fa-panel{
  margin-top:1rem;
}

.profile-recovery-panel{
  background:rgba(255,255,255,0.035);
}

.profile-panel-head,
.profile-recovery-head,
.profile-2fa-actions-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}

.profile-recovery-grid{
  margin-top:.85rem;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:.55rem;
}

.profile-recovery-grid-compact{
  grid-template-columns:repeat(4, minmax(0, 1fr));
}

.profile-recovery-code{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:.65rem .8rem;
  border-radius:16px;
  border:1px solid var(--bg-divider);
  background:rgba(15,23,42,.34);
  font-weight:700;
  letter-spacing:.06em;
}

.profile-recovery-code-chip{
  min-height:38px;
  padding:.55rem .7rem;
  border-radius:12px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.07);
  font-size:14px;
}

.profile-2fa-actions-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:1rem;
  margin-top:1rem;
  align-items:start;
}

.profile-2fa-actions-grid-compact{
  margin-top:.85rem;
}

.profile-2fa-action-box{
  padding:.95rem 1rem;
  background:rgba(255,255,255,.025);
}

.profile-action-title{
  font-size:var(--text-base);
  font-weight:700;
  margin-bottom:.2rem;
}

.profile-inline-form{
  margin-top:.85rem;
}

.compact-grid{
  gap:.85rem;
}

.compact-actions{
  margin-top:.85rem;
}

.profile-2fa-inline-actions{margin-top:0;}

.profile-2fa-toolbar{
  margin-top:1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}

.profile-modal-window{max-width:980px;}

.profile-2fa-setup-modal{margin-top:0;}

.profile-recovery-grid-modal{
  margin-top:1rem;
  grid-template-columns:repeat(4, minmax(0, 1fr));
}

.profile-recovery-grid-modal .profile-recovery-code{
  min-height:52px;
  font-size:15px;
}

.profile-identity-grid{
  display:grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap:1.25rem;
  align-items:start;
}

.profile-identity-sidebar{
  display:flex;
  flex-direction:column;
  gap:.8rem;
}

.profile-avatar-dropzone{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.65rem;
  width:100%;
  padding:1rem;
  border-radius:24px;
  border:1px dashed rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.035);
  transition:border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
  cursor:pointer;
  text-align:center;
}

.profile-avatar-dropzone:hover,
.profile-avatar-dropzone.is-dragover{
  border-color:rgba(124,58,237,.42);
  background:rgba(124,58,237,.08);
  box-shadow:0 0 0 4px rgba(124,58,237,.12);
  transform:translateY(-1px);
}

.profile-avatar-dropzone-inner{
  display:flex;
  align-items:center;
  justify-content:center;
}

.profile-avatar-preview,
.profile-avatar-preview-fallback{
  width:104px;
  height:104px;
  border-radius:28px;
  object-fit:cover;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.8rem;
  font-weight:800;
  color:#fff;
  background:linear-gradient(135deg, rgba(124,58,237,.34), rgba(6,182,212,.28));
  border:1px solid rgba(255,255,255,0.09);
}

.profile-avatar-dropzone-label{
  font-weight:700;
  line-height:1.25;
}

.profile-avatar-dropzone-hint{
  color:var(--bg-text-muted);
  font-size:12px;
  line-height:1.35;
}

.profile-avatar-actions{
  display:flex;
  gap:.55rem;
  align-items:center;
  flex-wrap:wrap;
}

.profile-avatar-action-btn{
  width:100%;
  justify-content:center;
}

.profile-upload-input{display:none;}
.profile-upload-label{cursor:pointer;}

.profile-2fa-card-compact .card-body{padding-top:1rem;}

.profile-2fa-status-strip{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}

.profile-2fa-summary{
  display:flex;
  align-items:center;
  gap:.75rem;
  flex-wrap:wrap;
}

.profile-2fa-actions-inline,
.profile-2fa-compact-actions{
  display:flex;
  gap:.65rem;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.profile-2fa-compact-actions{margin-top:1rem;}

.profile-modal-window-sm{max-width:760px;}

.profile-recovery-code{
  padding:.85rem 1rem;
  border-radius:14px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align:center;
  letter-spacing:.08em;
  font-size:.95rem;
  font-weight:700;
}

@media (max-width: 1080px){
  .profile-identity-grid{grid-template-columns:200px minmax(0, 1fr);}
  .profile-recovery-grid-modal{grid-template-columns:repeat(2, minmax(0, 1fr));}
}

@media (max-width: 760px){
  .profile-identity-grid{grid-template-columns:1fr;}
  .profile-identity-sidebar{align-items:stretch;}
  .profile-recovery-grid-modal{grid-template-columns:1fr;}
  .profile-2fa-status-strip,
  .profile-2fa-summary{align-items:flex-start;}
}


/* ==========================================================================
   PAGE AUTH LOGIN
   ========================================================================== */

.auth-login-layout {
  display: grid;
  grid-template-columns: minmax(220px, 240px) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: center;
}

.auth-login-brand-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-login-brand-wrap {
  width: 100%;
}

.auth-login-brand-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  text-align: center;
}

.auth-login-brand-mark .brand-mark-image {
  width: min(100%, 210px);
  max-width: 210px;
  height: auto;
  border-radius: 1.9rem;
  object-fit: cover;
  display: block;
}

.auth-login-brand-mark .brand-mark-text {
  display: block;
  font-weight: 760;
  font-size: 1.08rem;
  line-height: 1.24;
  text-align: center;
  color: var(--bg-text);
}

.auth-login-form-column {
  display: grid;
  gap: .9rem;
  align-content: center;
}

.auth-login-head {
  text-align: left;
}

.auth-login-title {
  margin-bottom: .2rem;
}

.auth-login-subtitle {
  margin-top: 0;
}

.auth-login-form {
  margin-top: 0;
}

.auth-login-form-grid {
  gap: .8rem;
}

.auth-login-form .input {
  height: 42px;
}

.auth-login-actions {
  margin-top: .15rem;
}

.auth-login-actions .btn {
  min-width: 140px;
}

.auth-login-modal-overlay {
  display: none;
}

.auth-login-modal-window {
  width: min(360px, calc(100vw - 2rem));
  padding: 1rem;
}

.auth-login-modal-form {
  display: grid;
  gap: .8rem;
}

.auth-login-modal-head {
  display: grid;
  gap: .2rem;
}

.auth-login-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
}

.auth-login-modal-error {
  border: 1px solid rgba(239, 68, 68, .28);
  background: rgba(239, 68, 68, .12);
  color: var(--bg-text);
  border-radius: 14px;
  padding: .75rem .9rem;
  font-size: .92rem;
  line-height: 1.4;
}

.auth-login-modal-footer {
  justify-content: flex-end;
  margin-top: .1rem;
}

.auth-login-modal-submit {
  min-width: 120px;
}

@media (max-width: 760px) {
  .auth-card {
    width: min(560px, 100%);
  }

  .auth-login-layout {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .auth-login-brand-mark .brand-mark-image {
    max-width: 170px;
    border-radius: 1.6rem;
  }

  .auth-login-form-column,
  .auth-login-head {
    text-align: center;
  }

  .auth-login-actions {
    justify-content: center;
  }
}
