﻿/* v3.0 pilot UI-kit */

body.ui-v3 {
  --v3-bg-main: #070d19;
  --v3-bg-side: #050b16;
  --v3-bg-card: #111b2e;
  --v3-bg-card-soft: #0f1a31;
  --v3-bg-card-strong: #16233d;
  --v3-text-main: #e7edf9;
  --v3-text-muted: #8ea0c4;
  --v3-border: rgba(255, 255, 255, 0.1);
  --v3-border-soft: rgba(255, 255, 255, 0.06);
  --v3-accent: #c04df9;
  --v3-accent-2: #3d7dff;
  --v3-green: #22c55e;
  --v3-red: #ef4444;
  --v3-shadow-md: 0 12px 30px rgba(1, 6, 18, 0.42);
  --v3-shadow-lg: 0 18px 38px rgba(1, 6, 18, 0.58);
  --v3-radius-sm: 12px;
  --v3-radius-md: 18px;
  --v3-radius-lg: 22px;
  --v3-control-h: 42px;
  --v3-z-dropdown: 1480;
  --v3-z-popover: 1540;
  --v3-z-modal-backdrop: 1700;
  --v3-z-modal: 1710;
  --v3-z-tooltip: 1760;
  --v3-z-toast: 1800;
  color: var(--v3-text-main);
  background:
    radial-gradient(1200px 700px at -8% -22%, rgba(192, 77, 249, 0.2), transparent 62%),
    radial-gradient(1020px 680px at 104% -25%, rgba(61, 125, 255, 0.18), transparent 60%),
    linear-gradient(180deg, #040915 0%, #060d1a 45%, #070d19 100%);
}

body.ui-v3 .app-content {
  position: relative;
  z-index: 1;
}

body.ui-v3 * {
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

body.ui-v3 .app-content::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.6), transparent 82%);
  z-index: 0;
}

body.ui-v3 .panel,
body.ui-v3 .summary-card,
body.ui-v3 .usage-card,
body.ui-v3 .ai-metric,
body.ui-v3 .import-kpi-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--v3-border-soft);
  background: linear-gradient(180deg, rgba(20, 30, 55, 0.9), rgba(10, 15, 30, 0.9));
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px rgba(255, 255, 255, 0.05);
  transition:
    transform 250ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1),
    border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

body.ui-v3 .panel::before,
body.ui-v3 .summary-card::before,
body.ui-v3 .usage-card::before,
body.ui-v3 .ai-metric::before,
body.ui-v3 .import-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%);
  opacity: 0.48;
  pointer-events: none;
}

body.ui-v3 .panel::after,
body.ui-v3 .summary-card::after,
body.ui-v3 .usage-card::after,
body.ui-v3 .ai-metric::after,
body.ui-v3 .import-kpi-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: radial-gradient(circle at 12% 0%, rgba(192, 77, 249, 0.1), transparent 52%);
  pointer-events: none;
}

body.ui-v3 .panel:hover,
body.ui-v3 .summary-card:hover,
body.ui-v3 .usage-card:hover,
body.ui-v3 .ai-metric:hover,
body.ui-v3 .import-kpi-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(99, 102, 241, 0.15);
  transform: translateY(-6px);
}

body.ui-v3 .text-muted {
  color: var(--v3-text-muted) !important;
}

body.ui-v3 .sidebar {
  width: 250px;
  min-width: 250px;
  flex: 0 0 250px;
  background: linear-gradient(180deg, #0b1020, #0a0f1a);
  border-right: 1px solid var(--v3-border-soft);
  padding-inline: 12px;
}

body.ui-v3 .sidebar .logo {
  color: #f4f8ff;
  margin: 10px 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
}

body.ui-v3 .sidebar .logo i {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(192, 77, 249, 0.28), rgba(61, 125, 255, 0.22));
}

body.ui-v3 .sidebar-rail-toggle {
  width: 100%;
  min-height: 38px;
  border-radius: 12px !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.03);
  color: #dbe6ff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

