:root {
  --bg: #eeeee9;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #374151;
  --border: rgba(15, 23, 42, 0.24);
  --shadow: 0 8px 24px rgba(2, 6, 23, 0.06);

  --accent: #2563eb;
  --accent-2: #06b6d4;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;

  --radius: 14px;

  --glass: rgba(255, 255, 255, 0.72);
  --glass-heavy: rgba(255, 255, 255, 0.92);
  --glass-menu: rgba(255, 255, 255, 0.98);
  --input-bg: #ffffff;
  --hover-tint: rgba(2, 6, 23, 0.04);
  --active-tint: rgba(37, 99, 235, 0.08);
  --active-tint-strong: rgba(37, 99, 235, 0.12);
  --nav-text: rgba(15, 23, 42, 0.88);
  --nav-text-sub: rgba(15, 23, 42, 0.72);
  --border-light: rgba(15, 23, 42, 0.10);
  --border-medium: rgba(15, 23, 42, 0.22);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 10% 0%, rgba(37, 99, 235, 0.07), transparent 70%),
    radial-gradient(1100px 650px at 90% 20%, rgba(6, 182, 212, 0.05), transparent 65%),
    var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", sans-serif;
  line-height: 1.45;
}

body.app-body {
  overflow: hidden;
}

a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1080px;
  margin: 24px auto;
  padding: 0 18px 46px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- App shell (Billingo-like layout) --- */
.nav-toggle { display: none; }
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.45);
  z-index: 20;
  cursor: default;
}

.app-shell {
  --sidebar-w: 234px;
  --topbar-h: 62px;
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  grid-template-areas:
    "topbar topbar"
    "sidebar main";
  overflow: hidden;
}

.app-shell.sidebar-collapsed,
html[data-sidebar-collapsed="1"] .app-shell { --sidebar-w: 65px; }

.sidebar {
  grid-row: 1 / -1;
  grid-column: 1;
  z-index: 5;
  height: 100vh;
  overflow: auto;
  padding: var(--topbar-h) 13px 16px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.sidebar-brand {
  padding: 6px 10px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 7px 5px 5px;
  margin-bottom: 2px;
}

.brandmark {
  display: inline-block;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.brandmark-mini {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.10);
  align-items: center;
  justify-content: center;
  font-weight: 900;
  text-decoration: none;
}
.brandmark-mini:hover { text-decoration: none; }

.tenantname {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.sidebar-nav {
  display: grid;
  gap: 5px;
  padding: 7px 5px;
}

.nav-sep {
  height: 1px;
  margin: 6px 4px;
  background: rgba(15, 23, 42, 0.16);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 9px;
  border-radius: 11px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.88);
}

.nav-item:hover {
  background: rgba(37, 99, 235, 0.08);
  text-decoration: none;
}

.nav-item.active {
  background: rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16);
}

.nav-submenu {
  display: grid;
  gap: 4px;
  margin: -2px 0 6px 18px;
  padding-left: 14px;
  border-left: 1px dashed rgba(15, 23, 42, 0.18);
}

.nav-subitem {
  display: block;
  padding: 5px 7px;
  border-radius: 9px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.72);
  text-decoration: none;
}

.nav-subitem:hover {
  background: rgba(37, 99, 235, 0.08);
  text-decoration: none;
  color: rgba(15, 23, 42, 0.92);
}

.nav-subitem.active {
  background: rgba(37, 99, 235, 0.12);
  color: rgba(29, 78, 216, 0.95);
  font-weight: 800;
}

.sidebar-collapse-btn {
  width: 32px;
  height: 32px;
  border-radius: 11px;
}
.collapse-icon svg { width: 16px; height: 16px; }
.sidebar-collapse-btn .collapse-icon-collapse { display: inline-flex; }
.sidebar-collapse-btn .collapse-icon-expand { display: none; }
.app-shell.sidebar-collapsed .sidebar-collapse-btn .collapse-icon-collapse,
html[data-sidebar-collapsed="1"] .app-shell .sidebar-collapse-btn .collapse-icon-collapse { display: none; }
.app-shell.sidebar-collapsed .sidebar-collapse-btn .collapse-icon-expand,
html[data-sidebar-collapsed="1"] .app-shell .sidebar-collapse-btn .collapse-icon-expand { display: inline-flex; }

