:root {
  --bg: #eef3fb;
  --bg-soft: #f7f9fd;
  --panel: rgba(248, 251, 255, 0.88);
  --line: rgba(17, 54, 105, 0.12);
  --line-strong: rgba(17, 54, 105, 0.2);
  --text: #11233f;
  --muted: #5c6e89;
  --accent: #193f77;
  --accent-deep: #0f2950;
  --accent-soft: #dce7f8;
  --navy-glow: rgba(28, 76, 144, 0.18);
  --income: #15725b;
  --expense: #d1495b;
  --shadow: 0 24px 48px rgba(25, 54, 102, 0.12);
  --font-ui: "Aptos", "Segoe UI", sans-serif;
  --font-display: "Palatino Linotype", "Book Antiqua", serif;
  --sidebar-shell-base-width: 320px;
  --sidebar-shell-width: min(var(--sidebar-shell-base-width), calc(100vw - 28px));
  --sidebar-shell-inset: 14px;
  --sidebar-shell-gap: 18px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(58, 102, 170, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(17, 54, 105, 0.12), transparent 24%),
    linear-gradient(180deg, #f7faff 0%, #eef3fb 100%);
}

body.auth-locked {
  overflow: hidden;
}

body.auth-booting {
  overflow: hidden;
}

body.auth-booting .page-shell {
  visibility: hidden;
  pointer-events: none;
}

body.auth-booting .auth-gate {
  display: none !important;
}

body.auth-locked .page-shell {
  visibility: hidden;
  pointer-events: none;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(12, 29, 58, 0.78), rgba(18, 43, 84, 0.72)),
    url("./arkaplan.webp") center / cover no-repeat,
    radial-gradient(circle at top left, rgba(87, 132, 203, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(12, 29, 58, 0.94), rgba(18, 43, 84, 0.9));
}

body.auth-locked .auth-gate {
  display: grid;
}

.auth-card {
  width: min(100%, 460px);
  display: grid;
  gap: 18px;
  padding: 30px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.92)),
    linear-gradient(135deg, rgba(20, 52, 99, 0.08), transparent 58%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 28px 70px rgba(8, 25, 54, 0.28);
}

.app-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 160;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(17, 54, 105, 0.96);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 20px 40px rgba(8, 24, 52, 0.22);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-logo {
  width: min(240px, 100%);
  height: auto;
}

.auth-kicker,
.auth-description,
.auth-feedback {
  margin: 0;
}

.auth-kicker {
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.02;
  color: var(--accent-deep);
}

.auth-description {
  color: var(--muted);
  line-height: 1.55;
}

.auth-form {
  margin-top: 4px;
}

.auth-feedback {
  padding: 11px 13px;
  border-radius: 16px;
  font-size: 0.9rem;
  background: rgba(209, 73, 91, 0.1);
  color: #af203b;
  border: 1px solid rgba(209, 73, 91, 0.14);
}

.session-toolbar {
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.session-user {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(237, 244, 255, 0.96);
  font-size: 0.84rem;
}

.session-toolbar .ghost-btn {
  width: auto;
  min-width: 116px;
  color: #6b4d00;
  background: #f2d36b;
  border-color: rgba(163, 122, 12, 0.34);
  box-shadow: 0 10px 24px rgba(135, 103, 19, 0.16);
}

.session-toolbar .ghost-btn:hover {
  background: #f6db84;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 54, 105, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 54, 105, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 88%);
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.sidebar-shell {
  position: fixed;
  inset: var(--sidebar-shell-inset) auto var(--sidebar-shell-inset) var(--sidebar-shell-inset);
  width: min(var(--sidebar-shell-width), calc(100vw - 28px));
  height: auto;
  padding: 22px;
  overflow-y: auto;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(20, 52, 99, 0.94), rgba(11, 30, 57, 0.92)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent),
    url("./Porcshe.webp") center right / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  box-shadow: 24px 24px 64px rgba(8, 20, 38, 0.32);
  transform: translateX(-100%);
  transition: transform 220ms ease;
  z-index: 30;
}

.page-shell.sidebar-open .sidebar-shell {
  transform: translateX(0);
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  border: none;
  background: rgba(10, 25, 49, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 20;
}

.page-shell.sidebar-open .sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.side-panel-workspace {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 35;
}

.main-shell {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

.sidebar-top,
.panel-head,
.section-mini-head,
.breakdown-head,
.trend-head,
.transaction-item,
.account-item,
.toolbar,
.hero-brand {
  display: flex;
  align-items: center;
}

.sidebar-top,
.panel-head,
.section-mini-head {
  justify-content: space-between;
}

.panel-head-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.sidebar-top {
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-block {
  display: grid;
  align-content: center;
  min-height: 34px;
}

.brand-block p,
.panel-kicker,
.eyebrow {
  margin: 0 0 4px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.brand-block strong,
.hero h1,
.panel h2 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.05;
}

.brand-block strong {
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1;
  color: #f4f8ff;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.sidebar-nav-group {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-nav-heading {
  margin: 4px 2px 2px;
  color: #dce9ff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sidebar-nav a,
.sidebar-toggle,
.ghost-icon-btn {
  border-radius: 14px;
  text-decoration: none;
}

.sidebar-nav a {
  padding: 8px 12px;
  color: var(--text);
  background: var(--nav-bg, rgba(255, 255, 255, 0.74));
  border: 1px solid var(--nav-border, var(--line));
  font-size: 0.92rem;
  line-height: 1.15;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.sidebar-nav a:hover,
.sidebar-toggle:hover,
.ghost-icon-btn:hover,
.primary-btn:hover,
.ghost-btn:hover,
.delete-btn:hover {
  transform: translateY(-1px);
}

.sidebar-nav a:hover {
  background: var(--nav-hover, rgba(255, 255, 255, 0.94));
  border-color: var(--nav-border-strong, var(--line-strong));
}

.sidebar-nav a.active {
  background: var(--nav-active, rgba(255, 255, 255, 0.96));
  border-color: var(--nav-active-border, rgba(17, 54, 105, 0.24));
  box-shadow: 0 10px 22px rgba(17, 54, 105, 0.08);
}

.sidebar-shell .sidebar-nav a {
  color: #edf4ff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.sidebar-shell .sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

.sidebar-shell .sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 24px rgba(6, 16, 31, 0.24);
}

.nav-tone-account {
  --nav-bg: #e7f0ff;
  --nav-hover: #dbe9ff;
  --nav-active: #d0e2ff;
  --nav-border: rgba(40, 88, 164, 0.22);
  --nav-border-strong: rgba(40, 88, 164, 0.32);
  --nav-active-border: rgba(25, 63, 119, 0.38);
}

.nav-tone-movement {
  --nav-bg: #edf7ff;
  --nav-hover: #e2f1ff;
  --nav-active: #d7ebff;
  --nav-border: rgba(40, 123, 182, 0.2);
  --nav-border-strong: rgba(40, 123, 182, 0.3);
  --nav-active-border: rgba(40, 123, 182, 0.4);
}

.nav-tone-loan {
  --nav-bg: #fff3d6;
  --nav-hover: #ffebc0;
  --nav-active: #ffe2a3;
  --nav-border: rgba(190, 145, 28, 0.22);
  --nav-border-strong: rgba(190, 145, 28, 0.32);
  --nav-active-border: rgba(190, 145, 28, 0.42);
}

.nav-tone-customer {
  --nav-bg: #e8f4ff;
  --nav-hover: #dcedff;
  --nav-active: #d1e7ff;
  --nav-border: rgba(49, 118, 190, 0.2);
  --nav-border-strong: rgba(49, 118, 190, 0.3);
  --nav-active-border: rgba(49, 118, 190, 0.4);
}

.nav-tone-supplier {
  --nav-bg: #e7f5e6;
  --nav-hover: #dbefda;
  --nav-active: #cde8cc;
  --nav-border: rgba(79, 132, 67, 0.2);
  --nav-border-strong: rgba(79, 132, 67, 0.3);
  --nav-active-border: rgba(79, 132, 67, 0.4);
}

.nav-tone-personnel {
  --nav-bg: #eef2fb;
  --nav-hover: #e2e8f8;
  --nav-active: #d7e0f4;
  --nav-border: rgba(78, 102, 150, 0.2);
  --nav-border-strong: rgba(78, 102, 150, 0.3);
  --nav-active-border: rgba(78, 102, 150, 0.4);
}

.nav-tone-todo {
  --nav-bg: #eef6ff;
  --nav-hover: #e2efff;
  --nav-active: #d8e8ff;
  --nav-border: rgba(38, 92, 170, 0.2);
  --nav-border-strong: rgba(38, 92, 170, 0.3);
  --nav-active-border: rgba(25, 63, 119, 0.4);
}

.nav-tone-todo-list {
  --nav-bg: #f2f6ff;
  --nav-hover: #e8efff;
  --nav-active: #dde7ff;
  --nav-border: rgba(67, 96, 165, 0.18);
  --nav-border-strong: rgba(67, 96, 165, 0.3);
  --nav-active-border: rgba(50, 74, 131, 0.4);
}

.nav-tone-portfolio {
  --nav-bg: #eef9ff;
  --nav-hover: #e1f3fb;
  --nav-active: #d2ecf8;
  --nav-border: rgba(53, 132, 157, 0.2);
  --nav-border-strong: rgba(53, 132, 157, 0.3);
  --nav-active-border: rgba(53, 132, 157, 0.4);
}

.nav-tone-team {
  --nav-bg: #f3f1ff;
  --nav-hover: #ebe8fb;
  --nav-active: #e1dcf7;
  --nav-border: rgba(99, 92, 156, 0.18);
  --nav-border-strong: rgba(99, 92, 156, 0.28);
  --nav-active-border: rgba(99, 92, 156, 0.38);
}

.nav-tone-receivables {
  --nav-bg: #edf6ff;
  --nav-hover: #e2f0ff;
  --nav-active: #d5e9ff;
  --nav-border: rgba(52, 116, 184, 0.18);
  --nav-border-strong: rgba(52, 116, 184, 0.28);
  --nav-active-border: rgba(52, 116, 184, 0.38);
}

.nav-tone-vendors {
  --nav-bg: #edf9f1;
  --nav-hover: #e2f4e7;
  --nav-active: #d5ecd9;
  --nav-border: rgba(76, 144, 96, 0.2);
  --nav-border-strong: rgba(76, 144, 96, 0.3);
  --nav-active-border: rgba(76, 144, 96, 0.4);
}

.nav-tone-calendar {
  --nav-bg: #fff8d9;
  --nav-hover: #fff1c0;
  --nav-active: #ffeaa2;
  --nav-border: rgba(195, 160, 34, 0.2);
  --nav-border-strong: rgba(195, 160, 34, 0.3);
  --nav-active-border: rgba(195, 160, 34, 0.4);
}

.nav-tone-ledger {
  --nav-bg: #f7f1e7;
  --nav-hover: #efe5d8;
  --nav-active: #e6d8c3;
  --nav-border: rgba(140, 112, 73, 0.18);
  --nav-border-strong: rgba(140, 112, 73, 0.28);
  --nav-active-border: rgba(140, 112, 73, 0.38);
}

.nav-tone-vehicle {
  --nav-bg: #edf6f9;
  --nav-hover: #e1eef4;
  --nav-active: #d5e6ef;
  --nav-border: rgba(55, 114, 146, 0.2);
  --nav-border-strong: rgba(55, 114, 146, 0.3);
  --nav-active-border: rgba(39, 85, 118, 0.4);
}

.side-panel {
  display: none;
}

.side-panel-workspace.is-open .side-panel.is-active {
  display: block;
  position: fixed;
  top: var(--sidebar-shell-inset);
  left: calc(var(--sidebar-shell-inset) + var(--sidebar-shell-base-width) + var(--sidebar-shell-gap));
  width: min(560px, calc(100vw - var(--sidebar-shell-width) - 44px));
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(20, 52, 99, 0.95), rgba(11, 30, 57, 0.93)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent),
    url("./Porcshe.webp") center right / cover no-repeat;
  box-shadow: 0 34px 70px rgba(8, 20, 38, 0.34);
  z-index: 35;
  pointer-events: auto;
}

.side-panel + .side-panel {
  margin-top: 18px;
}

.side-panel-workspace.is-open .side-panel.is-active .panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: -2px 0 6px;
  padding: 2px 0 6px;
  background: inherit;
}

.side-panel-close-btn {
  width: auto;
  min-width: 124px;
  flex-shrink: 0;
}

.side-panel-workspace.is-open .side-panel.is-active .panel-kicker,
.side-panel-workspace.is-open .side-panel.is-active .stack-form span,
.side-panel-workspace.is-open .side-panel.is-active .form-hint {
  color: rgba(237, 244, 255, 0.84);
}

.side-panel-workspace.is-open .side-panel.is-active .option-switch-label {
  color: #18385f;
}

.side-panel-workspace.is-open .side-panel.is-active .option-switch:has(input:checked) .option-switch-label {
  color: #302100;
}

.side-panel-workspace.is-open .side-panel.is-active .stack-form .option-switch-label {
  color: #12294d !important;
  opacity: 1 !important;
}

.side-panel-workspace.is-open .side-panel.is-active .stack-form .option-switch:has(input:checked) .option-switch-label {
  color: #2e3e68 !important;
}

.side-panel-workspace.is-open .side-panel.is-active h2,
.side-panel-workspace.is-open .side-panel.is-active .panel-head strong {
  color: #f4f8ff;
}

.side-panel-workspace.is-open .side-panel.is-active .ghost-icon-btn,
.side-panel-workspace.is-open .side-panel.is-active .ghost-btn {
  color: #edf4ff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.side-panel-workspace.is-open .side-panel.is-active .stack-form {
  gap: 6px;
}

.side-panel-workspace.is-open .side-panel.is-active .stack-form label {
  gap: 3px;
}

.side-panel-workspace.is-open .side-panel.is-active input,
.side-panel-workspace.is-open .side-panel.is-active select,
.side-panel-workspace.is-open .side-panel.is-active textarea {
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 0.92rem;
}

.panel,
.hero-copy,
.hero-glass {
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.panel {
  padding: 24px;
  background: var(--panel);
  border-radius: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 0;
  padding: 18px 18px 0;
}

.hero-copy {
  padding: 30px;
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(250, 253, 255, 0.96), rgba(230, 239, 251, 0.86));
  animation: riseIn 0.75s ease both;
}

.hero-brand {
  justify-content: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.hero-logo {
  display: block;
  width: min(360px, calc(100% - 74px));
  height: auto;
  object-fit: contain;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.3rem, 3.8vw, 4.4rem);
}

.company-title {
  max-width: none;
  font-size: clamp(0.78rem, 0.95vw, 0.96rem);
  line-height: 1.25;
  color: var(--text);
}

.hero-text {
  max-width: 62ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.hero-live-strip {
  margin-top: 10px;
}

.hero-live-strip-side {
  margin-top: 0;
}

.hero-live-window {
  overflow: visible;
  border-radius: 24px;
}

.hero-live-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.hero-live-strip-side .hero-live-track {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-live-chip {
  min-width: 214px;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 22px rgba(7, 18, 36, 0.16);
}

.hero-live-strip-side .hero-live-chip {
  min-width: 0;
  padding: 12px 14px;
}

.hero-live-chip span,
.hero-live-chip strong {
  margin: 0;
  text-align: left;
}

.hero-live-chip span {
  font-size: 0.78rem;
  color: rgba(237, 244, 255, 0.9);
}

.hero-live-chip strong {
  font-size: 0.98rem;
  color: #ffffff;
}

.hero-live-chip.market {
  background: rgba(47, 114, 196, 0.28);
  border-color: rgba(189, 220, 255, 0.24);
}

.hero-live-chip.gold {
  background: rgba(216, 171, 54, 0.34);
  border-color: rgba(255, 232, 160, 0.28);
}

.hero-live-chip.weather {
  background: rgba(56, 146, 176, 0.32);
  border-color: rgba(194, 238, 255, 0.24);
}

.hero-live-chip.pending {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-kpi-ticker {
  margin-top: 18px;
}

.hero-kpi-window {
  overflow: hidden;
  padding-inline: 6px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 1) 2%, rgba(0, 0, 0, 1) 98%, transparent);
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 1) 2%,
    rgba(0, 0, 0, 1) 98%,
    transparent
  );
}

.hero-kpi-track {
  --hero-kpi-duration: 24s;
  --hero-kpi-start-offset: 6px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: max-content;
  padding: 6px;
  will-change: transform;
  animation: heroKpiTrackMove var(--hero-kpi-duration) linear infinite;
}

.hero-kpi-ticker:hover .hero-kpi-track {
  animation-play-state: paused;
}

.hero-kpi-chip {
  min-width: 220px;
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 14px 22px rgba(7, 18, 36, 0.22);
}

.hero-kpi-chip span,
.hero-kpi-chip strong {
  margin: 0;
  text-align: left;
}

.hero-kpi-chip span {
  font-size: 0.79rem;
  color: rgba(247, 251, 255, 0.98);
}

.hero-kpi-chip strong {
  font-size: 1rem;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(5, 12, 24, 0.2);
}

.hero-kpi-chip.positive {
  background: rgba(58, 154, 96, 0.54);
  border-color: rgba(198, 245, 213, 0.34);
}

.hero-kpi-chip.negative {
  background: rgba(180, 56, 76, 0.56);
  border-color: rgba(255, 214, 220, 0.36);
}

.hero-kpi-chip.warning {
  background: rgba(216, 162, 37, 0.58);
  border-color: rgba(255, 235, 175, 0.38);
}

.hero-kpi-chip.neutral {
  background: rgba(255, 255, 255, 0.26);
  border-color: rgba(255, 255, 255, 0.34);
}

.hero-todo-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f6d757 0%, #f0c73b 100%);
  border: 1px solid rgba(132, 97, 5, 0.26);
  box-shadow: 0 18px 28px rgba(182, 144, 20, 0.18);
}

.hero-todo-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.hero-todo-head span,
.hero-todo-head strong {
  display: block;
  margin: 0;
}

.hero-todo-head span {
  color: rgba(53, 38, 0, 0.84);
  font-size: 0.84rem;
}

.hero-todo-head strong {
  color: #2e2200;
  font-size: 1rem;
}

.hero-todo-empty {
  color: rgba(53, 38, 0, 0.82);
  font-size: 0.9rem;
}

.hero-todo-card .ghost-btn {
  border-color: rgba(53, 38, 0, 0.18);
  background: rgba(255, 248, 214, 0.72);
  color: #2e2200;
}

.hero-todo-card .ghost-btn:hover {
  background: rgba(255, 245, 197, 0.94);
}

.hero-todo-list {
  display: grid;
  gap: 8px;
}

.hero-todo-list[hidden],
.hero-todo-empty[hidden] {
  display: none;
}

.hero-todo-item {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(20, 52, 99, 0.06);
}

.hero-todo-item strong,
.hero-todo-item span {
  margin: 0;
}

.hero-todo-item strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
}

.hero-todo-item span {
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-todo-item .hero-todo-date {
  white-space: nowrap;
  color: var(--accent);
  font-weight: 700;
}

.hero-todo-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.hero-todo-complete-btn {
  min-width: auto;
  white-space: nowrap;
}

.hero-todo-item.todo-overdue {
  background: rgba(209, 73, 91, 0.18);
  border: 1px solid rgba(179, 41, 60, 0.18);
}

.hero-todo-item.todo-overdue strong,
.hero-todo-item.todo-overdue span,
.hero-todo-item.todo-overdue .hero-todo-date {
  color: #7d1121;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.hero-mini-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(17, 54, 105, 0.08);
  justify-items: start;
  text-align: left;
}

.hero-mini-card span,
.hero-mini-card strong {
  margin: 0;
}

.hero-mini-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-mini-card strong {
  font-size: 1.04rem;
  line-height: 1.35;
}

.hero-glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 32px;
  color: #edf4ff;
  background:
    linear-gradient(180deg, rgba(20, 52, 99, 0.92), rgba(11, 30, 57, 0.9)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent);
  animation: riseIn 0.9s ease both;
}

.hero-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 38, 73, 0.38), rgba(14, 38, 73, 0.22)),
    url("./Porcshe.webp") center right / cover no-repeat;
  opacity: 0.34;
  z-index: 0;
}