body.ui-v3 .sidebar-rail-toggle:hover {
  border-color: rgba(255, 255, 255, 0.24) !important;
  background: rgba(255, 255, 255, 0.07);
}

body.ui-v3 .sidebar-rail-toggle .sidebar-rail-toggle__label {
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

body.ui-v3 .sidebar-nav {
  gap: 8px;
}

body.ui-v3 .sidebar-nav a {
  position: relative;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 13px;
  gap: 10px;
  border: 1px solid transparent;
  color: var(--v3-text-muted);
  transition:
    background 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms cubic-bezier(0.22, 1, 0.36, 1),
    color 260ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.ui-v3 .sidebar-nav a i {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #d8e2fb;
  background: rgba(255, 255, 255, 0.035);
}

body.ui-v3 .sidebar-nav a > span:not(.sidebar-nav-badge) {
  flex: 1;
  min-width: 0;
}

body.ui-v3 .sidebar-nav-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 8px 14px rgba(239, 68, 68, 0.28);
}

body.ui-v3 .sidebar-nav a:hover {
  color: #f8fbff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

body.ui-v3 .sidebar-nav a.active {
  color: #fff;
  border-color: rgba(192, 77, 249, 0.4);
  background: linear-gradient(135deg, rgba(192, 77, 249, 0.26), rgba(61, 125, 255, 0.2));
  box-shadow: 0 0 12px rgba(140, 80, 255, 0.5);
}

body.ui-v3 .sidebar-nav a.active i {
  background: rgba(255, 255, 255, 0.14);
}

body.ui-v3 .app-header {
  border-bottom: 1px solid var(--v3-border-soft);
  background: rgba(7, 12, 24, 0.88);
  backdrop-filter: blur(12px);
}

body.ui-v3 .app-header .sidebar-toggle-btn {
  display: none !important;
}

body.ui-v3 .header-left h1 {
  color: #f5f8ff;
}

body.ui-v3 .nav-compact {
  gap: 8px;
  align-items: center;
}

body.ui-v3 .nav-compact .dropdown > button,
body.ui-v3 .nav-compact [data-currency-select],
body.ui-v3 .nav-compact #header-container .btn,
body.ui-v3 .nav-compact #header-container .form-select,
body.ui-v3 .nav-compact .btn-theme {
  min-height: var(--v3-control-h);
  height: var(--v3-control-h);
  border-radius: 12px !important;
  border-color: var(--v3-border-soft) !important;
  background: rgba(255, 255, 255, 0.03);
  color: var(--v3-text-main);
  box-shadow: none !important;
  transition:
    border-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

body.ui-v3 .nav-compact #header-container #accountBlock,
body.ui-v3 .nav-compact #header-container #authBlock {
  display: inline-flex;
  align-items: center;
  gap: 8px !important;
}

body.ui-v3 .nav-compact #header-container #accountSelect {
  min-width: 220px;
}

body.ui-v3 #header-container #accountSelect.visually-hidden {
  display: none !important;
}

body.ui-v3 .nav-compact .dropdown > button:hover,
body.ui-v3 .nav-compact [data-currency-select]:hover,
body.ui-v3 .nav-compact #header-container .btn:hover,
body.ui-v3 .nav-compact #header-container .form-select:hover,
body.ui-v3 .nav-compact .btn-theme:hover {
  border-color: var(--v3-border) !important;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

body.ui-v3 .popover-glass,
body.ui-v3 .app-header .dropdown-menu,
body.ui-v3 #header-container .dropdown-menu {
  position: absolute;
  margin-top: 8px !important;
  padding: 6px;
  min-width: 180px;
  border-radius: 14px;
  border: 1px solid var(--v3-border-soft);
  background: rgba(15, 23, 42, 0.75);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  z-index: var(--v3-z-dropdown) !important;
}

body.ui-v3 .popover-item,
body.ui-v3 .app-header .dropdown-menu .dropdown-item,
body.ui-v3 #header-container .dropdown-menu .dropdown-item {
  border-radius: 10px;
  color: #cbd5f5;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  cursor: pointer;
}

