:root {
  --admin-navy: #0f172a;
  --admin-blue: #1e3a8a;
  --admin-red: #dc2626;
  --admin-ink: #111827;
  --admin-muted: #64748b;
  --admin-line: #dbe3ef;
  --admin-soft: #f8fafc;
  --admin-white: #ffffff;
  --admin-green: #15803d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--admin-ink);
  background: var(--admin-soft);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.admin-skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 30;
  padding: 10px 14px;
  background: var(--admin-red);
  color: var(--admin-white);
  transform: translateY(-160%);
}

.admin-skip:focus {
  transform: translateY(0);
}

.admin-auth-body {
  min-height: 100vh;
  background: var(--admin-white);
}

.admin-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  grid-template-columns: 1fr;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 44%, rgba(30, 58, 138, 0.42) 100%),
    url("https://images.unsplash.com/photo-1581166397057-235af2b3c6dd?auto=format&fit=crop&fm=webp&q=78&w=1800") center / cover no-repeat,
    var(--admin-navy);
  padding: 32px 18px;
}

.admin-auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(28px, 4.4vw, 46px);
  background: rgba(255, 255, 255, 0.98);
  min-height: auto;
  border: 1px solid rgba(219, 227, 239, 0.95);
  border-top: 5px solid var(--admin-red);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.36);
}

.admin-auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--admin-line);
  text-align: left;
}

.admin-auth-logo {
  display: inline-flex;
}

.admin-auth-brand span {
  display: block;
}

.admin-auth-brand strong {
  display: block;
  font-weight: 900;
  color: var(--admin-blue);
  font-size: 1.1rem;
  line-height: 1;
}

.admin-auth-brand small {
  display: block;
  margin-top: 5px;
  color: var(--admin-red);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-auth-logo img {
  width: 76px;
  height: auto;
}

.admin-kicker {
  margin: 0 0 10px;
  color: var(--admin-red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-auth h1,
.admin-page-head h1 {
  margin: 0;
  color: var(--admin-navy);
  font-size: clamp(2rem, 5vw, 2.85rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.admin-auth-heading {
  text-align: center;
}

.admin-auth-copy,
.admin-page-head p {
  margin: 10px 0 0;
  color: var(--admin-muted);
  line-height: 1.7;
}

.admin-login-form {
  display: grid;
  gap: 18px;
  max-width: none;
}

.admin-login-form label {
  display: grid;
  gap: 8px;
  color: var(--admin-navy);
  font-weight: 800;
}

.admin-input-wrap {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  border: 2px solid var(--admin-line);
  background: var(--admin-white);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.admin-input-wrap i {
  display: grid;
  height: 100%;
  min-height: 52px;
  place-items: center;
  color: var(--admin-blue);
  border-right: 1px solid var(--admin-line);
}

.admin-login-form input {
  width: 100%;
  min-height: 52px;
  border: 0;
  background: transparent;
  padding: 0 15px;
  color: var(--admin-ink);
  outline: none;
}

.admin-input-wrap:focus-within {
  border-color: var(--admin-blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.16);
}

.admin-login-form button,
.admin-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  background: var(--admin-red);
  color: var(--admin-white);
  min-height: 54px;
  padding: 0 20px;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.admin-login-form button:hover,
.admin-primary-action:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.24);
}

.admin-form-link {
  justify-self: center;
  color: var(--admin-blue);
  font-weight: 900;
}

.admin-form-link:hover {
  color: var(--admin-red);
}

.admin-alert {
  border-left: 4px solid var(--admin-red);
  background: #fff1f2;
  color: #991b1b;
  padding: 14px 16px;
  font-weight: 800;
  max-width: 560px;
}

.admin-alert.success {
  border-left-color: var(--admin-green);
  background: #f0fdf4;
  color: #166534;
}

.admin-auth-footnote {
  margin: 0;
  color: var(--admin-muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

.admin-otp-dormant {
  opacity: 0.78;
}

.admin-password-field {
  position: relative;
}

.admin-password-field .form-control-user {
  padding-right: 3.25rem;
}

.admin-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--admin-blue);
  transform: translateY(-50%);
  cursor: pointer;
}

.admin-password-toggle:hover,
.admin-password-toggle:focus {
  background: rgba(30, 58, 138, 0.08);
  outline: 0;
}

.admin-google-btn {
  border: 1px solid var(--admin-line);
  color: var(--admin-navy);
  font-weight: 800;
}

.admin-google-btn:hover {
  border-color: var(--admin-blue);
  color: var(--admin-blue);
}

.admin-auth-full {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.96), rgba(239, 246, 255, 0.96)),
    var(--admin-soft);
  padding: clamp(18px, 4vw, 42px);
}

.admin-back-site {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--admin-line);
  background: var(--admin-white);
  color: var(--admin-blue);
  padding: 0 13px;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.admin-auth-split {
  width: min(1060px, 100%);
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(360px, 500px);
  align-items: stretch;
  border: 1px solid var(--admin-line);
  background: var(--admin-white);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

.admin-auth-story {
  display: grid;
  align-items: end;
  min-height: 560px;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(160deg, rgba(15, 23, 42, 0.9), rgba(30, 58, 138, 0.82)),
    var(--admin-navy);
  color: var(--admin-white);
}

.admin-auth-story h2 {
  margin: 10px 0 12px;
  color: var(--admin-white);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.admin-auth-story p:not(.admin-kicker) {
  max-width: 430px;
  color: #dbeafe;
  line-height: 1.7;
}

.admin-auth-form-panel {
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 54px);
  background: var(--admin-white);
}

.admin-auth-logo-img {
  width: 96px;
  height: auto;
  margin: 0 auto 14px;
}

.admin-auth-form-panel .form-control-user {
  min-height: 54px;
  border-radius: 0 !important;
  border: 1px solid var(--admin-line);
  color: var(--admin-ink);
  font-weight: 700;
}

.admin-auth-form-panel .form-control-user:focus {
  border-color: var(--admin-blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.admin-auth-form-panel .btn-user {
  min-height: 52px;
  border-radius: 0 !important;
  font-weight: 900;
}

.admin-auth-form-panel .btn-primary {
  border-color: var(--admin-red);
  background: var(--admin-red);
}

.admin-auth-form-panel .btn-primary:hover {
  border-color: #b91c1c;
  background: #b91c1c;
}

@media (max-width: 860px) {
  .admin-auth-split {
    grid-template-columns: 1fr;
  }

  .admin-auth-story {
    min-height: auto;
    padding: 26px;
  }

  .admin-auth-story h2,
  .admin-auth-story p:not(.admin-kicker) {
    display: none;
  }
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: var(--admin-navy);
  color: var(--admin-white);
  padding: 24px 18px;
}

/* The Team/Developer layout uses the SB Admin .sidebar class, not .admin-sidebar. */
#wrapper > #accordionSidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#accordionSidebar .sidebar-brand,
#accordionSidebar .sidebar-divider,
#accordionSidebar .nav-item,
#accordionSidebar .sidebar-heading,
#accordionSidebar #sidebarToggle {
  flex-shrink: 0;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-brand img {
  width: 58px;
  background: var(--admin-white);
  padding: 5px;
}

.admin-brand strong,
.admin-brand small {
  display: block;
}

.admin-brand small {
  margin-top: 4px;
  color: #bfdbfe;
}

.admin-sidebar nav {
  display: grid;
  gap: 5px;
  margin: 22px 0;
}

.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
  color: #dbeafe;
  font-weight: 800;
  border-left: 3px solid transparent;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: var(--admin-red);
  color: var(--admin-white);
}

.admin-sidebar nav a.is-muted {
  opacity: 0.74;
}

.admin-sidebar-note {
  margin-top: 28px;
  padding: 16px;
  background: rgba(30, 58, 138, 0.45);
  border: 1px solid rgba(219, 234, 254, 0.16);
}

.admin-sidebar-note p {
  margin: 8px 0 0;
  color: #cbd5e1;
  line-height: 1.55;
  font-size: 0.9rem;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  min-height: 78px;
  padding: 0 34px;
  background: var(--admin-white);
  border-bottom: 1px solid var(--admin-line);
}

.admin-topbar p,
.admin-topbar strong,
.admin-user-menu span,
.admin-user-menu small {
  display: block;
  margin: 0;
}

.admin-topbar p {
  color: var(--admin-muted);
  font-size: 0.83rem;
}

.admin-user-menu {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: right;
}

.admin-user-menu span {
  font-weight: 900;
}

.admin-user-menu small {
  color: var(--admin-muted);
}

.admin-user-menu button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--admin-line);
  background: var(--admin-soft);
  color: var(--admin-blue);
  cursor: pointer;
}

.admin-content {
  padding: 34px;
}

.admin-page-head,
.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.admin-stats-grid article,
.admin-panel {
  background: var(--admin-white);
  border: 1px solid var(--admin-line);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}

.admin-stats-grid article {
  padding: 22px;
  border-top: 4px solid var(--admin-blue);
}

.admin-stats-grid span,
.admin-stats-grid small {
  display: block;
  color: var(--admin-muted);
}

.admin-stats-grid strong {
  display: block;
  margin: 10px 0;
  color: var(--admin-navy);
  font-size: 2.25rem;
}

.admin-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 22px;
}

.admin-panel {
  padding: 24px;
}

.admin-panel h2 {
  margin: 0;
  color: var(--admin-navy);
  font-size: 1.35rem;
}

.admin-panel-head > span {
  background: #dcfce7;
  color: var(--admin-green);
  padding: 7px 10px;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--admin-line);
  text-align: left;
}

