html {
  font-size: 16px;
}

body {
  background: #eef2f6;
  color: #182230;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
}

a {
  text-decoration: none;
}

.saas-shell {
  display: flex;
  min-height: 100vh;
}

.saas-sidebar {
  background: #132238;
  color: #f6f8fb;
  display: flex;
  flex: 0 0 272px;
  flex-direction: column;
  gap: 24px;
  padding: 24px 18px;
}

.brand-block {
  align-items: center;
  display: flex;
  gap: 12px;
  padding: 0 6px 8px;
}

.brand-mark {
  align-items: center;
  background: #2bb3a3;
  border-radius: 8px;
  color: #06131f;
  display: inline-flex;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand-name {
  color: #ffffff;
  display: block;
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.1;
}

.brand-caption {
  color: #9fb0c3;
  font-size: .78rem;
  margin-top: 3px;
}

.sidebar-menu {
  display: grid;
  gap: 6px;
}

.sidebar-link {
  align-items: center;
  border-radius: 8px;
  color: #dce5ef;
  display: flex;
  font-weight: 650;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px;
}

.sidebar-link:hover,
.sidebar-link:focus {
  background: #203653;
  color: #ffffff;
}

.sidebar-link span {
  align-items: center;
  background: #233954;
  border-radius: 7px;
  color: #a9c7e8;
  display: inline-flex;
  flex: 0 0 30px;
  font-size: .72rem;
  font-weight: 800;
  height: 30px;
  justify-content: center;
}

.disabled-link {
  color: #7f91a6;
}

.sidebar-status {
  background: #0d1a2b;
  border: 1px solid #263b57;
  border-radius: 8px;
  margin-top: auto;
  padding: 14px;
}

.status-label {
  color: #8fa3ba;
  font-size: .78rem;
}

.status-value {
  color: #ffffff;
  font-size: .92rem;
  font-weight: 700;
  margin-top: 3px;
}

.saas-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.top-navbar {
  align-items: center;
  background: #ffffff;
  border-bottom: 1px solid #d8e0ea;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 82px;
  padding: 18px 28px;
}

.top-eyebrow {
  color: #66768a;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.top-title {
  color: #172033;
  font-size: 1.4rem;
  font-weight: 780;
  line-height: 1.25;
  margin: 2px 0 0;
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.user-chip {
  align-items: center;
  background: #203653;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.mobile-menu {
  background: #ffffff;
  border-bottom: 1px solid #d8e0ea;
  display: grid;
  gap: 2px;
  padding: 8px 18px 14px;
}

.mobile-menu a {
  border-radius: 8px;
  color: #203653;
  font-weight: 700;
  padding: 10px 12px;
}

.mobile-menu a:hover {
  background: #edf3f8;
}

.content-area {
  padding: 28px;
}

.page-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.page-kicker {
  color: #66768a;
  font-size: .82rem;
  font-weight: 750;
  text-transform: uppercase;
}

.page-heading {
  font-size: 1.65rem;
  font-weight: 780;
  margin: 4px 0;
}

.page-subtitle {
  color: #66768a;
  margin: 0;
  max-width: 760px;
}

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

.metric-grid-wide {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
}

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

.widget-wide {
  grid-column: 1 / -1;
}

.metric-card,
.data-panel {
  background: #ffffff;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 31, 50, .06);
}

.metric-card {
  padding: 18px;
}

.metric-label {
  color: #66768a;
  font-size: .82rem;
  font-weight: 700;
}

.metric-value {
  color: #172033;
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 8px;
}

.metric-note {
  color: #738399;
  font-size: .86rem;
}

.data-panel {
  overflow: hidden;
}

.panel-heading {
  align-items: center;
  border-bottom: 1px solid #e3e9f1;
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
}

.panel-title {
  font-size: 1rem;
  font-weight: 780;
  margin: 0;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  color: #607086;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 760;
  padding: 5px 9px;
}

.status-active {
  background: #e5f7f2;
  color: #087761;
}

.status-pending {
  background: #fff3d6;
  color: #946200;
}

.status-muted {
  background: #edf1f6;
  color: #526276;
}

@media (max-width: 991.98px) {
  .saas-sidebar {
    display: none;
  }

  .top-navbar {
    padding: 16px;
  }

  .content-area {
    padding: 18px;
  }

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

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

@media (max-width: 575.98px) {
  .top-actions {
    display: none;
  }

  .page-header {
    display: block;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }
}
