/* [project]/packages/ui/src/styles.css [app-client] (css) */
:root {
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light;
  --color-ink: #192b2a;
  --color-muted: #637573;
  --color-border: #d8e2df;
  --color-paper: #f4f7f5;
  --color-surface: #fff;
  --color-primary: #12685d;
  --color-primary-hover: #0d5149;
  --color-accent: #e4f1ed;
  --radius-card: 20px;
  --shadow-card: 0 16px 48px #1b332e14;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--color-paper);
  color: var(--color-ink);
  margin: 0;
}

a {
  color: inherit;
}

.button {
  min-height: 44px;
  font: inherit;
  cursor: pointer;
  border: 1px solid #0000;
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  padding: .7rem 1.1rem;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
}

.button--primary {
  background: var(--color-primary);
  color: #fff;
}

.button--primary:hover {
  background: var(--color-primary-hover);
}

.button--secondary {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink);
}

.button:focus-visible, a:focus-visible, input:focus-visible {
  outline-offset: 3px;
  outline: 3px solid #88c8ba;
}

.page-shell {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}

.site-header {
  justify-content: space-between;
  align-items: center;
  min-height: 80px;
  display: flex;
}

.brand {
  letter-spacing: -.03em;
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  background: var(--color-primary);
  color: #fff;
  border-radius: 9px;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 9px;
  font-size: .86rem;
  display: inline-grid;
}

.hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  align-items: center;
  gap: 50px;
  padding: 74px 0 88px;
  display: grid;
}

.eyebrow {
  color: var(--color-primary);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 750;
}

.hero h1 {
  letter-spacing: -.06em;
  max-width: 680px;
  margin: 18px 0;
  font-size: clamp(2.7rem, 6vw, 4.75rem);
  line-height: 1.02;
}

.hero p {
  max-width: 570px;
  color: var(--color-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  display: flex;
}

.preview-card, .content-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.preview-card {
  padding: 26px;
  transform: rotate(1deg);
}

.preview-topline {
  color: var(--color-muted);
  justify-content: space-between;
  margin-bottom: 26px;
  font-size: .86rem;
  display: flex;
}

.metric-row {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  display: grid;
}

.metric {
  background: var(--color-paper);
  border-radius: 14px;
  min-height: 110px;
  padding: 16px;
}

.metric span {
  color: var(--color-muted);
  font-size: .8rem;
  display: block;
}

.metric strong {
  margin-top: 12px;
  font-size: 1.35rem;
  display: block;
}

.preview-note {
  background: var(--color-accent);
  color: #285a52;
  border-radius: 14px;
  margin-top: 14px;
  padding: 14px;
  font-size: .9rem;
  line-height: 1.55;
}

.section-heading {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 30px;
}

.section-heading h2 {
  letter-spacing: -.04em;
  margin: 10px 0;
  font-size: 2rem;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 76px;
  display: grid;
}

.feature-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 16px;
  padding: 22px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.06rem;
}

.feature-card p, .muted {
  color: var(--color-muted);
  line-height: 1.65;
}

.form-page {
  place-items: center;
  min-height: 100vh;
  padding: 28px;
  display: grid;
}

.form-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  width: min(440px, 100%);
  box-shadow: var(--shadow-card);
  padding: 34px;
}

.form-card h1 {
  letter-spacing: -.04em;
  margin: 0 0 10px;
  font-size: 1.8rem;
}

.form-card label, .stacked-form label {
  margin: 18px 0 7px;
  font-size: .9rem;
  font-weight: 650;
  display: block;
}

.stacked-form input:not([type="hidden"]), .stacked-form select, .stacked-form textarea {
  border: 1px solid var(--color-border);
  width: 100%;
  min-height: 46px;
  color: var(--color-ink);
  font: inherit;
  border-radius: 10px;
  padding: 0 12px;
}

.stacked-form textarea {
  resize: vertical;
  min-height: 140px;
  padding: 12px;
}

.stacked-form .button {
  margin-top: 22px;
}

.button-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  display: flex;
}

.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
  display: grid;
}

.metric {
  border: 1px solid var(--color-border);
  background: var(--color-paper);
  border-radius: 12px;
  padding: 14px;
}

.metric-label {
  color: var(--color-muted);
  margin-bottom: 6px;
  font-size: .82rem;
  display: block;
}

.metric strong {
  font-size: 1.2rem;
}

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

.plain-list {
  color: var(--color-muted);
  gap: 12px;
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.65;
  display: grid;
}

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

.list-row {
  border: 1px solid var(--color-border);
  background: var(--color-paper);
  border-radius: 14px;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 18px;
  display: flex;
}

.list-row p {
  margin: 6px 0;
}

.list-row code {
  overflow-wrap: anywhere;
  max-width: 560px;
  color: var(--color-muted);
  font-size: .84rem;
  display: block;
}

.list-row .button {
  margin-top: 0;
}

.content-card, .metric {
  overflow-wrap: anywhere;
  min-width: 0;
}

.button:disabled {
  opacity: .6;
  cursor: wait;
}

@media (max-width: 480px) {
  .form-page {
    padding: 16px;
  }

  .form-card {
    padding: 24px;
  }

  .workspace-header {
    flex-wrap: wrap;
  }

  .site-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .list-row {
    flex-direction: column;
  }

  .metrics-grid, .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-card input {
  border: 1px solid var(--color-border);
  width: 100%;
  min-height: 46px;
  color: var(--color-ink);
  font: inherit;
  border-radius: 10px;
  padding: 0 12px;
}

.form-card .button {
  width: 100%;
  margin-top: 22px;
}

.mfa-panel {
  width: min(520px, 100%);
}

.mfa-enrollment {
  justify-items: center;
  gap: 12px;
  margin-top: 18px;
  display: grid;
}

.mfa-enrollment label {
  justify-self: stretch;
  margin-top: 8px;
}

.mfa-qr {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 12px;
  width: min(240px, 70vw);
  height: auto;
  padding: 12px;
}

.mfa-secret {
  letter-spacing: .08em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.form-links {
  color: var(--color-muted);
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: .9rem;
  display: flex;
}

.notice {
  color: #745517;
  background: #fff8e9;
  border: 1px solid #eed8a7;
  border-radius: 12px;
  margin: 18px 0;
  padding: 12px 14px;
  font-size: .92rem;
  line-height: 1.5;
}

.workspace {
  padding: 36px 0 80px;
}

.workspace-header {
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  display: flex;
}

.owner-console-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  display: flex;
}

.workspace-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  display: grid;
}

.content-card {
  padding: 22px;
}

.content-card h2, .content-card h3 {
  margin-top: 0;
}

