:root {
  --bg: #f4f6fb;
  --bg-strong: #e8edf6;
  --surface: #ffffff;
  --surface-soft: #fbfcff;
  --surface-alt: #f5f7fb;
  --sidebar: #111827;
  --sidebar-line: rgba(255, 255, 255, 0.1);
  --text: #101828;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-warm: #f59e0b;
  --ok: #059669;
  --warn: #b45309;
  --danger: #dc2626;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 40px rgba(15, 23, 42, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Aptos", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.1), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(245, 158, 11, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.auth-shell {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 42px 28px;
  background:
    radial-gradient(circle at 18% 16%, rgba(56, 189, 248, 0.24), transparent 27%),
    radial-gradient(circle at 78% 20%, rgba(37, 99, 235, 0.34), transparent 30%),
    radial-gradient(circle at 72% 84%, rgba(6, 182, 212, 0.15), transparent 27%),
    linear-gradient(135deg, #061124 0%, #102b67 46%, #0a1a3d 100%);
  overflow: hidden;
}

.auth-shell::before,
.auth-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
}

.auth-shell::before {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 76px),
    radial-gradient(circle at -6% 44%, transparent 0 18%, rgba(255, 255, 255, 0.3) 18.18%, transparent 18.62%),
    radial-gradient(circle at -6% 44%, transparent 0 30%, rgba(255, 255, 255, 0.18) 30.18%, transparent 30.62%),
    radial-gradient(circle at -6% 44%, transparent 0 42%, rgba(255, 255, 255, 0.12) 42.18%, transparent 42.62%);
  mix-blend-mode: screen;
}

.auth-shell::after {
  background:
    radial-gradient(circle at 112% 50%, transparent 0 17%, rgba(255, 255, 255, 0.32) 17.18%, transparent 17.58%),
    radial-gradient(circle at 112% 50%, transparent 0 28%, rgba(255, 255, 255, 0.18) 28.18%, transparent 28.58%),
    radial-gradient(circle at 112% 50%, transparent 0 40%, rgba(255, 255, 255, 0.11) 40.18%, transparent 40.58%),
    radial-gradient(circle at 48% 120%, rgba(94, 240, 197, 0.16), transparent 34%);
  filter: blur(0.2px);
}

.auth-card {
  width: min(980px, 100%);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(360px, 1fr);
  align-items: stretch;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 42px 120px rgba(2, 6, 23, 0.42),
    0 0 0 1px rgba(148, 163, 184, 0.16);
  border-radius: 34px;
  padding: 0;
  transition: width 180ms ease, transform 180ms ease;
  backdrop-filter: blur(24px);
}

.auth-launch-grid {
  width: min(1160px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 18px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.auth-shell[data-auth-panel-state="signup"] .auth-card {
  width: min(1180px, 100%);
  grid-template-columns: minmax(260px, 0.48fr) minmax(640px, 1fr);
}

.launch-showcase {
  color: #fff;
  padding: 18px 8px 18px 4px;
  display: grid;
  align-content: center;
  gap: 20px;
}

.launch-showcase h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-family: "Segoe UI Semibold", "Segoe UI", sans-serif;
}

.launch-showcase .auth-copy {
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  font-size: 1.02rem;
}

.launch-pill-row,
.launch-action-row,
.signup-mode-grid,
.auth-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.launch-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.launch-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.launch-value-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 30px rgba(7, 16, 56, 0.12);
}

.launch-value-card strong {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  margin-bottom: 12px;
}

.launch-value-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.auth-switcher {
  grid-column: 2;
  align-self: start;
  width: max-content;
  margin: 54px 48px 28px;
  justify-content: flex-start;
  padding: 6px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid rgba(191, 207, 239, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.auth-switch-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #334155;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.auth-switch-btn.active {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.26);
}

.auth-switch-btn:hover {
  transform: translateY(-1px);
}

.form-section-label {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.launch-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.launch-plan-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.launch-plan-card,
.launch-download-card {
  display: grid;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.launch-plan-card {
  cursor: pointer;
}

.launch-plan-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(61, 90, 232, 0.12);
  background: linear-gradient(180deg, #f7f9ff 0%, #eef2ff 100%);
}

.launch-plan-card.best-value {
  position: relative;
  border-color: rgba(25, 107, 229, 0.42);
}

.launch-plan-badge {
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffcc38, #ff9916);
  color: #14224d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.launch-plan-card strong,
.launch-download-card strong {
  font-size: 1.06rem;
  color: var(--text);
}

.launch-plan-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-deep);
}

.launch-plan-meta,
.launch-download-card span {
  color: var(--muted);
  line-height: 1.45;
}

.launch-plan-highlights {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.5;
}

.launch-pill-strong {
  color: var(--accent-deep);
  border-color: rgba(25, 107, 229, 0.24);
  background: #eef4ff;
}

.launch-download-grid {
  display: grid;
  gap: 14px;
}

.launch-download-card:hover {
  border-color: var(--accent);
}

.module-launcher-card {
  width: min(1360px, 100%);
  max-height: calc(100vh - 28px);
  position: relative;
  z-index: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 7% 0%, rgba(37, 99, 235, 0.2), transparent 24%),
    radial-gradient(circle at 100% 4%, rgba(14, 165, 233, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 247, 255, 0.96) 100%);
  border: 1px solid rgba(219, 232, 255, 0.94);
  box-shadow:
    0 38px 110px rgba(2, 8, 34, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  padding: clamp(18px, 2.4vw, 28px);
  backdrop-filter: blur(18px);
}

.module-launcher-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, #1268ff 0%, #00a8c8 42%, #f59e0b 100%);
}

.module-launcher-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.module-launcher-head h1 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.95rem, 3.4vw, 3.35rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  color: #071327;
}

.module-launcher-subtitle {
  max-width: 720px;
  margin: 0;
  color: #51647f;
  font-size: 0.84rem;
  line-height: 1.35;
}

.module-launch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.module-launch-card {
  --module-accent: #1268ff;
  --module-accent-2: #00a8c8;
  --module-soft: rgba(18, 104, 255, 0.1);
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 6px;
  min-height: 178px;
  padding: 17px;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  text-decoration: none;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 12%, color-mix(in srgb, var(--module-accent) 14%, transparent), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.96) 100%);
  border: 1px solid rgba(212, 224, 244, 0.95);
  box-shadow:
    0 22px 52px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  isolation: isolate;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.module-launch-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background:
    linear-gradient(135deg, var(--module-accent), var(--module-accent-2));
  box-shadow: 0 16px 32px color-mix(in srgb, var(--module-accent) 28%, transparent);
  font-weight: 900;
  letter-spacing: 0.04em;
  z-index: 1;
}

.module-launch-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 14px auto;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.92), transparent 34%),
    color-mix(in srgb, var(--module-accent) 9%, #eaf2ff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68);
  pointer-events: none;
  z-index: -1;
}

.module-launch-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--module-accent) 35%, #d6e4f8);
  box-shadow:
    0 28px 70px rgba(8, 20, 48, 0.18),
    0 0 0 1px color-mix(in srgb, var(--module-accent) 10%, transparent);
}

.module-launch-kicker {
  margin: 0;
  color: var(--module-accent);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  z-index: 1;
}

.module-launch-card h2 {
  margin: 0;
  max-width: 80%;
  font-size: 1.18rem;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #081323;
  z-index: 1;
}

.module-launch-card p {
  margin: 0;
  max-width: 90%;
  color: #60708a;
  font-size: 0.76rem;
  line-height: 1.34;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  z-index: 1;
}

.module-launch-meta {
  display: flex;
  flex-wrap: wrap;
  align-content: end;
  gap: 5px;
  margin-top: auto;
  z-index: 1;
}

.module-launch-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--module-accent) 9%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--module-accent) 10%, #e7eef8);
  color: color-mix(in srgb, var(--module-accent) 78%, #0f172a);
  font-size: 0.66rem;
  font-weight: 800;
}

.module-launch-open {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 1px;
  color: #071327;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1;
}

.module-launch-open::after {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--module-accent), transparent);
}

.module-launch-lock-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 210px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(220, 38, 38, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(248, 113, 113, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 247, 0.95));
  box-shadow: 0 28px 72px rgba(127, 29, 29, 0.12);
}

.module-launch-lock-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 18px 38px rgba(220, 38, 38, 0.24);
  font-weight: 950;
}

.module-launch-lock-card h2 {
  max-width: none;
  margin: 4px 0 8px;
  font-size: clamp(1.8rem, 4vw, 3.1rem);
}

.module-launch-lock-card p {
  max-width: 760px;
  color: #6f1d1d;
}

.module-launch-operations {
  --module-accent: #1268ff;
  --module-accent-2: #00a8c8;
}

.module-launch-billing {
  --module-accent: #0f766e;
  --module-accent-2: #14b8a6;
}

.module-launch-finance {
  --module-accent: #1d4ed8;
  --module-accent-2: #60a5fa;
}

.module-launch-hr {
  --module-accent: #7c3aed;
  --module-accent-2: #ec4899;
}

.module-launch-reports {
  --module-accent: #f97316;
  --module-accent-2: #f59e0b;
}

.module-launch-platform {
  --module-accent: #334155;
  --module-accent-2: #64748b;
}

.module-launch-settings {
  --module-accent: #0891b2;
  --module-accent-2: #22d3ee;
}

@media (max-width: 1180px) {
  .module-launch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .module-launch-card {
    min-height: 186px;
  }
}

@media (max-width: 960px) {
  .auth-shell[data-auth-panel-state="launcher"] {
    overflow-y: auto;
  }

  .module-launcher-card {
    max-height: none;
  }

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

.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 23, 45, 0.54);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 40;
}

.onboarding-card {
  width: min(760px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 32px 90px rgba(14, 23, 45, 0.28);
}

.onboarding-grid .launch-value-card {
  background: #f7f9fd;
  border-color: var(--line);
  box-shadow: none;
}

.onboarding-grid .launch-value-card strong {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.onboarding-grid .launch-value-card p {
  color: var(--text);
}

.auth-logo-wrap {
  grid-column: 1;
  grid-row: 1 / 4;
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 28px;
  min-height: 100%;
  margin: 0;
  padding: 48px 38px;
  overflow: hidden;
  color: #f8fbff;
  background:
    radial-gradient(circle at 24% 16%, rgba(255, 255, 255, 0.22), transparent 24%),
    radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.3), transparent 34%),
    linear-gradient(150deg, #081734 0%, #102b67 55%, #041329 100%);
}

.auth-logo-wrap::before,
.auth-logo-wrap::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.auth-logo-wrap::before {
  inset: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-logo-wrap::after {
  width: 250px;
  height: 250px;
  right: -118px;
  bottom: -86px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 240, 197, 0.2), transparent 68%);
}

.agnova-brand-mark {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: transparent;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.96), transparent 18%),
    conic-gradient(from 210deg, #0b1f58, #1268ff, #00a8c8, #0b1f58);
  box-shadow: 0 22px 54px rgba(18, 104, 255, 0.24);
  font-size: 0;
}

.agnova-brand-mark::before {
  content: "";
  position: absolute;
  inset: 17%;
  border-radius: 24%;
  background: rgba(255, 255, 255, 0.95);
  transform: rotate(45deg);
  box-shadow: inset 0 0 0 1px rgba(18, 104, 255, 0.1);
}

.agnova-brand-mark::after {
  content: "";
  position: absolute;
  width: 42%;
  height: 52%;
  background: linear-gradient(145deg, #1268ff 0%, #071527 100%);
  clip-path: polygon(50% 0, 96% 100%, 72% 100%, 50% 50%, 28% 100%, 4% 100%);
}

.agnova-brand-mark--auth {
  width: 118px;
  height: 118px;
  margin: 0;
  box-shadow:
    0 24px 62px rgba(18, 104, 255, 0.34),
    0 0 0 10px rgba(255, 255, 255, 0.08);
}

.agnova-brand-mark--sidebar {
  width: 62px;
  height: 62px;
  box-shadow: 0 18px 42px rgba(18, 104, 255, 0.28);
}

.auth-logo {
  width: min(100%, 220px);
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: none;
  object-fit: contain;
}

.auth-card h1,
.hero h1,
.brand h2,
.panel-header h2,
.card h3,
.card h4 {
  margin: 0;
  font-family: "Segoe UI Semibold", "Segoe UI", sans-serif;
}

.auth-copy,
.auth-note,
.eyebrow,
.brand-copy,
.hero-copy {
  margin: 0;
}

.auth-copy,
.brand-copy,
.hero-copy,
.auth-note {
  color: var(--muted);
  line-height: 1.55;
}

.auth-card h1 {
  font-size: clamp(2rem, 3vw, 2.65rem);
  color: #101828;
  letter-spacing: -0.04em;
}

.auth-card > section {
  grid-column: 2;
  padding: 0 48px 48px;
}

.auth-card > section[hidden] {
  display: none !important;
}

.auth-brand-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  max-width: 310px;
}