body.ui-v3 .popover-item:hover,
body.ui-v3 .app-header .dropdown-menu .dropdown-item:hover,
body.ui-v3 #header-container .dropdown-menu .dropdown-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

body.ui-v3 .popover-item.active {
  background: linear-gradient(90deg, #6366f1, #a855f7);
  color: #fff;
}

body.ui-v3 #accountSelectPopover {
  display: inline-flex;
}

body.ui-v3 #accountSelectPopover .btn {
  min-width: 248px;
  justify-content: flex-start;
}

body.ui-v3 .account-popover-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.ui-v3 .account-popover-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body.ui-v3 .account-popover-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

body.ui-v3 .account-popover-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

body.ui-v3 .account-popover-check {
  min-width: 14px;
  text-align: right;
  font-weight: 700;
}

body.ui-v3 .report-command-deck {
  padding: 18px;
  border-color: rgba(192, 77, 249, 0.2);
}

body.ui-v3 .report-command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

body.ui-v3 .report-command-eyebrow {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9db0d6;
  font-weight: 700;
}

body.ui-v3 .report-command-title {
  margin: 6px 0 0;
  font-size: 1.07rem;
  font-weight: 600;
  color: #dce7ff;
}

body.ui-v3 .report-command-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.ui-v3 .report-command-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--v3-border-soft);
  background: rgba(255, 255, 255, 0.035);
  color: #d7e3ff;
  font-size: 0.78rem;
  font-weight: 600;
}

body.ui-v3 .report-command-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}

body.ui-v3 .report-command-field .form-label {
  margin-bottom: 7px;
  font-size: 0.72rem;
  color: #9ab0d8;
  letter-spacing: 0.08em;
}

body.ui-v3 .report-command-field-muted {
  opacity: 0;
  pointer-events: none;
}

body.ui-v3 .report-command-field .form-select,
body.ui-v3 .report-command-field .form-control {
  min-height: 46px;
  border-radius: 13px;
  border-color: var(--v3-border-soft);
  background: rgba(255, 255, 255, 0.02);
  color: var(--v3-text-main);
  font-weight: 600;
}

body.ui-v3 .report-command-field .form-select:focus,
body.ui-v3 .report-command-field .form-control:focus {
  border-color: rgba(192, 77, 249, 0.56);
  box-shadow: 0 0 0 0.2rem rgba(192, 77, 249, 0.16);
}

body.ui-v3 .report-command-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.ui-v3 .report-command-actions .btn {
  min-height: 46px;
  border-radius: 13px;
  padding: 0 14px;
  font-weight: 700;
}

body.ui-v3 #report-run {
  border-color: rgba(61, 125, 255, 0.36);
  color: #fff;
  background: linear-gradient(135deg, #2664eb, #3d7dff);
}

body.ui-v3 #report-export-report {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #a73ef8, #d650ed);
}

body.ui-v3 .report-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.ui-v3 .report-kpi-card {
  padding: 18px;
}

body.ui-v3 .report-kpi-card::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 3px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(90deg, rgba(61, 125, 255, 0.7), rgba(192, 77, 249, 0.8));
}

body.ui-v3 .report-kpi-card--income::after {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.8), rgba(52, 211, 153, 0.7));
}

body.ui-v3 .report-kpi-card--expense::after {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.82), rgba(248, 113, 113, 0.78));
}

body.ui-v3 .report-kpi-card--avg::after {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.82), rgba(251, 191, 36, 0.78));
}

body.ui-v3 .report-kpi-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

body.ui-v3 .report-kpi-dot {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  border: 1px solid var(--v3-border-soft);
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c6d7fb;
}

body.ui-v3 .report-kpi-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
}

body.ui-v3 .report-kpi-card h3 {
  margin-top: 9px;
  margin-bottom: 6px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.5px;
}

