:root {
  color-scheme: dark;
  --bg-app: #06111c;
  --bg-sidebar: rgba(7, 17, 27, 0.96);
  --bg-surface: rgba(16, 28, 39, 0.82);
  --bg-surface-secondary: rgba(25, 39, 54, 0.72);
  --bg-elevated: rgba(20, 37, 52, 0.95);
  --bg-hover: rgba(255, 255, 255, 0.05);
  --bg-active: rgba(46, 141, 212, 0.22);
  --text-primary: #f4f7fb;
  --text-secondary: #d8e0ea;
  --text-muted: #8d99a8;
  --text-inverse: #04131d;
  --border-default: rgba(151, 190, 218, 0.18);
  --border-subtle: rgba(151, 190, 218, 0.12);
  --border-strong: rgba(151, 190, 218, 0.24);
  --accent: #69b7ff;
  --accent-hover: #88c8ff;
  --accent-soft: rgba(105, 183, 255, 0.12);
  --success: #43d17d;
  --success-soft: rgba(27, 107, 74, 0.22);
  --warning: #f2b94c;
  --warning-soft: rgba(114, 76, 23, 0.25);
  --danger: #ee5d63;
  --danger-soft: rgba(143, 39, 49, 0.2);
  --info: #69b7ff;
  --info-soft: rgba(28, 87, 148, 0.24);
  --shadow-sm: 0 10px 26px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 24px 80px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.42);
  --chart-grid: rgba(151, 190, 218, 0.13);
  --chart-axis: rgba(180, 193, 208, 0.38);
  --chart-tooltip: rgba(33, 50, 66, 0.92);
  --chart-inflow: #88c8ff;
  --chart-inflow-deep: #1f6fb3;
  --chart-outflow: #17466a;
  --chart-outflow-deep: #12314b;
  --chart-net: #43d17d;
  --ink: var(--text-primary);
  --muted: var(--text-muted);
  --dim: #5f6b79;
  --line: var(--border-default);
  --panel: var(--bg-surface);
  --panel-strong: var(--bg-elevated);
  --sidebar: var(--bg-sidebar);
  --blue: var(--accent);
  --blue-deep: #1f75d6;
  --teal: #2fd2ad;
  --green: var(--success);
  --amber: var(--warning);
  --red: var(--danger);
  --violet: #8f89ff;
  --shadow: var(--shadow-md);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
}

[data-theme="light"] {
  color-scheme: light;
  --bg-app: #eef3f8;
  --bg-workspace: #eef3f8;
  --bg-card: #ffffff;
  --bg-sidebar: rgba(7, 17, 27, 0.96);
  --bg-surface: #ffffff;
  --bg-surface-secondary: #f7f9fc;
  --bg-elevated: #ffffff;
  --bg-hover: #edf3f8;
  --bg-active: #e7f0ff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --border-default: #d9e3ec;
  --border-subtle: #e8edf3;
  --border-strong: #cbd5e1;
  --accent: #1f5eff;
  --accent-hover: #0b5cab;
  --accent-soft: #e7f0ff;
  --success: #16824b;
  --success-soft: #e8f7ee;
  --warning: #a96705;
  --warning-soft: #fff6df;
  --danger: #c73843;
  --danger-soft: #fff0f1;
  --info: #2579c7;
  --info-soft: #edf6ff;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 18px 44px rgba(15, 23, 42, 0.14);
  --chart-grid: #dce3eb;
  --chart-axis: #64748b;
  --chart-tooltip: #0f172a;
  --chart-inflow: #5fa6e4;
  --chart-inflow-deep: #2579c7;
  --chart-outflow: #b6c3d1;
  --chart-outflow-deep: #8fa0b2;
  --chart-net: #16824b;
  --dim: #94a3b8;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--bg-app);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 78% 18%, var(--accent-soft), transparent 26rem),
    radial-gradient(circle at 35% 62%, var(--success-soft), transparent 22rem),
    var(--bg-app);
  letter-spacing: 0;
}

@media (prefers-reduced-motion: no-preference) {
  body,
  .sidebar,
  .metric-card,
  .panel,
  .select-control,
  .date-control,
  .search-control,
  .settings-drawer,
  .profile-popover,
  .theme-menu,
  .nav-item,
  .icon-button,
  .help-button {
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
  }
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 32px 22px 24px;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.22);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  color: var(--ink);
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.03;
}