.auth-brand-kicker {
  margin: 0;
  width: max-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #bfdbfe;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-brand-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.auth-brand-copy p {
  margin: 0;
  color: rgba(226, 239, 255, 0.78);
  line-height: 1.6;
}

.auth-brand-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.auth-brand-pills span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(248, 251, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
  font-weight: 800;
}

.auth-copy,
.auth-note {
  margin-top: 10px;
}

.auth-card .form-card {
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-card label {
  color: #334155;
  font-weight: 800;
}

.auth-card input,
.auth-card select,
.auth-card textarea {
  margin-top: 7px;
  min-height: 54px;
  border-radius: 18px;
  border-color: #cbd8ee;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
  border-color: #60a5fa;
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.auth-card .primary-btn {
  min-height: 58px;
  padding: 0 28px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #2563eb 0%, #1599e9 100%);
  box-shadow:
    0 18px 34px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.auth-card .primary-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 42px rgba(37, 99, 235, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.auth-card .secondary-btn {
  min-height: 54px;
  border-radius: 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
}

.error-text {
  color: var(--danger);
  min-height: 20px;
}

.auth-inline-links {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.auth-text-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.auth-text-link:hover {
  text-decoration: underline;
}

.signup-studio {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.92fr);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.signup-form-card {
  gap: 18px;
}

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

.signup-field {
  display: grid;
  gap: 8px;
}

.signup-field--wide {
  grid-column: 1 / -1;
}

.signup-mode-grid--cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.signup-choice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  cursor: pointer;
}

.signup-choice-card input {
  margin-top: 4px;
}

.signup-choice-card span {
  display: grid;
  gap: 4px;
}

.signup-choice-card strong {
  color: var(--text);
  font-size: 0.98rem;
}

.signup-choice-card small {
  color: var(--muted);
  line-height: 1.45;
}

.signup-choice-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(61, 90, 232, 0.12);
  background: linear-gradient(180deg, #f7f9ff 0%, #eef2ff 100%);
}

.signup-plan-shell {
  display: grid;
  gap: 12px;
}

.signup-plan-shell-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.signup-plan-shell-head .auth-note {
  margin-top: 0;
}

.signup-preview-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid #d8e3fb;
  background:
    radial-gradient(circle at top right, rgba(67, 97, 255, 0.1), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eef3ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.signup-preview-head {
  display: grid;
  gap: 8px;
}

.signup-preview-head h3 {
  margin: 0;
  color: #1e315f;
  font-size: 1.38rem;
}

.signup-preview-head .auth-note {
  margin-top: 0;
}

.signup-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.signup-preview-item {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(110, 136, 219, 0.14);
}

.signup-preview-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signup-preview-item strong {
  color: #1d2c53;
  line-height: 1.45;
}

.signup-preview-points {
  display: grid;
  gap: 10px;
}

.signup-preview-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.6;
}

.signup-preview-footnote {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(35, 61, 148, 0.08);
  color: #294792;
  font-weight: 600;
  line-height: 1.55;
}

.app-shell {
  display: grid;
  grid-template-columns: 264px 1fr;
  min-height: 100vh;
  min-width: 0;
  background: #f8fafc;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  background:
    radial-gradient(circle at 40% 0%, rgba(59, 130, 246, 0.32), transparent 28%),
    linear-gradient(180deg, #0f172a 0%, #111827 52%, #172554 100%);
  color: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid var(--sidebar-line);
  box-shadow: 18px 0 44px rgba(15, 23, 42, 0.16);
}

.brand {
  padding: 24px 20px 18px;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: none;
}

.brand-top {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.brand-logo {
  width: 156px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.18);
}

.brand h2 {
  margin-top: 2px;
  color: #fff;
  font-size: 1.38rem;
}

.brand-copy {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: auto;
  padding: 10px 12px 0;
}

.group-link,
.subtab-link,
.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.group-link {
  text-align: left;
  padding: 14px 16px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  border: 0;
  border-left: 0;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.group-link:hover,
.subtab-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  color: #fff;
}

.group-link.active {
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  transform: translateX(2px);
  box-shadow: 0 16px 34px rgba(2, 6, 23, 0.18);
}

.group-link.active small {
  color: #64748b;
}

.group-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.group-link-title {
  font-size: 0.95rem;
}

.group-link small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
}

.sidebar-card {
  margin: auto 16px 16px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-card-title {
  margin: 0 0 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.wide {
  width: 100%;
}

.content {
  padding: 18px 28px 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  min-width: 0;
  overflow-x: hidden;
}

.subscription-banner {
  margin: 18px 0 0;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(18, 38, 63, 0.08);
  background: rgba(18, 38, 63, 0.04);
  color: #1f3551;
  font-size: 0.95rem;
  font-weight: 600;
}

.subscription-banner[data-tone="warn"] {
  border-color: rgba(181, 107, 20, 0.24);
  background: rgba(181, 107, 20, 0.08);
  color: #8a5510;
}

.subscription-banner[data-tone="danger"] {
  border-color: rgba(200, 61, 61, 0.26);
  background: rgba(200, 61, 61, 0.09);
  color: #8f1f1f;
}

.subscription-lock-panel {
  margin-top: 18px;
}

.subscription-lock-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  min-height: 320px;
  border-radius: 32px;
  border: 1px solid rgba(220, 38, 38, 0.24);
  background:
    radial-gradient(circle at 90% 10%, rgba(248, 113, 113, 0.16), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(249, 115, 22, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 247, 0.96));
  box-shadow: 0 34px 86px rgba(127, 29, 29, 0.12);
}

.subscription-lock-mark {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #fb923c);
  font-size: 2rem;
  font-weight: 950;
  box-shadow: 0 18px 44px rgba(220, 38, 38, 0.24);
}

.subscription-lock-card h2 {
  margin: 4px 0 10px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
  color: #111827;
}

.subscription-lock-card p {
  max-width: 760px;
  margin: 0 0 8px;
  color: #6f1d1d;
  font-size: 1rem;
  line-height: 1.55;
}

body.subscription-access-locked .subtab-shell {
  display: none;
}

.subtab-shell {
  margin-top: 18px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  min-width: 0;
  backdrop-filter: blur(14px);
}

.subtab-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.subtab-shell-kicker {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
}

.subtab-shell h2 {
  margin: 0;
  font-size: 1.2rem;
}

.subtab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subtab-link {
  padding: 11px 16px;
  background: #fff;
  color: #334155;
  border: 1px solid var(--line);
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.subtab-link.active {
  background: linear-gradient(180deg, #3b82f6 0%, var(--accent) 100%);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.hero {
  position: sticky;
  top: 14px;
  z-index: 5;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%);
  border: 1px solid rgba(226, 232, 240, 0.94);
  box-shadow: var(--shadow-soft);
  border-radius: 26px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-width: 0;
  backdrop-filter: blur(18px);
}

.hero h1 {
  font-size: 1.48rem;
  letter-spacing: -0.02em;
}

.hero-copy {
  margin-top: 4px;
  max-width: 760px;
  font-size: 0.94rem;
}

.hero-heading {
  display: grid;
  gap: 4px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f6ff;
  border: 1px solid #d8e5fb;
  color: #45607f;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-status-chip {
  padding: 9px 14px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #047857;
  font-weight: 800;
  font-size: 0.9rem;
}

.hero-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: #334155;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.primary-btn,
.secondary-btn {
  padding: 11px 15px;
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.primary-btn:disabled,
.secondary-btn:disabled,
.tiny-btn:disabled,
.danger-btn:disabled {
  cursor: wait;
  opacity: 0.82;
}

.is-loading {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btn-spin 0.8s linear infinite;
}

.secondary-btn .btn-spinner,
.tiny-btn .btn-spinner,
.danger-btn .btn-spinner {
  border-color: rgba(37, 99, 235, 0.18);
  border-top-color: currentColor;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.primary-btn:hover,
.secondary-btn:hover,
.tiny-btn:hover,
.danger-btn:hover {
  transform: translateY(-1px);
}

.primary-btn {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.primary-btn:active,
.secondary-btn:active,
.tiny-btn:active,
.danger-btn:active {
  transform: translateY(0);
}

.secondary-btn {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #1e293b;
  border: 1px solid var(--line);
}

a.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.tiny-btn,
.danger-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 7px 11px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.tiny-btn {
  background: #f3f7ff;
  color: var(--accent-deep);
  border-color: #dce7fb;
}

.danger-btn {
  background: #fff1f1;
  color: var(--danger);
  border-color: #ffd5d5;
}

.tab-panel {
  display: none;
  margin-top: 22px;
}

.tab-panel.active {
  display: block;
  min-width: 0;
}

.panel-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: var(--shadow-soft);
}

.panel-subnav-nested {
  margin-bottom: 18px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f9fbff 0%, #eef4ff 100%);
}

.panel-subnav-link {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 13px;
  background: #fff;
  color: #324255;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.panel-subnav-link.active {
  background: var(--accent-soft);
  border-color: #cdddfc;
  color: var(--accent-deep);
}

.panel-section {
  display: none !important;
}

.panel-section.active {
  display: block !important;
  width: 100%;
  max-width: 100%;
}

.form-card.panel-section.active,
.permissions-card.panel-section.active,
.req-material-search.panel-section.active,
.action-permissions-grid.panel-section.active,
.bulk-import-card.panel-section.active {
  display: grid !important;
}

.grid.panel-section.active,
.metric-grid.panel-section.active,
.permissions-grid.panel-section.active {
  display: grid !important;
}

.card-top.panel-section.active,
.form-actions.panel-section.active,
.hero-actions.panel-section.active,
.inline-actions.panel-section.active,
.panel-subnav.panel-section.active,
.panel-subnav-nested.panel-section.active {
  display: flex !important;
}

.tab-panel > .panel-section.active,
.tab-panel > .grid.panel-section.active,
.tab-panel > .card.panel-section.active {
  width: 100%;
  max-width: 100%;
}

.grid > .panel-section.active {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
}

.grid {
  display: grid;
  gap: 18px;
  min-width: 0;
}

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

.purchase-layout {
  grid-template-columns: 1fr;
}

.purchase-form-card,
.purchase-register-card {
  width: 100%;
}

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

.dashboard-grid {
  margin-top: 18px;
}

.executive-dashboard {
  --dashboard-ink: #0b1736;
  --dashboard-muted: #667590;
  --dashboard-line: #dfe7f4;
  --dashboard-blue: #2563eb;
  --dashboard-cyan: #0891b2;
  --dashboard-amber: #d97706;
  --dashboard-red: #dc2626;
  --dashboard-green: #059669;
  position: relative;
}

.executive-dashboard svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-executive-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
  gap: 28px;
  min-height: 300px;
  padding: 34px;
  overflow: hidden;
  color: #ffffff;
  border: 1px solid rgba(129, 174, 255, 0.28);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 14%, rgba(62, 197, 255, 0.32), transparent 25%),
    radial-gradient(circle at 60% 110%, rgba(58, 110, 255, 0.28), transparent 42%),
    linear-gradient(132deg, #07142f 0%, #0c2e65 48%, #15549a 100%);
  box-shadow: 0 28px 70px rgba(8, 28, 70, 0.24);
  isolation: isolate;
}

.dashboard-executive-header::before,
.dashboard-executive-header::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.dashboard-executive-header::before {
  right: -90px;
  bottom: -130px;
  width: 410px;
  height: 410px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(255, 255, 255, 0.035),
    0 0 0 96px rgba(255, 255, 255, 0.02);
}

.dashboard-executive-header::after {
  top: -120px;
  left: 43%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  filter: blur(2px);
}

.dashboard-executive-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 800px;
}

.dashboard-live-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  padding: 7px 11px;
  margin-bottom: 18px;
  color: #dff7ff;
  border: 1px solid rgba(189, 234, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.dashboard-live-chip span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.14);
}

.dashboard-greeting {
  margin: 0 0 4px !important;
  color: #a9cfff !important;
  font-size: 0.92rem !important;
  font-weight: 700;
}

.dashboard-executive-copy h2 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-family: "Segoe UI Semibold", "Segoe UI", sans-serif;
  font-size: clamp(2.05rem, 4vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.dashboard-executive-copy > p:not(.dashboard-greeting) {
  max-width: 690px;
  margin: 16px 0 0;
  color: rgba(226, 239, 255, 0.82);
  font-size: 1rem;
  line-height: 1.68;
}

.dashboard-executive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.dashboard-command-primary,
.dashboard-command-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.dashboard-command-primary {
  color: #0b2450;
  border: 1px solid #ffffff;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 10, 35, 0.22);
}

.dashboard-command-secondary {
  color: #eff8ff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.dashboard-command-primary:hover,
.dashboard-command-secondary:hover {
  transform: translateY(-2px);
}

.dashboard-command-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.dashboard-executive-pulse {
  display: grid;
  align-content: center;
  gap: 14px;
}

.dashboard-date-card,
.dashboard-attention-card {
  position: relative;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.dashboard-date-card {
  display: grid;
  gap: 4px;
}

.dashboard-date-card span,
.dashboard-date-card small,
.dashboard-attention-card small,
.dashboard-attention-card span {
  color: rgba(226, 239, 255, 0.72);
}

.dashboard-date-card span {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-date-card strong {
  color: #ffffff;
  font-size: 1.45rem;
}

.dashboard-date-card small {
  margin-top: 4px;
}

.dashboard-attention-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.dashboard-attention-card.has-attention {
  border-color: rgba(255, 213, 128, 0.38);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(255, 255, 255, 0.08));
}

.dashboard-attention-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff3c4 !important;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.dashboard-attention-card div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: end;
}

.dashboard-attention-card strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
}

.dashboard-attention-card div > span {
  font-size: 0.82rem;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.dashboard-kpi-card {
  --kpi-color: var(--dashboard-blue);
  --kpi-soft: #edf4ff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-width: 0;
  min-height: 112px;
  padding: 17px;
  text-align: left;
  color: var(--dashboard-ink);
  border: 1px solid var(--dashboard-line);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94)),
    var(--surface);
  box-shadow: 0 12px 32px rgba(26, 54, 102, 0.08);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.dashboard-kpi-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--kpi-color) 34%, #dbe5f4);
  box-shadow: 0 18px 40px rgba(26, 54, 102, 0.13);
}

.dashboard-kpi-warning {
  --kpi-color: var(--dashboard-amber);
  --kpi-soft: #fff7e8;
}

.dashboard-kpi-danger {
  --kpi-color: var(--dashboard-red);
  --kpi-soft: #fff0f0;
}

.dashboard-kpi-teal {
  --kpi-color: var(--dashboard-green);
  --kpi-soft: #eafaf4;
}

.dashboard-kpi-neutral {
  --kpi-color: #64748b;
  --kpi-soft: #f1f5f9;
}

.dashboard-kpi-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--kpi-color);
  border-radius: 15px;
  background: var(--kpi-soft);
}

.dashboard-kpi-copy {
  display: grid;
  min-width: 0;
}

.dashboard-kpi-copy small {
  overflow: hidden;
  color: var(--dashboard-muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.dashboard-kpi-copy strong {
  margin-top: 4px;
  color: var(--dashboard-ink);
  font-size: 1.65rem;
  line-height: 1.05;
}

.dashboard-kpi-copy span {
  margin-top: 5px;
  overflow: hidden;
  color: var(--dashboard-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-kpi-arrow {
  display: grid;
  color: #a2aec2;
  place-items: center;
}

.dashboard-kpi-arrow svg {
  width: 17px;
  height: 17px;
}

.dashboard-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 3px 13px;
}

.dashboard-section-heading .eyebrow,
.dashboard-overview-card .eyebrow {
  margin-bottom: 5px;
}

.dashboard-section-heading h3,
.dashboard-overview-card .card-top h3 {
  margin: 0;
  color: var(--dashboard-ink);
  font-size: 1.42rem;
  letter-spacing: -0.02em;
}

.dashboard-section-note {
  color: var(--dashboard-muted);
  font-size: 0.82rem;
}

.dashboard-overview-card {
  margin-top: 24px;
  padding: 24px;
  border-color: #dce5f2;
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.055), transparent 25%),
    #ffffff;
  box-shadow: 0 18px 48px rgba(28, 55, 99, 0.08);
}

.dashboard-overview-card > .card-top {
  align-items: flex-end;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6ecf5;
}

.dashboard-live-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.dashboard-data-card {
  min-height: 0;
  align-self: start;
  overflow: hidden;
}

.dashboard-role-card {
  grid-column: 1 / -1;
  padding: 0;
  border-color: rgba(37, 99, 235, 0.18);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(28, 55, 99, 0.1);
}

.dashboard-role-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  min-height: 330px;
}

.dashboard-role-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 10%, rgba(66, 198, 255, 0.28), transparent 30%),
    linear-gradient(145deg, #0a1c41, #123d79);
}

.dashboard-role-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 21px;
  color: #dff6ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  place-items: center;
}