body.ui-v3 .report-kpi-card--net h3 {
  background: linear-gradient(135deg, #7aa2ff, #d264ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.ui-v3 .report-kpi-card .card-label,
body.ui-v3 .report-kpi-card > p:first-child {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

body.ui-v3 .report-kpi-card .card-value,
body.ui-v3 .report-kpi-card h6 {
  margin-top: 9px;
  margin-bottom: 6px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.5px;
}

body.ui-v3 .report-kpi-card .card-subtitle {
  color: #9eb1d7;
  font-size: 0.8rem;
  margin: 0;
}

body.ui-v3 .report-kpi-card .card-icon {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  border: 1px solid var(--v3-border-soft);
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c6d7fb;
}

body.ui-v3 .report-kpi-hint {
  color: #9eb1d7;
  font-size: 0.8rem;
}

body.ui-v3 .report-focus-card {
  padding: 18px;
  border-color: rgba(120, 154, 223, 0.2);
  box-shadow: 0 20px 42px rgba(2, 9, 24, 0.52), 0 0 0 1px rgba(61, 125, 255, 0.08);
}

body.ui-v3 .report-focus-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

body.ui-v3 .report-focus-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.ui-v3 .report-focus-stat {
  min-width: 98px;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--v3-border-soft);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 10px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
}

body.ui-v3 .report-focus-stat span {
  font-size: 0.7rem;
  color: #9db1d8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.ui-v3 .report-focus-stat strong {
  font-size: 1rem;
  color: #eaf1ff;
}

body.ui-v3 .report-focus-stat strong.is-empty {
  color: #9db1d8;
}

body.ui-v3 .report-focus-frame {
  border-radius: 15px;
  border: 1px solid var(--v3-border-soft);
  padding: 10px;
  background: linear-gradient(180deg, rgba(12, 22, 41, 0.86), rgba(13, 20, 35, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -18px 30px rgba(3, 9, 24, 0.4);
}

body.ui-v3 .report-chart-wrap {
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: radial-gradient(circle at 50% 0%, rgba(61, 125, 255, 0.09), transparent 60%), rgba(14, 23, 41, 0.9);
  padding: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 26px rgba(1, 8, 22, 0.4);
}

body.ui-v3 .report-chart-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 86% 8%, rgba(192, 77, 249, 0.12), transparent 34%);
}

body.ui-v3 .report-chart-wrap--line {
  min-height: 340px;
}

body.ui-v3 .report-category-panel {
  padding: 18px;
}

body.ui-v3 .report-category-layout {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 12px;
  align-items: stretch;
  overflow: visible;
}

body.ui-v3 .report-category-chart .report-chart-wrap--categories {
  min-height: 340px;
  height: 100%;
}

body.ui-v3 .report-category-cards-wrap {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  max-height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px;
  overflow: hidden;
}

body.ui-v3 .report-category-cards-head {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9db1d8;
  font-weight: 600;
  padding: 2px 4px 0;
}

body.ui-v3 .report-category-cards-scroll {
  min-height: 0;
  overflow-y: auto;
  overflow-x: visible;
  padding-right: 2px;
}

body.ui-v3 .report-category-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-height: none;
  overflow: visible;
  padding-right: 4px;
}

body.ui-v3 .report-category-empty {
  border-radius: 12px;
  border: 1px dashed var(--v3-border-soft);
  color: var(--v3-text-muted);
  font-size: 0.85rem;
  padding: 14px;
  text-align: center;
}

body.ui-v3 .report-category-skeleton {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  padding: 12px;
}

body.ui-v3 .report-category-skeleton__title,
body.ui-v3 .report-category-skeleton__row {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.08));
}

body.ui-v3 .report-category-skeleton__title {
  width: 52%;
  margin-bottom: 10px;
}

body.ui-v3 .report-category-skeleton__row {
  width: 84%;
  margin-bottom: 12px;
}

body.ui-v3 .report-category-skeleton__bar {
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(34, 197, 94, 0.46) 0%, rgba(34, 197, 94, 0.46) 58%, rgba(239, 68, 68, 0.46) 58%, rgba(239, 68, 68, 0.46) 100%);
}