.admin-table th {
  color: var(--admin-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.admin-status {
  display: inline-flex;
  padding: 6px 9px;
  background: #eff6ff;
  color: var(--admin-blue);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.admin-empty {
  margin: 22px 0 0;
  color: var(--admin-muted);
  line-height: 1.7;
}

.admin-module-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.admin-module-list div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--admin-soft);
  border: 1px solid var(--admin-line);
  font-weight: 800;
  line-height: 1.45;
}

.admin-module-list i {
  color: var(--admin-red);
  margin-top: 3px;
}

.admin-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-settings-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.admin-settings-form input {
  min-height: 46px;
  border: 1px solid var(--admin-line);
  background: var(--admin-soft);
  padding: 0 13px;
}

.admin-settings-form .admin-primary-action {
  grid-column: 1 / -1;
  justify-self: start;
}

.admin-secret-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-secret-list span {
  padding: 8px 10px;
  background: #f1f5f9;
  color: var(--admin-muted);
  border: 1px solid var(--admin-line);
  font-weight: 900;
}

@media (max-width: 1040px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-stats-grid,
  .admin-workspace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .admin-auth {
    padding: 18px;
  }

  .admin-auth-panel {
    min-height: auto;
    padding: 26px 20px;
  }

  .admin-auth-brand {
    justify-content: flex-start;
  }

  .admin-sidebar nav,
  .admin-stats-grid,
  .admin-workspace-grid,
  .admin-settings-form {
    grid-template-columns: 1fr;
  }

  .admin-topbar,
  .admin-page-head,
  .admin-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-topbar {
    padding: 18px;
  }

  .admin-user-menu {
    justify-content: space-between;
    text-align: left;
  }

  .admin-content {
    padding: 22px 16px;
  }
}

.sb-brand-mark,
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #ffffff;
  color: #1e3a8a;
  font-weight: 900;
  letter-spacing: 0;
  border-bottom: 3px solid #dc2626;
}

.brand-mark {
  background: #0f172a;
  color: #ffffff;
  width: 58px;
  height: 58px;
}

.brand-mark.large {
  width: 78px;
  height: 78px;
  font-size: 1.4rem;
}

.admin-auth-card {
  width: min(980px, 100%);
  border-radius: 0.35rem;
  overflow: hidden;
}

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

.admin-auth-visual {
  min-height: 520px;
  align-items: flex-end;
  padding: 42px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.9)),
    url("https://images.unsplash.com/photo-1612815154858-60aa4c59eaa6?auto=format&fit=crop&fm=webp&q=70&w=900") center/cover;
}

.admin-auth-logo-img {
  width: 80px;
  height: auto;
  object-fit: contain;
}

.admin-avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #1e3a8a;
  color: #fff;
  font-weight: 900;
}

.sidebar .nav-item.opacity-75 .nav-link {
  opacity: 0.72;
}