.dashboard-role-intro .eyebrow {
  color: #7dd3fc;
}

.dashboard-role-intro h3 {
  margin: 4px 0 0;
  color: #ffffff;
  font-size: 1.72rem;
  letter-spacing: -0.03em;
}

.dashboard-role-copy {
  max-width: 520px;
  margin: 12px 0 0;
  color: rgba(229, 239, 255, 0.76);
  line-height: 1.6;
}

.dashboard-role-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.dashboard-quick-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  color: #eaf4ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.79rem;
  font-weight: 750;
  cursor: pointer;
}

.dashboard-quick-action:hover {
  background: rgba(255, 255, 255, 0.15);
}

.dashboard-quick-action svg {
  width: 14px;
  height: 14px;
}

.dashboard-role-queue-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.86), #ffffff 34%);
}

.dashboard-list-head,
.dashboard-snapshot-head,
.dashboard-workspace-head {
  display: grid;
  align-items: center;
  gap: 12px;
}

.dashboard-list-head {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 2px 4px 14px;
}

.dashboard-list-head div {
  display: grid;
  gap: 3px;
}

.dashboard-list-head span,
.dashboard-snapshot-head p,
.dashboard-workspace-head p {
  margin: 0;
  color: #71809a;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-list-head strong {
  color: var(--dashboard-ink);
  font-size: 1.08rem;
}

.dashboard-icon-button,
.dashboard-scroll-down {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: #245ed7;
  border: 1px solid #d6e2f5;
  border-radius: 12px;
  background: #f7faff;
  place-items: center;
  cursor: pointer;
  transition: transform 150ms ease, color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.dashboard-icon-button:hover,
.dashboard-scroll-down:hover {
  transform: translateY(-2px);
  color: #ffffff;
  border-color: #2868e8;
  background: #2868e8;
}

.dashboard-icon-button svg,
.dashboard-scroll-down svg {
  width: 17px;
  height: 17px;
}

.dashboard-scroll-region {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: #a9bad6 transparent;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.dashboard-scroll-region::-webkit-scrollbar {
  width: 7px;
}

.dashboard-scroll-region::-webkit-scrollbar-track {
  background: transparent;
}

.dashboard-scroll-region::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b2c0d7;
}

.dashboard-scroll-region::-webkit-scrollbar-thumb:hover {
  background: #879bbd;
}

.dashboard-queue-list {
  max-height: 222px;
  padding-right: 7px;
}

.dashboard-queue-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 11px;
  text-align: left;
  color: var(--dashboard-ink);
  border: 0;
  border-bottom: 1px solid #e8edf5;
  background: transparent;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.dashboard-queue-item:last-child {
  border-bottom: 0;
}

.dashboard-queue-item:hover {
  transform: translateX(3px);
  border-radius: 12px;
  background: #f1f6ff;
}

.dashboard-queue-index {
  color: #9aa8be;
  font-size: 0.72rem;
  font-weight: 850;
}

.dashboard-queue-copy,
.dashboard-row-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.dashboard-queue-copy strong,
.dashboard-row-copy strong {
  overflow: hidden;
  color: var(--dashboard-ink);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-queue-copy small,
.dashboard-row-copy small {
  overflow: hidden;
  color: var(--dashboard-muted);
  font-size: 0.76rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-row-arrow {
  display: grid;
  color: #9aa9c0;
  place-items: center;
}

.dashboard-row-arrow svg {
  width: 16px;
  height: 16px;
}

.dashboard-scroll-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 4px 0;
  color: #7a889f;
  border-top: 1px solid #e8edf5;
  font-size: 0.75rem;
}

.dashboard-scroll-footer > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-text-link {
  color: #245ed7;
  border: 0;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.dashboard-snapshot-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 350px;
  padding: 0;
  border-radius: 22px;
  border-color: #dfe7f2;
  box-shadow: 0 14px 38px rgba(28, 55, 99, 0.08);
}

.dashboard-snapshot-head {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 19px 19px 15px;
  border-bottom: 1px solid #e8edf5;
}

.dashboard-snapshot-head h3 {
  margin: 3px 0 0;
  color: var(--dashboard-ink);
  font-size: 1.04rem;
}

.dashboard-snapshot-icon,
.dashboard-row-icon {
  display: grid;
  place-items: center;
}

.dashboard-snapshot-icon {
  width: 43px;
  height: 43px;
  color: #2563eb;
  border-radius: 14px;
  background: #edf4ff;
}

.dashboard-snapshot-list {
  max-height: 230px;
  min-height: 230px;
  padding: 7px 12px;
}

.dashboard-snapshot-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-width: 0;
  padding: 13px 7px;
  text-align: left;
  color: var(--dashboard-ink);
  border: 0;
  border-bottom: 1px solid #edf1f7;
  background: transparent;
  cursor: pointer;
  transition: background 150ms ease, border-radius 150ms ease;
}

.dashboard-snapshot-row:hover {
  border-radius: 13px;
  background: #f6f9fe;
}

.dashboard-row-icon {
  width: 35px;
  height: 35px;
  color: #2563eb;
  border-radius: 11px;
  background: #edf4ff;
}

.dashboard-row-icon svg {
  width: 17px;
  height: 17px;
}

.dashboard-row-danger {
  color: #d83c3c;
  background: #fff0f0;
}

.dashboard-row-warning {
  color: #c87508;
  background: #fff6e5;
}

.dashboard-row-value {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 72px;
  color: var(--dashboard-ink);
  font-size: 0.82rem;
}

.dashboard-row-value small {
  color: #7a889f;
  font-size: 0.7rem;
}

.dashboard-snapshot-card > .dashboard-scroll-footer {
  margin: 0 16px 12px;
  padding-top: 11px;
}

.dashboard-empty-state {
  display: grid;
  min-height: 180px;
  padding: 24px;
  color: #91a0b7;
  text-align: center;
  place-content: center;
  justify-items: center;
}

.dashboard-empty-state svg {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  color: #a9b8ce;
}

.dashboard-empty-state strong {
  color: #46556e;
  font-size: 0.9rem;
}

.dashboard-empty-state span {
  max-width: 270px;
  margin-top: 5px;
  font-size: 0.77rem;
  line-height: 1.45;
}

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

.dashboard-workspace-card {
  --workspace-color: #2563eb;
  --workspace-soft: #edf4ff;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid #dfe7f2;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--workspace-color) 9%, transparent), transparent 34%),
    linear-gradient(180deg, #ffffff, #fbfcff);
  box-shadow: 0 12px 34px rgba(28, 55, 99, 0.07);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.dashboard-workspace-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--workspace-color) 26%, #dfe7f2);
  box-shadow: 0 20px 46px rgba(28, 55, 99, 0.12);
}

.dashboard-workspace-cyan {
  --workspace-color: #0891b2;
  --workspace-soft: #e9fafd;
}

.dashboard-workspace-amber {
  --workspace-color: #d97706;
  --workspace-soft: #fff6e8;
}

.dashboard-workspace-emerald {
  --workspace-color: #059669;
  --workspace-soft: #eafaf4;
}

.dashboard-workspace-rose {
  --workspace-color: #db5277;
  --workspace-soft: #fff0f4;
}

.dashboard-workspace-slate {
  --workspace-color: #64748b;
  --workspace-soft: #f1f5f9;
}

.dashboard-workspace-indigo {
  --workspace-color: #4f46e5;
  --workspace-soft: #f0efff;
}

.dashboard-workspace-head {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 20px 20px 10px;
}

.dashboard-workspace-head h3 {
  margin: 3px 0 0;
  color: var(--dashboard-ink);
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.dashboard-workspace-icon {
  display: grid;
  width: 46px;
  height: 46px;
  color: var(--workspace-color);
  border-radius: 15px;
  background: var(--workspace-soft);
  place-items: center;
}

.dashboard-workspace-count {
  display: grid;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  color: var(--workspace-color);
  border: 1px solid color-mix(in srgb, var(--workspace-color) 20%, #e4eaf3);
  border-radius: 11px;
  background: var(--workspace-soft);
  font-size: 0.78rem;
  font-weight: 850;
  place-items: center;
}

.dashboard-workspace-copy {
  min-height: 63px;
  margin: 0;
  padding: 5px 20px 14px;
  color: var(--dashboard-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.dashboard-workspace-links {
  max-height: 186px;
  margin: 0 14px;
  padding: 3px 7px 3px 5px;
  border-top: 1px solid #e9eef6;
  border-bottom: 1px solid #e9eef6;
}

.dashboard-workspace-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: #273754;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 760;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, padding 150ms ease;
}

.dashboard-workspace-link:last-child {
  border-bottom: 0;
}

.dashboard-workspace-link:hover {
  padding-left: 13px;
  color: var(--workspace-color);
  border-radius: 11px;
  background: var(--workspace-soft);
}

.dashboard-workspace-link svg {
  width: 15px;
  height: 15px;
  color: #9aa9bf;
}

.dashboard-workspace-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 12px 20px;
}

.dashboard-workspace-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--workspace-color);
  border: 0;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 850;
  cursor: pointer;
}