.brand strong {
  font-size: 20px;
}

.brand small {
  color: #d3d9e2;
  font-size: 16px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
}

.brand-mark span {
  position: absolute;
  width: 9px;
  height: 23px;
  border-radius: 2px;
  background: linear-gradient(180deg, #effcff, #79d5ef);
  transform-origin: center;
}

.brand-mark span:nth-child(1) {
  transform: translate(-7px, -4px) rotate(-45deg);
}

.brand-mark span:nth-child(2) {
  transform: translate(7px, 4px) rotate(-45deg);
  background: linear-gradient(180deg, #dff4ff, #4d9fe1);
}

.brand-mark span:nth-child(3) {
  width: 8px;
  height: 20px;
  transform: translate(-7px, 8px) rotate(45deg);
  background: linear-gradient(180deg, #f8fff8, #55d39d);
}

.brand-mark span:nth-child(4) {
  width: 8px;
  height: 20px;
  transform: translate(8px, -8px) rotate(45deg);
  background: linear-gradient(180deg, #ffffff, #95bdd4);
}

.nav-list,
.sidebar-footer {
  display: grid;
  gap: 8px;
}

.nav-list {
  margin-top: 54px;
}

.nav-divider {
  height: 1px;
  margin: 10px 8px;
  background: var(--line);
}

.sidebar-footer {
  margin-top: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #94a0ae;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text-primary);
  border-color: var(--border-default);
  background: var(--bg-active);
}

.nav-item:active {
  transform: translateY(1px);
}

.settings {
  margin-bottom: 8px;
}

.logout-button {
  margin-bottom: 0;
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.profile:hover,
.profile.active {
  border-color: var(--border-default);
  background: var(--bg-hover);
}

.profile img {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: #263847;
}

.profile strong,
.profile small {
  display: block;
}

.profile strong {
  max-width: 135px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.profile small {
  color: #8995a3;
  font-size: 12px;
}

.logout::before {
  left: 3px;
  top: 4px;
  width: 9px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-right: 0;
  border-radius: 3px 0 0 3px;
}

.logout::after {
  left: 9px;
  top: 9px;
  width: 10px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 4px 0 0 currentColor;
}

.workspace {
  min-width: 0;
  padding: 28px 30px 32px;
}

.topbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(420px, 790px) auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 38px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

h2 {
  font-size: 20px;
  line-height: 1.18;
}

.controls {
  display: grid;
  grid-template-columns: minmax(185px, 1fr) minmax(230px, 1.05fr) minmax(170px, 0.9fr) minmax(120px, 0.58fr);
  gap: 12px;
}

.select-control,
.date-control,
.search-control {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-surface-secondary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.select-control select,
.date-control input,
.search-control input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 16px 0 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
}

.select-control select {
  appearance: none;
  padding-right: 38px;
  cursor: pointer;
}

.select-control::after {
  position: absolute;
  right: 16px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-right: 1px solid #a8b5c4;
  border-bottom: 1px solid #a8b5c4;
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.theme-menu {
  position: absolute;
  z-index: 35;
  right: 94px;
  top: 54px;
  display: grid;
  width: 156px;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
}

.theme-menu button {
  display: grid;
  grid-template-columns: 20px 1fr 14px;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
}

.theme-menu button:hover,
.theme-menu button[aria-checked="true"] {
  background: var(--bg-active);
  color: var(--text-primary);
}

.theme-menu button[aria-checked="true"]::after {
  content: "✓";
  color: var(--success);
  font-weight: 800;
}

.theme-option-icon,
.theme-button {
  position: relative;
}

.theme-option-icon {
  display: block;
  width: 18px;
  height: 18px;
}

.theme-button::before,
.theme-button::after,
.theme-option-icon::before,
.theme-option-icon::after {
  position: absolute;
  content: "";
}

.theme-button[data-theme-mode="light"]::before,
.sun::before {
  inset: 10px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}

.theme-button[data-theme-mode="light"]::after,
.sun::after {
  left: 18px;
  top: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 27px 0 currentColor, 13px 13px 0 currentColor, -13px 13px 0 currentColor;
}

.theme-button[data-theme-mode="dark"]::before,
.moon::before {
  left: 12px;
  top: 9px;
  width: 16px;
  height: 16px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
}

.theme-button[data-theme-mode="dark"]::after,
.moon::after {
  left: 18px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-surface-secondary);
}

.theme-button[data-theme-mode="system"]::before,
.monitor::before {
  left: 10px;
  top: 10px;
  width: 19px;
  height: 13px;
  border: 1.7px solid currentColor;
  border-radius: 3px;
}

.theme-button[data-theme-mode="system"]::after,
.monitor::after {
  left: 18px;
  top: 25px;
  width: 5px;
  height: 5px;
  border-bottom: 1.7px solid currentColor;
}

.sun::before { inset: 3px; }
.sun::after { left: 8px; top: 0; width: 2px; height: 2px; box-shadow: 0 16px 0 currentColor, 8px 8px 0 currentColor, -8px 8px 0 currentColor; }
.moon::before { left: 3px; top: 2px; width: 12px; height: 12px; }
.moon::after { left: 7px; top: 0; width: 11px; height: 11px; background: var(--bg-elevated); }
.monitor::before { left: 1px; top: 3px; width: 15px; height: 10px; }
.monitor::after { left: 6px; top: 13px; width: 5px; height: 3px; }

.icon-button,
.help-button,
.more-button,
.expand-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #acb8c5;
  cursor: pointer;
}

.icon-button:hover,
.help-button:hover,
.more-button:hover,
.expand-button:hover {
  border-color: var(--border-default);
  background: var(--bg-hover);
}

.help-button {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-weight: 700;
}

.icon,
.control-icon,
.icon-button,
.metric-icon,
.expand-button {
  --icon-color: currentColor;
  position: relative;
  flex: 0 0 auto;
}

.icon {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.nav-item.active .icon {
  color: #84d6ff;
}

.icon::before,
.icon::after,
.control-icon::before,
.control-icon::after,
.icon-button::before,
.icon-button::after,
.metric-icon::before,
.metric-icon::after,
.expand-button::before,
.expand-button::after {
  position: absolute;
  content: "";
}

.dashboard::before {
  inset: 3px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.dashboard::after {
  left: 7px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.cash::before {
  left: 2px;
  top: 5px;
  width: 15px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
}

.cash::after {
  left: 7px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
}

.fx::before {
  inset: 2px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.fx::after {
  left: 5px;
  top: 6px;
  width: 10px;
  height: 8px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: skewX(-18deg);
}

.bank::before {
  left: 2px;
  top: 8px;
  width: 16px;
  height: 9px;
  border: 1.5px solid currentColor;
}

.bank::after {
  left: 4px;
  top: 3px;
  width: 12px;
  height: 8px;
  border-left: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.invoice::before {
  inset: 3px 4px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.invoice::after {
  left: 7px;
  top: 7px;
  width: 7px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.report::before {
  left: 4px;
  top: 4px;
  width: 12px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.report::after {
  left: 7px;
  bottom: 5px;
  width: 2px;
  height: 5px;
  background: currentColor;
  box-shadow: 4px -4px 0 currentColor, 8px -1px 0 currentColor;
}

.daily-update::before,
.data::before,
.cost::before,
.treasury-calendar::before {
  inset: 3px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.daily-update::after {
  left: 9px;
  top: 5px;
  width: 2px;
  height: 10px;
  background: currentColor;
  box-shadow: -4px 4px 0 -0.3px currentColor, 4px 4px 0 -0.3px currentColor;
}

.data::after {
  left: 6px;
  top: 7px;
  width: 8px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
}

.cost::after {
  left: 6px;
  top: 11px;
  width: 8px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 4px -4px 0 currentColor, 8px 3px 0 currentColor;
}

.treasury-calendar::after {
  left: 6px;
  top: 8px;
  width: 8px;
  height: 5px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.cog::before,
.gear::before {
  inset: 6px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.cog::after,
.gear::after {
  left: 9px;
  top: 1px;
  width: 2px;
  height: 18px;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  transform: rotate(45deg);
}

.bell::before {
  left: 12px;
  top: 8px;
  width: 14px;
  height: 17px;
  border: 1.8px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 3px 3px;
}

.bell::after {
  left: 17px;
  top: 27px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.control-icon {
  position: absolute;
  left: 16px;
  top: 13px;
  width: 18px;
  height: 18px;
  color: #97a6b6;
  pointer-events: none;
}

.folder::before {
  left: 1px;
  top: 5px;
  width: 16px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.folder::after {
  left: 3px;
  top: 3px;
  width: 7px;
  height: 4px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  border-radius: 2px 0 0 0;
}

.calendar::before {
  inset: 3px 2px 2px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.calendar::after {
  left: 5px;
  right: 5px;
  top: 8px;
  height: 1.5px;
  background: currentColor;
}

.search::before {
  left: 3px;
  top: 3px;
  width: 9px;
  height: 9px;
  border: 1.6px solid currentColor;
  border-radius: 999px;
}

.search::after {
  left: 12px;
  top: 12px;
  width: 7px;
  height: 1.6px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.language::before {
  inset: 2px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
}

.language::after {
  left: 4px;
  top: 8px;
  width: 10px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.kpi-grid,
.lower-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 34%),
    var(--panel);
  box-shadow: var(--shadow);
}

.metric-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 158px;
  padding: 26px;
}

.metric-card p {
  margin-bottom: 18px;
  color: var(--text-secondary);
  font-size: 16px;
}

.metric-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 750;
  line-height: 1;
}

.metric-card span:not(.metric-icon) {
  color: var(--muted);
}

.positive {
  color: var(--green) !important;
}

.negative {
  color: var(--red) !important;
}

.metric-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #b7c4d0;
}

.wallet::before {
  left: 15px;
  top: 18px;
  width: 23px;
  height: 16px;
  border: 1.8px solid currentColor;
  border-radius: 4px;
}

.wallet::after {
  left: 27px;
  top: 23px;
  width: 11px;
  height: 8px;
  border: 1.8px solid currentColor;
  border-radius: 4px 2px 2px 4px;
}

.scale::before {
  left: 26px;
  top: 14px;
  width: 2px;
  height: 27px;
  background: currentColor;
}

.scale::after {
  left: 14px;
  top: 20px;
  width: 26px;
  height: 14px;
  border-left: 1.8px solid currentColor;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  border-radius: 0 0 12px 12px;
}

.globe::before {
  inset: 13px;
  border: 1.8px solid currentColor;
  border-radius: 999px;
}

.globe::after {
  left: 15px;
  top: 26px;
  width: 24px;
  height: 1.8px;
  background: currentColor;
  box-shadow: 0 -8px 0 rgba(183, 196, 208, 0.45), 0 8px 0 rgba(183, 196, 208, 0.45);
}

.shield::before {
  left: 15px;
  top: 12px;
  width: 24px;
  height: 29px;
  border: 1.8px solid currentColor;
  border-radius: 12px 12px 16px 16px;
  transform: perspective(32px) rotateX(-10deg);
}

.shield::after {
  left: 23px;
  top: 24px;
  width: 10px;
  height: 6px;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(-45deg);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 26px;
  margin-top: 26px;
}

.panel {
  min-width: 0;
  padding: 24px;
}

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

.panel-header p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.panel-header.compact {
  align-items: center;
  min-height: 34px;
  margin-bottom: 16px;
}

.panel-header.compact h2 {
  font-size: 18px;
}

.more-button {
  width: 30px;
  height: 30px;
  color: #8392a2;
  font-weight: 700;
}

.expand-button::before,
.expand-button::after {
  width: 12px;
  height: 1.7px;
  background: currentColor;
  transform: rotate(45deg);
}

.expand-button::after {
  transform: rotate(-45deg);
}

.chart-panel {
  min-height: 456px;
}

.chart-wrap {
  position: relative;
  height: 322px;
  overflow: hidden;
}

#cashflowChart {
  display: block;
  width: 100%;
  height: 100%;
}

.tooltip-point {
  position: absolute;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--chart-tooltip);
  color: var(--text-inverse);
  font-size: 13px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.tooltip-point.top {
  left: 15%;
  top: 18%;
}

.tooltip-point.bottom {
  left: 51%;
  bottom: 18%;
}

.chart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
  padding: 18px 24px;
  border-radius: var(--radius);
  background: rgba(25, 39, 54, 0.72);
  color: #c5ced9;
}

.chart-summary span:nth-child(2) {
  text-align: center;
}

.chart-summary span:nth-child(3) {
  text-align: right;
}

.insight-panel {
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 32%),
    var(--panel-strong);
}

.insight-panel.expanded {
  grid-column: 1 / -1;
}

.insight-list {
  display: grid;
  gap: 12px;
}

.insight {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 12px;
  width: 100%;
  min-height: 88px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.insight span {
  grid-row: span 2;
  width: 22px;
  height: 22px;
  border-radius: 999px;
}

.insight strong {
  font-size: 15px;
}

.insight small {
  margin-top: 6px;
  color: #d1d8e0;
  line-height: 1.35;
}

.insight.warning {
  border-color: var(--warning);
  background: var(--warning-soft);
}

.insight.warning span {
  background: var(--amber);
  clip-path: polygon(50% 8%, 95% 88%, 5% 88%);
}

.insight.info {
  border-color: var(--info);
  background: var(--info-soft);
}

.insight.info span {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.insight.success {
  border-color: var(--success);
  background: var(--success-soft);
}

.insight.success span {
  background: var(--green);
}

.copilot-box {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  background: var(--bg-surface-secondary);
}

.copilot-box label {
  display: block;
  margin-bottom: 10px;
  color: #cbd7e4;
  font-size: 13px;
  font-weight: 700;
}

.copilot-box div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 8px;
}

.copilot-box input {
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.copilot-box button {
  height: 38px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #64befc, #2ea17f);
  color: #04131d;
  cursor: pointer;
  font-weight: 800;
}

.copilot-box p {
  margin-top: 10px;
  color: #aebdca;
  font-size: 13px;
  line-height: 1.45;
}

.updated {
  margin-top: 14px;
  color: #748090;
  font-size: 13px;
}

.lower-grid {
  margin-top: 26px;
}

.section-page {
  margin-top: 26px;
}

.page-intro {
  margin-bottom: 22px;
}

.page-intro h2 {
  font-size: 24px;
}

.page-intro p {
  max-width: 760px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.daily-update-page .import-panel {
  margin-top: 0;
}

.development-panel {
  display: grid;
  min-height: 230px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.development-panel h3 {
  margin-top: 14px;
  font-size: 18px;
}

.development-panel p {
  max-width: 500px;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.development-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(105, 183, 255, 0.34);
  border-radius: 50%;
  background: rgba(105, 183, 255, 0.09);
  box-shadow: inset 0 0 0 10px rgba(47, 210, 173, 0.05);
}

.import-panel {
  margin-top: 26px;
}

.import-action {
  min-width: 112px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #64befc, #2ea17f);
  color: #04131d;
  cursor: pointer;
  font-weight: 800;
}

.import-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr) minmax(230px, 0.8fr);
  gap: 16px;
}

.upload-zone {
  display: grid;
  min-height: 156px;
  place-items: center;
  padding: 20px;
  border: 1px dashed rgba(105, 183, 255, 0.34);
  border-radius: var(--radius);
  background: rgba(105, 183, 255, 0.06);
  cursor: pointer;
  text-align: center;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-zone strong,
.upload-zone small {
  display: block;
}

.upload-zone small {
  max-width: 270px;
  color: var(--muted);
  line-height: 1.35;
}

.upload-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1.8px solid #88c8ff;
  border-radius: 8px;
}

.upload-icon::before,
.upload-icon::after {
  position: absolute;
  content: "";
}

.upload-icon::before {
  left: 17px;
  top: 9px;
  width: 2px;
  height: 18px;
  background: #88c8ff;
}

.upload-icon::after {
  left: 12px;
  top: 9px;
  width: 10px;
  height: 10px;
  border-left: 2px solid #88c8ff;
  border-top: 2px solid #88c8ff;
  transform: rotate(45deg);
}

.import-steps {
  display: grid;
  gap: 10px;
}

.import-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 12px;
  min-height: 46px;
  padding: 12px;
  border: 1px solid rgba(151, 190, 218, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.import-step span {
  display: grid;
  grid-row: span 2;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd7e4;
  font-weight: 800;
}

.import-step.active {
  border-color: rgba(105, 183, 255, 0.34);
  background: rgba(33, 117, 214, 0.12);
}

.import-step.done span {
  background: var(--green);
  color: #04131d;
}

.import-step small {
  color: var(--muted);
}

.import-result {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.import-result div {
  display: grid;
  min-height: 76px;
  align-content: center;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.import-result span {
  color: #eaf7ff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.import-result small {
  margin-top: 8px;
  color: var(--muted);
}

.import-preview {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--bg-surface-secondary);
  color: var(--text-secondary);
  line-height: 1.45;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.preview-table th,
.preview-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(151, 190, 218, 0.12);
  text-align: left;
}

.preview-table th {
  color: #e7f3ff;
}

.import-warning {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
}

.list,
.currency-list,
.timeline,
.receivables {
  display: grid;
  gap: 10px;
}

.row,
.currency-list > div,
.timeline > div,
.receivables > div {
  display: grid;
  align-items: center;
  min-height: 66px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 10px 12px;
}

.row strong,
.row small,
.currency-list strong,
.currency-list small,
.timeline strong,
.timeline small,
.receivables strong,
.receivables small {
  display: block;
}

.row small,
.currency-list small,
.timeline small,
.receivables small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.row > span:last-child,
.currency-list > div > span:last-child,
.receivables > div > strong {
  text-align: right;
}

.bank-logo,
.currency,
.timeline-icon,
.client-badge {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  color: white;
  font-weight: 800;
}

.red,
.alpha {
  background: linear-gradient(135deg, #f25565, #b91643);
}

.blue,
.beta {
  background: linear-gradient(135deg, #64b9ff, #285fd0);
}

.navy {
  background: linear-gradient(135deg, #4779d7, #193b7a);
}

.gamma {
  background: linear-gradient(135deg, #ffd05b, #d2672e);
}

.currency-list > div {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 10px 12px;
}

.eur {
  background: linear-gradient(135deg, #2ed0d1, #0b738c);
}

.usd {
  background: linear-gradient(135deg, #6aa6ff, #323bc2);
}

.chf {
  background: linear-gradient(135deg, #ffcf5b, #b54a2e);
}

.gbp,
.pln,
.czk,
.ron {
  background: linear-gradient(135deg, #7a91ff, #33406f);
}

.tag {
  display: inline-block !important;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #07111a !important;
  font-size: 11px !important;
  font-weight: 800;
}

.tag.risk {
  background: var(--amber);
}

.tag.medium {
  background: #e8c173;
}

.tag.ok {
  background: var(--green);
}

.panel-total {
  margin-top: 14px;
  color: #9ba7b5;
}

.timeline > div {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 11px 12px;
}

.timeline-icon {
  background: rgba(255, 255, 255, 0.09);
  color: #a6c1d8;
}

.incoming {
  color: var(--green);
}

.loan {
  color: var(--blue);
}

.receivables > div {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 11px 12px;
}

.empty-row {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 14px;
  border: 1px dashed var(--border-default);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--bg-surface-secondary);
}

.profile-popover {
  position: fixed;
  left: 204px;
  bottom: 72px;
  z-index: 40;
  width: min(320px, calc(100vw - 32px));
  padding: 18px;
  border: 1px solid rgba(151, 190, 218, 0.24);
  border-radius: var(--radius);
  background: rgba(15, 28, 42, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.profile-popover::after {
  position: absolute;
  left: 28px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(151, 190, 218, 0.24);
  border-bottom: 1px solid rgba(151, 190, 218, 0.24);
  background: rgba(15, 28, 42, 0.98);
  content: "";
  transform: rotate(45deg);
}

.profile-popover-head,
.account-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-popover-head img,
.account-card img {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.profile-popover-head strong,
.profile-popover-head small,
.account-card strong,
.account-card small {
  display: block;
}

.profile-popover-head small,
.account-card small {
  margin-top: 4px;
  color: var(--blue);
}

.profile-popover dl {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-popover dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.profile-popover dt {
  color: var(--muted);
}

.profile-popover dd {
  margin: 0;
  color: #dbe5ef;
  text-align: right;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(2, 8, 14, 0.52);
  backdrop-filter: blur(2px);
}

.settings-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(560px, 100vw);
  padding: 30px 26px 22px;
  border-left: 1px solid rgba(151, 190, 218, 0.24);
  background:
    linear-gradient(180deg, rgba(49, 123, 173, 0.14), transparent 30%),
    rgba(9, 19, 31, 0.98);
  box-shadow: -26px 0 90px rgba(0, 0, 0, 0.44);
  transform: translateX(104%);
  transition: transform 180ms ease;
}

.settings-drawer.open {
  transform: translateX(0);
}

.drawer-header,
.drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.drawer-header {
  margin-bottom: 28px;
}

.drawer-header h2 {
  font-size: 26px;
}

.drawer-header p {
  margin-top: 8px;
  color: var(--muted);
}

.drawer-close {
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #dce6ef;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.drawer-close:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.settings-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  min-height: 0;
  flex: 1;
}

.settings-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.settings-tab {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: #b9c6d3;
  cursor: pointer;
  text-align: left;
}

.settings-tab:hover,
.settings-tab.active {
  border-color: rgba(117, 192, 244, 0.18);
  background: rgba(105, 183, 255, 0.12);
  color: #eef8ff;
}

.settings-sections {
  min-width: 0;
  overflow: auto;
  padding-right: 4px;
}

.settings-section {
  display: none;
}

.settings-section.active {
  display: grid;
  gap: 16px;
}

.settings-section h3 {
  margin: 0;
  font-size: 18px;
}

.settings-section p {
  color: var(--muted);
  line-height: 1.45;
}

.account-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.setting-field,
.setting-check {
  display: grid;
  gap: 8px;
}

.setting-field span,
.setting-check span {
  color: #dbe5ef;
  font-weight: 700;
}

.setting-field select,
.setting-field input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
}

.setting-check {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  min-height: 52px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.setting-check input {
  appearance: none;
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
  cursor: pointer;
}

.setting-check input::after {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  content: "";
  transition: transform 160ms ease;
}

.setting-check input:checked {
  background: linear-gradient(135deg, #64befc, #2ea17f);
}

.setting-check input:checked::after {
  transform: translateX(20px);
}

.settings-note {
  padding: 12px;
  border: 1px solid rgba(242, 185, 76, 0.25);
  border-radius: var(--radius);
  background: rgba(114, 76, 23, 0.18);
}

.drawer-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.primary-action,
.secondary-action {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.primary-action {
  border: 0;
  background: linear-gradient(135deg, #64befc, #2ea17f);
  color: #04131d;
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: #dce6ef;
}

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 30% 20%, rgba(105, 183, 255, 0.16), transparent 24rem),
    rgba(3, 10, 17, 0.96);
}

.lock-card {
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.compact-brand {
  margin-bottom: 24px;
}

.lock-card h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.lock-card p {
  margin-bottom: 20px;
  color: var(--muted);
  line-height: 1.45;
}

[data-theme="light"] .brand,
[data-theme="light"] .profile-popover dd,
[data-theme="light"] .setting-field span,
[data-theme="light"] .setting-check span {
  color: var(--text-primary);
}

[data-theme="light"] .sidebar .brand,
[data-theme="light"] .sidebar .profile,
[data-theme="light"] .sidebar .profile strong,
[data-theme="light"] .sidebar .nav-item.active {
  color: #eaf7ff;
}

[data-theme="light"] .sidebar .brand small,
[data-theme="light"] .sidebar .profile small {
  color: #d3d9e2;
}

[data-theme="light"] .sidebar .nav-item.active {
  border-color: rgba(117, 192, 244, 0.28);
  background: linear-gradient(90deg, rgba(31, 94, 255, 0.48), rgba(25, 47, 66, 0.34));
}

[data-theme="light"] .sidebar .nav-item:hover,
[data-theme="light"] .sidebar .profile:hover,
[data-theme="light"] .sidebar .profile.active {
  border-color: rgba(117, 192, 244, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

[data-theme="light"] .brand small,
[data-theme="light"] .profile small,
[data-theme="light"] .row small,
[data-theme="light"] .currency-list small,
[data-theme="light"] .timeline small,
[data-theme="light"] .receivables small,
[data-theme="light"] .updated,
[data-theme="light"] .panel-total {
  color: var(--text-muted);
}

[data-theme="light"] .row,
[data-theme="light"] .currency-list > div,
[data-theme="light"] .timeline > div,
[data-theme="light"] .receivables > div,
[data-theme="light"] .import-result div,
[data-theme="light"] .import-step,
[data-theme="light"] .account-card {
  background: var(--bg-surface-secondary);
}

[data-theme="light"] .upload-zone,
[data-theme="light"] .import-step.active {
  background: var(--accent-soft);
  border-color: var(--border-strong);
}

[data-theme="light"] .setting-field select,
[data-theme="light"] .setting-field input,
[data-theme="light"] .secondary-action,
[data-theme="light"] .drawer-close {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

[data-theme="light"] .select-control,
[data-theme="light"] .date-control,
[data-theme="light"] .search-control {
  border-color: #cbd9e6;
  background: #ffffff;
}

[data-theme="light"] .select-control:hover,
[data-theme="light"] .date-control:hover,
[data-theme="light"] .search-control:hover,
[data-theme="light"] .select-control:focus-within,
[data-theme="light"] .date-control:focus-within,
[data-theme="light"] .search-control:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 94, 255, 0.12);
}

[data-theme="light"] .insight-panel {
  border-color: #cfdde9;
  background: linear-gradient(180deg, rgba(31, 94, 255, 0.07), transparent 32%), var(--bg-surface-secondary);
}

[data-theme="light"] .settings-drawer,
[data-theme="light"] .profile-popover,
[data-theme="light"] .lock-card {
  background: var(--bg-elevated);
}

[data-theme="light"] .lock-screen,
[data-theme="light"] .drawer-backdrop {
  background: rgba(15, 23, 42, 0.32);
}

[data-theme="light"] .insight small,
[data-theme="light"] .copilot-box label,
[data-theme="light"] .preview-table th {
  color: var(--text-secondary);
}

@media (max-width: 1420px) {
  .app-shell {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .workspace {
    padding: 24px;
  }

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

  .top-actions {
    position: absolute;
    right: 24px;
    top: 24px;
  }

  .theme-menu {
    right: 94px;
    top: 70px;
  }

  .controls {
    max-width: 790px;
  }

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

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

@media (max-width: 860px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px 0 0;
  }

  .brand {
    padding: 0 16px;
  }

  .nav-list {
    display: flex;
    gap: 8px;
    min-width: 0;
    margin-top: 14px;
    padding: 0 16px 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .nav-divider {
    flex: 0 0 1px;
    width: 1px;
    height: 30px;
    margin: 5px 2px;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
    min-height: 42px;
    padding: 0 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .nav-item .icon {
    display: block;
    width: 18px;
    height: 18px;
  }

  .sidebar-footer {
    display: flex;
    gap: 8px;
    margin-top: 0;
    padding: 0 16px 12px;
    border-top: 1px solid var(--line);
  }

  .sidebar-footer .nav-item {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    gap: 6px;
    margin: 10px 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .profile {
    flex: 0 0 44px;
    justify-content: center;
    min-height: 42px;
    padding: 0 10px;
    margin-top: 10px;
  }

  .profile img {
    width: 30px;
    height: 30px;
  }

  .profile span {
    display: none;
  }

  .profile-popover {
    left: 16px;
    right: 16px;
    bottom: 86px;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-right: 0;
    padding-bottom: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workspace {
    padding: 20px 16px 28px;
  }

  .topbar {
    padding-top: 52px;
    margin-bottom: 26px;
  }

  .top-actions {
    right: 0;
    top: 0;
  }

  .theme-menu {
    right: 82px;
    top: 44px;
  }

  .controls,
  .kpi-grid,
  .lower-grid,
  .import-grid,
  .import-result,
  .chart-summary {
    grid-template-columns: 1fr;
  }

  .chart-summary span,
  .chart-summary span:nth-child(2),
  .chart-summary span:nth-child(3) {
    text-align: left;
  }

  .metric-card {
    min-height: 132px;
    padding: 20px;
  }

  .panel {
    padding: 18px;
  }

  .chart-wrap {
    height: 260px;
  }
}

@media (max-width: 520px) {
  .brand strong {
    font-size: 18px;
  }

  .nav-list {
    padding-bottom: 10px;
  }

  .top-actions {
    display: none;
  }

  .topbar {
    padding-top: 0;
  }

  .sidebar-footer .nav-item {
    font-size: 11px;
  }

  .settings-drawer {
    padding: 22px 16px 18px;
  }

  .settings-tabs {
    grid-template-columns: 1fr;
  }

  .drawer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-card strong {
    font-size: 28px;
  }

  .row,
  .currency-list > div,
  .timeline > div,
  .receivables > div {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .row > span:last-child,
  .currency-list > div > span:last-child,
  .timeline > div > strong,
  .receivables > div > strong {
    grid-column: 2;
    text-align: left;
  }
}