.app-shell.sidebar-collapsed .brandmark-full,
html[data-sidebar-collapsed="1"] .app-shell .brandmark-full { display: none; }
.app-shell.sidebar-collapsed .brandmark-mini,
html[data-sidebar-collapsed="1"] .app-shell .brandmark-mini { display: inline-flex; }
.app-shell.sidebar-collapsed .tenantname,
html[data-sidebar-collapsed="1"] .app-shell .tenantname { display: none; }
.app-shell.sidebar-collapsed .sidebar,
html[data-sidebar-collapsed="1"] .app-shell .sidebar { padding: var(--topbar-h) 9px 16px; }
.app-shell.sidebar-collapsed .sidebar-nav,
html[data-sidebar-collapsed="1"] .app-shell .sidebar-nav { padding: 7px 0; }
.app-shell.sidebar-collapsed .nav-item,
html[data-sidebar-collapsed="1"] .app-shell .nav-item { justify-content: center; padding: 11px 9px; }
.app-shell.sidebar-collapsed .nav-item > span:not(.nav-ico),
html[data-sidebar-collapsed="1"] .app-shell .nav-item > span:not(.nav-ico) { display: none; }
.app-shell.sidebar-collapsed .nav-sep,
html[data-sidebar-collapsed="1"] .app-shell .nav-sep { margin: 9px 11px; }
.app-shell.sidebar-collapsed .nav-submenu,
html[data-sidebar-collapsed="1"] .app-shell .nav-submenu { display: none; }
.app-shell.sidebar-collapsed .userline,
html[data-sidebar-collapsed="1"] .app-shell .userline { display: none; }
.app-shell.sidebar-collapsed .btn-text,
html[data-sidebar-collapsed="1"] .app-shell .btn-text { display: none; }
.app-shell.sidebar-collapsed .sidebar-footer,
html[data-sidebar-collapsed="1"] .app-shell .sidebar-footer { left: 9px; right: 9px; }

.nav-ico {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(37, 99, 235, 0.85);
}
.nav-ico svg { width: 20px; height: 20px; }

.sidebar-footer {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 14px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}

.userline { padding: 0 6px 10px; }
.useremail { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rightbar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  border-left: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  overflow: auto;
}

@supports (height: 100dvh) {
  .app-shell {
    height: 100dvh;
    min-height: 100dvh;
  }

  .sidebar {
    height: 100dvh;
  }

  .rightbar {
    height: 100dvh;
  }
}

.rightbar-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
}

.rightbar-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.tenant-switches { display: grid; gap: 8px; }

.tenant-switch {
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(15, 23, 42, 0.92);
  cursor: pointer;
}
.tenant-switch:hover { background: rgba(2, 6, 23, 0.02); }
.tenant-switch.active {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.08);
}
.tenant-switch-name { font-weight: 800; }
.tenant-switch-meta { margin-top: 2px; font-size: 12px; color: var(--muted); }