.dashboard-workspace-open svg {
  width: 15px;
  height: 15px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.metric-card,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.metric-card {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.metric-card-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.metric-card-button:hover {
  transform: translateY(-2px);
  border-color: #cdddfc;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.12);
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, #38bdf8 54%, var(--accent-warm) 100%);
}

.metric-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.8rem;
  font-family: "Segoe UI Semibold", "Segoe UI", sans-serif;
}

.finance-hero-card {
  background:
    radial-gradient(circle at top right, rgba(61, 90, 232, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.finance-metric-grid {
  margin-top: 16px;
}

.finance-pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.finance-module-nav {
  align-items: center;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid rgba(174, 190, 231, 0.84);
  background:
    radial-gradient(circle at top left, rgba(98, 128, 255, 0.18), transparent 36%),
    linear-gradient(135deg, #f8fbff 0%, #eef3ff 46%, #ffffff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 18px 34px rgba(43, 71, 148, 0.1);
}

.finance-modules-head {
  gap: 14px;
  align-items: end;
}

.finance-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.finance-company-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 0;
}

.finance-company-switch label {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

.finance-company-switch select {
  min-width: 260px;
}

.finance-module-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.finance-module-nav .subtab-link {
  width: 100%;
  text-align: center;
  border-radius: 999px;
  cursor: pointer;
  min-height: 52px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 248, 255, 0.96) 100%);
  border: 1px solid rgba(199, 213, 244, 0.96);
  color: #20375f;
  box-shadow: 0 10px 20px rgba(59, 84, 160, 0.08);
}

.finance-module-nav .subtab-link:hover {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  color: #17305f;
  border-color: #b7caf3;
  box-shadow: 0 16px 28px rgba(59, 84, 160, 0.14);
}

.finance-module-nav .subtab-link.active {
  background: linear-gradient(135deg, #2f5ff2 0%, #456ef3 55%, #5d84ff 100%);
  border-color: transparent;
  box-shadow: 0 18px 32px rgba(47, 95, 242, 0.28);
}

.section-briefing-shell {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(196, 210, 241, 0.9);
  background:
    radial-gradient(circle at top right, rgba(82, 118, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 18px 34px rgba(47, 74, 148, 0.08);
}

.section-briefing-shell--platform {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.section-briefing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.section-briefing-head h3 {
  margin: 0;
}

.section-briefing-head .hero-copy {
  margin: 6px 0 0;
  max-width: 72ch;
}

.section-briefing-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section-briefing-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(200, 212, 240, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 255, 0.96) 100%);
  color: #20375f;
  font-family: "Segoe UI Semibold", "Segoe UI", sans-serif;
  font-size: 0.96rem;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 12px 24px rgba(59, 84, 160, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.section-briefing-link:hover {
  transform: translateY(-1px);
  border-color: #b7caf3;
  box-shadow: 0 18px 30px rgba(59, 84, 160, 0.12);
}

.section-briefing-link.active {
  background: linear-gradient(135deg, #2f5ff2 0%, #456ef3 55%, #5d84ff 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 20px 34px rgba(47, 95, 242, 0.26);
}

.section-anchor-target {
  scroll-margin-top: 110px;
}

.finance-module-single {
  grid-template-columns: minmax(0, 1fr);
}

.finance-focus-stack {
  grid-template-columns: minmax(0, 1fr);
}

[data-finance-pane][hidden] {
  display: none !important;
}

.finance-module-link {
  text-decoration: none;
}

.finance-module-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.finance-focus-stack > .card,
.finance-module-single > .card:not(.form-card),
#finance-payments-done-module,
#finance-bills-module,
#finance-credit-notes-module,
#finance-debit-notes-module,
#finance-ledger-module,
#finance-profit-loss-module,
#finance-balance-sheet-module,
#finance-sync-module {
  background:
    radial-gradient(circle at top right, rgba(86, 118, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border-color: #dbe4f6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 38px rgba(32, 51, 104, 0.08);
}

#finance-mirror-module {
  display: grid;
  gap: 18px;
}

#finance-mirror-module .finance-summary-table-wrap {
  max-height: clamp(360px, 62vh, 760px);
}

.finance-section-stack {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

#finance-stock-module .finance-summary-table-wrap,
#finance-items-module .finance-summary-table-wrap {
  max-height: clamp(360px, 62vh, 760px);
}

#finance-reverse-sync-module .finance-summary-table-wrap {
  max-height: clamp(340px, 58vh, 720px);
}

.finance-balance-grid {
  gap: 12px;
  align-items: stretch;
}

.finance-module-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.finance-party-desk-card {
  overflow: visible;
  border-color: #d7e1f7;
  background:
    radial-gradient(circle at top right, rgba(78, 109, 243, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 34px rgba(35, 56, 110, 0.08);
}

.finance-party-desk-top {
  margin-bottom: 18px;
}

.finance-party-desk {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  min-width: 0;
}

.finance-party-sidebar {
  border: 1px solid #d8e2f7;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(89, 119, 255, 0.14), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 32px rgba(36, 58, 116, 0.08);
  padding: 18px;
  position: sticky;
  top: 18px;
  min-width: 0;
}

.finance-party-sidebar-head {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.finance-party-sidebar-head h4 {
  margin: 0;
  font-size: 1.12rem;
  color: #203a67;
}

.finance-party-list {
  display: grid;
  gap: 10px;
  max-height: clamp(420px, 68vh, 860px);
  overflow: auto;
  padding-right: 4px;
}

.finance-party-list-item {
  display: grid;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid #d8e2f7;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #20345b;
  box-shadow: 0 10px 22px rgba(39, 63, 124, 0.06);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.finance-party-list-item:hover {
  transform: translateY(-1px);
  border-color: #b8caf1;
  box-shadow: 0 16px 28px rgba(39, 63, 124, 0.12);
}

.finance-party-list-item.active {
  background: linear-gradient(135deg, #2f5ff2 0%, #4f79ff 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 20px 34px rgba(47, 95, 242, 0.26);
}

.finance-party-list-name {
  font-size: 1.03rem;
  font-weight: 800;
  line-height: 1.3;
}

.finance-party-list-meta {
  color: #6a7e9f;
  font-size: 0.82rem;
  font-weight: 700;
}

.finance-party-list-item.active .finance-party-list-meta {
  color: rgba(255, 255, 255, 0.84);
}

.finance-party-list-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.finance-party-list-foot strong {
  font-size: 0.95rem;
  color: inherit;
}

.finance-party-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.finance-party-header {
  display: grid;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid #d8e2f7;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(91, 123, 255, 0.14), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f5f8ff 56%, #ffffff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 34px rgba(38, 58, 113, 0.08);
  min-width: 0;
}

.finance-party-heading {
  min-width: 0;
}

.finance-party-heading h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  color: #17345d;
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.finance-party-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.finance-party-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 12px;
  min-width: 0;
}

.finance-party-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid #d9e2f7;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 24px rgba(38, 58, 113, 0.06);
  overflow-x: auto;
  scrollbar-width: thin;
}

.finance-party-tabs .subtab-link {
  border-radius: 14px;
  min-height: 46px;
  flex: 0 0 auto;
}

.finance-party-pane-shell {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.finance-party-pane-shell > [data-finance-party-pane],
.finance-party-pane-shell > [data-finance-supplier-pane] {
  min-width: 0;
}

[data-finance-party-pane][hidden] {
  display: none !important;
}

[data-finance-supplier-pane][hidden] {
  display: none !important;
}

.finance-party-ledger-sheet {
  padding: 22px;
  border: 1px solid #d8e2f7;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 32px rgba(37, 58, 114, 0.08);
  min-width: 0;
}

.finance-party-ledger-sheet-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5ecfa;
  min-width: 0;
}

.finance-party-ledger-sheet-head > :first-child {
  min-width: 0;
}

.finance-party-ledger-sheet-head h4 {
  margin: 4px 0 0;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  color: #17345d;
  line-height: 1.12;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.finance-party-ledger-headside {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 0;
}

.finance-party-ledger-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.finance-party-ledger-company {
  color: #17345d;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  max-width: min(100%, 460px);
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.finance-party-ledger-range {
  font-weight: 800;
  color: #274271;
  text-align: right;
  font-size: 1.05rem;
  line-height: 1.3;
  max-width: min(100%, 320px);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.finance-party-ledger-summary {
  display: grid;
  grid-template-columns: minmax(250px, 340px);
  gap: 10px;
  margin-bottom: 18px;
  min-width: 0;
}

.finance-statement-summary {
  border: 1px solid #d6def2;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 12px 24px rgba(39, 64, 126, 0.06);
}

.finance-statement-summary-title {
  padding: 12px 16px;
  background: linear-gradient(180deg, #c9d1e6 0%, #bcc6df 100%);
  color: #182e55;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finance-statement-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid #edf1fb;
}

.finance-statement-summary-row span {
  color: #233d6c;
  font-size: 1.02rem;
  font-weight: 700;
}

.finance-statement-summary-row strong {
  color: #152f58;
  font-size: 1.12rem;
  font-family: "Segoe UI Semibold", "Segoe UI", sans-serif;
}

.finance-party-ledger-table {
  max-height: none;
}

.finance-party-pane-shell .finance-summary-table-wrap table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.finance-party-ledger-table table thead th {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.finance-party-ledger-table table th,
.finance-party-ledger-table table td {
  white-space: normal;
}

.finance-party-ledger-table table tbody td {
  vertical-align: top;
  font-size: 0.98rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.finance-party-ledger-table table tbody td small {
  display: inline-block;
  margin-top: 6px;
  color: #6780a7;
  font-size: 0.86rem;
}

.finance-party-ledger-table table tbody tr:first-child {
  background: rgba(210, 218, 238, 0.7);
}

.finance-party-ledger-table table th:nth-child(1),
.finance-party-ledger-table table td:nth-child(1) {
  width: 12%;
  white-space: nowrap;
}

.finance-party-ledger-table table th:nth-child(2),
.finance-party-ledger-table table td:nth-child(2) {
  width: 18%;
}

.finance-party-ledger-table table th:nth-child(3),
.finance-party-ledger-table table td:nth-child(3) {
  width: 34%;
}

.finance-party-ledger-table table th:nth-child(4),
.finance-party-ledger-table table td:nth-child(4),
.finance-party-ledger-table table th:nth-child(5),
.finance-party-ledger-table table td:nth-child(5),
.finance-party-ledger-table table th:nth-child(6),
.finance-party-ledger-table table td:nth-child(6) {
  width: 12%;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.finance-party-ledger-table table th:nth-child(4),
.finance-party-ledger-table table th:nth-child(5),
.finance-party-ledger-table table th:nth-child(6) {
  text-align: right;
}

.finance-party-ledger-table table td:nth-child(2),
.finance-party-ledger-table table td:nth-child(3) {
  padding-right: 18px;
}

.finance-inline-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #173f96;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.finance-inline-link:hover {
  color: #0f2e73;
  text-decoration: underline;
}

.finance-summary-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 18px;
  border: 1px solid rgba(212, 223, 246, 0.96);
  background:
    radial-gradient(circle at top left, rgba(98, 128, 255, 0.12), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 20px rgba(39, 64, 126, 0.06);
}

.finance-summary-chip span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #687ca0;
  line-height: 1.25;
}

.finance-summary-chip strong {
  color: #203a67;
  font-size: 1.04rem;
  font-family: "Segoe UI Semibold", "Segoe UI", sans-serif;
  text-align: right;
  align-self: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.finance-balance-grid .table-wrap {
  max-height: none;
}

.finance-balance-sheet-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d8e2f7;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(91, 123, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 32px rgba(37, 58, 114, 0.08);
}

.finance-balance-sheet-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e4ebfa;
}

.finance-balance-sheet-head p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7da0;
}

.finance-balance-sheet-head strong {
  color: #183561;
  font-size: 1.25rem;
  font-family: "Segoe UI Semibold", "Segoe UI", sans-serif;
}

.finance-balance-sheet-wrap {
  max-height: none;
}

.finance-balance-sheet-wrap table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.finance-balance-sheet-wrap th:last-child,
.finance-balance-sheet-wrap td:last-child {
  text-align: right;
}

.finance-balance-row-title {
  color: #1e3a66;
  font-weight: 800;
}

.finance-balance-amount {
  color: #183561;
  font-weight: 800;
  font-family: "Segoe UI Semibold", "Segoe UI", sans-serif;
}

.finance-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.finance-chip strong {
  font-family: "Segoe UI Semibold", "Segoe UI", sans-serif;
}

.card {
  padding: 20px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.card-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.req-material-search {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.form-card {
  display: grid;
  gap: 12px;
}

.tally-entry-form {
  gap: 0;
  overflow: hidden;
  border: 1px solid #d8e3fb;
  background:
    radial-gradient(circle at top right, rgba(67, 97, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 22px 40px rgba(37, 56, 108, 0.09);
}

.tally-entry-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid #dbe5fb;
  background:
    radial-gradient(circle at top left, rgba(67, 97, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #eef3ff 0%, #f8fbff 45%, #ffffff 100%);
}

.tally-entry-kicker {
  margin: 0 0 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4c66c8;
}

.tally-entry-head h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #17305f;
}

.tally-entry-copy {
  margin: 10px 0 0;
  max-width: 760px;
  color: #64758c;
  line-height: 1.6;
}

.tally-entry-badge {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(83, 112, 240, 0.22);
  background: rgba(255, 255, 255, 0.88);
  color: #26458e;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tally-entry-form-shell {
  display: grid;
  gap: 18px;
  padding: 22px 24px 0;
}

.tally-entry-section {
  padding: 18px;
  border: 1px solid #dfe7fa;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.tally-entry-section-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.tally-entry-section-head h4 {
  margin: 0;
  font-size: 1.02rem;
  color: #1b3465;
}

.tally-entry-section-head p {
  margin: 0;
  color: #6a7890;
  line-height: 1.55;
}

.tally-entry-grid {
  display: grid;
  gap: 14px;
}

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

.tally-entry-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tally-entry-form label {
  padding: 12px 14px;
  border: 1px solid #dde7fb;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.tally-entry-form label input,
.tally-entry-form label select,
.tally-entry-form label textarea {
  margin-top: 2px;
  border: 1px solid #e3eafb;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
  box-shadow: none;
}

.tally-entry-form label input:focus,
.tally-entry-form label select:focus,
.tally-entry-form label textarea:focus {
  border-color: #94b3f8;
  box-shadow: 0 0 0 4px rgba(67, 97, 255, 0.1);
}

.tally-entry-field--full {
  grid-column: 1 / -1;
}

.tally-entry-note,
.tally-entry-inline-action {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px 16px;
  border: 1px solid #dce6fb;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(76, 102, 200, 0.12), transparent 34%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  color: #53657f;
}

.tally-entry-note strong,
.tally-entry-inline-action strong {
  color: #1c3769;
}

.tally-entry-builder {
  display: grid;
  gap: 12px;
}

.tally-entry-builder .table-wrap {
  border-color: #d8e4fb;
  background: #fff;
}

.tally-entry-actions-bar {
  justify-content: flex-end;
  padding: 20px 24px 24px;
  border-top: 1px solid #dbe5fb;
  background: linear-gradient(180deg, rgba(251, 252, 255, 0) 0%, rgba(247, 250, 255, 0.9) 100%);
}

.sales-voucher-shell {
  display: grid;
  gap: 18px;
  padding: 22px 24px 24px;
}

.sales-voucher-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 8px;
  border-bottom: 1px solid #dfe6f8;
}

.sales-voucher-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sales-voucher-close {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid #d8e3fb;
  background: #fff;
  color: #5b6f97;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.sales-voucher-kicker {
  margin: 0 0 4px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4b66ce;
}

.sales-voucher-topbar h3 {
  margin: 0;
  color: #122e60;
  font-size: 1.7rem;
}

.sales-voucher-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: min(760px, 100%);
  align-items: end;
}

.sales-voucher-meta-field {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid #dde7fb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  font-size: 0.84rem;
  font-weight: 700;
  color: #506486;
}

.sales-voucher-meta-field input {
  margin: 0;
  border: 1px solid #dbe4fb;
  background: #fff;
  box-shadow: none;
}

.sales-voucher-settings {
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid #d8e3fb;
  background: linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
  color: #24448b;
  font-weight: 800;
  cursor: pointer;
}

.sales-voucher-alert {
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(220, 67, 67, 0.2);
  background: linear-gradient(180deg, rgba(255, 239, 239, 0.96) 0%, rgba(255, 248, 248, 0.98) 100%);
  color: #c23f3f;
  font-weight: 600;
}

.sales-voucher-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.sales-voucher-main,
.sales-voucher-sidebar {
  display: grid;
  gap: 18px;
}

.sales-voucher-panel,
.sales-voucher-sidecard {
  padding: 18px 18px 20px;
  border-radius: 24px;
  border: 1px solid #d9e3fb;
  background:
    radial-gradient(circle at top right, rgba(77, 107, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 251, 255, 0.99) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 34px rgba(31, 51, 99, 0.08);
}

.sales-voucher-panel--selectors {
  padding-top: 20px;
}

.sales-voucher-section-head {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.sales-voucher-section-head h4,
.sales-voucher-sidecard-head h4 {
  margin: 0;
  color: #183664;
  font-size: 1.2rem;
}

.sales-voucher-section-head p,
.sales-voucher-sidecard-head p {
  margin: 0;
  color: #6b7d96;
  line-height: 1.55;
}

.sales-voucher-sidecard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sales-voucher-sidecard-head strong {
  color: #112d60;
  font-size: 1.55rem;
}

.sales-voucher-panel-grid {
  display: grid;
  gap: 14px;
}

.sales-voucher-panel-grid--five {
  grid-template-columns: 2fr 1.4fr repeat(3, minmax(0, 1fr));
}

.sales-voucher-panel-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sales-voucher-panel-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sales-voucher-field {
  display: grid;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #4f6285;
}

.sales-voucher-field--full {
  grid-column: 1 / -1;
}

.sales-voucher-field input,
.sales-voucher-field select,
.sales-voucher-field textarea {
  margin: 0;
  border: 1px solid #dbe4fb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.sales-voucher-field input:focus,
.sales-voucher-field select:focus,
.sales-voucher-field textarea:focus {
  border-color: #90b0fa;
  box-shadow: 0 0 0 4px rgba(67, 97, 255, 0.1);
}

.sales-voucher-switch-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #dbe4fb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  font-size: 0.84rem;
  font-weight: 700;
  color: #4f6285;
}

.sales-voucher-switch-field input,
.sales-voucher-toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: #4361ff;
}

.sales-voucher-builder {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.sales-voucher-builder-fields {
  display: grid;
  gap: 14px;
}

.sales-voucher-preview {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid #dbe4fb;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 255, 0.98) 100%);
}

.sales-voucher-preview--compact {
  align-self: stretch;
}

.sales-voucher-preview-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e6ebf8;
  color: #587091;
}

.sales-voucher-preview-row strong {
  color: #173360;
}

.sales-voucher-preview-row--total {
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 1.05rem;
}

.sales-voucher-builder-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.sales-voucher-line-list {
  display: grid;
  gap: 12px;
  min-height: 160px;
}

.sales-voucher-empty {
  display: grid;
  place-items: center;
  min-height: 140px;
  border-radius: 18px;
  border: 1px dashed #ccd8f6;
  background: rgba(248, 251, 255, 0.82);
  color: #7a8dab;
  font-style: italic;
}

.sales-voucher-line-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #dbe4fb;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.sales-voucher-line-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sales-voucher-line-title {
  display: grid;
  gap: 4px;
}

.sales-voucher-line-title strong {
  color: #14325f;
}

.sales-voucher-line-title span,
.sales-voucher-line-meta {
  color: #71839d;
  font-size: 0.84rem;
  line-height: 1.5;
}

.sales-voucher-line-amount {
  color: #16376c;
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.sales-voucher-line-remove {
  padding: 7px 12px;
  border-radius: 12px;
  border: 1px solid rgba(203, 63, 63, 0.18);
  background: rgba(255, 241, 241, 0.92);
  color: #bf4040;
  font-weight: 700;
  cursor: pointer;
}

.sales-voucher-customer-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #dbe4fb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.sales-voucher-customer-card strong {
  color: #15315d;
  font-size: 1rem;
}

.sales-voucher-customer-card span,
.sales-voucher-customer-card p {
  margin: 0;
  color: #6b7d96;
  line-height: 1.55;
}

.sales-voucher-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #dbe4fb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #1f3a69;
  font-weight: 700;
}

.sales-voucher-side-note {
  margin-top: 12px;
  color: #6f8099;
  line-height: 1.55;
  font-size: 0.88rem;
}

.sales-voucher-actions {
  padding: 0;
  border: 0;
  background: none;
}

.sales-voucher-info-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.sales-voucher-info-tab {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid #d6e2fb;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  color: #24498d;
  font-weight: 700;
  cursor: pointer;
}

.sales-voucher-info-tab.active {
  border-color: #3f62ff;
  background: linear-gradient(135deg, #4465ff 0%, #5c79ff 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(68, 101, 255, 0.22);
}

.sales-voucher-info-pane {
  display: none;
}

.sales-voucher-info-pane.active {
  display: block;
}

.sales-voucher-split-block {
  display: grid;
  gap: 18px;
}

.sales-voucher-subsection {
  display: grid;
  gap: 14px;
  padding-top: 6px;
}

.sales-voucher-subsection h5 {
  margin: 0;
  color: #173664;
  font-size: 1rem;
}

.entry-sheet {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #d9e3fb;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(79, 111, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.entry-sheet-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid #dfe6f8;
}

.entry-sheet-head h3 {
  margin: 0;
  color: #17305f;
  font-size: 1.55rem;
}

.entry-sheet-kicker {
  margin: 0 0 4px;
  color: #4d67cd;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.entry-sheet-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.entry-sheet-icon {
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid #d8e3fb;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
  color: #5d6f98;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.entry-sheet-body {
  display: grid;
  gap: 18px;
  padding: 20px 22px;
}

.entry-sheet-section {
  display: grid;
  gap: 14px;
}

.entry-sheet-section h4 {
  margin: 0;
  color: #173664;
  font-size: 1.05rem;
}

.entry-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.entry-sheet-field {
  display: grid;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #536585;
}

.entry-sheet-field--full,
.entry-sheet-row--full {
  grid-column: 1 / -1;
}

.entry-sheet-field input,
.entry-sheet-field select,
.entry-sheet-field textarea,
.entry-sheet-row input,
.entry-sheet-row select,
.entry-sheet-row textarea {
  margin: 0;
  border: 1px solid #dbe4fb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.entry-sheet-field input:focus,
.entry-sheet-field select:focus,
.entry-sheet-field textarea:focus,
.entry-sheet-row input:focus,
.entry-sheet-row select:focus,
.entry-sheet-row textarea:focus {
  border-color: #90b0fa;
  box-shadow: 0 0 0 4px rgba(67, 97, 255, 0.1);
}

.entry-sheet-rows {
  display: grid;
  gap: 14px;
}

.entry-sheet-row {
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  font-size: 0.98rem;
  color: #3f5275;
}

.entry-sheet-row span {
  font-weight: 600;
}

.entry-sheet-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  padding: 0 22px 22px;
}

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

.form-card button[type="submit"],
.entry-sheet-actions button[type="submit"],
.form-actions button[type="submit"] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  padding: 12px 22px;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 54%, #0ea5e9 100%);
  box-shadow:
    0 14px 28px rgba(37, 99, 235, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-weight: 850;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.form-card button[type="submit"]::after,
.entry-sheet-actions button[type="submit"]::after,
.form-actions button[type="submit"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 18%, rgba(255, 255, 255, 0.22) 46%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 420ms ease;
}

.form-card button[type="submit"]:hover,
.entry-sheet-actions button[type="submit"]:hover,
.form-actions button[type="submit"]:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow:
    0 18px 34px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.form-card button[type="submit"]:hover::after,
.entry-sheet-actions button[type="submit"]:hover::after,
.form-actions button[type="submit"]:hover::after {
  transform: translateX(120%);
}

.form-card button[type="submit"]:active,
.entry-sheet-actions button[type="submit"]:active,
.form-actions button[type="submit"]:active {
  transform: translateY(0);
}

.form-card button[type="submit"]:disabled,
.entry-sheet-actions button[type="submit"]:disabled,
.form-actions button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.72;
  filter: grayscale(0.12);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.checkbox-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  color: var(--text);
  font-weight: 800;
}

.checkbox-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.priority-settings-card {
  border-color: rgba(37, 99, 235, 0.28);
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.12);
}

.priority-settings-card.warning-card {
  border-color: rgba(245, 158, 11, 0.38);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.98));
}

.compact-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.compact-metrics .metric-card {
  padding: 12px 14px;
}

.compact-metrics .metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-metrics .metric-card strong {
  margin-top: 6px;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.anchor-target {
  display: block;
  scroll-margin-top: 22px;
}

.pulse-highlight {
  animation: pulseHighlight 1.6s ease 1;
}

@keyframes pulseHighlight {
  0%,
  100% {
    color: var(--muted);
  }
  35% {
    color: var(--accent-deep);
    text-shadow: 0 0 18px rgba(37, 99, 235, 0.28);
  }
}

.permissions-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
}

.bulk-import-card code,
.access-note code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(37, 99, 235, 0.14);
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.action-permissions-grid {
  display: grid;
  gap: 10px;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-weight: 600;
}

.permission-item input {
  width: 16px;
  height: 16px;
}

.action-permission-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.action-permission-item strong {
  color: var(--text);
}

.action-permission-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.action-permission-check input {
  width: 16px;
  height: 16px;
}

.access-note {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #cdddfc;
  background: var(--accent-soft);
  color: #22406f;
  line-height: 1.55;
  word-break: break-word;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: #334155;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 11px 13px;
  background: #fff;
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #9aa7b9;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11);
  background: #fff;
}

.table-scroll-shell {
  position: relative;
  min-width: 0;
}

.table-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: auto;
  max-height: clamp(260px, 42vh, 520px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  scrollbar-gutter: stable both-edges;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.table-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(167, 184, 210, 0.95);
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent-deep);
  box-shadow: 0 10px 24px rgba(27, 40, 82, 0.14);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, background 140ms ease, color 140ms ease;
}

.table-scroll-shell.is-scrollable .table-scroll-btn {
  opacity: 1;
  pointer-events: auto;
}

.table-scroll-btn:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
}

.table-scroll-btn-left {
  left: 10px;
}

.table-scroll-btn-right {
  right: 10px;
}

.table-scroll-btn:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.82);
  color: #8aa0c5;
}

.table-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.table-toolbar-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.table-toolbar-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7c9f;
}

.table-toolbar-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.table-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-toolbar-meta {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.finance-table-toolbar {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid #dce4f7;
  background:
    radial-gradient(circle at top left, rgba(94, 123, 255, 0.12), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #f1f6ff 50%, #ffffff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 28px rgba(41, 63, 122, 0.08);
}

.finance-table-toolbar .table-toolbar-main {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.finance-table-toolbar .table-toolbar-actions {
  margin-top: 2px;
}

.finance-table-toolbar .table-toolbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5a6e95;
}

.finance-table-toolbar .table-toolbar-meta::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4e7bff 0%, #2f5ff2 100%);
  box-shadow: 0 0 0 4px rgba(78, 123, 255, 0.12);
}

.table-search-input,
.table-filter-select,
.kg-factor-input {
  width: 100%;
}

.finance-table-toolbar .table-search-input,
.finance-table-toolbar .table-filter-select {
  min-height: 44px;
  border-radius: 14px;
  border-color: #d3ddf4;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.table-select-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.table-select-content {
  min-width: 0;
}

.row-select-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 2px;
}

.row-select-toggle input {
  width: 15px;
  height: 15px;
}

table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 520px;
}

thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
  box-shadow: inset 0 -1px 0 var(--line);
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  vertical-align: top;
  white-space: nowrap;
}

th {
  color: #475569;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tbody tr:hover {
  background: #f8fbff;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
}

.table-pagination-meta {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.table-pagination-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-page-btn {
  min-width: 38px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.table-page-btn:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: #cdddfc;
  color: var(--accent-deep);
}

.table-page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.table-page-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.table-page-ellipsis {
  color: var(--muted);
  font-weight: 700;
  padding: 0 2px;
}

.list-block {
  display: grid;
  gap: 10px;
}

.finance-aging-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.finance-aging-card {
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.finance-aging-card strong,
.finance-sync-stat strong {
  display: block;
  font-size: 1.35rem;
  font-family: "Segoe UI Semibold", "Segoe UI", sans-serif;
}

.finance-aging-card p,
.finance-sync-stat p,
.finance-sync-copy p {
  margin: 6px 0 0;
  color: var(--muted);
}

.finance-sync-shell {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(220px, 1fr);
  gap: 16px;
}

.finance-sync-copy {
  display: grid;
  gap: 8px;
}

.finance-sync-copy .card-top {
  margin-bottom: 0;
}

.finance-sync-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.finance-sync-stat {
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.finance-summary-table-wrap {
  max-height: none;
  border-color: #d9e2f4;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 14px 28px rgba(40, 63, 122, 0.05);
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}

.finance-summary-table-wrap table thead th {
  background: linear-gradient(180deg, #f4f7ff 0%, #eef3ff 100%);
  color: #294270;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.73rem;
}

.finance-summary-table-wrap table tbody tr:hover {
  background: rgba(89, 122, 255, 0.05);
}

.finance-summary-table-wrap table tbody td small {
  color: #687d9f;
}

.finance-company-switch select {
  min-width: 220px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  border-color: #d4def3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

#financeFinancialMetrics .metric-card strong,
#financeDebtorMetrics .metric-card strong,
#financePayablesMetrics .metric-card strong,
#financeItemMetrics .metric-card strong,
#financeMirrorMetrics .metric-card strong,
#financePurchaseMetrics .metric-card strong,
#financeStockMetrics .metric-card strong {
  letter-spacing: -0.03em;
}

#financeDebtorMetrics .metric-card:nth-child(1) strong,
#financeDebtorMetrics .metric-card:nth-child(2) strong {
  color: #182e68;
}

#financeDebtorMetrics .metric-card:nth-child(3) strong {
  color: #14a36c;
}

#financeDebtorMetrics .metric-card:nth-child(4) strong {
  color: #d45f5a;
}

.dashboard-search-card {
  margin-top: 18px;
  margin-bottom: 18px;
}

.dashboard-scroll-list {
  max-height: clamp(220px, 34vh, 420px);
  overflow: auto;
  padding-right: 4px;
}

.list-item {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.list-item strong {
  color: #223041;
}

.list-item p {
  margin: 4px 0 0;
  color: var(--muted);
}

.converter-result {
  align-self: start;
}

.inline-converter,
.req-format-builder,
.requirement-builder {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.helper-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.req-format-table,
.compact-table {
  min-width: 620px;
}

.purchase-lines-wrap {
  max-width: 100%;
  max-height: none;
}

.purchase-lines-table {
  min-width: 1280px;
  table-layout: fixed;
}

.purchase-lines-table th,
.purchase-lines-table td {
  white-space: normal;
  vertical-align: middle;
}

.purchase-lines-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.purchase-lines-table th:first-child,
.purchase-lines-table td:first-child {
  min-width: 160px;
}

.purchase-lines-table th:nth-child(2),
.purchase-lines-table td:nth-child(2) {
  min-width: 160px;
}

.purchase-lines-table th:nth-child(10),
.purchase-lines-table td:nth-child(10) {
  min-width: 120px;
}

.purchase-lines-table th:nth-child(11),
.purchase-lines-table td:nth-child(11),
.purchase-lines-table th:nth-child(12),
.purchase-lines-table td:nth-child(12),
.purchase-lines-table th:nth-child(13),
.purchase-lines-table td:nth-child(13) {
  min-width: 96px;
}

.purchase-lines-table th:nth-child(14),
.purchase-lines-table td:nth-child(14) {
  min-width: 180px;
}

.purchase-lines-table th:nth-child(15),
.purchase-lines-table td:nth-child(15) {
  min-width: 88px;
}

.purchase-lines-table input,
.purchase-lines-table select {
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  font-size: 0.84rem;
}

.purchase-lines-table [data-purchase-total],
.purchase-lines-table [data-purchase-stock-qty],
.purchase-lines-table [data-purchase-kg-qty],
.purchase-lines-table [data-purchase-unit] {
  text-align: right;
}

.req-format-table .req-conversion-cell,
.req-format-table .req-stock-cell,
.req-format-table .req-order-cell {
  min-width: 150px;
}

.req-conversion-cell strong,
.req-stock-cell strong,
.req-order-cell strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

.req-conversion-cell span,
.req-stock-cell span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  white-space: normal;
  line-height: 1.4;
}

.req-format-table th:last-child,
.req-format-table td:last-child {
  width: 88px;
  text-align: center;
}

.req-format-table select,
.req-format-table input[type="number"],
.req-format-table input[type="text"],
.compact-table input,
.compact-table select {
  min-width: 0;
  width: 100%;
  padding: 8px 10px;
}

.req-format-table input[readonly] {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
}

.compact-table .sr-cell {
  font-weight: 700;
  text-align: center;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.status-ok {
  background: rgba(15, 159, 110, 0.1);
  color: var(--ok);
  border-color: rgba(15, 159, 110, 0.16);
}

.status-warn {
  background: rgba(198, 122, 18, 0.12);
  color: var(--warn);
  border-color: rgba(198, 122, 18, 0.16);
}

.status-danger {
  background: rgba(209, 59, 59, 0.1);
  color: var(--danger);
  border-color: rgba(209, 59, 59, 0.14);
}

.empty-state {
  color: var(--muted);
  font-style: italic;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #172233;
  color: #fff;
  border-radius: 12px;
  padding: 12px 15px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
  z-index: 50;
}

.workspace-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 43%, rgba(94, 234, 212, 0.14), transparent 18%),
    radial-gradient(circle at 50% 43%, rgba(255, 255, 255, 0.08), transparent 24%),
    #02051f;
  color: #f8fbff;
}

.workspace-loading-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  transform: translateY(-10px);
}

.workspace-loading-ring {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  position: relative;
  background:
    conic-gradient(from 24deg, #5ef0c5 0deg 72deg, rgba(255, 255, 255, 0.08) 72deg 360deg);
  box-shadow:
    0 0 34px rgba(94, 240, 197, 0.2),
    inset 0 0 28px rgba(255, 255, 255, 0.06);
  animation: workspaceLoaderSpin 1s linear infinite;
}

.workspace-loading-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #171c3f;
}

.workspace-loading-ring::after {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  background: #02051f;
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.04);
}

.workspace-loading-title {
  margin: 0;
  color: rgba(248, 251, 255, 0.72);
  font-size: 0.96rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.workspace-loading-subtitle {
  margin: -6px 0 0;
  max-width: min(360px, calc(100vw - 48px));
  color: rgba(248, 251, 255, 0.56);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
}

@keyframes workspaceLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

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

.platform-console {
  display: grid;
  gap: 22px;
}

.platform-console-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), transparent 24%),
    radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.18), transparent 26%),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 56%, #0f4c81 100%);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.2);
  color: #fff;
}

.platform-console-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 26%),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 110px);
  pointer-events: none;
}

