﻿body { background: #0b0f14; color: #e9eef4; }
.card, .table, .modal-content { background: #121823; color: #e9eef4; }
.table { --bs-table-color: #e9eef4; --bs-table-bg: #121823; }
.form-control, .form-select { background: #0f1520; color: #e9eef4; border-color: #223044; }
.form-control:focus, .form-select:focus { background: #0f1520; color: #e9eef4; border-color: #3b82f6; box-shadow: none; }
.form-control:disabled, .form-select:disabled { background: #0f1520; color: #7a8aa0; opacity: 1; }
.form-control::placeholder { color: #9fb4d1; opacity: 1; }
.form-select:invalid { color: #9fb4d1; }
.form-select option { color: #e9eef4; }
.btn-outline-light { border-color: #223044; }
a { color: #9ec5fe; }

.chart-controls { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end; }
.chart-wrap { position: relative; min-height: 220px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.chart-legend .form-check { margin: 0; }

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

.app-sidebar {
  width: 280px;
  min-width: 280px;
  background: #0f1520;
  border-right: 1px solid #223044;
  padding: 0.9rem;
  overflow-y: auto;
}

.app-brand {
  display: inline-block;
  color: #e9eef4;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.app-brand:hover {
  color: #ffffff;
}

.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.app-nav-heading {
  color: #8ea0b8;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0.8rem 0 0.15rem;
  padding: 0 0.7rem;
}

.app-nav-heading-toggle {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #8ea0b8;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0.8rem 0 0.1rem;
  padding: 0.18rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  background: transparent;
}

.app-nav-heading-toggle:hover {
  color: #c8d3e1;
  background: #121b2a;
  border-color: #223044;
}

.app-nav-heading-toggle:focus-visible {
  outline: none;
  border-color: #3b82f6;
}

.app-nav-heading-caret {
  margin-left: auto;
  font-size: 0.72rem;
  opacity: 0.8;
  transition: transform 0.16s ease;
}

.app-nav-heading-toggle[aria-expanded="true"] .app-nav-heading-caret {
  transform: rotate(180deg);
}

.app-nav-subgroup {
  margin: 0.05rem 0 0.2rem 0.55rem;
  padding-left: 0.45rem;
  border-left: 1px solid #223044;
}

.app-nav-link-sub {
  font-size: 0.94rem;
  padding-left: 0.62rem;
}

.app-nav-link {
  display: block;
  color: #c8d3e1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  padding: 0.44rem 0.7rem;
}

.app-nav-link:hover {
  color: #ffffff;
  background: #121b2a;
  border-color: #223044;
}

.app-nav-link.active {
  color: #ffffff;
  background: #1a2436;
  border-color: #33507a;
}

.app-sidebar-meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.app-tax-badge {
  font-size: inherit;
  font-weight: 400;
}

.app-sidebar-footer {
  border-top: 1px solid #223044;
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.app-account-link {
  color: #e9eef4;
  text-decoration: none;
  font-size: 0.92rem;
}

.app-account-link:hover {
  color: #ffffff;
}

.app-lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.app-lang-toggle.w-100 {
  justify-content: center;
}

.app-user-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
}

.app-user-menu-name {
  font-weight: 600;
}

.app-lang-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  line-height: 1;
}

.app-menu-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.app-lang-submenu-toggle {
  justify-content: flex-start;
}

.app-submenu-caret {
  margin-left: auto;
  font-size: 0.72rem;
  opacity: 0.8;
  transition: transform 0.16s ease;
}

.app-lang-submenu-toggle[aria-expanded="true"] .app-submenu-caret {
  transform: rotate(180deg);
}

.app-lang-option {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.app-lang-check {
  font-weight: 700;
}

.app-lang-submenu .dropdown-item {
  padding-left: 2.2rem;
}

.app-menu-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  line-height: 1;
  flex: 0 0 auto;
}

.app-menu-icon svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.app-lang-icon svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.dropdown-menu-dark .dropdown-item.active,
.dropdown-menu-dark .dropdown-item:active {
  background: #1a2436;
}

.app-main {
  flex: 1;
  min-width: 0;
}

.app-content {
  max-width: 1450px;
}

.app-mobile-top {
  background: #0f1520;
  border-bottom: 1px solid #223044;
  padding: 0.7rem 0.9rem;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.app-sidebar-offcanvas {
  background: #0f1520;
  color: #e9eef4;
}

.app-sidebar-offcanvas .offcanvas-header {
  border-bottom: 1px solid #223044;
}
