:root {
  --org-ink: #172033;
  --org-muted: #667085;
  --org-primary: #2563eb;
  --org-line: #dbe4f0;
  --org-soft: #f5f8fc;
}

body {
  min-height: 100vh;
  color: var(--org-ink);
  background: linear-gradient(180deg, #f8fafc, #eef4ff);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

a {
  text-decoration: none;
}

.org-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1rem clamp(.75rem, 1.5vw, 1.5rem) 2.5rem;
}

.org-message-stack {
  width: min(1480px, 100%);
  margin: 0 auto 1rem;
}

.org-navbar {
  min-height: 76px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--org-line);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
  backdrop-filter: blur(14px);
}

.org-navbar.org-navbar-scrolled {
  box-shadow: 0 18px 48px rgba(15, 23, 42, .13);
}

.org-brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-width: 260px;
  color: #0f172a;
  font-weight: 850;
}

.org-brand:hover {
  color: #1d4ed8;
}

.org-brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .2);
}

.org-brand-copy {
  display: grid;
  line-height: 1.05;
}

.org-brand-copy strong {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-brand-copy small {
  margin-top: .2rem;
  color: #64748b;
  font-size: .72rem;
  font-weight: 800;
}

.org-nav-center {
  gap: .25rem;
}

.org-navbar .nav-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 40px;
  padding: .45rem .7rem !important;
  color: #475569;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 850;
}

.org-navbar .nav-link:hover,
.org-navbar .nav-link.active,
.org-navbar .nav-link.show {
  color: #1d4ed8;
  background: #eff6ff;
}

.org-menu-panel {
  min-width: 250px;
  padding: .6rem;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .16);
}

.org-menu-panel .dropdown-item,
.org-account-panel .dropdown-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 38px;
  color: #334155;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 780;
}

.org-menu-panel .dropdown-item:hover,
.org-account-panel .dropdown-item:hover {
  color: #1d4ed8;
  background: #eff6ff;
}

.org-account-menu {
  margin-left: .75rem;
}

.org-account-toggle {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 48px;
  padding: .35rem .55rem .35rem .4rem;
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
}

.org-account-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #2563eb;
  background: #dbeafe;
  border-radius: 50%;
  font-size: 1.2rem;
}

.org-account-copy {
  display: grid;
  min-width: 132px;
  text-align: left;
  line-height: 1.05;
}

.org-account-copy small {
  color: #64748b;
  font-size: .68rem;
  font-weight: 800;
}

.org-account-copy strong {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .84rem;
}

.org-account-panel {
  width: min(340px, calc(100vw - 1rem));
  padding: .75rem;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}

.org-account-panel section + section {
  margin-top: .45rem;
  padding-top: .45rem;
  border-top: 1px solid rgba(148, 163, 184, .22);
}

.org-account-section {
  display: block;
  margin: .15rem .45rem .25rem;
  color: #64748b;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.org-kicker {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  color: #1d4ed8;
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.org-surface {
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--org-line);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .08);
}

.org-card {
  height: 100%;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--org-line);
  border-radius: 8px;
}

.org-card-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--org-primary);
  background: #eff6ff;
  border-radius: 12px;
}

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

.org-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.grid-column-full {
  grid-column: 1 / -1;
}

.org-check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .5rem 1rem;
  padding: .75rem;
  background: var(--org-soft);
  border: 1px solid var(--org-line);
  border-radius: 8px;
  list-style: none;
}

.org-check-list label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 650;
}

.table > :not(caption) > * > * {
  padding: .85rem;
}

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

.org-form-section {
  padding: 1rem;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
}

.org-form-section-heading {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin-bottom: 1rem;
}

.org-form-section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 950;
}

.org-form-section-heading p {
  margin: .15rem 0 0;
  color: #64748b;
  font-size: .86rem;
  font-weight: 700;
}

.org-form-step {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: #2563eb;
  border-radius: 8px;
  font-weight: 950;
}

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

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