.platform-console-hero-copy,
.platform-console-actions {
  position: relative;
  z-index: 1;
}

.platform-console-hero-copy {
  display: grid;
  gap: 14px;
}

.platform-console-hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.platform-console-hero h3 {
  margin: 0;
  font-size: clamp(1.65rem, 2vw, 2.2rem);
  letter-spacing: -0.03em;
  color: #fff;
}

.platform-console-hero .hero-copy {
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.platform-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-hero-pills span {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  backdrop-filter: blur(12px);
}

.platform-console-actions {
  display: grid;
  gap: 18px;
  align-content: space-between;
  justify-items: end;
}

.platform-console-actions-note {
  display: grid;
  gap: 6px;
  max-width: 290px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.platform-console-actions-note strong {
  color: #fff;
  font-size: 0.95rem;
}

.platform-console-actions-note span {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.platform-console-actions .secondary-btn {
  border-color: rgba(255, 255, 255, 0.18);
  background: #fff;
  color: #0f172a;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.platform-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.platform-summary-card {
  position: relative;
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(203, 213, 225, 0.92);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
}

.platform-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2563eb 0%, #0f172a 100%);
}

.platform-summary-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.platform-summary-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.platform-summary-card--estate .platform-summary-accent {
  background: #dbeafe;
  color: #1d4ed8;
}

.platform-summary-card--healthy .platform-summary-accent {
  background: #dcfce7;
  color: #15803d;
}

.platform-summary-card--attention .platform-summary-accent {
  background: #fef3c7;
  color: #b45309;
}

.platform-summary-card--revenue .platform-summary-accent {
  background: #e0e7ff;
  color: #4338ca;
}

.platform-summary-card p {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.platform-summary-card strong {
  font-size: 1.85rem;
  line-height: 1.1;
  color: #0f172a;
}

.platform-summary-card span {
  color: #475569;
  font-size: 0.92rem;
}

.platform-console-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: start;
  gap: 22px;
}

.platform-console-side {
  display: grid;
  gap: 22px;
  align-items: start;
}

.platform-list-card,
.platform-editor-card {
  border-radius: 28px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.08);
}

.platform-list-shell {
  display: grid;
  gap: 18px;
}

.platform-list-head {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
}

.platform-demo-grid {
  align-items: start;
}

.platform-demo-form,
.platform-demo-result-card {
  gap: 16px;
}

.platform-demo-field-grid {
  gap: 14px;
}

.platform-demo-result-empty {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  color: #475569;
}

.platform-demo-result-shell {
  display: grid;
  gap: 16px;
}

.platform-demo-result-header {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(59, 130, 246, 0.16);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(135deg, #eff6ff 0%, #ffffff 62%, #f8fafc 100%);
}

.platform-demo-result-header strong {
  font-size: 1.15rem;
  color: #0f172a;
}

.platform-demo-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-demo-result-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: #1e293b;
  font-size: 0.85rem;
}

.platform-demo-credentials-grid,
.platform-demo-count-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.platform-demo-credential-card,
.platform-demo-count-card {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.platform-demo-credential-card p,
.platform-demo-count-card p {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.platform-demo-credential-card strong,
.platform-demo-count-card strong {
  font-size: 1rem;
  color: #0f172a;
}

.platform-demo-credential-card code {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 8px;
  background: #eef2ff;
  color: #1d4ed8;
  font-size: 0.88rem;
}

.platform-demo-credential-card span,
.platform-demo-count-card span {
  color: #475569;
  font-size: 0.9rem;
}

.platform-demo-preview-note {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
}

.platform-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.8fr);
  gap: 14px;
}

.platform-filter-row label {
  display: grid;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.platform-list-card .table-wrap {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
}

.platform-list-card table {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
}

.platform-list-card thead th {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.94);
  background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.platform-list-card tbody td {
  padding: 16px;
  vertical-align: top;
  border-bottom: 1px solid rgba(241, 245, 249, 0.96);
  transition: background 160ms ease, border-color 160ms ease;
}

.platform-list-card tbody tr:last-child td {
  border-bottom: none;
}

.platform-list-card tbody tr:hover td {
  background: rgba(248, 250, 252, 0.92);
}

.platform-form {
  position: sticky;
  top: 18px;
}

.platform-editor-card {
  gap: 18px;
}

.platform-editor-card .card-top {
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.92);
}

.platform-editor-card label {
  display: grid;
  gap: 8px;
}

.platform-tenant-meta {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(191, 219, 254, 0.74);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  color: #334155;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.platform-tenant-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.platform-tenant-meta-grid div {
  display: grid;
  gap: 4px;
}

.platform-tenant-meta-grid strong {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.platform-tenant-meta-grid span {
  font-size: 0.94rem;
  color: #0f172a;
  line-height: 1.45;
}

.platform-date-grid {
  gap: 14px;
}

.platform-plan-preview {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(186, 230, 253, 0.7);
  background: linear-gradient(135deg, rgba(239, 249, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 62%, rgba(255, 247, 237, 0.86) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.platform-access-tab-grid,
.platform-access-permission-grid {
  display: grid;
  gap: 12px;
}

.platform-access-tab-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.platform-access-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.platform-access-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.platform-access-item:has(input:checked) {
  border-color: rgba(37, 99, 235, 0.38);
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.12);
}

.platform-access-item input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: #2563eb;
}

.platform-access-item small {
  color: #64748b;
}

.platform-access-permission-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(90px, auto));
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.96);
  transition: box-shadow 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.platform-access-permission-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.platform-access-permission-row:has(input:checked) {
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.1);
}