body.ui-v3 .report-category-card {
  width: 100%;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(21, 32, 54, 0.92), rgba(14, 24, 44, 0.92));
  color: #e8f0ff;
  padding: 12px;
  text-align: left;
  display: grid;
  gap: 8px;
  transition:
    border-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.ui-v3 .report-category-card:hover,
body.ui-v3 .report-category-card.is-active {
  z-index: 5;
  border-color: rgba(192, 77, 249, 0.52);
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(7, 14, 30, 0.36);
}

body.ui-v3 .report-category-accordion {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

body.ui-v3 .report-category-accordion__toggle {
  width: 100%;
  border: none;
  background: transparent;
  color: #eaf1ff;
  min-height: 50px;
  border-radius: 14px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

body.ui-v3 .report-category-accordion__toggle:hover {
  background: rgba(255, 255, 255, 0.04);
}

body.ui-v3 .report-category-accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

body.ui-v3 #report-category-accordion-icon {
  font-size: 1.2rem;
  color: #b2c4e8;
}

body.ui-v3 #report-category-accordion-icon.is-open {
  transform: rotate(180deg);
}

body.ui-v3 .report-category-card__head,
body.ui-v3 .report-category-card__values,
body.ui-v3 .report-category-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

body.ui-v3 .report-category-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f4f8ff;
}

body.ui-v3 .report-category-card__turnover {
  color: #aebfe2;
  font-size: 0.76rem;
  white-space: nowrap;
}

body.ui-v3 .report-category-card__values {
  font-size: 0.75rem;
}

body.ui-v3 .report-category-card__income {
  color: #44d58f;
}

body.ui-v3 .report-category-card__expense {
  color: #ff7878;
}

body.ui-v3 .report-category-card__bar-track {
  display: flex;
  align-items: center;
  gap: 0;
  height: 8px;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

body.ui-v3 .report-category-card__bar-income,
body.ui-v3 .report-category-card__bar-expense {
  display: block;
  height: 100%;
}

body.ui-v3 .report-category-card__bar-income {
  background: #22c55e;
}

body.ui-v3 .report-category-card__bar-expense {
  background: #ef4444;
}

body.ui-v3 .report-category-card__meta {
  font-size: 0.72rem;
  color: #97a9cc;
}

body.ui-v3 .report-category-detail {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(18, 30, 52, 0.9), rgba(13, 24, 43, 0.9));
  padding: 12px;
}

body.ui-v3 .report-category-detail.is-empty {
  opacity: 0.96;
}

body.ui-v3 .report-category-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

body.ui-v3 .report-category-detail__name {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(192, 77, 249, 0.38);
  color: #f2e9ff;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 700;
}

body.ui-v3 .report-category-detail__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

body.ui-v3 .report-category-detail__metric {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 4px;
}

body.ui-v3 .report-category-detail__metric span {
  font-size: 0.7rem;
  color: #9db0d8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.ui-v3 .report-category-detail__metric strong {
  color: #f4f8ff;
  font-size: 0.95rem;
}

body.ui-v3 .report-category-detail__caption {
  margin: 0 0 8px;
  color: #9eb1d6;
  font-size: 0.78rem;
}

body.ui-v3 .report-category-detail__empty {
  border: 1px dashed var(--v3-border-soft);
  border-radius: 10px;
  color: var(--v3-text-muted);
  text-align: center;
  font-size: 0.8rem;
  padding: 10px;
}

body.ui-v3 .report-gap-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.ui-v3 .report-gap-empty {
  border-radius: 11px;
  border: 1px dashed var(--v3-border-soft);
  color: var(--v3-text-muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 10px;
}

body.ui-v3 .report-gap-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.022);
  color: #dce7ff;
  text-align: left;
  transition:
    border-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    background 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.ui-v3 .report-gap-card.is-active,