.org-form-panel .form-label {
  color: #334155;
  font-size: .82rem;
  font-weight: 850;
}

.org-form-panel .form-control,
.org-form-panel .form-select {
  min-height: 42px;
  border-color: rgba(148, 163, 184, .42);
  border-radius: 8px;
}

.org-form-panel textarea.form-control {
  min-height: 116px;
}

.org-toggle-card {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 76px;
  padding: .85rem;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 8px;
}

.org-toggle-card input {
  flex: 0 0 auto;
}

.org-toggle-card span {
  display: grid;
  gap: .15rem;
}

.org-toggle-card strong {
  color: #0f172a;
  font-weight: 900;
}

.org-toggle-card small {
  color: #64748b;
  font-size: .78rem;
  font-weight: 720;
}

.org-access-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: .8rem;
}

.org-access-service-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 42px minmax(0, 1fr);
  align-items: start;
  gap: .8rem;
  min-height: 142px;
  padding: .9rem;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .3);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.org-access-service-card:hover {
  border-color: rgba(37, 99, 235, .42);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}

.org-access-service-card.is-selected {
  border-color: rgba(37, 99, 235, .55);
  background: linear-gradient(135deg, #fff 0%, #eff6ff 100%);
}

.org-access-service-card.is-locked {
  cursor: default;
}

.org-access-service-card input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: .18rem;
}

.org-access-service-card input:disabled {
  opacity: .85;
}

.org-access-service-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 8px;
}

.org-access-service-copy,
.org-access-service-price {
  display: grid;
  gap: .28rem;
}

.org-access-service-copy strong {
  color: #0f172a;
  font-size: .95rem;
  font-weight: 950;
}

.org-access-service-copy small {
  color: #64748b;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
}

.org-access-service-copy em {
  color: #1d4ed8;
  font-size: .72rem;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.org-access-service-price {
  grid-column: 2 / -1;
  padding-top: .35rem;
  border-top: 1px solid rgba(148, 163, 184, .2);
}

.org-access-service-price strong {
  color: #0f172a;
  font-size: .9rem;
  font-weight: 950;
}

.org-access-service-price small {
  color: #475569;
  font-size: .78rem;
  font-weight: 800;
}

.org-access-total-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #ecfeff 100%);
  border: 1px solid rgba(14, 116, 144, .24);
  border-radius: 8px;
}

.org-access-total-card h3 {
  margin: .15rem 0 .25rem;
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 950;
}

.org-access-total-card p {
  margin: 0;
  color: #475569;
  font-size: .86rem;
  font-weight: 720;
}

.org-access-total-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr));
  gap: .65rem;
}

.org-access-total-grid span {
  display: grid;
  gap: .2rem;
  padding: .75rem;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 8px;
}

.org-access-total-grid small {
  color: #64748b;
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.org-access-total-grid strong {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 950;
}

.org-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  padding: .75rem;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
}

.org-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .4rem;
}

.org-mini-action.secondary {
  color: #0f172a;
  background: #e2e8f0;
}

.org-mini-action.secondary:hover {
  color: #0f172a;
  background: #cbd5e1;
}

.org-btn-danger {
  color: #fff;
  background: #dc2626;
  box-shadow: 0 12px 26px rgba(220, 38, 38, .22);
}

.org-btn-danger:hover {
  color: #fff;
  background: #b91c1c;
}

.danger-zone {
  border-color: rgba(220, 38, 38, .28);
  background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
}

.org-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem;
  margin-top: 1rem;
}

.org-pagination a,
.org-pagination span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 36px;
  padding: .45rem .75rem;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 850;
  text-decoration: none;
}

.org-pagination a {
  color: #0f172a;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .34);
}

.org-pagination a:hover {
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, .35);
}

.org-pagination strong {
  color: #64748b;
  font-size: .84rem;
  font-weight: 850;
}

.org-pagination .disabled {
  color: #94a3b8;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .2);
}

.org-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
}

.org-detail-list {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: .75rem 1rem;
  margin: 0;
}