.platform-access-permission-row strong {
  color: #0f172a;
  font-size: 0.97rem;
}

.platform-access-permission-row small {
  display: block;
  margin-top: 3px;
  color: #64748b;
}

.platform-access-permission-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: #f8fafc;
  font-weight: 600;
  color: #334155;
}

.platform-access-permission-row label:has(input:checked) {
  border-color: rgba(37, 99, 235, 0.28);
  background: #dbeafe;
  color: #1d4ed8;
}

.platform-access-permission-row input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.platform-access-permission-row.is-disabled {
  opacity: 0.58;
  filter: saturate(0.68);
}

.platform-danger-note {
  border-color: rgba(209, 59, 59, 0.18);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: #991b1b;
}

.platform-row-active td {
  background: linear-gradient(180deg, rgba(219, 234, 254, 0.62) 0%, rgba(239, 246, 255, 0.94) 100%);
}

.platform-tenant-cell,
.platform-plan-cell,
.platform-status-cell,
.platform-usage-cell,
.platform-renewal-cell {
  display: grid;
  gap: 6px;
}

.platform-tenant-cell {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 14px;
}

.platform-tenant-monogram {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1d4ed8 0%, #0f172a 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.18);
}

.platform-tenant-copy {
  display: grid;
  gap: 4px;
}