.tenant-list {
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.tenant-list a {
  border: 1px solid var(--color-border);
  background: var(--color-paper);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  display: block;
}

.member-list {
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.member-list > li {
  border: 1px solid var(--color-border);
  background: var(--color-paper);
  border-radius: 12px;
  gap: 12px;
  padding: 14px;
  display: grid;
}

.member-list strong, .member-list .muted {
  display: block;
}

.member-actions {
  gap: 8px;
  display: grid;
}

.member-actions form {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.member-actions select {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  min-height: 40px;
  color: var(--color-ink);
  font: inherit;
  border-radius: 10px;
  padding: 0 8px;
}

.customer-layout, .product-layout {
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
}

.customer-results {
  grid-column: span 1;
}

.customer-search {
  grid-template-columns: minmax(0, 1fr) 120px auto;
  align-items: end;
  gap: 8px;
  margin: 18px 0;
  display: grid;
}

.customer-search label {
  grid-row: 1;
  margin-bottom: 34px;
  font-size: .9rem;
  font-weight: 650;
}

.customer-search input, .customer-search select {
  border: 1px solid var(--color-border);
  min-height: 44px;
  color: var(--color-ink);
  font: inherit;
  border-radius: 10px;
  padding: 0 10px;
}

.customer-search input {
  grid-column: 1;
}

.customer-search select {
  grid-column: 2;
}

.customer-search .button {
  grid-column: 3;
}

.customer-list {
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.customer-card {
  border: 1px solid var(--color-border);
  background: var(--color-paper);
  border-radius: 12px;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  display: flex;
}

.customer-card strong, .customer-card .muted {
  display: block;
}

.customer-card strong {
  margin-bottom: 4px;
}

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

.summary-card {
  border: 1px solid var(--color-border);
  background: var(--color-paper);
  color: var(--color-ink);
  border-radius: 14px;
  gap: 4px;
  padding: 18px;
  text-decoration: none;
  display: grid;
}

.summary-card:hover {
  border-color: var(--color-accent);
}

.summary-card strong {
  font-size: 1.8rem;
}

.customer-status-form {
  align-self: center;
}

.inventory-balance {
  text-align: right;
  min-width: 180px;
}

.customer-status-form select, .customer-status-form input {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  max-width: 150px;
  min-height: 40px;
  color: var(--color-ink);
  font: inherit;
  border-radius: 10px;
  padding: 0 8px;
}

.empty-state {
  border: 1px dashed var(--color-border);
  color: var(--color-muted);
  text-align: center;
  border-radius: 12px;
  margin: 28px 0;
  padding: 24px;
}

.pagination {
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  display: flex;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
  }

  .feature-grid, .workspace-grid, .summary-grid, .customer-layout, .product-layout {
    grid-template-columns: 1fr;
  }

  .owner-console-actions {
    justify-content: flex-start;
  }

  .customer-search {
    grid-template-columns: 1fr;
  }

  .customer-search label, .customer-search input, .customer-search select, .customer-search .button {
    grid-area: auto / 1;
    margin-bottom: 0;
  }

  .customer-card {
    flex-direction: column;
  }

  .customer-status-form .button {
    width: 100%;
  }

  .inventory-balance {
    text-align: left;
    min-width: 0;
  }
}

/* [project]/apps/web/src/app/globals.css [app-client] (css) */
:root {
  --color-ink: #203534;
  --color-muted: #596b64;
  --color-border: #e4e9e8;
  --color-paper: #f3f6f4;
  --sidebar-background: #e1e9e3;
  --color-primary: #237768;
  --color-primary-hover: #185c50;
  --color-accent: #e8f3ee;
  --chart-receipt: #087f70;
  --chart-payment: #d7784d;
  --shadow-card: none;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
}

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

.button {
  border-radius: 8px;
  gap: 8px;
  font-size: .88rem;
  transition: background .16s, border-color .16s;
}

.button--secondary:hover {
  background: #f7faf8;
  border-color: #b6ccc5;
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline-offset: 3px;
  outline: 3px solid #8bc7ad;
}

:where(.app-frame) svg, .button svg {
  flex-shrink: 0;
}

:where(.app-frame) {
  min-height: 100dvh;
}

.skip-link {
  z-index: 100;
  color: #173f35;
  background: #fff;
  border-radius: 8px;
  padding: 12px 20px;
  position: fixed;
  top: 10px;
  left: 260px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-sidebar {
  z-index: 30;
  background: var(--sidebar-background);
  width: 240px;
  color: var(--color-ink);
  scrollbar-width: thin;
  scrollbar-color: #36504b transparent;
  flex-direction: column;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
  overflow-y: auto;
}

.app-brand {
  min-height: 64px;
  color: var(--color-ink);
  letter-spacing: -.055em;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
}

.app-logomark {
  color: #153d30;
  background: #bddfc8;
  border: 1px solid #577e69;
  border-radius: 11px;
  place-items: center;
  width: 38px;
  height: 40px;
  display: grid;
}

.brand-os {
  color: var(--color-primary);
  margin-left: 3px;
  font-weight: 450;
}

.app-brand small {
  color: var(--color-muted);
  letter-spacing: 0;
  margin-top: 4px;
  font-size: .75rem;
  font-weight: 500;
  display: block;
}

.app-navigation {
  padding: 0 12px 8px;
}

.nav-group + .nav-group {
  margin-top: 8px;
}

.nav-group-label {
  color: var(--color-muted);
  letter-spacing: 0;
  margin: 0 13px 3px;
  font-size: .75rem;
  font-weight: 550;
}

.nav-link {
  color: #53665d;
  border-radius: 7px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 7px 11px;
  font-size: .875rem;
  text-decoration: none;
  transition: background .15s, color .15s;
  display: flex;
  position: relative;
}

.nav-link:hover {
  color: var(--color-ink);
  background: #d5e4da;
}

.nav-link svg {
  color: #65796d;
}

.nav-link--active {
  color: #163c2b;
  background: #cbded0;
  font-weight: 650;
}

.nav-link--active:hover {
  color: #163c2b;
  background: #bed6c5;
}

.nav-link--active svg {
  color: #264d35;
}

.nav-link small {
  color: #536f5e;
  border: 1px solid #c4d1c8;
  border-radius: 4px;
  margin-left: auto;
  padding: 2px 5px;
  font-size: .6875rem;
}

.nav-link--active small {
  color: #3f6237;
  border-color: #9bbf89;
}

.sidebar-footer {
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding: 10px 20px;
  font-size: .75rem;
  display: flex;
}

.sidebar-footer > span:last-child {
  margin-left: auto;
}

.status-dot {
  background: #85b98a;
  border-radius: 100%;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  display: inline-block;
  box-shadow: 0 0 0 3px #85b98a1a;
}

.app-stage {
  min-width: 0;
  margin-left: 240px;
}

.app-topbar {
  background: var(--color-paper);
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  padding: 8px 24px;
  display: flex;
}

.topbar-context, .topbar-account {
  align-items: center;
  gap: 15px;
  display: flex;
}

.topbar-context {
  color: var(--color-muted);
  font-size: .8rem;
}

.topbar-workspace {
  color: inherit;
  text-decoration: none;
}

.topbar-workspace:hover {
  color: var(--color-primary);
  text-underline-offset: 3px;
  text-decoration: underline;
}

.topbar-page {
  color: var(--color-ink);
  font-weight: 550;
}

.topbar-account {
  gap: 12px;
}

.account-role {
  color: var(--color-muted);
  font-size: .75rem;
}

.account-avatar {
  color: #3b6951;
  background: #e9f0e4;
  border: 3px solid #f4f7f1;
  border-radius: 50%;
  place-items: center;
  width: 32px;
  height: 32px;
  font-size: .75rem;
  font-weight: 700;
  display: grid;
}

.icon-button {
  color: #7d8e87;
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-radius: 8px;
  place-items: center;
  width: 34px;
  height: 34px;
  display: grid;
}

.icon-button:hover {
  color: var(--color-primary);
  background: #eef4f0;
}

.mobile-menu-button, .sidebar-close-button {
  display: none;
}

.app-content {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 14px;
  min-height: calc(100dvh - 124px);
  margin-right: 8px;
}

.app-footer {
  color: var(--color-muted);
  justify-content: space-between;
  gap: 14px;
  margin: 0 24px;
  padding: 18px 0;
  font-size: .75rem;
  display: flex;
}

.app-footer > span:first-child {
  letter-spacing: -.03em;
  font-weight: 650;
}

:where(.app-frame) .page-shell {
  width: auto;
  max-width: 1520px;
  margin: 0 auto;
}

:where(.app-frame) .workspace {
  padding: 24px;
}

:where(.app-frame) .workspace-header {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  display: flex;
}

:where(.app-frame) .workspace-header > div:first-child {
  flex: 280px;
  min-width: 0;
}

:where(.app-frame) .workspace-header > .page-actions, :where(.app-frame) .workspace-header > .button-row {
  flex: 0 auto;
  align-self: flex-start;
  min-width: 0;
}

:where(.app-frame) .workspace-header h1 {
  letter-spacing: -.03em;
  margin: 4px 0;
  font-size: 1.5rem;
  font-weight: 650;
  line-height: 1.2;
}

:where(.app-frame) .workspace-header p {
  margin: 6px 0 0;
  font-size: .875rem;
  line-height: 1.5;
}

:where(.app-frame) .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-muted);
  font-size: .75rem;
  font-weight: 700;
}

:where(.app-frame) .content-card {
  border-color: var(--color-border);
  box-shadow: var(--shadow-card);
  border-radius: 10px;
  padding: 24px;
}

:where(.app-frame) .content-card h2 {
  letter-spacing: -.025em;
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 650;
}

:where(.app-frame) .content-card h3 {
  font-size: .9rem;
  font-weight: 650;
}

:where(.app-frame) .muted {
  color: var(--color-muted);
  font-size: .875rem;
}

:where(.app-frame) .workspace-grid {
  align-items: start;
  gap: 20px;
  margin-bottom: 22px;
}

:where(.app-frame) :where(.workspace-grid) > * {
  min-width: 0;
}

:where(.app-frame) .stacked-form label {
  color: #4d635b;
  margin: 17px 0 7px;
  font-size: .8rem;
  font-weight: 550;
}

:where(.app-frame) .stacked-form input:not([type="hidden"]), :where(.app-frame) .stacked-form select, :where(.app-frame) .stacked-form textarea {
  background: #fff;
  border-radius: 7px;
  min-height: 43px;
  padding: 0 12px;
  font-size: .85rem;
  transition: border-color .15s, box-shadow .15s;
}

:where(.app-frame) .stacked-form input::placeholder, :where(.app-frame) .stacked-form textarea::placeholder {
  color: var(--color-muted);
}

:where(.app-frame) .stacked-form textarea {
  min-height: 104px;
  padding: 11px 12px;
}

:where(.app-frame) input:hover, :where(.app-frame) select:hover {
  border-color: #b9cfc2;
}

:where(.app-frame) .stacked-form input:focus, :where(.app-frame) .stacked-form select:focus, :where(.app-frame) .stacked-form textarea:focus {
  border-color: #5e9a80;
  box-shadow: 0 0 0 3px #edf5ee;
}

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

.form-grid-two > * {
  min-width: 0;
}

.sales-quote-line-editor {
  gap: 10px;
  display: grid;
}

.sales-quote-line {
  border: 1px solid var(--color-border);
  border-radius: 9px;
  min-width: 0;
  margin: 4px 0 0;
  padding: 10px 12px 12px;
}

.sales-quote-line legend {
  color: var(--color-text);
  padding: 0 6px;
  font-size: .82rem;
  font-weight: 650;
}

.sales-quote-line :where(.form-grid-two > label) {
  gap: 6px;
  margin: 8px 0;
  display: grid;
}

.sales-quote-line-editor > :where(.button) {
  justify-self: start;
}

.sales-document-lines {
  margin-top: 8px;
  font-size: .82rem;
}

.sales-document-lines summary {
  width: fit-content;
  color: var(--color-primary);
  cursor: pointer;
  font-weight: 600;
}

.sales-document-lines ul {
  gap: 5px;
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
}

.sales-document-lines li {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  display: grid;
}

.sales-fulfilled-quantity {
  grid-column: 1 / -1;
}

.sales-order-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 9px;
  min-width: 210px;
  display: flex;
}

.sales-delivery-form {
  border: 1px solid var(--color-border);
  background: var(--color-accent);
  border-radius: 9px;
  flex-basis: 100%;
  gap: 9px;
  max-width: 620px;
  margin: 0 0 3px auto;
  padding: 12px;
  display: grid;
}

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

:where(.sales-delivery-lines label) {
  min-width: 0;
  color: var(--color-muted);
  grid-template-columns: minmax(0, 1fr) minmax(110px, 150px);
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  display: grid;
}

:where(.sales-delivery-lines label span) {
  overflow-wrap: anywhere;
}

.sales-delivery-lines input {
  min-width: 0;
}

.sales-delivery-line-editor {
  border: 1px solid var(--color-border);
  border-radius: 9px;
  align-content: start;
  gap: 7px;
  min-width: 0;
  padding: 9px;
  display: grid;
}

:where(.sales-delivery-line-editor > label) {
  grid-template-columns: minmax(0, 1fr) minmax(110px, 150px);
  align-items: center;
  gap: 8px;
  display: grid;
}

.serial-unit-selector {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 8px;
  display: grid;
}

.serial-unit-selector legend {
  color: var(--color-muted);
  padding: 0 4px;
  font-size: .72rem;
}

.serial-unit-selector__entry {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  display: grid;
}

.serial-unit-selector__entry input {
  min-width: 0;
}

.serial-unit-selector__list {
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

:where(.serial-unit-selector__list li) {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: .75rem;
  display: flex;
}

:where(.serial-unit-selector__list li span) {
  overflow-wrap: anywhere;
}

:where(.serial-unit-selector__list .button) {
  flex: none;
  padding: 4px 7px;
}

.invoice-due-date {
  width: min(100%, 230px);
  color: var(--color-muted);
  gap: 5px;
  font-size: .74rem;
  display: grid;
}

.invoice-row-actions {
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 8px;
  margin-top: 4px;
  display: flex;
}

.invoice-row-actions form {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

:where(.app-frame) .sales-quote-line-editor .button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

:where(.app-frame) .notice {
  color: #735d2d;
  background: #fffaf0;
  border: 1px solid #eee5cd;
  border-radius: 9px;
  align-items: center;
  gap: 11px;
  font-size: .81rem;
  display: flex;
}

:where(.app-frame) .notice a {
  text-underline-offset: 3px;
  font-weight: 600;
}

:where(.app-frame) .content-card > .muted {
  margin-bottom: 20px;
}

:where(.app-frame) .content-card + .content-card {
  margin-top: 22px;
}

:where(.app-frame) :where(.workspace-grid) > .content-card + .content-card {
  margin-top: 0;
}

:where(.app-frame) .list-row, :where(.app-frame) .customer-card, :where(.app-frame) .member-list > li {
  background: #fff;
  border-color: #e5ece7;
  border-radius: 9px;
}

:where(.app-frame) .table-wrap {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  width: 100%;
  margin: 20px 0 0;
  overflow-x: auto;
}

:where(.app-frame) table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  min-width: 560px;
  font-size: .82rem;
}

:where(.app-frame) th {
  color: #56675d;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
  background: #f7f9f8;
  padding: 13px 16px;
  font-size: .74rem;
  font-weight: 650;
}

:where(.app-frame) td {
  vertical-align: middle;
  border-bottom: 1px solid #edf0ed;
  padding: 16px;
}

:where(.app-frame) tbody tr:last-child td {
  border-bottom: 0;
}

:where(.app-frame) tbody tr:hover {
  background: #fafcfb;
}

:where(.app-frame) td .button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: .76rem;
}

.sales-delivery-form > .button {
  justify-self: end;
}

:where(.app-frame) .metrics-grid {
  gap: 14px;
}

:where(.app-frame) .metric {
  box-shadow: var(--shadow-card);
  background: #fff;
  border-radius: 10px;
}

:where(.app-frame) .metric strong {
  letter-spacing: -.04em;
  font-size: 1.65rem;
}

:where(.app-frame) .empty-state {
  background: #fafcfb;
  border-style: dashed;
  border-color: #d8e5dc;
  font-size: .85rem;
  line-height: 1.7;
}

.card-title-row {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 21px;
  display: flex;
}

.card-title-row > svg {
  color: #93aa98;
}

.card-title-row h2 {
  margin-bottom: 4px;
}

.card-title-row p, .section-title p {
  color: var(--color-muted);
  margin: 5px 0 0;
  font-size: .8125rem;
  line-height: 1.5;
}

.section-icon {
  color: #5a8a69;
  background: #edf5ee;
  border-radius: 10px;
  flex-shrink: 0;
  place-items: center;
  width: 38px;
  height: 38px;
  display: grid;
}

.tone-green {
  --tone-bg: #eaf4ec;
  --tone-ink: #4f8d64;
}

.tone-blue {
  --tone-bg: #edf3fa;
  --tone-ink: #7197c0;
}

.tone-amber {
  --tone-bg: #fbf4e7;
  --tone-ink: #c29a59;
}

.tone-violet {
  --tone-bg: #f1eef9;
  --tone-ink: #9a83bd;
}

.metric-icon {
  background: var(--tone-bg, #eaf4ec);
  width: 45px;
  height: 45px;
  color: var(--tone-ink, #4f8d64);
  border-radius: 12px;
  flex-shrink: 0;
  place-items: center;
  display: grid;
}

.count-badge {
  min-width: 24px;
  color: var(--color-muted);
  vertical-align: middle;
  background: #f5f8f6;
  border: 1px solid #e0e8e3;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  margin-left: 7px;
  padding: 3px 7px;
  font-size: .71rem;
  font-weight: 500;
  display: inline-flex;
}

.crm-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin: 0 0 27px;
  display: grid;
}

.crm-metric {
  border: 1px solid var(--color-border);
  min-width: 0;
  box-shadow: var(--shadow-card);
  background: #fff;
  border-radius: 11px;
  align-items: center;
  gap: 15px;
  padding: 21px 22px;
  display: flex;
}

.crm-metric :where(div) > span {
  color: #7a8e7f;
  font-size: .76rem;
  display: block;
}

.crm-metric strong {
  color: #294437;
  letter-spacing: -.04em;
  margin-top: 6px;
  font-size: 1.65rem;
  font-weight: 650;
  line-height: 1.2;
  display: block;
}

:where(.app-frame) .customer-layout {
  grid-template-columns: minmax(0, 1.6fr) minmax(325px, 1fr);
}

.customer-layout > .customer-results {
  order: 0;
}

.customer-layout > .customer-create {
  order: 1;
  scroll-margin-top: 24px;
}

.customer-layout:not(:has(.customer-create)) {
  grid-template-columns: 1fr;
}

.customer-create .card-title-row {
  border-bottom: 1px solid #edf1ed;
  justify-content: start;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.customer-create-form .form-section-label {
  color: var(--color-muted);
  letter-spacing: .04em;
  margin: 0 0 2px;
  font-size: .75rem;
  font-weight: 650;
}

.customer-create-form .form-section-label--divided {
  border-top: 1px solid #edf1ed;
  margin-top: 22px;
  padding-top: 21px;
}

:where(.app-frame) .customer-create-form > .button {
  width: 100%;
  margin-top: 24px;
}

.form-footnote {
  color: var(--color-muted);
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 13px 0 0;
  font-size: .75rem;
  line-height: 1.5;
  display: flex;
}

:where(.crm-workspace) .customer-search {
  grid-template-columns: minmax(0, 1fr) 95px auto;
  gap: 8px;
  margin: 0;
}

.filter-field {
  min-width: 0;
  position: relative;
}

.filter-field > svg {
  color: var(--color-muted);
  pointer-events: none;
  position: absolute;
  top: 13px;
  left: 12px;
}

:where(.crm-workspace) .customer-search input {
  background: #fafcfb;
  border-color: #e5ece7;
  border-radius: 7px;
  width: 100%;
  height: 43px;
  padding-left: 37px;
  font-size: .8125rem;
}

:where(.crm-workspace) .customer-search input::placeholder {
  color: var(--color-muted);
}

:where(.crm-workspace) .customer-search select {
  background: #fff;
  border-radius: 7px;
  width: 100%;
  height: 43px;
  font-size: .8125rem;
}

:where(.crm-workspace) .customer-search .button {
  min-height: 43px;
  padding: 8px 13px;
  font-size: .8125rem;
}

.results-meta {
  color: var(--color-muted);
  border-bottom: 1px solid #edf1ed;
  margin: 16px 0 0;
  padding-bottom: 16px;
  font-size: .8125rem;
}

:where(.crm-workspace) .customer-list {
  gap: 0;
  margin-top: 0;
}

:where(.crm-workspace) .customer-card {
  border: 0;
  border-bottom: 1px solid #edf1ed;
  border-radius: 0;
  flex-flow: wrap;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
}

.customer-avatar {
  color: #6f946e;
  background: #edf4eb;
  border-radius: 11px;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  font-size: .85rem;
  font-weight: 650;
  display: grid;
}

.customer-avatar--person {
  color: #8c85a9;
  background: #f3f0f9;
}

.customer-identity {
  flex: 1;
  min-width: 100px;
}

.customer-identity > strong {
  overflow-wrap: anywhere;
  font-size: .85rem;
}

:where(.crm-workspace) .customer-identity > .muted {
  font-size: .8125rem;
}

.status-badge {
  color: var(--color-muted);
  white-space: nowrap;
  background: #f1f3f2;
  border-radius: 5px;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  font-size: .75rem;
  display: inline-flex;
}

.status-badge > span {
  background: currentColor;
  border-radius: 50%;
  width: 4px;
  height: 4px;
}

.status-badge--active {
  color: #3f6b46;
  background: #eef7ed;
}

:where(.crm-workspace) .customer-status-form .button {
  min-height: 31px;
  color: var(--color-muted);
  border-color: #edf0eb;
  padding: 5px 8px;
  font-size: .71rem;
}

:where(.crm-workspace) .pagination {
  margin-top: 16px;
}

:where(.crm-workspace) .pagination:has( > span:only-child) {
  margin: 0;
}

.crm-empty-state {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 437px;
  padding: 32px 20px 41px;
  display: flex;
}

.crm-empty-state h3 {
  color: #42624b;
  letter-spacing: -.025em;
  margin: 15px 0 0;
  font-size: .96rem;
}

.crm-empty-state p {
  color: #7c927f;
  max-width: 310px;
  margin: 10px 0 23px;
  font-size: .8rem;
  line-height: 1.85;
}

.crm-empty-state .button {
  color: #678569;
  min-height: 39px;
  font-size: .8rem;
}

.empty-illustration {
  width: 212px;
  height: 154px;
  margin: 8px 0;
  position: relative;
}

.empty-orbit {
  background: #f8fbf5;
  border: 1px dashed #dde9db;
  border-radius: 50%;
  position: absolute;
  inset: 3px 26px;
}

.empty-mini-card {
  background: #fff;
  border: 1px solid #e2ecdd;
  border-radius: 12px;
  flex-direction: column;
  align-items: start;
  gap: 8px;
  width: 89px;
  height: 111px;
  padding: 14px;
  display: flex;
  position: absolute;
  box-shadow: 0 8px 18px #3b5e300d;
}

.empty-mini-card--back {
  color: #9fbc93;
  background: #f0f6ea;
  top: 14px;
  left: 29px;
  transform: rotate(-12deg);
}

.empty-mini-card--front {
  color: #8eae79;
  top: 38px;
  left: 92px;
  transform: rotate(10deg);
}

.empty-mini-card i {
  background: #e8f0e4;
  border-radius: 2px;
  width: 46px;
  height: 5px;
}

.empty-mini-card i:last-child {
  width: 29px;
}

.empty-spark {
  color: #6a8f52;
  background: #dceccd;
  border-radius: 9px;
  place-items: center;
  width: 28px;
  height: 28px;
  display: grid;
  position: absolute;
  top: 27px;
  right: 17px;
  transform: rotate(10deg);
}

.workspace-live {
  color: #7d927f;
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  display: inline-flex;
}

.overview-banner {
  color: #f7fbf6;
  background: #173e34;
  border-radius: 14px;
  justify-content: space-between;
  align-items: center;
  min-height: 232px;
  padding: 32px 38px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.overview-banner > div:first-child {
  z-index: 1;
  max-width: 470px;
  position: relative;
}

.banner-kicker {
  color: #a1c597;
  letter-spacing: .16em;
  font-size: .65rem;
  font-weight: 600;
}

.overview-banner h2 {
  letter-spacing: -.045em;
  margin: 13px 0 12px;
  font-size: clamp(1.6rem, 2.3vw, 2.05rem);
  font-weight: 500;
}

.overview-banner p {
  color: #adc9b7;
  max-width: 390px;
  font-size: .85rem;
  line-height: 1.8;
}

.banner-link {
  color: #cae3b6;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: .8rem;
  font-weight: 550;
  text-decoration: none;
  display: inline-flex;
}

.banner-link:hover {
  text-underline-offset: 4px;
  text-decoration: underline;
}

.overview-art {
  flex-shrink: 0;
  width: 300px;
  height: 212px;
  margin: -12px 2px -12px 30px;
  position: relative;
}

.art-orbit {
  border: 1px solid #355b41;
  border-radius: 50%;
  position: absolute;
  inset: 9px 51px;
}

.art-orbit--two {
  border-color: #2c503a;
  inset: -30px 12px;
}

.art-center {
  color: #193c2d;
  background: #c6dfac;
  border: 1px solid #8ca87c;
  border-radius: 23px;
  place-items: center;
  width: 87px;
  height: 92px;
  display: grid;
  position: absolute;
  top: 59px;
  left: 109px;
  transform: rotate(-10deg);
  box-shadow: 0 15px 30px #102f26;
}

.art-node {
  color: #b0ca98;
  background: #315540;
  border: 1px solid #4a7050;
  border-radius: 14px;
  place-items: center;
  width: 48px;
  height: 49px;
  display: grid;
  position: absolute;
  transform: rotate(8deg);
}

.art-node--one {
  top: 3px;
  left: 104px;
}

.art-node--two {
  top: 80px;
  right: 9px;
  transform: rotate(15deg);
}

.art-node--three {
  bottom: -1px;
  left: 154px;
}

.art-node--four {
  bottom: 46px;
  left: 24px;
  transform: rotate(-12deg);
}

.summary-card {
  padding: 0;
  position: relative;
}

.summary-card .summary-card-link {
  min-height: 100%;
  color: inherit;
  padding: 21px;
  text-decoration: none;
  display: block;
}

:where(.app-frame) .overview-summaries {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  gap: 0;
  margin: 0 0 16px;
  overflow: hidden;
}

.overview-summaries .summary-card {
  background: #fff;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: block;
}

.overview-summaries .summary-card:not(:last-child) {
  border-right: 1px solid var(--color-border);
}

.overview-summaries .summary-card:hover {
  background: #f8faf9;
  transform: none;
}

.overview-summaries .summary-card .summary-card-link {
  padding: 14px 60px 14px 16px;
}

.summary-top {
  align-items: center;
  gap: 10px;
  display: flex;
}

.summary-top .metric-icon {
  border-radius: 9px;
  width: 33px;
  height: 34px;
}

.summary-label {
  color: var(--color-muted);
  font-size: .8125rem;
}

.summary-top > svg {
  color: #a0b4a4;
  margin-left: auto;
}

:where(.app-frame) .summary-card strong {
  color: var(--color-ink);
  letter-spacing: -.05em;
  margin: 6px 0 2px;
  font-size: 1.5rem;
  font-weight: 600;
  display: block;
}

:where(.app-frame) .summary-card > .muted {
  color: var(--color-muted);
  font-size: .8125rem;
}

.overview-modules {
  margin-top: 20px;
}

.section-title {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 19px;
  display: flex;
}

.section-title h2 {
  letter-spacing: -.035em;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 650;
}

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

.module-card:last-child:nth-child(3n+1) {
  grid-column: 1 / -1;
}

.module-card:last-child:nth-child(3n+2) {
  grid-column: span 2;
}

.module-card {
  border: 1px solid var(--color-border);
  min-width: 0;
  box-shadow: var(--shadow-card);
  background: #fff;
  border-radius: 8px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
  display: flex;
}

.module-card:hover {
  border-color: #b2ccae;
}

.module-icon {
  color: #627b6b;
  flex-shrink: 0;
  place-items: center;
  width: 22px;
  height: 24px;
  display: grid;
}

.module-icon--ai {
  color: var(--color-primary);
}

.module-card h3 {
  margin: 0 0 5px;
  font-size: .85rem;
  font-weight: 600;
}

.module-card p {
  color: var(--color-muted);
  margin: 0;
  font-size: .8125rem;
  line-height: 1.6;
}

.module-arrow {
  color: #9bb19e;
  margin-left: auto;
}

.pilot-badge {
  color: #526b5a;
  background: #f1f5f2;
  border: 1px solid #dde5df;
  border-radius: 4px;
  margin-left: 6px;
  padding: 2px 4px;
  font-size: .6875rem;
  font-weight: 500;
  display: inline-block;
}

.overview-bottom {
  grid-template-columns: 1.45fr 1fr;
  gap: 16px;
  margin-top: 0;
  display: grid;
}

:where(.app-frame) .overview-bottom > .content-card {
  border: 0;
  border-radius: 0;
  margin-top: 0;
  padding: 0;
}

.overview-workspace > .compact-disclosure {
  margin-top: 20px;
}

.branch-list {
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.branch-list li {
  background: #f9fbf8;
  border: 1px solid #ebf0e8;
  border-radius: 8px;
  align-items: center;
  gap: 12px;
  padding: 13px;
  display: flex;
}

.branch-list strong, .branch-list :where(div) > span {
  display: block;
}

.branch-list strong {
  font-size: .81rem;
  font-weight: 550;
}

.branch-list :where(div) > span {
  color: var(--color-muted);
  margin-top: 5px;
  font-size: .78rem;
}

.branch-list small {
  color: var(--color-muted);
  margin-left: auto;
  font-size: .75rem;
}

.workspace-settings dl {
  margin: 20px 0;
  font-size: .8125rem;
}

.workspace-settings dl > :where(div) {
  border-bottom: 1px solid #edf1eb;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  display: flex;
}

.workspace-settings dt {
  color: var(--color-muted);
}

.workspace-settings dd {
  color: #57714f;
  margin: 0;
}

.text-link {
  color: #456f50;
  align-items: center;
  gap: 10px;
  font-size: .8125rem;
  text-decoration: none;
  display: inline-flex;
}

.text-link:hover {
  text-underline-offset: 4px;
  text-decoration: underline;
}

.login-page {
  background: #f4f7f3;
}

.login-layout {
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: min(960px, 100%);
  min-height: 615px;
  display: grid;
}

.login-story {
  color: #edf4e9;
  background: #143a30;
  border-radius: 20px;
  flex-direction: column;
  padding: 32px;
  display: flex;
  position: relative;
  overflow: hidden;
}

.login-story .app-brand {
  min-height: 0;
  padding: 0;
}

.login-story h2 {
  z-index: 1;
  letter-spacing: -.055em;
  margin: 49px 0 15px;
  font-size: 2.15rem;
  font-weight: 450;
  line-height: 1.15;
  position: relative;
}

.login-story > p {
  color: #b2cbb7;
  max-width: 310px;
  font-size: .85rem;
  line-height: 1.85;
}

.login-story-art {
  flex: 1;
  min-height: 190px;
  position: relative;
}

.login-story-art .overview-art {
  margin: 0;
  position: absolute;
  top: 12px;
  left: 20px;
}

.login-story-footer {
  color: #a5bfab;
  margin-top: 20px;
  font-size: .71rem;
}

.login-layout .form-card {
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 62px 36px 35px;
  display: flex;
  box-shadow: 0 5px 25px #1f412508;
}

.login-layout .form-card > .eyebrow {
  letter-spacing: .14em;
  margin-bottom: 12px;
  font-size: .71rem;
}

.login-layout .form-card h1 {
  font-size: 1.65rem;
  font-weight: 600;
}

.login-layout .form-card .muted {
  font-size: .86rem;
  line-height: 1.8;
}

.login-layout :where(.form-card) label {
  font-size: .85rem;
  font-weight: 550;
}

.login-layout :where(.form-card) input {
  border-radius: 8px;
  font-size: .88rem;
}

.login-layout :where(.form-card) .button {
  min-height: 46px;
}

.login-layout .form-links {
  margin-top: 25px;
  font-size: .79rem;
}

.login-layout :where(.form-links) a {
  color: #718969;
  text-underline-offset: 3px;
}

.login-safe-note {
  color: #7c9473;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 32px 0 0;
  font-size: .71rem;
  display: flex;
}

.site-footer, .site-footer nav, .app-footer-links, .login-legal-links {
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  display: flex;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  justify-content: space-between;
  margin-top: 12px;
  padding: 22px 0 30px;
  font-size: .78rem;
}

.site-footer nav {
  gap: 18px;
}

.site-footer a, .app-footer-links a, .login-legal-links a {
  color: var(--color-primary);
  text-underline-offset: 3px;
}

.login-legal-links {
  justify-content: center;
  margin-top: 18px;
  font-size: .75rem;
}

.app-footer-links {
  justify-content: flex-end;
  gap: 16px;
}

.legal-page {
  background: var(--color-paper);
  min-height: 100dvh;
  color: var(--color-ink);
  padding-bottom: 34px;
}

.legal-header {
  border-bottom: 1px solid var(--color-border);
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  display: flex;
}

.legal-brand {
  color: var(--color-ink);
  align-items: center;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.legal-document {
  width: min(900px, 100% - 32px);
  margin: 34px auto;
}

.legal-document-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  border-radius: 14px;
  padding: clamp(22px, 5vw, 52px);
}

.legal-document-heading {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 22px;
}

.legal-page .legal-document-card .legal-document-heading h1 {
  letter-spacing: -.04em;
  margin: 10px 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
}

.legal-document-heading p {
  color: var(--color-muted);
  margin: 0;
  line-height: 1.65;
}

.legal-document-heading .legal-updated {
  margin-top: 12px;
  font-size: .8rem;
}

.legal-draft-notice {
  background: color-mix(in srgb, #e2a642 10%, var(--color-surface));
  color: var(--color-ink);
  border: 1px solid #a77b3e;
  border-left-width: 4px;
  border-radius: 8px;
  margin: 22px 0 28px;
  padding: 15px 17px;
}

.legal-draft-notice strong {
  font-size: .9rem;
}

.legal-draft-notice p {
  color: var(--color-muted);
  margin: 6px 0 0;
  font-size: .86rem;
  line-height: 1.6;
}

.legal-document-body {
  gap: 22px;
  display: grid;
}

.legal-document-body section + section {
  border-top: 1px solid var(--color-border);
  padding-top: 19px;
}

.legal-document-body h2 {
  letter-spacing: -.02em;
  margin: 0 0 9px;
  font-size: 1.05rem;
}

.legal-document-body p, .legal-document-body li {
  color: var(--color-muted);
  font-size: .9rem;
  line-height: 1.75;
}

.legal-document-body p {
  margin: 0 0 10px;
}

.legal-document-body p:last-child {
  margin-bottom: 0;
}

.legal-document-body ul {
  margin: 8px 0 12px;
  padding-left: 22px;
}

.legal-document-body :where(ul li + li) {
  margin-top: 5px;
}

.legal-document-body a {
  color: var(--color-primary);
  text-underline-offset: 3px;
}

.legal-document-nav {
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  padding-top: 18px;
  font-size: .82rem;
  display: flex;
}

.legal-document-nav a {
  color: var(--color-primary);
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-footer-links {
    justify-content: flex-start;
  }

  .legal-document {
    margin-top: 20px;
  }

  .legal-document-card {
    padding: 22px 18px;
  }
}

@media (min-width: 1600px) {
  :where(.app-frame) .workspace {
    padding-left: 45px;
    padding-right: 45px;
  }
}

@media (max-width: 1250px) {
  .app-sidebar {
    width: 214px;
  }

  .app-stage {
    margin-left: 214px;
  }

  .app-brand {
    padding-left: 18px;
    font-size: 1.12rem;
  }

  .app-brand small {
    font-size: .6875rem;
  }

  .nav-link {
    gap: 9px;
    padding: 9px 10px;
    font-size: .79rem;
  }

  :where(.app-frame) .workspace {
    padding: 28px;
  }

  .app-topbar {
    padding-left: 28px;
    padding-right: 28px;
  }

  :where(.app-frame) .customer-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr);
    gap: 17px;
  }

  .crm-metrics {
    gap: 12px;
  }

  .crm-metric {
    gap: 10px;
    padding: 17px 15px;
  }

  .crm-metric .metric-icon {
    border-radius: 10px;
    width: 36px;
    height: 38px;
  }

  .crm-metric :where(div) > span {
    font-size: .75rem;
  }

  :where(.app-frame) .content-card {
    padding: 21px;
  }

  .customer-create-form .form-grid-two {
    grid-template-columns: 1fr;
    gap: 0;
  }

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

  .module-card:last-child:nth-child(n) {
    grid-column: auto;
  }

  .module-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .overview-art {
    width: 250px;
    margin-left: 10px;
    margin-right: -15px;
  }

  .overview-banner {
    padding: 30px;
  }

  :where(.crm-workspace) .customer-search {
    grid-template-columns: 1fr 85px;
  }

  :where(.crm-workspace) .customer-search .button {
    grid-area: 2 / 1 / auto / -1;
  }
}

@media (max-width: 1050px) {
  .app-sidebar {
    z-index: 60;
    border-radius: 0 12px 12px 0;
    width: min(320px, 100% - 48px);
    max-height: 100dvh;
    display: none;
    inset: 0 auto 0 0;
    box-shadow: 12px 0 35px #0f261c26;
  }

  .app-frame--menu-open .app-sidebar {
    display: flex;
  }

  .app-sidebar .app-brand {
    padding-right: 54px;
  }

  .sidebar-close-button {
    display: grid;
    position: absolute;
    top: 20px;
    right: 10px;
  }

  .navigation-backdrop {
    z-index: 50;
    background: #14201b47;
    border: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    position: fixed;
    inset: 0;
  }

  .app-stage {
    margin-left: 0;
  }

  .mobile-menu-button {
    display: grid;
  }

  .app-topbar {
    z-index: 40;
    position: sticky;
    top: 0;
  }

  .app-content {
    margin-left: 8px;
  }

  :where(.app-frame) .customer-layout {
    grid-template-columns: 1fr;
  }

  .customer-create-form .form-grid-two {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  :where(.crm-workspace) .customer-search {
    grid-template-columns: minmax(0, 1fr) 100px auto;
  }

  :where(.crm-workspace) .customer-search .button {
    grid-area: auto / 3;
  }

  .crm-empty-state {
    min-height: 340px;
  }

  :where(.app-frame) .workspace-grid {
    grid-template-columns: 1fr;
  }

  .crm-metrics, :where(.app-frame) .overview-summaries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-summaries .summary-card:nth-child(2n) {
    border-right: 0;
  }

  .overview-summaries .summary-card:nth-last-child(n+3) {
    border-bottom: 1px solid var(--color-border);
  }

  .overview-banner {
    min-height: 220px;
  }

  .overview-banner > div:first-child {
    max-width: 340px;
  }

  .overview-art {
    transform-origin: center;
    opacity: .7;
    width: 180px;
    margin-left: -15px;
    margin-right: -30px;
    transform: scale(.8);
  }

  .art-node--two {
    right: -37px;
  }

  .art-orbit--two {
    right: -50px;
  }

  .overview-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .customer-layout > .customer-create {
    scroll-margin-top: 90px;
  }

  .app-stage {
    margin-left: 0;
  }

  .app-topbar {
    z-index: 40;
    min-height: 60px;
    padding: 8px 16px;
    position: sticky;
    top: 0;
  }

  .topbar-workspace, .topbar-context > svg, .account-role {
    display: none;
  }

  .topbar-context {
    gap: 10px;
    font-size: .85rem;
  }

  .topbar-account {
    gap: 5px;
  }

  :where(.app-frame) .workspace {
    padding: 20px 16px 28px;
  }

  .app-content {
    border: 0;
    border-radius: 0;
    margin: 0;
  }

  :where(.app-frame) .workspace-header {
    align-items: start;
    margin-bottom: 16px;
  }

  :where(.app-frame) .workspace-header h1 {
    font-size: 1.5rem;
  }

  :where(.app-frame) .workspace-header p {
    max-width: 410px;
    font-size: .85rem;
  }

  :where(.app-frame) .workspace-header > .button {
    margin-top: 5px;
  }

  .app-footer {
    margin: 0 20px;
    font-size: .67rem;
  }

  .workspace-live {
    display: none;
  }

  .overview-banner {
    padding: 27px;
  }

  .overview-banner > div:first-child {
    max-width: 70%;
  }

  .overview-banner h2 {
    font-size: 1.65rem;
  }

  .overview-art {
    margin-left: -50px;
    margin-right: -15px;
  }

  .module-card {
    padding: 19px 15px;
  }

  .skip-link {
    left: 20px;
  }

  .login-layout {
    grid-template-columns: 1fr;
    max-width: 440px;
    min-height: 0;
  }

  .login-story {
    display: none;
  }

  .login-layout .form-card {
    padding: 40px 30px;
  }
}

@media (max-width: 480px) {
  :where(.app-frame) .workspace {
    padding-left: 16px;
    padding-right: 16px;
  }

  :where(.app-frame) .workspace-header {
    gap: 14px;
  }

  :where(.crm-workspace) .workspace-header > .button {
    min-height: 39px;
    padding: 8px 11px;
    font-size: .78rem;
  }

  :where(.app-frame) .workspace-header h1 {
    font-size: 1.5rem;
  }

  .crm-metrics {
    gap: 10px;
    margin-bottom: 20px;
  }

  .crm-metric {
    gap: 10px;
    padding: 15px 12px;
  }

  .crm-metric strong {
    font-size: 1.55rem;
  }

  :where(.app-frame) .content-card {
    padding: 20px 17px;
  }

  :where(.crm-workspace) .customer-search {
    grid-template-columns: 1fr 80px;
    gap: 8px;
  }

  :where(.crm-workspace) .customer-search .filter-field {
    grid-column: 1 / -1;
  }

  :where(.crm-workspace) .customer-search .filter-select {
    grid-area: 2 / 1;
  }

  :where(.crm-workspace) .customer-search .button {
    grid-area: 2 / 2;
  }

  :where(.crm-workspace) .customer-search label {
    margin: 0;
  }

  .form-grid-two, .customer-create-form .form-grid-two {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .crm-empty-state {
    min-height: 350px;
    padding: 20px 5px;
  }

  .crm-empty-state p {
    max-width: 265px;
  }

  .customer-identity {
    flex-basis: 50%;
  }

  :where(.crm-workspace) .customer-status-form {
    margin-left: 52px;
  }

  :where(.crm-workspace) .customer-status-form .button {
    width: auto;
  }

  :where(.app-frame) .overview-summaries {
    gap: 10px;
  }

  :where(.app-frame) .summary-card {
    padding: 15px;
  }

  :where(.app-frame) .summary-card strong {
    font-size: 1.65rem;
  }

  .summary-top {
    gap: 7px;
  }

  .summary-top > svg {
    display: none;
  }

  .summary-label {
    font-size: .71rem;
  }

  :where(.app-frame) .summary-card > .muted {
    font-size: .75rem;
  }

  .overview-banner {
    min-height: 235px;
    padding: 27px 22px;
  }

  .overview-banner > div:first-child {
    max-width: 85%;
  }

  .overview-banner p {
    max-width: 250px;
    font-size: .79rem;
  }

  .overview-art {
    opacity: .22;
    position: absolute;
    top: 35px;
    right: -113px;
    transform: scale(.65);
  }

  .module-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .module-card {
    padding: 18px;
  }

  .module-card h3 {
    font-size: .85rem;
  }

  .module-card p {
    font-size: .8125rem;
  }

  .login-layout .form-card {
    padding: 36px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button, .nav-link, .module-card, .summary-card {
    transition: none;
  }

  .button:hover, .module-card:hover, .summary-card:hover {
    transform: none;
  }
}

.assistant-dock-trigger {
  color: #356349;
  min-height: 38px;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d9e5dc;
  border-radius: 999px;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  font-size: .76rem;
  font-weight: 650;
  transition: border-color .15s, color .15s;
  display: inline-flex;
}

.assistant-dock-trigger:hover {
  color: var(--color-primary-hover);
  border-color: #aacbb2;
}

.workspace-currency-menu {
  z-index: 45;
  color: var(--color-ink);
  position: relative;
}

.workspace-currency-menu > summary {
  color: #356349;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d9e5dc;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 10px;
  font-size: .76rem;
  font-weight: 650;
  line-height: 1;
  list-style: none;
  display: inline-flex;
}

.workspace-currency-menu > summary::-webkit-details-marker {
  display: none;
}

.workspace-currency-menu > summary:hover, .workspace-currency-menu[open] > summary {
  color: var(--color-primary-hover);
  border-color: #aacbb2;
}

.workspace-currency-chevron {
  transform: rotate(90deg);
}

.workspace-currency-menu[open] .workspace-currency-chevron {
  transform: rotate(-90deg);
}

.workspace-currency-panel {
  border: 1px solid var(--color-border);
  background: var(--color-paper);
  border-radius: 12px;
  gap: 11px;
  width: max-content;
  min-width: 220px;
  padding: 14px;
  display: grid;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  box-shadow: 0 12px 32px #12281d2e;
}

.workspace-currency-panel > strong {
  font-size: .82rem;
}

.workspace-currency-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  display: grid;
}

.workspace-currency-options button {
  border: 1px solid var(--color-border);
  min-height: 36px;
  color: var(--color-ink);
  font: inherit;
  cursor: pointer;
  background: none;
  border-radius: 8px;
  font-size: .76rem;
  font-weight: 600;
}

.workspace-currency-options button:hover, .workspace-currency-options button[aria-pressed="true"] {
  border-color: var(--color-primary);
  color: #245b42;
  background: #e8f3eb;
}

.workspace-currency-panel > small {
  max-width: 230px;
  color: var(--color-muted);
  font-size: .7rem;
  line-height: 1.4;
}

.workspace-currency-menu :focus-visible {
  outline-offset: 2px;
  outline: 3px solid #78c9a6;
}

.assistant-dock-trigger > svg {
  color: #4c9a70;
}

.assistant-voice-panel {
  z-index: 80;
  color: #294437;
  background: #fff;
  border: 1px solid #dce8df;
  border-radius: 18px;
  flex-direction: column;
  width: min(430px, 100vw - 32px);
  max-height: min(88dvh, 800px);
  padding: 19px;
  animation: .16s ease-out assistant-panel-enter;
  display: flex;
  position: fixed;
  bottom: 24px;
  right: 26px;
  overflow: hidden;
  box-shadow: 0 22px 70px #1c332636;
}

@keyframes assistant-panel-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.assistant-voice-heading {
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  display: flex;
}

.assistant-voice-mark {
  width: 37px;
  height: 37px;
  color: var(--color-primary);
  place-items: center;
  display: grid;
}

.assistant-voice-heading > div {
  flex: 1;
  gap: 3px;
  min-width: 0;
  display: grid;
}

.assistant-voice-heading strong {
  color: #274336;
  font-size: .9rem;
}

.assistant-voice-heading span:not(.assistant-voice-mark) {
  color: #809285;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .71rem;
  overflow: hidden;
}

.assistant-voice-heading .icon-button {
  flex: none;
}

.assistant-sound-toggle {
  color: #397450;
  font: inherit;
  cursor: pointer;
  background: #f4faf5;
  border: 1px solid #dce8df;
  border-radius: 9px;
  flex: none;
  align-items: center;
  gap: 5px;
  padding: 7px;
  display: inline-flex;
}

.assistant-sound-toggle.assistant-page-sound-toggle {
  font-size: .76rem;
  font-weight: 600;
}

.assistant-voice-heading :where(.assistant-sound-toggle) span {
  color: inherit;
  font-size: .64rem;
}

.assistant-sound-toggle[aria-checked="false"] {
  color: #7b8580;
  background: #f5f6f7;
}

.assistant-voice-diagnostics {
  margin-bottom: 24px;
}

.assistant-voice-diagnostics-heading h2 {
  margin: 6px 0;
}

.assistant-voice-diagnostics-heading p {
  margin: 5px 0 0;
}

.assistant-voice-check-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px;
  margin-top: 18px;
  display: grid;
}

.assistant-voice-check {
  background: #fbfdfb;
  border: 1px solid #e2ebe4;
  border-radius: 11px;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 14px;
  display: flex;
}

.assistant-voice-check-title {
  color: #356349;
  align-items: center;
  gap: 8px;
  display: flex;
}

.assistant-voice-check p {
  color: #728378;
  margin: 0;
  font-size: .78rem;
  line-height: 1.5;
}

.assistant-voice-check p[data-status="ready"] {
  color: #34734a;
}

.assistant-voice-check p[data-status="denied"], .assistant-voice-check p[data-status="failed"] {
  color: #a4443d;
}

.assistant-voice-check small {
  color: #829087;
  font-size: .69rem;
  line-height: 1.5;
}

.assistant-phone-check {
  background: #f7faf7;
}

.assistant-action-card {
  background: #fff;
  border: 1px solid #cddfd2;
  border-radius: 10px;
  margin-top: 13px;
  padding: 12px;
  font-size: .74rem;
}

.assistant-action-card > strong {
  color: #315c40;
}

.assistant-action-card :where(form) > p {
  color: #778c7e;
  margin: 7px 0 12px;
  font-size: .67rem;
  line-height: 1.5;
}

.assistant-action-card fieldset {
  border: 0;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
}

.assistant-action-field {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.assistant-action-line-items {
  gap: 8px;
  display: grid;
}

.assistant-action-card .assistant-action-line {
  background: #f8fbf8;
  border: 1px solid #d9e4dc;
  border-radius: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
}

.assistant-action-line legend {
  color: #516b58;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 0 3px;
  font-size: .67rem;
  font-weight: 650;
  display: flex;
}

.assistant-action-line-field {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.assistant-action-field label, .assistant-action-line-field label {
  color: #516b58;
  font-size: .67rem;
}

.assistant-action-field input, .assistant-action-field select, .assistant-action-line-field input {
  color: #354f3f;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  font: inherit;
  background: #fcfdfc;
  border: 1px solid #d9e4dc;
  border-radius: 7px;
  padding: 7px 8px;
  font-size: .72rem;
}

.assistant-action-field [aria-invalid="true"], .assistant-action-line-field [aria-invalid="true"] {
  border-color: #cb8176;
}

.assistant-action-card .assistant-action-error {
  color: #a4443d;
  margin: 4px 0;
  font-size: .66rem;
}

.assistant-action-buttons {
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
  display: flex;
}

.assistant-action-buttons .button {
  min-height: 34px;
  padding: 8px 10px;
  font-size: .68rem;
}

.assistant-action-line :where(legend) .button {
  min-height: 26px;
  padding: 3px 7px;
  font-size: .62rem;
}

@media (max-width: 560px) {
  .assistant-action-card .assistant-action-line {
    grid-template-columns: minmax(0, 1fr);
  }
}

.assistant-action-card small {
  color: #809285;
  margin-top: 8px;
  font-size: .61rem;
  display: block;
}

.assistant-action-status {
  color: #53725c;
  margin: 8px 0 0;
  line-height: 1.5;
}

.assistant-action-status a {
  color: #397450;
  margin-top: 6px;
  display: block;
}

.assistant-actions-catalog.content-card > summary {
  color: #315c40;
  cursor: pointer;
  font-weight: 650;
}

.assistant-actions-catalog li {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.assistant-voice-copy {
  color: #74877a;
  flex-shrink: 0;
  margin: 14px 0;
  font-size: .76rem;
  line-height: 1.55;
}

.assistant-context-link {
  color: #397450;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  margin: -4px 0 11px;
  font-size: .74rem;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
}

.assistant-context-link:hover {
  text-decoration: underline;
}

.assistant-conversation {
  overscroll-behavior: contain;
  flex: auto;
  min-height: 0;
  max-height: min(44dvh, 380px);
  margin: 0 0 14px;
  padding-right: 4px;
  overflow-y: auto;
}

.assistant-conversation-list {
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 2px 0;
  list-style: none;
  display: flex;
}

.assistant-chat-turn {
  flex-direction: column;
  gap: 9px;
  display: flex;
}

.assistant-chat-message {
  overflow-wrap: anywhere;
  border: 1px solid #e2ebe3;
  border-radius: 12px;
  width: 94%;
  min-width: 0;
  padding: 13px;
}

.assistant-user-message {
  background: #e9f5ec;
  border-color: #cfe3d4;
  border-bottom-right-radius: 3px;
  align-self: flex-end;
  width: fit-content;
  max-width: 90%;
}

.assistant-response-card {
  background: #f7f9f8;
  border-bottom-left-radius: 3px;
  margin: 0;
}

.assistant-message-author {
  color: #6c9276;
  font-size: .63rem;
  font-weight: 650;
}

.assistant-chat-message > p {
  color: #435c4b;
  white-space: pre-wrap;
  margin: 7px 0 0;
  font-size: .76rem;
  line-height: 1.6;
}

.assistant-message-delivery {
  color: #75937d;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  font-size: .6rem;
  display: flex;
}

.assistant-response-card > .assistant-message-pending {
  color: #7a8f80;
}

.assistant-message-failed {
  background: #fff9f7;
  border-color: #efd8d3;
}

.assistant-response-card > .assistant-message-error {
  color: #a4443d;
}

.assistant-speech-controls {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  display: flex;
}

.assistant-speak-button {
  color: #397450;
  min-height: 32px;
  font: inherit;
  cursor: pointer;
  background: #fff;
  border: 1px solid #d4e5d7;
  border-radius: 9px;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  font-size: .68rem;
  font-weight: 650;
  display: inline-flex;
}

.assistant-speak-button:hover {
  background: #f0f7f0;
}

.assistant-speak-button:disabled {
  opacity: .55;
  cursor: wait;
}

.assistant-speech-controls > span {
  color: #839187;
  font-size: .62rem;
}

.assistant-response-card > .assistant-speech-error {
  color: #a4443d;
  margin: 8px 0 0;
  font-size: .68rem;
  line-height: 1.45;
}

.assistant-response-sources {
  border-top: 1px solid #e4ebe5;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 9px;
  display: flex;
}

.assistant-response-sources > span {
  color: #839187;
  font-size: .64rem;
}

.assistant-response-sources a {
  color: #4d805b;
  background: #fff;
  border: 1px solid #dce8de;
  border-radius: 7px;
  padding: 4px 7px;
  font-size: .64rem;
  text-decoration: none;
}

.assistant-response-sources a:hover {
  border-color: #a8c9b0;
}

.assistant-voice-form {
  flex-shrink: 0;
}

.assistant-voice-form textarea {
  resize: vertical;
  color: #2e4c3c;
  width: 100%;
  min-height: 62px;
  max-height: 140px;
  font: inherit;
  background: #fbfdfb;
  border: 1px solid #dfe9e2;
  border-radius: 11px;
  padding: 11px 12px;
  font-size: .78rem;
  line-height: 1.45;
  display: block;
}

.assistant-voice-form textarea:focus-visible {
  border-color: #79a988;
  outline: 3px solid #57946933;
}

.assistant-voice-form textarea::placeholder {
  color: #91a398;
}

.assistant-voice-actions {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  display: flex;
}

.assistant-mic-button {
  color: #52745c;
  min-height: 39px;
  font: inherit;
  cursor: pointer;
  background: #f5f8f4;
  border: 1px solid #dce7de;
  border-radius: 10px;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  font-size: .75rem;
  font-weight: 600;
  display: inline-flex;
}

.assistant-mic-button:hover {
  background: #ecf4ec;
}

.assistant-mic-button:disabled {
  opacity: .55;
  cursor: wait;
}

.assistant-voice-hint {
  color: #718579;
  margin: 8px 0 0;
  font-size: .67rem;
  line-height: 1.5;
}

.assistant-mic-button.is-listening {
  color: #b44942;
  background: #fff4f2;
  border-color: #e8b9b5;
}

.assistant-ask-button {
  border-radius: 10px;
  align-items: center;
  gap: 7px;
  min-height: 39px;
  padding: 9px 14px;
  font-size: .76rem;
  display: inline-flex;
}

.assistant-ask-button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.assistant-voice-error {
  color: #a4443d;
  flex-shrink: 0;
  margin: 10px 0 0;
  font-size: .72rem;
  line-height: 1.45;
}

.assistant-voice-footnote {
  color: #819287;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
  margin: 13px 0 0;
  font-size: .66rem;
  display: flex;
}

.assistant-context-button, .assistant-card-button {
  z-index: 2;
  color: #4d8562;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  flex: none;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 0;
  transition: background .14s, border-color .14s, transform .14s;
  display: inline-flex;
  position: relative;
}

.assistant-context-button:hover, .assistant-card-button:hover {
  color: var(--color-primary-hover);
}

.customer-card {
  position: relative;
}

.customer-assistant-button {
  margin-left: auto;
}

.assistant-section-heading {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  display: flex;
}

.assistant-section-heading h2 {
  margin: 0;
}

.assistant-section-heading .assistant-card-button {
  margin-left: auto;
}

.customer-identity-link {
  color: inherit;
  text-decoration: none;
}

.customer-identity-link:hover {
  color: #4b805b;
}

.customer-identity-link:focus-visible, .assistant-context-button:focus-visible, .assistant-dock-trigger:focus-visible {
  outline-offset: 2px;
  outline: 3px solid #4e8b5e40;
}

.crm-metric {
  padding-right: 58px;
  position: relative;
}

.crm-metric > .assistant-card-button, .summary-card > .assistant-card-button {
  position: absolute;
  top: 13px;
  right: 13px;
}

.summary-card .summary-card-link > .muted {
  color: var(--color-muted);
  font-size: .75rem;
}

.summary-card:hover .summary-card-link {
  color: inherit;
}

.breadcrumbs {
  color: #819185;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  font-size: .74rem;
  display: flex;
}

.breadcrumbs a {
  color: #4d805b;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.customer-detail-title {
  align-items: center;
  gap: 17px;
  display: flex;
}

.customer-detail-avatar {
  border-radius: 16px;
  width: 58px;
  height: 58px;
  font-size: 1rem;
}

.customer-detail-header .button-row {
  flex-wrap: wrap;
}

.assistant-profile-button {
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

.customer-detail-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 5px 0 23px;
  display: grid;
}

.customer-detail-metric {
  border: 1px solid var(--color-border);
  min-width: 0;
  min-height: 102px;
  box-shadow: var(--shadow-card);
  background: #fff;
  border-radius: 12px;
  align-items: flex-start;
  gap: 12px;
  padding: 17px 54px 17px 17px;
  display: flex;
  position: relative;
}

.customer-detail-metric > .assistant-card-button {
  position: absolute;
  top: 11px;
  right: 11px;
}

.customer-detail-metric > div {
  flex: 1;
  min-width: 0;
}

.customer-detail-metric > div > span {
  color: #7b8d80;
  margin: 2px 0 9px;
  font-size: .72rem;
  display: block;
}

.customer-detail-metric > :where(div) > strong {
  color: #34523e;
  font-size: 1.02rem;
}

.customer-money-values {
  gap: 3px;
  display: grid;
}

.customer-money-values strong {
  color: #34523e;
  font-size: .88rem;
}

.customer-detail-permission > div > strong {
  font-size: .76rem;
}

.customer-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 17px;
  display: grid;
}

.customer-detail-list, .customer-contact-groups {
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.customer-detail-list li, .customer-contact-item {
  border-bottom: 1px solid #edf1ed;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 13px 0;
  display: flex;
}

.customer-detail-list li:last-child, .customer-contact-item:last-child {
  border-bottom: 0;
}

.customer-detail-list li > :where(div), .customer-contact-item > div {
  flex: 1;
  gap: 4px;
  min-width: 0;
  display: grid;
}

.customer-detail-list li > :where(div) > strong, .customer-contact-item > div > strong {
  overflow-wrap: anywhere;
  color: #365044;
  font-size: .78rem;
}

.customer-detail-list li > :where(div) > span, .customer-contact-item span:not(.section-icon) {
  color: #839187;
  overflow-wrap: anywhere;
  font-size: .68rem;
}

.customer-contact-actions {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 7px;
  margin: 12px 0 3px;
  display: flex;
}

.customer-manage-disclosure {
  min-width: 0;
  position: relative;
}

.customer-manage-disclosure[open] {
  flex-basis: 100%;
}

.customer-contact-actions .customer-manage-disclosure > summary, .customer-contact-item .customer-manage-disclosure > summary {
  cursor: pointer;
  white-space: nowrap;
  list-style: none;
}

.customer-manage-disclosure > summary::-webkit-details-marker {
  display: none;
}

.customer-contact-item .customer-manage-disclosure--inline > summary {
  color: #387559;
  text-underline-offset: 3px;
  width: fit-content;
  margin-top: 3px;
  font-size: .68rem;
  font-weight: 650;
}

.customer-manage-disclosure--inline[open] > summary {
  margin-bottom: 9px;
}

.customer-manage-form {
  background: #fbfdfb;
  border: 1px solid #e3ebe4;
  border-radius: 10px;
  gap: 10px;
  width: min(100%, 480px);
  margin-top: 12px;
  padding: 14px;
  display: grid;
}

.customer-manage-disclosure--inline .customer-manage-form {
  width: min(100%, 420px);
  margin: 2px 0 7px;
}

.customer-manage-form label {
  color: #63756a;
  gap: 5px;
  font-size: .7rem;
  font-weight: 600;
  display: grid;
}

.customer-manage-form input, .customer-manage-form select {
  color: #284438;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  font: inherit;
  background: #fff;
  border: 1px solid #dce6dd;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: .75rem;
}

.customer-manage-form .form-grid-two {
  gap: 9px;
}

.customer-manage-form > .button {
  justify-self: start;
  min-height: 36px;
  padding: 8px 13px;
  font-size: .74rem;
}

.customer-contact-item span.customer-contact-status {
  color: #477455;
  background: #edf6ef;
  border-radius: 999px;
  width: fit-content;
  padding: 2px 7px;
  font-size: .64rem;
  font-weight: 650;
}

.customer-contact-item span.customer-contact-status.is-inactive {
  color: #7b827b;
  background: #f1f2ef;
}

.customer-detail-notice {
  margin: 0 0 16px;
  padding: 11px 14px;
}

.customer-detail-list li > :where(div) + strong {
  color: #42634d;
  text-align: right;
  font-size: .75rem;
}

.customer-detail-dl {
  gap: 0;
  margin: 0;
  display: grid;
}

.customer-detail-dl > div {
  border-bottom: 1px solid #edf1ed;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  display: flex;
}

.customer-detail-dl > div:last-child {
  border-bottom: 0;
}

.customer-detail-dl dt {
  color: #809185;
  font-size: .75rem;
}

.customer-detail-dl dd {
  color: #355044;
  text-align: right;
  margin: 0;
  font-size: .76rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .customer-detail-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .assistant-dock-trigger {
    justify-content: center;
    width: 38px;
    padding: 0;
  }

  .assistant-dock-trigger > span {
    display: none;
  }

  .assistant-voice-panel {
    width: calc(100vw - 24px);
    padding: 16px;
    bottom: 12px;
    right: 12px;
  }

  .customer-detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .customer-detail-header .button-row {
    width: 100%;
  }

  .customer-detail-header .button-row > * {
    flex: 1;
    justify-content: center;
  }

  .customer-detail-grid {
    grid-template-columns: 1fr;
  }

  .customer-contact-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .customer-manage-disclosure[open] {
    flex-basis: 100%;
  }

  .customer-manage-disclosure:not(.customer-manage-disclosure--inline) > .customer-manage-form {
    width: 100%;
    position: static;
  }

  .customer-manage-form .form-grid-two {
    grid-template-columns: 1fr;
  }

  .customer-detail-metrics {
    gap: 9px;
  }

  .customer-detail-metric {
    gap: 9px;
    min-height: 92px;
    padding: 12px 47px 12px 12px;
  }

  .customer-detail-metric > .assistant-card-button {
    top: 8px;
    right: 8px;
  }

  .customer-detail-metric .metric-icon {
    width: 32px;
    height: 32px;
  }

  .customer-detail-metric > div > span {
    font-size: .65rem;
  }

  .customer-money-values strong {
    font-size: .77rem;
  }
}

.iiot-sandbox-panel {
  margin-top: 18px;
}

.iiot-sandbox-panel .section-title {
  align-items: flex-start;
  margin-bottom: 16px;
}

.iiot-sandbox-panel .section-title p {
  margin: 4px 0 0;
}

.iiot-sandbox-panel .iiot-health-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.iiot-sandbox-panel .iiot-health-grid > div {
  border: 1px solid var(--color-border);
  background: #fbfcfc;
  border-radius: 8px;
  min-width: 0;
  padding: 11px 13px;
}

.iiot-sandbox-panel .iiot-health-grid span, .iiot-sandbox-panel .iiot-health-grid strong {
  display: block;
}

.iiot-sandbox-panel .iiot-health-grid span {
  color: var(--color-muted);
  font-size: .72rem;
}

.iiot-sandbox-panel .iiot-health-grid strong {
  color: var(--color-ink);
  margin-top: 4px;
  font-size: .92rem;
  font-weight: 650;
}

.iiot-sandbox-panel .iiot-health-grid .iiot-last-seen {
  overflow-wrap: anywhere;
  font-size: .77rem;
}

.iiot-register-form {
  border-top: 1px solid var(--color-border);
  grid-template-columns: minmax(180px, 1.1fr) minmax(150px, .9fr) minmax(150px, .9fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  display: grid;
}

.iiot-register-form > label {
  margin: 0;
}

.iiot-register-form input, .iiot-register-form select {
  width: 100%;
  min-width: 0;
}

.iiot-register-form .form-grid-two {
  display: contents;
}

.iiot-register-form .form-grid-two label {
  color: #4d635b;
  margin: 0;
  font-size: .8rem;
  font-weight: 550;
}

.iiot-register-form select {
  border: 1px solid var(--color-border);
  min-height: 43px;
  color: var(--color-ink);
  background: #fff;
  border-radius: 7px;
  margin-top: 7px;
  padding: 0 12px;
  display: block;
}

.iiot-form-footer {
  align-items: center;
  gap: 12px;
  display: flex;
}

.iiot-form-footer small {
  max-width: 190px;
}

.iiot-sandbox-panel .notice.iiot-notice-error {
  color: #893b34;
  background: #fff6f5;
  border-color: #ebc9c6;
}

.iiot-sandbox-panel .notice.iiot-notice-success {
  color: #306747;
  background: #f3fbf5;
  border-color: #c8e4d1;
}

.iiot-readonly-note {
  margin: 14px 0 0;
}

@media (max-width: 960px) {
  .iiot-sandbox-panel .iiot-health-grid, .iiot-register-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .iiot-form-footer {
    grid-column: 1 / -1;
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .iiot-sandbox-panel .iiot-health-grid, .iiot-register-form {
    grid-template-columns: 1fr;
  }

  .iiot-form-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .sales-delivery-lines {
    grid-template-columns: minmax(0, 1fr);
  }

  :where(.sales-delivery-line-editor > label) {
    grid-template-columns: minmax(0, 1fr) minmax(100px, 130px);
  }

  :where(.sales-delivery-lines label) {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 130px);
  }

  .sales-order-actions {
    justify-content: stretch;
    min-width: 0;
  }

  .sales-delivery-form {
    width: 100%;
    max-width: none;
  }
}

.sales-paged-document-details {
  gap: 5px;
  margin-top: 8px;
  display: grid;
}

.sales-paged-document {
  border-top: 1px solid var(--color-border);
  padding-top: 7px;
}

.sales-paged-document > ul {
  padding-left: 0;
  list-style: none;
}

.sales-paged-document > ul > li > .sales-paged-document, .sales-paged-document-nested {
  grid-column: 1 / -1;
}

.sales-paged-document-nested {
  gap: 6px;
  width: 100%;
  display: grid;
}

.sales-paged-document .pagination {
  margin-top: 8px;
  font-size: .76rem;
}

.sales-paged-document .pagination .button {
  font: inherit;
  padding: 5px 9px;
}

@media (max-width: 560px) {
  .sales-paged-document .pagination {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sales-paged-document .pagination > div {
    justify-content: space-between;
    width: 100%;
  }
}

/* [project]/apps/web/src/app/business.css [app-client] (css) */
body .app-frame :where(.page-actions) {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

body .app-frame :where(.page-actions .button) {
  white-space: nowrap;
  min-height: 36px;
  padding: 8px 12px;
  font-size: .78rem;
}

body .app-frame :where(.workspace-header .button-row, .inline-actions) {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

body .app-frame :where(.workspace-header .button-row) {
  justify-content: flex-end;
}

body .app-frame :where(.workspace-header .report-download) {
  flex: 0 auto;
}

body .app-frame :where(.compact-workspace) {
  flex-direction: column;
  gap: 18px;
  display: flex;
}

body .app-frame :where(.compact-workspace .workspace-header) {
  align-items: flex-start;
  margin-bottom: 0;
}

body .app-frame :where(.compact-workspace .workspace-header p) {
  max-width: 680px;
  margin-top: 6px;
}

body .app-frame :where(.compact-workspace .workspace-header h1) {
  font-size: 1.5rem;
}

body .app-frame :where(.compact-workspace > .content-card) {
  margin: 0;
}

body .app-frame :where(.compact-workspace .content-card) {
  padding: 20px;
}

body .app-frame :where(.business-dialog) {
  width: min(590px, 100vw - 36px);
  max-height: 88dvh;
  color: var(--color-ink);
  background: #fff;
  border: 1px solid #dce7e0;
  border-radius: 16px;
  padding: 24px;
  overflow: auto;
  box-shadow: 0 24px 100px #12352c30;
}

body .app-frame :where(.business-dialog)::backdrop {
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  background: #132b2777;
}

body .app-frame :where(.dialog-heading) {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  display: flex;
}

body .app-frame :where(.dialog-heading h2) {
  margin: 0;
  font-size: 1.15rem;
}

body .app-frame :where(.icon-button) {
  cursor: pointer;
  color: #40645a;
  background: #f7faf8;
  border: 1px solid #dce7e0;
  border-radius: 8px;
  width: 32px;
  height: 32px;
}

body .app-frame :where(.compact-form) {
  gap: 12px;
}

body .app-frame :where(.compact-form label) {
  flex-direction: column;
  gap: 6px;
  margin: 0;
  line-height: 1.4;
  display: flex;
}

body .app-frame :where(.compact-form .form-grid-two) {
  align-items: start;
}

body .app-frame :where(.compact-form input:not([type="hidden"])), body .app-frame :where(.compact-form select) {
  width: 100%;
  min-width: 0;
  min-height: 39px;
}

body .app-frame :where(.compact-form textarea) {
  min-height: 76px;
}

body .app-frame :where(.compact-form .button) {
  min-height: 38px;
  margin-top: 3px;
}

body .app-frame :where(.compact-form p) {
  margin: 0;
  line-height: 1.6;
}

body .app-frame :where(.compact-disclosure) {
  align-self: start;
  width: 100%;
  min-width: 0;
  padding: 0;
}

body .app-frame :where(.compact-disclosure > summary) {
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  font-size: .88rem;
  font-weight: 650;
  list-style: none;
  display: flex;
}

body .app-frame :where(.compact-disclosure > summary > span) {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

body .app-frame :where(.compact-disclosure summary small) {
  color: var(--color-muted);
  font-size: .75rem;
  font-weight: 400;
}

body .app-frame :where(.compact-disclosure > summary > svg) {
  flex: none;
  transition: transform .15s;
}

body .app-frame :where(.compact-disclosure[open] > summary > svg) {
  transform: rotate(90deg);
}

body .app-frame :where(.compact-disclosure[open] > summary) {
  border-bottom: 1px solid #e8eeea;
}

body .app-frame :where(.disclosure-body) {
  padding: 20px;
}

body .app-frame :where(.operations-setup-grid) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  display: grid;
}

.app-frame .operations-setup-grid > .content-card {
  margin: 0;
}

body .app-frame :where(.filter-bar) {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  display: flex;
}

body .app-frame :where(.filter-bar label) {
  min-width: 110px;
  max-width: 290px;
  color: var(--color-muted);
  flex-direction: column;
  flex: 130px;
  gap: 6px;
  font-size: .75rem;
  font-weight: 550;
  display: flex;
}

body .app-frame :where(.filter-bar input), body .app-frame :where(.filter-bar select) {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  color: var(--color-ink);
  background: #fff;
  border: 1px solid #dbe5de;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: .8rem;
}

body .app-frame :where(.filter-bar .button) {
  min-height: 38px;
  padding: 9px 14px;
  font-size: .77rem;
}

body .app-frame :where(.filter-bar > .button, .filter-bar > .text-link) {
  justify-content: center;
  align-self: flex-end;
  align-items: center;
  min-height: 44px;
  display: inline-flex;
}

body .app-frame :where(.filter-bar > .text-link) {
  padding: 0 10px;
  line-height: 1.2;
}

body .app-frame :where(.filter-help) {
  color: var(--color-muted);
  align-self: center;
  max-width: 320px;
  font-size: .75rem;
  line-height: 1.6;
}

body .app-frame :where(.data-tabs) {
  border-bottom: 1px solid #e4ece6;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  display: flex;
}

body .app-frame :where(.data-tabs a) {
  color: var(--color-muted);
  border-radius: 7px;
  padding: 9px 15px;
  font-size: .82rem;
  text-decoration: none;
}

body .app-frame :where(.data-tabs a[aria-current="page"]) {
  color: #1f7058;
  background: #eaf4ed;
  font-weight: 650;
}

body .app-frame :where(.data-tabs a:hover) {
  background: #f2f7f3;
}

body .app-frame :where(.data-panel .section-title) {
  margin: 22px 0 12px;
}

body .app-frame :where(.section-title) {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

body .app-frame :where(.section-title h2) {
  margin: 0 0 4px;
}

body .app-frame :where(.section-title p) {
  margin: 0;
  font-size: .76rem;
}

body .app-frame :where(.compact-workspace .table-wrap) {
  margin: 12px 0 0;
}

body .app-frame :where(.compact-workspace .workspace-header h1, .compact-workspace .section-title h2) {
  overflow-wrap: anywhere;
  min-width: 0;
}

body .app-frame :where(.mobile-record-list) {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: none;
}

body .app-frame :where(.mobile-record-card) {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 10px;
  min-width: 0;
  padding: 13px;
}

body .app-frame :where(.mobile-record-heading) {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  display: flex;
}

body .app-frame :where(.mobile-record-heading > div:first-child) {
  min-width: 0;
}

body .app-frame :where(.mobile-record-heading strong) {
  overflow-wrap: anywhere;
  font-size: .88rem;
  font-weight: 650;
  display: block;
}

body .app-frame :where(.mobile-record-card small) {
  color: #617167;
  overflow-wrap: anywhere;
  margin-top: 4px;
  font-size: .72rem;
  line-height: 1.45;
  display: block;
}

body .app-frame :where(.mobile-record-emphasis) {
  text-align: right;
  flex: none;
  justify-items: end;
  gap: 5px;
  display: grid;
}

body .app-frame :where(.mobile-record-emphasis strong) {
  white-space: nowrap;
  font-size: .9rem;
}

body .app-frame :where(.mobile-record-facts) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin-top: 12px;
  display: grid;
}

body .app-frame :where(.report-record-title) {
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0;
  font-size: .9rem;
}

body .app-frame :where(.report-record-facts) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 12px;
  min-width: 0;
  margin: 12px 0 0;
  display: grid;
}

body .app-frame :where(.report-record-facts > div) {
  align-content: start;
  gap: 3px;
  min-width: 0;
  display: grid;
}

body .app-frame :where(.report-record-facts dt) {
  color: #617167;
  font-size: .7rem;
}

body .app-frame :where(.report-record-facts dd) {
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0;
  font-size: .79rem;
  font-weight: 600;
}

body .app-frame :where(.report-record-fields > div) {
  grid-template-columns: minmax(80px, .7fr) minmax(0, 1fr);
  align-items: start;
  display: grid;
}

body .app-frame :where(.report-record-fields dd) {
  text-align: left;
  min-width: 0;
}

body .app-frame :where(.report-record-id) {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  font-size: .69rem;
  line-height: 1.45;
  display: block;
}

body .app-frame :where(.mobile-record-facts > div) {
  align-content: start;
  gap: 3px;
  min-width: 0;
  display: grid;
}

body .app-frame :where(.mobile-record-facts > div > span:first-child) {
  color: #617167;
  font-size: .7rem;
}

body .app-frame :where(.mobile-record-facts strong) {
  overflow-wrap: anywhere;
  font-size: .79rem;
  font-weight: 600;
}

body .app-frame :where(.mobile-record-facts progress) {
  accent-color: #429572;
  width: min(100%, 130px);
  height: 6px;
  margin: 2px 0 0;
  display: block;
}

body .app-frame :where(.mobile-record-details) {
  border-top: 1px solid #edf0ed;
  margin-top: 10px;
}

body .app-frame :where(.mobile-record-details > summary) {
  color: #28684f;
  cursor: pointer;
  align-items: center;
  min-height: 44px;
  font-size: .75rem;
  font-weight: 600;
  display: flex;
}

body .app-frame :where(.mobile-record-details > summary:focus-visible) {
  outline-offset: 2px;
  border-radius: 4px;
  outline: 2px solid #2b765b;
}

body .app-frame :where(.mobile-record-details dl) {
  gap: 8px;
  margin: 0 0 10px;
  display: grid;
}

body .app-frame :where(.mobile-record-details dl > div) {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}

body .app-frame :where(.mobile-record-details dt) {
  color: #617167;
  font-size: .72rem;
}

body .app-frame :where(.mobile-record-details dd) {
  text-align: right;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: .76rem;
  font-weight: 550;
}

body .app-frame :where(.mobile-record-details form) {
  margin: 10px 0 14px;
}

body .app-frame :where(.compact-workspace th) {
  padding: 11px 13px;
  font-size: .7rem;
}

body .app-frame :where(.compact-workspace td) {
  padding: 13px;
  font-size: .79rem;
}

body .app-frame :where(.compact-workspace td small) {
  color: #617167;
  margin-top: 5px;
  font-size: .71rem;
  line-height: 1.45;
  display: block;
}

body .app-frame :where(.compact-workspace td strong) {
  font-weight: 600;
}

body .app-frame :where(.compact-workspace progress) {
  accent-color: #429572;
  width: 110px;
  height: 5px;
  margin-top: 8px;
  display: block;
}

body .app-frame :where(.status-pill) {
  color: #517663;
  white-space: nowrap;
  background: #eff4f0;
  border: 1px solid #e2ebe5;
  border-radius: 5px;
  align-items: center;
  gap: 4px;
  width: max-content;
  padding: 4px 8px;
  font-size: .68rem;
  font-weight: 550;
  display: inline-flex;
}

body .app-frame :where(.status-in_progress), body .app-frame :where(.status-confirmed) {
  color: #5480ad;
  background: #edf3fb;
  border-color: #dce8f9;
}

body .app-frame :where(.status-completed), body .app-frame :where(.status-paid) {
  color: #3a8660;
  background: #eaf6ee;
}

body .app-frame :where(.status-cancelled) {
  color: #9b8583;
  background: #f6f0ef;
  border-color: #eee2e0;
}

body .app-frame :where(.text-warning) {
  color: #b07b35;
}

body .app-frame :where(.report-download) {
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  max-width: 100%;
  display: inline-flex;
}

body .app-frame :where(.report-download__actions) {
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

body .app-frame :where(.report-download__actions .button) {
  min-height: 40px;
  padding: 8px 11px;
  font-size: .76rem;
}

body .app-frame :where(.report-download > [role="alert"]) {
  color: #a75444;
  max-width: 280px;
  font-size: .72rem;
}

body .app-frame :where(.compact-metrics) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  display: grid;
}

body .app-frame :where(.compact-metric) {
  color: var(--color-ink);
  background: #fff;
  border: 1px solid #e1e9e3;
  border-radius: 11px;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 18px 20px;
  text-decoration: none;
  display: flex;
}

body .app-frame :where(.compact-metric > span) {
  color: var(--color-muted);
  font-size: .74rem;
}

body .app-frame :where(.compact-metric > strong) {
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
  font-size: 1.75rem;
  font-weight: 650;
  line-height: 1.25;
}

body .app-frame :where(.compact-metric > small) {
  color: var(--color-muted);
  font-size: .72rem;
}

body .app-frame :where(.finance-metrics .compact-metric > strong) {
  font-size: clamp(1.15rem, 1.6vw, 1.6rem);
}

body .app-frame :where(.compact-metric:hover) {
  border-color: #9dcab0;
}

body .app-frame :where(.pagination) {
  color: var(--color-muted);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: .74rem;
  display: flex;
}

body .app-frame :where(.pagination > div) {
  align-items: center;
  gap: 12px;
  display: flex;
}

body .app-frame :where(.pagination .button) {
  min-height: 32px;
  padding: 7px 11px;
  font-size: .73rem;
}

body .app-frame :where(.location-grid), body .app-frame :where(.account-grid) {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  display: grid;
}

body .app-frame :where(.location-card) {
  color: #355c4c;
  background: #fafcfb;
  border: 1px solid #e3eae5;
  border-radius: 9px;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 16px;
  font-size: .82rem;
  text-decoration: none;
  display: flex;
}

body .app-frame :where(.location-card > span), body .app-frame :where(.location-card > small) {
  color: var(--color-muted);
  font-size: .73rem;
}

body .app-frame :where(.location-card ul) {
  margin: 4px 0;
  padding-left: 16px;
  font-size: .75rem;
  line-height: 1.8;
}

body .app-frame :where(.location-card details) {
  width: 100%;
  font-size: .72rem;
}

body .app-frame :where(.location-card__children) {
  border-top: 1px solid var(--color-border);
  gap: 7px;
  width: 100%;
  padding-top: 5px;
  display: grid;
}

body .app-frame :where(.archive-related-row) {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

body .app-frame :where(.archive-related-row > span) {
  overflow-wrap: anywhere;
  min-width: 0;
}

body .app-frame :where(.archive-row-action) {
  flex: none;
  width: max-content;
  max-width: 100%;
  margin: 0;
  display: inline-flex;
}

body .app-frame :where(.archive-row-action .button) {
  white-space: nowrap;
  flex: none;
  min-width: max-content;
  min-height: 32px;
  padding: 6px 10px;
  font-size: .72rem;
}

body .app-frame :where(.bulk-record-selection) {
  gap: 10px;
  min-width: 0;
  display: grid;
}

body .app-frame :where(.bulk-record-toolbar) {
  border: 1px solid var(--color-border);
  background: var(--color-surface, #fff);
  border-radius: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  display: flex;
}

body .app-frame :where(.bulk-record-toolbar > span) {
  color: var(--color-muted);
  font-size: .8rem;
}

body .app-frame .bulk-select-checkbox {
  cursor: pointer;
  flex: 0 0 32px;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  display: inline-flex;
}

body .app-frame .bulk-select-checkbox input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--color-primary);
  margin: 0;
}

body .app-frame :where(.customer-list--selectable) {
  width: calc(100% - 42px);
  margin-left: 42px;
}

body .app-frame :where(.customer-card--selectable) {
  text-align: left;
  justify-content: flex-start;
  align-items: center;
  position: relative;
}

body .app-frame :where(.customer-card--selectable > .bulk-select-checkbox) {
  z-index: 1;
  position: absolute;
  top: 50%;
  left: -42px;
  transform: translateY(-50%);
}

body .app-frame :where(.customer-card--selectable > .inventory-balance) {
  text-align: left;
  margin-left: auto;
}

body .app-frame :where(.customer-card--selectable > .archive-row-action) {
  margin-left: auto;
}

body .app-frame :where(.sales-quote-card) {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
  display: grid;
}

body .app-frame :where(.sales-quote-card > div:first-child) {
  gap: 4px;
  min-width: 0;
  display: grid;
}

body .app-frame :where(.sales-quote-actions) {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

body .app-frame :where(.sales-quote-actions > form) {
  align-items: center;
  margin: 0;
  display: flex;
}

body .app-frame :where(.sales-order-card) {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
  display: grid;
}

body .app-frame :where(.sales-order-details) {
  gap: 4px;
  min-width: 0;
  display: grid;
}

body .app-frame :where(.sales-order-actions) {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

body .app-frame :where(.sales-order-actions > form) {
  align-items: center;
  margin: 0;
  display: flex;
}

body .app-frame :where(.sales-document-detail-trigger) {
  justify-self: start;
  min-height: 34px;
  padding: 7px 10px;
  font-size: .76rem;
}

body .app-frame :where(.sales-document-dialog[open]) {
  grid-template-rows: auto minmax(0, 1fr);
  width: min(920px, 100vw - 36px);
  max-height: min(88dvh, 900px);
  padding: 0;
  display: grid;
  overflow: hidden;
}

body .app-frame :where(.sales-document-dialog-heading) {
  border-bottom: 1px solid var(--color-border);
  align-items: center;
  margin: 0;
  padding: 18px 22px;
}

body .app-frame :where(.sales-document-dialog-heading > div:first-child) {
  gap: 3px;
  min-width: 0;
  display: grid;
}

body .app-frame :where(.sales-document-dialog-heading h2) {
  overflow-wrap: anywhere;
}

body .app-frame :where(.sales-document-dialog-heading p) {
  margin: 0;
}

body .app-frame :where(.sales-document-dialog-total) {
  text-align: right;
  white-space: nowrap;
  gap: 3px;
  margin-left: auto;
  display: grid;
}

body .app-frame :where(.sales-document-dialog-total span) {
  color: var(--color-muted);
  font-size: .75rem;
}

body .app-frame :where(.sales-document-dialog-total strong) {
  font-variant-numeric: tabular-nums;
  font-size: 1.12rem;
}

body .app-frame :where(.sales-document-dialog-body) {
  min-height: 0;
  padding: 16px 22px 22px;
  overflow-y: auto;
}

body .app-frame :where(.sales-line-item-list) {
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

body .app-frame :where(.sales-line-item) {
  border: 1px solid var(--color-border);
  background: var(--color-accent);
  border-radius: 10px;
  gap: 12px;
  padding: 13px 14px;
  display: grid;
}

body .app-frame :where(.sales-line-item-heading) {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  display: flex;
}

body .app-frame :where(.sales-line-item-heading strong) {
  overflow-wrap: anywhere;
  min-width: 0;
}

body .app-frame :where(.sales-line-type) {
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  border-radius: 999px;
  flex: none;
  padding: 3px 8px;
  font-size: .72rem;
}

body .app-frame :where(.sales-line-type.is-stock) {
  color: var(--color-primary);
}

body .app-frame :where(.sales-line-item-values) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  display: grid;
}

body .app-frame :where(.sales-line-item-values > div) {
  gap: 3px;
  min-width: 0;
  display: grid;
}

body .app-frame :where(.sales-line-item-values dt) {
  color: var(--color-muted);
  font-size: .72rem;
}

body .app-frame :where(.sales-line-item-values dd) {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  margin: 0;
}

body .app-frame :where(.sales-line-item-total dd) {
  font-weight: 700;
}

body .app-frame :where(.sales-line-stock-status) {
  color: var(--color-muted);
  margin: 0;
  font-size: .76rem;
}

body .app-frame :where(.sales-quote-convert-form) {
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 640px) {
  body .app-frame :where(.sales-document-dialog) {
    width: calc(100vw - 20px);
    max-height: 94dvh;
  }

  body .app-frame :where(.sales-document-dialog-heading) {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px 12px;
    padding: 14px 16px;
    display: grid;
  }

  body .app-frame :where(.sales-document-dialog-total) {
    text-align: left;
    grid-area: 2 / 1;
    margin: 0;
  }

  body .app-frame :where(.sales-document-dialog-heading > .icon-button) {
    grid-area: 1 / 2;
  }

  body .app-frame :where(.sales-document-dialog-body) {
    padding: 14px 16px 18px;
  }

  body .app-frame :where(.sales-line-item-values) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body .app-frame :where(.bulk-select-header, .bulk-select-cell) {
  text-align: center;
  width: 42px;
  min-width: 42px;
  padding-left: 4px;
  padding-right: 4px;
}

body .app-frame :where(.bulk-select-cell .bulk-select-checkbox) {
  place-items: center;
  width: 32px;
  height: 32px;
  display: grid;
}

body .app-frame :where(.mobile-record-card:has(.bulk-select-checkbox)) {
  width: calc(100% - 42px);
  margin-left: 42px;
  position: relative;
}

body .app-frame :where(.mobile-record-card .bulk-select-checkbox) {
  z-index: 1;
  position: absolute;
  top: 50%;
  left: -42px;
  transform: translateY(-50%);
}

body .app-frame :where(.location-card:has( > .inline-actions .bulk-select-checkbox)) {
  width: calc(100% - 42px);
  margin-left: 42px;
  position: relative;
}

body .app-frame :where(.location-card > .inline-actions .bulk-select-checkbox) {
  z-index: 1;
  position: absolute;
  top: 50%;
  left: -42px;
  transform: translateY(-50%);
}

body .app-frame :where(.archive-related-row:has(.bulk-select-checkbox)) {
  width: calc(100% - 42px);
  margin-left: 42px;
  position: relative;
}

body .app-frame :where(.archive-related-row .bulk-select-checkbox) {
  z-index: 1;
  position: absolute;
  top: 50%;
  left: -42px;
  transform: translateY(-50%);
}

body .app-frame :where(.nested-detail:has(.bulk-select-checkbox)) {
  width: calc(100% - 42px);
  margin-left: 42px;
  position: relative;
}

body .app-frame :where(.nested-detail .bulk-select-checkbox) {
  z-index: 1;
  position: absolute;
  top: 10px;
  left: -42px;
}

body .app-frame :where(.simple-list > li:has(.bulk-select-checkbox)) {
  width: calc(100% - 42px);
  margin-left: 42px;
  position: relative;
}

body .app-frame :where(.simple-list > li .bulk-select-checkbox) {
  z-index: 1;
  position: absolute;
  top: 50%;
  left: -42px;
  transform: translateY(-50%);
}

body .app-frame :where(.archive-record:has( > .bulk-select-checkbox)) {
  justify-content: flex-start;
  width: calc(100% - 42px);
  margin-left: 42px;
  position: relative;
}

body .app-frame :where(.archive-record:has( > .bulk-select-checkbox) .archive-row-controls) {
  margin-left: auto;
}

body .app-frame :where(.archive-record > .bulk-select-checkbox) {
  z-index: 1;
  position: absolute;
  top: 50%;
  left: -42px;
  transform: translateY(-50%);
}

body .app-frame :where(.bulk-purge-confirmation) {
  background: var(--color-surface, #fff);
  border: 1px solid #b42318;
  border-radius: 8px;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  display: grid;
}

body .app-frame :where(.bulk-purge-confirmation p) {
  color: var(--color-ink);
  margin: 0;
}

body .app-frame :where(.bulk-purge-confirmation__actions) {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  display: flex;
}

body .app-frame :where(.bulk-purge-confirmation .button--danger) {
  color: #fff;
  background: #b42318;
  border-color: #b42318;
}

body .app-frame :where(.archive-record-list) {
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

body .app-frame :where(.archive-record) {
  border: 1px solid var(--color-border);
  background: var(--color-surface, #fff);
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  display: flex;
}

body .app-frame :where(.archive-record h2) {
  margin: 4px 0;
  font-size: .95rem;
}

body .app-frame :where(.archive-row-controls) {
  justify-content: flex-end;
  align-items: center;
  gap: .5rem;
  display: flex;
}

body .app-frame :where(.archive-purge-control) {
  position: relative;
}

body .app-frame :where(.archive-purge-trigger) {
  border: 1px solid var(--color-border);
  width: 2.25rem;
  height: 2.25rem;
  color: var(--color-muted);
  cursor: pointer;
  background: none;
  border-radius: .6rem;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
  display: grid;
}

body .app-frame :where(.archive-purge-trigger:hover, .archive-purge-trigger:focus-visible) {
  color: #b42318;
  border-color: #b42318;
}

body .app-frame :where(.archive-purge-confirmation) {
  z-index: 15;
  background: var(--color-surface, #fff);
  border: 1px solid #b42318;
  border-radius: .75rem;
  gap: .75rem;
  width: min(24rem, 100vw - 3rem);
  padding: 1rem;
  display: grid;
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  box-shadow: 0 12px 32px #0000002e;
}

body .app-frame :where(.archive-purge-confirmation .button--danger) {
  color: #fff;
  background: #b42318;
  border-color: #b42318;
}

body .app-frame :where(.archive-purge-confirmation .button--danger:hover) {
  background: #8f1d18;
  border-color: #8f1d18;
}

body .app-frame :where(.archive-purge-confirmation p) {
  margin: 0;
}

body .app-frame :where(.archive-purge-confirmation__actions) {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem;
  display: flex;
}

body .app-frame :where(.archive-record p, .archive-footnote) {
  color: var(--color-muted);
  margin: 0;
  font-size: .78rem;
}

body .app-frame :where(.archive-ledger-note) {
  color: var(--color-warning-ink, #8a4b08);
  margin-top: 6px;
}

body .app-frame :where(.archive-footnote) {
  line-height: 1.55;
}

body .app-frame :where(.nested-detail) {
  border-bottom: 1px solid #e8eeea;
  padding: 13px 0;
  font-size: .81rem;
}

body .app-frame :where(.nested-detail summary) {
  cursor: pointer;
}

body .app-frame :where(.nested-detail li) {
  color: var(--color-muted);
  padding: 4px 0;
}

@media (max-width: 600px) {
  body .app-frame :where(.archive-record) {
    flex-direction: column;
    align-items: flex-start;
  }
}

body .app-frame .purchasing-workspace .purchasing-header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: flex;
}

body .app-frame .purchasing-workspace .supplier-credit-list {
  gap: 14px;
  display: grid;
}

body .app-frame .purchasing-workspace .supplier-credit-rows {
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

body .app-frame .purchasing-workspace .supplier-credit-row {
  border: 1px solid var(--color-border);
  background: var(--color-surface-subtle);
  border-radius: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(240px, .9fr);
  align-items: center;
  gap: 12px 18px;
  padding: 12px 14px;
  display: grid;
}

body .app-frame .purchasing-workspace .supplier-credit-row-source, body .app-frame .purchasing-workspace .supplier-credit-row-target {
  gap: 3px;
  min-width: 0;
  display: grid;
}

body .app-frame .supplier-credit-row-source > span, body .app-frame .supplier-credit-row-target > span {
  font-size: .8rem;
}

body .app-frame .supplier-credit-apply-form {
  grid-template-columns: minmax(100px, 1fr) auto;
  align-items: end;
  gap: 8px;
  display: grid;
}

body .app-frame .supplier-credit-apply-form label {
  gap: 4px;
  margin: 0;
  font-size: .78rem;
  display: grid;
}

body .app-frame .supplier-credit-apply-form input {
  min-width: 0;
}

@media (max-width: 820px) {
  body .app-frame .purchasing-workspace .supplier-credit-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body .app-frame .purchasing-workspace .purchasing-header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  body .app-frame .purchasing-workspace .supplier-credit-apply-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

body .app-frame :where(.finance-scope) {
  color: #5c7866;
  background: #eef5f0;
  border-color: #dbe8df;
  align-items: center;
  gap: 15px;
  padding: 13px 18px;
  font-size: .76rem;
  display: flex;
}

body .app-frame :where(.finance-scope strong) {
  white-space: nowrap;
}

body .app-frame :where(.finance-scope-copy) {
  max-width: 900px;
  color: var(--color-muted);
  margin: 0;
  font-size: .82rem;
  line-height: 1.65;
}

body .app-frame :where(.finance-period-filters) {
  padding: 0;
}

body .app-frame :where(.finance-metrics) {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 10px;
  gap: 0;
  overflow: hidden;
}

body .app-frame :where(.finance-metrics .compact-metric) {
  background: none;
  border: 0;
  border-radius: 0;
}

body .app-frame :where(.finance-metrics .compact-metric:not(:nth-child(4n))) {
  border-right: 1px solid var(--color-border);
}

body .app-frame :where(.account-card) {
  background: #fff;
  border: 1px solid #e3eae5;
  border-radius: 10px;
  padding: 20px;
}

body .app-frame :where(.account-card h3) {
  margin: 14px 0 10px;
  font-size: .9rem;
}

body .app-frame :where(.account-card > strong) {
  font-size: 1.5rem;
  font-weight: 650;
}

body .app-frame :where(.account-card p) {
  color: var(--color-muted);
  margin-bottom: 0;
  font-size: .72rem;
}

body .app-frame :where(.inline-form) {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  display: flex;
}

body .app-frame :where(.inline-form select) {
  min-width: 100px;
  max-width: 185px;
  min-height: 33px;
  font-size: .73rem;
}

body .app-frame :where(.production-schedule-list) {
  gap: 10px;
  display: grid;
}

body .app-frame :where(.production-schedule-operation) {
  margin: 0;
  padding: 14px;
}

body .app-frame :where(.production-schedule-operation .section-heading) {
  margin-bottom: 10px;
}

body .app-frame :where(.production-schedule-operation small) {
  color: var(--color-muted);
  margin-top: 3px;
  display: block;
}

body .app-frame :where(.production-schedule-form) {
  grid-template-columns: minmax(160px, 1.3fr) minmax(140px, .9fr) minmax(100px, .55fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 12px;
  display: grid;
}

body .app-frame :where(.production-schedule-form label) {
  min-width: 0;
  color: var(--color-muted);
  gap: 5px;
  margin: 0;
  font-size: .75rem;
  display: grid;
}

body .app-frame :where(.production-schedule-form input, .production-schedule-form select) {
  width: 100%;
  min-width: 0;
  min-height: 38px;
}

body .app-frame :where(.production-schedule-form button) {
  min-height: 38px;
}

body .app-frame :where(.production-schedule-cancel-form) {
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 6px;
  min-width: 260px;
  display: grid;
}

body .app-frame :where(.production-schedule-cancel-form input) {
  width: 100%;
  min-width: 120px;
  min-height: 36px;
}

body .app-frame :where(.row-action) {
  margin-top: 8px;
  font-size: .71rem;
}

body .app-frame :where(.row-action > summary) {
  color: #9c7a5a;
  cursor: pointer;
}

body .app-frame :where(.row-action .compact-form) {
  width: 190px;
  margin-top: 10px;
}

body .app-frame :where(.business-terminal) {
  border: 1px solid var(--color-border);
  background: #f7f9f8;
  border-radius: 10px;
  margin-bottom: 16px;
  padding: 20px;
}

body .app-frame :where(.terminal-heading) {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  display: flex;
}

body .app-frame :where(.terminal-heading h2) {
  letter-spacing: -.04em;
  margin: 0 0 6px;
  font-size: 1.125rem;
}

body .app-frame :where(.terminal-heading p) {
  color: var(--color-muted);
  margin: 0;
  font-size: .76rem;
}

body .app-frame :where(.terminal-period) {
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 9px;
  display: flex;
}

body .app-frame :where(.terminal-period label) {
  color: var(--color-muted);
  flex-direction: column;
  gap: 5px;
  font-size: .75rem;
  display: flex;
}

body .app-frame :where(.terminal-period input) {
  color: #496a56;
  background: #fff;
  border: 1px solid #d7e3da;
  border-radius: 7px;
  width: 134px;
  min-height: 34px;
  padding: 7px 9px;
  font-size: .74rem;
}

body .app-frame :where(.terminal-period button) {
  min-height: 34px;
  padding: 8px 12px;
  font-size: .72rem;
}

body .app-frame :where(.terminal-currency) {
  color: var(--color-muted);
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 21px 0 12px;
  font-size: .8125rem;
  display: flex;
}

body .app-frame :where(.terminal-currency label) {
  color: #55755e;
  align-items: center;
  gap: 9px;
  display: flex;
}

body .app-frame :where(.terminal-currency select) {
  background: #fff;
  border: 1px solid #d8e5db;
  border-radius: 5px;
  min-height: 30px;
  padding: 4px 7px;
  font-size: .72rem;
}

body .app-frame :where(.terminal-metrics) {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  display: grid;
  overflow: hidden;
}

body .app-frame :where(.terminal-metric) {
  min-width: 0;
  color: var(--color-ink);
  background: #fff;
  border: 0;
  border-radius: 0;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  text-decoration: none;
  display: flex;
}

body .app-frame :where(.terminal-metric:first-child) {
  color: var(--color-ink);
}

body .app-frame :where(.terminal-metric:not(:last-child)) {
  border-right: 1px solid var(--color-border);
}

body .app-frame :where(.terminal-metric > span) {
  color: var(--color-muted);
  font-size: .75rem;
}

body .app-frame :where(.terminal-metric > strong) {
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
  font-size: clamp(1.1rem, 1.6vw, 1.55rem);
}

body .app-frame :where(.terminal-metric > small) {
  color: var(--color-muted);
  font-size: .75rem;
}

body .app-frame :where(.terminal-hint) {
  color: var(--color-muted);
  margin: 12px 0 0;
  font-size: .75rem;
  line-height: 1.7;
}

body .app-frame :where(.terminal-hint a) {
  color: #4c7959;
}

body .app-frame :where(.terminal-charts) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin-top: 16px;
  display: grid;
}

body .app-frame :where(.chart-card) {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 8px;
  min-width: 0;
  height: 100%;
  padding: 16px;
}

body .app-frame :where(.chart-heading) {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

body .app-frame :where(.chart-heading h3) {
  margin: 0;
  font-size: .84rem;
  font-weight: 600;
}

body .app-frame :where(.chart-title) {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

body .app-frame :where(.segmented-control) {
  background: #f6f9f7;
  border: 1px solid #e3ebe6;
  border-radius: 7px;
  min-width: 0;
  margin: 0;
  padding: 3px;
  font-size: .75rem;
  display: inline-flex;
}

body .app-frame :where(.segmented-control button), body .app-frame :where(.segmented-control a) {
  color: var(--color-muted);
  cursor: pointer;
  font: inherit;
  background: none;
  border: 0;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  padding: 5px 9px;
  text-decoration: none;
  display: inline-flex;
}

body .app-frame :where(.segmented-control [aria-pressed="true"]), body .app-frame :where(.segmented-control [aria-current="page"]) {
  color: #2b6c49;
  outline-offset: -1px;
  background: #fff;
  outline: 1px solid #d8e2df;
}

body .app-frame :where(.business-chart) {
  align-items: center;
  gap: 16px;
  min-height: 152px;
  display: flex;
}

body .app-frame :where(.donut-chart) {
  flex: 0 148px;
  width: 148px;
  min-width: 120px;
  max-width: 48%;
}

body .app-frame :where(.donut-chart a:hover circle) {
  opacity: .75;
  stroke-width: 16px;
}

body .app-frame :where(.donut-total) {
  fill: #486b54;
  font-size: 16px;
  font-weight: 650;
}

body .app-frame :where(.donut-label) {
  fill: var(--color-muted);
  font-size: 11px;
}

body .app-frame :where(.chart-legend) {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body .app-frame :where(.chart-legend li) {
  border-bottom: 1px solid #f0f4f1;
}

body .app-frame :where(.chart-legend li:last-child) {
  border-bottom: 0;
}

body .app-frame :where(.chart-legend a) {
  color: var(--color-muted);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  font-size: .75rem;
  text-decoration: none;
  display: flex;
}

body .app-frame :where(.chart-legend a:hover) {
  color: #2b7b4d;
}

body .app-frame :where(.legend-label) {
  align-items: center;
  gap: 7px;
  display: flex;
}

body .app-frame :where(.legend-label i) {
  border-radius: 50%;
  flex: none;
  width: 7px;
  height: 7px;
}

body .app-frame :where(.chart-legend strong) {
  color: #496d54;
  font-size: .77rem;
  font-weight: 600;
}

body .app-frame :where(.chart-bar .chart-legend) {
  width: 100%;
  padding-top: 10px;
}

body .app-frame :where(.bar-track) {
  background: #f0f5f1;
  border-radius: 4px;
  width: 100%;
  height: 8px;
  display: block;
  overflow: hidden;
}

body .app-frame :where(.bar-track > span) {
  border-radius: 4px;
  height: 100%;
  display: block;
}

body .app-frame :where(.chart-empty) {
  min-height: 152px;
  color: var(--color-muted);
  justify-content: center;
  align-items: center;
  font-size: .8rem;
  display: flex;
}

body .app-frame :where(.operations-chart-select) {
  color: var(--color-muted);
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  display: flex;
}

body .app-frame :where(.operations-chart-select select) {
  color: #52735c;
  background: #fff;
  border: 1px solid #e3ebe6;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: .75rem;
}

body .app-frame :where(.cash-flow-timeline) {
  padding: 8px 0;
}

body .app-frame :where(.cash-flow-legend) {
  color: var(--color-muted);
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font-size: .69rem;
  display: flex;
}

body .app-frame :where(.cash-flow-legend > span) {
  align-items: center;
  gap: 5px;
  display: inline-flex;
}

body .app-frame :where(.cash-flow-swatch) {
  border-radius: 50%;
  width: 8px;
  height: 8px;
  display: inline-block;
}

body .app-frame :where(.cash-flow-swatch--receipt, .flow-bar--receipt) {
  background: var(--chart-receipt);
}

body .app-frame :where(.cash-flow-swatch--payment, .flow-bar--payment) {
  background: var(--chart-payment);
}

body .app-frame :where(.flow-columns) {
  align-items: flex-end;
  gap: 13px;
  padding: 20px 2px 5px;
  display: flex;
  overflow-x: auto;
}

body .app-frame :where(.flow-day) {
  text-align: center;
  max-width: 90px;
  color: var(--color-muted);
  flex: 1 0 35px;
}

body .app-frame :where(.flow-bars) {
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  height: 110px;
  display: flex;
}

body .app-frame :where(.flow-bars span) {
  border-radius: 3px 3px 0 0;
  width: 13px;
  min-height: 1px;
  display: block;
}

body .app-frame :where(.flow-day > small) {
  font-variant-numeric: tabular-nums;
  margin-top: 9px;
  font-size: .75rem;
  display: block;
}

body .app-frame :where(.overview-banner) {
  min-height: 140px;
  margin-bottom: 20px;
  padding: 25px 30px;
}

body .app-frame :where(.overview-banner h2) {
  font-size: 1.5rem;
}

body .app-frame :where(.overview-banner p) {
  max-width: 700px;
}

body .app-frame :where(.overview-art) {
  transform-origin: 100%;
  height: 135px;
  transform: scale(.7);
}

body .app-frame :where(.calendar-filter) {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

body .app-frame :where(.calendar-filter .filter-bar) {
  flex: 1;
}

body .app-frame :where(.calendar-responsive-filters) {
  background: none;
  border: 0;
  border-radius: 0;
  flex: auto;
  min-width: 0;
}

body .app-frame :where(.calendar-responsive-filters > summary) {
  display: none;
}

body .app-frame :where(.calendar-responsive-filters .responsive-filters-body) {
  padding: 0;
}

body .app-frame :where(.calendar-layout) {
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 13px;
  grid-template-columns: minmax(0, 1fr) 290px;
  min-width: 0;
  display: grid;
  overflow: hidden;
}

body .app-frame :where(.calendar-board) {
  min-width: 0;
}

body .app-frame :where(.calendar-toolbar) {
  border-bottom: 1px solid #e6ede8;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  display: flex;
}

body .app-frame :where(.calendar-navigation) {
  align-items: center;
  gap: 14px;
  display: flex;
}

body .app-frame :where(.calendar-navigation h2) {
  text-transform: capitalize;
  margin: 0;
  font-size: 1rem;
}

body .app-frame :where(.calendar-navigation > a:not(.text-link)) {
  width: 26px;
  height: 28px;
  color: var(--color-muted);
  border: 1px solid #e3eae5;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  text-decoration: none;
  display: flex;
}

body .app-frame :where(.calendar-navigation .text-link) {
  color: var(--color-muted);
  font-size: .8125rem;
}

body .app-frame :where(.calendar-grid) {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 0;
  display: grid;
}

body .app-frame :where(.calendar-weekday) {
  color: #596b5f;
  font-variant-numeric: tabular-nums;
  text-align: center;
  background: #f7faf8;
  border-bottom: 1px solid #e6ede8;
  padding: 12px 8px;
  font-size: .75rem;
}

body .app-frame :where(.calendar-cell) {
  border-bottom: 1px solid #edf2ee;
  border-right: 1px solid #edf2ee;
  min-width: 0;
  min-height: 88px;
  padding: 8px 5px;
}

body .app-frame :where(.calendar-cell:nth-child(7n)) {
  border-right: 0;
}

body .app-frame :where(.calendar-cell.is-selected) {
  outline-offset: -1px;
  background: #f0f7f1;
  outline: 1px solid #a5cbb1;
}

body .app-frame :where(.calendar-cell.outside-month) {
  background: #fafcfb;
}

body .app-frame :where(.calendar-day-number) {
  min-width: 44px;
  min-height: 44px;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 0 0 6px 3px;
  padding: 0;
  font-size: .82rem;
  display: flex;
}

body .app-frame :where(.calendar-day-number small) {
  font-size: .65rem;
}

body .app-frame :where(.calendar-mobile-weekday, .calendar-mobile-count) {
  display: none;
}

body .app-frame :where(.is-today .calendar-day-number) {
  color: #fff;
  background: #3a8860;
  padding: 0 5px;
}

body .app-frame :where(.outside-month .calendar-day-number) {
  color: var(--color-muted);
}

body .app-frame :where(.calendar-events) {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

body .app-frame :where(.calendar-event) {
  text-align: left;
  color: #315b43;
  cursor: pointer;
  background: #eaf3ed;
  border: 0;
  border-left: 2px solid #75ae8c;
  border-radius: 3px;
  flex-wrap: wrap;
  gap: 3px 5px;
  width: 100%;
  min-width: 0;
  padding: 5px;
  font-size: .75rem;
  line-height: 1.4;
  display: flex;
}

body .app-frame :where(.calendar-event strong) {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 40px;
  min-width: 0;
  font-weight: 500;
  display: block;
  overflow: hidden;
}

body .app-frame :where(.calendar-event small) {
  font-variant-numeric: tabular-nums;
  width: 100%;
  font-size: .6875rem;
}

body .app-frame :where(.calendar-event.event-cancelled) {
  color: #733e36;
  background: #f4eeed;
  border-color: #cfb9b4;
  text-decoration: line-through;
}

body .app-frame :where(.calendar-event.event-completed) {
  color: #40536c;
  background: #edf0f7;
  border-color: #a7b7ce;
}

body .app-frame :where(.calendar-event.event-held) {
  color: #705321;
  background: #fcf5e9;
  border-color: #d0b47f;
}

body .app-frame :where(.more-events) {
  color: #819e89;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 3px;
  font-size: .6rem;
}

body .app-frame :where(.calendar-week .calendar-cell) {
  min-height: 430px;
}

body .app-frame :where(.calendar-week .calendar-event) {
  font-variant-numeric: tabular-nums;
  padding: 8px 5px;
  font-size: .75rem;
}

body .app-frame :where(.calendar-day) {
  grid-template-columns: 1fr;
}

body .app-frame :where(.calendar-day .calendar-cell) {
  min-height: 430px;
  padding: 20px;
}

body .app-frame :where(.calendar-day .calendar-event) {
  padding: 13px;
  font-size: .85rem;
}

body .app-frame :where(.calendar-agenda) {
  background: #fafcfb;
  border-left: 1px solid #e3ebe5;
  min-width: 0;
  padding: 22px 18px;
}

body .app-frame :where(.calendar-agenda h3) {
  margin: 6px 0 0;
  font-size: .95rem;
}

body .app-frame :where(.calendar-agenda .section-title p) {
  margin: 7px 0 12px;
  font-size: .75rem;
}

body .app-frame :where(.calendar-agenda .button) {
  min-height: 33px;
  padding: 8px 11px;
  font-size: .74rem;
}

body .app-frame :where(.agenda-list) {
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

body .app-frame :where(.agenda-list li > button) {
  text-align: left;
  cursor: pointer;
  width: 100%;
  color: var(--color-muted);
  background: none;
  border: 0;
  border-bottom: 1px solid #e7ede9;
  align-items: start;
  gap: 12px;
  padding: 15px 0;
  display: flex;
}

body .app-frame :where(.agenda-list time) {
  font-variant-numeric: tabular-nums;
  min-width: 38px;
  font-size: .78rem;
}

body .app-frame :where(.agenda-list time small) {
  color: var(--color-muted);
  margin-top: 5px;
  font-size: .6875rem;
  display: block;
}

body .app-frame :where(.agenda-list li > button > span) {
  flex-direction: column;
  gap: 6px;
  display: flex;
}

body .app-frame :where(.agenda-list strong) {
  font-size: .8rem;
  font-weight: 600;
}

body .app-frame :where(.agenda-list small) {
  color: var(--color-muted);
  font-size: .75rem;
}

body .app-frame :where(.appointment-detail) {
  padding-top: 20px;
}

body .app-frame :where(.appointment-detail > .text-link) {
  cursor: pointer;
  color: #608b6b;
  background: none;
  border: 0;
  padding: 0;
  font-size: .72rem;
}

body .app-frame :where(.appointment-detail h3) {
  margin: 20px 0 12px;
  line-height: 1.5;
}

body .app-frame :where(.appointment-detail dl) {
  margin: 20px 0;
  font-size: .73rem;
}

body .app-frame :where(.appointment-detail dl > div) {
  gap: 16px;
  padding: 7px 0;
  display: flex;
}

body .app-frame :where(.appointment-detail dt) {
  width: 55px;
  color: var(--color-muted);
  flex: none;
}

body .app-frame :where(.appointment-detail dd) {
  color: var(--color-muted);
  margin: 0;
}

body .app-frame :where(.appointment-detail > p) {
  font-size: .78rem;
  line-height: 1.6;
}

@media (min-width: 1500px) {
  body .app-frame :where(.calendar-cell) {
    min-height: 96px;
  }

  body .app-frame :where(.calendar-layout) {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 1180px) {
  body .app-frame :where(.terminal-metrics), body .app-frame :where(.compact-metrics) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body .app-frame :where(.terminal-metric:nth-child(2n)) {
    border-right: 0;
  }

  body .app-frame :where(.terminal-metric:nth-last-child(n+3)) {
    border-bottom: 1px solid var(--color-border);
  }

  body .app-frame :where(.calendar-layout) {
    grid-template-columns: minmax(0, 1fr);
  }

  body .app-frame :where(.calendar-agenda) {
    border-top: 1px solid #e3ebe5;
    border-left: 0;
  }

  body .app-frame :where(.finance-metrics .compact-metric) {
    border-right: 0;
  }

  body .app-frame :where(.finance-metrics .compact-metric:nth-child(odd)) {
    border-right: 1px solid var(--color-border);
  }

  body .app-frame :where(.finance-metrics .compact-metric:nth-child(-n+2)) {
    border-bottom: 1px solid var(--color-border);
  }

  body .app-frame :where(.calendar-week .calendar-cell) {
    min-height: 250px;
  }

  body .app-frame :where(.operations-setup-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  body .app-frame :where(.terminal-charts) {
    grid-template-columns: 1fr;
  }

  body .app-frame :where(.compact-workspace .workspace-header) {
    flex-direction: column;
  }

  body .app-frame :where(.page-actions) {
    justify-content: flex-start;
  }

  body .app-frame :where(.finance-scope) {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  body .app-frame :where(.calendar-cell) {
    min-height: 92px;
  }
}

@media (max-width: 580px) {
  body .app-frame :where(.desktop-record-table) {
    display: none;
  }

  body .app-frame :where(.mobile-record-list) {
    gap: 8px;
    display: grid;
  }

  body .app-frame :where(.business-terminal) {
    padding: 16px;
  }

  body .app-frame :where(.terminal-metrics), body .app-frame :where(.compact-metrics) {
    gap: 0;
  }

  body .app-frame :where(.terminal-metric), body .app-frame :where(.compact-metric) {
    padding: 14px 12px;
  }

  body .app-frame :where(.terminal-metric > strong), body .app-frame :where(.compact-metric > strong) {
    font-size: 1.2rem;
  }

  body .app-frame :where(.operations-setup-grid) {
    grid-template-columns: 1fr;
  }

  body .app-frame :where(.compact-workspace .content-card) {
    padding: 15px;
  }

  body .app-frame :where(.compact-workspace .compact-disclosure) {
    padding: 0;
  }

  body .app-frame :where(.data-tabs a) {
    padding: 8px 9px;
    font-size: .73rem;
  }

  body .app-frame :where(.business-chart) {
    gap: 9px;
  }

  body .app-frame :where(.chart-legend a) {
    font-size: .7rem;
  }

  body .app-frame :where(.calendar-board) {
    min-width: 0;
  }

  body .app-frame :where(.calendar-layout) {
    border-radius: 0;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
  }

  body .app-frame :where(.calendar-toolbar) {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
    display: grid;
  }

  body .app-frame :where(.calendar-navigation) {
    grid-template-columns: 44px minmax(0, 1fr) 44px auto;
    gap: 4px;
    width: 100%;
    display: grid;
  }

  body .app-frame :where(.calendar-navigation > a:not(.text-link)) {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    font-size: 1.35rem;
  }

  body .app-frame :where(.calendar-navigation h2) {
    text-align: center;
    min-width: 0;
    font-size: .88rem;
  }

  body .app-frame :where(.calendar-navigation .text-link) {
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 0 4px;
    display: flex;
  }

  body .app-frame :where(.calendar-toolbar .segmented-control) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    display: grid;
  }

  body .app-frame :where(.calendar-toolbar .segmented-control a) {
    justify-content: center;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    display: flex;
  }

  body .app-frame :where(.calendar-grid:not(.calendar-day)) {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-width: 0;
  }

  body .app-frame :where(.calendar-weekday) {
    min-width: 0;
    padding: 7px 0;
    font-size: .6875rem;
  }

  body .app-frame :where(.calendar-month .calendar-cell) {
    min-height: 64px;
    padding: 0;
  }

  body .app-frame :where(.calendar-month .calendar-day-number) {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 0;
  }

  body .app-frame :where(.calendar-month .calendar-events) {
    align-items: center;
    min-height: 14px;
  }

  body .app-frame :where(.calendar-mobile-count) {
    color: #315b43;
    text-align: center;
    overflow-wrap: anywhere;
    font-size: .6875rem;
    line-height: 1.2;
    display: block;
  }

  body .app-frame :where(.calendar-month .calendar-events > button), body .app-frame :where(.calendar-week .calendar-weekday) {
    display: none;
  }

  body .app-frame :where(.calendar-week) {
    grid-template-columns: minmax(0, 1fr);
  }

  body .app-frame :where(.calendar-week .calendar-cell) {
    border-right: 0;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: start;
    min-height: 0;
    padding: 7px 10px;
    display: grid;
  }

  body .app-frame :where(.calendar-week .calendar-day-number) {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 60px;
    margin: 0;
    padding: 4px;
    line-height: 1.3;
  }

  body .app-frame :where(.calendar-week .calendar-mobile-month) {
    display: none;
  }

  body .app-frame :where(.calendar-week .calendar-mobile-weekday) {
    display: block;
  }

  body .app-frame :where(.calendar-week .calendar-events) {
    gap: 6px;
  }

  body .app-frame :where(.calendar-week .calendar-event) {
    min-height: 44px;
    padding: 8px;
  }

  body .app-frame :where(.calendar-week .calendar-event strong) {
    white-space: normal;
    overflow-wrap: anywhere;
    flex-basis: 100%;
    overflow: visible;
  }

  body .app-frame :where(.calendar-day .calendar-cell) {
    min-height: 0;
    padding: 12px;
  }

  body .app-frame :where(.calendar-day .calendar-event strong) {
    white-space: normal;
    overflow-wrap: anywhere;
    overflow: visible;
  }

  body .app-frame :where(.calendar-agenda) {
    border-top: 0;
    border-bottom: 1px solid #e3ebe5;
    border-left: 0;
    order: -1;
    padding: 16px;
  }

  body .app-frame :where(.calendar-board) {
    order: 1;
  }

  body .app-frame :where(.agenda-list li > button) {
    gap: 10px;
    min-height: 60px;
    padding: 12px 0;
  }

  body .app-frame :where(.agenda-list li > button > span) {
    min-width: 0;
  }

  body .app-frame :where(.agenda-list strong) {
    overflow-wrap: anywhere;
  }

  body .app-frame :where(.calendar-filter) {
    flex-direction: column;
    align-items: stretch;
  }

  body .app-frame :where(.calendar-filter .filter-bar) {
    min-width: 0;
  }

  body .app-frame :where(.filter-bar label) {
    max-width: none;
  }

  body .app-frame :where(.business-dialog) {
    padding: 18px;
  }

  body .app-frame :where(.overview-banner) {
    padding: 20px;
  }

  body .app-frame :where(.overview-art) {
    display: none;
  }
}

@media (min-width: 581px) {
  body .app-frame :where(.responsive-filters > summary) {
    display: none;
  }

  body .app-frame :where(.responsive-filters .responsive-filters-body) {
    padding: 16px;
  }
}

@media (max-width: 580px) {
  body .app-frame :where(.responsive-filters > summary) {
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 12px 15px;
    font-size: .88rem;
    font-weight: 650;
    list-style: none;
    display: flex;
  }

  body .app-frame :where() {
    display: none;
  }

  body .app-frame :where(.responsive-filters > summary span) {
    flex-direction: column;
    gap: 3px;
    display: flex;
  }

  body .app-frame :where(.responsive-filters > summary small) {
    color: var(--color-muted);
    font-size: .75rem;
    font-weight: 400;
  }

  body .app-frame :where(.responsive-filters > summary svg) {
    transition: transform .15s;
  }

  body .app-frame :where(.responsive-filters[open] > summary svg) {
    transform: rotate(90deg);
  }

  body .app-frame :where(.responsive-filters[open] > summary) {
    border-bottom: 1px solid var(--color-border);
  }

  body .app-frame :where(.responsive-filters .responsive-filters-body) {
    padding: 14px;
  }

  body .app-frame :where(.calendar-responsive-filters .responsive-filters-body) {
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .app-frame :where(.compact-disclosure > summary > svg) {
    transition: none;
  }
}

body .app-frame button, body .app-frame input:not([type="hidden"]), body .app-frame select, body .app-frame textarea, body .app-frame summary, body .app-frame .nav-link, body .app-frame .calendar-navigation > a:not(.text-link), body .app-frame .segmented-control a, body .app-frame .data-tabs a, body .app-frame .text-link, body .app-frame .breadcrumbs a, body .app-frame .banner-link, body .app-frame .notice a {
  min-width: 44px;
  min-height: 44px;
}

body .app-frame .button {
  min-height: 44px;
}

body .app-frame :where(.responsive-filters > summary) {
  list-style: none;
}

body .app-frame :where(.responsive-filters > summary svg) {
  flex: none;
}

body .app-frame :where(.tenant-loading) {
  place-items: center;
  min-height: 180px;
  display: grid;
}

body .app-frame :where(.tenant-loading-status) {
  color: var(--color-muted);
  opacity: 0;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: .85rem;
  animation: .16s .14s forwards tenant-loading-appear;
  display: inline-flex;
}

body .app-frame :where(.tenant-loading-spinner) {
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  flex: none;
  width: 16px;
  height: 16px;
  animation: .76s linear infinite tenant-loading-spin;
}

@keyframes tenant-loading-appear {
  to {
    opacity: 1;
  }
}

@keyframes tenant-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  body .app-frame :where(.tenant-loading-status) {
    opacity: 1;
    animation: none;
  }

  body .app-frame :where(.tenant-loading-spinner) {
    animation: none;
  }
}

body .app-frame :where(.crm-metrics) {
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 10px;
  gap: 0;
  margin-bottom: 18px;
  overflow: hidden;
}

body .app-frame :where(.crm-metric) {
  min-height: 92px;
  box-shadow: none;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 14px 58px 14px 16px;
}

body .app-frame :where(.crm-metric:not(:nth-child(4n))) {
  border-right: 1px solid var(--color-border);
}

body .app-frame :where(.crm-metric > div > span) {
  color: var(--color-muted);
  font-size: .78rem;
}

body .app-frame :where(.crm-metric strong) {
  margin-top: 4px;
  font-size: 1.45rem;
}

body .app-frame :where(.crm-workspace .customer-card) {
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px 10px;
  padding: 14px 0;
  display: grid;
}

body .app-frame :where(.crm-workspace .customer-card--selectable > .bulk-select-checkbox) {
  position: absolute;
  top: 50%;
  left: -42px;
  transform: translateY(-50%);
}

body .app-frame :where(.crm-workspace .customer-card--selectable) {
  padding-left: 0;
}

body .app-frame :where(.crm-workspace .customer-avatar) {
  grid-area: 1 / 1 / 3;
}

body .app-frame :where(.crm-workspace .customer-identity) {
  grid-area: 1 / 2 / auto / -1;
  min-width: 0;
}

body .app-frame :where(.crm-workspace .status-badge) {
  grid-area: 2 / 2;
  justify-self: start;
}

body .app-frame :where(.crm-workspace .customer-assistant-button) {
  grid-area: 2 / 3;
  margin: 0;
}

body .app-frame :where(.crm-workspace .customer-status-form) {
  grid-area: 2 / 4;
  margin: 0;
}

body .app-frame :where(.crm-workspace .customer-status-form .button) {
  min-height: 44px;
}

body .app-frame :where(.supplier-management) {
  grid-template-columns: minmax(0, 1fr);
}

body .app-frame :where(.supplier-management .bulk-record-selection) {
  gap: 8px;
}

body .app-frame :where(.supplier-management .bulk-record-toolbar) {
  padding: 8px 10px;
}

body .app-frame :where(.supplier-filter-bar) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 8px;
  display: grid;
}

body .app-frame :where(.supplier-filter-bar label) {
  min-width: 0;
}

body .app-frame :where(.supplier-list) {
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

body .app-frame :where(.supplier-row) {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 9px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  min-height: 52px;
  padding: 10px 12px;
  display: grid;
}

body .app-frame :where(.supplier-row__identity) {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  display: flex;
}

body .app-frame :where(.supplier-row__identity > strong) {
  overflow-wrap: anywhere;
  min-width: 0;
}

body .app-frame :where(.supplier-row > .archive-row-action) {
  grid-column: 2;
  justify-self: end;
  margin: 0;
}

body .app-frame :where(.purchasing-workspace > .purchasing-create-grid) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body .app-frame :where(.purchasing-workspace > .content-card) {
  min-width: 0;
}

body .app-frame :where(.purchasing-workspace .purchasing-filter-bar) {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 8px;
  margin-bottom: 14px;
  display: grid;
}

body .app-frame :where(.purchasing-workspace .purchasing-filter-bar label) {
  min-width: 0;
  max-width: none;
}

body .app-frame :where(.purchasing-workspace .purchasing-filter-bar > .button) {
  white-space: nowrap;
  align-self: end;
  min-height: 40px;
}

body .app-frame :where(.purchasing-workspace .purchasing-order-row), body .app-frame :where(.purchasing-workspace .purchasing-receipt-row) {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 18px;
  min-width: 0;
  padding: 12px 0;
  display: grid;
}

body .app-frame :where(.purchasing-workspace .purchasing-record-details) {
  gap: 4px;
  min-width: 0;
  display: grid;
}

body .app-frame :where(.purchasing-workspace .purchasing-record-details > strong) {
  overflow-wrap: anywhere;
}

body .app-frame :where(.purchasing-workspace .purchasing-order-facts), body .app-frame :where(.purchasing-workspace .purchasing-receipt-facts) {
  flex-wrap: wrap;
  gap: 4px 12px;
  min-width: 0;
  display: flex;
}

body .app-frame :where(.purchasing-workspace .purchasing-order-facts > span), body .app-frame :where(.purchasing-workspace .purchasing-receipt-facts > span) {
  font-size: .74rem;
}

body .app-frame :where(.purchasing-workspace .purchasing-record-side) {
  justify-items: end;
  gap: 8px;
  min-width: 0;
  display: grid;
}

body .app-frame :where(.purchasing-workspace .purchasing-record-summary) {
  text-align: right;
  justify-items: end;
  gap: 2px;
  display: grid;
}

body .app-frame :where(.purchasing-workspace .purchasing-record-summary > strong) {
  font-variant-numeric: tabular-nums;
  font-size: .9rem;
}

body .app-frame :where(.purchasing-workspace .purchasing-record-summary > span) {
  font-size: .72rem;
}

body .app-frame :where(.purchasing-workspace .purchasing-record-actions), body .app-frame :where(.purchasing-workspace .purchasing-status-actions) {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  min-width: 0;
  display: flex;
}

body .app-frame :where(.purchasing-workspace .purchasing-record-actions > form), body .app-frame :where(.purchasing-workspace .purchasing-status-actions > form) {
  align-items: center;
  margin: 0;
  display: flex;
}

body .app-frame :where(.purchasing-workspace .purchasing-receive-disclosure) {
  position: relative;
}

body .app-frame :where(.purchasing-workspace .purchasing-receive-disclosure > summary) {
  border: 1px solid var(--color-border);
  min-height: 44px;
  color: var(--color-ink);
  cursor: pointer;
  border-radius: 8px;
  align-items: center;
  padding: 6px 10px;
  font-size: .74rem;
  list-style: none;
  display: inline-flex;
}

body .app-frame :where() {
  display: none;
}

body .app-frame :where(.purchasing-workspace .purchasing-receive-disclosure[open]) {
  z-index: 20;
}

body .app-frame :where(.purchasing-workspace .purchasing-receive-disclosure > form) {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
  min-width: min(340px, 100vw - 48px);
  margin: 8px 0 0;
  padding: 12px;
  display: grid;
}

body .app-frame :where(.purchasing-workspace .purchasing-receive-disclosure > form > label) {
  color: var(--color-muted);
  margin: 0;
  font-size: .72rem;
}

body .app-frame :where(.purchasing-workspace .purchasing-receive-disclosure > form > select), body .app-frame :where(.purchasing-workspace .purchasing-receive-disclosure > form > button) {
  grid-column: 1 / -1;
}

body .app-frame :where(.purchasing-workspace .purchasing-suppliers) {
  grid-template-columns: minmax(0, 1fr);
}

body .app-frame :where(.purchasing-workspace .supplier-list .supplier-row) {
  grid-template-columns: 32px minmax(0, 1fr) auto;
  min-height: 60px;
  padding: 8px 10px;
}

body .app-frame :where(.purchasing-workspace .supplier-row > .bulk-select-checkbox) {
  grid-area: 1 / 1;
  place-items: center;
  width: 32px;
  height: 32px;
  display: grid;
  position: static;
  transform: none;
}

body .app-frame :where(.purchasing-workspace .supplier-row__identity) {
  grid-area: 1 / 2;
}

body .app-frame :where(.purchasing-workspace .supplier-row > .archive-row-action) {
  grid-area: 1 / 3;
  justify-self: end;
}

@media (max-width: 1050px) {
  body .app-frame :where(.purchasing-workspace .purchasing-filter-bar) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body .app-frame :where(.purchasing-workspace .purchasing-filter-bar > .button) {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 850px) {
  body .app-frame :where(.purchasing-workspace > .purchasing-create-grid) {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  body .app-frame :where(.purchasing-workspace .purchasing-order-row), body .app-frame :where(.purchasing-workspace .purchasing-receipt-row) {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body .app-frame :where(.purchasing-workspace .purchasing-record-side) {
    grid-template-columns: minmax(0, 1fr) auto;
    place-items: center stretch;
    gap: 8px;
  }

  body .app-frame :where(.purchasing-workspace .purchasing-record-summary) {
    text-align: left;
    justify-items: start;
  }

  body .app-frame :where(.purchasing-workspace .purchasing-record-actions) {
    justify-content: flex-end;
  }

  body .app-frame :where(.purchasing-workspace .purchasing-receive-disclosure > form) {
    grid-template-columns: minmax(0, 1fr);
  }

  body .app-frame :where(.purchasing-workspace .purchasing-receive-disclosure > form > select), body .app-frame :where(.purchasing-workspace .purchasing-receive-disclosure > form > button) {
    grid-column: 1;
  }
}

body .app-frame .purchasing-workspace .purchasing-invoice-entry {
  gap: 7px;
  display: grid;
}

body .app-frame .purchasing-workspace .purchasing-return-disclosure {
  border: 1px solid var(--color-border);
  background: var(--color-surface-subtle);
  border-radius: 10px;
  width: min(100%, 680px);
  padding: 8px 10px;
}

body .app-frame .purchasing-workspace .purchasing-return-disclosure > summary {
  cursor: pointer;
  color: var(--color-text-primary);
  font-size: .8rem;
  font-weight: 600;
}

body .app-frame .purchasing-workspace .purchasing-return-content {
  gap: 10px;
  margin-top: 10px;
  display: grid;
}

body .app-frame .purchasing-workspace .purchasing-credit-note {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  gap: 6px;
  padding: 9px 10px;
  display: grid;
}

body .app-frame .purchasing-workspace .purchasing-credit-note > div:first-child, body .app-frame .purchasing-workspace .purchasing-credit-note-balances {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  display: flex;
}

body .app-frame .purchasing-credit-note small {
  color: var(--color-text-muted);
}

body .app-frame .purchasing-workspace .purchasing-credit-note ul {
  color: var(--color-text-secondary);
  margin: 0;
  padding-left: 18px;
  font-size: .78rem;
}

body .app-frame .purchasing-workspace .purchasing-return-form {
  border-top: 1px solid var(--color-border);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 9px 12px;
  padding-top: 8px;
  display: grid;
}

body .app-frame .purchasing-workspace .purchasing-return-form > p, body .app-frame .purchasing-return-form > label, body .app-frame .purchasing-workspace .purchasing-return-form > input, body .app-frame .purchasing-workspace .purchasing-return-form > button {
  grid-column: 1 / -1;
}

body .app-frame .purchasing-workspace .purchasing-return-form > p {
  margin: 0;
}

body .app-frame .purchasing-workspace .purchasing-return-line {
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 8px;
  display: grid;
}

body .app-frame .purchasing-return-line label {
  margin: 0;
  font-size: .78rem;
}

body .app-frame .purchasing-workspace .purchasing-return-line input {
  min-width: 0;
}

@media (max-width: 600px) {
  body .app-frame .purchasing-workspace .purchasing-return-form {
    grid-template-columns: minmax(0, 1fr);
  }

  body .app-frame .purchasing-workspace .purchasing-return-line {
    grid-template-columns: minmax(0, 1fr) 110px;
  }
}

body .app-frame :where(.production-location-grid) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

body .app-frame :where(.production-location-card) {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 14px;
  padding: 14px;
  display: grid;
}

body .app-frame :where(.production-location-info) {
  min-width: 0;
  color: var(--color-ink);
  grid-area: 1 / 1;
  gap: 4px;
  text-decoration: none;
  display: grid;
}

body .app-frame :where(.production-location-info > strong) {
  overflow-wrap: anywhere;
}

body .app-frame :where(.production-location-info > span) {
  color: var(--color-muted);
  font-size: .73rem;
}

body .app-frame :where(.production-location-actions) {
  grid-area: 1 / 2;
  place-self: start end;
  margin: 0;
}

body .app-frame :where(.production-location-card > .bulk-record-selection), body .app-frame :where(.production-location-card > .location-card__children) {
  grid-area: 2 / 1 / auto / -1;
  min-width: 0;
}

body .app-frame :where(.production-location-card .location-card__children) {
  gap: 8px;
  padding-top: 10px;
}

body .app-frame :where(.production-station-row) {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 4px 0;
  display: flex;
}

body .app-frame :where(.production-station-row > span) {
  overflow-wrap: anywhere;
  min-width: 0;
}

body .app-frame :where(.production-station-actions) {
  flex: none;
  align-items: center;
  gap: 8px;
  margin: 0;
  display: flex;
}

body .app-frame :where(.production-location-actions .bulk-select-checkbox) {
  top: 14px;
  transform: none;
}

body .app-frame :where(.production-tools-grid) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(96px, auto);
  align-items: stretch;
  gap: 12px;
}

body .app-frame .production-tools-grid > .compact-disclosure {
  flex-direction: column;
  height: 100%;
  min-height: 96px;
  margin: 0;
  display: flex;
}

body .app-frame :where(.production-tools-grid > .compact-disclosure > summary) {
  box-sizing: border-box;
  flex: 1;
  align-items: center;
  min-height: 96px;
  padding: 14px 16px;
  display: flex;
}

@media (max-width: 1050px) {
  body .app-frame :where(.production-tools-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  body .app-frame :where(.production-tools-grid) {
    grid-template-columns: minmax(0, 1fr);
  }
}

body .app-frame :where(.member-card .member-list) {
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

body .app-frame :where(.member-card .member-list > li) {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 9px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  display: flex;
}

body .app-frame :where(.member-identity) {
  flex: 230px;
  gap: 5px;
  min-width: 0;
  display: grid;
}

body .app-frame :where(.member-identity > strong) {
  overflow-wrap: anywhere;
}

body .app-frame :where(.member-role-list) {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

body .app-frame :where(.member-role-chip) {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink);
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  padding: 3px 5px 3px 8px;
  font-size: .72rem;
  display: inline-flex;
}

body .app-frame :where(.member-role-chip form) {
  margin: 0;
  display: flex;
}

body .app-frame :where(.member-role-remove) {
  width: 20px;
  height: 20px;
  color: var(--color-muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 50%;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  display: grid;
}

body .app-frame :where(.member-role-remove:hover) {
  background: var(--color-border);
  color: var(--color-ink);
}

body .app-frame :where(.member-actions) {
  flex-wrap: wrap;
  flex: 0 auto;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

body .app-frame :where(.member-actions form) {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  display: flex;
}

body .app-frame :where(.member-actions select) {
  width: auto;
  min-width: 128px;
  min-height: 34px;
  padding: 6px 8px;
  font-size: .74rem;
}

body .app-frame :where(.member-actions .button) {
  min-height: 34px;
  padding: 7px 10px;
  font-size: .73rem;
}

body .app-frame :where(.member-actions .member-remove-form) {
  margin-left: 4px;
}

body .app-frame :where(.member-actions .member-remove-button) {
  color: #fff;
  background: #b42318;
  border-color: #b42318;
  min-height: 34px;
  padding: 7px 10px;
  font-size: .73rem;
}

body .app-frame :where(.member-actions .member-remove-button:hover) {
  color: #fff;
  background: #912018;
  border-color: #912018;
}

body .app-frame :where(.member-actions .member-remove-note) {
  max-width: 220px;
  font-size: .72rem;
}

body .app-frame :where(.custom-role-manager) {
  align-content: start;
  gap: 14px;
  margin: 0;
  display: grid;
}

body .app-frame :where(.member-management-top-grid) {
  grid-template-columns: minmax(270px, .85fr) minmax(0, 1.4fr);
  align-items: start;
  gap: 16px;
  display: grid;
}

body .app-frame :where(.member-management-invite-stack) {
  gap: 12px;
  min-width: 0;
  display: grid;
}

body .app-frame :where(.member-management-invite-stack > .content-card) {
  margin: 0;
}

body .app-frame :where(.member-management-members) {
  min-width: 0;
}

body .app-frame :where(.custom-role-heading, .custom-role-title) {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
  display: flex;
}

body .app-frame :where(.custom-role-heading h2) {
  margin: 0 0 4px;
}

body .app-frame :where(.custom-role-heading p) {
  max-width: 760px;
  margin: 0;
}

body .app-frame :where(.custom-role-form) {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 10px;
  gap: 12px;
  padding: 14px;
  display: grid;
}

body .app-frame :where(.custom-role-fields) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

body .app-frame :where(.custom-role-fields label) {
  color: var(--color-muted);
  gap: 5px;
  font-size: .78rem;
  display: grid;
}

body .app-frame :where(.custom-role-permissions) {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  min-width: 0;
  margin: 0;
  padding: 12px;
}

body .app-frame :where(.custom-role-permissions legend) {
  padding: 0 5px;
  font-size: .84rem;
  font-weight: 650;
}

body .app-frame :where(.custom-role-permission-grid) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 7px 12px;
  display: grid;
}

body .app-frame :where(.custom-role-permission-grid label) {
  border: 1px solid var(--color-border);
  min-width: 0;
  color: var(--color-ink);
  cursor: pointer;
  border-radius: 7px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  font-size: .76rem;
  line-height: 1.35;
  display: flex;
}

body .app-frame :where(.custom-role-permission-grid input) {
  flex: none;
  margin: 2px 0 0;
}

body .app-frame .custom-role-permission-grid input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--color-primary);
  flex: 0 0 16px;
  margin: 0;
  padding: 0;
}

body .app-frame :where(.custom-role-submit) {
  justify-content: flex-end;
  display: flex;
}

body .app-frame :where(.custom-role-list) {
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

body .app-frame :where(.custom-role-list > li) {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 9px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  display: flex;
}

body .app-frame :where(.custom-role-details) {
  flex: 420px;
  gap: 6px;
  min-width: 0;
  display: grid;
}

body .app-frame :where(.custom-role-details p) {
  margin: 0;
}

body .app-frame :where(.custom-role-details details) {
  font-size: .76rem;
}

body .app-frame :where(.custom-role-details details ul) {
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 6px 0 0;
  padding-left: 18px;
  display: flex;
}

body .app-frame :where(.custom-role-list form) {
  flex: none;
  margin: 0;
  display: flex;
}

@media (max-width: 760px) {
  body .app-frame :where(.member-management-top-grid) {
    grid-template-columns: minmax(0, 1fr);
  }

  body .app-frame :where(.supplier-filter-bar) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body .app-frame :where(.supplier-filter-bar > .button) {
    grid-column: 1 / -1;
    justify-self: start;
  }

  body .app-frame :where(.sales-quote-card) {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  body .app-frame :where(.sales-quote-actions) {
    grid-column: 1;
    justify-content: flex-end;
  }

  body .app-frame :where(.sales-order-card) {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  body .app-frame :where(.sales-order-actions) {
    grid-column: 1;
    justify-content: flex-end;
  }

  body .app-frame :where(.member-actions) {
    flex-basis: 100%;
    justify-content: flex-start;
  }

  body .app-frame :where(.custom-role-fields) {
    grid-template-columns: minmax(0, 1fr);
  }

  body .app-frame :where(.custom-role-heading) {
    align-items: flex-start;
  }
}

@media (max-width: 1180px) {
  body .app-frame :where(.crm-metric) {
    border-right: 0;
  }

  body .app-frame :where(.crm-metric:nth-child(odd)) {
    border-right: 1px solid var(--color-border);
  }

  body .app-frame :where(.crm-metric:nth-child(-n+2)) {
    border-bottom: 1px solid var(--color-border);
  }
}

body .app-frame .crm-workspace .customer-card {
  border-bottom: 1px solid var(--color-border);
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 10px;
  min-width: 0;
  min-height: 50px;
  padding: 8px 0;
  display: grid;
}

body .app-frame .crm-workspace .customer-list {
  box-sizing: border-box;
  gap: 0;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

body .app-frame .crm-workspace .customer-list--selectable {
  width: calc(100% - 42px);
  margin-left: 42px;
}

body .app-frame .crm-workspace .customer-card:last-child {
  border-bottom: 0;
}

body .app-frame .crm-workspace .customer-avatar {
  border-radius: 8px;
  grid-area: 1 / 1;
  width: 32px;
  height: 32px;
  font-size: .75rem;
}

body .app-frame .crm-workspace .customer-identity {
  grid-area: 1 / 2;
  gap: 2px;
  min-width: 0;
  display: grid;
}

body .app-frame .crm-workspace .customer-identity-link {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  display: block;
  overflow: hidden;
}

body .app-frame :where(.crm-workspace .customer-identity > a) > strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .82rem;
  line-height: 1.2;
  display: block;
  overflow: hidden;
}

body .app-frame .crm-workspace .customer-identity-meta {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: .69rem;
  line-height: 1.2;
  display: block;
  overflow: hidden;
}

body .app-frame .crm-workspace .customer-card-actions {
  grid-area: 1 / 3;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  min-width: 0;
  display: flex;
}

body .app-frame .crm-workspace .customer-card-actions .status-badge {
  padding: 3px 6px;
  font-size: .68rem;
}

body .app-frame .crm-workspace .customer-card-actions .customer-assistant-button {
  width: 44px;
  height: 44px;
  margin: 0;
}

body .app-frame .crm-workspace .customer-card-actions .archive-row-action {
  margin: 0;
}

body .app-frame .crm-workspace .customer-card-actions .archive-row-action .button, body .app-frame .crm-workspace .customer-card-actions .customer-status-form .button {
  white-space: nowrap;
  min-height: 44px;
  padding: 5px 8px;
  font-size: .68rem;
}

body .app-frame .crm-workspace .customer-card-actions .customer-status-form {
  align-items: center;
  margin: 0;
  display: flex;
}

@media (max-width: 760px) {
  body .app-frame .crm-workspace .customer-card {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 4px 8px;
    min-height: 0;
    padding: 9px 0;
  }

  body .app-frame .crm-workspace .customer-avatar {
    grid-row: 1;
    align-self: start;
    margin-top: 1px;
  }

  body .app-frame .crm-workspace .customer-card-actions {
    flex-wrap: wrap;
    grid-area: 2 / 2;
    justify-content: flex-start;
    gap: 4px;
    width: 100%;
  }

  body .app-frame .crm-workspace .customer-card-actions .status-badge {
    margin-right: auto;
  }

  body .app-frame .crm-workspace .customer-identity-meta {
    -webkit-line-clamp: 2;
    white-space: normal;
    -webkit-box-orient: vertical;
    display: -webkit-box;
  }
}

body .app-frame .product-record-list .customer-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  min-width: 0;
  padding: 12px 0;
  display: grid;
}

body .app-frame .product-record-list .product-card-info {
  gap: 3px;
  min-width: 0;
  display: grid;
}

body .app-frame .product-card-info > strong, body .app-frame .product-card-info > span {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

body .app-frame .product-record-list .product-card-actions {
  grid-column: 2;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

body .app-frame .product-record-list .product-warehouse-edit {
  flex: none;
  position: relative;
}

body .app-frame .product-record-list .product-warehouse-edit > summary {
  border: 1px solid var(--color-border);
  min-height: 44px;
  color: var(--color-ink);
  cursor: pointer;
  white-space: nowrap;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: .76rem;
  list-style: none;
  display: flex;
}

body .app-frame .product-record-list .product-warehouse-edit > summary::-webkit-details-marker {
  display: none;
}

body .app-frame .product-record-list .product-warehouse-edit > summary:after {
  content: "⌄";
  color: var(--color-muted);
}

body .app-frame .product-record-list .product-warehouse-edit[open] {
  z-index: 20;
}

body .app-frame .product-record-list .product-warehouse-edit > form {
  z-index: 21;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  width: min(360px, 100vw - 48px);
  box-shadow: var(--shadow-card);
  border-radius: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 12px;
  display: grid;
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
}

body .app-frame .product-record-list .product-warehouse-edit > form > select {
  grid-column: 1 / -1;
  min-width: 0;
}

body .app-frame .product-record-list .product-warehouse-edit > form > input, body .app-frame .product-record-list .product-warehouse-edit > form > button {
  min-width: 0;
  min-height: 44px;
}

body .app-frame .product-record-list .product-warehouse-edit > form > button {
  justify-self: end;
}

@media (max-width: 760px) {
  body .app-frame .product-record-list .product-warehouse-edit > form {
    grid-template-columns: minmax(0, 1fr);
    width: min(360px, 100vw - 40px);
  }

  body .app-frame .product-record-list .product-warehouse-edit > form > select {
    grid-column: 1;
  }

  body .app-frame .product-record-list .product-warehouse-edit > form > button {
    justify-self: stretch;
  }
}

body .app-frame .product-record-list, body .app-frame .purchasing-workspace .purchasing-record-list, body .app-frame .purchasing-workspace .supplier-list {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 8px;
  gap: 0;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  overflow: visible;
}

body .app-frame .catalog-panel .product-record-row, body .app-frame .purchasing-workspace .purchasing-record-row, body .app-frame .purchasing-workspace .supplier-list .supplier-row {
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: none;
  border-radius: 0;
  min-width: 0;
  margin: 0;
}

body .app-frame .catalog-panel .product-record-row:last-child, body .app-frame .purchasing-workspace .purchasing-record-row:last-child, body .app-frame .purchasing-workspace .supplier-list .supplier-row:last-child {
  border-bottom: 0;
}

body .app-frame .product-record-list .product-record-row {
  grid-template-columns: minmax(0, 1.6fr) minmax(130px, .75fr) auto;
  align-items: center;
  gap: 10px 20px;
  min-height: 70px;
  padding: 10px 12px;
  display: grid;
}

body .app-frame .product-record-list .product-record-row--managed {
  grid-template-columns: 32px minmax(0, 1.6fr) minmax(130px, .75fr) auto;
}

body .app-frame .product-record-list .product-record-row > .bulk-select-checkbox {
  grid-area: 1 / 1;
  place-items: center;
  width: 32px;
  height: 32px;
  display: grid;
  position: static;
  transform: none;
}

body .app-frame .product-record-list .product-record-row .product-record-info {
  grid-column: 1;
  gap: 3px;
  min-width: 0;
  display: grid;
}

body .app-frame .product-record-list .product-record-row--managed .product-record-info {
  grid-column: 2;
}

body .app-frame .product-record-info > strong, body .app-frame .product-record-info > span {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

body .app-frame .product-record-list .product-record-state {
  min-width: 0;
  color: var(--color-muted);
  text-align: center;
  white-space: nowrap;
  grid-column: 2;
  justify-self: center;
  font-size: .78rem;
}

body .app-frame .product-record-list .product-record-row--managed .product-record-state {
  grid-column: 3;
}

body .app-frame .product-record-list .product-record-actions {
  grid-column: 3;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

body .app-frame .product-record-list .product-record-row--managed .product-record-actions {
  grid-column: 4;
}

body .app-frame .purchasing-order-facts > span, body .app-frame .purchasing-receipt-facts > span {
  overflow-wrap: anywhere;
  min-width: 0;
}

body .app-frame .purchasing-workspace .supplier-list .supplier-row {
  width: 100%;
  min-height: 62px;
  margin-left: 0;
  padding: 10px 12px;
}

body .app-frame .purchasing-workspace .supplier-list .supplier-row--managed {
  grid-template-columns: 32px minmax(0, 1fr) auto;
}

body .app-frame .purchasing-workspace .supplier-list .supplier-row:not(.supplier-row--managed) {
  grid-template-columns: minmax(0, 1fr) auto;
}

body .app-frame .purchasing-workspace .supplier-row > .bulk-select-checkbox {
  grid-area: 1 / 1;
  place-items: center;
  width: 32px;
  height: 32px;
  display: grid;
  position: static;
  transform: none;
}

body .app-frame .purchasing-workspace .supplier-row__identity {
  grid-area: 1 / 1;
  align-items: center;
  gap: 6px 12px;
}

body .app-frame .purchasing-workspace .supplier-row--managed .supplier-row__identity {
  grid-column: 2;
}

body .app-frame .purchasing-workspace .supplier-row > .archive-row-action {
  grid-area: 1 / 2;
  justify-self: end;
}

body .app-frame .purchasing-workspace .supplier-row--managed > .archive-row-action {
  grid-column: 3;
}

@media (max-width: 980px) {
  body .app-frame .product-record-list .product-record-row, body .app-frame .product-record-list .product-record-row--managed {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  body .app-frame .product-record-list .product-record-row:not(.product-record-row--managed) {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body .app-frame .product-record-list .product-record-row--managed .product-record-info, body .app-frame .product-record-list .product-record-row--managed .product-record-state {
    grid-column: 2;
  }

  body .app-frame .product-record-list .product-record-row--managed .product-record-state {
    text-align: left;
    justify-self: start;
  }

  body .app-frame .product-record-list .product-record-actions, body .app-frame .product-record-list .product-record-row--managed .product-record-actions {
    grid-area: 1 / 3 / span 2;
  }

  body .app-frame .product-record-list .product-record-row:not(.product-record-row--managed) .product-record-info {
    grid-column: 1;
  }

  body .app-frame .product-record-list .product-record-row:not(.product-record-row--managed) .product-record-state {
    text-align: left;
    grid-area: 2 / 1;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  body .app-frame .product-record-list .product-record-row--managed {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  body .app-frame .product-record-list .product-record-row:not(.product-record-row--managed) {
    grid-template-columns: minmax(0, 1fr);
  }

  body .app-frame .product-record-list .product-record-row--managed .product-record-info, body .app-frame .product-record-list .product-record-row--managed .product-record-state, body .app-frame .product-record-list .product-record-row:not(.product-record-row--managed) .product-record-info, body .app-frame .product-record-list .product-record-row:not(.product-record-row--managed) .product-record-state {
    grid-column: 2;
  }

  body .app-frame .product-record-list .product-record-row:not(.product-record-row--managed) .product-record-info, body .app-frame .product-record-list .product-record-row:not(.product-record-row--managed) .product-record-state {
    grid-column: 1;
  }

  body .app-frame .product-record-list :where(.product-record-row:not(.product-record-row--managed)) .product-record-actions, body .app-frame .product-record-list .product-record-row--managed .product-record-actions {
    flex-wrap: wrap;
    grid-area: auto / 2;
    justify-content: flex-start;
  }

  body .app-frame .purchasing-workspace .supplier-list .supplier-row--managed {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  body .app-frame .purchasing-workspace .supplier-list .supplier-row:not(.supplier-row--managed) {
    grid-template-columns: minmax(0, 1fr);
  }

  body .app-frame .purchasing-workspace .supplier-row--managed > .archive-row-action {
    grid-area: auto / 2;
    justify-self: end;
  }
}

body .app-frame :where(.purchasing-workspace .purchasing-orders > .section-heading, .purchasing-workspace .purchasing-receipts > .section-heading) {
  text-align: left;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  display: flex;
}

body .app-frame :where(.purchasing-workspace .purchasing-orders > .section-heading > div:first-child, .purchasing-workspace .purchasing-receipts > .section-heading > div:first-child) {
  flex: 320px;
  min-width: 0;
}

body .app-frame :where(.purchasing-workspace .purchasing-orders > .section-heading > .inline-actions, .purchasing-workspace .purchasing-receipts > .section-heading > .inline-actions) {
  text-align: left;
  flex: none;
  justify-content: flex-end;
  width: auto;
  margin-left: auto;
}

@media (max-width: 620px) {
  body .app-frame :where(.purchasing-workspace .purchasing-orders > .section-heading, .purchasing-workspace .purchasing-receipts > .section-heading) {
    justify-content: flex-start;
  }

  body .app-frame :where(.purchasing-workspace .purchasing-orders > .section-heading > .inline-actions, .purchasing-workspace .purchasing-receipts > .section-heading > .inline-actions) {
    justify-content: flex-start;
    margin-left: 0;
  }
}

body .app-frame .purchasing-workspace .purchasing-record-row {
  grid-template-columns: minmax(0, 1.5fr) minmax(210px, .85fr);
  align-items: center;
  gap: 10px 20px;
  min-height: 76px;
  padding: 12px 14px;
}

body .app-frame .purchasing-workspace .purchasing-record-row--managed {
  grid-template-columns: 32px minmax(0, 1.5fr) minmax(210px, .85fr);
}

body .app-frame .purchasing-workspace .purchasing-record-row > .bulk-select-checkbox {
  grid-area: 1 / 1;
  align-self: center;
}

body .app-frame .purchasing-workspace .purchasing-record-details {
  grid-column: 1;
  grid-template-columns: minmax(145px, .75fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 4px 18px;
  min-width: 0;
  display: grid;
}

body .app-frame .purchasing-workspace .purchasing-record-row--managed .purchasing-record-details {
  grid-column: 2;
}

body .app-frame .purchasing-workspace .purchasing-record-details > strong {
  overflow-wrap: anywhere;
  grid-area: 1 / 1;
  min-width: 0;
}

body .app-frame .purchasing-workspace .purchasing-order-facts {
  flex-wrap: wrap;
  grid-area: 1 / 2;
  align-items: center;
  gap: 4px 12px;
  min-width: 0;
  display: flex;
}

body .app-frame .purchasing-workspace .purchasing-receipt-row .purchasing-record-details > .muted {
  overflow-wrap: anywhere;
  grid-area: 2 / 1;
  min-width: 0;
  margin: 0;
}

body .app-frame .purchasing-workspace .purchasing-receipt-facts {
  flex-wrap: wrap;
  grid-area: 1 / 2 / span 2;
  align-items: center;
  gap: 4px 12px;
  min-width: 0;
  display: flex;
}

body .app-frame :where(.purchasing-workspace .purchasing-order-facts > span), body .app-frame :where(.purchasing-workspace .purchasing-receipt-facts > span) {
  overflow-wrap: anywhere;
  min-width: 0;
}

body .app-frame .purchasing-workspace .purchasing-record-side {
  grid-column: 2;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
  display: grid;
}

body .app-frame .purchasing-workspace .purchasing-record-row--managed .purchasing-record-side {
  grid-column: 3;
}

body .app-frame .purchasing-workspace .purchasing-record-summary {
  text-align: right;
  grid-column: 1;
  justify-items: end;
  min-width: 0;
}

body .app-frame .purchasing-workspace .purchasing-record-actions {
  flex-wrap: wrap;
  grid-column: 2;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  body .app-frame .purchasing-workspace .purchasing-record-row {
    grid-template-columns: minmax(0, 1fr) minmax(180px, .8fr);
    gap: 10px 14px;
  }

  body .app-frame .purchasing-workspace .purchasing-record-row--managed {
    grid-template-columns: 32px minmax(0, 1fr) minmax(180px, .8fr);
  }

  body .app-frame .purchasing-workspace .purchasing-record-details {
    grid-template-columns: minmax(125px, .75fr) minmax(0, 1.25fr);
    gap: 4px 12px;
  }
}

@media (max-width: 760px) {
  body .app-frame .purchasing-workspace .purchasing-record-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    padding: 12px;
  }

  body .app-frame .purchasing-workspace .purchasing-record-row--managed {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  body .app-frame .purchasing-workspace .purchasing-record-row > .bulk-select-checkbox {
    grid-area: 1 / 1;
    align-self: start;
    margin-top: 1px;
  }

  body .app-frame .purchasing-workspace .purchasing-record-details, body .app-frame .purchasing-workspace .purchasing-record-row--managed .purchasing-record-details {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  body .app-frame .purchasing-workspace .purchasing-record-row--managed .purchasing-record-details {
    grid-column: 2;
  }

  body .app-frame .purchasing-workspace .purchasing-record-details > strong, body .app-frame .purchasing-workspace .purchasing-order-facts, body .app-frame .purchasing-workspace .purchasing-receipt-row .purchasing-record-details > .muted, body .app-frame .purchasing-workspace .purchasing-receipt-facts, body .app-frame .purchasing-workspace .purchasing-receipt-row.purchasing-record-row--managed .purchasing-record-details > strong, body .app-frame .purchasing-workspace .purchasing-receipt-row.purchasing-record-row--managed .purchasing-record-details > .muted, body .app-frame .purchasing-workspace .purchasing-receipt-row.purchasing-record-row--managed .purchasing-receipt-facts {
    grid-area: auto / 1;
  }

  body .app-frame .purchasing-workspace .purchasing-record-side, body .app-frame .purchasing-workspace .purchasing-record-row--managed .purchasing-record-side {
    grid-column: 1;
    justify-content: space-between;
    gap: 8px 12px;
    min-width: 0;
    display: flex;
  }

  body .app-frame .purchasing-workspace .purchasing-record-row--managed .purchasing-record-side {
    grid-column: 2;
  }

  body .app-frame .purchasing-workspace .purchasing-record-summary {
    text-align: left;
    justify-items: start;
  }

  body .app-frame .purchasing-workspace .purchasing-record-actions {
    justify-content: flex-end;
  }

  body .app-frame .purchasing-workspace .purchasing-invoice-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  body .app-frame .purchasing-workspace .purchasing-record-row--managed {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 8px;
  }

  body .app-frame .purchasing-workspace .purchasing-record-row > .bulk-select-checkbox {
    width: 26px;
    height: 26px;
  }

  body .app-frame .purchasing-workspace .purchasing-record-row--managed .purchasing-record-side {
    flex-wrap: wrap;
  }
}

body .app-frame .purchasing-workspace .purchasing-invoice-panel {
  border-top: 1px solid var(--color-border);
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 4px;
  padding-top: 6px;
}

body .app-frame .purchasing-workspace .purchasing-invoice-panel > summary {
  cursor: pointer;
  align-items: center;
  gap: 4px 10px;
  min-height: 32px;
  list-style: none;
  display: flex;
}

body .app-frame .purchasing-workspace .purchasing-invoice-panel > summary::-webkit-details-marker {
  display: none;
}

body .app-frame .purchasing-workspace .purchasing-invoice-panel > summary:after {
  border-right: 1px solid var(--color-muted);
  border-bottom: 1px solid var(--color-muted);
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  transform: rotate(45deg);
}

body .app-frame .purchasing-workspace .purchasing-invoice-panel[open] > summary:after {
  transform: rotate(225deg);
}

body .app-frame .purchasing-workspace .purchasing-invoice-content {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px 16px;
  min-width: 0;
  padding: 8px 0 2px;
  display: flex;
}

body .app-frame .purchasing-workspace .purchasing-invoice-panel p {
  margin: 0;
  font-size: .78rem;
}

body .app-frame .purchasing-workspace .purchasing-invoice-create-form {
  width: min(100%, 460px);
  margin-top: 0;
}

body .app-frame .purchasing-workspace .purchasing-invoice-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  display: flex;
}

body .app-frame .purchasing-workspace .purchasing-invoice-actions > form {
  margin: 0;
  display: flex;
}

@media (max-width: 760px) {
  body .app-frame .purchasing-workspace .purchasing-invoice-content {
    justify-content: stretch;
    display: grid;
  }

  body .app-frame .purchasing-workspace .purchasing-invoice-create-form {
    width: 100%;
  }

  body .app-frame .purchasing-workspace .purchasing-invoice-actions {
    justify-content: flex-start;
  }
}

body .app-frame .purchasing-workspace .purchasing-line-editor, body .app-frame .purchasing-workspace .purchasing-invoice-lines, body .app-frame .purchasing-workspace .purchasing-receive-lines {
  gap: 10px;
  min-width: 0;
  margin: 0;
  display: grid;
}

body .app-frame .purchasing-workspace .purchasing-line-editor-row, body .app-frame .purchasing-workspace .purchasing-receive-lines {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-subtle);
  min-width: 0;
  padding: 12px;
}

body .app-frame .purchasing-workspace .purchasing-line-editor-row legend, body .app-frame .purchasing-workspace .purchasing-receive-lines legend {
  color: var(--color-text-primary);
  padding: 0 6px;
  font-weight: 650;
}

body .app-frame .purchasing-workspace .purchasing-line-editor-row .form-grid-two, body .app-frame :where(.purchasing-workspace .purchasing-line-editor-row > .button) {
  margin-top: 8px;
}

body .app-frame .purchasing-workspace .purchasing-receive-line {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 180px);
  align-items: center;
  gap: 10px;
  display: grid;
}

body .app-frame .purchasing-workspace .purchasing-manufacturer-serials {
  grid-column: 1 / -1;
  gap: 6px;
  min-width: 0;
  display: grid;
}

body .app-frame .sales-return-line {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 180px);
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
  padding: 10px 0;
  display: grid;
}

body .app-frame .sales-return-serials {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 10px);
  grid-column: 1 / -1;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  display: grid;
}

body .app-frame .sales-return-serials__controls {
  grid-template-columns: auto minmax(180px, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: grid;
}

body .app-frame .sales-return-serials__list {
  gap: 4px;
  max-height: 240px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  overflow: auto;
}

body .app-frame .sales-return-serials__list li, body .app-frame .sales-return-serials__list label {
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

body .app-frame .sales-return-serials__list li {
  border-radius: var(--radius-sm, 6px);
  background: var(--color-surface-muted, transparent);
  padding: 5px 7px;
}

body .app-frame .sales-return-serials__list label {
  cursor: pointer;
  flex: 1;
}

body .app-frame .sales-return-serials__list label > span {
  overflow-wrap: anywhere;
  min-width: 0;
  display: grid;
}

body .app-frame .sales-return-serials__list small {
  color: var(--color-text-muted);
}

body .app-frame :where(.purchasing-workspace .purchasing-manufacturer-serials textarea) {
  resize: vertical;
  width: 100%;
  min-width: 0;
  font-family: var(--font-mono, ui-monospace, monospace);
}

body .app-frame .purchasing-workspace .purchasing-receive-line + .purchasing-receive-line {
  border-top: 1px solid var(--color-border);
  padding-top: 8px;
}

@media (max-width: 600px) {
  body .app-frame .purchasing-workspace .purchasing-receive-line {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  body .app-frame .sales-return-line {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  body .app-frame .sales-return-serials__controls {
    grid-template-columns: minmax(0, 1fr);
  }
}

body .app-frame .purchasing-requests-workspace .purchasing-request-cards, body .app-frame .purchasing-requests-workspace .purchasing-request-card {
  gap: 14px;
  min-width: 0;
  display: grid;
}

body .app-frame .purchasing-requests-workspace .purchasing-request-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-subtle);
  padding: 16px;
}

body .app-frame .purchasing-requests-workspace .purchasing-request-heading, body .app-frame .purchasing-requests-workspace .purchasing-quote-heading, body .app-frame .purchasing-requests-workspace .purchasing-request-header-actions {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 14px;
  min-width: 0;
  display: flex;
}

body .app-frame .purchasing-requests-workspace .purchasing-request-heading h3 {
  color: var(--color-text-primary);
  margin: 0;
  font-size: 1rem;
}

body .app-frame .purchasing-requests-workspace .purchasing-request-heading p, body .app-frame .purchasing-requests-workspace .purchasing-quote-card > p {
  margin: 4px 0 0;
}

body .app-frame .purchasing-requests-workspace .purchasing-request-header-actions > form {
  margin: 0;
}

body .app-frame .purchasing-requests-workspace .purchasing-request-lines {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

body .app-frame .purchasing-requests-workspace .purchasing-request-lines > span {
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: .82rem;
}

body .app-frame .purchasing-requests-workspace .purchasing-quote-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: start;
  gap: 10px;
  display: grid;
}

body .app-frame .purchasing-requests-workspace .purchasing-quote-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  gap: 9px;
  min-width: 0;
  padding: 12px;
  display: grid;
}

body .app-frame .purchasing-requests-workspace .purchasing-quote-heading > div {
  gap: 3px;
  min-width: 0;
  display: grid;
}

body .app-frame .purchasing-requests-workspace .purchasing-quote-heading > div:last-child {
  text-align: right;
  justify-items: end;
}

body .app-frame .purchasing-requests-workspace .purchasing-quote-status {
  color: var(--color-text-secondary);
  font-size: .8rem;
}

body .app-frame .purchasing-requests-workspace .purchasing-quote-status.is-expired {
  color: var(--color-danger);
}

body .app-frame .purchasing-requests-workspace .purchasing-quote-lines {
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

body .app-frame .purchasing-requests-workspace .purchasing-quote-lines > li {
  border-top: 1px solid var(--color-border);
  gap: 3px;
  padding-top: 6px;
  font-size: .83rem;
  display: grid;
}

body .app-frame .purchasing-requests-workspace .purchasing-quote-lines > li > span:last-child {
  color: var(--color-text-secondary);
}

body .app-frame .purchasing-requests-workspace .purchasing-quote-entry {
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
}

body .app-frame .purchasing-requests-workspace .purchasing-quote-entry > summary {
  cursor: pointer;
  color: var(--color-accent);
  font-weight: 650;
}

body .app-frame .purchasing-requests-workspace .purchasing-quote-entry[open] > summary {
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  body .app-frame .purchasing-requests-workspace .purchasing-request-card {
    padding: 12px;
  }

  body .app-frame .purchasing-requests-workspace .purchasing-quote-heading {
    align-items: flex-start;
  }
}

body .app-frame .inventory-counts-workspace .inventory-count-create-form {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
  display: grid;
}

body .app-frame .inventory-counts-workspace .inventory-count-create-form > label, body .app-frame .inventory-counts-workspace .inventory-count-filter > label {
  min-width: 0;
}

body .app-frame .inventory-counts-workspace .inventory-count-cards {
  gap: 10px;
  display: grid;
}

body .app-frame .inventory-counts-workspace .inventory-count-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-subtle);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  display: flex;
}

body .app-frame .inventory-counts-workspace .inventory-count-card h3 {
  color: var(--color-text-primary);
  margin: 0;
  font-size: .98rem;
}

body .app-frame .inventory-counts-workspace .inventory-count-card p {
  margin: 4px 0 0;
}

body .app-frame .inventory-count-detail-workspace .inventory-count-summary {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  display: grid;
}

body .app-frame .inventory-count-detail-workspace .inventory-count-summary > div, body .app-frame .inventory-count-detail-workspace .inventory-count-line > div, body .app-frame .inventory-count-detail-workspace .inventory-count-product {
  align-content: center;
  gap: 4px;
  min-width: 0;
  display: grid;
}

body .app-frame .inventory-count-detail-workspace .inventory-count-final-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: flex;
}

body .app-frame .inventory-count-detail-workspace .inventory-count-lines-card .inventory-count-final-actions > form {
  margin: 0;
}

body .app-frame .inventory-count-detail-workspace .inventory-count-safety-note {
  margin-block: 0;
}

body .app-frame .inventory-count-detail-workspace .inventory-count-line-form {
  gap: 12px;
  display: grid;
}

body .app-frame .inventory-count-detail-workspace .inventory-count-lines {
  gap: 8px;
  min-width: 0;
  display: grid;
}

body .app-frame .inventory-count-detail-workspace .inventory-count-line {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-subtle);
  grid-template-columns: minmax(180px, 1.5fr) minmax(100px, .7fr) minmax(150px, 1fr) minmax(100px, .7fr);
  align-items: end;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 10px 12px;
  display: grid;
}

body .app-frame .inventory-count-detail-workspace .inventory-count-line > input[type="hidden"] {
  display: none;
}

body .app-frame .inventory-count-detail-workspace .inventory-count-line label {
  min-width: 0;
}

body .app-frame .inventory-count-detail-workspace .inventory-count-lines-card .inventory-count-lines .inventory-count-line strong {
  overflow-wrap: anywhere;
}

body .app-frame .inventory-count-detail-workspace .inventory-count-line legend {
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

@media (max-width: 760px) {
  body .app-frame .inventory-counts-workspace .inventory-count-create-form {
    grid-template-columns: minmax(0, 1fr);
  }

  body .app-frame .inventory-count-detail-workspace .inventory-count-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 440px) {
  body .app-frame .inventory-count-detail-workspace .inventory-count-line {
    grid-template-columns: minmax(0, 1fr);
  }

  body .app-frame .inventory-count-detail-workspace .inventory-count-final-actions {
    justify-content: flex-start;
  }
}

body .app-frame .replenishment-workspace .replenishment-summary {
  grid-template-columns: minmax(180px, .5fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 18px;
  display: grid;
}

body .app-frame .replenishment-workspace .replenishment-summary > div {
  gap: 4px;
  display: grid;
}

body .app-frame .replenishment-workspace .replenishment-summary p {
  margin: 0;
}

body .app-frame .replenishment-workspace .replenishment-list {
  gap: 10px;
  display: grid;
}

body .app-frame .replenishment-workspace .replenishment-row {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-subtle);
  grid-template-columns: minmax(160px, 1fr) minmax(250px, 1.25fr) minmax(230px, .9fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 14px;
  display: grid;
}

body .app-frame .replenishment-workspace .replenishment-product {
  gap: 4px;
  min-width: 0;
  display: grid;
}

body .app-frame .replenishment-workspace .replenishment-metrics {
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  gap: 8px 14px;
  margin: 0;
  display: grid;
}

body .app-frame .replenishment-workspace .replenishment-metrics > div {
  gap: 2px;
  display: grid;
}

body .app-frame .replenishment-workspace .replenishment-metrics dt {
  color: var(--color-text-muted);
  font-size: .8rem;
}

body .app-frame .replenishment-workspace .replenishment-metrics dd {
  margin: 0;
  font-weight: 650;
}

body .app-frame .replenishment-workspace .replenishment-create-form {
  grid-template-columns: minmax(120px, 1fr) auto;
  align-items: end;
  gap: 8px;
  min-width: 0;
  display: grid;
}

body .app-frame .replenishment-workspace .replenishment-create-form > input[type="hidden"] {
  display: none;
}

body .app-frame .replenishment-workspace .replenishment-create-form label {
  min-width: 0;
}

@media (max-width: 900px) {
  body .app-frame .replenishment-workspace .replenishment-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  body .app-frame .replenishment-workspace .replenishment-create-form {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  body .app-frame .replenishment-workspace .replenishment-summary, body .app-frame .replenishment-workspace .replenishment-row {
    grid-template-columns: minmax(0, 1fr);
  }

  body .app-frame .replenishment-workspace .replenishment-create-form {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr);
  }
}

body .app-frame .inventory-valuation-workspace .inventory-valuation-note {
  gap: 5px;
  display: grid;
}

body .app-frame .inventory-valuation-workspace .inventory-valuation-note p {
  margin: 0;
}

body .app-frame .inventory-valuation-workspace .inventory-valuation-totals {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-block: 16px;
  display: grid;
}

body .app-frame .inventory-valuation-workspace .inventory-valuation-totals > .content-card {
  gap: 4px;
  margin: 0;
  padding: 12px 14px;
  display: grid;
}

body .app-frame .inventory-valuation-workspace .inventory-valuation-totals small {
  color: var(--color-text-muted);
}

body .app-frame .inventory-lots-workspace .inventory-lot-settings, body .app-frame .inventory-lots-workspace .inventory-lot-list {
  gap: 14px;
  display: grid;
}

body .app-frame .inventory-lots-workspace .inventory-lot-settings .section-title, body .app-frame .inventory-lots-workspace .inventory-lot-list .section-title, body .app-frame .inventory-lot-settings .section-title h2, body .app-frame .inventory-lot-list .section-title h2 {
  margin: 0;
}

body .app-frame .inventory-lots-workspace .inventory-lot-filters {
  grid-template-columns: minmax(220px, 1.3fr) minmax(180px, .8fr) auto;
  align-items: end;
}

body .app-frame .inventory-lot-product-list {
  gap: 8px;
  display: grid;
}

body .app-frame .inventory-lot-product-row {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-subtle);
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 10px 12px;
  display: grid;
}

body .app-frame .inventory-lots-workspace .inventory-lot-product-row > div:first-child {
  gap: 3px;
  min-width: 0;
  display: grid;
}

body .app-frame .inventory-lots-workspace .inventory-lot-settings .inventory-lot-product-row .button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: .76rem;
}

body .app-frame .inventory-lot-product-row .status-pill {
  margin: 0;
}

body .app-frame .inventory-lots-workspace .status-pill.status-in_progress {
  white-space: nowrap;
}

body .app-frame .inventory-lots-workspace .table-scroll {
  width: 100%;
}

body .app-frame .inventory-lots-workspace .content-card.inventory-lot-list .table-scroll table td strong, body .app-frame .inventory-lots-workspace .content-card.inventory-lot-list .table-scroll table td small {
  display: block;
}

body .app-frame .purchasing-workspace .purchasing-receive-lot-fields {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 3px;
  display: grid;
}

body .app-frame .purchasing-workspace .purchasing-receive-lot-fields label {
  min-width: 0;
  color: var(--color-text-muted);
  gap: 4px;
  font-size: .74rem;
  display: grid;
}

@media (max-width: 760px) {
  body .app-frame :where(.production-schedule-form) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body .app-frame :where(.production-schedule-form button) {
    grid-column: 1 / -1;
  }

  body .app-frame .inventory-lots-workspace .inventory-lot-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  body .app-frame .inventory-lot-product-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body .app-frame .inventory-lot-product-row > .status-pill {
    grid-row: 2;
    justify-self: start;
  }

  body .app-frame .inventory-lot-product-row > form {
    grid-area: 1 / 2 / span 2;
  }
}

@media (max-width: 520px) {
  body .app-frame :where(.production-schedule-form) {
    grid-template-columns: minmax(0, 1fr);
  }

  body .app-frame :where(.production-schedule-form button) {
    grid-column: auto;
  }

  body .app-frame .purchasing-workspace .purchasing-receive-lot-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* [project]/apps/web/src/app/theme.css [app-client] (css) */
html[data-theme="dark"] {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  --color-ink: #e4eee9;
  --color-muted: #a3b5ad;
  --color-border: #30463e;
  --color-paper: #142720;
  --sidebar-background: #173d2d;
  --color-surface: #192e26;
  --color-primary: #75c6a4;
  --color-primary-hover: #9bddbb;
  --color-accent: #213d31;
  --chart-receipt: #29b69f;
  --chart-payment: #f09a70;
  --shadow-card: 0 10px 28px #0000001f;
  background: #101d18;
}

html[data-theme="dark"] body {
  color: var(--color-ink);
  background: #101d18;
}

html[data-theme="dark"] .app-sidebar {
  background: var(--sidebar-background);
  color: var(--color-ink);
  scrollbar-color: #60796c transparent;
  border-right: 1px solid #293e36;
}

html[data-theme="dark"] .app-brand, html[data-theme="dark"] .nav-link, html[data-theme="dark"] .nav-link:hover, html[data-theme="dark"] .nav-link--active, html[data-theme="dark"] .nav-link--active:hover, html[data-theme="dark"] .nav-link svg, html[data-theme="dark"] .nav-link--active svg, html[data-theme="dark"] .nav-link small, html[data-theme="dark"] .sidebar-footer, html[data-theme="dark"] .topbar-page {
  color: var(--color-ink);
}

html[data-theme="dark"] .app-topbar {
  border-color: var(--color-border);
  background: #142720;
}

html[data-theme="dark"] .account-avatar {
  color: #c7ead5;
  background: #294538;
  border-color: #203a2d;
}

html[data-theme="dark"] .nav-link:hover, html[data-theme="dark"] .icon-button:hover {
  background: #1e4935;
}

html[data-theme="dark"] .nav-link--active, html[data-theme="dark"] .nav-link--active:hover {
  background: #286043;
}

html[data-theme="dark"] .app-content {
  background: #172a23;
}

html[data-theme="dark"] .topbar-workspace {
  color: #adc6b7;
}

.topbar-workspace-icon {
  display: none;
}

html[data-theme="dark"] .icon-button, html[data-theme="dark"] .theme-toggle {
  color: #c3d7cc;
}

html[data-theme="dark"] .skip-link {
  color: #e7f5ed;
  background: #21392f;
}

html[data-theme="dark"] :where(.app-frame) :where(.content-card, .metric, .list-row, .customer-card, .member-list > li, .customer-detail-metric, .crm-metric, .crm-metrics, .summary-card, .module-card, .mobile-record-card, .account-card, .business-dialog, .business-terminal, .chart-card, .calendar-layout, .calendar-agenda, .location-card, .branch-list li, .assistant-voice-panel, .assistant-action-card, .assistant-voice-check, .assistant-response-card, .iiot-health-grid > div) {
  background-color: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-ink);
}

html[data-theme="dark"] :where(.app-frame) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
  color: var(--color-ink);
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  background-color: #10211b;
  border-color: #3a554a;
}

html[data-theme="dark"] :where(.app-frame) input::placeholder, html[data-theme="dark"] :where(.app-frame) textarea::placeholder {
  color: #8ea49a;
  opacity: 1;
}

html[data-theme="dark"] :where(.app-frame) :where(.stacked-form label, .compact-form label, .filter-bar label, .mobile-record-card small, .compact-workspace td small, .mobile-record-details dt, .customer-detail-metric > div > span, .crm-metric :where(div) > span, .account-card p, .terminal-period label, .terminal-currency, .terminal-metric > span, .terminal-metric > small, .flow-day, .calendar-weekday, .calendar-day-number, .calendar-agenda, .assistant-voice-heading span:not(.assistant-voice-mark), .assistant-voice-check p, .assistant-voice-check small, .assistant-action-card :where(form) > p, .assistant-action-field label, .assistant-voice-copy, .assistant-voice-footnote, .assistant-voice-hint, .assistant-speech-controls > span, .iiot-health-grid span) {
  color: var(--color-muted);
}

html[data-theme="dark"] :where(.app-frame) :where(.table-wrap, .finance-metrics, .terminal-metrics) {
  background-color: var(--color-surface);
  border-color: var(--color-border);
}

html[data-theme="dark"] :where(.app-frame) th {
  color: #c4d7cd;
  background: #20372e;
}

html[data-theme="dark"] :where(.app-frame) td, html[data-theme="dark"] :where(.app-frame) tbody tr, html[data-theme="dark"] :where(.app-frame) .chart-legend li, html[data-theme="dark"] :where(.app-frame) .nested-detail, html[data-theme="dark"] :where(.app-frame) .agenda-list li > button, html[data-theme="dark"] :where(.app-frame) .assistant-response-sources {
  border-color: #2d443a;
}

html[data-theme="dark"] :where(.app-frame) tbody tr:hover, html[data-theme="dark"] :where(.app-frame) .empty-state, html[data-theme="dark"] :where(.app-frame) .empty-mini-card, html[data-theme="dark"] :where(.app-frame) .customer-search input, html[data-theme="dark"] :where(.app-frame) .finance-scope, html[data-theme="dark"] :where(.app-frame) .segmented-control, html[data-theme="dark"] :where(.app-frame) .calendar-weekday, html[data-theme="dark"] :where(.app-frame) .calendar-agenda, html[data-theme="dark"] :where(.app-frame) .assistant-response-card, html[data-theme="dark"] :where(.app-frame) .assistant-voice-form textarea, html[data-theme="dark"] :where(.app-frame) .assistant-action-field input, html[data-theme="dark"] :where(.app-frame) .assistant-action-field select, html[data-theme="dark"] :where(.app-frame) .iiot-health-grid > div {
  color: var(--color-ink);
  background-color: #1d342b;
}

html[data-theme="dark"] :where(.app-frame) .button--secondary, html[data-theme="dark"] :where(.app-frame) .icon-button, html[data-theme="dark"] :where(.app-frame) .assistant-dock-trigger, html[data-theme="dark"] :where(.app-frame) .assistant-sound-toggle, html[data-theme="dark"] :where(.app-frame) .assistant-speak-button, html[data-theme="dark"] :where(.app-frame) .assistant-response-sources a {
  color: #c8e6d4;
  background-color: #1e382e;
  border-color: #456454;
}

html[data-theme="dark"] :where(.app-frame) .button--secondary:hover, html[data-theme="dark"] :where(.app-frame) .assistant-dock-trigger:hover, html[data-theme="dark"] :where(.app-frame) .assistant-speak-button:hover {
  background-color: #294b3b;
  border-color: #67967b;
}

html[data-theme="dark"] :where(.app-frame) .workspace-currency-menu > summary {
  color: #c8e6d4;
  background: #1e382e;
  border-color: #456454;
}

html[data-theme="dark"] :where(.app-frame) .workspace-currency-menu > summary:hover, html[data-theme="dark"] :where(.app-frame) .workspace-currency-menu[open] > summary {
  background: #294b3b;
  border-color: #67967b;
}

html[data-theme="dark"] :where(.app-frame) .workspace-currency-panel {
  color: var(--color-ink);
  background: #192e26;
  border-color: #3a554a;
}

html[data-theme="dark"] :where(.app-frame) .workspace-currency-menu .workspace-currency-options button {
  color: var(--color-ink);
  background: #10211b;
  border-color: #3a554a;
}

html[data-theme="dark"] :where(.app-frame) .workspace-currency-menu .workspace-currency-options button:hover, html[data-theme="dark"] :where(.app-frame) .workspace-currency-menu .workspace-currency-options button[aria-pressed="true"] {
  color: #e4eee9;
  background: #286043;
  border-color: #75c6a4;
}

html[data-theme="dark"] :where(.app-frame) .notice {
  color: #f0d9a6;
  background: #3a3020;
  border-color: #655331;
}

html[data-theme="dark"] :where(.app-frame) .notice.iiot-notice-error, html[data-theme="dark"] :where(.app-frame) .assistant-message-failed, html[data-theme="dark"] :where(.app-frame) .assistant-mic-button.is-listening {
  color: #ffd0c8;
  background: #452b29;
  border-color: #7c4742;
}

html[data-theme="dark"] :where(.app-frame) .notice.iiot-notice-success, html[data-theme="dark"] :where(.app-frame) .assistant-user-message, html[data-theme="dark"] :where(.app-frame) .assistant-voice-check p[data-status="ready"] {
  color: #bce4c5;
  background: #203d30;
  border-color: #416c51;
}

html[data-theme="dark"] :where(.app-frame) .finance-scope {
  border-color: #365344;
}

html[data-theme="dark"] :where(.app-frame) .terminal-period input, html[data-theme="dark"] :where(.app-frame) .terminal-currency select, html[data-theme="dark"] :where(.app-frame) .operations-chart-select select {
  color: var(--color-ink);
  background: #10211b;
  border-color: #3a554a;
}

html[data-theme="dark"] :where(.app-frame) .calendar-cell {
  border-color: #2d443a;
}

html[data-theme="dark"] :where(.app-frame) .calendar-cell.is-selected, html[data-theme="dark"] :where(.app-frame) .calendar-cell.outside-month {
  background: #20382e;
}

html[data-theme="dark"] :where(.app-frame) .calendar-event {
  color: #c2e8d0;
  background: #234535;
}

html[data-theme="dark"] :where(.app-frame) .calendar-event.event-cancelled {
  color: #f0c1b8;
  background: #452b29;
}

html[data-theme="dark"] :where(.app-frame) .calendar-event.event-completed {
  color: #cad9f0;
  background: #29384b;
}

html[data-theme="dark"] :where(.app-frame) .calendar-event.event-held {
  color: #f0d9a6;
  background: #433820;
}

html[data-theme="dark"] :where(.app-frame) .donut-chart > circle:first-of-type {
  stroke: #2e443b;
}

html[data-theme="dark"] :where(.app-frame) .donut-total {
  fill: #e4eee9;
}

html[data-theme="dark"] :where(.app-frame) .flow-bar--receipt, html[data-theme="dark"] :where(.app-frame) .cash-flow-swatch--receipt {
  background: var(--chart-receipt);
}

html[data-theme="dark"] :where(.app-frame) .flow-bar--payment, html[data-theme="dark"] :where(.app-frame) .cash-flow-swatch--payment {
  background: var(--chart-payment);
}

@media (max-width: 850px) {
  body .app-frame .compact-workspace .workspace-header > div:first-child {
    flex: 0 auto;
  }

  :where(.app-frame) .workspace-header > .page-actions, :where(.app-frame) .workspace-header > .button-row {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .app-frame .topbar-workspace {
    background: var(--color-surface);
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    border-radius: 8px;
    flex: 0 0 32px;
    place-items: center;
    display: grid;
  }

  .app-frame .topbar-workspace span {
    display: none;
  }

  .app-frame .topbar-workspace-icon {
    display: block;
  }

  .topbar-context {
    flex: auto;
    min-width: 0;
  }

  .topbar-page {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .topbar-account {
    flex: none;
  }

  .topbar-account .assistant-dock-trigger {
    justify-content: center;
    width: 36px;
    min-width: 36px;
    padding: 0;
  }

  .topbar-account .assistant-dock-trigger > span {
    display: none;
  }
}

html[data-theme="dark"] body .app-frame :is(.content-card, .metric, .list-row, .customer-card, .member-list > li, .customer-detail-metric, .crm-metric, .crm-metrics, .summary-card, .module-card, .mobile-record-card, .compact-metric, .terminal-metric, .terminal-metrics, .finance-metrics, .account-card, .business-dialog, .business-terminal, .chart-card, .calendar-layout, .calendar-agenda, .calendar-cell, .location-card, .branch-list li, .assistant-voice-panel, .assistant-action-card, .assistant-voice-check, .assistant-response-card, .iiot-health-grid > div) {
  background-color: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-ink);
}

html[data-theme="dark"] body .app-frame .overview-summaries .summary-card, html[data-theme="dark"] body .app-frame .overview-summaries .summary-card-link {
  background-color: var(--color-surface);
  color: var(--color-ink);
}

html[data-theme="dark"] body .app-frame :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
  color: var(--color-ink);
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  background-color: #10211b;
  border-color: #3a554a;
}

html[data-theme="dark"] body .app-frame .segmented-control [aria-pressed="true"], html[data-theme="dark"] body .app-frame .segmented-control [aria-current="page"] {
  color: #e5f4eb;
  background-color: #2a4b3b;
  outline-color: #547d65;
}

html[data-theme="dark"] body .app-frame :is(.count-badge, .pilot-badge, .status-badge, .status-pill) {
  color: #c2dacf;
  background: #203a30;
  border-color: #3c5b4b;
}

html[data-theme="dark"] body .app-frame :is(.status-badge--active, .status-completed, .status-paid) {
  color: #bce4c5;
  background: #203d30;
  border-color: #416c51;
}

html[data-theme="dark"] body .app-frame :is(.status-in_progress, .status-confirmed) {
  color: #c5d8f1;
  background: #25394d;
  border-color: #425f7f;
}

html[data-theme="dark"] body .app-frame .status-cancelled {
  color: #f0c1b8;
  background: #452b29;
  border-color: #7c4742;
}

html[data-theme="dark"] body .app-frame .data-tabs a[aria-current="page"] {
  color: #d4efdf;
  background: #2a4b3b;
}

html[data-theme="dark"] body .app-frame main strong, html[data-theme="dark"] body .app-frame main dd {
  color: var(--color-ink);
}

html[data-theme="dark"] body .app-frame .chart-legend strong {
  color: #a8dfbf;
}

html[data-theme="dark"] body .app-frame .bar-track {
  background: #2b4338;
}

html[data-theme="dark"] body .app-frame .customer-contact-status {
  color: #bce4c5;
  background: #203d30;
}

html[data-theme="dark"] body .app-frame .customer-contact-status.is-inactive {
  color: #a3b5ad;
  background: #27332d;
}

html[data-theme="dark"] body .app-frame :is(.stacked-form label, .mobile-record-card small, .compact-workspace td small, .mobile-record-details dt, .terminal-metric > span, .terminal-metric > small, .customer-detail-metric > div > span, .crm-metric :where(div) > span, .account-card p, .calendar-weekday, .assistant-voice-copy, .assistant-action-field label, .assistant-voice-footnote, .iiot-health-grid span) {
  color: var(--color-muted);
}

html[data-theme="dark"] body .app-frame :is(.breadcrumbs a, .terminal-hint a, .appointment-detail > .text-link, .assistant-context-link, .assistant-action-status a, .text-link) {
  color: #8ed1aa;
}

/*# sourceMappingURL=_0avot1hiwyv4f._.css.map*/