.org-detail-list dt {
  color: #64748b;
  font-size: .82rem;
  font-weight: 850;
}

.org-detail-list dd {
  margin: 0;
  color: #0f172a;
  font-weight: 700;
}

.org-workspace-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  margin: 0;
}

.org-workspace-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  padding: 1rem;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  box-shadow: 0 20px 55px rgba(15, 23, 42, .08);
}

.org-sidebar-profile {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .5rem .35rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, .25);
}

.org-sidebar-profile strong,
.org-sidebar-profile span {
  display: block;
}

.org-sidebar-profile strong {
  color: #0f172a;
  font-weight: 900;
}

.org-sidebar-profile span {
  color: #64748b;
  font-size: .82rem;
  font-weight: 700;
}

.org-sidebar-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .22);
}

.org-sidebar-nav {
  display: grid;
  gap: .9rem;
  padding: 1rem 0;
}

.org-nav-section {
  display: grid;
  gap: .25rem;
}

.org-nav-section > span {
  display: block;
  padding: 0 .75rem .2rem;
  color: #64748b;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.org-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  padding: .65rem .75rem;
  color: #475569;
  border-radius: 8px;
  font-weight: 850;
}

.org-sidebar-nav a i {
  width: 22px;
  color: #2563eb;
}

.org-sidebar-nav a:hover,
.org-sidebar-nav a.active {
  color: #1d4ed8;
  background: #eff6ff;
}

.org-sidebar-nav a.disabled {
  color: #94a3b8;
  pointer-events: none;
  background: transparent;
}

.org-sidebar-panel {
  display: grid;
  gap: .45rem;
  padding: .95rem;
  background: linear-gradient(135deg, #0f172a, #164e63);
  border-radius: 8px;
  color: #e2e8f0;
}

.org-panel-label,
.org-section-eyebrow {
  color: #2563eb;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.org-sidebar-panel .org-panel-label {
  color: #67e8f9;
}

.org-sidebar-panel strong {
  color: #fff;
  font-size: 1.05rem;
}

.org-sidebar-panel p {
  margin: 0;
  color: #cbd5e1;
  font-size: .86rem;
}

.org-sidebar-panel a {
  color: #fff;
  font-weight: 850;
}

.org-workspace-main {
  min-width: 0;
}

.org-workspace-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: .65rem .8rem .65rem 1rem;
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .07);
}

.org-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .07);
}

.org-page-header h1 {
  margin: .25rem 0 .35rem;
  color: #0f172a;
  font-size: clamp(1.6rem, 2.6vw, 2.45rem);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.org-page-header p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
  font-size: .98rem;
  font-weight: 650;
}

.org-workspace-topbar h1 {
  margin: .2rem 0 0;
  color: #0f172a;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 950;
  letter-spacing: 0;
}

.org-topbar-actions,
.org-card-actions,
.org-tenant-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
}

.org-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 40px;
  padding: .55rem .9rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: .88rem;
  font-weight: 900;
}

.org-btn-primary {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .22);
}

.org-btn-primary:hover {
  color: #fff;
  background: #1d4ed8;
}

.org-btn-light {
  color: #334155;
  background: #fff;
  border-color: rgba(148, 163, 184, .35);
}

.org-btn-light:hover {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.org-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  min-height: 250px;
  padding: clamp(1.25rem, 3vw, 2rem);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .94), rgba(30, 64, 175, .88)),
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, .18);
}

.org-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.org-hero-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .65rem;
  color: #dbeafe;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 850;
}

.org-dashboard-hero h2 {
  max-width: 760px;
  margin: .8rem 0 .7rem;
  font-size: clamp(1.7rem, 2.4vw, 2.8rem);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
}

.org-dashboard-hero p {
  max-width: 680px;
  margin: 0;
  color: #dbeafe;
  font-size: 1rem;
}

