@font-face {
  font-family: Inter;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Arabic';
  src: url('/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2');
  font-weight: 600 900;
  font-display: swap;
}
:root {
  --canvas: #f5f5f7;
  --surface: #fff;
  --surface-subtle: #fafafa;
  --surface-hover: #f0f0f3;
  --ink: #171717;
  --muted: #71717a;
  --line: #e8e8ec;
  --accent: #f46b45;
  --accent-soft: #fff0e9;
  --accent-ink: #9c361a;
  --on-accent: #29140c;
  --positive: #16a34a;
  --positive-ink: #17723a;
  --positive-soft: #edf9f0;
  --warning: #f59e0b;
  --warning-ink: #8c5c06;
  --warning-soft: #fff7e6;
  --error: #dc2626;
  --error-ink: #b91c1c;
  --error-soft: #fff0f0;
  --feature-bg: #252526;
  --feature-ink: #fff;
  --sidebar-width: 250px;
  --radius: 16px;
  --shadow: 0 4px 20px #17171703;
  --shadow-popover: 0 12px 42px #15152512;
  --chart-sales: #303035;
  font-family: Inter, 'Plex Arabic', sans-serif;
  font-size: 13px;
  color: var(--ink);
  background: var(--canvas);
  color-scheme: light;
}
:root[data-accent='blue'] {
  --accent: #7daaff;
  --accent-soft: #edf3ff;
  --accent-ink: #244a93;
  --on-accent: #12294b;
}
:root[data-accent='green'] {
  --accent: #6dcc9c;
  --accent-soft: #eaf8f0;
  --accent-ink: #1e6644;
  --on-accent: #103e2b;
}
:root[data-theme='dark'] {
  --canvas: #141416;
  --surface: #1e1e21;
  --surface-subtle: #242428;
  --surface-hover: #303036;
  --ink: #f3f3f6;
  --muted: #a4a4b1;
  --line: #34343b;
  --accent-soft: #39271f;
  --accent-ink: #ffb49c;
  --positive-ink: #82daa2;
  --positive-soft: #1d3228;
  --warning-ink: #efc775;
  --warning-soft: #342d1f;
  --error: #ff8e8e;
  --error-ink: #ff8e8e;
  --error-soft: #3d2429;
  --feature-bg: #302d30;
  --feature-ink: #fff;
  --shadow: 0 4px 20px #0000000d;
  --shadow-popover: 0 12px 42px #0004;
  --chart-sales: #dddde8;
  color-scheme: dark;
}
:root[data-theme='dark'][data-accent='blue'] {
  --accent-soft: #233047;
  --accent-ink: #a8c6ff;
}
:root[data-theme='dark'][data-accent='green'] {
  --accent-soft: #20382e;
  --accent-ink: #91ddb6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button,
a,
summary,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  touch-action: manipulation;
}
a {
  color: var(--accent-ink);
}
h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.5;
  letter-spacing: -0.8px;
  font-weight: 650;
}
h2 {
  font-size: 15px;
  line-height: 1.7;
  font-weight: 650;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
small {
  color: var(--muted);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
}
button {
  color: inherit;
}
input,
select {
  color: var(--ink);
}
input::placeholder {
  color: var(--muted);
}
input,
select {
  accent-color: var(--accent);
}
bdi {
  unicode-bidi: isolate;
}
.numeric {
  font-family: Inter, sans-serif;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
.text-muted {
  color: var(--muted);
}
.text-positive {
  color: var(--positive-ink);
}
.text-danger {
  color: var(--error) !important;
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.directional {
  transform: none;
}
[dir='rtl'] .directional {
  transform: scaleX(-1);
}
.skip {
  position: fixed;
  inset-inline-start: 16px;
  top: -70px;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--accent);
  padding: 14px 20px;
  border-radius: 10px;
}
.skip:focus {
  top: 16px;
}
.initial {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-symbol {
  background: var(--accent);
  color: var(--on-accent);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  flex-shrink: 0;
}
.brand-symbol .icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.8;
}
.brand-copy strong {
  font-size: 19px;
  letter-spacing: -0.7px;
  white-space: nowrap;
  display: block;
}
.brand-copy small {
  font-size: 8px;
  letter-spacing: 2.6px;
  font-weight: 500;
  margin-top: 5px;
  display: block;
}
.sidebar {
  position: fixed;
  inset-inline-start: 16px;
  top: 16px;
  bottom: 16px;
  width: var(--sidebar-width);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  z-index: 35;
  display: flex;
  flex-direction: column;
  padding: 28px 17px 16px;
  transition: width 0.22s ease;
}
.sidebar-brand {
  padding: 0 9px 26px;
}
.nav-company {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  padding: 11px 9px;
  border-radius: 12px;
  margin-bottom: 18px;
  min-width: 0;
}
.company-mark,
.mobile-company-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  flex-shrink: 0;
}
.nav-company > div {
  min-width: 0;
  flex: 1;
}
.nav-company strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 126px;
}
.nav-company small {
  font-size: 9px;
  display: block;
  margin-top: 5px;
}
.nav-company .badge {
  font-size: 8px;
  padding: 4px;
}
.nav-company .badge span {
  display: none;
}
.sidebar nav {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.nav-group + .nav-group {
  margin-top: 20px;
}
.nav-group-label {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--muted);
  padding: 4px 14px 13px;
  white-space: nowrap;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  width: 100%;
  padding: 12px 13px;
  text-align: start;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 10px;
  min-height: 44px;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 12px;
  white-space: nowrap;
}
.nav-item:hover {
  background: var(--surface-hover);
  color: var(--ink);
}
.nav-item.active {
  background: var(--ink);
  color: var(--surface);
}
.nav-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-inline-start: auto;
  flex-shrink: 0;
}
.nav-item.active .icon {
  stroke-width: 1.8;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 20px;
}
.workspace-secure {
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  border-radius: 12px;
  padding: 13px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.workspace-secure > .icon {
  color: var(--muted);
  width: 17px;
}
.workspace-secure strong {
  font-size: 10px;
  font-weight: 500;
  display: block;
  line-height: 1.8;
}
.workspace-secure small {
  display: block;
  font-size: 9px;
  margin-top: 3px;
}
.collapse-button {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 10px 13px;
  width: 100%;
  font-size: 11px;
  text-align: start;
  border-radius: 9px;
}
.collapse-button:hover {
  background: var(--surface-hover);
}
.workspace {
  margin-inline-start: calc(var(--sidebar-width) + 40px);
  margin-inline-end: 12px;
  min-width: 0;
  transition: margin 0.22s ease;
}
.topbar {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 25;
}
.topbar-start,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.topbar-start {
  flex-shrink: 1;
}
.topbar-actions {
  flex-shrink: 0;
  gap: 12px;
}
.company-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.company-selector select {
  max-width: 210px;
  min-width: 0;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 4px;
  cursor: pointer;
}
.mobile-company-mark {
  display: none;
}
.topbar-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
  flex-shrink: 0;
}
.topbar-module {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.workspace-search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  padding: 8px 10px;
  font-size: 11px;
}
.workspace-search .icon {
  width: 16px;
  height: 16px;
}
.workspace-search kbd {
  font:
    9px Inter,
    sans-serif;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px;
  margin-inline-start: 14px;
  color: var(--muted);
}
.icon-button {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--surface-hover);
  border-color: var(--line);
  color: var(--ink);
}
.top-popover {
  position: relative;
}
.top-popover > summary {
  list-style: none;
  cursor: pointer;
}
.top-popover > summary::-webkit-details-marker {
  display: none;
}
.notification-dot {
  position: absolute;
  top: 4px;
  inset-inline-end: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--canvas);
}
.profile-summary {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 600;
}
.profile-copy {
  max-width: 130px;
}
.profile-copy strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.profile-copy small {
  display: block;
  font-size: 9px;
  margin-top: 5px;
}
.profile-summary > .icon {
  width: 13px;
  color: var(--muted);
}
.popover-content {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 16px);
  min-width: 250px;
  width: 250px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-popover);
  padding: 8px;
  z-index: 50;
  transform-origin: top;
}
.notification-popover .popover-content {
  width: 330px;
}
.popover-content > button {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  text-align: start;
  font-size: 12px;
}
.popover-content > button:hover {
  background: var(--surface-hover);
}
.popover-content > button .icon {
  width: 17px;
  color: var(--muted);
}
.popover-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 5px;
}
.popover-title h2 {
  font-size: 13px;
}
.notification-row > span {
  background: var(--warning-soft);
  color: var(--warning-ink);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.notification-row > div {
  min-width: 0;
  flex: 1;
}
.notification-row strong {
  font-size: 11px;
  display: block;
  max-width: 230px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notification-row small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.notification-row > .icon {
  width: 14px;
}
.popover-content .popover-footer {
  border-top: 1px solid var(--line);
  border-radius: 0;
  color: var(--accent-ink);
  font-weight: 600;
  justify-content: space-between;
}
.account-heading {
  padding: 13px 11px 17px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 5px;
}
.account-heading strong {
  display: block;
  font-size: 12px;
}
.account-heading small {
  display: block;
  margin-top: 7px;
  font-size: 10px;
}
.popover-separator {
  height: 1px;
  background: var(--line);
  margin: 5px;
}
.sidebar-backdrop {
  display: none;
}
.nav-collapsed {
  --sidebar-width: 84px;
}
.nav-collapsed .sidebar {
  padding-inline: 12px;
}
.nav-collapsed .sidebar-brand {
  padding: 0 8px 26px;
}
.nav-collapsed .brand-copy,
.nav-collapsed .nav-company > div,
.nav-collapsed .nav-company > .badge,
.nav-collapsed .nav-copy,
.nav-collapsed .nav-group-label,
.nav-collapsed .workspace-secure {
  display: none;
}
.nav-collapsed .nav-company {
  justify-content: center;
  padding: 10px 4px;
}
.nav-collapsed .nav-active-dot {
  position: absolute;
  inset-inline-end: 5px;
  top: 8px;
  width: 4px;
  height: 4px;
}
.nav-collapsed .nav-item {
  justify-content: center;
  padding: 13px;
}
.nav-collapsed .collapse-button {
  justify-content: center;
  padding: 12px;
}
.nav-collapsed .nav-group + .nav-group {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
}
main {
  padding: 18px 28px 26px;
  max-width: 1920px;
  margin-inline: auto;
  min-width: 0;
}
.workspace-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 26px;
}
.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: 9px;
  font-weight: 500;
  color: var(--ink);
}
.demo-chip > span {
  height: 5px;
  width: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.demo-chip .icon {
  width: 12px;
  height: 12px;
}
.current-date {
  margin-inline-start: auto;
  font-size: 10px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 12px;
}
.breadcrumb span {
  color: var(--line);
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  margin-top: 5px;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 15px;
  min-height: 40px;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.8;
  white-space: nowrap;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn:hover {
  background: var(--surface-hover);
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn.primary:hover {
  filter: brightness(0.96);
}
.btn.danger {
  background: var(--error-soft);
  color: var(--error);
  border-color: var(--error);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--accent-ink);
  background: transparent;
  border: 0;
  padding: 4px 0;
  font-weight: 500;
  text-align: start;
}
.text-link .icon {
  width: 15px;
  height: 15px;
}
.overview-kicker {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  margin: 0 0 18px;
}
.period-note {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.period-note .icon {
  width: 13px;
  height: 13px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  padding: 21px 21px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.stat-symbol {
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  border-radius: 9px;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.stat-symbol .icon {
  width: 17px;
  height: 17px;
}
.stat-value {
  font-size: 29px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -1px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 15px 0 17px;
  white-space: nowrap;
  min-width: 0;
}
.currency {
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  margin-inline-start: 4px;
}
.stat-bottom {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 9px;
  color: var(--muted);
}
.stat-bottom .icon {
  width: 12px;
  height: 12px;
}
.stat-card.featured {
  background: var(--feature-bg);
  border-color: var(--feature-bg);
  color: var(--feature-ink);
}
.featured .stat-top,
.featured .stat-bottom,
.featured .currency {
  color: #c4c4c9;
}
.featured .stat-symbol {
  background: #ffffff0c;
  border-color: #ffffff20;
  color: #f1ad8d;
}
.featured .stat-bottom .icon {
  color: #b9d1b9;
}
.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(265px, 1fr);
  gap: 22px;
  margin-bottom: 27px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 21px 23px;
}
.panel-head > div {
  min-width: 0;
}
.panel-head p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
  margin-top: 4px;
}
.panel-head > .icon {
  color: var(--muted);
  width: 17px;
  height: 17px;
}
.period-control {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  flex-shrink: 0;
  color: var(--muted);
}
.period-control .icon {
  width: 13px;
  height: 13px;
}
.period-control select {
  font-size: 10px;
  border: 0;
  background: transparent;
  max-width: 135px;
  cursor: pointer;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 23px 15px;
}
.chart-legend > span {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 9px;
}
.legend-button {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  border: 0;
  background: transparent;
  padding: 4px 0;
  color: var(--muted);
}
.legend-button i {
  width: 7px;
  height: 7px;
  background: var(--chart-sales);
  border-radius: 2px;
}
.legend-button.purchase i {
  background: var(--accent);
}
.legend-button[aria-pressed='false'] {
  opacity: 0.45;
  text-decoration: line-through;
}
.chart-frame {
  padding: 0 18px;
  direction: ltr;
}
.analytics-chart {
  display: block;
  width: 100%;
  min-height: 205px;
  overflow: visible;
}
.chart-grid {
  stroke: var(--line);
  stroke-dasharray: 4 5;
  stroke-width: 0.8;
}
.chart-axis {
  fill: var(--muted);
  font-family: Inter, 'Plex Arabic', sans-serif;
  font-size: 9px;
}
.chart-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart-line.sale {
  stroke: var(--chart-sales);
}
.chart-line.purchase {
  stroke: var(--accent-ink);
}
.chart-area {
  fill: var(--accent);
  opacity: 0.08;
}
.chart-target {
  fill: transparent;
  cursor: pointer;
}
.chart-cursor {
  stroke: var(--muted);
  stroke-dasharray: 3 4;
  opacity: 0;
  pointer-events: none;
  stroke-width: 0.6;
}
.chart-dot {
  stroke: var(--surface);
  stroke-width: 2;
  opacity: 0;
  pointer-events: none;
}
.chart-dot.sale {
  fill: var(--chart-sales);
}
.chart-dot.purchase {
  fill: var(--accent-ink);
}
.chart-day.selected .chart-cursor,
.chart-day.selected .chart-dot,
.chart-day:hover .chart-cursor,
.chart-day:hover .chart-dot {
  opacity: 1;
}
.chart-day:focus-visible {
  outline: none;
}
.chart-day:focus-visible .chart-target {
  stroke: var(--accent);
  stroke-dasharray: 3 3;
  stroke-width: 0.8;
  rx: 3;
}
.chart-detail {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 6px 23px 12px;
  font-size: 10px;
  color: var(--muted);
  min-height: 20px;
  line-height: 1.8;
}
.chart-detail .icon {
  width: 13px;
  height: 13px;
}
.chart-footnote {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 12px 23px;
  font-size: 9px;
  color: var(--muted);
}
.chart-footnote details {
  position: relative;
  text-align: end;
}
.chart-footnote summary {
  cursor: pointer;
  color: var(--accent-ink);
}
.daily-data {
  position: absolute;
  inset-inline-end: 0;
  top: 26px;
  width: 290px;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-popover);
  z-index: 10;
}
.daily-data p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.health-ring {
  width: 159px;
  height: 159px;
  position: relative;
  margin: 6px auto 8px;
}
.health-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring-track,
.ring-value {
  fill: none;
  stroke-width: 12;
}
.ring-track {
  stroke: var(--surface-hover);
}
.ring-value {
  stroke: var(--accent);
  stroke-linecap: round;
}
.health-ring > div {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.health-ring strong {
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -1px;
  direction: ltr;
}
.health-ring small {
  font-size: 18px;
  color: var(--muted);
  margin-inline-start: 2px;
}
.health-ring span {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.health-summary {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  padding: 0 15px;
  margin-bottom: 19px;
  line-height: 1.9;
}
.stock-breakdown {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 0 24px 18px;
}
.stock-breakdown > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}
.stock-breakdown strong {
  margin-inline-start: auto;
  color: var(--ink);
  font-weight: 600;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}
.status-dot.positive {
  background: var(--positive);
}
.status-dot.warning {
  background: var(--warning);
}
.status-dot.negative {
  background: var(--error);
}
.health-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-top: 1px solid var(--line);
  width: 100%;
  padding: 14px 23px;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  font-weight: 500;
  border-radius: 0 0 var(--radius) var(--radius);
}
.health-link:hover {
  background: var(--surface-subtle);
}
.health-link .icon {
  width: 15px;
  height: 15px;
}
.quick-section {
  margin-bottom: 26px;
}
.quick-title {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
}
.quick-title h2 {
  font-size: 13px;
}
.quick-title p {
  color: var(--muted);
  font-size: 10px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.quick-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: start;
  min-width: 0;
}
.quick-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
}
.quick-icon .icon {
  width: 17px;
  height: 17px;
}
.quick-card > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.quick-card strong {
  font-size: 10px;
  font-weight: 600;
  display: block;
  line-height: 1.8;
}
.quick-card small {
  font-size: 8px;
  display: block;
  margin-top: 4px;
  line-height: 1.6;
}
.quick-card > .icon {
  width: 13px;
  color: var(--muted);
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 24px;
}
.section-gap {
  margin-top: 24px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  border-radius: 6px;
  padding: 5px 8px;
  background: var(--surface-hover);
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.5;
}
.badge > span {
  height: 4px;
  width: 4px;
  display: block;
  background: currentColor;
  border-radius: 50%;
}
.badge.positive {
  color: var(--positive-ink);
  background: var(--positive-soft);
}
.badge.warning {
  color: var(--warning-ink);
  background: var(--warning-soft);
}
.badge.negative {
  color: var(--error);
  background: var(--error-soft);
}
.badge.accent {
  color: var(--accent-ink);
  background: var(--accent-soft);
}
.alert-list {
  padding: 0 23px 12px;
}
.alert-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: start;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}
.alert-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--warning-soft);
  color: var(--warning-ink);
  width: 31px;
  height: 31px;
  border-radius: 9px;
}
.alert-icon .icon {
  width: 16px;
  height: 16px;
}
.alert-row > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.alert-row strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.8;
}
.alert-row small {
  font-size: 9px;
  display: block;
  margin-top: 3px;
}
.alert-row > .icon {
  width: 13px;
  color: var(--muted);
}
.alert-row:hover strong {
  color: var(--accent-ink);
}
.activity-list {
  list-style: none;
  padding: 0 23px 12px;
}
.activity-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.activity-symbol {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--surface-hover);
  color: var(--muted);
  flex-shrink: 0;
}
.activity-symbol .icon {
  width: 15px;
  height: 15px;
}
.activity-list strong {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.8;
  display: block;
}
.activity-list small {
  font-size: 9px;
  display: block;
  margin-top: 3px;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding: 21px 0 4px;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.8;
}
.footer-divider {
  margin-inline: 10px;
  color: var(--line);
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 23px 19px;
  flex-wrap: wrap;
}
.search-input {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 37px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  padding: 0 11px;
  max-width: 290px;
  flex: 1;
  min-width: 160px;
  color: var(--muted);
}
.search-input .icon {
  width: 16px;
  height: 16px;
}
.search-input input {
  padding: 10px 0;
  border: 0;
  background: transparent;
  width: 100%;
  outline: none;
  font-size: 10px;
  min-width: 0;
}
.search-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.table-filters {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.select-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.select-wrap .icon {
  width: 14px;
  height: 14px;
}
.select-wrap select {
  font-size: 10px;
  background: transparent;
  border: 0;
  max-width: 150px;
  cursor: pointer;
}
.date-filter {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 9px;
  color: var(--muted);
}
.date-filter input {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 10px;
  width: 130px;
  direction: ltr;
}
.table-scroll {
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  max-width: 100%;
  max-height: 560px;
  position: relative;
}
.table-scroll:focus-visible {
  outline-offset: -3px;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: start;
  font-size: 11px;
  white-space: nowrap;
}
th {
  text-align: start;
  color: var(--muted);
  background: var(--surface-subtle);
  font-weight: 400;
  font-size: 9px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
}
th button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  padding: 0;
}
th button .icon {
  width: 11px;
  height: 11px;
  opacity: 0.5;
}
th[aria-sort] button {
  color: var(--ink);
  font-weight: 600;
}
th[aria-sort] .icon {
  color: var(--accent-ink);
  opacity: 1;
}
td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--ink);
  max-width: 440px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover td {
  background: var(--surface-subtle);
}
td.align-number,
th.align-number {
  text-align: end;
}
.align-number {
  font-variant-numeric: tabular-nums;
}
.cell-main {
  display: inline-block;
  vertical-align: middle;
  font-weight: 500;
  line-height: 1.8;
}
.cell-main small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  margin-top: 4px;
}
.sku {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.document-icon,
.product-avatar {
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-end: 10px;
  vertical-align: middle;
  background: var(--surface-subtle);
  color: var(--muted);
}
.document-icon .icon,
.product-avatar .icon {
  width: 15px;
  height: 15px;
}
.document-icon.sale {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-ink);
}
.document-number {
  font-size: 11px;
}
.row-action {
  height: 28px;
  width: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  display: inline-grid;
  place-items: center;
  color: var(--muted);
}
.row-action .icon {
  height: 13px;
  width: 13px;
}
.row-action:hover {
  color: var(--accent-ink);
  background: var(--accent-soft);
}
.table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 23px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  min-height: 56px;
}
.table-pagination > div {
  display: flex;
  gap: 9px;
  align-items: center;
}
.table-pagination .icon-button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.table-pagination .icon {
  width: 12px;
  height: 12px;
}
.page-prev .icon {
  transform: scaleX(-1);
}
[dir='rtl'] .page-prev .icon {
  transform: none;
}
[dir='rtl'] .page-next .icon {
  transform: scaleX(-1);
}
.page-size {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-inline-end: 8px;
}
.page-size select {
  font-size: 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  padding: 4px;
  max-width: 50px;
}
.page-number {
  white-space: nowrap;
}
.ingredient-chips {
  display: flex;
  align-items: start;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 380px;
}
.ingredient-chips > span {
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 9px;
  white-space: normal;
  line-height: 1.8;
}
.person-avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  margin-inline-end: 10px;
}
.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px 24px;
  text-align: center;
  white-space: normal;
  width: 100%;
  min-height: 180px;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--surface-hover);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 13px;
}
.empty-icon .icon {
  width: 20px;
  height: 20px;
}
.empty-state h3 {
  font-size: 12px;
  margin-bottom: 7px;
}
.empty-state p {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.9;
  max-width: 340px;
}
.empty-action {
  text-align: center;
  padding: 0 24px 28px;
}
.alert-list .empty-state,
.popover-content .empty-state {
  min-height: 170px;
  padding-inline: 10px;
}
.activity-list .empty-state {
  min-height: 170px;
  padding-inline: 10px;
}
.error-panel {
  padding: 25px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}