.platform-tenant-copy strong,
.platform-plan-cell strong,
.platform-usage-cell strong,
.platform-renewal-cell strong {
  color: #0f172a;
}

.platform-tenant-copy small,
.platform-status-cell small {
  color: #64748b;
}

.platform-tenant-copy span,
.platform-usage-cell span,
.platform-renewal-cell span {
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.45;
}

.platform-inline-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.platform-manage-btn {
  min-width: 94px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  color: #fff;
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.18);
}

.platform-manage-btn:hover {
  transform: translateY(-1px);
}

#platformSubscriptionMessage,
#platformAccessMessage {
  border-radius: 16px;
  border: 1px solid rgba(191, 219, 254, 0.78);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: #1e3a8a;
}

.empty-state-cell {
  padding: 18px 12px;
  text-align: center;
  color: #64748b;
}

@media (max-width: 1260px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .dashboard-role-card {
    grid-column: 1 / -1;
  }

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

@media (max-width: 1150px) {
  .auth-launch-grid {
    grid-template-columns: 1fr;
  }

  .signup-studio {
    grid-template-columns: 1fr;
  }

  .launch-value-grid {
    grid-template-columns: 1fr;
  }

  .platform-demo-field-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--sidebar-line);
    box-shadow: none;
  }

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

  .metric-grid,
  .two-column,
  .three-column {
    grid-template-columns: 1fr;
  }

  .table-toolbar-main {
    grid-template-columns: 1fr;
  }

  .finance-table-toolbar .table-toolbar-main {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    margin: 0 -24px;
    padding: 16px 24px;
  }
}

@media (max-width: 920px) {
  .dashboard-executive-header,
  .dashboard-role-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-executive-header {
    min-height: 0;
    padding: 26px;
  }

  .dashboard-executive-pulse {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-kpi-grid,
  .dashboard-live-grid,
  .dashboard-module-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-role-intro {
    min-height: 300px;
  }

  .dashboard-section-heading,
  .dashboard-overview-card > .card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .onboarding-card {
    padding: 20px;
  }

  .content {
    padding: 0 14px 18px;
  }

  .finance-modules-head {
    align-items: stretch;
  }

  .finance-entry-actions {
    margin-left: 0;
  }

  .finance-company-switch {
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .finance-company-switch select {
    min-width: 0;
  }

  .subtab-shell {
    padding: 14px;
    margin-top: 14px;
  }

  .hero {
    margin: 0 -14px;
    padding: 14px;
    gap: 14px;
  }

  .card {
    padding: 14px;
  }

  th,
  td {
    padding: 10px 8px;
    font-size: 0.86rem;
  }

  th {
    font-size: 0.74rem;
  }

  .table-wrap {
    max-height: clamp(240px, 46vh, 500px);
  }

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

  .finance-sync-shell,
  .finance-sync-stats {
    grid-template-columns: 1fr;
  }

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

  .platform-console-hero,
  .platform-filter-row,
  .platform-tenant-meta-grid {
    grid-template-columns: 1fr;
  }

  .platform-console-grid {
    grid-template-columns: 1fr;
  }

  .platform-console-actions {
    justify-items: start;
  }

  .platform-console-actions-note {
    max-width: none;
  }

  .platform-access-permission-row {
    grid-template-columns: 1fr;
  }

  .platform-access-permission-row label {
    justify-self: start;
  }

  .tally-entry-head {
    flex-direction: column;
    align-items: flex-start;
  }

   .sales-voucher-meta-grid,
   .sales-voucher-layout,
   .sales-voucher-builder,
   .sales-voucher-panel-grid--five,
   .sales-voucher-panel-grid--four,
   .sales-voucher-panel-grid--three,
   .entry-sheet-grid,
   .entry-sheet-row {
    grid-template-columns: 1fr;
  }

  .sales-voucher-topbar,
  .entry-sheet-head,
  .entry-sheet-head-actions {
    align-items: flex-start;
  }

  .tally-entry-grid--two,
  .tally-entry-grid--three {
    grid-template-columns: 1fr;
  }

  .purchase-lines-table {
    min-width: 1180px;
  }
}

@media (max-width: 900px) {
  .auth-card,
  .auth-shell[data-auth-panel-state="signup"] .auth-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-logo-wrap {
    grid-column: 1;
    grid-row: auto;
    min-height: auto;
    padding: 30px 26px;
    justify-items: center;
    text-align: center;
  }

  .auth-logo-wrap::before {
    inset: 12px;
    border-radius: 24px;
  }

  .auth-brand-copy {
    max-width: 100%;
    justify-items: center;
  }

  .auth-brand-pills {
    justify-content: center;
  }

  .auth-switcher,
  .auth-card > section {
    grid-column: 1;
  }

  .auth-switcher {
    margin: 24px auto 20px;
  }

  .auth-card > section {
    padding: 0 24px 30px;
  }
}

@media (max-width: 720px) {
  .dashboard-executive-header {
    padding: 22px 19px;
    border-radius: 23px;
  }

  .dashboard-executive-copy h2 {
    font-size: 2.15rem;
  }

  .dashboard-executive-pulse {
    grid-template-columns: 1fr;
  }

  .dashboard-executive-actions,
  .dashboard-command-primary,
  .dashboard-command-secondary {
    width: 100%;
  }

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

  .dashboard-kpi-card {
    min-height: 96px;
  }

  .executive-dashboard .dashboard-role-card,
  .executive-dashboard .dashboard-snapshot-card {
    padding: 0;
  }

  .dashboard-role-intro,
  .dashboard-role-queue-shell {
    padding: 20px;
  }

  .dashboard-role-intro {
    min-height: 0;
  }

  .dashboard-queue-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .dashboard-queue-status {
    display: none;
  }

  .dashboard-section-heading {
    margin-top: 24px;
  }

  .dashboard-section-note {
    line-height: 1.45;
  }

  .executive-dashboard .dashboard-overview-card {
    padding: 17px;
    border-radius: 22px;
  }

  .dashboard-workspace-card {
    min-height: 340px;
  }

  .dashboard-snapshot-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dashboard-row-value {
    grid-column: 2;
    justify-items: start;
  }

  .launch-action-row,
  .signup-mode-grid {
    flex-direction: column;
  }

  .module-launcher-head {
    flex-direction: column;
  }

  .module-launcher-head h1 {
    font-size: clamp(1.95rem, 11vw, 2.8rem);
  }

  .module-launcher-card {
    padding: 20px 16px;
    border-radius: 24px;
  }

  .module-launch-grid {
    grid-template-columns: 1fr;
  }

  .module-launch-card {
    min-height: 176px;
  }

  .module-launch-card h2,
  .module-launch-card p {
    max-width: 92%;
  }

  .signup-form-grid,
  .signup-mode-grid--cards,
  .signup-preview-grid {
    grid-template-columns: 1fr;
  }

  .signup-plan-shell-head {
    align-items: flex-start;
  }

  .launch-plan-grid,
  .launch-plan-grid.compact,
  .launch-download-grid {
    grid-template-columns: 1fr;
  }

  .platform-summary-grid {
    grid-template-columns: 1fr;
  }

  .section-briefing-head {
    flex-direction: column;
  }

  .section-briefing-nav {
    flex-direction: column;
  }

  .section-briefing-link {
    width: 100%;
    justify-content: flex-start;
  }

  .platform-tenant-cell {
    grid-template-columns: 1fr;
  }

  .permissions-grid {
    grid-template-columns: 1fr;
  }

  .action-permission-item {
    grid-template-columns: 1fr;
  }

  .content,
  .auth-shell {
    padding: 16px;
  }

  .content {
    padding-top: 0;
  }

  .subtab-shell,
  .card {
    padding: 12px;
  }

  .auth-topbar {
    top: 18px;
    padding: 0 18px;
  }

  .auth-topbar-brand {
    font-size: 1.08rem;
  }

  .auth-card,
  .hero,
  .card,
  .metric-card,
  .brand,
  .sidebar-card {
    border-radius: 16px;
  }

  .auth-card {
    padding: 0;
  }

  .nav {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-icon-btn,
  .hero-status-chip {
    width: 100%;
    justify-content: center;
  }

  .table-scroll-btn {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .finance-aging-grid,
  .finance-sync-shell,
  .finance-sync-stats,
  .finance-module-metric-grid {
    grid-template-columns: 1fr;
  }

  .finance-summary-chip {
    min-width: 100%;
  }

  .finance-party-desk {
    grid-template-columns: 1fr;
  }

  .finance-party-sidebar {
    position: static;
  }

  .finance-party-ledger-summary,
  .finance-party-hero-grid {
    grid-template-columns: 1fr;
  }

  .finance-party-ledger-sheet-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .finance-party-ledger-headside {
    justify-items: start;
  }

  .finance-party-ledger-company,
  .finance-party-ledger-range {
    max-width: 100%;
    text-align: left;
  }

  .finance-party-tabs {
    gap: 8px;
  }

  .finance-statement-summary-row {
    grid-template-columns: 1fr;
  }

  .tally-entry-head,
  .tally-entry-form-shell,
  .tally-entry-actions-bar {
    padding-left: 14px;
    padding-right: 14px;
  }

  table {
    min-width: 460px;
  }

  .purchase-lines-table {
    min-width: 1040px;
  }
}

/* Agnova AI SaaS visual refresh */
:root {
  --module-accent: #2563eb;
  --module-accent-2: #0ea5e9;
  --module-soft: #eff6ff;
  --ai-ink: #071327;
  --ai-muted: #64748b;
  --ai-line: #dbe6f4;
  --ai-page: #edf6ff;
  --ai-rail: #071527;
}

body[data-module-scope] {
  background:
    radial-gradient(circle at 8% 8%, color-mix(in srgb, var(--module-accent) 14%, transparent), transparent 28%),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--module-accent-2) 12%, transparent), transparent 30%),
    linear-gradient(135deg, #eaf6ff 0%, #f8fbff 42%, #eef5ff 100%);
}

.auth-shell[data-auth-panel-state="launcher"] {
  align-items: center;
  justify-items: center;
  min-height: 100vh;
  height: 100vh;
  padding: clamp(8px, 1.8vh, 18px) clamp(14px, 2.4vw, 34px);
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(14, 165, 233, 0.2), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(20, 184, 166, 0.18), transparent 26%),
    linear-gradient(135deg, #071527 0%, #0c2a52 52%, #081426 100%);
}

.module-launcher-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(1240px, calc(100vw - 44px));
  height: calc(100vh - clamp(16px, 3.6vh, 36px));
  max-height: calc(100vh - clamp(16px, 3.6vh, 36px));
  overflow: hidden;
  padding: clamp(13px, 1.45vw, 19px);
  border: 1px solid rgba(219, 232, 255, 0.76);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96));
  box-shadow:
    0 44px 120px rgba(2, 8, 34, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.module-launcher-card::before {
  height: 5px;
  background: linear-gradient(90deg, #2563eb, #14b8a6, #f97316);
}

.module-launcher-head {
  align-items: center;
  margin-bottom: 8px;
}

.module-launcher-head h1 {
  font-family: "Segoe UI", "Aptos", sans-serif;
  font-size: clamp(1.85rem, 3.4vw, 3.35rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.module-launcher-subtitle {
  display: none;
}

.module-launch-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 0.72fr)) minmax(260px, 1.35fr);
  gap: 9px;
  margin-bottom: 10px;
}

.module-launch-stat,
.module-launch-assistant {
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid rgba(214, 228, 247, 0.9);
  border-radius: 22px;
  background:
    radial-gradient(circle at 95% 0%, rgba(14, 165, 233, 0.12), transparent 35%),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
}

.module-launch-stat span,
.module-launch-assistant span {
  display: block;
  color: #5d6f89;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.module-launch-stat strong {
  display: block;
  margin-top: 4px;
  color: #1456d9;
  font-size: clamp(1.05rem, 1.55vw, 1.45rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.module-launch-assistant {
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.13), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 255, 0.82));
}