.admin-toast-stack {
  position: fixed;
  right: 1.25rem;
  top: 1.25rem;
  z-index: 1090;
  display: grid;
  gap: 0.75rem;
  width: min(420px, calc(100vw - 2rem));
}

.admin-toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #ffffff;
  border-left: 4px solid #1e3a8a;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  color: #111827;
  font-weight: 700;
}

.admin-toast.is-success {
  border-left-color: #16a34a;
}

.admin-toast.is-error {
  border-left-color: #dc2626;
}

.admin-toast i {
  color: #1e3a8a;
}

.admin-toast.is-success i {
  color: #16a34a;
}

.admin-toast.is-error i {
  color: #dc2626;
}

.admin-toast button {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.admin-toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.admin-qr {
  width: 190px;
  height: 190px;
  border: 1px solid #dbe3ef;
  background: #ffffff;
  padding: 10px;
}

.admin-auth-full {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: stretch;
  background: #ffffff;
}

.admin-back-site {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #ffffff;
  color: #1e3a8a;
  border: 1px solid #dbe3ef;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.admin-auth-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
}

.admin-auth-story {
  display: grid;
  align-items: end;
  padding: clamp(42px, 7vw, 96px);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 58, 138, 0.68)),
    url("https://images.unsplash.com/photo-1612815154858-60aa4c59eaa6?auto=format&fit=crop&fm=webp&q=70&w=1400") center / cover no-repeat;
}

.admin-auth-story h2 {
  max-width: 620px;
  margin: 16px 0;
  color: #ffffff;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
  font-weight: 900;
}

.admin-auth-story p {
  max-width: 540px;
  color: #dbeafe;
  font-size: 1.05rem;
  line-height: 1.7;
}

.admin-auth-form-panel {
  display: grid;
  align-content: center;
  padding: clamp(32px, 5vw, 64px);
  background: #ffffff;
  border-left: 1px solid #dbe3ef;
}

/* Production auth polish */
.admin-auth-full {
  min-height: 100vh;
  padding: 18px;
  place-items: center;
  background: #ffffff;
}

.admin-auth-split {
  width: min(980px, 100%);
  min-height: min(720px, calc(100vh - 36px));
  max-height: calc(100vh - 36px);
  grid-template-columns: minmax(300px, .58fr) minmax(360px, 500px);
  border: 1px solid #dbe3ef;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .14);
  overflow: hidden;
}

.admin-auth-story {
  min-height: auto;
  align-items: center;
  padding: clamp(28px, 4vw, 54px);
  background:
    linear-gradient(135deg, rgba(7, 17, 31, .9), rgba(20, 58, 133, .76)),
    url("/assets/images/copitronix-logo.webp") center / 58% auto no-repeat,
    #07111f;
}

.admin-auth-story-logo {
  width: 116px;
  height: auto;
  margin-bottom: 18px;
  background: rgba(255,255,255,.94);
  padding: 10px;
}

.sb-sidebar-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #ffffff;
  padding: 5px;
}

.admin-auth-text-logo {
  display: inline-block;
  font-weight: 900;
  color: #1e3a8a;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-auth-story h2 {
  max-width: 420px;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
}

.admin-auth-form-panel {
  padding: clamp(28px, 4vw, 48px);
}

.admin-back-site {
  top: 18px;
  left: 18px;
}

@media (max-width: 980px) {
  .admin-auth-split {
    max-height: none;
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .admin-auth-form-panel {
    min-height: calc(100vh - 36px);
    padding-top: 84px;
  }
}

@media (max-width: 980px) {
  .admin-auth-split {
    grid-template-columns: 1fr;
  }

  .admin-auth-story {
    display: none;
  }

  .admin-auth-form-panel {
    min-height: 100vh;
    padding-top: 84px;
  }
}

/* Final SB Admin alignment */
body {
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sidebar .sidebar-brand {
  height: 4.75rem;
  gap: .5rem;
}

.sidebar-brand-icon {
  display: grid;
  place-items: center;
}

.sb-sidebar-logo {
  border-radius: .5rem;
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .16);
}

.sidebar-brand-text {
  font-size: .9rem;
  letter-spacing: .04em;
}

.topbar {
  border-bottom: 1px solid #e3e6f0;
}

.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-page-head h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  font-weight: 800;
}

.admin-page-head p {
  max-width: 860px;
  margin-bottom: 0;
}

.admin-panel {
  margin-bottom: 1.5rem;
  border: 1px solid #e3e6f0;
  border-radius: .35rem;
  background: #ffffff;
  box-shadow: 0 .15rem 1.75rem 0 rgba(58, 59, 69, .08);
}

.admin-panel-head {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e3e6f0;
  background: #f8f9fc;
}

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

.admin-settings-form label {
  display: grid;
  gap: .45rem;
  margin: 0;
  color: #4e73df;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-settings-form input,
.admin-settings-form select,
.admin-settings-form textarea,
.admin-panel input,
.admin-panel select,
.admin-panel textarea {
  min-height: 44px;
  border: 1px solid #d1d3e2;
  border-radius: .35rem;
  background: #fff;
  color: #5a5c69;
  padding: .65rem .8rem;
  font-weight: 700;
}

.admin-settings-form input:focus,
.admin-panel input:focus,
.admin-panel select:focus,
.admin-panel textarea:focus {
  outline: 0;
  border-color: #bac8f3;
  box-shadow: 0 0 0 .2rem rgba(78, 115, 223, .18);
}

.admin-primary-action {
  grid-column: 1 / -1;
  width: max-content;
  border: 0;
  border-radius: .35rem;
  background: #4e73df;
  color: #ffffff;
  padding: .75rem 1rem;
  font-weight: 800;
}

.admin-secret-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1.25rem;
}

.admin-secret-list span {
  border-radius: 999px;
  background: #eaecf4;
  color: #5a5c69;
  padding: .45rem .7rem;
  font-size: .78rem;
  font-weight: 800;
}

.table,
.table-bordered {
  background: #ffffff;
}

.table th {
  color: #4e73df;
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.btn,
.form-control {
  border-radius: .35rem;
}

.gap-2 {
  gap: .5rem;
}

.admin-filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: .75rem;
  align-items: center;
}

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