.boot-shell {
  padding: 45px;
  max-width: 1200px;
  margin: auto;
}
.boot-shell > .brand {
  margin-bottom: 40px;
}
.skeleton {
  background: var(--surface-hover);
  border-radius: var(--radius);
}
.sk-title {
  height: 40px;
  width: 40%;
  margin-bottom: 25px;
}
.skeleton-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.sk-card {
  height: 145px;
}
.sk-chart {
  height: 330px;
  margin-bottom: 24px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.definition-list {
  padding: 0 23px 22px;
  margin: 0;
}
.definition-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.definition-list > div:last-child {
  border-bottom: 0;
}
.definition-list dt {
  color: var(--muted);
  flex-shrink: 0;
}
.definition-list dd {
  margin: 0;
  text-align: end;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.preferences-form {
  padding: 0 23px 23px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  align-items: center;
}
.preferences-form label {
  font-size: 11px;
  color: var(--muted);
}
.preferences-form select {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 11px;
  max-width: 100%;
  min-width: 0;
}
.readiness-panel {
  grid-column: 1/-1;
}
.readiness-panel ul {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0 23px 20px;
  flex-wrap: wrap;
}
.readiness-panel li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.readiness-panel li .icon {
  width: 16px;
  height: 16px;
  color: var(--positive-ink);
}
.readiness-panel p {
  font-size: 10px;
  padding: 17px 23px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 2;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  max-height: 90dvh;
  width: min(760px, calc(100% - 32px));
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 24px 90px #1112;
  overflow: auto;
}
dialog::backdrop {
  background: #17171f66;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding: 24px 27px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 4;
}
.dialog-eyebrow {
  font-size: 9px;
  color: var(--accent-ink);
  display: block;
  margin-bottom: 8px;
}
.dialog-head h2 {
  font-size: 20px;
  line-height: 1.7;
  letter-spacing: -0.4px;
}
.dialog-head p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 7px;
}
.dialog-body {
  padding: 25px 27px;
}
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 27px;
  border-top: 1px solid var(--line);
  background: var(--surface-subtle);
  position: sticky;
  bottom: 0;
  z-index: 3;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 19px;
  min-width: 0;
}
.field label {
  font-size: 11px;
  font-weight: 500;
}
.required-mark {
  color: var(--accent-ink);
  font-size: 10px;
}
.field input,
.field select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px 12px;
  font-size: 12px;
  width: 100%;
  min-width: 0;
  min-height: 41px;
}
.field input:focus,
.field select:focus {
  border-color: var(--accent);
}
.field input:user-invalid {
  border-color: var(--error);
}
.field small {
  font-size: 10px;
  line-height: 1.9;
}
.form-error {
  border-radius: 9px;
  border: 1px solid var(--error);
  background: var(--error-soft);
  color: var(--error);
  font-size: 11px;
  line-height: 1.9;
  padding: 12px;
  margin-bottom: 20px;
}
.form-error:empty {
  display: none;
}
.notice {
  display: flex;
  align-items: start;
  gap: 9px;
  padding: 14px 15px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 12px;
}
.notice > .icon {
  width: 16px;
  height: 16px;
  color: var(--accent-ink);
  margin-top: 2px;
}
.line-editor {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 17px;
  margin: 5px 0 20px;
}
.line-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.line-editor-heading h3 {
  font-size: 11px;
}
.line-editor-heading > span {
  font-size: 10px;
  color: var(--muted);
}
.line-row {
  display: grid;
  grid-template-columns: minmax(130px, 2fr) repeat(3, minmax(70px, 1fr)) 28px;
  gap: 10px;
  align-items: end;
}
.line-row.recipe {
  grid-template-columns: 2fr 1fr 28px;
}
.line-row .field {
  margin-bottom: 12px;
}
.line-row .field label {
  font-size: 10px;
}
.line-row input,
.line-row select {
  font-size: 11px;
  padding: 9px 8px;
}
.line-row .remove-line {
  margin-bottom: 16px;
  color: var(--error);
  width: 28px;
  height: 30px;
}
.invoice-estimate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 17px 0;
  margin-bottom: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.invoice-estimate strong {
  font-size: 23px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.6px;
}
.button-spinner {
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.detail-drawer {
  height: calc(100dvh - 24px);
  max-height: calc(100dvh - 24px);
  width: min(640px, calc(100% - 24px));
  margin: 12px;
  margin-inline-start: auto;
  position: fixed;
  inset: 0;
  display: none;
  border-radius: 17px;
}
.detail-drawer[open] {
  display: flex;
  flex-direction: column;
}
.detail-drawer.invoice-drawer {
  width: min(900px, calc(100% - 24px));
}
.detail-drawer .dialog-body {
  flex: 1;
}
.detail-object {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 0 25px;
}
.detail-object > .icon {
  width: 42px;
  height: 42px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  padding: 10px;
  border-radius: 12px;
}
.detail-object h3 {
  font-size: 20px;
  line-height: 1.8;
}
.detail-drawer .definition-list {
  padding-inline: 0;
}
.document-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.document-brand .icon {
  color: var(--accent-ink);
  width: 27px;
  height: 27px;
}
.document-brand strong {
  font-size: 16px;
}
.document-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.document-title h3 {
  font-size: 20px;
}
.document-info {
  padding: 0 0 20px;
}
.document-info > div {
  font-size: 10px;
  padding: 10px 0;
}
.document-totals {
  max-width: 320px;
  margin: 25px 0;
  margin-inline-start: auto;
  font-size: 11px;
}
.document-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}
.document-totals dt {
  color: var(--muted);
}
.document-totals dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.document-totals .grand-total {
  border-top: 1px solid var(--line);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 9px;
  padding-top: 17px;
}
.document-totals .grand-total dt {
  color: var(--ink);
}
.document-disclaimer {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.9;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.search-dialog {
  width: min(640px, calc(100% - 32px));
}
.search-dialog .dialog-head {
  padding-block: 18px;
  align-items: center;
}
.search-dialog .dialog-head h2 {
  font-size: 16px;
}
.global-search-input {
  max-width: none;
  width: 100%;
}
.global-search-input input {
  font-size: 13px;
  padding-block: 14px;
}
.search-help {
  color: var(--muted);
  font-size: 10px;
  margin: 13px 0 18px;
}
.search-result {
  display: flex;
  width: 100%;
  align-items: center;
  text-align: start;
  gap: 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  padding: 12px 10px;
}
.search-result:hover {
  background: var(--surface-hover);
}
.search-result > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.search-result strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result small {
  font-size: 10px;
  display: block;
  margin-top: 5px;
}
.search-result > .icon {
  height: 14px;
  width: 14px;
  color: var(--muted);
}
.search-result-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--surface-hover);
  border-radius: 9px;
  color: var(--muted);
}
#toast {
  position: fixed;
  inset-inline-end: 28px;
  bottom: 25px;
  z-index: 100;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-popover);
  border-radius: 12px;
  max-width: calc(100% - 32px);
  font-size: 12px;
}
#toast.visible {
  display: flex;
}
#toast > .icon {
  width: 17px;
  color: var(--accent);
}
#toast.error {
  background: var(--error-soft);
  color: var(--error);
  border-color: var(--error);
}
#toast.error > .icon {
  color: var(--error);
}
.toast-close {
  background: transparent;
  border: 0;
  padding: 0;
  display: flex;
  color: inherit;
  margin-inline-start: 10px;
}
.toast-close .icon {
  height: 14px;
  width: 14px;
}
.auth-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  padding: 20px;
  gap: 20px;
}
.auth-story {
  border-radius: 24px;
  background: var(--feature-bg);
  color: var(--feature-ink);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
  position: relative;
}
.auth-story .brand-copy small {
  color: #b7b7be;
}
.auth-story .brand-copy strong {
  font-size: 21px;
}
.auth-story-copy {
  padding-top: 50px;
  max-width: 600px;
}
.auth-eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #d0aaa0;
}
.auth-story h1 {
  font-size: 42px;
  line-height: 1.5;
  letter-spacing: -1.2px;
  margin: 20px 0;
  max-width: 500px;
}
.auth-story-copy > p {
  color: #bdbdc5;
  font-size: 13px;
  line-height: 2;
  max-width: 460px;
}
.auth-features {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 28px 0;
  color: #d0d0d4;
  font-size: 10px;
}
.auth-features span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.auth-features .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.auth-copyright {
  color: #a3a3ab;
  font-size: 9px;
  letter-spacing: 1.4px;
  margin-top: 25px;
}
.auth-illustration {
  padding: 20px 25px 10px;
  border: 1px solid #ffffff16;
  background: #ffffff05;
  border-radius: 16px;
  transform: rotate(-3deg);
  margin: 35px 0 10px;
  direction: ltr;
  max-width: 430px;
}
.illustration-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  color: #bbb;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
}
.illustration-top > .icon {
  color: var(--accent);
  width: 15px;
  height: 15px;
}
.illustration-top > span {
  flex: 1;
}
.illustration-top > i {
  background: #777;
  height: 4px;
  width: 4px;
  border-radius: 50%;
}
.illustration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.illustration-grid > span {
  height: 45px;
  border: 1px solid #ffffff10;
  border-radius: 6px;
  background: #ffffff04;
}
.auth-illustration svg:not(.icon) {
  display: block;
  width: 100%;
  height: 110px;
  margin-top: 12px;
  overflow: visible;
}
.auth-illustration path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}
.auth-illustration path + path {
  stroke: #85858c;
  stroke-width: 1;
  opacity: 0.7;
}
.auth-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  position: relative;
  max-width: 550px;
  width: 100%;
  margin: auto;
}
.auth-tools {
  position: absolute;
  inset-inline-end: 32px;
  top: 0;
  display: flex;
  gap: 7px;
}
.auth-form {
  padding-block: 60px;
}
.auth-welcome {
  font-size: 11px;
  color: var(--accent-ink);
}
.auth-form h2 {
  font-size: 30px;
  margin: 15px 0;
  line-height: 1.5;
  letter-spacing: -0.7px;
}
.auth-form > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
  margin-bottom: 24px;
}
.auth-form .btn {
  width: 100%;
  font-size: 12px;
  padding: 12px 16px;
}
.auth-divider {
  display: flex;
  gap: 13px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  margin: 28px 0 18px;
}
.auth-divider:before,
.auth-divider:after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1;
}
.auth-form .auth-note {
  font-size: 10px;
  line-height: 2;
  margin: 17px 0 30px;
}
.auth-security {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.9;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.auth-security .icon {
  width: 14px;
  height: 14px;
}
.onboarding {
  max-width: 700px;
  margin: auto;
  padding: 50px 25px;
  min-height: 100dvh;
}
.onboarding-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 40px;
  text-align: center;
  margin-top: 70px;
}
.onboarding-card > .empty-icon {
  margin-inline: auto;
}
.onboarding-card p {
  margin: 20px 0 30px;
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
}
.onboarding-card .btn {
  margin: 5px;
}
#print-area {
  display: none;
}
@media (min-width: 1650px) {
  .topbar {
    padding-inline: 40px;
  }
  main {
    padding-inline: 40px;
  }
  .stat-card {
    padding: 25px;
  }
  .stat-value {
    font-size: 34px;
  }
  .analytics-chart {
    min-height: 260px;
  }
  .health-ring {
    width: 175px;
    height: 175px;
  }
  .stat-top {
    font-size: 12px;
  }
  .quick-card {
    padding: 18px;
  }
}
@media (max-width: 1350px) {
  .workspace-search span,
  .workspace-search kbd {
    display: none;
  }
  .workspace-search {
    padding: 8px;
    min-height: 34px;
    border-color: transparent;
    background: transparent;
  }
  .workspace-search .icon {
    width: 18px;
    height: 18px;
  }
  .topbar-actions {
    gap: 8px;
  }
  .profile-copy {
    max-width: 100px;
  }
  .company-selector select {
    max-width: 170px;
  }
  .stat-value {
    font-size: 25px;
  }
  .stat-card {
    padding: 19px 16px;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat-bottom {
    font-size: 8px;
  }
  .quick-card {
    padding: 13px 11px;
    gap: 8px;
  }
  .quick-icon {
    width: 29px;
    height: 29px;
  }
  .quick-card > .icon {
    display: none;
  }
  .analytics-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(245px, 1fr);
  }
}
@media (max-width: 1100px) {
  :root {
    --sidebar-width: 220px;
  }
  .sidebar {
    padding-inline: 13px;
  }
  .sidebar-brand {
    padding-inline: 5px;
  }
  .brand-copy strong {
    font-size: 17px;
  }
  .nav-item {
    font-size: 11px;
    padding-inline: 11px;
  }
  .nav-company > .badge {
    display: none;
  }
  .nav-company strong {
    max-width: 135px;
  }
  .topbar {
    padding-inline: 22px;
  }
  .topbar-start {
    gap: 8px;
  }
  .topbar-start > .topbar-divider,
  .topbar-module {
    display: none;
  }
  .profile-copy {
    display: none;
  }
  .topbar-actions {
    gap: 6px;
  }
  main {
    padding-inline: 22px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-value {
    font-size: 23px;
    gap: 3px;
  }
  .stat-card {
    padding: 17px 13px;
  }
  .stat-symbol {
    width: 26px;
    height: 26px;
  }
  .stat-top {
    font-size: 9px;
  }
  .stat-top .icon {
    width: 15px;
    height: 15px;
  }
  .analytics-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(220px, 1fr);
    gap: 16px;
  }
  .panel-head {
    padding: 19px 18px;
  }
  .panel-head h2 {
    font-size: 13px;
  }
  .period-control .icon {
    display: none;
  }
  .period-control {
    padding: 7px;
  }
  .chart-legend {
    padding-inline: 18px;
  }
  .chart-frame {
    padding-inline: 10px;
  }
  .health-ring {
    width: 140px;
    height: 140px;
    margin-top: 12px;
  }
  .health-summary {
    font-size: 9px;
  }
  .stock-breakdown {
    padding-inline: 18px;
  }
  .health-link {
    padding-inline: 18px;
  }
  .quick-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quick-card {
    padding: 16px;
  }
  .quick-card strong {
    font-size: 11px;
  }
  .quick-card small {
    font-size: 9px;
  }
  .bottom-grid {
    gap: 16px;
  }
  .alert-list,
  .activity-list {
    padding-inline: 18px;
  }
  .alert-row .badge {
    font-size: 8px;
  }
  .table-toolbar {
    padding-inline: 18px;
  }
  th,
  td {
    padding-inline: 18px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .readiness-panel {
    grid-column: auto;
  }
  .auth-story {
    padding: 35px;
  }
  .auth-story h1 {
    font-size: 34px;
  }
  .auth-main {
    padding: 30px;
  }
  .auth-features {
    gap: 12px;
  }
}
@media (max-width: 950px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-card {
    padding: 20px;
  }
  .stat-value {
    font-size: 28px;
  }
  .stat-top {
    font-size: 11px;
  }
  .stat-bottom {
    font-size: 9px;
  }
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .health-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .health-panel > .panel-head {
    grid-column: 1/-1;
  }
  .health-ring {
    grid-column: 1;
    grid-row: 2/4;
    margin: 0 auto 20px;
    width: 145px;
    height: 145px;
  }
  .health-summary {
    grid-column: 2;
    align-self: end;
    text-align: start;
    margin: 0 0 15px;
    padding: 0 18px 0;
  }
  .stock-breakdown {
    grid-column: 2;
  }
  .health-link {
    grid-column: 1/-1;
  }
  .analytics-chart {
    min-height: 215px;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: start;
  }
  .heading-actions {
    gap: 7px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .heading-actions .btn {
    padding: 9px 10px;
    font-size: 10px;
  }
  .heading-actions .btn .icon {
    width: 14px;
    height: 14px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .current-date {
    font-size: 9px;
  }
  .overview-kicker {
    font-size: 10px;
  }
  .auth-layout {
    grid-template-columns: 1fr 1fr;
  }
  .auth-story h1 {
    font-size: 30px;
  }
  .auth-story {
    padding: 28px;
  }
  .auth-illustration {
    padding: 15px;
  }
  .auth-main {
    padding: 23px;
  }
  .auth-form h2 {
    font-size: 25px;
  }
  .auth-tools {
    inset-inline-end: 15px;
  }
  .auth-story-copy {
    padding-top: 30px;
  }
  .table-toolbar {
    gap: 10px;
  }
  .table-filters {
    gap: 7px;
  }
  .table-pagination {
    flex-wrap: wrap;
    gap: 10px;
    padding-inline: 18px;
  }
  .page-size > span {
    display: none;
  }
  .workspace-footer {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }
  .quick-title p {
    font-size: 9px;
  }
}
@media (max-width: 760px) {
  body,
  .nav-collapsed {
    --sidebar-width: 70px;
  }
  .sidebar,
  .nav-collapsed .sidebar {
    top: 12px;
    bottom: 12px;
    inset-inline-start: 12px;
    border-radius: 17px;
    padding: 23px 9px 12px;
    width: 70px;
  }
  .sidebar-brand,
  .nav-collapsed .sidebar-brand {
    padding: 0 4px 22px;
  }
  .brand-symbol {
    width: 40px;
    height: 40px;
  }
  .sidebar .brand-copy,
  .sidebar .nav-company,
  .sidebar .nav-copy,
  .sidebar .nav-group-label,
  .sidebar .workspace-secure {
    display: none;
  }
  .sidebar .nav-item {
    justify-content: center;
    padding: 13px 0;
  }
  .sidebar .nav-active-dot {
    position: absolute;
    top: 7px;
    inset-inline-end: 5px;
    width: 4px;
    height: 4px;
  }
  .sidebar .nav-group + .nav-group {
    border-top: 1px solid var(--line);
    padding-top: 17px;
    margin-top: 18px;
  }
  .sidebar .collapse-button {
    justify-content: center;
    padding-inline: 0;
  }
  .workspace {
    margin-inline-start: 96px;
    margin-inline-end: 6px;
  }
  .topbar {
    padding: 15px 18px;
    min-height: 82px;
    gap: 8px;
  }
  .topbar-actions {
    gap: 5px;
  }
  .topbar-actions > .topbar-divider {
    display: none;
  }
  .profile-summary > .icon {
    display: none;
  }
  .avatar {
    width: 31px;
    height: 31px;
  }
  .company-selector select {
    max-width: 160px;
    font-size: 11px;
  }
  .topbar .icon-button {
    width: 29px;
    height: 31px;
  }
  .topbar .icon {
    width: 17px;
    height: 17px;
  }
  .workspace-search {
    padding: 7px;
  }
  .workspace-search .icon {
    width: 17px;
    height: 17px;
  }
  main {
    padding: 15px 18px 24px;
  }
  .workspace-status {
    flex-wrap: wrap;
    margin-bottom: 22px;
    gap: 7px;
    font-size: 9px;
  }
  .current-date {
    display: none;
  }
  .page-heading {
    flex-direction: column;
    gap: 17px;
    margin-bottom: 18px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .heading-actions .btn {
    padding: 9px 13px;
    font-size: 11px;
  }
  .breadcrumb {
    font-size: 9px;
  }
  .overview-kicker {
    line-height: 1.9;
  }
  .overview-kicker > span:first-child {
    max-width: 65%;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 18px;
  }
  .stat-value {
    font-size: 27px;
  }
  .quick-grid {
    gap: 12px;
  }
  .quick-title {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }
  .quick-title p {
    font-size: 10px;
  }
  .analytics-chart {
    min-height: 180px;
  }
  .popover-content {
    position: fixed;
    top: 75px;
    inset-inline-end: 16px;
  }
  .notification-popover .popover-content {
    width: min(330px, calc(100vw - 32px));
  }
  .mobile-nav-open .sidebar {
    width: 250px;
    box-shadow: 0 20px 80px #0003;
    z-index: 60;
  }
  .mobile-nav-open .sidebar .brand-copy,
  .mobile-nav-open .sidebar .nav-company,
  .mobile-nav-open .sidebar .nav-copy,
  .mobile-nav-open .sidebar .nav-group-label,
  .mobile-nav-open .sidebar .workspace-secure {
    display: revert;
  }
  .mobile-nav-open .sidebar .nav-company {
    display: flex;
    padding: 12px;
    margin-top: 5px;
  }
  .mobile-nav-open .sidebar .nav-company > div {
    display: block;
  }
  .mobile-nav-open .sidebar .nav-item {
    justify-content: start;
    padding-inline: 14px;
    font-size: 12px;
  }
  .mobile-nav-open .sidebar .nav-active-dot {
    position: static;
    margin-inline-start: auto;
    width: 6px;
    height: 6px;
  }
  .mobile-nav-open .sidebar .nav-group + .nav-group {
    border-top: 0;
    padding-top: 0;
  }
  .mobile-nav-open .sidebar .workspace-secure {
    display: flex;
  }
  .mobile-nav-open .sidebar .collapse-button {
    justify-content: start;
    padding-inline: 14px;
  }
  .mobile-nav-open .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #14141c55;
    border: 0;
    z-index: 55;
    backdrop-filter: blur(2px);
  }
  .mobile-nav-open .sidebar .sidebar-brand {
    padding-inline: 10px;
  }
  .mobile-nav-open .sidebar .nav-group-label {
    display: block;
  }
  .mobile-nav-open .sidebar .brand-symbol {
    width: 42px;
    height: 42px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 14px;
  }
  .auth-story {
    min-height: 300px;
    padding: 27px;
  }
  .auth-story h1 {
    font-size: 32px;
    max-width: 500px;
    margin: 17px 0 10px;
  }
  .auth-story-copy > p {
    font-size: 12px;
    max-width: 500px;
  }
  .auth-illustration {
    display: none;
  }
  .auth-story-copy {
    padding-top: 35px;
  }
  .auth-features {
    margin-bottom: 0;
  }
  .auth-copyright {
    font-size: 8px;
    margin-top: 20px;
  }
  .auth-main {
    max-width: 500px;
    padding: 20px 27px;
  }
  .auth-form {
    padding-block: 35px;
  }
  .auth-tools {
    top: 0;
  }
  .auth-story .brand-copy strong {
    font-size: 19px;
  }
}
@media (max-width: 520px) {
  body,
  .nav-collapsed {
    --sidebar-width: 56px;
  }
  .sidebar,
  .nav-collapsed .sidebar {
    width: 56px;
    inset-inline-start: 8px;
    top: 8px;
    bottom: 8px;
    padding: 17px 6px 10px;
    border-radius: 15px;
  }
  .sidebar-brand,
  .nav-collapsed .sidebar-brand {
    padding: 0 0 20px;
  }
  .sidebar .brand-symbol {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
  .sidebar .brand-symbol .icon {
    width: 22px;
  }
  .sidebar .nav-item {
    min-height: 42px;
  }
  .sidebar .nav-item .icon {
    width: 19px;
    height: 19px;
  }
  .sidebar .nav-active-dot {
    inset-inline-end: 1px;
    top: 5px;
  }
  .sidebar-foot {
    padding-top: 12px;
  }
  .workspace {
    margin-inline-start: 76px;
    margin-inline-end: 3px;
  }
  .topbar {
    padding: 9px 12px;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 98px;
  }
  .topbar-start {
    width: 100%;
  }
  .company-selector {
    width: 100%;
  }
  .company-selector select {
    width: 100%;
    max-width: 100%;
    font-size: 11px;
  }
  .topbar-actions {
    width: 100%;
    justify-content: space-between;
    gap: 5px;
  }
  .topbar .icon-button {
    width: 28px;
    height: 29px;
  }
  .topbar .workspace-search {
    padding: 5px;
  }
  .avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
  main {
    padding: 13px 12px 20px;
  }
  .workspace-status {
    font-size: 8px;
    gap: 6px;
    line-height: 1.7;
    margin-bottom: 18px;
  }
  .demo-chip {
    font-size: 8px;
    padding: 4px 7px;
  }
  .page-heading h1 {
    font-size: 24px;
    letter-spacing: -0.4px;
  }
  .page-heading p {
    font-size: 10px;
    line-height: 1.9;
  }
  .heading-actions {
    width: 100%;
    gap: 7px;
    flex-wrap: wrap;
  }
  .heading-actions .btn {
    font-size: 10px;
    padding: 8px 10px;
    min-height: 36px;
    flex: 1;
    white-space: normal;
  }
  .heading-actions .btn .icon {
    width: 13px;
    height: 13px;
  }
  .overview-kicker {
    font-size: 9px;
    flex-direction: column;
    align-items: start;
    gap: 6px;
    margin-bottom: 13px;
  }
  .overview-kicker > span:first-child {
    max-width: 100%;
  }
  .period-note {
    font-size: 8px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 19px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-top {
    font-size: 11px;
  }
  .stat-value {
    font-size: 29px;
    margin: 10px 0 12px;
  }
  .stat-bottom {
    font-size: 9px;
  }
  .analytics-grid {
    margin-bottom: 20px;
  }
  .panel-head {
    padding: 17px 14px;
    gap: 9px;
    align-items: start;
    flex-wrap: wrap;
  }
  .panel-head h2 {
    font-size: 13px;
  }
  .panel-head p {
    font-size: 9px;
    line-height: 1.9;
  }
  .period-control {
    margin-inline-start: auto;
    font-size: 9px;
    padding: 6px;
  }
  .period-control select {
    font-size: 9px;
    max-width: 100px;
  }
  .chart-legend {
    padding-inline: 14px;
    font-size: 9px;
    gap: 13px;
  }
  .legend-button {
    font-size: 9px;
  }
  .chart-frame {
    padding-inline: 4px;
  }
  .analytics-chart {
    min-height: 140px;
  }
  .chart-detail {
    margin-inline: 14px;
    font-size: 9px;
    align-items: start;
    gap: 6px;
    line-height: 2;
  }
  .chart-detail .icon {
    margin-top: 3px;
  }
  .chart-footnote {
    padding: 11px 14px;
    gap: 9px;
    align-items: start;
    flex-direction: column;
    font-size: 8px;
  }
  .chart-footnote details {
    text-align: start;
  }
  .daily-data {
    inset-inline-start: 0;
    inset-inline-end: auto;
    width: min(250px, 65vw);
  }
  .health-panel {
    display: block;
  }
  .health-ring {
    margin: 0 auto 10px;
    width: 143px;
    height: 143px;
  }
  .health-summary {
    text-align: center;
    margin-bottom: 15px;
    font-size: 9px;
  }
  .stock-breakdown {
    padding-inline: 18px;
    padding-bottom: 18px;
    gap: 12px;
  }
  .health-link {
    padding: 13px 16px;
    font-size: 10px;
  }
  .quick-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .quick-card {
    padding: 15px;
  }
  .quick-card > .icon {
    display: block;
  }
  .quick-card strong {
    font-size: 11px;
  }
  .quick-card small {
    font-size: 9px;
  }
  .table-toolbar {
    padding: 0 14px 16px;
    gap: 10px;
  }
  .search-input {
    min-width: 120px;
    max-width: none;
    flex-basis: 100%;
    font-size: 10px;
  }
  .table-filters {
    width: 100%;
    flex-wrap: wrap;
  }
  .select-wrap {
    flex: 1;
    padding: 8px;
  }
  .select-wrap select {
    max-width: 100%;
    width: 100%;
  }
  .date-filter {
    flex: 1;
    flex-direction: column;
    align-items: start;
    gap: 6px;
    min-width: 90px;
  }
  .date-filter input {
    width: 100%;
    min-width: 0;
    font-size: 9px;
  }
  .table-pagination {
    padding: 13px 14px;
    font-size: 8px;
    gap: 12px;
  }
  .table-pagination > div {
    gap: 7px;
    width: 100%;
    justify-content: flex-end;
  }
  .page-size {
    margin-inline-end: auto;
  }
  .page-number {
    font-size: 8px;
  }
  .table-pagination .icon-button {
    width: 24px;
    height: 24px;
  }
  th {
    padding: 12px 15px;
    font-size: 9px;
  }
  td {
    padding: 14px 15px;
    font-size: 10px;
  }
  .alert-list,
  .activity-list {
    padding-inline: 14px;
  }
  .alert-row {
    gap: 7px;
    flex-wrap: wrap;
  }
  .alert-row strong {
    font-size: 10px;
  }
  .alert-row small {
    font-size: 8px;
  }
  .alert-icon {
    width: 26px;
    height: 26px;
  }
  .alert-row .badge {
    font-size: 8px;
    padding: 4px 6px;
  }
  .alert-row > .icon {
    display: none;
  }
  .activity-list strong {
    font-size: 10px;
  }
  .activity-list small {
    font-size: 8px;
  }
  .settings-grid {
    gap: 17px;
  }
  .definition-list {
    padding-inline: 15px;
  }
  .definition-list > div {
    font-size: 10px;
    gap: 14px;
  }
  .preferences-form {
    padding-inline: 15px;
    gap: 14px;
    font-size: 10px;
  }
  .preferences-form label {
    font-size: 10px;
  }
  .preferences-form select {
    font-size: 10px;
    padding: 9px;
    min-width: 85px;
  }
  .readiness-panel ul {
    padding-inline: 15px;
    gap: 16px;
  }
  .readiness-panel li {
    font-size: 10px;
  }
  .readiness-panel p {
    padding-inline: 15px;
    font-size: 9px;
  }
  .workspace-footer {
    font-size: 8px;
    margin-top: 22px;
    line-height: 2;
  }
  .footer-divider {
    margin-inline: 5px;
  }
  dialog {
    width: calc(100% - 20px);
    border-radius: 14px;
    max-height: 94dvh;
  }
  .dialog-head {
    padding: 18px;
    gap: 12px;
  }
  .dialog-head h2 {
    font-size: 18px;
  }
  .dialog-head p {
    font-size: 10px;
  }
  .dialog-body {
    padding: 20px 18px;
  }
  .dialog-footer {
    padding: 15px 18px;
    gap: 8px;
  }
  .dialog-footer .btn {
    font-size: 10px;
    padding: 9px 12px;
    white-space: normal;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field {
    gap: 8px;
    margin-bottom: 17px;
  }
  .field label {
    font-size: 11px;
  }
  .field input,
  .field select {
    font-size: 13px;
  }
  .field small {
    font-size: 10px;
  }
  .line-editor {
    padding: 12px;
  }
  .line-row {
    grid-template-columns: minmax(95px, 2fr) minmax(60px, 1fr) 26px;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
  }
  .line-row > .field:first-child {
    grid-column: 1/3;
  }
  .line-row > .field:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }
  .line-row > .field:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  .line-row > .remove-line {
    grid-column: 3;
    grid-row: 1;
  }
  .line-row > .field:nth-child(4) {
    grid-column: 1/3;
    grid-row: 3;
  }
  .line-row.recipe {
    grid-template-columns: minmax(95px, 2fr) minmax(60px, 1fr) 26px;
  }
  .line-row.recipe > .field:first-child {
    grid-column: 1;
  }
  .line-row.recipe > .field:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .line-row select,
  .line-row input {
    font-size: 11px;
    padding: 9px 6px;
  }
  .invoice-estimate {
    align-items: start;
    font-size: 10px;
    gap: 10px;
  }
  .invoice-estimate strong {
    font-size: 19px;
    white-space: nowrap;
  }
  .notice {
    padding: 12px;
    gap: 7px;
    font-size: 10px;
  }
  .detail-drawer {
    width: calc(100% - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    margin: 8px;
  }
  .document-title h3 {
    font-size: 18px;
  }
  .document-brand strong {
    font-size: 14px;
  }
  .document-totals {
    font-size: 10px;
  }
  .document-totals .grand-total {
    font-size: 16px;
  }
  .document-info > div {
    font-size: 10px;
  }
  .document-disclaimer {
    font-size: 9px;
  }
  .search-dialog .dialog-head h2 {
    font-size: 15px;
  }
  .search-result {
    padding: 12px 0;
    gap: 9px;
  }
  .search-result strong {
    font-size: 11px;
  }
  .search-result small {
    font-size: 9px;
  }
  .global-search-input input {
    font-size: 12px;
  }
  .search-help {
    font-size: 9px;
  }
  .auth-layout {
    padding: 10px;
    gap: 10px;
  }
  .auth-story {
    padding: 25px;
    min-height: 300px;
    border-radius: 18px;
  }
  .auth-story h1 {
    font-size: 29px;
  }
  .auth-story-copy > p {
    font-size: 11px;
  }
  .auth-main {
    padding: 15px 20px;
  }
  .auth-form h2 {
    font-size: 27px;
  }
  .auth-form > p {
    font-size: 12px;
  }
  .auth-features {
    font-size: 9px;
  }
  .auth-welcome {
    font-size: 10px;
  }
  .auth-security {
    font-size: 9px;
  }
  .onboarding {
    padding: 25px 18px;
  }
  .onboarding-card {
    padding: 28px 20px;
    margin-top: 40px;
  }
  .onboarding-card h1 {
    font-size: 25px;
  }
  .onboarding-card p {
    font-size: 11px;
  }
  .boot-shell {
    padding: 30px 20px;
  }
  .sk-title {
    width: 70%;
  }
  .skeleton-stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .sk-card {
    height: 110px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .btn,
  .icon-button,
  .nav-item,
  .quick-card,
  .row-action,
  .health-link {
    transition:
      background 0.18s,
      color 0.18s,
      transform 0.18s,
      box-shadow 0.18s;
  }
  .stat-card {
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }
  .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px #17171708;
  }
  .quick-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-popover);
  }
  #page-content {
    animation: fade-in 0.22s ease-out;
  }
  dialog[open] {
    animation: dialog-in 0.2s ease-out;
  }
  .detail-drawer[open] {
    animation: drawer-in 0.22s ease-out;
  }
  .top-popover[open] .popover-content {
    animation: dialog-in 0.16s ease-out;
  }
  .ring-value {
    transition: stroke-dashoffset 0.3s ease;
  }
  .skeleton {
    animation: pulse 1.4s ease-in-out infinite;
  }
  .chart-line {
    animation: fade-in 0.25s ease-out;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@keyframes fade-in {
  from {
    opacity: 0.4;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes dialog-in {
  from {
    opacity: 0.3;
    transform: translateY(7px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes drawer-in {
  from {
    opacity: 0.4;
    transform: translateX(15px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pulse {
  50% {
    opacity: 0.45;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media print {
  body > * {
    display: none !important;
  }
  #print-area {
    display: block !important;
    padding: 25px;
    background: #fff !important;
    color: #171717 !important;
    font-family: Inter, 'Plex Arabic', sans-serif;
    --ink: #171717;
    --surface: #fff;
    --surface-subtle: #fafafa;
    --line: #ddd;
    --muted: #666;
    --accent-ink: #963d21;
    --positive-ink: #17723a;
    --positive-soft: #edf9f0;
  }
  #print-area .table-scroll {
    overflow: visible;
    max-height: none;
  }
  #print-area th {
    position: static;
  }
  #print-area th,
  #print-area td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
  }
  #print-area table {
    font-size: 11px;
    white-space: normal;
  }
  #print-area .document-brand {
    margin-bottom: 25px;
  }
  #print-area .document-brand strong {
    font-size: 20px;
  }
  #print-area .document-info {
    max-width: 500px;
  }
  #print-area .document-disclaimer {
    margin-top: 30px;
  }
  #print-area .document-totals {
    break-inside: avoid;
  }
  #print-area thead {
    display: table-header-group;
  }
}