.org-hero-panel {
  align-self: end;
  padding: 1rem;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.org-hero-panel span,
.org-hero-panel small {
  color: #bfdbfe;
  font-weight: 750;
}

.org-hero-panel strong {
  display: block;
  margin: .25rem 0 .7rem;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 950;
}

.org-health-meter {
  height: 9px;
  overflow: hidden;
  margin-bottom: .7rem;
  background: rgba(255, 255, 255, .18);
  border-radius: 999px;
}

.org-health-meter span {
  display: block;
  width: 78%;
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #67e8f9);
}

.org-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
  margin: 1rem 0;
}

.org-metric-card,
.org-section-card,
.org-rail-card,
.org-tenant-card,
.org-empty-state {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .07);
}

.org-metric-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-height: 92px;
  padding: 1rem;
}

.org-metric-card i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 8px;
}

.org-metric-card strong,
.org-metric-card span {
  display: block;
}

.org-metric-card strong {
  color: #0f172a;
  font-size: 1.65rem;
  font-weight: 950;
  line-height: 1;
}

.org-metric-card span {
  margin-top: .2rem;
  color: #64748b;
  font-size: .84rem;
  font-weight: 780;
}

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

.org-dashboard-content {
  display: grid;
  gap: 1rem;
}

.org-section-card,
.org-rail-card {
  padding: 1rem;
}

.org-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.org-section-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: .7rem;
}

.org-search-control {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 40px;
  padding: 0 .75rem;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 999px;
}

.org-search-control input {
  width: min(230px, 40vw);
  color: #0f172a;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: .86rem;
  font-weight: 750;
}

.org-search-control input::placeholder {
  color: #94a3b8;
}

.org-section-heading.compact {
  align-items: start;
}

.org-section-heading h2 {
  margin: .15rem 0 0;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 950;
}

.org-link {
  color: #2563eb;
  font-weight: 900;
}

.org-workspace-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

.org-tenant-card {
  display: grid;
  gap: .9rem;
  padding: 1rem;
}

.org-tenant-head {
  display: flex;
  gap: .8rem;
  min-width: 0;
}

.org-tenant-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  border-radius: 8px;
}

.org-tenant-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 950;
}

.org-tenant-head p {
  margin: .18rem 0 0;
  color: #64748b;
  font-size: .84rem;
  font-weight: 700;
}

.org-status-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 28px;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 900;
}

.org-status-pill.success {
  color: #047857;
  background: #d1fae5;
}

.org-status-pill.warning {
  color: #92400e;
  background: #fef3c7;
}

.org-status-pill.neutral {
  color: #1d4ed8;
  background: #dbeafe;
}

.org-status-pill.muted {
  color: #475569;
  background: #f1f5f9;
}

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

.org-tenant-stats span {
  padding: .55rem;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 800;
}

.org-tenant-stats strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
}

.org-service-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.org-service-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .5rem;
  color: #334155;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
}

.org-service-chip.muted {
  color: #64748b;
}

.org-service-launch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

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

.org-plan-card {
  display: grid;
  gap: .75rem;
  min-height: 220px;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 8px;
}

.org-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
}

.org-plan-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 950;
}

.org-plan-head p {
  margin: .2rem 0 0;
  color: #64748b;
  font-size: .82rem;
  font-weight: 740;
}

.org-plan-price {
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 950;
}

.org-launch-card {
  min-height: 126px;
  display: grid;
  align-content: start;
  gap: .4rem;
  padding: .85rem;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 8px;
}

.org-launch-card:hover {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.org-launch-card span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #2563eb;
  background: #dbeafe;
  border-radius: 8px;
}

.org-launch-card strong {
  font-size: .9rem;
  font-weight: 950;
}

.org-launch-card small {
  color: #64748b;
  font-weight: 750;
}

.org-dashboard-rail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 1rem;
}

.org-rail-card {
  display: grid;
  gap: .75rem;
}

.org-rail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .7rem;
  color: #334155;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 8px;
}

.org-rail-item strong,
.org-rail-item span {
  display: block;
}

.org-rail-item strong {
  color: #0f172a;
  font-size: .9rem;
  font-weight: 900;
}