.admin-action-tile {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: .8rem;
  border: 1px solid #e3e6f0;
  border-radius: .35rem;
  background: #ffffff;
  color: #4e73df;
  padding: 1rem;
  text-align: left;
  font-weight: 800;
  box-shadow: 0 .15rem .75rem rgba(58, 59, 69, .06);
}

.admin-action-tile:hover {
  border-color: #4e73df;
  background: #f8f9fc;
}

.admin-action-tile i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaecf4;
}

.admin-chart-bars {
  height: 210px;
  display: flex;
  align-items: end;
  gap: .65rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #e3e6f0;
  border-radius: .35rem;
  background: #f8f9fc;
}

.admin-chart-bars span {
  flex: 1;
  min-height: 12px;
  border-radius: .35rem .35rem 0 0;
  background: linear-gradient(180deg, #4e73df, #224abe);
}

@media (max-width: 900px) {
  .admin-settings-form,
  .admin-filter-row,
  .admin-action-grid {
    grid-template-columns: 1fr;
  }
}

/* Coming-soon-auth final override. */
.admin-auth-coming-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  min-height: 104px;
  display: grid;
  place-items: center;
  padding: 14px clamp(18px, 4vw, 54px);
  border-top: 4px solid #050505;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94) 72%, rgba(255,255,255,0));
}

.admin-auth-coming-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #0b1020;
}

.admin-auth-coming-brand img {
  width: clamp(74px, 8vw, 104px);
  height: auto;
  display: block;
}

.admin-auth-coming-brand span {
  display: grid;
  gap: 2px;
}

.admin-auth-coming-brand strong {
  display: flex;
  align-items: baseline;
  color: #143a85;
  font-size: clamp(1.18rem, 1.75vw, 1.58rem);
  line-height: .95;
  letter-spacing: .04em;
  font-weight: 900;
}

.admin-auth-coming-brand strong span:first-child {
  color: #0b1020;
}

.admin-auth-coming-brand strong span:last-child {
  color: #e1262d;
}

.admin-auth-coming-brand em {
  color: #143a85;
  font-size: .82rem;
  font-style: normal;
  font-weight: 900;
}

.admin-auth-coming-brand small {
  color: #344866;
  font-weight: 700;
}

.admin-auth-coming-brand i {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 168px;
  margin-top: 5px;
}

.admin-auth-coming-brand b {
  height: 4px;
  display: block;
}