body.ui-v3 .report-gap-card:hover {
  border-color: rgba(239, 68, 68, 0.45);
  transform: translateY(-6px);
  background: rgba(239, 68, 68, 0.08);
}

body.ui-v3 .loss-item {
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

body.ui-v3 .category-operations {
  max-height: 400px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.ui-v3 #reports-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #96a8ca;
  border-bottom: none;
  font-weight: 500;
}

body.ui-v3 .table-header {
  color: #64748b;
  font-weight: 500;
}

body.ui-v3 .table-text {
  color: #1e293b;
}

body.ui-v3 #reports-table td {
  color: #dfe7fa;
  border-color: transparent;
  font-size: 0.88rem;
}

body.ui-v3 #reports-table {
  border-collapse: separate;
  border-spacing: 0 8px;
}

body.ui-v3 .table-row td {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.ui-v3 #reports-table tbody tr.report-table-row td {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.ui-v3 #reports-table tbody tr.report-table-row td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

body.ui-v3 #reports-table tbody tr.report-table-row td:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

body.ui-v3 #reports-table tbody tr.report-table-row:hover td {
  background: rgba(255, 255, 255, 0.08);
}

body.ui-v3 .modal-content {
  border-radius: var(--v3-radius-lg);
  border: 1px solid var(--v3-border);
  color: var(--v3-text-main);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow: var(--v3-shadow-lg);
}

body.ui-v3 .modal-header,
body.ui-v3 .modal-footer {
  border-color: var(--v3-border-soft);
}

body.ui-v3 .modal-body .form-control,
body.ui-v3 .modal-body .form-select {
  border-radius: 12px;
  border-color: var(--v3-border-soft);
  background: rgba(255, 255, 255, 0.03);
  color: var(--v3-text-main);
}

body.ui-v3 .modal-body .form-control:focus,
body.ui-v3 .modal-body .form-select:focus {
  border-color: rgba(192, 77, 249, 0.56);
  box-shadow: 0 0 0 0.18rem rgba(192, 77, 249, 0.16);
}

body.ui-v3 .account-scope-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 10px;
  margin-bottom: 8px;
}

body.ui-v3 .dropdown-menu {
  z-index: var(--v3-z-dropdown) !important;
}

body.ui-v3 .popover {
  z-index: var(--v3-z-popover) !important;
}

body.ui-v3 .tooltip {
  z-index: var(--v3-z-tooltip) !important;
}

body.ui-v3 .modal-backdrop {
  z-index: var(--v3-z-modal-backdrop) !important;
}

body.ui-v3 .modal {
  z-index: var(--v3-z-modal) !important;
}

body.ui-v3 #alert-container {
  z-index: var(--v3-z-toast) !important;
}

:root:not([data-theme="dark"]) body.ui-v3 {
  --v3-bg-main: #f1f5f9;
  --v3-bg-side: #f8fafc;
  --v3-bg-card: #ffffff;
  --v3-text-main: #0f172a;
  --v3-text-muted: #475569;
  --v3-border: rgba(15, 23, 42, 0.16);
  --v3-border-soft: rgba(15, 23, 42, 0.1);
  --v3-shadow-md: 0 12px 24px rgba(30, 52, 95, 0.12);
  --v3-shadow-lg: 0 18px 38px rgba(30, 52, 95, 0.2);
  color: var(--v3-text-main);
  background:
    radial-gradient(1200px 720px at -8% -22%, rgba(192, 77, 249, 0.12), transparent 62%),
    radial-gradient(980px 700px at 104% -18%, rgba(61, 125, 255, 0.1), transparent 60%),
    linear-gradient(180deg, #f3f7ff 0%, #edf3ff 54%, #eaf1fd 100%);
}

:root:not([data-theme="dark"]) body.ui-v3 h1,
:root:not([data-theme="dark"]) body.ui-v3 h2,
:root:not([data-theme="dark"]) body.ui-v3 h3 {
  color: #0f172a;
}

:root:not([data-theme="dark"]) body.ui-v3 .app-content::before {
  background-image:
    linear-gradient(rgba(29, 49, 89, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 49, 89, 0.03) 1px, transparent 1px);
}

:root:not([data-theme="dark"]) body.ui-v3 .panel,
:root:not([data-theme="dark"]) body.ui-v3 .summary-card,
:root:not([data-theme="dark"]) body.ui-v3 .usage-card,
:root:not([data-theme="dark"]) body.ui-v3 .ai-metric,
:root:not([data-theme="dark"]) body.ui-v3 .import-kpi-card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.96));
  border-color: rgba(24, 37, 63, 0.12);
}

