/* Super Admin Login Overlay */
.superadmin-login-shell {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #0d7a62 0%, #ece4d7 100%);
  min-height: 100vh;
}

.superadmin-login-form {
  min-width: 340px;
  max-width: 98vw;
  padding: 40px 32px 32px 32px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 8px 48px rgba(13, 122, 98, 0.13);
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
  animation: fadeInUp 0.7s cubic-bezier(.23, 1.01, .32, 1) 1;
}

.superadmin-login-form h2 {
  margin: 0 0 8px 0;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-strong);
  text-align: center;
}

.superadmin-login-form label {
  font-weight: 600;
  color: var(--ink);
}

.superadmin-login-form input {
  margin-top: 6px;
  font-size: 1.1rem;
}

.superadmin-login-form button.primary {
  margin-top: 10px;
  font-size: 1.1rem;
  padding: 14px 0;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(13, 122, 98, 0.08);
  transition: background 0.2s;
}

.superadmin-login-form button.primary:hover {
  background: var(--accent-strong);
}

.superadmin-login-form .notice {
  margin: 0;
  min-height: 24px;
  font-size: 1rem;
  text-align: center;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.superadmin-logout-wrap {
  margin-top: 32px;
  text-align: center;
}

.superadmin-logout-wrap button {
  font-size: 1rem;
  padding: 10px 24px;
  border-radius: 16px;
  background: var(--danger);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.superadmin-logout-wrap button:hover {
  background: #7a2323;
}

:root {
  --panel: rgba(255, 251, 245, 0.82);
  --panel-strong: #fffaf2;
  --ink: #16211d;
  --muted: #60706b;
  --accent: #0d7a62;
  --accent-soft: #d7efe6;
  --accent-strong: #06392f;
  --border: rgba(22, 33, 29, 0.1);
  --warning: #c96f14;
  --danger: #a03e35;
  --shadow: 0 24px 60px rgba(24, 27, 26, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(13, 122, 98, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(201, 111, 20, 0.16), transparent 20%),
    linear-gradient(180deg, #f6f2e8 0%, #ece4d7 100%);
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 24px;
  background: rgba(6, 57, 47, 0.92);
  color: #f8f2ea;
}

.sidebar h1,
.hero h2,
.section-heading h3 {
  font-family: "Gill Sans", "Trebuchet MS", sans-serif;
  margin: 0;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
  opacity: 0.75;
}

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

.sidebar .muted {
  color: rgba(248, 242, 234, 0.72);
}

.license-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.license-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.main-content {
  padding: 28px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  margin-bottom: 24px;
  border-radius: 32px;
  background: rgba(255, 250, 242, 0.72);
  box-shadow: var(--shadow);
}

.hero h2 {
  max-width: 740px;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 1.05;
}

.hero-stat-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 16px;
}

.hero-stat {
  min-width: 110px;
  padding: 18px;
  border-radius: 24px;
  background: var(--panel-strong);
  text-align: center;
}

.hero-stat span {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
}

.hero-stat p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section-heading,
.card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 22px;
  margin-bottom: 22px;
}

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

.card {
  padding: 24px;
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.notice {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.notice-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notice-text {
  min-width: 0;
  flex: 1;
}

.notice-close {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  opacity: 0.8;
}

.notice-close:hover {
  opacity: 1;
}

.notice[data-state="success"] {
  color: var(--accent-strong);
  background: rgba(215, 239, 230, 0.88);
}

.notice[data-state="error"] {
  color: var(--danger);
  background: rgba(250, 226, 223, 0.94);
}

.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.primary,
.secondary,
.ghost {
  padding: 12px 16px;
  font-weight: 700;
  border-radius: 16px;
  cursor: pointer;
}

.primary {
  border: none;
  background: var(--accent);
  color: white;
}

.secondary {
  border: none;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
}

.info-list,
.company-table {
  display: grid;
  gap: 12px;
}

.info-list>div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.info-list span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  font-weight: 800;
}

.info-list p {
  margin: 0;
}

.company-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(120px, 1fr)) minmax(340px, 2fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
}

.company-row h5 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.company-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.status::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.status.active {
  color: var(--accent);
}

.status.disabled {
  color: var(--danger);
}

.status.warning {
  color: var(--warning);
}

@media (max-width: 1180px) {

  .page-shell,
  .two-up,
  .hero {
    grid-template-columns: 1fr;
  }

  .page-shell {
    display: block;
  }

  .hero {
    display: grid;
  }

  .company-row {
    grid-template-columns: 1fr;
  }
}