.main {
  grid-area: main;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.topbar {
  grid-area: topbar;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-title {
  font-weight: 700;
  color: rgba(15, 23, 42, 0.85);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions { margin-left: auto; display: flex; gap: 4px; align-items: center; }

.topbar-actions > .btn {
  padding: 6px 13px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.topbar-brand {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}
.topbar-brand:hover { text-decoration: none; }

.btn-label-short { display: none; }

.topbar-sep {
  width: 1px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-btn:hover { background: rgba(2, 6, 23, 0.06); }
.icon-btn > span { display: inline-flex; align-items: center; justify-content: center; }
.icon-btn svg { width: 18px; height: 18px; color: rgba(15, 23, 42, 0.8); }
.topbar-actions > .icon-btn {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  border-color: transparent;
  background: transparent;
}
.topbar-actions > .icon-btn svg { width: 16px; height: 16px; }
.topbar-actions > .icon-btn:hover { background: rgba(2, 6, 23, 0.06); }

.sidebar-toggle { display: none; }

.content {
  padding: 22px 18px 46px;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}

.settings-layout {
  display: grid;
  grid-template-columns: 261px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.settings-side {
  position: sticky;
  top: 76px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.05);
  padding: 11px;
}

.settings-side-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 9px;
}

.settings-side-section {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}
.settings-side-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.settings-side-heading {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.settings-side-link {
  display: block;
  padding: 8px 9px;
  border-radius: 9px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.88);
  text-decoration: none;
}
.settings-side-link:hover {
  background: rgba(37, 99, 235, 0.08);
  text-decoration: none;
}
.settings-side-link.active {
  background: rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
  color: rgba(29, 78, 216, 0.96);
}

.settings-main {
  min-width: 0;
}

/* Settings mobile navigation (hidden on desktop) */
.settings-mobile-nav { display: none; }
.settings-desktop-nav { display: block; }

/* Topbar settings menu */
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 290px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.18);
  z-index: 40;
}
.menu-title {
  padding: 8px 10px 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.menu-item {
  display: block;
  padding: 10px 10px;
  border-radius: 12px;
  color: rgba(15, 23, 42, 0.92);
  text-decoration: none;
  font-weight: 800;
}
.menu-item:hover { background: rgba(37, 99, 235, 0.08); text-decoration: none; }
.menu-sep { height: 1px; background: rgba(15, 23, 42, 0.10); margin: 6px 6px; }

/* Topbar profile menu */
.profile-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  height: 31px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  max-width: 261px;
  transition: background 0.12s;
}
.profile-summary:hover { background: rgba(2, 6, 23, 0.05); }
.profile-summary::-webkit-details-marker { display: none; }
.profile-ico {
  width: 23px;
  height: 23px;
  border-radius: 7px;
  background: rgba(37, 99, 235, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-ico svg { width: 13px; height: 13px; color: rgba(37, 99, 235, 0.80); }
.profile-text { min-width: 0; display: grid; }
.profile-tenant { font-weight: 900; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.profile-meta { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.profile-chevron { margin-left: auto; display: inline-flex; }
.profile-chevron svg { width: 14px; height: 14px; color: rgba(15, 23, 42, 0.50); }
.profile-panel { width: 380px; }
.profile-primary { width: 100%; }
.profile-search { padding: 6px 4px 10px; }
.profile-actions { display: grid; gap: 10px; margin-top: 10px; }
.tenant-switches-menu { max-height: 320px; overflow: auto; padding-right: 2px; }

/* Page header + toolbar */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.page-actions { display: flex; gap: 10px; align-items: center; }

.search {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 320px;
}
.search input {
  background: rgba(255, 255, 255, 0.95);
}

.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.filters input[name="q"] { min-width: 320px; flex: 1 1 360px; }
.filters .range { display: inline-flex; gap: 8px; align-items: center; }
.filters .range input { width: 152px; }
.filters select { width: 110px; }
.filters button.icon-btn { width: 40px; height: 40px; }
.partners-filters { width: 100%; min-width: 360px; }
.partners-search-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.partners-search-inline input[name="q"] { flex: 1 1 auto; min-width: 0; }
.partners-search-inline .icon-btn { flex: 0 0 40px; }

.partner-list {
  display: flex;
  flex-direction: column;
}
.partner-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.partner-card:last-child { border-bottom: none; }
.partner-card:hover { background: rgba(37, 99, 235, 0.04); }
.partner-card-main { flex: 1; min-width: 0; }
.partner-card-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.partner-card-name strong { font-size: 14px; }
.partner-card-details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 13px;
  color: var(--muted);
}
.partner-detail { display: inline-flex; align-items: baseline; gap: 4px; }
.partner-detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
  color: var(--muted);
  opacity: 0.5;
  font-family: inherit;
}
.partner-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  font-size: 13px;
  white-space: nowrap;
}

.products-filters { width: 100%; min-width: 360px; }
.products-search-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.products-search-inline input[name="q"] { flex: 1 1 auto; min-width: 0; }
.products-search-inline .icon-btn { flex: 0 0 40px; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.dash {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  margin-bottom: 14px;
}

.dash-chart {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.80);
}
.dash-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.dash-legend { display: inline-flex; gap: 12px; align-items: center; font-weight: 800; }
.dot { width: 12px; height: 12px; border-radius: 999px; display: inline-block; margin-right: 6px; vertical-align: middle; }
.dot.income { background: rgba(37, 99, 235, 0.95); box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22); }
.dot.expense { background: rgba(245, 158, 11, 0.95); box-shadow: 0 8px 18px rgba(245, 158, 11, 0.18); }

.dash-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.01);
  /* Rotated axis labels can slightly exceed the SVG viewport. */
  overflow: visible;
}