.module-launch-assistant strong {
  display: block;
  margin-top: 5px;
  color: #071327;
  font-size: 0.84rem;
  line-height: 1.24;
}

.module-launch-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

.module-launch-card {
  height: auto;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, auto) auto auto;
  gap: 4px;
  padding: clamp(10px, 1vw, 14px);
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 70%, color-mix(in srgb, var(--module-accent) 14%, transparent), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.86));
  border-color: color-mix(in srgb, var(--module-accent) 17%, #d7e3f2);
  box-shadow:
    0 20px 50px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.module-launch-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 34px 80px rgba(8, 20, 48, 0.18),
    0 0 0 1px color-mix(in srgb, var(--module-accent) 18%, transparent);
}

.module-launch-card::after {
  width: 70px;
  height: 70px;
  opacity: 0.82;
}

.module-launch-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.module-launch-icon {
  width: 34px;
  height: 34px;
  border-radius: 13px;
}

.module-launch-signal,
.module-launch-footnote {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 900;
}

.module-launch-signal {
  padding: 4px 8px;
  color: color-mix(in srgb, var(--module-accent) 76%, #071327);
  background: color-mix(in srgb, var(--module-accent) 9%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--module-accent) 14%, #dce7f6);
}

.module-launch-title-block {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 0;
  position: relative;
  z-index: 1;
}

.module-launch-kicker {
  font-size: 0.58rem;
}

.module-launch-card h2 {
  max-width: 96%;
  font-size: clamp(0.98rem, 1.1vw, 1.22rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.module-launch-meta {
  align-content: start;
  min-height: 0;
  max-height: 48px;
  overflow: hidden;
  gap: 4px;
}

.module-launch-pill {
  padding: 4px 7px;
  color: color-mix(in srgb, var(--module-accent) 78%, #0f172a);
  background: color-mix(in srgb, var(--module-accent) 8%, #ffffff);
  font-size: 0.6rem;
}

.module-launch-footnote {
  margin-top: 0;
  color: #65758e;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.module-launch-open {
  margin-top: 0;
  font-size: 0.6rem;
}

.module-launch-platform {
  --module-accent: #475569;
  --module-accent-2: #0f172a;
}

.app-shell {
  grid-template-columns: 236px minmax(0, 1fr);
  background:
    radial-gradient(circle at 92% 4%, color-mix(in srgb, var(--module-accent) 9%, transparent), transparent 28%),
    linear-gradient(135deg, #eaf6ff 0%, #f8fbff 44%, #eef5ff 100%);
}

.sidebar {
  background:
    radial-gradient(circle at 50% -4%, color-mix(in srgb, var(--module-accent) 30%, transparent), transparent 26%),
    linear-gradient(180deg, #071527 0%, #0b1628 58%, #081426 100%);
  box-shadow: 20px 0 60px rgba(7, 21, 39, 0.2);
}

.brand {
  padding: 22px 18px 16px;
}

.brand h2 {
  margin: 8px 0 0;
  font-size: 1.08rem;
}

.brand-copy {
  color: color-mix(in srgb, var(--module-accent) 35%, #dbeafe);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.group-link {
  position: relative;
  padding: 14px 14px 14px 16px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.group-link:hover {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.09);
}

.group-link.active {
  color: #ffffff;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--module-accent) 92%, #ffffff), color-mix(in srgb, var(--module-accent-2) 86%, #ffffff));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--module-accent) 26%, transparent);
}

.group-link.active small {
  color: rgba(255, 255, 255, 0.78);
}

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

.content {
  padding: 18px 26px 30px;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--module-accent) 10%, transparent), transparent 28%),
    linear-gradient(135deg, #eaf6ff 0%, #f8fbff 48%, #eef5ff 100%);
}

.hero {
  overflow: hidden;
  min-height: 118px;
  border-color: rgba(214, 227, 245, 0.92);
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--module-accent) 14%, transparent), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.95));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--module-accent), var(--module-accent-2));
}

.hero .eyebrow,
.subtab-shell-kicker,
.form-section-label {
  color: var(--module-accent);
}

.hero h1 {
  color: var(--ai-ink);
  font-size: clamp(1.65rem, 2.6vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.hero-copy {
  color: var(--ai-muted);
}

.hero-status-chip {
  color: color-mix(in srgb, var(--module-accent) 78%, #0f172a);
  border-color: color-mix(in srgb, var(--module-accent) 18%, #dbeafe);
  background: color-mix(in srgb, var(--module-accent) 10%, #ffffff);
}

.hero-icon-btn {
  color: color-mix(in srgb, var(--module-accent) 72%, #0f172a);
  border-color: color-mix(in srgb, var(--module-accent) 16%, #dbeafe);
  background: rgba(255, 255, 255, 0.88);
}

.subtab-shell,
.card,
.metric-card,
.form-card,
.permissions-card,
.bulk-import-card,
.req-material-search,
.action-permissions-grid {
  border-color: rgba(217, 228, 245, 0.96);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.96));
  box-shadow:
    0 18px 46px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.subtab-shell {
  padding: 16px 18px;
  border-radius: 28px;
}

.subtab-nav,
.panel-subnav,
.inline-actions {
  gap: 9px;
}

.subtab-link,
.panel-subnav-link,
.tiny-btn {
  border-radius: 14px;
  border-color: color-mix(in srgb, var(--module-accent) 13%, #dbe6f4);
  background: rgba(255, 255, 255, 0.88);
  color: #243247;
}

.subtab-link.active,
.panel-subnav-link.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--module-accent), var(--module-accent-2));
  box-shadow: 0 14px 28px color-mix(in srgb, var(--module-accent) 24%, transparent);
}

.primary-btn,
.form-card button[type="submit"] {
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--module-accent), var(--module-accent-2));
  box-shadow: 0 16px 32px color-mix(in srgb, var(--module-accent) 26%, transparent);
}

.secondary-btn,
.danger-btn,
.tiny-btn {
  border-radius: 14px;
}

.tiny-btn {
  color: color-mix(in srgb, var(--module-accent) 78%, #0f172a);
  background: color-mix(in srgb, var(--module-accent) 8%, #ffffff);
}

.metric-card::before {
  background: linear-gradient(90deg, var(--module-accent), var(--module-accent-2));
}

.metric-card strong,
.finance-chip strong {
  color: color-mix(in srgb, var(--module-accent) 82%, #071327);
}

.table-wrap,
.finance-summary-table-wrap,
.finance-party-ledger-table {
  border-color: rgba(217, 228, 245, 0.96);
  border-radius: 22px;
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 16px 34px rgba(15, 23, 42, 0.055);
}

table thead th,
.finance-summary-table-wrap table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #334155;
  background:
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border-bottom: 1px solid #dbe6f4;
}

tbody tr:hover {
  background: color-mix(in srgb, var(--module-accent) 5%, #ffffff);
}

input,
select,
textarea {
  border-color: #cbd8ea;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
}

input:focus,
select:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--module-accent) 65%, #60a5fa);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--module-accent) 14%, transparent);
}

.executive-dashboard {
  --dashboard-blue: var(--module-accent);
}

.dashboard-executive-header,
.dashboard-role-intro {
  background:
    radial-gradient(circle at 88% 14%, color-mix(in srgb, var(--module-accent) 38%, transparent), transparent 25%),
    radial-gradient(circle at 58% 120%, color-mix(in srgb, var(--module-accent-2) 24%, transparent), transparent 40%),
    linear-gradient(132deg, #071527 0%, #0b2347 52%, color-mix(in srgb, var(--module-accent) 56%, #0b2347) 100%);
}

.dashboard-live-chip,
.dashboard-role-intro .eyebrow {
  color: color-mix(in srgb, var(--module-accent) 35%, #e0f2fe);
}

.dashboard-kpi-card,
.dashboard-snapshot-card,
.dashboard-workspace-card,
.dashboard-overview-card,
.dashboard-role-card {
  border-color: rgba(217, 228, 245, 0.94);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.075);
}

.dashboard-kpi-card {
  min-height: 104px;
  border-radius: 24px;
}

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

.dashboard-workspace-card {
  min-height: 310px;
  border-radius: 26px;
}

.dashboard-workspace-copy {
  display: none;
}

.dashboard-workspace-links {
  max-height: 176px;
}

.dashboard-workspace-icon,
.dashboard-kpi-icon,
.dashboard-snapshot-icon {
  color: var(--workspace-color, var(--module-accent));
  background: color-mix(in srgb, var(--workspace-color, var(--module-accent)) 10%, #ffffff);
}

.dashboard-workspace-open,
.dashboard-text-link {
  color: var(--workspace-color, var(--module-accent));
}

body[data-module-scope="billing"] .subtab-link.active,
body[data-module-scope="billing"] .panel-subnav-link.active {
  box-shadow: 0 14px 28px rgba(20, 184, 166, 0.2);
}

body[data-module-scope="platform"] .primary-btn,
body[data-module-scope="platform"] .form-card button[type="submit"] {
  background: linear-gradient(135deg, #475569, #0f172a);
}

@media (min-width: 1280px) {
  .module-launch-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .module-launch-card {
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 1180px) {
  .module-launch-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 720px) {
  .module-launch-insights {
    grid-template-columns: 1fr;
  }

  .module-launch-grid,
  .dashboard-module-grid {
    grid-template-columns: 1fr;
  }

  .module-launcher-card {
    max-height: none;
    height: auto;
    overflow: visible;
  }

  .module-launch-card {
    min-height: 180px;
  }
}