:root:not([data-theme="dark"]) body.ui-v3 .panel::before,
:root:not([data-theme="dark"]) body.ui-v3 .summary-card::before,
:root:not([data-theme="dark"]) body.ui-v3 .usage-card::before,
:root:not([data-theme="dark"]) body.ui-v3 .ai-metric::before,
:root:not([data-theme="dark"]) body.ui-v3 .import-kpi-card::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), transparent 45%);
}

:root:not([data-theme="dark"]) body.ui-v3 .panel::after,
:root:not([data-theme="dark"]) body.ui-v3 .summary-card::after,
:root:not([data-theme="dark"]) body.ui-v3 .usage-card::after,
:root:not([data-theme="dark"]) body.ui-v3 .ai-metric::after,
:root:not([data-theme="dark"]) body.ui-v3 .import-kpi-card::after {
  border-color: rgba(24, 37, 63, 0.08);
  background: radial-gradient(circle at 10% 0%, rgba(61, 125, 255, 0.08), transparent 52%);
}

:root:not([data-theme="dark"]) body.ui-v3 .sidebar {
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(241, 247, 255, 0.98));
  border-right-color: rgba(24, 37, 63, 0.12);
}

:root:not([data-theme="dark"]) body.ui-v3 .sidebar .logo {
  border-color: rgba(24, 37, 63, 0.16);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.98));
}

:root:not([data-theme="dark"]) body.ui-v3 .sidebar-rail-toggle {
  border-color: rgba(24, 37, 63, 0.16) !important;
  background: rgba(255, 255, 255, 0.9);
  color: #1e2f55;
}

:root:not([data-theme="dark"]) body.ui-v3 .sidebar-rail-toggle:hover {
  border-color: rgba(24, 37, 63, 0.24) !important;
  background: rgba(238, 247, 255, 0.98);
}

:root:not([data-theme="dark"]) body.ui-v3 .sidebar .logo,
:root:not([data-theme="dark"]) body.ui-v3 .sidebar-nav a,
:root:not([data-theme="dark"]) body.ui-v3 .header-left h1 {
  color: #17253f;
}

:root:not([data-theme="dark"]) body.ui-v3 .sidebar-nav a i {
  color: #405988;
  background: rgba(61, 125, 255, 0.08);
}

:root:not([data-theme="dark"]) body.ui-v3 .sidebar-nav a:hover {
  color: #17253f;
  border-color: rgba(24, 37, 63, 0.2);
  background: rgba(61, 125, 255, 0.08);
}

:root:not([data-theme="dark"]) body.ui-v3 .sidebar-nav-badge {
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

:root:not([data-theme="dark"]) body.ui-v3 .app-header {
  background: rgba(248, 252, 255, 0.9);
  border-bottom-color: rgba(24, 37, 63, 0.1);
}

:root:not([data-theme="dark"]) body.ui-v3 .nav-compact .dropdown > button,
:root:not([data-theme="dark"]) body.ui-v3 .nav-compact [data-currency-select],
:root:not([data-theme="dark"]) body.ui-v3 .nav-compact #header-container .btn,
:root:not([data-theme="dark"]) body.ui-v3 .nav-compact #header-container .form-select,
:root:not([data-theme="dark"]) body.ui-v3 .nav-compact .btn-theme {
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

:root:not([data-theme="dark"]) body.ui-v3 .popover-glass,
:root:not([data-theme="dark"]) body.ui-v3 .app-header .dropdown-menu,
:root:not([data-theme="dark"]) body.ui-v3 #header-container .dropdown-menu {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.18),
    inset 0 1px rgba(255, 255, 255, 0.9);
}

:root:not([data-theme="dark"]) body.ui-v3 .popover-item {
  color: #334155;
}

:root:not([data-theme="dark"]) body.ui-v3 .popover-item:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.08);
}