.hero-glass > * {
  position: relative;
  z-index: 1;
}

.hero-quick-menu {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-quick-menu p {
  margin: 0 0 8px;
  font-size: 0.84rem;
  opacity: 0.82;
}

.quick-menu-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
}

.quick-menu-group {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-menu-group-shortcut {
  text-decoration: none;
  background: #f1c84c;
  border-color: rgba(175, 126, 0, 0.42);
  box-shadow: 0 16px 30px rgba(114, 84, 2, 0.18);
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.quick-menu-group-shortcut:hover {
  transform: translateY(-1px);
  background: #f5d56e;
  border-color: rgba(175, 126, 0, 0.58);
}

.quick-menu-group-shortcut strong {
  font-size: 0.92rem;
  color: #302100;
  font-weight: 700;
}

.quick-menu-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: #edf4ff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-align: left;
  font-size: 0.88rem;
  line-height: 1.2;
}

.quick-menu-group-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.quick-menu-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 160ms ease;
  flex-shrink: 0;
}

.quick-menu-group-toggle.is-open .quick-menu-chevron {
  transform: rotate(225deg);
}

.quick-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.quick-menu-btn {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #edf4ff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-align: left;
  font-size: 0.86rem;
  line-height: 1.15;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.quick-menu-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

.quick-menu-link {
  display: block;
  text-decoration: none;
}

.quick-menu-link.quick-menu-group-shortcut {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
}

.quick-menu-link.quick-menu-group-shortcut strong {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(137, 96, 0, 0.18);
  background: rgba(255, 255, 255, 0.18);
  text-align: center;
}

.hero-stat {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.cloud-sync-card {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cloud-sync-head,
.cloud-actions {
  display: flex;
  align-items: center;
}

.cloud-sync-head {
  justify-content: space-between;
  gap: 12px;
}

.cloud-sync-head span {
  font-size: 0.92rem;
  opacity: 0.82;
}

.cloud-sync-card p {
  margin: 0;
  color: rgba(237, 244, 255, 0.92);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cloud-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.cloud-actions .ghost-btn {
  min-height: 42px;
  background: rgba(255, 255, 255, 0.92);
}

.cloud-actions .ghost-btn:disabled {
  background: rgba(255, 255, 255, 0.7);
}

.stack-fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(17, 54, 105, 0.12);
  background: rgba(247, 250, 255, 0.72);
}

.stack-fieldset-title {
  display: block;
  margin: 0 0 2px;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

.stack-fieldset.is-disabled {
  opacity: 1;
  background: rgba(239, 244, 252, 0.9);
}

.option-chip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.option-switch {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px 10px 10px;
  border-radius: 14px;
  border: 1px solid #d8deee;
  background: #ffffff;
  color: var(--text);
  line-height: 1.2;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.stack-form .option-switch {
  display: flex;
  align-items: center;
}

.option-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-switch-control {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #d7dfef;
  box-shadow: inset 0 0 0 1px rgba(61, 91, 148, 0.16);
  transition: background 160ms ease, box-shadow 160ms ease;
}

.option-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(10, 25, 49, 0.18);
  transition: transform 160ms ease;
}

.option-switch-label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.96rem;
  color: #12294d;
  font-weight: 700;
  text-align: left;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.28;
  opacity: 1;
}

.option-switch:hover {
  border-color: #c4cee6;
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(17, 54, 105, 0.06);
}

.option-switch:has(input:checked) {
  background: #ffffff;
  border-color: #c9d5ef;
  box-shadow: 0 12px 22px rgba(17, 54, 105, 0.08);
}

.option-switch:has(input:checked) .option-switch-control {
  background: linear-gradient(135deg, #20398d, #132a76);
  box-shadow: inset 0 0 0 1px rgba(15, 43, 84, 0.18);
}

.option-switch:has(input:checked) .option-switch-knob {
  transform: translateX(18px);
}

.option-switch:has(input:checked) .option-switch-label {
  color: #2e3e68;
  font-weight: 600;
}

.stack-fieldset.is-disabled .option-switch {
  background: #ffffff;
  border-color: rgba(162, 177, 209, 0.62);
}

.stack-fieldset.is-disabled .option-switch input {
  cursor: not-allowed;
}

.stack-fieldset.is-disabled .option-switch-label {
  color: #12294d;
  opacity: 1;
  font-weight: 700;
}

.user-access-summary {
  display: block;
}

.branch-catalog-manager {
  display: grid;
  gap: 8px;
}

.branch-catalog-manager-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.branch-catalog-manager-row input {
  min-height: 44px;
}

.cloud-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1;
}

.cloud-status-badge.local,
.cloud-status-badge.ready {
  color: #edf4ff;
  background: rgba(255, 255, 255, 0.12);
}

.cloud-status-badge.synced {
  color: #d7ffef;
  background: rgba(21, 114, 91, 0.28);
}

.cloud-status-badge.connecting,
.cloud-status-badge.syncing {
  color: #fff3cf;
  background: rgba(237, 167, 54, 0.3);
}

.cloud-status-badge.error {
  color: #ffdfe2;
  background: rgba(209, 73, 91, 0.32);
}

.hero-stat span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
  opacity: 0.82;
}

.hero-stat strong {
  font-size: clamp(1.6rem, 2.4vw, 2.6rem);
  line-height: 1;
}

.sidebar-toggle,
.ghost-icon-btn,
.primary-btn,
.ghost-btn,
.delete-btn {
  border: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.sidebar-toggle,
.ghost-icon-btn {
  padding: 9px 12px;
}

.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  min-height: 48px;
  padding: 12px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 14px 30px rgba(17, 54, 105, 0.24);
}

.menu-icon {
  display: grid;
  gap: 5px;
}

.menu-icon span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.ghost-icon-btn,
.ghost-btn {
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

#sidebarCloseButton {
  padding: 7px 11px;
  min-height: 34px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #302100;
  background: #f1c84c;
  border-color: rgba(175, 126, 0, 0.4);
  box-shadow: 0 10px 18px rgba(114, 84, 2, 0.18);
}

#sidebarCloseButton:hover {
  background: #f5d56e;
  border-color: rgba(175, 126, 0, 0.56);
}

.primary-btn {
  padding: 13px 16px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 14px 30px rgba(17, 54, 105, 0.24);
}

.primary-btn.full {
  width: 100%;
}

.ghost-btn {
  padding: 11px 14px;
  border-radius: 16px;
}

.ghost-btn.full {
  width: 100%;
}

.ghost-btn.compact {
  padding: 8px 12px;
}

.ghost-btn.danger,
.delete-btn {
  color: var(--expense);
}

.delete-btn {
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(209, 73, 91, 0.08);
}

.stack-form {
  display: grid;
  gap: 14px;
}

.stack-form label {
  display: grid;
  gap: 8px;
}

.stack-form .option-chip {
  display: flex;
  align-items: center;
}

.stack-form span,
.panel-caption,
.form-hint,
.empty-state,
.transaction-meta,
.transaction-counterparty,
.transaction-note,
.account-meta,
.account-detail,
.stat-card p,
.stat-card span,
.section-mini-head span {
  color: var(--muted);
}

.panel-caption,
.form-hint {
  margin: 0;
  line-height: 1.55;
}

.form-actions {
  display: grid;
  gap: 10px;
}

.import-box {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.import-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

input,
select,
textarea {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 15px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(25, 63, 119, 0.32);
  box-shadow: 0 0 0 5px rgba(25, 63, 119, 0.08);
}

textarea {
  resize: vertical;
  min-height: 88px;
}

.currency-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.currency-input span {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.currency-input input {
  padding: 5px 8px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.currency-input:focus-within {
  border-color: rgba(25, 63, 119, 0.32);
  box-shadow: 0 0 0 5px rgba(25, 63, 119, 0.08);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.toggle-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.toggle-card {
  border-radius: 18px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  cursor: pointer;
}

.toggle-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-card span {
  display: block;
  text-align: center;
  padding: 12px 14px;
  border-radius: 12px;
}

.toggle-card.active span {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.content-grid {
  display: grid;
  gap: 18px;
  padding: 18px;
}

#usersPanel {
  order: 999;
}

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

.stat-card {
  display: grid;
  gap: 8px;
  min-height: 168px;
  justify-items: start;
  text-align: left;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.stat-card p,
.stat-card span,
.transaction-main h3,
.account-main h3 {
  margin: 0;
}

.stat-card strong {
  font-size: clamp(1.5rem, 2vw, 2.5rem);
}

.stat-card.net-positive,
.stat-card.kpi-positive {
  color: #1d220a;
  background: linear-gradient(135deg, #9ad66d 0%, #6dbd45 100%);
  border-color: rgba(43, 100, 28, 0.24);
  box-shadow: 0 18px 28px rgba(73, 145, 56, 0.18);
}

.stat-card.net-negative,
.stat-card.kpi-negative {
  color: #ffffff;
  background: linear-gradient(135deg, #df5a5a 0%, #bb2e2e 100%);
  border-color: rgba(133, 26, 26, 0.28);
  box-shadow: 0 18px 28px rgba(157, 35, 35, 0.2);
}

.stat-card.net-positive p,
.stat-card.net-positive span,
.stat-card.net-positive strong,
.stat-card.net-positive .money-positive,
.stat-card.net-positive .money-negative,
.stat-card.kpi-positive p,
.stat-card.kpi-positive span,
.stat-card.kpi-positive strong,
.stat-card.kpi-positive .money-positive,
.stat-card.kpi-positive .money-negative {
  color: #1d220a;
}

.stat-card.net-negative p,
.stat-card.net-negative span,
.stat-card.net-negative strong,
.stat-card.net-negative .money-positive,
.stat-card.net-negative .money-negative,
.stat-card.kpi-negative p,
.stat-card.kpi-negative span,
.stat-card.kpi-negative strong,
.stat-card.kpi-negative .money-positive,
.stat-card.kpi-negative .money-negative {
  color: #ffffff;
}

.accounts-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.section-mini-head h3 {
  margin: 0;
}

.accounts-list,
.loan-list,
.supplier-list,
.personnel-list,
.schedule-list,
.breakdown-list,
.trend-list,
.transactions-list {
  display: grid;
  gap: 12px;
}

.accounts-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.accounts-list .account-item {
  min-height: 100%;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 12px 14px;
  padding: 14px;
  align-items: start;
}

.accounts-list .account-marker {
  grid-row: 1 / span 2;
  width: 10px;
  min-height: 100%;
}

.accounts-list .account-main {
  display: grid;
  gap: 10px;
  min-width: 0;
  justify-items: start;
  text-align: left;
}

.bank-headline,
.bank-table-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.bank-headline-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.bank-logo {
  width: 46px;
  height: 46px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(17, 54, 105, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(16, 45, 88, 0.1);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.bank-logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bank-logo-fallback {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.accounts-list .account-meta,
.accounts-list .account-detail {
  line-height: 1.4;
}

.accounts-list .bank-headline {
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  margin-top: -8px;
}

.accounts-list .bank-headline-copy {
  justify-items: start;
  text-align: left;
}

.accounts-list .bank-logo {
  width: 72px;
  height: 72px;
  padding: 9px;
  border-radius: 18px;
}

.accounts-list .account-main h3,
.accounts-list .account-meta,
.accounts-list .account-detail {
  text-align: left;
}

.accounts-list .account-side {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(17, 54, 105, 0.08);
  text-align: left;
}

.accounts-list .account-side strong {
  font-size: 1rem;
}

.accounts-list .delete-btn {
  padding: 8px 12px;
}

.vehicle-item .account-marker {
  background: linear-gradient(180deg, #2b6c99 0%, #173f7c 100%);
}

.vehicle-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(25, 63, 119, 0.1);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.vehicle-headline {
  display: grid;
  gap: 4px;
}

.vehicle-meta,
.vehicle-detail,
.vehicle-acquisition {
  margin: 0;
}

.vehicle-value {
  white-space: nowrap;
}

.vehicle-list {
  margin-top: 12px;
}

.schedule-toolbar,
.calendar-nav,
.schedule-subhead,
.calendar-weekdays,
.day-detail-head {
  display: flex;
  align-items: center;
}

.schedule-toolbar,
.day-detail-head {
  justify-content: space-between;
}

.schedule-toolbar {
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.day-detail-head {
  gap: 16px;
  margin: 6px 0 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(17, 54, 105, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.day-detail-head h3,
.detail-title,
.day-detail-head span {
  margin: 0;
}

.detail-title {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.day-detail-head span {
  color: var(--accent);
  font-weight: 700;
  text-align: right;
}

.calendar-nav {
  display: grid;
  grid-template-columns: max-content minmax(180px, 1fr) max-content;
  gap: 12px;
  align-items: center;
}

.calendar-nav strong {
  min-width: 0;
  text-align: center;
}

.calendar-nav .ghost-btn:first-child {
  justify-self: start;
}

.calendar-nav .ghost-btn:last-child {
  justify-self: end;
}

.reminder-banner {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(25, 63, 119, 0.12);
  background: rgba(25, 63, 119, 0.08);
  color: var(--text);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
  min-width: 840px;
}

.calendar-weekdays span {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(25, 63, 119, 0.06);
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  min-width: 840px;
}

.schedule-panel {
  position: relative;
  isolation: isolate;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  background:
    linear-gradient(180deg, rgba(245, 249, 255, 0.94), rgba(236, 243, 252, 0.92));
}

.schedule-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(245, 249, 255, 0.28), rgba(236, 243, 252, 0.22)),
    url("./Porcshe.webp") center right / cover no-repeat;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.schedule-panel > * {
  position: relative;
  z-index: 1;
}

.calendar-day {
  min-height: 128px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 54, 105, 0.08);
}

button.calendar-day {
  width: 100%;
  font: inherit;
  text-align: left;
  appearance: none;
}

.calendar-day.outside-month {
  opacity: 0.5;
}

.calendar-day.today {
  border-color: rgba(25, 63, 119, 0.28);
  box-shadow: inset 0 0 0 1px rgba(25, 63, 119, 0.12);
}

.calendar-day.has-events {
  background: rgba(237, 243, 252, 0.96);
}

.calendar-day.interactive {
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.calendar-day.interactive:hover {
  border-color: rgba(25, 63, 119, 0.24);
  box-shadow: 0 12px 24px rgba(17, 54, 105, 0.08);
}

.calendar-day.selected {
  border-color: rgba(25, 63, 119, 0.34);
  background: rgba(224, 235, 249, 0.98);
  box-shadow: inset 0 0 0 1px rgba(25, 63, 119, 0.1);
}

.calendar-day-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.calendar-day-number {
  font-weight: 700;
  color: var(--text);
}

.calendar-day-total {
  font-size: 0.8rem;
  color: var(--accent);
}

.calendar-day-events {
  display: grid;
  gap: 6px;
}

.calendar-event {
  padding: 8px 9px;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.35;
  background: rgba(25, 63, 119, 0.08);
  color: var(--text);
}

.calendar-event-bank,
.calendar-event-loan,
.calendar-event-amount {
  display: block;
}

.calendar-event-bank {
  margin-bottom: 2px;
  font-size: 0.78rem;
}

.calendar-event-loan {
  opacity: 0.82;
}

.calendar-event-amount {
  margin-top: 4px;
  font-weight: 700;
}

.calendar-event.overdue {
  background: rgba(209, 73, 91, 0.12);
}

.calendar-event.today {
  background: rgba(237, 167, 54, 0.18);
}

.calendar-event.upcoming {
  background: rgba(21, 114, 91, 0.12);
}

.calendar-event.loan {
  background: #f4dc77;
  color: #111111;
}

.calendar-event.customer {
  background: #cfe3ff;
  color: #0f2f57;
}

.calendar-event.supplier {
  background: #bfe5b7;
  color: #111111;
}

.schedule-subhead {
  justify-content: flex-start;
  gap: 12px;
  margin: 10px 0 14px;
}

.schedule-subhead-copy {
  display: grid;
  gap: 4px;
}

.schedule-subhead h3,
.schedule-subhead span {
  margin: 0;
}

.upcoming-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 14px;
  flex-shrink: 0;
}

.upcoming-toggle:disabled {
  opacity: 0.46;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.mini-menu-icon {
  display: grid;
  gap: 4px;
}

.mini-menu-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.collapsible-panel {
  display: block;
}

.collapsible-panel[hidden] {
  display: none;
}

.personnel-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.todo-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.receivable-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.report-mini-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  color: #edf4ff;
  background:
    linear-gradient(180deg, rgba(20, 52, 99, 0.96), rgba(11, 30, 57, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 32px rgba(9, 25, 49, 0.18);
}

.report-mini-card span,
.report-mini-card strong,
.report-mini-card small {
  margin: 0;
}

.report-mini-card span {
  color: rgba(237, 244, 255, 0.8);
  font-size: 0.88rem;
}

.report-mini-card strong {
  font-size: 1.08rem;
  color: white;
}

.report-mini-card small {
  color: rgba(237, 244, 255, 0.72);
  font-size: 0.83rem;
  line-height: 1.45;
}

.report-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.report-card {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(17, 54, 105, 0.08);
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(239, 245, 252, 0.96));
  box-shadow: 0 16px 28px rgba(13, 35, 67, 0.08);
}

.report-card h3,
.report-card p {
  margin: 0;
}

.report-card h3 {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

.report-card p {
  color: var(--muted);
  line-height: 1.55;
}

.personnel-mini-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  color: #edf4ff;
  background:
    linear-gradient(180deg, rgba(20, 52, 99, 0.96), rgba(11, 30, 57, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 30px rgba(17, 54, 105, 0.18);
  justify-items: start;
  text-align: left;
}

.todo-mini-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  color: #2e2200;
  background: linear-gradient(135deg, #f6d757 0%, #f0c73b 100%);
  border: 1px solid rgba(132, 97, 5, 0.26);
  box-shadow: 0 14px 28px rgba(182, 144, 20, 0.18);
  justify-items: start;
  text-align: left;
}

.receivable-mini-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  color: #edf4ff;
  background:
    linear-gradient(180deg, rgba(25, 78, 144, 0.96), rgba(13, 39, 77, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 30px rgba(17, 54, 105, 0.16);
  justify-items: start;
  text-align: left;
}

.personnel-mini-card span,
.personnel-mini-card strong,
.todo-mini-card span,
.todo-mini-card strong,
.receivable-mini-card span,
.receivable-mini-card strong {
  margin: 0;
}

.personnel-mini-card span {
  color: rgba(237, 244, 255, 0.8);
  font-size: 0.88rem;
}

.todo-mini-card span {
  color: rgba(53, 38, 0, 0.84);
  font-size: 0.88rem;
}

.receivable-mini-card span {
  color: rgba(237, 244, 255, 0.8);
  font-size: 0.88rem;
}

.personnel-mini-card strong {
  font-size: 1.08rem;
  color: white;
}

.todo-mini-card strong {
  font-size: 1.08rem;
  color: #2e2200;
}

.receivable-mini-card strong {
  font-size: 1.08rem;
  color: white;
}

.loan-table-toolbar,
.personnel-table-toolbar,
.receivable-table-toolbar,
.todo-table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
}

.loan-table-toolbar label,
.personnel-table-toolbar label,
.receivable-table-toolbar label,
.todo-table-toolbar label {
  display: grid;
  gap: 8px;
  min-width: 240px;
}

.loan-table-wrap,
.personnel-table-wrap,
.receivable-table-wrap,
.supplier-table-wrap,
.breakdown-table-wrap,
.todo-table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid rgba(17, 54, 105, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

.loan-table,
.personnel-table,
.receivable-table,
.supplier-table,
.breakdown-table,
.todo-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.loan-table,
.personnel-table,
.receivable-table,
.todo-table {
  min-width: 1120px;
}

.supplier-table {
  min-width: 980px;
}

.breakdown-table {
  min-width: 860px;
}

.personnel-list {
  display: table-row-group;
}

.todo-list {
  display: table-row-group;
}

.users-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.users-mini-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  color: #edf4ff;
  background:
    linear-gradient(180deg, rgba(20, 52, 99, 0.96), rgba(11, 30, 57, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 30px rgba(17, 54, 105, 0.16);
  justify-items: start;
  text-align: left;
}

.users-mini-card span,
.users-mini-card strong {
  margin: 0;
}

.users-mini-card span {
  color: rgba(237, 244, 255, 0.8);
  font-size: 0.88rem;
}

.users-mini-card strong {
  font-size: 1.08rem;
  color: white;
}

.users-table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 12px;
}

.users-table-toolbar label {
  display: grid;
  gap: 8px;
  min-width: 240px;
}

.users-table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid rgba(17, 54, 105, 0.08);
  background: rgba(255, 255, 255, 0.68);
}

.users-table {
  width: 100%;
  min-width: 1220px;
  border-collapse: separate;
  border-spacing: 0;
}

.users-table-head th {
  padding: 14px 16px;
  background: rgba(20, 52, 99, 0.08);
  border-bottom: 1px solid rgba(20, 52, 99, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: left;
  white-space: nowrap;
}

.users-table-head th:first-child {
  border-top-left-radius: 20px;
}

.users-table-head th:last-child {
  border-top-right-radius: 20px;
}

.user-row td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(17, 54, 105, 0.08);
  vertical-align: top;
  background: rgba(255, 255, 255, 0.9);
}

.user-row:nth-child(even) td {
  background: rgba(246, 249, 253, 0.94);
}

.user-row:last-child td {
  border-bottom: none;
}

.user-row:hover td {
  background: rgba(239, 245, 252, 0.98);
}

.user-row.is-recently-saved td {
  background: rgba(230, 244, 232, 0.96);
}

.user-col-name {
  min-width: 330px;
}

.user-name {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
}

.user-subtext {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.user-username,
.user-last-login,
.user-created-at {
  white-space: nowrap;
}

.user-role-badge,
.user-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.user-role-badge[data-role="admin"] {
  color: #fff4d5;
  background: linear-gradient(135deg, rgba(168, 112, 0, 0.96), rgba(116, 75, 0, 0.92));
  border-color: rgba(104, 67, 0, 0.22);
}

.user-role-badge[data-role="operator"] {
  color: #edf4ff;
  background: linear-gradient(135deg, rgba(25, 78, 144, 0.96), rgba(13, 39, 77, 0.92));
  border-color: rgba(17, 54, 105, 0.2);
}

.user-role-badge[data-role="viewer"] {
  color: #475163;
  background: rgba(231, 236, 243, 0.96);
  border-color: rgba(95, 108, 126, 0.16);
}

.user-status-badge.active {
  color: #0f5b3b;
  background: rgba(219, 246, 232, 0.96);
  border-color: rgba(48, 133, 91, 0.18);
}

.user-status-badge.passive {
  color: #7f1f20;
  background: rgba(255, 227, 227, 0.96);
  border-color: rgba(173, 68, 70, 0.18);
}

.user-col-actions {
  min-width: 218px;
}

.user-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.users-panel .empty-state {
  background: rgba(248, 251, 255, 0.92);
  border-style: solid;
}

@media (max-width: 1200px) {
  .users-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .users-table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .users-table-toolbar label {
    min-width: 100%;
  }
}

@media (max-width: 720px) {
  .users-summary-grid {
    grid-template-columns: 1fr;
  }

  .user-col-name {
    min-width: 260px;
  }

  .user-action-buttons {
    justify-content: flex-start;
  }
}

.loan-table-head th,
.personnel-table-head th,
.receivable-table-head th,
.supplier-table-head th,
.breakdown-table-head th,
.todo-table-head th {
  padding: 14px 16px;
  background: rgba(20, 52, 99, 0.08);
  border-bottom: 1px solid rgba(20, 52, 99, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: left;
  white-space: nowrap;
}

.column-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.column-sort-btn::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: 0.45;
}

.column-sort-btn.is-active::after {
  opacity: 1;
}

.column-sort-btn[data-direction="asc"]::after {
  border-bottom: 6px solid currentColor;
}

.column-sort-btn[data-direction="desc"]::after {
  border-top: 6px solid currentColor;
}

.column-sort-btn[data-direction="none"]::after {
  border-top: 6px solid currentColor;
}

.loan-table-head th:first-child,
.personnel-table-head th:first-child,
.receivable-table-head th:first-child,
.supplier-table-head th:first-child,
.breakdown-table-head th:first-child,
.todo-table-head th:first-child {
  border-top-left-radius: 20px;
}

.loan-table-head th:last-child,
.personnel-table-head th:last-child,
.receivable-table-head th:last-child,
.supplier-table-head th:last-child,
.breakdown-table-head th:last-child,
.todo-table-head th:last-child {
  border-top-right-radius: 20px;
}

.loan-row td,
.personnel-row td,
.customer-row td,
.supplier-row td,
.breakdown-row td,
.todo-row td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(17, 54, 105, 0.08);
  vertical-align: top;
  background: rgba(255, 255, 255, 0.84);
}

.loan-row:last-child td,
.personnel-row:last-child td,
.customer-row:last-child td,
.supplier-row:last-child td,
.breakdown-row:last-child td,
.todo-row:last-child td {
  border-bottom: none;
}

.loan-row:hover td,
.personnel-row:hover td,
.customer-row:hover td,
.supplier-row:hover td,
.breakdown-row:hover td,
.todo-row:hover td {
  background: rgba(247, 250, 255, 0.96);
}

.todo-row.todo-overdue td {
  background: rgba(255, 228, 232, 0.92);
}

.todo-row.todo-overdue:hover td {
  background: rgba(255, 214, 220, 0.98);
}

.loan-col-name,
.loan-col-amount,
.loan-col-total,
.customer-col-name,
.customer-col-amount,
.supplier-col-name,
.supplier-col-amount,
.breakdown-col-name,
.breakdown-col-amount,
.personnel-col-name,
.personnel-col-salary,
.todo-col-title {
  display: grid;
  gap: 4px;
}

.loan-name,
.customer-name,
.supplier-name,
.breakdown-name,
.personnel-name,
.todo-title {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
}

.loan-subtext,
.customer-subtext,
.breakdown-subtext,
.personnel-subtext,
.todo-subtext {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.loan-col-amount,
.loan-col-total,
.customer-col-amount,
.supplier-col-amount,
.breakdown-col-amount,
.personnel-col-salary {
  text-align: right;
}

.loan-bank,
.breakdown-bank {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.loan-bank .bank-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.loan-bank-name {
  white-space: nowrap;
}

.loan-rate,
.loan-installment,
.loan-count,
.loan-next-date,
.customer-invoice-date,
.customer-due-date,
.supplier-purchase-date,
.supplier-due-date,
.breakdown-kind,
.breakdown-share {
  white-space: nowrap;
}

.customer-description,
.supplier-description {
  min-width: 220px;
  color: var(--muted);
  line-height: 1.45;
}

.breakdown-kind {
  color: var(--accent);
  font-weight: 700;
}

.breakdown-share {
  color: var(--accent);
  font-weight: 700;
}

.customer-col-status,
.personnel-col-status {
  text-align: center;
  white-space: nowrap;
}

.todo-col-status {
  text-align: center;
  white-space: nowrap;
}

.loan-col-actions,
.customer-col-actions,
.supplier-col-actions {
  min-width: 180px;
  text-align: right;
}

.personnel-col-actions,
.todo-col-actions {
  min-width: 250px;
  text-align: right;
}

.account-action-buttons,
.loan-action-buttons,
.customer-action-buttons,
.supplier-action-buttons,
.personnel-action-buttons,
.todo-action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.customer-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.customer-status-badge.open {
  color: #173f7c;
  background: rgba(34, 96, 178, 0.12);
}

.customer-status-badge.collected {
  color: #0b6a48;
  background: rgba(21, 114, 91, 0.14);
}

.customer-status-badge.overdue {
  color: #b3293c;
  background: rgba(209, 73, 91, 0.12);
}

.personnel-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.personnel-status-badge.active {
  color: #0b6a48;
  background: rgba(21, 114, 91, 0.14);
}

.personnel-status-badge.passive {
  color: #b3293c;
  background: rgba(209, 73, 91, 0.12);
}

.todo-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.todo-status-badge.open {
  color: #173f7c;
  background: rgba(34, 96, 178, 0.12);
}

.todo-status-badge.completed {
  color: #0b6a48;
  background: rgba(21, 114, 91, 0.14);
}

.todo-status-badge.overdue {
  color: #b3293c;
  background: rgba(209, 73, 91, 0.12);
}

.todo-due-date,
.todo-completed-date {
  white-space: nowrap;
}

.todo-note {
  min-width: 240px;
  color: var(--muted);
  line-height: 1.45;
}

.personnel-meta,
.personnel-detail,
.supplier-meta,
.supplier-detail {
  color: var(--muted);
}

.account-item,
.loan-item,
.supplier-item,
.personnel-item,
.schedule-item,
.breakdown-item,
.trend-item,
.transaction-item {
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(17, 54, 105, 0.08);
}

.account-item,
.loan-item,
.supplier-item,
.personnel-item,
.schedule-item,
.transaction-item {
  justify-content: space-between;
  align-items: flex-start;
}

.account-item,
.loan-item,
.supplier-item,
.personnel-item,
.schedule-item {
  display: flex;
}

.account-marker,
.type-badge {
  flex-shrink: 0;
  border-radius: 999px;
}

.account-marker {
  width: 12px;
  min-height: 56px;
  background: var(--accent);
}

.account-item.card .account-marker {
  background: #264f8a;
}

.transaction-item {
  display: flex;
}

.transaction-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.loan-main,
.personnel-main,
.supplier-main,
.schedule-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.loan-main {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.supplier-main {
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.personnel-main {
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.loan-main h3,
.loan-meta,
.loan-detail,
.personnel-main h3,
.personnel-meta,
.personnel-detail,
.supplier-main h3,
.supplier-meta,
.supplier-detail,
.schedule-main h3,
.schedule-meta,
.schedule-detail {
  margin: 0;
}

.loan-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.personnel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.loan-side,
.personnel-side,
.supplier-side,
.schedule-side {
  display: grid;
  gap: 8px;
  text-align: right;
}

.loan-side strong,
.personnel-side strong,
.supplier-side strong,
.schedule-side strong {
  font-size: 1.08rem;
}

.schedule-main {
  flex: 1;
}

.status-chip {
  min-width: 96px;
  padding: 8px 12px;
  border-radius: 999px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(25, 63, 119, 0.08);
  color: var(--accent);
}

.status-chip.overdue {
  background: rgba(209, 73, 91, 0.12);
  color: var(--expense);
}

.status-chip.today {
  background: rgba(237, 167, 54, 0.18);
  color: #9b5d00;
}

.status-chip.upcoming {
  background: rgba(21, 114, 91, 0.12);
  color: var(--income);
}

.schedule-item.loan {
  background: #fff5c8;
  border-color: rgba(182, 146, 21, 0.22);
  color: #111111;
}

.schedule-item.customer {
  background: #e8f2ff;
  border-color: rgba(48, 108, 180, 0.18);
  color: #0f2f57;
}

.schedule-item.supplier {
  background: #e2f3dc;
  border-color: rgba(76, 132, 66, 0.18);
  color: #111111;
}

.status-chip.loan {
  background: #f4dc77;
  color: #111111;
}

.status-chip.customer {
  background: #cfe3ff;
  color: #0f2f57;
}

.status-chip.supplier {
  background: #bfe5b7;
  color: #111111;
}

.type-badge {
  width: 12px;
  min-height: 48px;
  background: var(--accent);
}

.transaction-item.income .type-badge {
  background: var(--income);
}

.transaction-item.expense .type-badge {
  background: var(--expense);
}

.transaction-side,
.account-side {
  display: grid;
  gap: 8px;
  text-align: right;
}

.transaction-side strong,
.account-side strong {
  font-size: 1.08rem;
}

.transaction-note:empty,
.transaction-counterparty:empty,
.loan-note:empty,
.account-detail:empty {
  display: none;
}

.breakdown-head,
.trend-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.breakdown-bar,
.trend-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(25, 63, 119, 0.08);
  overflow: hidden;
}

.breakdown-fill,
.trend-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), #5683c4);
}

.trend-fill.negative {
  background: linear-gradient(135deg, var(--expense), #ef8894);
}

.trend-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(25, 63, 119, 0.08);
  color: var(--text);
  font-size: 0.92rem;
}

.metric-chip.positive {
  background: rgba(21, 114, 91, 0.1);
  color: var(--income);
}

.metric-chip.negative {
  background: rgba(209, 73, 91, 0.1);
  color: var(--expense);
}

.loan-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(25, 63, 119, 0.08);
  color: var(--text);
  font-size: 0.9rem;
}

.toolbar {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.toolbar input,
.toolbar select {
  width: auto;
  min-width: 150px;
}

.page-footnote {
  padding: 0 18px 22px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: center;
}

.report-page-body {
  min-height: 100vh;
}

html.report-data-entry-lock,
body.report-data-entry-lock {
  overflow: hidden;
}

.report-page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 18px 28px;
  box-sizing: border-box;
}

.report-executive-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(max(10%, 150px), 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.report-filter-shell {
  display: grid;
  gap: 14px;
  padding: 22px 24px;
  margin-bottom: 18px;
  border-radius: 28px;
  border: 1px solid rgba(17, 54, 105, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 255, 0.92)),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 50px rgba(17, 54, 105, 0.08);
}

.report-filter-copy {
  display: grid;
  gap: 8px;
}

.report-filter-copy h2,
.report-filter-selection {
  margin: 0;
}

.report-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.report-filter-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: end;
  gap: 10px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

.report-date-fields {
  display: grid;
  grid-template-columns: repeat(2, 132px);
  gap: 6px;
  align-items: end;
  flex: 0 0 auto;
}

.report-date-field {
  display: grid;
  gap: 4px;
  width: 132px;
  max-width: 132px;
}

.report-date-field span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.report-date-field input {
  min-height: 34px;
  border: 1px solid rgba(17, 54, 105, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  padding: 0 8px;
  font: inherit;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.report-date-field input:focus {
  border-color: rgba(20, 63, 119, 0.34);
  box-shadow: 0 0 0 4px rgba(20, 63, 119, 0.08);
}

.report-date-chip-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  flex: 0 0 auto;
  min-width: max-content;
}

.report-filter-chip {
  border: 1px solid rgba(17, 54, 105, 0.12);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 11px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.report-filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 54, 105, 0.2);
}

.report-filter-chip.is-active {
  background: linear-gradient(135deg, #143f77, #285a98);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 24px rgba(20, 63, 119, 0.2);
}

.report-filter-selection {
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 760px) {
  .report-date-fields {
    grid-template-columns: 1fr;
  }
}

.report-executive-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(17, 54, 105, 0.08);
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(239, 245, 252, 0.96));
  box-shadow: var(--shadow);
}

.report-executive-card span,
.report-executive-card strong,
.report-executive-card small {
  margin: 0;
}

.report-executive-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.report-executive-card strong {
  color: var(--text);
  font-size: 1.06rem;
}

.report-executive-card small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.report-executive-card-money strong,
.report-executive-card-money small {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.report-executive-card-department {
  background:
    linear-gradient(180deg, rgba(244, 248, 255, 0.98), rgba(231, 239, 252, 0.96));
  border-color: rgba(33, 87, 158, 0.14);
}

.report-executive-card-department small {
  color: var(--accent);
}

.report-page-hero {
  display: grid;
  grid-template-columns: minmax(380px, 0.98fr) minmax(520px, 1.08fr);
  gap: 18px;
  margin-bottom: 18px;
}

.report-page-copy,
.report-page-summary,
.report-page-nav,
.report-page-section {
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  background: var(--panel);
  border-radius: 28px;
}

.report-page-copy,
.report-page-summary,
.report-page-nav,
.report-page-section {
  padding: 24px;
}

.report-page-copy {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  order: 2;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  align-content: start;
  justify-items: start;
  color: #edf4ff;
  background:
    linear-gradient(180deg, rgba(20, 52, 99, 0.95), rgba(11, 30, 57, 0.93)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
}

.report-page-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 38, 73, 0.42), rgba(14, 38, 73, 0.24)),
    url("./Porcshe.webp") center right / cover no-repeat;
  opacity: 0.22;
  z-index: 0;
}

.report-page-copy > * {
  position: relative;
  z-index: 1;
}

.report-page-brand,
.report-page-topline {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.report-page-brand {
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
}

.report-page-summary-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.report-page-summary-brand h2 {
  display: none;
}

.report-page-topline > h2,
.report-page-topline .vehicle-badge {
  display: none;
}

.report-page-brand .ghost-btn {
  margin-left: auto;
}

.report-page-logo {
  display: block;
  width: min(220px, 100%);
  height: auto;
  margin: 0;
  align-self: flex-start;
}

.report-page-logo-summary {
  width: min(360px, calc(100% - 74px));
  align-self: auto;
}

.report-sidebar-toggle {
  width: 56px;
  min-height: 48px;
  padding: 12px;
  align-self: auto;
}

.report-page-copy h1,
.report-page-summary h2,
.report-page-nav h2,
.report-page-section h2 {
  margin: 0;
}

.report-page-copy h1 {
  margin-top: 8px;
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  line-height: 1.1;
}

.report-page-text,
.report-page-note,
.report-section-text,
.report-page-summary p,
.report-anchor-list a,
.report-focus-card p,
.report-output-card p {
  line-height: 1.6;
}

.report-page-text {
  max-width: 64ch;
  margin: 14px 0 0;
  color: rgba(237, 244, 255, 0.84);
}

.report-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.report-page-actions .quick-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 46px;
}

.report-page-actions .ghost-btn,
.report-page-brand .ghost-btn {
  width: auto;
}

.report-page-quick-shell {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.report-page-quick-kicker {
  margin: 0;
  color: rgba(237, 244, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-page-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.report-page-quick-card {
  display: grid;
  gap: 4px;
  align-content: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 82px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #edf4ff;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 12px 20px rgba(7, 18, 37, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.report-page-quick-card::after {
  content: "";
  position: absolute;
  inset: auto -22px -22px auto;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(18deg);
  pointer-events: none;
}

button.report-page-quick-card {
  font: inherit;
  cursor: pointer;
}

.report-page-quick-card:hover,
.report-page-quick-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 24px rgba(7, 18, 37, 0.2);
  outline: none;
}

.report-page-quick-title {
  color: #ffffff;
  font-size: 0.96rem;
  line-height: 1.2;
}

.report-page-quick-note {
  color: rgba(237, 244, 255, 0.72);
  font-size: 0.78rem;
  line-height: 1.35;
}

.report-page-quick-card.is-list::after {
  background: rgba(110, 219, 190, 0.12);
}

.report-page-quick-card.is-kanban::after {
  background: rgba(111, 155, 255, 0.14);
}

.report-page-quick-card.is-alarm::after {
  background: rgba(255, 210, 118, 0.14);
}

.report-page-quick-card.is-list {
  border-color: rgba(110, 219, 190, 0.24);
  background: linear-gradient(135deg, rgba(30, 93, 86, 0.92), rgba(21, 65, 78, 0.92));
}

.report-page-quick-card.is-list .report-page-quick-title,
.report-page-quick-card.is-list .report-page-quick-note {
  color: #ebfff8;
}

.report-page-quick-card.is-kanban {
  border-color: rgba(111, 155, 255, 0.24);
  background: linear-gradient(135deg, rgba(36, 69, 132, 0.94), rgba(31, 47, 104, 0.94));
}

.report-page-quick-card.is-kanban .report-page-quick-title,
.report-page-quick-card.is-kanban .report-page-quick-note {
  color: #eef4ff;
}

.report-page-quick-card.is-alarm {
  border-color: rgba(255, 210, 118, 0.3);
  background: linear-gradient(135deg, rgba(138, 90, 24, 0.94), rgba(108, 56, 24, 0.94));
}

.report-page-quick-card.is-alarm .report-page-quick-title,
.report-page-quick-card.is-alarm .report-page-quick-note {
  color: #fff5dc;
}

.report-page-quick-card.report-data-entry-trigger {
  border-color: rgba(34, 92, 168, 0.2);
  background: linear-gradient(135deg, rgba(235, 244, 255, 0.96), rgba(220, 235, 255, 0.92));
  box-shadow: 0 14px 30px rgba(26, 78, 142, 0.12);
}

.report-page-quick-card.report-data-entry-trigger strong {
  color: #163861;
}

.report-page-quick-card.report-data-entry-trigger .report-page-quick-note {
  color: #4e6785;
}

.report-page-quick-card.report-data-entry-trigger .report-page-quick-badge {
  background: rgba(34, 92, 168, 0.12);
  color: #25538e;
}

.report-page-quick-card.report-data-entry-trigger .report-page-quick-icon {
  background: linear-gradient(135deg, rgba(34, 92, 168, 0.12), rgba(34, 92, 168, 0.2));
  color: #214d83;
}

.report-data-entry-trigger {
  color: #163861;
  background: linear-gradient(135deg, rgba(235, 244, 255, 0.96), rgba(220, 235, 255, 0.92));
  border: 1px solid rgba(34, 92, 168, 0.18);
  box-shadow: 0 14px 30px rgba(26, 78, 142, 0.12);
}

.report-data-entry-backdrop {
  position: fixed;
  inset: 0;
  border: none;
  background: rgba(7, 21, 44, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 40;
}

.report-data-entry-panel {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(1080px, calc(100vw - 28px));
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(236, 243, 252, 0.96)),
    radial-gradient(circle at top right, rgba(97, 157, 255, 0.18), transparent 42%);
  box-shadow: 0 30px 60px rgba(8, 24, 49, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  overflow: hidden;
  transform: translateX(calc(100% + 34px));
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 180ms ease;
  z-index: 45;
}

.page-shell.report-data-entry-open .report-data-entry-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.page-shell.report-data-entry-open .report-data-entry-panel {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.page-shell.report-data-entry-open {
  height: 100vh;
  overflow: hidden;
}

.report-data-entry-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.report-data-entry-panel-copy {
  display: grid;
  gap: 8px;
}

.report-data-entry-panel-copy h2,
.report-data-entry-panel-copy p {
  margin: 0;
}

.report-data-entry-panel-body {
  display: grid;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
}

.report-data-entry-form {
  display: grid;
  gap: 18px;
  min-height: 0;
}

.report-data-entry-group {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(201, 219, 243, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.report-data-entry-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.report-data-entry-group-head h3,
.report-data-entry-group-head p {
  margin: 0;
}

.report-data-entry-group-head h3 {
  font-size: 1.04rem;
  color: #15385f;
}

.report-data-entry-group-head p {
  color: #5e718b;
}

.report-data-entry-grid {
  display: grid;
  gap: 14px;
}

.report-data-entry-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-data-entry-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-data-entry-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-data-entry-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
  align-items: start;
}

.report-data-entry-subcard {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(184, 204, 230, 0.9);
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(240, 246, 253, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.report-data-entry-subcard-head {
  display: grid;
  gap: 5px;
}

.report-data-entry-subcard-head h4,
.report-data-entry-subcard-head p {
  margin: 0;
}

.report-data-entry-subcard-head h4 {
  font-size: 0.98rem;
  color: #15385f;
}

.report-data-entry-subcard-head p {
  color: #60748f;
}

.report-data-entry-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.report-data-entry-field span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #36506f;
}

.report-data-entry-field-money input {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.report-data-entry-customer-info-grid {
  padding-top: 4px;
}

.report-data-entry-customer-info-grid .report-data-entry-field-wide {
  grid-column: span 2;
}

.report-data-entry-field input,
.report-data-entry-field select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 15px;
  border: 1px solid rgba(163, 183, 211, 0.85);
  background: rgba(248, 251, 255, 0.96);
  color: #16304f;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.report-data-entry-field input:focus,
.report-data-entry-field select:focus {
  outline: none;
  border-color: rgba(42, 110, 190, 0.72);
  box-shadow: 0 0 0 3px rgba(66, 132, 210, 0.12);
}

.report-data-entry-field-wide {
  grid-column: span 2;
}

.report-data-entry-field-full {
  grid-column: 1 / -1;
}

.report-data-entry-field-status {
  position: relative;
  z-index: 3;
}

.report-data-entry-field-status select {
  position: relative;
  z-index: 3;
}

.report-data-entry-field-full {
  position: relative;
  z-index: 1;
}

.report-data-entry-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.report-data-entry-choice-pill {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(163, 183, 211, 0.9);
  background: rgba(247, 250, 255, 0.96);
  color: #183a61;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.report-data-entry-choice-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(60, 126, 206, 0.72);
  box-shadow: 0 8px 18px rgba(27, 74, 132, 0.12);
}

.report-data-entry-choice-pill.is-active {
  border-color: rgba(24, 111, 84, 0.78);
  background: linear-gradient(180deg, rgba(50, 184, 127, 0.18), rgba(22, 143, 95, 0.22));
  color: #0f5a41;
  box-shadow: 0 10px 22px rgba(21, 128, 85, 0.16);
}

.report-data-entry-combo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.report-data-entry-combo .ghost-btn {
  width: auto;
  min-width: 128px;
}

.report-entry-inline-card {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(165, 186, 214, 0.86);
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.96), rgba(233, 242, 252, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.report-entry-inline-card[hidden] {
  display: none;
}

.report-entry-inline-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.report-entry-inline-card-head strong,
.report-entry-inline-card-head p {
  margin: 0;
}

.report-entry-inline-card-head p {
  margin-top: 4px;
  color: #62758f;
}

.report-entry-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-entry-inline-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.report-entry-line-list {
  display: grid;
  gap: 14px;
}

.report-entry-line-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(177, 197, 223, 0.88);
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(237, 244, 252, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.report-entry-line-card-collection {
  background: linear-gradient(180deg, rgba(251, 252, 255, 0.98), rgba(240, 244, 250, 0.96));
}

.report-entry-line-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-entry-line-card-head strong {
  color: #183a61;
  font-size: 0.95rem;
}

.report-entry-total-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.report-entry-total-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(181, 202, 230, 0.88);
  background: rgba(245, 249, 255, 0.95);
}

.report-entry-total-card span,
.report-entry-total-card strong {
  margin: 0;
}

.report-entry-total-card span {
  color: #60748f;
  font-size: 0.76rem;
  font-weight: 700;
}

.report-entry-total-card strong {
  color: #16304f;
  font-size: 0.94rem;
  line-height: 1.2;
}

.report-data-entry-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 2px;
}

.report-data-entry-submit-btn {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 0.92rem;
}

.report-data-entry-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 14px;
  color: #1d3f65;
  background: rgba(232, 240, 250, 0.9);
  border: 1px solid rgba(184, 203, 229, 0.9);
  font-size: 0.84rem;
  font-weight: 600;
}

.report-data-entry-feedback[data-tone="success"] {
  color: #15542d;
  background: rgba(225, 247, 233, 0.96);
  border-color: rgba(120, 188, 143, 0.92);
}

.report-data-entry-feedback[data-tone="error"] {
  color: #7d1e2d;
  background: rgba(252, 234, 238, 0.96);
  border-color: rgba(217, 149, 166, 0.92);
}

.report-data-entry-output-group {
  gap: 16px;
}

.report-data-entry-kanban-shell {
  margin-top: 18px;
}

.report-data-entry-kanban-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(2, minmax(160px, 0.9fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.report-data-entry-kanban-filter-field {
  display: grid;
  gap: 6px;
}

.report-data-entry-kanban-filter-field span {
  color: #5f7695;
  font-size: 0.76rem;
  font-weight: 700;
}

.report-data-entry-kanban-filter-field input,
.report-data-entry-kanban-filter-field select {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(170, 189, 214, 0.92);
  background: rgba(255, 255, 255, 0.96);
  color: #17385f;
}

.report-data-entry-kanban-filter-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.report-data-entry-kanban-filter-actions strong {
  color: #17385f;
  font-size: 0.86rem;
}

.report-data-entry-kanban-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.report-data-entry-kanban-column {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 320px;
  border-radius: 22px;
  border: 1px solid rgba(163, 183, 211, 0.85);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(237, 244, 252, 0.96));
  box-shadow: 0 16px 34px rgba(25, 61, 110, 0.08);
}

.report-data-entry-kanban-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(196, 212, 236, 0.9);
}

.report-data-entry-kanban-column-head strong {
  color: #143659;
  font-size: 0.92rem;
}

.report-data-entry-kanban-column-head span {
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(28, 79, 146, 0.1);
  color: #163b63;
  font-weight: 700;
  font-size: 0.82rem;
}

.report-data-entry-kanban-column-body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  min-height: 220px;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.report-data-entry-kanban-column-body.is-drop-target {
  background: rgba(226, 239, 255, 0.88);
  box-shadow: inset 0 0 0 2px rgba(42, 105, 185, 0.24);
}

.report-data-entry-kanban-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(189, 208, 233, 0.92);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 12px 24px rgba(24, 57, 102, 0.08);
  cursor: grab;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.report-data-entry-kanban-card > *:not(.report-card-share-btn) {
  pointer-events: none;
}

.report-data-entry-kanban-card .report-card-share-btn {
  pointer-events: auto;
}

.report-data-entry-kanban-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(24, 57, 102, 0.12);
}

.report-data-entry-kanban-card.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}

.report-data-entry-kanban-card-head,
.report-data-entry-kanban-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.report-data-entry-kanban-card-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 42px;
}

.report-data-entry-kanban-card-status span {
  color: #5d7391;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.01em;
}

.report-data-entry-kanban-card-status strong {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #113669, #1a4a88);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.report-data-entry-kanban-card-head {
  padding-right: 42px;
  align-items: flex-start;
}

.report-data-entry-kanban-card-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.report-kanban-share-btn {
  top: 10px;
  right: 10px;
  z-index: 4;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-flex !important;
  box-shadow: 0 10px 18px rgba(31, 92, 18, 0.24);
}

.report-data-entry-kanban-card-head strong {
  color: #16385f;
  font-size: 1rem;
  line-height: 1.3;
}

.report-data-entry-kanban-card-title small {
  color: #6b809d;
  font-size: 0.78rem;
  font-weight: 700;
}

.report-data-entry-kanban-card-head span,
.report-data-entry-kanban-card-foot span {
  color: #5d7391;
  font-size: 0.78rem;
  font-weight: 600;
}

.report-data-entry-kanban-card-body {
  display: grid;
  gap: 8px;
}

.report-data-entry-kanban-card-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.report-data-entry-kanban-card-metric {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(240, 246, 255, 0.95);
  border: 1px solid rgba(200, 216, 238, 0.9);
}

.report-data-entry-kanban-card-metric span {
  color: #68819f;
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.01em;
}

.report-data-entry-kanban-card-metric strong {
  color: #18324f;
  font-size: 0.86rem;
  line-height: 1.35;
}

.report-data-entry-kanban-empty {
  display: grid;
  place-items: center;
  min-height: 116px;
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(170, 189, 214, 0.96);
  background: rgba(255, 255, 255, 0.7);
  color: #6d829e;
  font-weight: 600;
  font-size: 0.82rem;
}

.report-delivery-alarm-shell {
  margin-top: 18px;
}

.report-delivery-calendar-shell {
  margin-top: 18px;
}

.report-delivery-calendar-panel {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(189, 208, 233, 0.92);
  box-shadow: 0 16px 30px rgba(20, 53, 95, 0.08);
  margin-bottom: 16px;
}

.report-delivery-calendar-day-list {
  display: grid;
  gap: 10px;
}

.report-delivery-alarm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.report-delivery-alarm-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(189, 208, 233, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.96));
  box-shadow: 0 14px 28px rgba(20, 53, 95, 0.08);
}

.report-delivery-alarm-card span {
  color: #607794;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.report-delivery-alarm-card strong {
  color: #15385f;
  font-size: 1.42rem;
  line-height: 1.1;
}

.report-delivery-alarm-card small {
  color: #5f7695;
  font-size: 0.82rem;
  line-height: 1.45;
}

.report-delivery-alarm-card.is-overdue {
  border-color: rgba(211, 92, 92, 0.3);
  background: linear-gradient(180deg, rgba(255, 246, 246, 0.98), rgba(255, 236, 236, 0.96));
}

.report-delivery-alarm-card.is-today {
  border-color: rgba(215, 170, 54, 0.35);
  background: linear-gradient(180deg, rgba(255, 250, 236, 0.98), rgba(255, 244, 212, 0.96));
}

.report-delivery-alarm-card.is-tomorrow {
  border-color: rgba(62, 130, 214, 0.28);
  background: linear-gradient(180deg, rgba(245, 250, 255, 0.98), rgba(232, 242, 255, 0.96));
}

.report-delivery-alarm-card.is-ready {
  border-color: rgba(58, 155, 86, 0.28);
  background: linear-gradient(180deg, rgba(245, 255, 248, 0.98), rgba(231, 247, 236, 0.96));
}

.report-delivery-alarm-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.report-delivery-alarm-list-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(189, 208, 233, 0.92);
  background: rgba(252, 254, 255, 0.98);
  box-shadow: 0 16px 30px rgba(20, 53, 95, 0.08);
}

.report-delivery-alarm-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.report-delivery-alarm-list-head strong {
  color: #15385f;
  font-size: 0.98rem;
}

.report-delivery-alarm-list-head span {
  color: #627895;
  font-size: 0.8rem;
  font-weight: 600;
}

.report-delivery-alarm-list {
  display: grid;
  gap: 10px;
}

.report-delivery-alarm-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(201, 216, 238, 0.9);
  background: rgba(243, 248, 255, 0.9);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.report-delivery-alarm-item:hover,
.report-delivery-alarm-item:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(20, 53, 95, 0.1);
  border-color: rgba(83, 131, 196, 0.45);
  outline: none;
}

.report-delivery-alarm-item.is-overdue {
  border-color: rgba(211, 92, 92, 0.3);
  background: rgba(255, 244, 244, 0.94);
}

.report-delivery-alarm-item.is-today {
  border-color: rgba(215, 170, 54, 0.3);
  background: rgba(255, 248, 232, 0.96);
}

.report-delivery-alarm-item.is-tomorrow {
  border-color: rgba(62, 130, 214, 0.26);
  background: rgba(240, 247, 255, 0.94);
}

.report-delivery-alarm-item.is-ready {
  border-color: rgba(58, 155, 86, 0.26);
  background: rgba(238, 250, 242, 0.96);
}

.report-delivery-alarm-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.report-delivery-alarm-item-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.report-delivery-alarm-item-title strong {
  color: #18324f;
  font-size: 0.95rem;
  line-height: 1.3;
}

.report-delivery-alarm-item-title span {
  color: #667d99;
  font-size: 0.78rem;
  font-weight: 700;
}

.report-delivery-alarm-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.report-delivery-alarm-item-badge.is-overdue {
  background: linear-gradient(180deg, #d14d4d, #ba3434);
  color: #ffffff;
}

.report-delivery-alarm-item-badge.is-today {
  background: linear-gradient(180deg, #e6b949, #d59d16);
  color: #513700;
}

.report-delivery-alarm-item-badge.is-tomorrow {
  background: linear-gradient(180deg, #5d92dd, #3f75c3);
  color: #ffffff;
}

.report-delivery-alarm-item-badge.is-ready {
  background: linear-gradient(180deg, #42a364, #2f8851);
  color: #ffffff;
}

.report-delivery-alarm-item-product {
  margin: 0;
  color: #17385f;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.report-delivery-alarm-item-meta,
.report-delivery-alarm-item-dates {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.report-delivery-alarm-item-meta span,
.report-delivery-alarm-item-dates span {
  color: #5f7695;
  font-size: 0.76rem;
  font-weight: 600;
}

.report-delivery-alarm-item-dates strong {
  color: #143659;
  font-size: 0.8rem;
  font-weight: 800;
}

.report-delivery-alarm-empty {
  display: grid;
  place-items: center;
  min-height: 116px;
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(170, 189, 214, 0.96);
  background: rgba(255, 255, 255, 0.72);
  color: #6d829e;
  font-weight: 600;
  font-size: 0.82rem;
  text-align: center;
}

.report-data-entry-output-shell {
  margin-top: 18px;
}

.report-data-entry-output-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.report-data-entry-output-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.report-data-entry-output-column-manager {
  position: relative;
}

.report-data-entry-output-column-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(440px, calc(100vw - 36px));
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(163, 183, 211, 0.85);
  background: rgba(251, 253, 255, 0.98);
  box-shadow: 0 24px 48px rgba(14, 37, 72, 0.18);
  z-index: 8;
}

.report-data-entry-output-column-panel[hidden] {
  display: none;
}

.report-data-entry-output-column-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-data-entry-output-column-panel-head strong,
.report-data-entry-output-column-panel-head span {
  color: #17385f;
  font-size: 0.84rem;
}

.report-data-entry-output-column-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.report-data-entry-output-column-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px 10px;
  border-radius: 14px;
  background: rgba(240, 246, 255, 0.92);
  border: 1px solid rgba(196, 213, 236, 0.92);
  cursor: pointer;
}

.report-data-entry-output-column-option.is-selected {
  background: rgba(229, 239, 252, 0.96);
  border-color: rgba(120, 155, 199, 0.92);
}

.report-data-entry-output-column-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.8rem;
  color: #224262;
}

.report-data-entry-output-column-toggle input {
  margin: 0;
}

.report-data-entry-output-column-toggle span {
  min-width: 0;
  line-height: 1.2;
  white-space: normal;
}

.report-data-entry-output-column-order-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 4px;
}

.report-data-entry-output-column-order-btn {
  border: 1px solid rgba(122, 152, 193, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #193f77;
  width: 30px;
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.report-data-entry-output-column-order-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #e8f0fd;
  border-color: rgba(25, 63, 119, 0.38);
}

.report-data-entry-output-column-order-btn:disabled {
  cursor: default;
  opacity: 0.45;
}

.report-data-entry-output-actions strong {
  color: #17385f;
  font-size: 0.88rem;
}

.report-data-entry-table-shell {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(163, 183, 211, 0.85);
  background: rgba(247, 250, 255, 0.98);
  max-height: 1180px;
}

.report-data-entry-table {
  width: 100%;
  min-width: 880px;
  border-collapse: separate;
  border-spacing: 0;
  color: #16304f;
  font-size: 0.84rem;
}

.report-data-entry-table th,
.report-data-entry-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(209, 222, 242, 0.92);
  white-space: nowrap;
}

.report-data-entry-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(229, 239, 252, 0.98), rgba(216, 230, 247, 0.98));
  color: #143659;
  font-size: 0.77rem;
  letter-spacing: 0.01em;
}

.report-data-entry-table-sort-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: none;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.report-data-entry-table-sort-btn.is-active {
  color: #0f3567;
}

.report-data-entry-table-sort-indicator {
  width: 12px;
  min-width: 12px;
  text-align: right;
  color: #234a7d;
}

.report-data-entry-table tbody tr:nth-child(even) td {
  background: rgba(242, 247, 253, 0.74);
}

.report-data-entry-table tbody tr:hover td {
  background: rgba(226, 238, 252, 0.88);
}

.report-data-entry-table-empty {
  text-align: center !important;
  color: #5e718b;
  font-weight: 600;
  padding: 24px 18px !important;
}

.report-data-entry-empty {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  padding: 24px;
  border-radius: 24px;
  border: 1px dashed rgba(34, 92, 168, 0.22);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.report-data-entry-empty strong,
.report-data-entry-empty p {
  margin: 0;
}

.report-price-shortcut {
  color: #302100;
  background: linear-gradient(135deg, rgba(255, 221, 87, 0.96), rgba(246, 198, 55, 0.9));
  border: 1px solid rgba(176, 129, 0, 0.24);
  box-shadow: 0 14px 28px rgba(114, 84, 2, 0.16);
}

.report-price-shortcut:hover {
  background: linear-gradient(135deg, rgba(255, 229, 115, 0.98), rgba(250, 207, 76, 0.94));
  border-color: rgba(176, 129, 0, 0.38);
}

.report-page-summary {
  display: grid;
  order: 1;
  gap: 14px;
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(239, 245, 252, 0.96));
}

.report-filter-shell-embedded {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.report-filter-shell-standalone {
  display: none;
}

.report-page-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.report-page-stat {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 10px;
  padding-right: 46px;
  border-radius: 15px;
  background: rgba(25, 63, 119, 0.06);
  border: 1px solid rgba(17, 54, 105, 0.08);
  position: relative;
}

.report-page-stat-realized {
  background: linear-gradient(135deg, rgba(255, 221, 87, 0.95), rgba(246, 198, 55, 0.9));
  border-color: rgba(176, 129, 0, 0.24);
}

.report-page-stat-forecast {
  background: linear-gradient(135deg, rgba(121, 197, 98, 0.94), rgba(91, 172, 78, 0.92));
  border-color: rgba(45, 117, 39, 0.24);
}

.report-page-stat-today {
  background: linear-gradient(135deg, rgba(17, 54, 105, 0.96), rgba(29, 77, 142, 0.92));
  border-color: rgba(10, 35, 71, 0.28);
}

.report-page-stat-realized span,
.report-page-stat-realized strong,
.report-page-stat-forecast span,
.report-page-stat-forecast strong {
  color: #13212f;
}

.report-page-stat-today span,
.report-page-stat-today strong {
  color: #f7fbff !important;
}

.report-page-stat span,
.report-page-stat strong,
.report-page-summary p,
.report-page-note,
.report-focus-card h3,
.report-focus-card p,
.report-output-card h3,
.report-output-card p {
  margin: 0;
}

.report-page-stat span {
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.15;
}

.report-page-stat strong {
  color: var(--text);
  font-size: 0.8rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.report-card-share-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(48, 136, 18, 0.4);
  border-radius: 999px;
  background: linear-gradient(180deg, #3fd600, #249900);
  color: #ffffff;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.report-card-share-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #4be40a, #2cab00);
  border-color: rgba(48, 136, 18, 0.52);
}

.report-card-share-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.report-card-share-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.report-card-share-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.report-page-stat-today .report-card-share-btn {
  background: linear-gradient(180deg, #3fd600, #249900);
  border-color: rgba(48, 136, 18, 0.52);
  color: #ffffff;
}

.report-page-stat-today .report-card-share-btn:hover {
  background: linear-gradient(180deg, #4be40a, #2cab00);
  border-color: rgba(48, 136, 18, 0.62);
}

.report-page-note {
  color: var(--muted);
}

.report-draft-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.report-draft-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.report-draft-head h2 {
  font-size: 1.05rem;
}

.report-draft-list {
  display: grid;
  gap: 10px;
}

.report-draft-item,
.report-draft-empty {
  display: grid;
  gap: 10px;
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(13, 35, 71, 0.08);
}

.report-draft-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.report-draft-copy {
  display: grid;
  gap: 4px;
}

.report-draft-copy strong {
  font-size: 0.96rem;
  color: var(--text);
}

.report-draft-copy p,
.report-draft-copy small,
.report-draft-empty p {
  color: var(--muted);
}

.report-draft-copy small {
  font-size: 0.78rem;
}

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

.report-page-copy .report-draft-panel,
.report-draft-panel-hero {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: none;
}

.report-page-copy .report-draft-head h2,
.report-page-copy .report-draft-copy strong,
.report-page-copy .report-draft-empty strong,
.report-draft-panel-hero .report-draft-head h2,
.report-draft-panel-hero .report-draft-copy strong,
.report-draft-panel-hero .report-draft-empty strong {
  color: #edf4ff;
}

.report-page-copy .report-draft-copy p,
.report-page-copy .report-draft-copy small,
.report-page-copy .report-draft-empty p,
.report-draft-panel-hero .report-draft-copy p,
.report-draft-panel-hero .report-draft-copy small,
.report-draft-panel-hero .report-draft-empty p {
  color: rgba(237, 244, 255, 0.72);
}

.report-page-copy .report-draft-item,
.report-page-copy .report-draft-empty,
.report-draft-panel-hero .report-draft-item,
.report-draft-panel-hero .report-draft-empty {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.report-page-copy .report-draft-actions .ghost-btn,
.report-draft-panel-hero .report-draft-actions .ghost-btn,
.report-page-copy #reportDraftCreateButton,
.report-draft-panel-hero #reportDraftCreateButton {
  color: #edf4ff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.report-page-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 18px;
}

.report-page-layout-wide {
  grid-template-columns: 1fr;
}

.report-page-nav {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.report-page-layout-wide .report-page-nav {
  display: none;
}

.report-page-nav > h2 {
  display: none;
}

.report-page-nav-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-page-nav-head h2 {
  flex: 1;
}

.report-page-nav-toggle {
  flex-shrink: 0;
}

.report-page-nav.is-collapsed {
  gap: 0;
}

.report-nav-groups {
  display: grid;
  gap: 14px;
}

.report-nav-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(247, 250, 255, 0.82);
  border: 1px solid rgba(17, 54, 105, 0.08);
}

.report-nav-heading {
  margin: 0;
  padding: 0 4px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.report-anchor-list {
  display: grid;
  gap: 10px;
}

.report-anchor-list a {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(25, 63, 119, 0.06);
  border: 1px solid rgba(17, 54, 105, 0.08);
  color: var(--text);
  text-decoration: none;
}

.report-anchor-list a:hover {
  transform: translateY(-1px);
  background: rgba(25, 63, 119, 0.1);
}

.report-page-content {
  display: grid;
  gap: 18px;
}

.report-management-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 12px;
}

.report-management-card {
  display: grid;
  gap: 10px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(17, 54, 105, 0.08);
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(239, 245, 252, 0.96));
}

.report-management-card.emphasis {
  background:
    linear-gradient(180deg, rgba(20, 52, 99, 0.96), rgba(11, 30, 57, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  border-color: rgba(255, 255, 255, 0.08);
}

.report-management-card span,
.report-management-card strong,
.report-management-card p {
  margin: 0;
}

.report-management-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.report-management-card strong {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.35;
}

.report-management-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.report-management-card.emphasis span,
.report-management-card.emphasis strong,
.report-management-card.emphasis p {
  color: #edf4ff;
}

.report-page-section {
  display: grid;
  gap: 16px;
}

.report-section-head {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}

.report-section-heading {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.report-section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(17, 54, 105, 0.08);
  cursor: pointer;
  flex-shrink: 0;
  order: -1;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.report-section-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--line-strong);
  box-shadow: 0 14px 28px rgba(17, 54, 105, 0.12);
}

.report-section-toggle-icon {
  display: grid;
  gap: 4px;
}

.report-section-toggle-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.report-section-body[hidden] {
  display: none !important;
}

.report-page-section.is-collapsed {
  gap: 0;
}

.report-page-section h2 {
  font-size: 1.4rem;
  color: var(--text);
}

.report-section-text {
  margin: 0;
  color: var(--muted);
}

.report-dataset-grid,
.report-focus-grid,
.report-output-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#reportAdvisorGrid {
  grid-template-columns: minmax(0, 1fr);
}

#reportAdvisorGrid > .report-advisor-groups {
  min-width: 0;
}

.report-dataset-card,
.report-focus-card,
.report-output-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(17, 54, 105, 0.08);
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(239, 245, 252, 0.96));
}

.report-dataset-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.report-dataset-card strong,
.report-focus-card h3,
.report-output-card h3 {
  color: var(--text);
  font-size: 1rem;
}

.report-dataset-card small,
.report-focus-card p,
.report-output-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.report-output-card {
  background:
    linear-gradient(180deg, rgba(20, 52, 99, 0.96), rgba(11, 30, 57, 0.94)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  border-color: rgba(255, 255, 255, 0.08);
}

.report-output-card h3,
.report-output-card p {
  color: #edf4ff;
}

.report-matrix-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(17, 54, 105, 0.08);
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(239, 245, 252, 0.96));
}

.report-matrix-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.report-matrix-head-side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.report-matrix-head h3,
.report-matrix-meta {
  margin: 0;
}

.report-matrix-meta {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 46ch;
}

.report-matrix-share-btn {
  position: static;
  flex: 0 0 auto;
}

.report-matrix-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(17, 54, 105, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.report-matrix-table {
  width: 100%;
  min-width: 960px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.report-matrix-table th,
.report-matrix-table td {
  padding: 10px 12px;
  border-right: 1px dashed rgba(17, 54, 105, 0.14);
  border-bottom: 1px dashed rgba(17, 54, 105, 0.14);
  white-space: nowrap;
}

.report-matrix-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(11, 30, 57, 0.98), rgba(20, 52, 99, 0.96));
  color: #edf4ff;
  text-align: right;
  font-weight: 700;
}

.report-matrix-table thead th:first-child,
.report-matrix-table tbody th,
.report-matrix-table tfoot th {
  text-align: left;
}

.report-matrix-table thead th:first-child,
.report-matrix-table tbody th,
.report-matrix-table tfoot th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: rgba(242, 247, 252, 0.98);
}

.report-matrix-table tbody th {
  font-weight: 500;
  color: #5f6f87;
}

.report-matrix-table thead th:first-child {
  z-index: 3;
  background: linear-gradient(180deg, rgba(11, 30, 57, 0.98), rgba(20, 52, 99, 0.96));
}

.report-matrix-table tbody tr:nth-child(2n) td,
.report-matrix-table tbody tr:nth-child(2n) th {
  background: rgba(248, 251, 255, 0.98);
}

.report-matrix-row-monday td,
.report-matrix-row-monday th {
  background: rgba(203, 245, 181, 0.34) !important;
}

.report-matrix-row-monday th {
  background: rgba(170, 235, 135, 0.52) !important;
  color: #14421a;
}

.report-matrix-cell-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.report-matrix-date-main {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: #18324f;
}

.report-matrix-date-day {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  font-weight: 400;
  color: #6d7c90;
  text-transform: capitalize;
}

.report-matrix-row-monday .report-matrix-date-main,
.report-matrix-row-monday .report-matrix-date-day {
  color: #14421a;
}

.report-matrix-cell-total {
  font-weight: 700;
  color: #143f77;
  background: rgba(236, 244, 255, 0.94);
}

.report-matrix-table tfoot th,
.report-matrix-table tfoot td {
  background: rgba(225, 245, 210, 0.96);
  font-weight: 700;
}

.report-matrix-table tfoot td {
  color: #113669;
}

.report-matrix-cell-grand {
  color: #0d3c1e;
}

.report-matrix-cell-peak {
  background: linear-gradient(180deg, rgba(118, 242, 77, 0.34), rgba(88, 214, 55, 0.28)) !important;
  color: #103d0f;
  font-weight: 700;
}

.report-matrix-cell-empty {
  background: rgba(250, 252, 255, 0.92);
}

.report-bonus-showcase {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  margin-bottom: 18px;
}

.report-bonus-card {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  padding-right: 52px;
  border-radius: 22px;
  border: 1px solid rgba(17, 54, 105, 0.08);
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(239, 245, 252, 0.96));
  box-shadow: 0 14px 32px rgba(14, 38, 76, 0.08);
  position: relative;
}

.report-bonus-card.is-earned {
  background:
    linear-gradient(180deg, rgba(234, 247, 220, 0.98), rgba(220, 241, 205, 0.96));
  border-color: rgba(67, 123, 39, 0.14);
}

.report-bonus-card.is-forecast {
  background:
    linear-gradient(180deg, rgba(255, 246, 213, 0.98), rgba(255, 237, 184, 0.96));
  border-color: rgba(176, 129, 0, 0.16);
}

.report-bonus-card.is-no-rule {
  background:
    linear-gradient(180deg, rgba(245, 247, 252, 0.98), rgba(233, 238, 247, 0.96));
  border-color: rgba(98, 117, 149, 0.16);
}

.report-bonus-card.is-tracking {
  background:
    linear-gradient(180deg, rgba(255, 235, 231, 0.98), rgba(255, 222, 215, 0.96));
  border-color: rgba(196, 83, 64, 0.16);
}

.report-bonus-card-head,
.report-bonus-card-title,
.report-bonus-card-status,
.report-bonus-card-metric span,
.report-bonus-card-metric strong,
.report-bonus-card-note {
  margin: 0;
}

.report-bonus-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-right: 8px;
}

.report-bonus-card-title {
  display: grid;
  gap: 4px;
}

.report-bonus-card-kicker {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.report-bonus-card-title strong {
  color: var(--text);
  font-size: 1rem;
}

.report-bonus-card-status {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(17, 54, 105, 0.08);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.report-bonus-card.is-earned .report-bonus-card-status {
  background: rgba(67, 123, 39, 0.12);
  color: #2d6f27;
}

.report-bonus-card.is-forecast .report-bonus-card-status {
  background: rgba(176, 129, 0, 0.14);
  color: #8c6500;
}

.report-bonus-card.is-no-rule .report-bonus-card-status {
  background: rgba(98, 117, 149, 0.14);
  color: #465a7a;
}

.report-bonus-card.is-tracking .report-bonus-card-status {
  background: rgba(196, 83, 64, 0.12);
  color: #a04334;
}

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

.report-bonus-card-metric {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 54, 105, 0.06);
}

.report-bonus-card-metric span {
  color: var(--muted);
  font-size: 0.76rem;
}

.report-bonus-card-metric strong {
  color: var(--text);
  font-size: 0.94rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.report-bonus-card-progress {
  display: grid;
  gap: 8px;
}

.report-bonus-card-progress-bar {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(17, 54, 105, 0.1);
}

.report-bonus-card-progress-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f0b400, #58b04f);
}

.report-bonus-card-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.report-bonus-card-progress-meta strong {
  color: var(--text);
  font-weight: 700;
}

.report-bonus-card-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.report-bonus-card-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(17, 54, 105, 0.06);
  border: 1px solid rgba(17, 54, 105, 0.08);
}

.report-bonus-card-total span,
.report-bonus-card-total strong,
.report-bonus-card-total small {
  margin: 0;
}

.report-bonus-card-total span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.report-bonus-card-total strong {
  color: var(--text);
  font-size: 1rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.report-bonus-card-total small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: right;
}

.report-bonus-empty {
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px dashed rgba(17, 54, 105, 0.16);
  color: var(--muted);
  background: rgba(245, 248, 252, 0.9);
}

.report-output-kicker {
  color: rgba(237, 244, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.report-output-card-advisor {
  gap: 10px;
}

.report-output-metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.report-output-metric {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.report-output-metric small {
  color: rgba(237, 244, 255, 0.72);
  font-size: 0.76rem;
}

.report-output-metric strong {
  color: #ffffff;
  font-size: 0.96rem;
  line-height: 1.35;
}

.report-advisor-table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid rgba(17, 54, 105, 0.08);
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(239, 245, 252, 0.96));
}

.report-advisor-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  table-layout: auto;
}

.report-advisor-table th,
.report-advisor-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(17, 54, 105, 0.08);
}

.report-advisor-table th.report-advisor-number,
.report-advisor-table td.report-advisor-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 11rem;
}

.report-advisor-table th {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: rgba(17, 54, 105, 0.04);
  white-space: nowrap;
  vertical-align: bottom;
}

.report-advisor-table td {
  color: var(--text);
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.7);
}

.report-advisor-table tbody tr:hover td {
  background: rgba(247, 250, 255, 0.98);
}

.report-advisor-table tbody tr:last-child td {
  border-bottom: none;
}

.report-advisor-groups {
  display: grid;
  gap: 14px;
}

.report-advisor-group {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(17, 54, 105, 0.08);
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(239, 245, 252, 0.96));
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.report-advisor-group.is-collapsed {
  gap: 0;
}

.report-advisor-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.report-advisor-group-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  position: relative;
  z-index: 4;
  margin-left: auto;
  align-self: flex-start;
}

.report-advisor-group-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.report-advisor-group-body {
  min-width: 0;
}

.report-advisor-group-title > div,
.report-advisor-group-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.report-advisor-group-copy {
  flex: 0 0 auto;
  width: var(--report-advisor-copy-width, auto);
  max-width: var(--report-advisor-copy-width, none);
}

.report-advisor-group-title span,
.report-advisor-group-title h3,
.report-advisor-group-head strong,
.report-advisor-department-head span,
.report-advisor-department-head h4 {
  margin: 0;
}

.report-advisor-group-title span,
.report-advisor-department-head span {
  color: var(--muted);
  font-size: 0.82rem;
}

.report-advisor-group-title h3 {
  color: var(--text);
  font-size: 1.2rem;
}

.report-advisor-group-head strong {
  color: var(--accent);
  font-size: 1.02rem;
  white-space: nowrap;
}

.report-advisor-group-actions .report-card-share-btn {
  position: static;
  top: auto;
  right: auto;
  min-width: 34px;
  width: 34px;
  height: 30px;
  padding: 0;
  border-color: rgba(48, 136, 18, 0.46);
  background: linear-gradient(180deg, #3fd600, #249900);
  color: #ffffff;
  flex: 0 0 auto;
  z-index: 5;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(17, 54, 105, 0.12);
}

.report-advisor-share-btn-inline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
  min-width: 34px !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border-color: rgba(48, 136, 18, 0.46) !important;
  background: linear-gradient(180deg, #3fd600, #249900) !important;
  color: #ffffff !important;
  flex: 0 0 auto !important;
  z-index: 6 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  cursor: pointer !important;
  box-shadow: 0 8px 18px rgba(17, 54, 105, 0.12);
  margin-left: 2px;
  border-radius: 999px !important;
}

.report-advisor-group-actions .report-card-share-btn:hover {
  background: linear-gradient(180deg, #4be40a, #2cab00);
  border-color: rgba(48, 136, 18, 0.58);
  color: #ffffff;
}

.report-advisor-share-btn-inline:hover {
  background: linear-gradient(180deg, #4be40a, #2cab00) !important;
  border-color: rgba(48, 136, 18, 0.58) !important;
  color: #ffffff !important;
}

.report-advisor-group[data-share-render="1"] {
  gap: 14px;
}

.report-advisor-group-body[hidden] {
  display: none !important;
}

.report-advisor-department {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(25, 63, 119, 0.05);
  border: 1px solid rgba(17, 54, 105, 0.08);
}

.report-advisor-department-head {
  display: grid;
  gap: 10px;
}

.report-advisor-department-head h4 {
  color: var(--text);
  font-size: 1rem;
}

.report-advisor-department-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-advisor-department-metrics span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 54, 105, 0.08);
  color: var(--text);
  font-size: 0.84rem;
}

.report-advisor-department-metrics .report-advisor-metric-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.report-advisor-table-nested {
  min-width: 1640px;
}

@media (max-width: 1440px) {
  .report-bonus-showcase {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .report-bonus-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-advisor-group-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-advisor-group-actions {
    justify-content: flex-start;
  }

  .report-advisor-group-head strong {
    white-space: normal;
  }
}

@media (max-width: 720px) {
  .report-output-metric-list {
    grid-template-columns: 1fr;
  }

  .report-bonus-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-bonus-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-bonus-card-progress-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-bonus-card-total {
    flex-direction: column;
    align-items: flex-start;
  }

  .report-bonus-card-total strong,
  .report-bonus-card-total small {
    text-align: left;
  }
}

.report-pivot-board {
  display: grid;
  gap: 14px;
}

.report-pivot-group {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(17, 54, 105, 0.08);
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(239, 245, 252, 0.96));
}

.report-pivot-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.report-pivot-group-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.report-pivot-group-title > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.report-pivot-toggle {
  flex-shrink: 0;
}

.report-pivot-group-head span,
.report-pivot-group-head h3,
.report-pivot-group-head strong,
.report-pivot-summary,
.report-pivot-label span,
.report-pivot-label strong,
.report-pivot-row p,
.report-pivot-note strong,
.report-pivot-note p {
  margin: 0;
}

.report-pivot-group-head span,
.report-pivot-label span {
  color: var(--muted);
  font-size: 0.82rem;
}

.report-pivot-group-head h3 {
  color: var(--text);
  font-size: 1.2rem;
}

.report-pivot-group-head strong {
  color: var(--accent);
  font-size: 1.08rem;
  white-space: nowrap;
}

.report-pivot-summary {
  color: var(--muted);
  font-size: 0.92rem;
}

.report-pivot-group-body[hidden] {
  display: none !important;
}

.report-pivot-group.is-collapsed {
  gap: 0;
}

.report-pivot-rows {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  border-left: 2px solid rgba(25, 63, 119, 0.12);
}

.report-pivot-row {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(25, 63, 119, 0.05);
  border: 1px solid rgba(17, 54, 105, 0.08);
}

.report-pivot-label {
  display: grid;
  gap: 4px;
}

.report-pivot-label strong {
  color: var(--text);
  font-size: 1rem;
}

.report-pivot-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-pivot-metrics span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 54, 105, 0.08);
  color: var(--text);
  font-size: 0.84rem;
}

.report-pivot-metrics span.report-pivot-metric-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.report-pivot-branch-metrics {
  margin-top: -2px;
}

.report-pivot-row p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.report-pivot-note {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(25, 63, 119, 0.06);
  border: 1px solid rgba(17, 54, 105, 0.08);
}

.report-pivot-note strong {
  color: var(--accent);
}

.report-pivot-note p {
  color: var(--muted);
  line-height: 1.6;
}

.empty-state {
  padding: 18px;
  text-align: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed rgba(17, 54, 105, 0.2);
}

.money-positive {
  color: var(--income);
}

.money-negative {
  color: var(--expense);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroKpiTrackMove {
  from {
    transform: translateX(var(--hero-kpi-start-offset));
  }

  to {
    transform: translateX(calc(-50% + var(--hero-kpi-start-offset)));
  }
}

@media (max-width: 1460px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1160px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .accounts-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .report-executive-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-page-hero,
  .report-page-layout {
    grid-template-columns: 1fr;
  }

  .report-page-nav {
    position: static;
  }

  .report-management-grid {
    grid-template-columns: 1fr;
  }

  .report-dataset-grid,
  .report-focus-grid,
  .report-output-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .hero,
  .accounts-columns,
  .report-page-hero,
  .report-page-layout {
    grid-template-columns: 1fr;
  }

  .side-panel-workspace.is-open .side-panel.is-active {
    top: 14px;
    left: 14px;
    right: 14px;
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
  }

  .hero-brand {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .hero-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-logo {
    width: min(300px, calc(100% - 76px));
  }

  .hero-live-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-live-chip,
  .hero-kpi-chip {
    min-width: 200px;
  }

  .report-page-nav {
    position: static;
  }

  .report-dataset-grid,
  .report-focus-grid,
  .report-output-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .sidebar-shell {
    inset: 10px auto 10px 10px;
    width: min(var(--sidebar-shell-width), calc(100vw - 20px));
    padding: 16px;
    border-radius: 28px;
  }

  .side-panel-workspace.is-open .side-panel.is-active {
    top: 10px;
    left: 10px;
    right: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 12px;
  }

  .hero {
    padding: 14px 14px 0;
    gap: 14px;
  }

  .content-grid {
    padding: 14px;
    gap: 14px;
  }

  .stats-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .report-executive-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-head,
  .section-mini-head,
  .breakdown-head,
  .trend-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .panel,
  .hero-copy,
  .hero-glass {
    padding: 20px;
  }

  .hero-text,
  .panel-caption,
  .detail-title {
    font-size: 0.92rem;
  }

  .hero-live-track {
    grid-template-columns: 1fr;
  }

  .hero-live-chip,
  .hero-kpi-chip {
    min-width: 180px;
  }

  .hero-todo-head {
    flex-direction: column;
    align-items: stretch;
  }

  .calendar-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    width: 100%;
    align-items: center;
  }

  .calendar-nav strong {
    min-width: 0;
    text-align: center;
    font-size: 1rem;
  }

  .calendar-nav .ghost-btn {
    width: 100%;
  }

  .calendar-weekdays,
  .calendar-grid {
    min-width: 700px;
    gap: 8px;
  }

  .calendar-weekdays span {
    padding: 8px 6px;
    font-size: 0.8rem;
  }

  .calendar-day {
    min-height: 112px;
    padding: 10px;
  }

  .calendar-day-header {
    gap: 6px;
    margin-bottom: 6px;
  }

  .calendar-day-total {
    font-size: 0.74rem;
  }

  .calendar-event {
    padding: 6px 7px;
    border-radius: 10px;
    font-size: 0.74rem;
  }

  .toolbar {
    justify-content: stretch;
  }

  .day-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .day-detail-head span {
    text-align: left;
  }

  .toolbar input,
  .toolbar select,
  .ghost-btn {
    width: 100%;
  }

  .account-item,
  .loan-item,
  .supplier-item,
  .personnel-item,
  .schedule-item,
  .transaction-item {
    flex-direction: column;
  }

  .account-side,
  .loan-side,
  .personnel-side,
  .supplier-side,
  .schedule-side,
  .transaction-side {
    width: 100%;
    text-align: left;
  }

  .report-pivot-group-head {
    flex-direction: column;
  }

  .report-pivot-group-head strong {
    white-space: normal;
  }

  .personnel-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .receivable-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .todo-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-menu-grid {
    grid-template-columns: 1fr;
  }

  .quick-menu-stack {
    grid-template-columns: 1fr;
  }

  .report-page-shell {
    width: 100%;
    padding: 14px 14px 24px;
  }

  .report-data-entry-panel {
    top: 10px;
    right: 10px;
    bottom: 10px;
    width: min(720px, calc(100vw - 20px));
    padding: 18px;
    border-radius: 26px;
  }

  .report-data-entry-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-data-entry-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-data-entry-grid-2,
  .report-data-entry-split {
    grid-template-columns: 1fr;
  }

  .report-entry-total-strip {
    grid-template-columns: 1fr;
  }

  .report-data-entry-combo {
    grid-template-columns: 1fr;
  }

  .report-entry-inline-grid {
    grid-template-columns: 1fr;
  }

  .report-data-entry-output-head,
  .report-data-entry-output-actions {
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
  }

  .report-data-entry-kanban-filters {
    grid-template-columns: 1fr;
  }

  .report-data-entry-kanban-filter-actions {
    justify-content: flex-start;
  }

  .report-data-entry-output-column-panel {
    left: 0;
    right: auto;
    width: min(400px, calc(100vw - 20px));
  }

  .report-page-copy,
  .report-page-summary,
  .report-page-nav,
  .report-page-section {
    padding: 20px;
    border-radius: 24px;
  }

  .report-page-stats,
  .report-dataset-grid,
  .report-focus-grid,
  .report-output-grid {
    grid-template-columns: 1fr;
  }

  .report-section-head {
    align-items: center;
  }

  .report-draft-item {
    grid-template-columns: 1fr;
  }

  .report-draft-actions {
    justify-content: flex-start;
  }

  .import-actions {
    flex-direction: column;
  }

  .import-actions .ghost-btn {
    width: 100%;
  }

  .hero-copy,
  .hero-glass,
  .panel {
    border-radius: 24px;
  }

  .cloud-sync-head,
  .cloud-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cloud-actions .ghost-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-live-track,
  .hero-kpi-track {
    animation: none;
  }
}

@media (max-width: 560px) {
  .auth-gate {
    padding: 16px;
  }

  .accounts-list {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .sidebar-top {
    align-items: flex-start;
  }

  .brand-block strong {
    font-size: 1.34rem;
  }

  .sidebar-toggle,
  .ghost-icon-btn,
  .upcoming-toggle {
    width: 46px;
    min-height: 44px;
  }

  .menu-icon span,
  .mini-menu-icon span {
    width: 18px;
  }

  .hero {
    padding: 12px 12px 0;
  }

  .content-grid {
    padding: 12px;
  }

  .hero-copy,
  .hero-glass,
  .panel {
    padding: 18px;
  }

  .hero-brand {
    gap: 12px;
  }

  .hero-logo {
    width: min(220px, calc(100% - 64px));
  }

  .hero-mini-grid,
  .quick-menu-grid {
    grid-template-columns: 1fr;
  }

  .report-executive-strip {
    grid-template-columns: 1fr;
  }

  .hero-stat strong {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .calendar-weekdays,
  .calendar-grid {
    min-width: 620px;
    gap: 6px;
  }

  .calendar-day {
    min-height: 98px;
    padding: 8px;
  }

  .account-item,
  .loan-item,
  .supplier-item,
  .personnel-item,
  .schedule-item,
  .transaction-item {
    padding: 14px;
  }

  .loan-tags,
  .personnel-tags,
  .trend-metrics {
    gap: 6px;
  }

  .personnel-summary-grid {
    grid-template-columns: 1fr;
  }

  .report-summary-grid {
    grid-template-columns: 1fr;
  }

  .receivable-summary-grid {
    grid-template-columns: 1fr;
  }

  .report-catalog-grid {
    grid-template-columns: 1fr;
  }

  .todo-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-footnote {
    padding: 0 14px 18px;
    font-size: 0.84rem;
  }
}

@media (max-width: 1100px) {
  .loan-table,
  .personnel-table,
  .receivable-table,
  .supplier-table,
  .todo-table {
    min-width: 1020px;
  }

  .breakdown-table {
    min-width: 820px;
  }
}

@media (max-width: 820px) {
  .loan-table-toolbar,
  .personnel-table-toolbar,
  .receivable-table-toolbar,
  .todo-table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .loan-table-toolbar label,
  .loan-table-toolbar .ghost-btn,
  .personnel-table-toolbar label,
  .personnel-table-toolbar .ghost-btn,
  .receivable-table-toolbar label,
  .receivable-table-toolbar .ghost-btn,
  .todo-table-toolbar label,
  .todo-table-toolbar .ghost-btn {
    width: 100%;
  }

  .loan-table,
  .personnel-table,
  .receivable-table,
  .supplier-table,
  .todo-table {
    min-width: 960px;
  }

  .breakdown-table {
    min-width: 760px;
  }
}
