:root {
  /* Brand */
  --brand-primary: #1e3a8a;
  --brand-accent: #2dd4bf;

  /* Text */
  --text-primary: #111827;
  --text-meta: #6b7280;
  --text-inverted: #e5e7eb;

  /* Status */
  --status-active: #166534;
  --status-pending: #92400e;
  --status-closed: #374151;

  /* Surfaces */
  --bg-app: #f7f9fc;
  --bg-card: #ffffff;
  --bg-sidebar: #0f172a;
  --bg-table-head: #f1f5f9;

  /* Lines */
  --border-light: #e5e7eb;
  --divider: #d1d5db;

  /* Effects */
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}
body {
  color: var(--text-primary);
  background-color: var(--bg-app);
  font-family: Inter, "system-ui", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}
.app-header {
  background-color: var(--bg-card);
  padding: 0.25rem 2rem;
  border-bottom: 1px solid var(--border-light);
  min-height: 4rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.user-summary p {
  margin: 0;
}
.user-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}
.app-shell {
  display: grid;
  grid-template-columns: 15rem 1fr;
}
.main-content {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem;
  gap: 2rem;
}
.section-metrics {
  text-align: center;
}
.side-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 0;
  background-color: var(--bg-sidebar);
  color: var(--inverted-text);
}
.metric {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

tr {
  border-bottom: 1px solid var(--divider);
}

th,
td {
  padding: 0.75rem 1rem;
}
.status.active {
  color: var(--status-active);
  background-color: color-mix(in srgb, currentColor 15%, transparent);
}
.status.pending {
  color: var(--status-pending);
  background-color: color-mix(in srgb, currentColor 15%, transparent);
}
.status.closed {
  color: var(--status-closed);
  background-color: color-mix(in srgb, currentColor 15%, transparent);
}
.status-cell {
  text-align: center;
}
.company-name {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}
h3 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}
.metric-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}
.metric-meta {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}
.nav-items {
  list-style: none;
  color: var(--text-inverted);
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}
.nav-item a {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
}
.nav-item.active {
  color: var(--inverted-text);
  background-color: color-mix(in srgb, currentColor 14%, transparent);
  border-left: 4px solid var(--brand-accent);
}
thead {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  background-color: var(--bg-table-head);
}

tbody {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}
.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 999px;
}
table {
  width: 100%;
  border-collapse: collapse;
}

section {
  padding: 1rem 0;
  border-bottom: 1px solid var(--divider);
}
.section-clients {
  text-align: center;
}
.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-inverted);
  font-size: 0.875rem;
  font-weight: 600;
  background-color: var(--brand-primary);
  border-radius: 50%;
}
/*interactive*/

tbody tr:hover {
  background-color: color-mix(in srgb, var(--brand-primary) 6%, transparent);
}

.side-bar .nav-item:hover {
  background-color: color-mix(in srgb, currentColor 10%, transparent);
}