.org-rail-item span {
  color: #64748b;
  font-size: .8rem;
  font-weight: 760;
}

.org-rail-item.linked:hover {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.org-mini-action {
  border: 0;
  padding: .35rem .55rem;
  color: #fff;
  background: #2563eb;
  border-radius: 8px;
  font-size: .75rem;
  font-weight: 900;
}

.org-mini-action:hover {
  color: #fff;
  background: #1d4ed8;
}

.org-mini-action.danger {
  background: #dc2626;
}

.org-mini-action.danger:hover {
  background: #b91c1c;
}

.org-inline-empty,
.org-empty-state {
  display: grid;
  place-items: center;
  gap: .6rem;
  min-height: 180px;
  padding: 1.25rem;
  text-align: center;
}

.org-empty-state {
  grid-column: 1 / -1;
}

.org-inline-empty i,
.org-empty-state i {
  color: #2563eb;
  font-size: 2rem;
}

.org-inline-empty span,
.org-empty-state p {
  max-width: 520px;
  color: #64748b;
  font-weight: 740;
}

.org-empty-state h2 {
  margin: 0;
  color: #0f172a;
  font-weight: 950;
}

.org-footer {
  padding: 0 0 1.5rem;
}

.org-footer-inner {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .98), rgba(15, 45, 82, .96)),
    radial-gradient(circle at 100% 0, rgba(37, 99, 235, .24), transparent 32%);
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .16);
  color: #e5edf8;
}

.org-footer-brand {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: .85rem;
  align-items: start;
}

.org-footer-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(37, 99, 235, .28);
}

.org-footer h2,
.org-footer h3,
.org-footer p {
  margin: 0;
}

.org-footer h2 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 950;
}

.org-footer p {
  max-width: 760px;
  margin-top: .35rem;
  color: #b8c7dc;
  font-size: .9rem;
  line-height: 1.6;
  font-weight: 720;
}

.org-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.org-footer-column {
  display: grid;
  align-content: start;
  gap: .35rem;
  min-height: 178px;
  padding: .85rem;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(226, 232, 240, .12);
  border-radius: 8px;
}

.org-footer-column h3 {
  margin-bottom: .2rem;
  color: #fff;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.org-footer-column a,
.org-footer-column span {
  display: block;
  min-height: 28px;
  color: #cbd7ea;
  font-size: .84rem;
  font-weight: 780;
}

.org-footer-column a:hover,
.org-footer-column a:focus {
  color: #93c5fd;
}

.org-footer-column span {
  opacity: .55;
}

.org-footer-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.org-footer-status div {
  display: grid;
  gap: .15rem;
  padding: .75rem .85rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(226, 232, 240, .12);
  border-radius: 8px;
}

.org-footer-status strong {
  color: #fff;
  font-size: 1.18rem;
  font-weight: 950;
}

.org-footer-status span {
  color: #b8c7dc;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

@media (max-width: 1199.98px) {
  .org-workspace-shell,
  .org-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .org-workspace-sidebar,
  .org-dashboard-rail {
    position: static;
    max-height: none;
  }

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

  .org-dashboard-hero {
    grid-template-columns: 1fr;
  }

  .org-footer-grid,
  .org-footer-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .org-metric-grid,
  .org-workspace-card-grid,
  .org-service-launch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .org-page {
    width: 100%;
    padding-top: .75rem;
  }

  .org-workspace-topbar,
  .org-page-header,
  .org-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .org-topbar-actions,
  .org-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .org-sidebar-nav,
  .org-metric-grid,
  .org-form-grid.two,
  .org-form-grid.three,
  .org-plan-grid,
  .org-workspace-card-grid,
  .org-service-launch-grid,
  .org-access-total-card,
  .org-access-total-grid,
  .org-tenant-stats {
    grid-template-columns: 1fr;
  }

  .org-dashboard-hero h2 {
    font-size: 1.8rem;
  }

  .org-footer-brand,
  .org-footer-grid,
  .org-footer-status {
    grid-template-columns: 1fr;
  }
}
