/* Soda ZW Billing V14 — experience layer
   Preserves the Soda ZW navy, orange, white and pale-blue identity. */
:root {
  --v14-navy-950: #031c38;
  --v14-navy-900: #062b4d;
  --v14-navy-800: #073b67;
  --v14-blue-600: #0879b9;
  --v14-orange-600: #e94c09;
  --v14-orange-500: #ff5a14;
  --v14-orange-100: #fff0e8;
  --v14-ice-100: #f4f8fb;
  --v14-ice-200: #eaf3f9;
  --v14-line: #dce7ef;
  --v14-ink: #102f4b;
  --v14-muted: #647b8f;
  --v14-green: #16845b;
  --v14-red: #b93636;
  --v14-radius: 16px;
  --v14-shadow: 0 12px 34px rgba(3, 43, 77, .075);
}

body.sodazw-v14 {
  background:
    radial-gradient(circle at 94% 3%, rgba(8, 121, 185, .08), transparent 26rem),
    var(--v14-ice-100);
  color: var(--v14-ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.sodazw-v14 ::selection { background: #ffd7c4; color: var(--v14-navy-950); }
body.sodazw-v14 a { text-underline-offset: 3px; }
body.sodazw-v14 :focus-visible {
  outline: 3px solid rgba(255, 90, 20, .34);
  outline-offset: 2px;
}

body.sodazw-v14 .skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--v14-navy-900);
  font-weight: 850;
  box-shadow: var(--v14-shadow);
}
body.sodazw-v14 .skip-link:focus { transform: none; }

/* Navigation */
body.sodazw-v14 .sidebar {
  width: 264px;
  padding: 20px 15px 16px;
  background:
    radial-gradient(circle at 0 0, rgba(8,121,185,.22), transparent 18rem),
    linear-gradient(180deg, #062f53, var(--v14-navy-950));
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 10px 0 34px rgba(3,28,56,.12);
}
body.sodazw-v14 .brand-row { margin: 0 3px 20px; }
body.sodazw-v14 .brand {
  min-width: 0;
  gap: 11px;
  margin: 0;
  padding: 7px;
  border-radius: 13px;
}
body.sodazw-v14 .brand:hover { background: rgba(255,255,255,.06); }
body.sodazw-v14 .brand img {
  width: 52px;
  height: 42px;
  border-radius: 9px;
  padding: 3px;
  background: #fff;
}
body.sodazw-v14 .brand span { display: grid; gap: 1px; min-width: 0; }
body.sodazw-v14 .brand strong { color: #fff; font-size: 16px; letter-spacing: -.02em; }
body.sodazw-v14 .brand small { color: #9db6ca; font-size: 9px; font-weight: 750; }
body.sodazw-v14 .sidebar-collapse {
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  color: #c7d7e4;
}
body.sodazw-v14 .sidebar nav { gap: 3px; overflow-y: auto; scrollbar-width: thin; }
body.sodazw-v14 .nav-section {
  margin: 16px 12px 5px;
  color: #7494ae;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
body.sodazw-v14 .sidebar nav a {
  min-height: 42px;
  gap: 11px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #b9ccdb;
  font-size: 11px;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
body.sodazw-v14 .sidebar nav a:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
  transform: translateX(2px);
}
body.sodazw-v14 .sidebar nav a.active {
  border-color: rgba(255,255,255,.11);
  background: linear-gradient(90deg, rgba(255,90,20,.22), rgba(255,255,255,.09));
  color: #fff;
  box-shadow: inset 3px 0 var(--v14-orange-500);
}
body.sodazw-v14 .sidebar nav a b { width: 22px; color: #83a8c2; }
body.sodazw-v14 .sidebar nav a.active b { color: #ff8d59; }
body.sodazw-v14 .sidebar nav svg { width: 18px; height: 18px; }
body.sodazw-v14 .nav-count {
  min-width: 21px;
  height: 21px;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--v14-orange-500);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  text-align: center;
}
body.sodazw-v14 .sidebar-user {
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 14px 7px 0;
  border-color: rgba(255,255,255,.12);
}
body.sodazw-v14 .user-avatar,
body.sodazw-v14 .topbar-profile span {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--v14-orange-500), #ff854f);
  color: #fff;
  font-weight: 900;
}
body.sodazw-v14 .user-avatar { width: 36px; height: 36px; border-radius: 11px; }
body.sodazw-v14 .user-copy { min-width: 0; }
body.sodazw-v14 .user-copy strong { color: #fff; font-size: 10px; }
body.sodazw-v14 .user-copy small { color: #829fb5; font-size: 8px; }
body.sodazw-v14 .sidebar-logout {
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: transparent;
  color: #f4b49a;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

/* Header and workspace */
body.sodazw-v14 .main { margin-left: 264px; padding: 0 clamp(18px, 3vw, 42px) 26px; }
body.sodazw-v14 .topbar {
  position: sticky;
  top: 0;
  z-index: 18;
  min-height: 88px;
  height: auto;
  margin: 0 calc(clamp(18px, 3vw, 42px) * -1) 24px;
  padding: 13px clamp(18px, 3vw, 42px);
  border-bottom: 1px solid rgba(220,231,239,.85);
  background: rgba(244,248,251,.9);
  backdrop-filter: blur(14px);
}
body.sodazw-v14 .page-identity > span {
  color: var(--v14-orange-600);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}
body.sodazw-v14 .topbar h1 {
  margin-top: 3px;
  color: var(--v14-navy-950);
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.12;
}
body.sodazw-v14 .topbar-tools { gap: 9px; }
body.sodazw-v14 .topbar-icon,
body.sodazw-v14 .topbar-profile {
  min-height: 42px;
  border: 1px solid var(--v14-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(3,43,77,.04);
}
body.sodazw-v14 .topbar-icon { width: 42px; }
body.sodazw-v14 .topbar-profile { padding: 5px 10px 5px 5px; color: var(--v14-navy-900); }
body.sodazw-v14 .topbar-profile span { width: 30px; height: 30px; border-radius: 9px; }
body.sodazw-v14 .create-menu summary {
  min-height: 42px;
  padding: 9px 15px;
  border: 0;
  border-radius: 12px;
  background: var(--v14-orange-500);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255,90,20,.2);
}
body.sodazw-v14 .create-menu summary:hover { background: var(--v14-orange-600); }
body.sodazw-v14 .create-menu > div {
  top: calc(100% + 9px);
  border: 1px solid var(--v14-line);
  border-radius: 15px;
  box-shadow: 0 20px 55px rgba(3,43,77,.18);
}

/* Cards, metrics, tables and controls */
body.sodazw-v14 .panel,
body.sodazw-v14 .card,
body.sodazw-v14 .stat,
body.sodazw-v14 .import-card,
body.sodazw-v14 .invoice-summary,
body.sodazw-v14 .payable-strip,
body.sodazw-v14 .document-card {
  border-color: var(--v14-line);
  border-radius: var(--v14-radius);
  box-shadow: var(--v14-shadow);
}
body.sodazw-v14 .panel { padding: clamp(18px, 2.2vw, 28px); margin-bottom: 22px; }
body.sodazw-v14 .panel-head { gap: 16px; margin-bottom: 20px; }
body.sodazw-v14 .panel-head h2,
body.sodazw-v14 .panel h2 {
  color: var(--v14-navy-950);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.025em;
}
body.sodazw-v14 .panel-head p { max-width: 68ch; color: var(--v14-muted); font-size: 11px; }
body.sodazw-v14 .stats { gap: 14px; margin-bottom: 22px; }
body.sodazw-v14 .stat {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 20px;
  transition: transform .18s ease, box-shadow .18s ease;
}
body.sodazw-v14 .stat:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--v14-orange-500), #ff986c);
}
body.sodazw-v14 .stat:after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -32px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--v14-ice-200);
}
body.sodazw-v14 .stat:hover { transform: translateY(-2px); box-shadow: 0 17px 40px rgba(3,43,77,.11); }
body.sodazw-v14 .stat span { color: var(--v14-muted); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
body.sodazw-v14 .stat strong { position: relative; z-index: 1; color: var(--v14-navy-950); font-size: 25px; letter-spacing: -.04em; }
body.sodazw-v14 .stat small { position: relative; z-index: 1; color: var(--v14-muted); }

body.sodazw-v14 .button,
body.sodazw-v14 .quick-create {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 850;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
body.sodazw-v14 .button.primary,
body.sodazw-v14 .quick-create {
  border-color: var(--v14-orange-500);
  background: var(--v14-orange-500);
  box-shadow: 0 7px 17px rgba(255,90,20,.18);
}
body.sodazw-v14 .button.primary:hover,
body.sodazw-v14 .quick-create:hover { background: var(--v14-orange-600); box-shadow: 0 10px 24px rgba(255,90,20,.24); }
body.sodazw-v14 .button.secondary { border-color: #cfdde7; background: #fff; color: var(--v14-navy-900); }
body.sodazw-v14 .button.secondary:hover { border-color: #9eb7ca; background: #f9fcfe; }
body.sodazw-v14 .button.green { background: var(--v14-green); }
body.sodazw-v14 .button.danger { border-color: #f1caca; color: var(--v14-red); }
body.sodazw-v14 .button.small { min-height: 34px; padding: 7px 10px; }
body.sodazw-v14 button:disabled,
body.sodazw-v14 .button.disabled { cursor: not-allowed; opacity: .55; transform: none; }

body.sodazw-v14 label { gap: 7px; color: #294a64; font-size: 10px; font-weight: 850; }
body.sodazw-v14 input,
body.sodazw-v14 select,
body.sodazw-v14 textarea {
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #c9d8e4;
  border-radius: 10px;
  background: #fff;
  color: var(--v14-ink);
  transition: border .14s ease, box-shadow .14s ease;
}
body.sodazw-v14 input:hover,
body.sodazw-v14 select:hover,
body.sodazw-v14 textarea:hover { border-color: #9fb7ca; }
body.sodazw-v14 input:focus,
body.sodazw-v14 select:focus,
body.sodazw-v14 textarea:focus {
  border-color: var(--v14-blue-600);
  outline: none;
  box-shadow: 0 0 0 4px rgba(8,121,185,.12);
}
body.sodazw-v14 input::placeholder,
body.sodazw-v14 textarea::placeholder { color: #91a4b4; }
body.sodazw-v14 .form-grid { gap: 17px; }

body.sodazw-v14 .table-wrap {
  overflow: auto;
  border: 1px solid var(--v14-line);
  border-radius: 13px;
  scrollbar-gutter: stable;
}
body.sodazw-v14 table { border-collapse: separate; border-spacing: 0; }
body.sodazw-v14 th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px;
  border-bottom: 1px solid var(--v14-line);
  background: #f0f6fa;
  color: #60798d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
  white-space: nowrap;
}
body.sodazw-v14 td { padding: 13px 12px; border-bottom-color: #e9f0f5; font-size: 12px; }
body.sodazw-v14 tbody tr { transition: background .12s ease; }
body.sodazw-v14 tbody tr:hover { background: #f8fbfd; }
body.sodazw-v14 td strong { color: var(--v14-navy-900); }
body.sodazw-v14 .status {
  min-height: 25px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .07em;
}
body.sodazw-v14 .alert {
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(3,43,77,.04);
}
body.sodazw-v14 .alert.success { border-color: #bfe5d2; background: #e9f8f0; color: #126c49; }
body.sodazw-v14 .alert.error { border-color: #f1caca; background: #fff0f0; color: #992f2f; }
body.sodazw-v14 .alert.info { border-color: #bfdced; background: #edf7fc; color: #235e83; }
body.sodazw-v14 .empty {
  min-height: 190px;
  display: grid;
  place-content: center;
  border: 1px dashed #bfd0dc;
  border-radius: 13px;
  background: #fbfdfe;
}
body.sodazw-v14 .toolbar,
body.sodazw-v14 .page-actions,
body.sodazw-v14 .doc-actions { gap: 10px; }
body.sodazw-v14 .invoice-tabs,
body.sodazw-v14 .quotation-status-tabs { scrollbar-width: thin; }
body.sodazw-v14 .invoice-tabs a.active,
body.sodazw-v14 .quotation-status-tabs a.active { background: var(--v14-navy-900); color: #fff; }
body.sodazw-v14 .app-footer { padding: 24px 12px 12px; color: #7890a3; letter-spacing: .03em; }

/* Login */
body.auth-page.sodazw-v14 {
  padding: clamp(16px, 4vw, 48px);
  background:
    radial-gradient(circle at 12% 12%, rgba(8,121,185,.35), transparent 30rem),
    radial-gradient(circle at 90% 90%, rgba(255,90,20,.16), transparent 28rem),
    var(--v14-navy-950);
}
body.sodazw-v14 .auth-shell {
  width: min(1060px, 100%);
  min-height: min(680px, calc(100vh - 64px));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(0,0,0,.3);
}
body.sodazw-v14 .auth-brand {
  position: relative;
  padding: clamp(30px, 5vw, 62px);
  background:
    linear-gradient(150deg, rgba(8,121,185,.18), transparent 45%),
    var(--v14-navy-900);
}
body.sodazw-v14 .auth-brand:after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border: 48px solid rgba(255,90,20,.1);
  border-radius: 50%;
  pointer-events: none;
}
body.sodazw-v14 .auth-brand-top img { width: 112px; height: 69px; padding: 6px; border-radius: 12px; background: #fff; }
body.sodazw-v14 .auth-brand-top span { color: #bdd0df; }
body.sodazw-v14 .auth-brand-copy h1 {
  max-width: 540px;
  color: #fff;
  font-size: clamp(38px, 5vw, 64px);
  line-height: .98;
  letter-spacing: -.055em;
}
body.sodazw-v14 .auth-brand-copy h1 em { color: #ff8a55; }
body.sodazw-v14 .auth-brand-copy > p { max-width: 540px; color: #c1d2df; font-size: 15px; line-height: 1.7; }
body.sodazw-v14 .auth-benefits { gap: 10px; }
body.sodazw-v14 .auth-benefits span {
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  color: #d5e1ea;
}
body.sodazw-v14 .auth-benefits b { color: #ff8a55; }
body.sodazw-v14 .auth-card {
  width: auto;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 0;
  box-shadow: none;
}
body.sodazw-v14 .auth-card-heading h2 {
  color: var(--v14-navy-950);
  font-size: 32px;
  letter-spacing: -.04em;
}
body.sodazw-v14 .auth-card-heading p { color: var(--v14-muted); }
body.sodazw-v14 .auth-card form { gap: 17px; }
body.sodazw-v14 .auth-input { border-radius: 11px; }
body.sodazw-v14 .auth-input:focus-within { border-color: var(--v14-blue-600); box-shadow: 0 0 0 4px rgba(8,121,185,.12); }
body.sodazw-v14 .auth-card .button.primary { min-height: 50px; margin-top: 5px; font-size: 12px; }
body.sodazw-v14 .auth-security { border-color: var(--v14-line); border-radius: 12px; background: var(--v14-ice-100); }

@media (max-width: 920px) {
  html,
  body.sodazw-v14 { max-width: 100%; overflow-x: hidden; }
  body.sodazw-v14.nav-open {
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
  }
  body.sodazw-v14 .sidebar { width: 252px; transform: translateX(-105%); }
  body.sodazw-v14 .sidebar.open { transform: none; }
  body.sodazw-v14 .sidebar {
    width: min(86vw, 320px);
    height: 100vh;
    height: 100dvh;
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  body.sodazw-v14 .sidebar nav {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  body.sodazw-v14 .mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 990;
    border: 0;
    background: rgba(2,22,41,.62);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }
  body.sodazw-v14 .main {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  body.sodazw-v14 .menu-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--v14-line);
    border-radius: 11px;
    background: #fff;
    color: var(--v14-navy-900);
  }
  body.sodazw-v14 .menu-toggle,
  body.sodazw-v14 .topbar-icon,
  body.sodazw-v14 .topbar-profile,
  body.sodazw-v14 .create-menu > summary,
  body.sodazw-v14 button:not(.remove-row):not(.studio-remove),
  body.sodazw-v14 .button {
    min-width: 44px;
    min-height: 44px;
  }
  body.sodazw-v14 .page-identity { min-width: 0; }
  body.sodazw-v14 .page-identity h1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.sodazw-v14 .panel,
  body.sodazw-v14 .stat,
  body.sodazw-v14 .document-studio,
  body.sodazw-v14 .studio-main,
  body.sodazw-v14 .studio-summary { min-width: 0; }
  body.sodazw-v14 .table-wrap,
  body.sodazw-v14 .finance-tabs,
  body.sodazw-v14 .invoice-tabs,
  body.sodazw-v14 .quotation-status-tabs,
  body.sodazw-v14 .filter-pills,
  body.sodazw-v14 .studio-workflow,
  body.sodazw-v14 .document-type-switch {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  body.sodazw-v14 .table-wrap table { min-width: 680px; }
  body.sodazw-v14 input,
  body.sodazw-v14 select,
  body.sodazw-v14 textarea { max-width: 100%; font-size: 16px; }
}

@media (max-width: 760px) {
  body.sodazw-v14 .main { padding: 0 13px 20px; }
  body.sodazw-v14 .topbar {
    min-height: 75px;
    margin-right: -13px;
    margin-bottom: 17px;
    margin-left: -13px;
    padding: max(10px, env(safe-area-inset-top)) 13px 10px;
  }
  body.sodazw-v14 .page-identity > span { display: none; }
  body.sodazw-v14 .topbar h1 { font-size: 20px; }
  body.sodazw-v14 .topbar-profile b { display: none; }
  body.sodazw-v14 .topbar-profile { padding-right: 5px; }
  body.sodazw-v14 .panel { padding: 16px; border-radius: 14px; }
  body.sodazw-v14 .panel-head,
  body.sodazw-v14 .page-actions { align-items: stretch; flex-direction: column; }
  body.sodazw-v14 .panel-head .button,
  body.sodazw-v14 .page-actions .button { width: 100%; }
  body.sodazw-v14 .toolbar {
    display: grid;
    grid-template-columns: minmax(0,1fr);
  }
  body.sodazw-v14 .toolbar form {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    width: 100%;
  }
  body.sodazw-v14 .toolbar > *,
  body.sodazw-v14 .toolbar input,
  body.sodazw-v14 .toolbar select,
  body.sodazw-v14 .toolbar .button { width: 100%; max-width: none; }
  body.sodazw-v14 .form-grid,
  body.sodazw-v14 .document-layout,
  body.sodazw-v14 .dashboard-grid,
  body.sodazw-v14 .crm-detail-grid,
  body.sodazw-v14 .permission-grid,
  body.sodazw-v14 .reconciliation-row,
  body.sodazw-v14 .match-form,
  body.sodazw-v14 .stock-receipt-line,
  body.sodazw-v14 .stock-receipt-footer {
    grid-template-columns: minmax(0,1fr) !important;
  }
  body.sodazw-v14 .invoice-tabs,
  body.sodazw-v14 .quotation-status-tabs,
  body.sodazw-v14 .filter-pills { flex-wrap: nowrap; justify-content: flex-start; }
  body.sodazw-v14 .invoice-tabs a,
  body.sodazw-v14 .quotation-status-tabs a,
  body.sodazw-v14 .filter-pills a { flex: 0 0 auto; white-space: nowrap; }
  body.sodazw-v14 .table-wrap { margin-right: -4px; margin-left: -4px; border-radius: 11px; }
  body.sodazw-v14 th,
  body.sodazw-v14 td { padding: 11px 10px; }
  body.sodazw-v14 article.document-card {
    width: 100%;
    max-width: 100%;
    padding: 21px 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.sodazw-v14 article.document-card .document-head,
  body.sodazw-v14 article.document-card .document-meta {
    display: grid;
    grid-template-columns: minmax(0,1fr);
  }
  body.sodazw-v14 article.document-card .document-title,
  body.sodazw-v14 article.document-card .text-right { text-align: left; }
  body.sodazw-v14 article.document-card .document-summary {
    width: 100%;
    margin-left: 0;
  }
  body.sodazw-v14 .document-state-actions {
    display: grid;
    grid-template-columns: minmax(0,1fr);
  }
  body.sodazw-v14 .document-state-actions .button { width: 100%; }
  body.sodazw-v14 .studio-summary {
    position: static !important;
    width: 100%;
    margin-top: 15px;
  }
  body.auth-page.sodazw-v14 { padding: 12px; }
  body.sodazw-v14 .auth-shell {
    display: block;
    min-height: 0;
    border-radius: 18px;
  }
  body.sodazw-v14 .auth-brand { display: block; padding: 24px; }
  body.sodazw-v14 .auth-brand-copy { margin-top: 38px; }
  body.sodazw-v14 .auth-brand-copy h1 { font-size: 39px; }
  body.sodazw-v14 .auth-brand-copy > p,
  body.sodazw-v14 .auth-benefits,
  body.sodazw-v14 .auth-brand > small { display: none; }
  body.sodazw-v14 .auth-card {
    min-height: 0;
    padding: 28px 22px max(28px, env(safe-area-inset-bottom));
  }
}

/* Unified cash dashboard: one compact panel with Daily / Weekly switching. */
body.sodazw-v14 .cash-view-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3,minmax(112px,1fr));
  gap: 4px;
  margin: 0 0 10px;
  padding: 4px;
  border: 1px solid var(--v14-line);
  border-radius: 12px;
  background: #eef4f8;
}
body.sodazw-v14 .cash-view-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
body.sodazw-v14 .cash-view-controls .cash-export {
  flex: 0 0 auto;
  min-height: 43px;
}
body.sodazw-v14 .cash-view-tabs button {
  display: grid;
  gap: 1px;
  min-height: 43px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--v14-muted);
  text-align: left;
  cursor: pointer;
}
body.sodazw-v14 .cash-view-tabs button strong { color: var(--v14-navy-900); font-size: 10px; font-weight: 900; }
body.sodazw-v14 .cash-view-tabs button span { font-size: 8px; }
body.sodazw-v14 .cash-view-tabs button[aria-selected="true"] {
  border-color: #fff;
  background: #fff;
  box-shadow: 0 4px 12px rgba(3,43,77,.09);
}
body.sodazw-v14 .cash-view-tabs button[aria-selected="true"] strong { color: var(--v14-orange-600); }
body.sodazw-v14 .cash-movement-graphs {
  grid-template-columns: minmax(0,1fr) !important;
}
body.sodazw-v14 .cash-movement-card[hidden] { display: none !important; }
@media (max-width: 430px) {
  body.sodazw-v14 .cash-view-tabs { width: 100%; grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.sodazw-v14 .cash-view-tabs button { padding: 6px 8px; }
}

/* V15 premium Soda ZW login experience */
body.auth-page.sodazw-v14 {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(18px,3vw,42px);
  background:
    radial-gradient(circle at 8% 8%,rgba(8,121,185,.3),transparent 29rem),
    radial-gradient(circle at 92% 92%,rgba(255,90,20,.18),transparent 26rem),
    #02182f;
}
body.sodazw-v14 .auth-shell {
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(390px,.92fr);
  width: min(1120px,100%);
  min-height: min(700px,calc(100dvh - 72px));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 38px 100px rgba(0,0,0,.36);
}
body.sodazw-v14 .auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(32px,5vw,62px);
  overflow: hidden;
  background:
    linear-gradient(145deg,rgba(8,121,185,.2),transparent 46%),
    linear-gradient(160deg,#073b67,#031c38);
}
body.sodazw-v14 .auth-brand:before {
  content: "";
  position: absolute;
  top: 22%;
  right: -160px;
  width: 390px;
  height: 390px;
  border: 65px solid rgba(255,255,255,.035);
  border-radius: 50%;
}
body.sodazw-v14 .auth-brand:after {
  content: "";
  position: absolute;
  right: -105px;
  bottom: -105px;
  width: 285px;
  height: 285px;
  border: 48px solid rgba(255,90,20,.12);
  border-radius: 50%;
}
body.sodazw-v14 .auth-brand-top,
body.sodazw-v14 .auth-brand-copy,
body.sodazw-v14 .auth-brand > small { position: relative; z-index: 2; }
body.sodazw-v14 .auth-brand-top { display: flex; align-items: center; gap: 14px; }
body.sodazw-v14 .auth-brand-top img {
  width: 105px;
  height: 64px;
  padding: 5px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
body.sodazw-v14 .auth-brand-top span {
  padding-left: 13px;
  border-left: 1px solid rgba(255,255,255,.18);
  color: #b9cede;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.sodazw-v14 .auth-brand-copy { margin: clamp(55px,9vh,105px) 0 auto; }
body.sodazw-v14 .auth-brand-copy .eyebrow {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #ff9c71;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
body.sodazw-v14 .auth-brand-copy h1 {
  max-width: 650px;
  margin: 17px 0 16px;
  color: #fff;
  font-size: clamp(39px,5vw,67px);
  font-weight: 950;
  letter-spacing: -.065em;
  line-height: .96;
}
body.sodazw-v14 .auth-brand-copy h1 em { color: #ff8a55; font-style: normal; }
body.sodazw-v14 .auth-brand-copy > p { max-width: 590px; margin: 0; color: #bfd2df; font-size: 14px; line-height: 1.75; }
body.sodazw-v14 .auth-benefits {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  margin-top: 25px;
}
body.sodazw-v14 .auth-benefits span {
  display: grid;
  align-content: center;
  min-height: 73px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  color: #d2e0e9;
  font-size: 9px;
  font-weight: 800;
}
body.sodazw-v14 .auth-benefits b { display: block; margin-bottom: 4px; color: #ff8a55; font-size: 8px; letter-spacing: .1em; }
body.sodazw-v14 .auth-brand > small { display: flex; align-items: center; gap: 8px; margin-top: 28px; color: #829fb4; font-size: 8px; }
body.sodazw-v14 .auth-brand > small i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4bd193;
  box-shadow: 0 0 0 4px rgba(75,209,147,.1);
}
body.sodazw-v14 .auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto;
  min-width: 0;
  padding: clamp(34px,5vw,68px);
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
body.sodazw-v14 .auth-access-mark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid #cfe6db;
  border-radius: 999px;
  background: #eff9f4;
  color: #18714e;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.sodazw-v14 .auth-access-mark i { width: 7px; height: 7px; border-radius: 50%; background: #1ba568; }
body.sodazw-v14 .auth-card-heading h2 {
  margin: 17px 0 7px;
  color: var(--v14-navy-950);
  font-size: clamp(31px,3.2vw,42px);
  font-weight: 950;
  letter-spacing: -.055em;
  line-height: 1;
}
body.sodazw-v14 .auth-card-heading p { margin: 0; color: var(--v14-muted); font-size: 11px; }
body.sodazw-v14 .auth-card form:not(.form-grid) { display: grid; gap: 17px; margin-top: 30px; }
body.sodazw-v14 .auth-card label { gap: 7px; }
body.sodazw-v14 .auth-field-label { color: #294a64; font-size: 9px; font-weight: 900; letter-spacing: .03em; }
body.sodazw-v14 .auth-input {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  min-height: 52px;
  overflow: hidden;
  border: 1px solid #cbd9e4;
  border-radius: 12px;
  background: #fbfdfe;
  transition: border .15s ease,box-shadow .15s ease,background .15s ease;
}
body.sodazw-v14 .auth-input:focus-within { border-color: var(--v14-blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(8,121,185,.11); }
body.sodazw-v14 .auth-input > i { display: grid; place-items: center; color: #7890a3; font-size: 11px; font-style: normal; }
body.sodazw-v14 .auth-input input {
  min-width: 0;
  min-height: 50px;
  padding: 10px 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}
body.sodazw-v14 .auth-input input:focus { box-shadow: none; }
body.sodazw-v14 .auth-caps-warning {
  color: #a14b18;
  font-size: 8px;
  font-weight: 850;
}
body.sodazw-v14 .password-toggle {
  min-width: 52px;
  min-height: 36px;
  margin-right: 6px;
  border: 0;
  border-radius: 8px;
  background: #eaf2f7;
  color: var(--v14-navy-900);
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
}
body.sodazw-v14 .auth-card .button.primary {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 52px;
  margin-top: 2px;
  padding: 11px 15px 11px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg,#ff681e,var(--v14-orange-500));
  font-size: 11px;
  box-shadow: 0 11px 25px rgba(255,90,20,.23);
}
body.sodazw-v14 .auth-card .button.primary b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.18); font-size: 15px; }
body.sodazw-v14 .auth-security {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 11px 12px;
  border: 1px solid #dce7ef;
  border-radius: 11px;
  background: #f7fafc;
}
body.sodazw-v14 .auth-security > span { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 8px; background: #e6f6ee; color: #16845b; font-size: 10px; font-weight: 950; }
body.sodazw-v14 .auth-security p { margin: 0; }
body.sodazw-v14 .auth-security strong,
body.sodazw-v14 .auth-security small { display: block; }
body.sodazw-v14 .auth-security strong { color: var(--v14-navy-900); font-size: 9px; }
body.sodazw-v14 .auth-security small { color: var(--v14-muted); font-size: 8px; }
body.sodazw-v14 .auth-help { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 28px; color: #8296a6; font-size: 8px; }
body.sodazw-v14 .auth-help small { color: #9aaab7; font-size: 8px; white-space: nowrap; }

@media (max-width: 820px) {
  body.auth-page.sodazw-v14 { display: block; padding: 0; background: #fff; }
  body.sodazw-v14 .auth-shell { display: block; width: 100%; min-height: 100vh; min-height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  body.sodazw-v14 .auth-brand { display: block; min-height: 225px; padding: max(20px,env(safe-area-inset-top)) 22px 25px; }
  body.sodazw-v14 .auth-brand-top img { width: 88px; height: 53px; }
  body.sodazw-v14 .auth-brand-top span { font-size: 7px; }
  body.sodazw-v14 .auth-brand-copy { margin: 35px 0 0; }
  body.sodazw-v14 .auth-brand-copy .eyebrow { display: none; }
  body.sodazw-v14 .auth-brand-copy h1 { margin: 0; font-size: clamp(31px,9vw,43px); }
  body.sodazw-v14 .auth-brand-copy > p,
  body.sodazw-v14 .auth-benefits,
  body.sodazw-v14 .auth-brand > small { display: none; }
  body.sodazw-v14 .auth-card { min-height: 0; padding: 31px 22px max(28px,env(safe-area-inset-bottom)); }
  body.sodazw-v14 .auth-card-heading h2 { font-size: 32px; }
  body.sodazw-v14 .auth-card form:not(.form-grid) { margin-top: 24px; }
  body.sodazw-v14 .auth-help { margin-top: 25px; padding-top: 18px; border-top: 1px solid #e8eef3; }
}
@media (max-width: 620px) {
  body.sodazw-v14 .cash-view-controls { align-items: stretch; flex-direction: column; }
  body.sodazw-v14 .cash-view-controls .cash-view-tabs,
  body.sodazw-v14 .cash-view-controls .cash-export { width: 100%; }
}
@media (max-width: 430px) {
  body.sodazw-v14 .auth-brand { min-height: 205px; }
  body.sodazw-v14 .auth-brand-copy { margin-top: 28px; }
  body.sodazw-v14 .auth-help { display: grid; }
}

/* V15 aesthetic remodel — unified Daily / Weekly / Monthly cash movement */
body.sodazw-v14 .cash-movement-dashboard {
  overflow: hidden;
  border: 1px solid #d5e3ec;
  border-top: 0;
  border-radius: 19px;
  background:
    radial-gradient(circle at 100% 0,rgba(8,121,185,.09),transparent 26rem),
    #fff;
  box-shadow: 0 16px 42px rgba(3,43,77,.085);
}
body.sodazw-v14 .cash-movement-dashboard:before {
  content: "";
  display: block;
  height: 5px;
  margin: calc(clamp(17px,2vw,24px) * -1) calc(clamp(17px,2vw,24px) * -1) 18px;
  background: linear-gradient(90deg,var(--v14-navy-900) 0 68%,var(--v14-orange-500) 68% 100%);
}
body.sodazw-v14 .cash-movement-dashboard > .panel-head h2 {
  font-size: clamp(20px,2vw,27px);
  letter-spacing: -.04em;
}
body.sodazw-v14 .cash-movement-dashboard > .panel-head p { font-size: 11px; }
body.sodazw-v14 .descriptive-legend {
  border: 0;
  background: rgba(238,245,249,.9);
  box-shadow: inset 0 0 0 1px #dbe7ee;
}
body.sodazw-v14 .cash-definition {
  position: relative;
  padding-left: 42px;
  border: 0;
  background: #f4f8fb;
  box-shadow: inset 0 0 0 1px #e0e9ef;
}
body.sodazw-v14 .cash-definition:before {
  content: "i";
  position: absolute;
  top: 50%;
  left: 13px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--v14-navy-900);
  color: #fff;
  font-family: Georgia,serif;
  font-size: 11px;
  font-weight: 900;
  transform: translateY(-50%);
}
body.sodazw-v14 .cash-view-controls {
  margin-bottom: 10px;
  padding: 5px;
  border: 1px solid #dce7ee;
  border-radius: 14px;
  background: #f5f9fb;
}
body.sodazw-v14 .cash-view-tabs {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
body.sodazw-v14 .cash-view-tabs button {
  min-height: 48px;
  border-radius: 10px;
  transition: background .16s ease,box-shadow .16s ease,color .16s ease;
}
body.sodazw-v14 .cash-view-tabs button strong { font-size: 10px; }
body.sodazw-v14 .cash-view-tabs button[aria-selected="true"] {
  border-color: #fff;
  background: linear-gradient(180deg,#fff,#fbfdfe);
  box-shadow: 0 5px 15px rgba(3,43,77,.11);
}
body.sodazw-v14 .cash-view-tabs button[aria-selected="true"]:after {
  content: "";
  align-self: end;
  width: 24px;
  height: 3px;
  margin-top: 3px;
  border-radius: 3px;
  background: var(--v14-orange-500);
}
body.sodazw-v14 .cash-view-controls .cash-export {
  border-color: #cadbe6;
  background: #fff;
}
body.sodazw-v14 .cash-movement-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 15px;
  border: 1px solid #dbe7ee;
  border-radius: 16px;
  background: linear-gradient(180deg,#fff,#fbfdfe);
  box-shadow: 0 8px 25px rgba(3,43,77,.055);
}
body.sodazw-v14 .cash-movement-card > header {
  position: relative;
  order: 0;
  align-items: center;
  margin: -15px -15px 0;
  padding: 15px 17px 13px;
  border-bottom: 1px solid #e3ebf1;
  background: linear-gradient(110deg,#f5f9fc,#fff);
}
body.sodazw-v14 .cash-movement-card > header:before {
  content: "";
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--v14-orange-500);
}
body.sodazw-v14 .cash-movement-card > header span {
  color: var(--v14-navy-950);
  font-size: 17px;
  letter-spacing: -.03em;
}
body.sodazw-v14 .cash-movement-card > header > strong {
  min-width: 135px;
  padding: 8px 11px;
  border: 1px solid #cde8dc;
  border-radius: 11px;
  background: #eff9f4;
  color: var(--v14-green);
  font-size: 18px;
}
body.sodazw-v14 .cash-movement-card > header > strong.negative {
  border-color: #f0cccc;
  background: #fff1f1;
  color: var(--v14-red);
}
body.sodazw-v14 .cash-movement-scroll { order: 2; margin-top: 11px; padding: 2px 2px 0; }
body.sodazw-v14 .descriptive-summary {
  order: 1;
  gap: 8px;
  margin: 12px 0 0;
  overflow: visible;
  border: 0;
  background: transparent;
}
body.sodazw-v14 .descriptive-summary > div {
  position: relative;
  min-height: 65px;
  padding: 10px 11px 9px 14px;
  overflow: hidden;
  border: 1px solid #dce7ee;
  border-radius: 11px;
  background: #fff;
}
body.sodazw-v14 .descriptive-summary > div:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #8aa7bb;
}
body.sodazw-v14 .descriptive-summary > div:first-child:before { background: var(--v14-navy-800); }
body.sodazw-v14 .descriptive-summary > div:nth-child(2):before { background: var(--v14-orange-500); }
body.sodazw-v14 .descriptive-summary > div.positive:before { background: var(--v14-green); }
body.sodazw-v14 .descriptive-summary > div.negative:before { background: var(--v14-red); }
body.sodazw-v14 .descriptive-summary span { color: #6c8293; font-size: 7px; }
body.sodazw-v14 .descriptive-summary strong { margin-top: 5px; font-size: 13px; }
body.sodazw-v14 .command-cashflow .descriptive-cash-chart {
  position: relative;
  height: 215px !important;
  min-height: 215px !important;
  padding: 12px 11px 5px !important;
  border: 1px solid #dfe9ef;
  border-radius: 14px;
  background:
    repeating-linear-gradient(to bottom,transparent 0,transparent 43px,rgba(155,177,192,.18) 44px),
    linear-gradient(180deg,#f8fbfd,#fff);
  box-shadow: inset 0 1px 0 #fff;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart:before {
  content: "CASH MOVEMENT";
  position: absolute;
  top: 8px;
  left: 11px;
  color: #91a4b2;
  font-size: 6px;
  font-weight: 950;
  letter-spacing: .12em;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-month-v7 {
  position: relative;
  grid-template-rows: 142px auto auto;
  padding-top: 10px !important;
  border-radius: 9px;
  transition: background .15s ease,transform .15s ease;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-month-v7:hover {
  z-index: 4;
  background: rgba(232,241,247,.65);
  transform: translateY(-2px);
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-month-v7:hover:after {
  content: attr(data-cash-detail);
  position: absolute;
  right: 50%;
  bottom: 42px;
  width: max-content;
  max-width: 260px;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--v14-navy-950);
  color: #fff;
  font-size: 7px;
  font-weight: 750;
  line-height: 1.4;
  white-space: normal;
  box-shadow: 0 9px 24px rgba(3,28,56,.24);
  transform: translateX(50%);
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-bars-v7 {
  height: 142px !important;
  min-height: 142px !important;
  gap: 4px !important;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-bar-v7 {
  flex-basis: 17px !important;
  width: 17px !important;
  max-width: 17px !important;
  border-radius: 7px 7px 2px 2px !important;
  transition: filter .15s ease,transform .15s ease;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-bar-v7.cash-in {
  background: linear-gradient(180deg,#1582bd 0,var(--v14-navy-900) 100%) !important;
  box-shadow: 0 4px 9px rgba(6,43,77,.13) !important;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-bar-v7.cash-out {
  background: linear-gradient(180deg,#ff9869 0,var(--v14-orange-500) 100%) !important;
  box-shadow: 0 4px 9px rgba(255,90,20,.13) !important;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-month-v7:hover .cashflow-bar-v7 { filter: saturate(1.15); transform: scaleX(1.08); }
body.sodazw-v14 .command-cashflow .period-net {
  display: inline-flex;
  justify-self: center;
  padding: 2px 5px;
  border-radius: 999px;
  background: #eaf7f1;
  color: var(--v14-green);
}
body.sodazw-v14 .command-cashflow .net-negative .period-net { background: #fff0f0; color: var(--v14-red); }
body.sodazw-v14 .cash-insights {
  order: 3;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #e4ecf1;
}
body.sodazw-v14 .cash-insights span {
  border: 1px solid #e0e9ef;
  border-left: 3px solid #9bb3c4;
  background: #f8fbfd;
}
@media (max-width: 760px) {
  body.sodazw-v14 .cash-movement-dashboard:before { margin-right: -15px; margin-left: -15px; }
  body.sodazw-v14 .cash-definition { padding-left: 42px; }
  body.sodazw-v14 .cash-movement-card > header { grid-template-columns: minmax(0,1fr) auto; }
  body.sodazw-v14 .command-cashflow .descriptive-cash-chart {
    height: 205px !important;
    min-height: 205px !important;
  }
  body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-month-v7 { grid-template-rows: 132px auto auto; }
  body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-bars-v7 { height: 132px !important; min-height: 132px !important; }
}
@media (max-width: 460px) {
  body.sodazw-v14 .cash-view-controls { padding: 4px; }
  body.sodazw-v14 .cash-view-tabs button { padding: 5px 6px; }
  body.sodazw-v14 .cash-view-tabs button span { font-size: 7px; }
  body.sodazw-v14 .cash-movement-card > header { grid-template-columns: minmax(0,1fr); }
  body.sodazw-v14 .cash-movement-card > header > strong { width: fit-content; min-width: 0; text-align: left; }
  body.sodazw-v14 .descriptive-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Wave-inspired compact cash widget, retained in Soda ZW colours. */
body.sodazw-v14 .cash-movement-dashboard {
  padding: 15px 17px 16px;
  border-radius: 15px;
}
body.sodazw-v14 .cash-movement-dashboard:before {
  height: 3px;
  margin: -15px -17px 13px;
  background: var(--v14-navy-900);
}
body.sodazw-v14 .cash-movement-dashboard > .panel-head {
  align-items: center;
  margin-bottom: 9px;
}
body.sodazw-v14 .cash-movement-dashboard > .panel-head h2 { font-size: 18px; }
body.sodazw-v14 .cash-movement-dashboard > .panel-head p {
  max-width: 70ch;
  margin-top: 2px;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.sodazw-v14 .cash-definition { display: none; }
body.sodazw-v14 .descriptive-legend {
  min-width: 0;
  padding: 6px 9px;
  background: transparent;
  box-shadow: none;
}
body.sodazw-v14 .descriptive-legend i { background: #1c79ad; }
body.sodazw-v14 .descriptive-legend b { background: #b8c5ce; }
body.sodazw-v14 .descriptive-legend em {
  height: 3px;
  border-radius: 3px;
  background: var(--v14-orange-500);
}
body.sodazw-v14 .cash-view-controls {
  margin-bottom: 8px;
  padding: 3px;
  border-radius: 10px;
}
body.sodazw-v14 .cash-view-tabs button {
  min-height: 38px;
  padding: 4px 10px;
  border-radius: 7px;
}
body.sodazw-v14 .cash-view-tabs button[aria-selected="true"]:after { display: none; }
body.sodazw-v14 .cash-view-controls .cash-export {
  min-height: 38px;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 9px;
}
body.sodazw-v14 .cash-movement-card {
  padding: 10px;
  border-radius: 11px;
  box-shadow: none;
}
body.sodazw-v14 .cash-movement-card > header {
  margin: -10px -10px 0;
  padding: 10px 12px 8px;
}
body.sodazw-v14 .cash-movement-card > header:before { top: 10px; bottom: 10px; width: 3px; }
body.sodazw-v14 .cash-movement-card > header span { font-size: 13px; }
body.sodazw-v14 .cash-movement-card > header p {
  margin-top: 1px;
  font-size: 8px;
}
body.sodazw-v14 .cash-movement-card > header > strong {
  min-width: 115px;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  font-size: 15px;
}
body.sodazw-v14 .cash-movement-card > header > strong.negative { border: 0; background: transparent; }
body.sodazw-v14 .descriptive-summary {
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0;
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid #e0e8ee;
  border-radius: 9px;
  background: #fff;
}
body.sodazw-v14 .descriptive-summary > div {
  min-height: 48px;
  padding: 7px 9px;
  border: 0;
  border-right: 1px solid #e6edf2;
  border-radius: 0;
}
body.sodazw-v14 .descriptive-summary > div:last-child { border-right: 0; }
body.sodazw-v14 .descriptive-summary > div:before { display: none; }
body.sodazw-v14 .descriptive-summary strong { margin-top: 2px; font-size: 11px; }
body.sodazw-v14 .cash-movement-scroll { margin-top: 7px; }
body.sodazw-v14 .command-cashflow .descriptive-cash-chart {
  height: 169px !important;
  min-height: 169px !important;
  padding: 8px 8px 3px !important;
  border: 0;
  border-radius: 8px;
  background:
    repeating-linear-gradient(to bottom,transparent 0,transparent 32px,rgba(137,157,170,.16) 33px),
    #fff;
  box-shadow: inset 0 0 0 1px #e4ebf0;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart:before { display: none; }
body.sodazw-v14 .cash-net-line {
  position: absolute;
  top: 9px;
  right: 8px;
  left: 8px;
  z-index: 3;
  width: calc(100% - 16px);
  height: 112px;
  overflow: visible;
  pointer-events: none;
}
body.sodazw-v14 .cash-net-line polyline {
  fill: none;
  stroke: var(--v14-orange-500);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 2px 2px rgba(255,90,20,.18));
}
body.sodazw-v14 .cash-net-line circle {
  fill: #fff;
  stroke: var(--v14-orange-500);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
body.sodazw-v14 .cash-net-line circle.negative { fill: #fff5f2; }
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-month-v7 {
  z-index: 2;
  grid-template-rows: 105px auto auto;
  padding-top: 5px !important;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-month-v7:hover {
  background: rgba(240,245,248,.7);
  transform: none;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-bars-v7 {
  height: 105px !important;
  min-height: 105px !important;
  gap: 3px !important;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-bar-v7 {
  flex-basis: 13px !important;
  width: 13px !important;
  max-width: 13px !important;
  border-radius: 3px 3px 0 0 !important;
  box-shadow: none !important;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-bar-v7.cash-in {
  background: #1c79ad !important;
  box-shadow: none !important;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-bar-v7.cash-out {
  background: #b8c5ce !important;
  box-shadow: none !important;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-month-v7:hover .cashflow-bar-v7 {
  filter: brightness(.94);
  transform: none;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-month-v7 > span {
  padding-top: 4px;
  font-size: 8px;
}
body.sodazw-v14 .command-cashflow .period-net {
  padding: 1px 4px;
  background: transparent;
  font-size: 7px;
}
body.sodazw-v14 .command-cashflow .net-negative .period-net { background: transparent; }
body.sodazw-v14 .cash-insights { display: none; }
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-month-v7:hover:after {
  bottom: 33px;
  max-width: 225px;
  padding: 6px 7px;
}
@media (max-width: 760px) {
  body.sodazw-v14 .cash-movement-dashboard { padding: 12px; }
  body.sodazw-v14 .cash-movement-dashboard:before { margin: -12px -12px 10px; }
  body.sodazw-v14 .cash-movement-dashboard > .panel-head p { white-space: normal; }
  body.sodazw-v14 .command-cashflow .descriptive-cash-chart {
    height: 164px !important;
    min-height: 164px !important;
  }
  body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-month-v7 { grid-template-rows: 100px auto auto; }
  body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-bars-v7 { height: 100px !important; min-height: 100px !important; }
  body.sodazw-v14 .cash-net-line { height: 107px; }
}
@media (max-width: 460px) {
  body.sodazw-v14 .descriptive-summary {
    display: flex;
    overflow-x: auto;
  }
  body.sodazw-v14 .descriptive-summary > div { flex: 0 0 128px; }
}

@media (max-width: 470px) {
  body.sodazw-v14 .topbar-tools .topbar-icon { display: none; }
  body.sodazw-v14 .create-menu summary { padding: 9px 11px; font-size: 10px; }
  body.sodazw-v14 .stats { grid-template-columns: 1fr; }
  body.sodazw-v14 .stat { min-height: 112px; }
  body.sodazw-v14 .toolbar > *,
  body.sodazw-v14 .toolbar form,
  body.sodazw-v14 .toolbar input,
  body.sodazw-v14 .toolbar select { width: 100%; max-width: none; }
  body.sodazw-v14 .create-menu > summary {
    width: 44px;
    padding: 0;
    font-size: 0;
  }
  body.sodazw-v14 .create-menu > summary span {
    width: 24px;
    height: 24px;
    margin: auto;
    font-size: 19px;
  }
  body.sodazw-v14 .create-menu > summary::after { display: none; content: none; }
  body.sodazw-v14 .create-menu > div {
    position: fixed;
    top: max(74px, calc(env(safe-area-inset-top) + 64px));
    right: 12px;
    left: 12px;
    width: auto;
    max-height: calc(100dvh - 90px);
    padding: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 17px;
  }
  body.sodazw-v14 .create-menu > div a { min-height: 56px; }
  body.sodazw-v14 .auth-brand { padding: 20px; }
  body.sodazw-v14 .auth-brand-copy { margin-top: 28px; }
  body.sodazw-v14 .auth-brand-copy h1 { font-size: 34px; }
  body.sodazw-v14 .auth-card-heading h2 { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  body.sodazw-v14 *,
  body.sodazw-v14 *:before,
  body.sodazw-v14 *:after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body.sodazw-v14 { background: #fff; }
  body.sodazw-v14 .document-card { box-shadow: none; }
}

/* V14 cash movement intelligence */
body.sodazw-v14 .accounting-primary-grid.priority-section {
  grid-template-columns: minmax(0, 1fr);
}
body.sodazw-v14 .cash-movement-section {
  width: min(1440px, 100%);
  margin: 0 auto 22px;
}
body.sodazw-v14 .cash-movement-dashboard {
  padding: clamp(20px, 2.6vw, 34px);
  border-top: 4px solid var(--v14-orange-500);
}
body.sodazw-v14 .cash-movement-dashboard > .panel-head {
  align-items: flex-start;
}
body.sodazw-v14 .cash-movement-dashboard > .panel-head h2 {
  font-size: clamp(21px, 2.2vw, 29px);
}
body.sodazw-v14 .cash-movement-dashboard > .panel-head p {
  max-width: 82ch;
  font-size: 12px;
}
body.sodazw-v14 .descriptive-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: max-content;
  padding: 9px 11px;
  border: 1px solid var(--v14-line);
  border-radius: 11px;
  background: var(--v14-ice-100);
  color: var(--v14-muted);
  font-size: 9px;
  font-weight: 850;
}
body.sodazw-v14 .descriptive-legend i,
body.sodazw-v14 .descriptive-legend b,
body.sodazw-v14 .descriptive-legend em {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 5px;
  border-radius: 3px;
}
body.sodazw-v14 .descriptive-legend i { background: var(--v14-navy-800); }
body.sodazw-v14 .descriptive-legend b { background: var(--v14-orange-500); }
body.sodazw-v14 .descriptive-legend em { background: var(--v14-green); }
body.sodazw-v14 .cash-definition {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid #cfe0eb;
  border-radius: 12px;
  background: #f0f7fb;
  color: #526d82;
  font-size: 10px;
}
body.sodazw-v14 .cash-definition strong { color: var(--v14-navy-900); }
body.sodazw-v14 .cash-definition b { color: #294e6a; }
body.sodazw-v14 .cash-movement-graphs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
body.sodazw-v14 .cash-movement-card {
  min-width: 0;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--v14-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(3,43,77,.05);
}
body.sodazw-v14 .cash-movement-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}
body.sodazw-v14 .cash-movement-card > header span {
  display: block;
  color: var(--v14-navy-950);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.02em;
}
body.sodazw-v14 .cash-movement-card > header p {
  margin: 4px 0 0;
  color: var(--v14-muted);
  font-size: 10px;
}
body.sodazw-v14 .cash-movement-card > header > strong {
  color: var(--v14-green);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -.035em;
  text-align: right;
  white-space: nowrap;
}
body.sodazw-v14 .cash-movement-card > header > strong.negative { color: var(--v14-red); }
body.sodazw-v14 .cash-movement-card > header > strong small {
  display: block;
  color: var(--v14-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.sodazw-v14 .cash-movement-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart {
  display: grid !important;
  grid-template-columns: repeat(var(--flow-columns), minmax(64px, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: calc(var(--flow-columns) * 64px);
  height: 250px !important;
  min-height: 250px !important;
  margin: 0 !important;
  padding: 12px 8px 0 !important;
  border: 1px solid #e2ebf1;
  border-radius: 12px;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 48px, #e8eff4 49px),
    linear-gradient(180deg, #fbfdfe, #fff);
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-month-v7 {
  display: grid !important;
  grid-template-rows: 174px auto auto;
  align-items: end;
  min-width: 0;
  height: auto !important;
  padding: 0 2px 7px !important;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-bars-v7 {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  gap: 5px !important;
  width: 100% !important;
  height: 174px !important;
  min-height: 174px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-bar-v7 {
  display: block !important;
  flex: 0 0 15px !important;
  width: 15px !important;
  max-width: 15px !important;
  height: var(--cash-height) !important;
  min-height: 4px;
  border-radius: 5px 5px 2px 2px !important;
  box-shadow: none !important;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-bar-v7.cash-in {
  background: linear-gradient(180deg, #0b548b, var(--v14-navy-900)) !important;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-bar-v7.cash-out {
  background: linear-gradient(180deg, #ff8650, var(--v14-orange-500)) !important;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-month-v7 > span {
  padding-top: 7px;
  overflow: hidden;
  color: #526d82;
  font-size: 9px;
  font-weight: 850;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.sodazw-v14 .command-cashflow .period-net {
  display: block;
  margin-top: 3px;
  color: var(--v14-green);
  font-size: 8px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}
body.sodazw-v14 .command-cashflow .net-negative .period-net { color: var(--v14-red); }
body.sodazw-v14 .descriptive-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 13px;
  overflow: hidden;
  border: 1px solid var(--v14-line);
  border-radius: 11px;
  background: var(--v14-line);
}
body.sodazw-v14 .descriptive-summary > div {
  min-width: 0;
  padding: 11px 12px;
  background: #f8fbfd;
}
body.sodazw-v14 .descriptive-summary span {
  display: block;
  color: var(--v14-muted);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
body.sodazw-v14 .descriptive-summary strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--v14-navy-900);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.sodazw-v14 .descriptive-summary .positive strong { color: var(--v14-green); }
body.sodazw-v14 .descriptive-summary .negative strong { color: var(--v14-red); }
body.sodazw-v14 .cash-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
body.sodazw-v14 .cash-insights span {
  min-width: 0;
  padding: 9px 10px;
  border-left: 3px solid #b8cfde;
  border-radius: 3px 9px 9px 3px;
  background: var(--v14-ice-100);
  color: #526d82;
  font-size: 9px;
  line-height: 1.45;
}
body.sodazw-v14 .cash-insights b {
  display: block;
  color: var(--v14-navy-900);
  font-size: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  body.sodazw-v14 .cash-movement-dashboard { padding: 15px; }
  body.sodazw-v14 .cash-movement-dashboard > .panel-head { display: block; }
  body.sodazw-v14 .descriptive-legend { width: fit-content; min-width: 0; margin-top: 12px; }
  body.sodazw-v14 .cash-definition { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  body.sodazw-v14 .cash-movement-card { padding: 13px; }
  body.sodazw-v14 .cash-movement-card > header { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  body.sodazw-v14 .command-cashflow .descriptive-cash-chart {
    width: max(100%, calc(var(--flow-columns) * 62px)) !important;
    min-width: calc(var(--flow-columns) * 62px);
  }
  body.sodazw-v14 .descriptive-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.sodazw-v14 .cash-insights { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 430px) {
  body.sodazw-v14 .cash-movement-card > header { grid-template-columns: minmax(0, 1fr); }
  body.sodazw-v14 .cash-movement-card > header > strong { text-align: left; }
  body.sodazw-v14 .cash-movement-card > header > strong small { display: inline; margin-left: 5px; }
}

/* V14 modern Invoice & Quotation Studio */
body.sodazw-v14 .document-studio-heading,
body.sodazw-v14 .studio-workflow,
body.sodazw-v14 .document-studio,
body.sodazw-v14 .studio-error-summary {
  width: min(1440px, 100%);
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}
body.sodazw-v14 .document-studio-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: radial-gradient(circle at 88% 15%,rgba(8,121,185,.35),transparent 18rem),linear-gradient(135deg,var(--v14-navy-950),var(--v14-navy-800));
  box-shadow: 0 18px 45px rgba(3,43,77,.18);
}
body.sodazw-v14 .document-studio-heading:after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -110px;
  width: 230px;
  height: 230px;
  border: 35px solid rgba(255,90,20,.14);
  border-radius: 50%;
  pointer-events: none;
}
body.sodazw-v14 .document-studio-heading > div { position: relative; z-index: 1; min-width: 0; }
body.sodazw-v14 .document-studio-heading .section-kicker { color: #ff9b70; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
body.sodazw-v14 .document-studio-heading .studio-version {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 8px;
  letter-spacing: .04em;
  text-transform: none;
}
body.sodazw-v14 .document-studio-heading h2 {
  margin: 9px 0 7px;
  color: #fff;
  font-size: clamp(28px,3.5vw,44px);
  font-weight: 950;
  letter-spacing: -.05em;
  line-height: 1.04;
}
body.sodazw-v14 .document-studio-heading p { max-width: 720px; margin: 0; color: #c5d7e4; font-size: 13px; line-height: 1.65; }
body.sodazw-v14 .studio-heading-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
body.sodazw-v14 .studio-heading-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #d9e5ed;
  font-size: 8px;
  font-weight: 800;
}
body.sodazw-v14 .studio-heading-badges span:before { content: "✓"; margin-right: 5px; color: #ff9667; font-weight: 950; }
body.sodazw-v14 .document-type-switch {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  background: rgba(2,22,41,.35);
  backdrop-filter: blur(8px);
}
body.sodazw-v14 .document-type-switch a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #c7d8e4;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
}
body.sodazw-v14 .document-type-switch a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
body.sodazw-v14 .document-type-switch a.active { border-color: #fff; background: #fff; color: var(--v14-navy-900); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
body.sodazw-v14 .studio-status { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 14px; border-radius: 10px; background: #fff; color: var(--v14-navy-900); font-size: 10px; font-weight: 900; }

body.sodazw-v14 .studio-workflow {
  position: sticky;
  top: 88px;
  z-index: 15;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 5px;
  margin-bottom: 18px;
  padding: 7px;
  border: 1px solid var(--v14-line);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 9px 27px rgba(3,43,77,.09);
  backdrop-filter: blur(14px);
}
body.sodazw-v14 .studio-progress-track { position: absolute; right: 7%; bottom: 0; left: 7%; height: 3px; overflow: hidden; border-radius: 3px; background: #e4edf3; }
body.sodazw-v14 .studio-progress-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--v14-orange-500); transition: width .25s ease; }
body.sodazw-v14 .studio-workflow button {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  grid-template-rows: auto auto;
  column-gap: 9px;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #657e91;
  text-align: left;
  cursor: pointer;
}
body.sodazw-v14 .studio-workflow button > span { grid-row: 1/3; display: grid; place-items: center; align-self: center; width: 34px; height: 34px; border-radius: 10px; background: #eaf1f6; color: #5f778a; font-size: 10px; font-weight: 950; }
body.sodazw-v14 .studio-workflow button strong { align-self: end; color: var(--v14-navy-900); font-size: 10px; font-weight: 900; }
body.sodazw-v14 .studio-workflow button small { color: #8296a6; font-size: 8px; }
body.sodazw-v14 .studio-workflow button.is-active { border-color: #ffd1bd; background: var(--v14-orange-100); }
body.sodazw-v14 .studio-workflow button.is-active > span { background: var(--v14-orange-500); color: #fff; box-shadow: 0 6px 14px rgba(255,90,20,.2); }
body.sodazw-v14 .studio-workflow button.is-complete > span { background: var(--v14-green); color: #fff; }

body.sodazw-v14 .document-studio { display: grid; grid-template-columns: minmax(0,1fr) 370px; gap: 22px; align-items: start; }
body.sodazw-v14 .studio-main { display: grid; gap: 18px; min-width: 0; }
body.sodazw-v14 .studio-section {
  position: relative;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid var(--v14-line) !important;
  border-radius: 17px !important;
  background: #fff !important;
  box-shadow: 0 10px 30px rgba(3,43,77,.055) !important;
}
body.sodazw-v14 .studio-section:before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg,var(--v14-orange-500),#ff9567); }
body.sodazw-v14 .studio-section-head { display: flex; align-items: flex-start; gap: 14px; padding: 21px 24px 18px; border-bottom: 1px solid #e5edf3; background: linear-gradient(180deg,#fff,#f9fcfe); }
body.sodazw-v14 .studio-section-head .studio-step { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; background: var(--v14-navy-900); color: #fff; font-size: 13px; font-weight: 950; box-shadow: 0 7px 17px rgba(3,43,77,.16); }
body.sodazw-v14 .studio-section-head .section-kicker { color: var(--v14-orange-600); font-size: 8px; font-weight: 950; letter-spacing: .13em; }
body.sodazw-v14 .studio-section-head h2 { margin: 3px 0; color: var(--v14-navy-950); font-size: 19px; font-weight: 950; letter-spacing: -.03em; }
body.sodazw-v14 .studio-section-head p { max-width: 75ch; margin: 0; color: var(--v14-muted); font-size: 10px; line-height: 1.55; }
body.sodazw-v14 .studio-section > .customer-mode,
body.sodazw-v14 .studio-section > [data-existing-customer],
body.sodazw-v14 .studio-section > .new-customer-fields,
body.sodazw-v14 .studio-section > .studio-product-picker,
body.sodazw-v14 .studio-section > .studio-items,
body.sodazw-v14 .studio-section > .studio-add-custom,
body.sodazw-v14 .studio-section > .studio-discount-box,
body.sodazw-v14 .studio-section > .studio-choice,
body.sodazw-v14 .studio-section > .studio-delivery,
body.sodazw-v14 .studio-section > .form-grid,
body.sodazw-v14 .studio-section > .studio-more,
body.sodazw-v14 .studio-section > .studio-section-actions { margin-right: 24px; margin-left: 24px; }

body.sodazw-v14 .customer-mode { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 19px; margin-bottom: 16px; }
body.sodazw-v14 .customer-mode label,
body.sodazw-v14 .studio-choice label { position: relative; display: block; cursor: pointer; }
body.sodazw-v14 .customer-mode input,
body.sodazw-v14 .studio-choice input { position: absolute; opacity: 0; pointer-events: none; }
body.sodazw-v14 .customer-mode label > span,
body.sodazw-v14 .studio-choice label > span { position: relative; display: grid; min-height: 72px; padding: 14px 14px 13px 45px; border: 1px solid #d6e2ea; border-radius: 12px; background: #fff; }
body.sodazw-v14 .customer-mode label > span:before,
body.sodazw-v14 .studio-choice label > span:before { content: ""; position: absolute; top: 20px; left: 15px; width: 16px; height: 16px; border: 2px solid #b3c4d1; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px #fff; }
body.sodazw-v14 .customer-mode input:checked + span,
body.sodazw-v14 .studio-choice input:checked + span { border-color: var(--v14-orange-500); background: #fff7f2; box-shadow: 0 0 0 3px rgba(255,90,20,.08); }
body.sodazw-v14 .customer-mode input:checked + span:before,
body.sodazw-v14 .studio-choice input:checked + span:before { border-color: var(--v14-orange-500); background: var(--v14-orange-500); }
body.sodazw-v14 .customer-mode strong,
body.sodazw-v14 .studio-choice strong { color: var(--v14-navy-900); font-size: 11px; }
body.sodazw-v14 .customer-mode small,
body.sodazw-v14 .studio-choice small { color: var(--v14-muted); font-size: 9px; }
body.sodazw-v14 [data-existing-customer] { display: grid; grid-template-columns: minmax(180px,.7fr) minmax(240px,1.3fr); gap: 12px; margin-bottom: 19px; }
body.sodazw-v14 .new-customer-fields { margin-top: 14px; margin-bottom: 18px; padding: 16px; border: 1px solid #e0eaf1; border-radius: 13px; background: #f6fafc; }

body.sodazw-v14 .studio-product-picker { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 12px; margin-top: 19px; margin-bottom: 16px; padding: 16px; border: 1px solid #cfe0eb; border-radius: 13px; background: linear-gradient(135deg,#eef6fa,#f8fbfd); }
body.sodazw-v14 .studio-product-picker > small { grid-column: 1/-1; color: var(--v14-muted); font-size: 9px; }
body.sodazw-v14 .studio-items { margin-top: 0; margin-bottom: 14px; overflow: hidden; border: 1px solid #d8e4ec; border-radius: 13px; }
body.sodazw-v14 .studio-items-head { display: grid; grid-template-columns: minmax(260px,2fr) 90px 110px 82px 110px 36px; gap: 9px; padding: 10px 12px; background: var(--v14-navy-900); color: #d3e1ea; font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
body.sodazw-v14 .studio-item { display: grid; grid-template-columns: minmax(260px,2fr) 90px 110px 82px 110px 36px; align-items: center; gap: 9px; padding: 12px; border-top: 1px solid #e2ebf1; background: #fff; }
body.sodazw-v14 .studio-item:first-of-type { border-top: 0; }
body.sodazw-v14 .studio-item:hover { background: #fbfdfe; }
body.sodazw-v14 .studio-item-product { display: grid; grid-template-columns: minmax(160px,.8fr) minmax(170px,1.2fr); gap: 7px; min-width: 0; }
body.sodazw-v14 .studio-item input,
body.sodazw-v14 .studio-item select { min-width: 0; min-height: 40px; padding: 8px 9px; font-size: 11px; }
body.sodazw-v14 .studio-item label > span { display: none; }
body.sodazw-v14 .studio-item > strong { color: var(--v14-navy-900); font-size: 11px; font-weight: 900; text-align: right; }
body.sodazw-v14 .studio-remove { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: #fff0ed; color: #bd3b22; font-size: 18px; font-weight: 900; cursor: pointer; }
body.sodazw-v14 .studio-remove:hover { background: #ffdcd3; }
body.sodazw-v14 .studio-add-custom { margin-bottom: 18px; }
body.sodazw-v14 .studio-discount-box { display: grid; grid-template-columns: minmax(0,1fr) 175px 130px; align-items: end; gap: 12px; margin-bottom: 20px; padding: 15px; border: 1px dashed #c3d5e2; border-radius: 12px; background: #fafcfd; }
body.sodazw-v14 .studio-discount-box strong,
body.sodazw-v14 .studio-discount-box small { display: block; }
body.sodazw-v14 .studio-discount-box strong { color: var(--v14-navy-900); font-size: 11px; }
body.sodazw-v14 .studio-discount-box small { color: var(--v14-muted); font-size: 8px; }
body.sodazw-v14 .studio-choice { margin-top: 19px; }
body.sodazw-v14 .studio-delivery { margin-top: 15px; margin-bottom: 20px; padding: 16px; border: 1px solid #dce7ef; border-radius: 13px; background: #f6fafc; }
body.sodazw-v14 .studio-more { margin-bottom: 20px; overflow: hidden; border: 1px solid #dce7ef; border-radius: 12px; }
body.sodazw-v14 .studio-more summary { padding: 13px 15px; color: var(--v14-navy-900); font-size: 10px; font-weight: 900; cursor: pointer; }
body.sodazw-v14 .studio-more[open] summary { border-bottom: 1px solid #e4ecf2; background: #f8fbfd; }
body.sodazw-v14 .studio-more .form-grid { padding: 15px; }
body.sodazw-v14 .studio-section-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-bottom: 22px; padding-top: 15px; border-top: 1px solid #e5edf3; }
body.sodazw-v14 .studio-section-actions > span { margin-right: auto; color: var(--v14-muted); font-size: 9px; }

body.sodazw-v14 .studio-summary {
  position: sticky !important;
  top: 177px;
  padding: 22px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 18px !important;
  background: radial-gradient(circle at 100% 0,rgba(8,121,185,.25),transparent 16rem),var(--v14-navy-900) !important;
  color: #fff !important;
  box-shadow: 0 18px 45px rgba(3,43,77,.2) !important;
}
body.sodazw-v14 .studio-summary-top { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.13); }
body.sodazw-v14 .summary-document-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; background: var(--v14-orange-500); color: #fff; }
body.sodazw-v14 .summary-document-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
body.sodazw-v14 .studio-summary .section-kicker { color: #ff9b70; font-size: 8px; }
body.sodazw-v14 .studio-summary h2 { margin: 2px 0 0; color: #fff; font-size: 18px; }
body.sodazw-v14 .studio-summary > p { margin: 17px 0 7px; color: #fff; font-size: 14px; font-weight: 900; }
body.sodazw-v14 .studio-summary-lines { display: flex; justify-content: space-between; color: #b8cedd; font-size: 9px; }
body.sodazw-v14 .studio-summary-lines button { border: 0; background: transparent; color: #7fd0f2; font-size: 9px; font-weight: 850; cursor: pointer; }
body.sodazw-v14 .studio-summary dl { margin: 13px 0 0; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
body.sodazw-v14 .studio-summary dl > div { display: flex; justify-content: space-between; gap: 15px; padding: 5px 0; color: #bdd0de; font-size: 10px; }
body.sodazw-v14 .studio-summary dd { margin: 0; color: #fff; font-weight: 850; }
body.sodazw-v14 .studio-summary dl .studio-total { align-items: end; margin-top: 8px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 13px; }
body.sodazw-v14 .studio-summary dl .studio-total dd { color: #fff; font-size: 24px; letter-spacing: -.04em; }
body.sodazw-v14 .studio-assurance,
body.sodazw-v14 .studio-readiness,
body.sodazw-v14 .studio-delivery-warning { margin: 13px 0; padding: 11px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; background: rgba(255,255,255,.06); }
body.sodazw-v14 .studio-assurance strong,
body.sodazw-v14 .studio-assurance span { display: block; }
body.sodazw-v14 .studio-assurance strong { font-size: 9px; }
body.sodazw-v14 .studio-assurance span { margin-top: 2px; color: #b7ccdb; font-size: 8px; }
body.sodazw-v14 .studio-readiness-head { display: flex; justify-content: space-between; }
body.sodazw-v14 .studio-readiness-head strong { color: #fff; font-size: 10px; }
body.sodazw-v14 .studio-readiness-bar { height: 5px; margin: 9px 0; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.12); }
body.sodazw-v14 .studio-readiness-bar i { display: block; width: 0; height: 100%; background: var(--v14-orange-500); }
body.sodazw-v14 .studio-readiness ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
body.sodazw-v14 .studio-readiness li { color: #9db7c9; font-size: 8px; }
body.sodazw-v14 .studio-readiness li:before { content: "○"; margin-right: 6px; }
body.sodazw-v14 .studio-readiness li.is-ready { color: #fff; }
body.sodazw-v14 .studio-readiness li.is-ready:before { content: "✓"; color: #67d5a3; }
body.sodazw-v14 .studio-summary .button { width: 100%; min-height: 46px; margin: 0 0 8px; }
body.sodazw-v14 .studio-summary .studio-draft { border-color: rgba(255,255,255,.3); background: transparent; color: #fff; }
body.sodazw-v14 .studio-summary .studio-draft:hover { background: rgba(255,255,255,.08); }
body.sodazw-v14 .studio-cancel { display: block; padding: 5px; color: #a8c0d1; font-size: 9px; font-weight: 800; text-align: center; text-decoration: none; }

@media (max-width: 1100px) {
  body.sodazw-v14 .document-studio { grid-template-columns: minmax(0,1fr) 320px; }
  body.sodazw-v14 .studio-item,
  body.sodazw-v14 .studio-items-head { grid-template-columns: minmax(240px,2fr) 75px 95px 70px 90px 34px; }
  body.sodazw-v14 .studio-item-product { grid-template-columns: minmax(145px,.8fr) minmax(150px,1.2fr); }
}
@media (max-width: 920px) {
  body.sodazw-v14 .document-studio-heading { align-items: flex-start; }
  body.sodazw-v14 .document-studio { display: flex; flex-direction: column; }
  body.sodazw-v14 .studio-main { order: 1; width: 100%; }
  body.sodazw-v14 .studio-summary { position: static !important; order: 2; width: 100%; }
}
@media (max-width: 700px) {
  body.sodazw-v14 .document-studio-heading { display: block; padding: 21px; border-radius: 16px; }
  body.sodazw-v14 .document-studio-heading h2 { font-size: 30px; }
  body.sodazw-v14 .document-studio-heading p { font-size: 11px; }
  body.sodazw-v14 .studio-heading-badges span:nth-child(3) { display: none; }
  body.sodazw-v14 .document-type-switch { width: 100%; margin-top: 18px; }
  body.sodazw-v14 .document-type-switch a { flex: 1; justify-content: center; }
  body.sodazw-v14 .studio-workflow { top: 74px; display: flex; gap: 6px; padding: 6px; overflow-x: auto; border-radius: 13px; scrollbar-width: none; }
  body.sodazw-v14 .studio-workflow::-webkit-scrollbar { display: none; }
  body.sodazw-v14 .studio-workflow button { flex: 0 0 128px; grid-template-columns: 30px minmax(0,1fr); min-height: 52px; padding: 6px 8px; }
  body.sodazw-v14 .studio-workflow button > span { width: 30px; height: 30px; }
  body.sodazw-v14 .studio-progress-track { display: none; }
  body.sodazw-v14 .studio-section { border-radius: 14px !important; }
  body.sodazw-v14 .studio-section-head { padding: 17px 16px 15px; }
  body.sodazw-v14 .studio-section-head .studio-step { flex-basis: 37px; width: 37px; height: 37px; }
  body.sodazw-v14 .studio-section-head h2 { font-size: 17px; }
  body.sodazw-v14 .studio-section > .customer-mode,
  body.sodazw-v14 .studio-section > [data-existing-customer],
  body.sodazw-v14 .studio-section > .new-customer-fields,
  body.sodazw-v14 .studio-section > .studio-product-picker,
  body.sodazw-v14 .studio-section > .studio-items,
  body.sodazw-v14 .studio-section > .studio-add-custom,
  body.sodazw-v14 .studio-section > .studio-discount-box,
  body.sodazw-v14 .studio-section > .studio-choice,
  body.sodazw-v14 .studio-section > .studio-delivery,
  body.sodazw-v14 .studio-section > .form-grid,
  body.sodazw-v14 .studio-section > .studio-more,
  body.sodazw-v14 .studio-section > .studio-section-actions { margin-right: 15px; margin-left: 15px; }
  body.sodazw-v14 .customer-mode,
  body.sodazw-v14 .studio-choice,
  body.sodazw-v14 [data-existing-customer],
  body.sodazw-v14 .studio-product-picker,
  body.sodazw-v14 .studio-discount-box { grid-template-columns: minmax(0,1fr); }
  body.sodazw-v14 .studio-product-picker > small { grid-column: auto; }
  body.sodazw-v14 .studio-product-picker .button { width: 100%; }
  body.sodazw-v14 .studio-items { overflow: visible; border: 0; }
  body.sodazw-v14 .studio-items-head { display: none; }
  body.sodazw-v14 .studio-item { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)) 38px; gap: 9px; margin-bottom: 11px; padding: 13px; border: 1px solid #d8e4ec !important; border-radius: 12px; box-shadow: 0 5px 15px rgba(3,43,77,.04); }
  body.sodazw-v14 .studio-item-product { grid-column: 1/-1; grid-template-columns: minmax(0,1fr); }
  body.sodazw-v14 .studio-item label { display: block; }
  body.sodazw-v14 .studio-item label > span { display: block; margin-bottom: 4px; color: var(--v14-muted); font-size: 8px; }
  body.sodazw-v14 .studio-item label:nth-of-type(3) { grid-column: 1; }
  body.sodazw-v14 .studio-item > strong { grid-column: 2; align-self: end; padding-bottom: 10px; }
  body.sodazw-v14 .studio-remove { grid-column: 3; grid-row: 3; align-self: end; }
  body.sodazw-v14 .studio-section-actions { align-items: stretch; flex-direction: column-reverse; }
  body.sodazw-v14 .studio-section-actions > span { margin: 0; text-align: center; }
  body.sodazw-v14 .studio-section-actions .button { width: 100%; }
  body.sodazw-v14 .studio-summary { padding: 18px !important; border-radius: 15px !important; }
}

/* V15 compact dashboard: retain all detail with substantially less vertical space. */
@media (min-width: 1180px) {
  body.sodazw-v14 .priority-section .priority-list {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 8px;
  }
  body.sodazw-v14 .priority-section .priority-list > a {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    grid-template-rows: auto auto;
    align-items: start;
    min-height: 105px;
    padding: 12px;
    border: 1px solid var(--v14-line);
    border-radius: 12px;
    background: #fbfdfe;
  }
  body.sodazw-v14 .priority-section .priority-list > a > i { grid-row: 1/3; }
  body.sodazw-v14 .priority-section .priority-list > a > strong { grid-column: 3; }
  body.sodazw-v14 .priority-section .priority-list > a > em { display: none; }
  body.sodazw-v14 .cash-movement-graphs {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
  }
}
body.sodazw-v14 .priority-section .panel { padding: 20px; }
body.sodazw-v14 .priority-section .panel-head { margin-bottom: 12px; }
body.sodazw-v14 .cash-movement-dashboard { padding: clamp(17px,2vw,24px); }
body.sodazw-v14 .cash-movement-dashboard > .panel-head { margin-bottom: 12px; }
body.sodazw-v14 .cash-definition {
  grid-template-columns: auto minmax(0,1fr);
  margin-bottom: 12px;
  padding: 9px 12px;
}
body.sodazw-v14 .cash-movement-card { padding: 14px; }
body.sodazw-v14 .cash-movement-card > header { margin-bottom: 9px; }
body.sodazw-v14 .cash-movement-card > header span { font-size: 15px; }
body.sodazw-v14 .cash-movement-card > header > strong { font-size: 17px; }
body.sodazw-v14 .command-cashflow .descriptive-cash-chart {
  height: 196px !important;
  min-height: 196px !important;
  padding-top: 7px !important;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-month-v7 {
  grid-template-rows: 127px auto auto;
}
body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-bars-v7 {
  height: 127px !important;
  min-height: 127px !important;
}
body.sodazw-v14 .descriptive-summary { margin-top: 8px; }
body.sodazw-v14 .descriptive-summary > div { padding: 8px 9px; }
body.sodazw-v14 .descriptive-summary strong { font-size: 11px; }
body.sodazw-v14 .cash-insights {
  display: flex;
  gap: 6px;
  margin-top: 7px;
  overflow-x: auto;
  scrollbar-width: thin;
}
body.sodazw-v14 .cash-insights span {
  flex: 1 0 145px;
  padding: 7px 8px;
  font-size: 8px;
}
@media (max-width: 1179px) and (min-width: 761px) {
  body.sodazw-v14 .priority-section .priority-list {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
}
@media (max-width: 760px) {
  body.sodazw-v14 .cash-definition { grid-template-columns: minmax(0,1fr); }
  body.sodazw-v14 .command-cashflow .descriptive-cash-chart {
    height: 186px !important;
    min-height: 186px !important;
  }
  body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-month-v7 {
    grid-template-rows: 117px auto auto;
  }
  body.sodazw-v14 .command-cashflow .descriptive-cash-chart .cashflow-bars-v7 {
    height: 117px !important;
    min-height: 117px !important;
  }
}