.dash-stats { display: grid; gap: 10px; }

.stat-hero {
  border-radius: 16px;
  padding: 14px 14px;
  color: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(520px 220px at 18% 10%, rgba(255, 255, 255, 0.10), transparent 60%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(37, 99, 235, 0.92) 45%, rgba(239, 68, 68, 0.82));
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.18);
}
.stat-hero-kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}
.stat-hero-label { margin-top: 6px; font-size: 12px; opacity: 0.92; }
.stat-hero-value { margin-top: 8px; font-size: 28px; font-weight: 900; letter-spacing: -0.02em; }
.stat-hero-sub { margin-top: 10px; font-size: 12px; opacity: 0.9; }

.stat-card {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.88);
  padding: 10px 10px;
}
.stat-row { display: flex; align-items: center; gap: 10px; }
.stat-ico {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 10px 18px rgba(2, 6, 23, 0.06);
  position: relative;
}
.stat-ico::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(2, 6, 23, 0.10);
}
.stat-ico.income { background: rgba(37, 99, 235, 0.16); }
.stat-ico.expense { background: rgba(245, 158, 11, 0.18); }
.stat-ico.vat { background: rgba(6, 182, 212, 0.16); }
.stat-txt { min-width: 0; }
.stat-name { font-weight: 900; }
.stat-amt { margin-left: auto; font-weight: 900; white-space: nowrap; }

.doc-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-block;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.06);
  position: relative;
}
.doc-ico::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 9px;
  width: 14px;
  height: 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(2, 6, 23, 0.10);
}
.doc-ico.info { background: rgba(37, 99, 235, 0.16); }
.doc-ico.success { background: rgba(34, 197, 94, 0.16); }
.doc-ico.warning { background: rgba(245, 158, 11, 0.18); }
.doc-ico.danger { background: rgba(239, 68, 68, 0.16); }
.doc-ico.advance::after {
  height: 12px;
  top: 11px;
  border-radius: 999px;
}
.doc-ico.final::after {
  width: 16px;
  height: 16px;
  left: 9px;
  top: 9px;
  border-radius: 50%;
}

.inv-link { font-weight: 800; }

.nav-status-cell {
  width: 52px;
  text-align: center;
}

.inv-table td:nth-child(2),
.inv-table td:nth-child(3),
.inv-table td:nth-child(5) {
  white-space: nowrap;
}

.nav-status-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(15, 23, 42, 0.04);
  color: rgba(71, 85, 105, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.nav-status-icon svg {
  width: 16px;
  height: 16px;
}

.nav-status-with-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nav-status-with-label .badge {
  white-space: nowrap;
}

.nav-status-success {
  color: rgba(21, 128, 61, 0.95);
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(34, 197, 94, 0.14);
}

.nav-status-warning {
  color: rgba(180, 83, 9, 0.96);
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.16);
}

.nav-status-danger {
  color: rgba(185, 28, 28, 0.96);
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.14);
}

.nav-status-info {
  color: rgba(29, 78, 216, 0.96);
  border-color: rgba(37, 99, 235, 0.42);
  background: rgba(37, 99, 235, 0.14);
}

.nav-status-neutral {
  color: rgba(71, 85, 105, 0.96);
  border-color: rgba(100, 116, 139, 0.36);
  background: rgba(100, 116, 139, 0.12);
}

.nav-status-muted {
  color: rgba(100, 116, 139, 0.95);
  border-color: rgba(148, 163, 184, 0.38);
  background: rgba(148, 163, 184, 0.10);
}

.nav-status-unknown {
  color: rgba(67, 56, 202, 0.95);
  border-color: rgba(99, 102, 241, 0.42);
  background: rgba(99, 102, 241, 0.12);
}