:root:not([data-theme="dark"]) body.ui-v3 .account-popover-chip {
  border-color: rgba(15, 23, 42, 0.14);
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

:root:not([data-theme="dark"]) body.ui-v3 .app-header .dropdown-menu .dropdown-item,
:root:not([data-theme="dark"]) body.ui-v3 #header-container .dropdown-menu .dropdown-item {
  color: #24365c;
}

:root:not([data-theme="dark"]) body.ui-v3 .report-command-field .form-select,
:root:not([data-theme="dark"]) body.ui-v3 .report-command-field .form-control,
:root:not([data-theme="dark"]) body.ui-v3 .report-command-badge,
:root:not([data-theme="dark"]) body.ui-v3 .report-focus-stat {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(24, 37, 63, 0.14);
  color: #1f3157;
}

:root:not([data-theme="dark"]) body.ui-v3 .report-kpi-hint,
:root:not([data-theme="dark"]) body.ui-v3 .report-kpi-label,
:root:not([data-theme="dark"]) body.ui-v3 .report-kpi-card .card-label,
:root:not([data-theme="dark"]) body.ui-v3 .report-kpi-card .card-subtitle,
:root:not([data-theme="dark"]) body.ui-v3 .report-focus-stat span,
:root:not([data-theme="dark"]) body.ui-v3 .report-category-card__meta,
:root:not([data-theme="dark"]) body.ui-v3 .report-category-detail__caption,
:root:not([data-theme="dark"]) body.ui-v3 .text-muted {
  color: #475569 !important;
}

:root:not([data-theme="dark"]) body.ui-v3 .report-focus-frame,
:root:not([data-theme="dark"]) body.ui-v3 .report-chart-wrap,
:root:not([data-theme="dark"]) body.ui-v3 .report-category-card,
:root:not([data-theme="dark"]) body.ui-v3 .report-category-cards-wrap,
:root:not([data-theme="dark"]) body.ui-v3 .report-category-detail,
:root:not([data-theme="dark"]) body.ui-v3 .report-gap-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.96));
  border-color: rgba(24, 37, 63, 0.12);
  color: #1d2f54;
}

:root:not([data-theme="dark"]) body.ui-v3 .report-category-cards-head {
  color: #5f7296;
}

:root:not([data-theme="dark"]) body.ui-v3 .category-operations {
  border-color: rgba(15, 23, 42, 0.08);
}

:root:not([data-theme="dark"]) body.ui-v3 .report-chart-wrap {
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06), 0 8px 20px rgba(15, 23, 42, 0.1);
}

:root:not([data-theme="dark"]) body.ui-v3 #reports-table thead th {
  color: #66789c;
  border-bottom-color: rgba(24, 37, 63, 0.1);
}

:root:not([data-theme="dark"]) body.ui-v3 #reports-table td {
  color: #1e293b;
  border-color: transparent;
}

:root:not([data-theme="dark"]) body.ui-v3 #reports-table tbody tr.report-table-row td {
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

:root:not([data-theme="dark"]) body.ui-v3 #reports-table tbody tr.report-table-row td:first-child {
  border-left: 1px solid rgba(15, 23, 42, 0.08);
}

:root:not([data-theme="dark"]) body.ui-v3 #reports-table tbody tr.report-table-row td:last-child {
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}

:root:not([data-theme="dark"]) body.ui-v3 #reports-table tbody tr.report-table-row:hover td {
  background: #f8fafc;
}

:root:not([data-theme="dark"]) body.ui-v3 .modal-content {
  border-color: rgba(24, 37, 63, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 255, 0.99));
  color: #1e3157;
}