.admin-auth-coming-brand b:nth-child(1) { background: #00a3e0; }
.admin-auth-coming-brand b:nth-child(2) { background: #ec008c; }
.admin-auth-coming-brand b:nth-child(3) { background: #ffd200; }
.admin-auth-coming-brand b:nth-child(4) { background: #111827; }

.admin-auth-coming {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(128px, 15vh, 156px) clamp(18px, 3.4vw, 46px) clamp(18px, 3.4vw, 46px);
  isolation: isolate;
  overflow: hidden;
}

.admin-auth-slides,
.admin-auth-slides::after,
.admin-auth-slides span {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.admin-auth-slides {
  background: #f4f1ec;
}

.admin-auth-slides::after {
  content: "";
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(244, 241, 236, .2), rgba(15, 23, 42, .58)),
    linear-gradient(90deg, rgba(15, 23, 42, .24), rgba(15, 23, 42, .08), rgba(15, 23, 42, .24));
}

.admin-auth-slides span {
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: adminAuthSlide 24s linear infinite;
}

.admin-auth-slides span:nth-child(1) {
  background-image: url("https://images.unsplash.com/photo-1612815154858-60aa4c59eaa6?auto=format&fit=crop&fm=webp&q=86&w=1800");
}

.admin-auth-slides span:nth-child(2) {
  background-image: url("https://images.unsplash.com/photo-1612813733-b31f71025d54?auto=format&fit=crop&fm=webp&q=86&w=1800");
  animation-delay: 8s;
}

.admin-auth-slides span:nth-child(3) {
  background-image: url("https://images.unsplash.com/photo-1562813733-b31f71025d54?auto=format&fit=crop&fm=webp&q=86&w=1800");
  animation-delay: 16s;
}

@keyframes adminAuthSlide {
  0% { opacity: 1; transform: scale(1.04); }
  30% { opacity: 1; }
  40% { opacity: 0; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.1); }
}

.admin-auth-launch-card {
  width: min(760px, 100%);
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3.5vw, 42px);
  border: 2px solid #050505;
  background: rgba(250, 248, 244, .97);
  text-align: center;
  color: #0b1020;
  box-shadow: 0 30px 100px rgba(0,0,0,.34);
}

.admin-auth-eyebrow {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  background: #e1262d;
  color: #ffffff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.admin-auth-launch-card h1 {
  max-width: 620px;
  margin: 0 auto;
  color: #0b1020;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 700;
}

.admin-auth-lead {
  max-width: 560px;
  margin: 0 auto;
  color: #263244;
  line-height: 1.5;
}

.admin-auth-launch-card .user {
  width: min(560px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.admin-auth-launch-card .form-group {
  margin-bottom: 0;
}

.admin-auth-launch-card .form-control-user,
.admin-auth-launch-card .btn-user,
.admin-auth-launch-card .admin-google-btn {
  border-radius: 0 !important;
  min-height: 52px;
  font-size: .9rem;
}

.admin-auth-launch-card .form-control-user {
  border: 2px solid #050505;
  background: #fff;
}

.admin-auth-contact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #475569;
  font-size: .82rem;
  line-height: 1.45;
  text-align: left;
}

.admin-auth-contact-row a {
  color: #143a85;
  font-weight: 900;
  text-decoration: none;
}

.google-mark {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 18px;
  vertical-align: -3px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%234285F4' d='M45.12 24.49c0-1.56-.14-3.06-.4-4.49H24v8.51h11.84c-.51 2.75-2.06 5.08-4.39 6.64v5.52h7.11c4.16-3.83 6.56-9.47 6.56-16.18z'/%3E%3Cpath fill='%2334A853' d='M24 46c5.94 0 10.92-1.97 14.56-5.33l-7.11-5.52c-1.97 1.32-4.49 2.1-7.45 2.1-5.73 0-10.58-3.87-12.31-9.07H4.34v5.7C7.96 41.06 15.38 46 24 46z'/%3E%3Cpath fill='%23FBBC05' d='M11.69 28.18c-.44-1.32-.69-2.73-.69-4.18s.25-2.86.69-4.18v-5.7H4.34A21.991 21.991 0 0 0 2 24c0 3.55.85 6.91 2.34 9.88l7.35-5.7z'/%3E%3Cpath fill='%23EA4335' d='M24 10.75c3.23 0 6.13 1.11 8.41 3.29l6.31-6.31C34.91 4.18 29.93 2 24 2 15.38 2 7.96 6.94 4.34 14.12l7.35 5.7c1.73-5.2 6.58-9.07 12.31-9.07z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.admin-google-btn,
.ct-google-auth {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .55rem;
}

@media (max-width: 820px) {
  .admin-auth-coming-header {
    min-height: 82px;
    padding: 10px 14px;
  }

  .admin-auth-coming-brand {
    gap: 10px;
  }

  .admin-auth-coming-brand img {
    width: 56px;
  }

  .admin-auth-coming-brand strong {
    font-size: .98rem;
  }

  .admin-auth-coming-brand em,
  .admin-auth-coming-brand small {
    font-size: .68rem;
    line-height: 1.2;
  }

  .admin-auth-coming-brand i {
    width: 120px;
  }

  .admin-auth-coming {
    padding: 98px 14px 14px;
  }

  .admin-auth-launch-card {
    gap: 12px;
    padding: 20px 16px;
  }

  .admin-auth-launch-card h1 {
    font-size: clamp(1.85rem, 7.6vw, 2.35rem);
  }

  .admin-auth-lead {
    font-size: .86rem;
  }

  .admin-auth-contact-row {
    display: block;
    text-align: center;
  }
}

/* SB Admin 2 alignment pass for module workspaces. */
.admin-datatable-card .card-header {
  background: #f8f9fc;
  border-bottom: 1px solid #e3e6f0;
}

.admin-table-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
}

.admin-table-tools .form-control,
.admin-table-tools .custom-select,
.admin-filter-row .form-control {
  min-height: 42px;
  border-color: #d1d3e2;
}

.admin-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.admin-export-actions .btn-success {
  background: #1cc88a;
  border-color: #1cc88a;
}

.admin-export-actions .btn-danger {
  background: #e74a3b;
  border-color: #e74a3b;
}

.admin-module-table {
  color: #5a5c69;
  margin-bottom: 0;
}

.admin-module-table thead th {
  background: #f8f9fc;
  color: #4e73df;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.admin-module-table td,
.admin-module-table th {
  vertical-align: middle;
  border-color: #e3e6f0;
}

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  padding: .35rem .55rem;
  border-radius: .35rem;
  color: #fff;
  background: #4e73df;
  font-size: .75rem;
  font-weight: 800;
}

.admin-status-success {
  background: #1cc88a;
}

.admin-status-warning {
  background: #f6c23e;
  color: #1f2937;
}

.admin-status-danger {
  background: #e74a3b;
}

.admin-pagination-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
}

@media (max-width: 768px) {
  .admin-table-tools,
  .admin-pagination-meta {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Final auth redesign: coming-soon inspired login, centered, one-page. */
.admin-auth-body {
  min-height: 100vh;
  background: #f8fafc !important;
  overflow-x: hidden;
}

.admin-auth-full {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.92), rgba(255,255,255,.82)),
    url("../images/hero-printer.webp");
  background-size: cover;
  background-position: center;
}

.admin-auth-full::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 6px;
  background: linear-gradient(90deg, #00aeef 0 25%, #ec008c 25% 50%, #ffd500 50% 75%, #07111f 75% 100%);
}

.admin-back-site {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid #dbe3ef;
  background: #ffffff;
  color: #143a85;
  padding: .75rem 1rem;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.admin-auth-split {
  position: relative;
  z-index: 2;
  width: min(100%, 1040px);
  min-height: auto;
  display: grid !important;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 440px);
  align-items: stretch;
  border: 2px solid #07111f;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 30px 80px rgba(15, 23, 42, .18);
}

.admin-auth-story {
  min-height: 520px !important;
  display: grid !important;
  place-items: center;
  padding: 48px !important;
  background:
    linear-gradient(180deg, rgba(15,23,42,.68), rgba(15,23,42,.68)),
    url("../images/hero-printer.webp") !important;
  background-size: cover !important;
  background-position: center !important;
  color: #ffffff;
}

.admin-auth-story > div {
  max-width: 460px;
}

.admin-auth-story-logo {
  width: 132px !important;
  max-height: 92px;
  object-fit: contain;
  margin-bottom: 22px;
  padding: 10px;
  background: #ffffff;
}

.admin-auth-story h2 {
  margin: 0 0 12px;
  color: #ffffff !important;
  font-size: clamp(2.4rem, 4vw, 4.2rem) !important;
  line-height: .95;
  letter-spacing: 0;
}

.admin-auth-story p:not(.admin-kicker) {
  color: rgba(255,255,255,.88) !important;
  font-size: 1rem !important;
}

.admin-auth-form-panel {
  width: 100% !important;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px !important;
  border: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.admin-auth-logo-img {
  width: 86px !important;
  max-height: 70px;
  object-fit: contain;
  margin-bottom: 12px;
}

.admin-auth-form-panel .form-control-user {
  height: 54px;
  border-radius: 0 !important;
  border: 1px solid #dbe3ef;
  padding: 0 1rem !important;
}

.admin-auth-form-panel .btn-user {
  height: 54px;
  border-radius: 0 !important;
  font-weight: 900;
}

.admin-auth-form-panel .btn-primary {
  background: #e4252a !important;
  border-color: #e4252a !important;
}

.admin-password-toggle {
  right: 14px;
}

@media (max-width: 900px) {
  .admin-auth-full {
    display: block;
    padding: 86px 16px 20px;
    overflow-y: auto;
  }

  .admin-back-site {
    top: 14px;
    left: 14px;
  }

  .admin-auth-split {
    grid-template-columns: 1fr;
  }

  .admin-auth-story {
    min-height: 180px !important;
    padding: 24px !important;
  }

  .admin-auth-story h2 {
    font-size: 2rem !important;
  }

  .admin-auth-story p:not(.admin-kicker) {
    display: none;
  }

  .admin-auth-form-panel {
    min-height: auto;
    padding: 26px 18px !important;
  }
}

/* Final 10/10 auth override: same experience for login and forgot password. */
.admin-auth-full {
  min-height: 100svh !important;
  display: grid !important;
  place-items: center !important;
  padding: 112px 18px 28px !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

.admin-auth-coming-header {
  background: #ffffff !important;
  border-bottom: 1px solid #dbe3ef !important;
}

.admin-back-site {
  top: 18px !important;
  left: 18px !important;
  min-height: 42px;
  padding: 0 14px !important;
  border: 2px solid #143a85 !important;
  background: #ffffff !important;
  color: #143a85 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  line-height: 1;
}

.admin-back-site:hover,
.admin-back-site:focus {
  background: #143a85 !important;
  color: #ffffff !important;
}

.admin-auth-coming {
  min-height: calc(100svh - 112px) !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  background: #f8fafc !important;
}

.admin-auth-coming::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.22);
  z-index: 1;
}

.admin-auth-launch-card {
  position: relative !important;
  z-index: 3 !important;
  width: min(680px, calc(100vw - 32px)) !important;
  max-height: calc(100svh - 150px) !important;
  overflow: auto !important;
  padding: clamp(18px, 2.5vw, 34px) !important;
  gap: 10px !important;
  border: 1px solid #dbe3ef !important;
  border-top: 5px solid #173f8a !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 24px 70px rgba(15,23,42,.12) !important;
}

.admin-auth-launch-card::before {
  height: 5px !important;
  background: #e4252a !important;
}

.admin-auth-reset-card {
  width: min(620px, calc(100vw - 32px)) !important;
}

.admin-auth-logo-img {
  width: 72px !important;
  max-height: 58px !important;
  margin-bottom: 4px !important;
}

.admin-auth-launch-card h1 {
  font-size: clamp(1.55rem, 3vw, 2.5rem) !important;
  line-height: 1.05 !important;
}

.admin-auth-lead {
  margin-bottom: 4px !important;
  font-size: .95rem !important;
}

.admin-auth-launch-card .form-control-user,
.admin-auth-launch-card .btn-user,
.admin-auth-launch-card .admin-google-btn {
  min-height: 48px !important;
}

.admin-auth-launch-card .form-control-user {
  width: 100%;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
}

.admin-auth-launch-card .form-control-user:focus {
  border-color: #173f8a !important;
  box-shadow: 0 0 0 3px rgba(23,63,138,.14) !important;
}

.admin-auth-launch-card .btn-primary {
  border: 1px solid #e9232a !important;
  background: #e9232a !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.admin-auth-launch-card .btn-primary:hover,
.admin-auth-launch-card .btn-primary:focus {
  border-color: #c91c23 !important;
  background: #c91c23 !important;
  color: #ffffff !important;
}

.admin-auth-contact-row {
  padding-top: 10px !important;
  font-size: .78rem !important;
}

.admin-auth-coming-brand img {
  width: 78px !important;
}

.google-mark {
  background:
    conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0 100%);
  border-radius: 50%;
  position: relative;
}

.google-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: #ffffff;
  border-radius: 50%;
}

@media (max-width: 820px) {
  .admin-auth-full {
    padding: 86px 10px 14px !important;
    overflow: auto !important;
  }

  .admin-back-site {
    top: 10px !important;
    left: 10px !important;
    min-height: 36px;
    padding: 0 10px !important;
    font-size: .82rem !important;
  }

  .admin-auth-coming-header {
    min-height: 76px !important;
  }

  .admin-auth-coming-brand img {
    width: 50px !important;
  }

  .admin-auth-coming-brand strong {
    font-size: .9rem !important;
  }

  .admin-auth-coming-brand small {
    display: none !important;
  }

  .admin-auth-coming-brand i {
    width: 92px !important;
  }

  .admin-auth-coming {
    min-height: calc(100svh - 86px) !important;
  }

  .admin-auth-launch-card {
    max-height: none !important;
    padding: 18px !important;
  }

  .admin-auth-logo-img {
    width: 56px !important;
    max-height: 48px !important;
  }

  .admin-auth-launch-card h1 {
    font-size: 1.55rem !important;
  }

  .admin-auth-contact-row {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
  }
}

/* Admin settings grouped controls */
.admin-settings-groups {
  display: grid;
  gap: 1.25rem;
}
.admin-settings-card {
  overflow: hidden;
}
.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 1rem;
}
.module-toggle-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
}
.admin-setting-field {
  min-width: 0;
  display: grid;
  gap: .45rem;
  padding: .9rem;
  border: 1px solid #d8e0f0;
  background: #fff;
}
.admin-setting-field span {
  color: #4e73df;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.admin-setting-field input,
.admin-setting-field select {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #07111f;
  font-weight: 700;
  min-height: 42px;
  padding: .55rem .7rem;
}
.admin-setting-field.is-toggle {
  grid-template-columns: minmax(0, 1fr) minmax(76px, 92px);
  align-items: center;
}
.admin-setting-field.is-toggle span {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: .7rem;
  letter-spacing: .025em;
}
.admin-setting-field.is-toggle select {
  min-width: 0;
  max-width: 100%;
  background: #143a85;
  color: #fff;
  border-color: #143a85;
}
.admin-settings-sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 20;
  padding: 1rem 0;
  background: linear-gradient(180deg, rgba(248,249,252,0), #f8f9fc 35%);
}
@media (max-width: 900px) {
  .admin-settings-grid,
  .module-toggle-grid { grid-template-columns: 1fr; }
  .admin-setting-field.is-toggle { grid-template-columns: 1fr; }
}

/* Admin auth one-screen fit refinement */
.admin-auth-full { min-height: 100vh !important; overflow: hidden !important; }
.admin-auth-coming-header { height: 104px !important; padding: 10px 0 !important; }
.admin-auth-coming { min-height: calc(100vh - 104px) !important; padding: 18px !important; place-items: center !important; }
.admin-auth-launch-card { width: min(680px, 94vw) !important; padding: clamp(24px, 4vh, 38px) clamp(28px, 4vw, 58px) !important; max-height: calc(100vh - 140px) !important; overflow: auto !important; }
.admin-auth-launch-card h1 { font-size: clamp(2rem, 4vh, 2.8rem) !important; line-height: 1.05 !important; }
.admin-auth-logo-img { max-height: 46px !important; }
@media (max-width: 900px) { .admin-auth-full { overflow: auto !important; } .admin-auth-coming-header { height: 88px !important; } .admin-auth-coming { min-height: calc(100vh - 88px) !important; padding: 12px !important; } .admin-auth-launch-card { max-height: none !important; padding: 22px !important; } }
@media (max-height: 760px) and (min-width: 901px) { .admin-auth-coming-header { height: 82px !important; } .admin-auth-coming { min-height: calc(100vh - 82px) !important; } .admin-auth-launch-card { padding-top: 20px !important; padding-bottom: 20px !important; } .admin-auth-logo-img { max-height: 36px !important; } }

/* Final Google mark and one-page auth constraints. */
.google-mark {
  display: inline-block !important;
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.6 20.5H42V20H24v8h11.3C33.7 32.7 29.2 36 24 36c-6.6 0-12-5.4-12-12s5.4-12 12-12c3.1 0 5.9 1.2 8 3.1l5.7-5.7C34.1 6.1 29.3 4 24 4 12.9 4 4 12.9 4 24s8.9 20 20 20 20-8.9 20-20c0-1.3-.1-2.4-.4-3.5z'/%3E%3Cpath fill='%23FF3D00' d='M6.3 14.7l6.6 4.8C14.7 15.1 19 12 24 12c3.1 0 5.9 1.2 8 3.1l5.7-5.7C34.1 6.1 29.3 4 24 4 16.3 4 9.6 8.3 6.3 14.7z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.1 0 9.8-2 13.3-5.2l-6.2-5.2C29.1 35.1 26.7 36 24 36c-5.2 0-9.6-3.3-11.3-7.9l-6.5 5C9.5 39.5 16.2 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.6 20.5H42V20H24v8h11.3c-.8 2.4-2.3 4.3-4.2 5.6l6.2 5.2C36.9 39.1 44 34 44 24c0-1.3-.1-2.4-.4-3.5z'/%3E%3C/svg%3E") center/contain no-repeat !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: transparent !important;
}
.google-mark::before,
.google-mark::after { display: none !important; content: none !important; }
.admin-auth-body { overflow: hidden !important; }
.admin-auth-full { min-height: 100vh !important; max-height: 100vh !important; overflow: hidden !important; }
.admin-auth-coming { min-height: calc(100vh - 110px) !important; padding: 110px 18px 18px !important; align-items: center !important; }
.admin-auth-launch-card { max-height: calc(100vh - 140px) !important; overflow: auto !important; }
@media (max-width: 820px) {
  .admin-auth-body { overflow: auto !important; }
  .admin-auth-full { max-height: none !important; overflow: visible !important; }
  .admin-auth-coming { min-height: calc(100vh - 86px) !important; padding: 94px 12px 12px !important; }
  .admin-auth-launch-card { max-height: none !important; }
}

/* Constrain uploaded supplier marks in the brand table. */
.admin-module-table img[alt$=' logo'] { display: block !important; width: 62px !important; height: 36px !important; min-width: 0 !important; min-height: 0 !important; max-width: 62px !important; max-height: 36px !important; object-fit: contain !important; }
.admin-module-table td > .d-flex > div:first-child { flex: 0 0 70px !important; width: 70px !important; height: 44px !important; overflow: hidden !important; }

.admin-module-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.admin-module-status-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .48rem .8rem; border: 1px solid #f3d28a; border-radius: 999px; background: #fff8e5; color: #795600; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.admin-module-empty-state { border: 1px solid #dce4f0; border-left: 4px solid #f2b331; border-radius: .6rem; }
.admin-module-empty-state .card-body { display: flex; align-items: flex-start; gap: 1.25rem; padding: clamp(1.25rem, 3vw, 2rem); }
.admin-module-empty-icon { display: grid; flex: 0 0 3rem; width: 3rem; height: 3rem; place-items: center; border-radius: .8rem; background: #fff5d8; color: #966800; font-size: 1.2rem; }
.admin-module-empty-copy { max-width: 58rem; }
.admin-module-eyebrow { color: #60728b; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.admin-module-actions { padding-top: 1rem; border-top: 1px solid #e8edf4; }
.admin-health-count { display: grid; flex: 0 0 3.25rem; width: 3.25rem; height: 3.25rem; place-items: center; margin-right: 1rem; border-radius: 1rem; font-size: 1.35rem; font-weight: 800; }
.admin-health-count.is-good { background: #e9f8f0; color: #137349; }
.admin-health-count.is-attention { background: #fff4d6; color: #845d00; }
.admin-security-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.admin-security-status { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .8rem; border: 1px solid #b6e5ca; border-radius: 999px; background: #eef9f2; color: #176a43; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.admin-security-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.admin-security-step { position: relative; min-height: 12rem; padding: 1.2rem; border: 1px solid #e1e8f1; border-radius: .65rem; background: linear-gradient(180deg, #fff, #f9fbfe); }
.admin-security-step-icon, .admin-security-mail-icon { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; margin-bottom: 1rem; border-radius: .8rem; background: #edf3ff; color: #24499e; }
.admin-security-step-number { color: #61738a; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.admin-security-step h3 { margin: .25rem 0 .5rem; color: #17233c; font-size: 1rem; font-weight: 700; }
.admin-security-step p { margin: 0; color: #627086; font-size: .88rem; line-height: 1.55; overflow-wrap: anywhere; }
.admin-security-mail-icon { flex: 0 0 2.6rem; margin: 0 1rem 0 0; }
.admin-security-google { display: inline-flex; align-items: center; gap: .65rem; padding: .7rem .9rem; border: 1px solid #dce4ef; border-radius: .55rem; color: #26344d; font-weight: 700; }
.admin-security-google i { color: #4285f4; }
.admin-qa-header { gap: 1.25rem; }
.admin-qa-header .btn { flex: 0 0 auto; min-height: 2.75rem; font-weight: 700; }
.admin-qa-summary { padding: .9rem 1rem; border: 1px solid #d7e0ed; border-left: 4px solid #2452b6; border-radius: .5rem; background: #f5f8fd; color: #1f355d; font-weight: 700; }
.admin-qa-check-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid #edf0f5; }
.admin-qa-check-row:last-child { border-bottom: 0; }
.admin-qa-check-row .badge { flex: 0 0 auto; }
.admin-module-blank { padding: 2.5rem 1rem; text-align: center; }
.admin-module-blank > i { display: block; margin-bottom: .85rem; color: #8b9ab0; font-size: 2rem; }
.admin-content-preview { max-width: 28rem; color: #637188; }
@media (max-width: 575.98px) { .admin-qa-header { align-items: flex-start !important; flex-direction: column; } .admin-qa-header .btn { width: 100%; } .admin-qa-check-row { align-items: flex-start; flex-direction: column; gap: .45rem; } }
@media (max-width: 767.98px) { .admin-security-flow { grid-template-columns: 1fr; } .admin-security-step { min-height: 0; } .admin-security-header { align-items: flex-start; flex-direction: column; } }
@media (max-width: 575.98px) { .admin-module-header { align-items: flex-start; flex-direction: column; } .admin-module-empty-state .card-body { gap: .85rem; } .admin-module-empty-icon { flex-basis: 2.5rem; width: 2.5rem; height: 2.5rem; } }

/* On phones the portal menu is a full-width-label drawer, not a squeezed icon rail. */
@media (max-width: 767.98px) {
  #wrapper > #accordionSidebar,
  #wrapper > #accordionSidebar.toggled {
    position: fixed;
    z-index: 1041;
    inset: 0 auto 0 0;
    width: min(17rem, 86vw) !important;
    max-width: 86vw;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .2s ease;
    box-shadow: 0 0 1.75rem rgba(15, 23, 42, .24);
  }

  body.admin-mobile-nav-open #wrapper > #accordionSidebar,
  body.admin-mobile-nav-open #wrapper > #accordionSidebar.toggled {
    transform: translateX(0);
  }

  body.admin-mobile-nav-open::after {
    position: fixed;
    z-index: 1040;
    inset: 0;
    content: "";
    background: rgba(15, 23, 42, .52);
  }

  #accordionSidebar .nav-item .nav-link,
  #accordionSidebar.toggled .nav-item .nav-link {
    display: flex;
    align-items: center;
    width: 100% !important;
    min-height: 2.85rem;
    padding: .65rem 1rem;
    text-align: left;
    white-space: normal;
  }

  #accordionSidebar .nav-item .nav-link i,
  #accordionSidebar.toggled .nav-item .nav-link i {
    flex: 0 0 1.35rem;
    margin: 0 .7rem 0 0;
    text-align: center;
  }

  #accordionSidebar .nav-item .nav-link span,
  #accordionSidebar.toggled .nav-item .nav-link span,
  #accordionSidebar.toggled .sidebar-brand .sidebar-brand-text {
    display: inline !important;
    overflow-wrap: anywhere;
    font-size: .82rem;
  }
}


/* ct-real-google-icon-fix */
.admin-google-btn .fab.fa-google.google-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-right: .55rem;
    color: #4285f4;
    font-size: 1.05rem;
    line-height: 1;
    vertical-align: middle;
}

.admin-google-btn .fab.fa-google.google-mark::before {
    display: inline-block !important;
    content: "\f1a0" !important;
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}

.admin-google-btn .fab.fa-google.google-mark::after {
    display: none !important;
    content: none !important;
}

/* ct-google-svg-auth-mark: official Google color mark instead of a generic Font Awesome G. */
.admin-google-btn .google-mark-svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-block;
  margin-right: .25rem;
}

/* Mobile portal login: keep the full form reachable and remove excess top spacing. */
@media (max-width: 820px) {
  html:has(body.admin-auth-body),
  body.admin-auth-body {
    min-height: 100%;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .admin-auth-full {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: none !important;
    padding: 76px 0 0 !important;
    overflow: visible !important;
  }

  .admin-auth-coming-header {
    height: auto !important;
    min-height: 76px !important;
    padding: 8px 14px !important;
  }

  .admin-auth-coming {
    min-height: auto !important;
    padding: 14px 12px max(18px, env(safe-area-inset-bottom)) !important;
    align-items: start !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  .admin-auth-slides { overflow: hidden !important; }

  .admin-auth-launch-card {
    box-sizing: border-box !important;
    width: min(100%, 560px) !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 24px clamp(18px, 5vw, 28px) !important;
    overflow: visible !important;
  }

  .admin-auth-launch-card h1 {
    font-size: clamp(1.8rem, 7.5vw, 2.35rem) !important;
    line-height: 1.06 !important;
    letter-spacing: 0.035em !important;
    overflow-wrap: normal;
  }

  .admin-auth-launch-card .form-control-user,
  .admin-auth-launch-card .btn-user,
  .admin-auth-launch-card .admin-google-btn {
    min-height: 52px;
  }

  .admin-auth-contact-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .admin-auth-coming-header { min-height: 68px !important; }
  .admin-auth-coming-brand img { width: 44px !important; height: 44px !important; object-fit: contain; }
  .admin-auth-launch-card { padding: 20px 16px !important; }
  .admin-auth-launch-card .text-center.mb-3 { margin-bottom: 0.75rem !important; }
}
.admin-report-print .card-header h2 { line-height: 1.4; }
.admin-report-print table th { white-space: nowrap; }

@media print {
  @page { margin: 12mm; }
  body, #wrapper, #content-wrapper, #content { background: #fff !important; color: #111 !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
  #accordionSidebar, .topbar, .scroll-to-top, .admin-toast-stack, .report-controls, .admin-report-print > header > div:last-child, footer { display: none !important; }
  #wrapper #content-wrapper { margin-left: 0 !important; }
  .admin-report-print { width: 100% !important; }
  .admin-report-print .card { border: 1px solid #bbb !important; box-shadow: none !important; break-inside: avoid; }
  .admin-report-print .card-body { padding: .6rem !important; }
  .admin-report-print .row { display: flex !important; }
  .admin-report-print .table-responsive { overflow: visible !important; }
  .admin-report-print table { font-size: 9pt !important; }
  .admin-report-print .report-footnote { display: block !important; }
}
