/* [project]/src/app/globals.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --default-font-family: "Segoe UI", Arial, sans-serif;
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .visible {
    visibility: visible;
  }

  .block {
    display: block;
  }

  .flex {
    display: flex;
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }
}

:root {
  --bg: #f7f8fa;
  --surface: #fff;
  --text: #27323e;
  --muted: #798390;
  --line: #e9edf1;
  --orange: #e97135;
  --green: #28856b;
  --red: #cf5a56;
}

* {
  box-sizing: border-box;
}

body {
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  font-family: Segoe UI, Arial, sans-serif;
  font-size: 13px;
}

a {
  color: inherit;
  text-decoration: none;
}

button, select {
  font: inherit;
}

button, a, select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button, select {
  color: inherit;
}

button:focus-visible, a:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline-offset: 4px;
  outline: 3px solid #ed9a6d;
}

h1, h2, h3, p {
  margin: 0;
}

svg {
  flex-shrink: 0;
}

.sidebar {
  border-right: 1px solid var(--line);
  z-index: 30;
  background: #fff;
  flex-direction: column;
  width: 224px;
  padding: 30px 17px 0;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
  overflow-y: auto;
}

.brand {
  letter-spacing: -1.2px;
  align-items: center;
  gap: 10px;
  padding: 0 14px 27px;
  font-size: 29px;
  font-weight: 750;
  display: flex;
}

.brand-mark {
  color: var(--orange);
  place-items: center;
  display: grid;
}

.brand-sub {
  color: #8b929b;
  letter-spacing: 2.8px;
  margin-top: -3px;
  font-size: 10px;
  font-weight: 600;
  display: block;
}

.nav-group {
  margin-bottom: 22px;
}

.nav-label {
  letter-spacing: 1.3px;
  color: #929aa4;
  margin: 0 13px 10px;
  font-size: 11px;
  font-weight: 600;
}

.nav-link {
  color: #67717e;
  border-radius: 7px;
  align-items: center;
  gap: 12px;
  min-height: 39px;
  margin: 3px 0;
  padding: 10px 13px;
  font-size: 12px;
  transition: background .15s, color .15s;
  display: flex;
}

.nav-link:hover {
  color: #28333e;
  background: #f6f7f9;
}

.nav-link.active {
  color: #cf632c;
  background: #fff1e8;
  font-weight: 600;
  box-shadow: inset 3px 0 #ed8249;
}

.mini-badge {
  color: #b57041;
  letter-spacing: .5px;
  background: #fff0e6;
  border-radius: 3px;
  margin-left: auto;
  padding: 3px 4px;
  font-size: 9px;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 10px;
}

.local-status {
  color: #7a858f;
  background: #f8faf9;
  border: 1px solid #edf1ef;
  border-radius: 6px;
  align-items: center;
  gap: 7px;
  padding: 11px 12px;
  font-size: 12px;
  display: flex;
}

.local-status > span:first-child {
  background: #4c9e7b;
  border-radius: 50%;
  width: 5px;
  height: 5px;
}

.version {
  margin-left: auto;
  font-size: 11px;
}

.company {
  border-top: 1px solid var(--line);
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 18px 0 22px;
  display: flex;
}

.avatar {
  color: #9a7050;
  background: #f6ede4;
  border: 1px solid #f0e4d9;
  border-radius: 50%;
  flex-shrink: 0;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 12px;
  font-weight: 700;
  display: grid;
}

.avatar.small {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.company strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
}

.company small {
  color: #939ba4;
  margin-top: 3px;
  font-size: 11px;
  display: block;
}

.workspace {
  flex-direction: column;
  min-height: 100vh;
  margin-left: 224px;
  display: flex;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: #ffffffed;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  height: 65px;
  padding: 0 32px;
  display: flex;
}

.breadcrumb {
  color: #87919d;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  display: flex;
}

.breadcrumb strong {
  color: #485260;
  font-weight: 500;
}

.topbar-right {
  align-items: center;
  gap: 19px;
  display: flex;
}

.demo-badge {
  color: #9c7845;
  white-space: nowrap;
  background: #fcf7ef;
  border: 1px solid #f2e7d5;
  border-radius: 5px;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  font-size: 12px;
  display: inline-flex;
}

.demo-badge > span {
  background: #c79c61;
  border-radius: 50%;
  width: 5px;
  height: 5px;
}

.topbar-divider {
  border-left: 1px solid var(--line);
  height: 22px;
}

main {
  flex: 1;
  min-width: 0;
}

main:focus {
  outline: none;
}

.dashboard-content {
  max-width: 1800px;
  margin: 0 auto;
  padding: 31px 32px 15px;
}

.page-heading {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
  display: flex;
}

.eyebrow {
  color: #9b8c81;
  letter-spacing: 1.7px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
}

h1 {
  letter-spacing: -.8px;
  align-items: center;
  gap: 12px;
  font-size: 29px;
  font-weight: 650;
  line-height: 1.3;
  display: flex;
}

.heading-dot {
  background: #ee965e;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}

.page-heading p:not(.eyebrow) {
  color: var(--muted);
  margin-top: 6px;
  font-size: 12px;
}

.date-badge {
  background: #fff;
  border: 1px solid #e4e8ed;
  border-radius: 6px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  font-size: 12px;
  display: flex;
  box-shadow: 0 1px 2px #19263803;
}

.date-badge svg {
  color: #8d959f;
}

.date-label {
  color: #9b8c7f;
  border-left: 1px solid var(--line);
  margin-left: 5px;
  padding-left: 9px;
  font-size: 11px;
}

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

.kpi-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  min-width: 0;
  padding: 17px 17px 15px;
  box-shadow: 0 2px 3px #26364802;
}

.kpi-top {
  color: #77818d;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  display: flex;
}

.kpi-top svg {
  color: #9ba4ae;
}

.kpi-value-row {
  justify-content: space-between;
  align-items: center;
  gap: 3px;
  margin: 12px 0 9px;
  display: flex;
}

.kpi-value-row strong {
  letter-spacing: -.9px;
  font-variant-numeric: tabular-nums;
  font-size: clamp(19px, 1.65vw, 30px);
  font-weight: 650;
  line-height: 1.1;
}

.sparkline {
  opacity: .6;
  width: 52px;
  height: 33px;
}

.kpi-card:first-child .sparkline {
  display: none;
}

.kpi-change {
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  display: flex;
}

.kpi-card > small {
  color: #949da7;
  margin-top: 5px;
  font-size: 11px;
  display: block;
}

.green {
  color: var(--green);
}

.orange {
  color: #bd7e37;
}

.red {
  color: var(--red);
}

.blue {
  color: #577997;
}

.status-dot {
  background: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  display: inline-block;
}

.overview-grid {
  grid-template-columns: minmax(0, 1.85fr) minmax(305px, 1fr);
  gap: 21px;
  display: grid;
}

.panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  min-width: 0;
  overflow: hidden;
}

.panel-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 21px 0;
  display: flex;
}

h2 {
  letter-spacing: -.15px;
  font-size: 13px;
  font-weight: 650;
}

.panel-heading p {
  color: #9099a3;
  margin-top: 5px;
  font-size: 12px;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e8ebef;
  border-radius: 5px;
  padding: 7px 28px 7px 10px;
  font-size: 12px;
}

.select-wrap svg {
  pointer-events: none;
  color: #929aa4;
  position: absolute;
  top: 9px;
  right: 8px;
}

.chart-legend {
  color: #8a939f;
  align-items: center;
  gap: 17px;
  padding: 23px 23px 5px;
  font-size: 11px;
  display: flex;
}

.chart-legend > span {
  align-items: center;
  gap: 5px;
  display: flex;
}

.chart-legend i {
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.legend-current {
  background: #ed8149;
}

.legend-previous {
  background: #b7c1ca;
}

.chart-legend small {
  margin-left: auto;
  font-size: 11px;
}

.chart-container {
  padding: 12px 15px 2px 0;
}

.chart-container svg {
  width: 100%;
  max-height: 265px;
  display: block;
}

.axis-label {
  fill: #939ba6;
  font-family: Segoe UI, Arial, sans-serif;
  font-size: 12px;
}

.chart-footer {
  color: #7d8a89;
  border-top: 1px solid #f0f2f5;
  align-items: center;
  gap: 7px;
  margin: 0 21px;
  padding: 14px 0;
  font-size: 11px;
  display: flex;
}

.chart-footer svg {
  color: #498f77;
}

.chart-demo {
  color: #a2a8b0;
  margin-left: auto;
  font-size: 10px;
}

.ai-panel {
  background: #fffbf7;
  border: 1px solid #efdfd0;
  border-radius: 9px;
  flex-direction: column;
  display: flex;
  overflow: hidden;
}

.ai-heading {
  align-items: center;
  gap: 10px;
  padding: 20px 18px 13px;
  display: flex;
}

.ai-symbol {
  color: #c37b46;
  background: #faeadc;
  border: 1px solid #f3dfcb;
  border-radius: 9px;
  place-items: center;
  width: 35px;
  height: 35px;
  display: grid;
}

.ai-heading h2 {
  color: #71563f;
  font-size: 13px;
}

.ai-heading p {
  color: #a18e7d;
  margin-top: 5px;
  font-size: 11px;
}

.ai-demo {
  color: #ae8c6f;
  letter-spacing: .7px;
  background: #f9eddf;
  border-radius: 3px;
  align-self: flex-start;
  margin-left: auto;
  padding: 3px 5px;
  font-size: 9px;
}

.recommendations {
  flex: 1;
  padding: 0 18px;
}

.recommendation {
  border-bottom: 1px solid #f0e6dc;
  gap: 11px;
  padding: 15px 0;
  display: flex;
}

.recommendation:hover h3 {
  color: #bc6a36;
}

.recommendation:last-child {
  border-bottom: 0;
}

.recommendation-index {
  color: #c5b5a6;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
  font-size: 12px;
}

.recommendation-tag {
  color: #b2845e;
  margin-bottom: 4px;
  font-size: 10px;
  display: block;
}

.recommendation h3 {
  color: #6f5c4d;
  font-size: 12px;
  font-weight: 600;
}

.recommendation p {
  color: #9b8c7d;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.65;
}

.recommendation > svg {
  color: #bda18a;
  margin-left: auto;
}

.ai-footer {
  color: #a7764e;
  background: #faf1e8;
  border-top: 1px solid #f0e3d6;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px;
  font-size: 12px;
  display: flex;
}

.ai-footer:hover {
  background: #f7e9da;
}

.quick-section {
  margin: 25px 0;
}

.quick-section > h2 {
  margin-bottom: 12px;
  font-size: 12px;
}

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

.quick-action {
  background: #fff;
  border: 1px solid #e5e9ee;
  border-radius: 7px;
  align-items: center;
  gap: 10px;
  padding: 14px 13px;
  font-size: 12px;
  transition: border-color .15s, transform .15s;
  display: flex;
}

.quick-action > svg:first-child {
  color: #9a877a;
}

.quick-action > svg:last-child {
  color: #aab1ba;
  width: 12px;
  margin-left: auto;
}

.quick-action:hover {
  border-color: #e8b99c;
  transform: translateY(-2px);
}

.detail-grid {
  grid-template-columns: minmax(0, 2.6fr) minmax(260px, 1fr);
  gap: 21px;
  display: grid;
}

.text-link {
  color: #b17b55;
  white-space: nowrap;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  display: inline-flex;
}

.text-link:hover {
  color: #ce6b2e;
}

.table-scroll {
  margin-top: 19px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
  width: 100%;
}

th {
  color: #98a0ab;
  background: #fbfcfd;
  border-top: 1px solid #f0f2f5;
  border-bottom: 1px solid #edf0f3;
  padding: 11px 10px;
  font-size: 10px;
  font-weight: 500;
}

td {
  color: #667180;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid #f0f2f5;
  padding: 13px 10px;
  font-size: 12px;
}

th:first-child, td:first-child {
  padding-left: 20px;
}

th:last-child, td:last-child {
  text-align: right;
  padding-right: 17px;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: #fdfcfb;
}

.sku {
  color: #919ba6;
  font-size: 11px;
}

.product-cell {
  align-items: center;
  gap: 8px;
  display: flex;
}

.product-initials {
  background: #f6eee4;
  border: 1px solid #eee5d9;
  border-radius: 5px;
  place-items: center;
  width: 29px;
  height: 31px;
  font-size: 10px;
  display: grid;
}

.product-initials.blue {
  background: #edf1f5;
  border-color: #e3e9ef;
}

.product-initials.green {
  background: #edf3ee;
  border-color: #e0e9e2;
}

.product-cell strong {
  color: #515c69;
  font-size: 12px;
  font-weight: 500;
  display: block;
}

.product-cell small {
  color: #a0a7b0;
  margin-top: 4px;
  font-size: 10px;
  display: block;
}

.trend {
  align-items: center;
  gap: 2px;
  font-size: 11px;
  display: flex;
}

.coverage {
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 11px;
}

.coverage.red {
  background: #fdf0ee;
}

.coverage.orange {
  background: #faf3e8;
}

.coverage.neutral {
  color: #858f9b;
  background: #f5f7f8;
}

.critical-stock {
  color: var(--red);
  align-items: center;
  gap: 4px;
  display: flex;
}

.critical-stock i {
  background: var(--red);
  border-radius: 50%;
  width: 4px;
  height: 4px;
}

.icon-button {
  color: #919ba6;
  background: none;
  border: none;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  min-width: 32px;
  min-height: 32px;
  display: inline-flex;
}

.icon-button:hover {
  color: #c97743;
  background: #fbefe5;
}

.table-footer {
  border-top: 1px solid var(--line);
  color: #9da6b0;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 10px;
  display: flex;
}

.alerts-panel .panel-heading {
  padding: 20px 17px 7px;
}

.count-badge {
  color: #bb8a62;
  vertical-align: middle;
  background: #f7ede4;
  border-radius: 4px;
  margin-left: 5px;
  padding: 2px 5px;
  font-size: 10px;
  display: inline-block;
}

.alerts-list {
  padding: 0 16px;
}

.alert-item {
  border-bottom: 1px solid #f0f2f4;
  align-items: flex-start;
  gap: 10px;
  padding: 17px 0;
  display: flex;
}

.alert-item:last-child {
  border-bottom: 0;
}

.alert-icon {
  background: #fbefe9;
  border-radius: 7px;
  flex-shrink: 0;
  place-items: center;
  width: 29px;
  height: 29px;
  display: grid;
}

.alert-icon.green {
  background: #eef6f2;
}

.alert-icon.red {
  background: #fbeeed;
}

.alert-item h3 {
  color: #616b77;
  margin: 1px 0 4px;
  font-size: 12px;
  font-weight: 600;
}

.alert-item p {
  color: #949da8;
  font-size: 11px;
  line-height: 1.5;
}

.alert-item small {
  color: #afb5bd;
  margin-top: 6px;
  font-size: 10px;
  display: block;
}

.alert-item > svg {
  color: #b7bdc5;
  margin-top: 7px;
  margin-left: auto;
}

.alert-item:hover h3 {
  color: #c47743;
}

.alerts-foot {
  border-top: 1px solid var(--line);
  color: #b19b83;
  align-items: center;
  gap: 6px;
  padding: 12px 17px;
  font-size: 10px;
  display: flex;
}

.bottom-note {
  color: #a1a9b2;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 11px;
  line-height: 1.6;
  display: flex;
}

.bottom-note .status-dot {
  color: #cab69d;
  width: 4px;
  height: 4px;
}

.footer {
  border-top: 1px solid var(--line);
  color: #a4acb5;
  justify-content: space-between;
  gap: 16px;
  margin: 13px 32px 0;
  padding: 17px 0;
  font-size: 10px;
  display: flex;
}

.footer > span:last-child {
  align-items: center;
  gap: 5px;
  display: inline-flex;
}

.menu-toggle {
  display: none;
}

.skip-link {
  z-index: 100;
  background: #fff;
  padding: 12px;
  position: fixed;
  top: -100px;
  left: 240px;
}

.skip-link:focus {
  top: 10px;
}

dialog {
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0;
}

dialog::backdrop {
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  background: #19273765;
}

.mobile-nav {
  border: 0;
  width: min(300px, 87vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
}

.mobile-nav-inner {
  flex-direction: column;
  height: 100%;
  padding: 27px 17px 0;
  display: flex;
  overflow-y: auto;
}

.close-menu {
  position: absolute;
  top: 12px;
  right: 8px;
}

body:has(dialog[open]) {
  overflow: hidden;
}

.product-dialog {
  border-radius: 14px;
  width: min(460px, 100vw - 32px);
  max-height: 85dvh;
  margin: auto;
  box-shadow: 0 24px 90px #17243130;
}

.dialog-content {
  padding: 32px;
  position: relative;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.feature-icon {
  color: #c78451;
  background: #fff0e4;
  border: 1px solid #f4dfce;
  border-radius: 16px;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  display: inline-flex;
}

.dialog-content .feature-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
}

.dialog-content h2 {
  margin-bottom: 7px;
  font-size: 22px;
}

.dialog-content > p:not(.eyebrow) {
  color: var(--muted);
}

.product-metrics {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 22px 0;
  padding: 23px 0;
  display: grid;
}

.product-metrics dt {
  color: var(--muted);
  font-size: 12px;
}

.product-metrics dd {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 600;
}

.demo-note {
  color: #aa875d;
  background: #fcf7ef;
  border-radius: 6px;
  padding: 12px;
  font-size: 12px;
  line-height: 1.6;
}

.placeholder-panel {
  border: 1px solid var(--line);
  text-align: center;
  background: #fff;
  border-radius: 12px;
  flex-direction: column;
  align-items: center;
  padding: 58px 35px;
  display: flex;
}

.stage-badge {
  color: #a88864;
  background: #fcf6ee;
  border: 1px solid #f2e5d3;
  border-radius: 20px;
  align-items: center;
  gap: 6px;
  margin: 22px 0 14px;
  padding: 5px 10px;
  font-size: 12px;
  display: flex;
}

.placeholder-panel h2 {
  letter-spacing: -.6px;
  font-size: 25px;
}

.placeholder-panel > p {
  max-width: 420px;
  color: var(--muted);
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.8;
}

.capability-grid {
  text-align: left;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 770px;
  margin: 35px 0;
  display: grid;
}

.capability-grid > div {
  border: 1px solid var(--line);
  background: #fdfdfd;
  border-radius: 8px;
  padding: 22px;
}

.capability-grid span {
  color: #b9a38e;
  font-size: 12px;
}

.capability-grid h3 {
  margin: 15px 0 10px;
  font-size: 12px;
  font-weight: 500;
}

.capability-grid small {
  color: #9ba4ae;
  font-size: 11px;
}

.primary-link {
  color: #fff;
  background: #e8793e;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  font-size: 12px;
  display: inline-flex;
}

.primary-link:hover {
  background: #d86d33;
}

.section-note {
  color: #9ca4ae;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin: 24px 0;
  font-size: 12px;
  line-height: 1.7;
  display: flex;
}

.back-link {
  margin-top: 5px;
}

@media (min-width: 1600px) {
  .dashboard-content {
    padding: 36px 42px 20px;
  }

  .kpi-top, .kpi-change, .kpi-card > small {
    font-size: 12px;
  }

  .sparkline {
    width: 68px;
  }

  .detail-grid {
    grid-template-columns: minmax(0, 2.8fr) minmax(300px, 1fr);
  }

  td {
    padding-top: 17px;
    padding-bottom: 17px;
  }

  .product-cell strong, .product-cell small, .sku, .alert-item p {
    font-size: 12px;
  }

  .alert-item h3, h2 {
    font-size: 13px;
  }

  .quick-action {
    font-size: 12px;
  }
}

@media (max-width: 1240px) {
  .sidebar {
    width: 205px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .workspace {
    margin-left: 205px;
  }

  .dashboard-content {
    padding: 25px 23px 15px;
  }

  .topbar {
    padding: 0 23px;
  }

  .kpi-grid {
    gap: 9px;
  }

  .kpi-card {
    padding: 13px 11px;
  }

  .sparkline {
    width: 35px;
  }

  .kpi-value-row strong {
    font-size: 21px;
  }

  .kpi-card:first-child .kpi-value-row strong {
    font-size: 19px;
  }

  .overview-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr);
    gap: 16px;
  }

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

  .alerts-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 17px;
    display: grid;
  }

  .alert-item {
    border-bottom: 0;
  }

  .alert-item > svg {
    display: none;
  }

  .quick-action {
    gap: 7px;
    padding: 12px 10px;
    font-size: 11px;
  }

  .chart-demo {
    display: none;
  }

  .chart-container {
    align-items: center;
    min-height: 240px;
    display: flex;
  }
}

@media (max-width: 1000px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kpi-value-row strong, .kpi-card:first-child .kpi-value-row strong {
    font-size: 26px;
  }

  .kpi-card {
    padding: 17px;
  }

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

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

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

  .quick-action {
    font-size: 12px;
  }

  .alerts-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .recommendation {
    border-bottom: 0;
  }

  .recommendation-index {
    display: none;
  }

  .page-heading {
    align-items: flex-start;
  }

  .date-badge {
    margin-top: 26px;
    font-size: 12px;
  }

  .date-label {
    display: none;
  }
}

@media (max-width: 760px) {
  .sidebar {
    display: none;
  }

  .workspace {
    margin-left: 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .topbar {
    height: 59px;
    padding: 0 16px;
  }

  .breadcrumb {
    gap: 8px;
  }

  .breadcrumb-parent, .breadcrumb > svg {
    display: none;
  }

  .topbar-right {
    gap: 10px;
  }

  .topbar-divider {
    display: none;
  }

  .dashboard-content {
    padding: 24px 18px 13px;
  }

  .page-heading {
    gap: 12px;
    margin-bottom: 22px;
  }

  h1 {
    font-size: 27px;
  }

  .eyebrow {
    font-size: 10px;
  }

  .page-heading p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.6;
  }

  .date-badge {
    white-space: nowrap;
    margin-top: 29px;
    padding: 8px;
    font-size: 11px;
  }

  .date-badge svg {
    width: 13px;
  }

  .kpi-grid {
    gap: 10px;
  }

  .kpi-card {
    padding: 15px 12px;
  }

  .kpi-top {
    font-size: 11px;
  }

  .kpi-value-row strong, .kpi-card:first-child .kpi-value-row strong {
    font-size: 24px;
  }

  .kpi-change {
    font-size: 10px;
  }

  .sparkline {
    width: 40px;
  }

  .footer {
    margin: 12px 18px 0;
    font-size: 9px;
  }

  .skip-link {
    left: 15px;
  }

  .placeholder-panel {
    padding: 38px 23px;
  }

  .capability-grid {
    gap: 10px;
  }

  .capability-grid > div {
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .page-heading {
    flex-wrap: wrap;
    gap: 13px;
  }

  .date-badge {
    margin-top: 0;
  }

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

  .kpi-card:first-child {
    grid-column: 1 / -1;
  }

  .kpi-card:first-child .sparkline {
    width: 92px;
    display: block;
  }

  .kpi-card:first-child .kpi-value-row strong {
    font-size: 32px;
  }

  .kpi-top {
    font-size: 12px;
  }

  .kpi-change, .kpi-card > small {
    font-size: 11px;
  }

  .kpi-card {
    padding: 16px;
  }

  .panel-heading {
    padding: 19px 16px 0;
  }

  .panel-heading h2 {
    font-size: 12px;
  }

  .panel-heading p {
    font-size: 11px;
  }

  .select-wrap select {
    padding-left: 7px;
    font-size: 11px;
  }

  .chart-legend {
    gap: 10px;
    padding: 21px 16px 3px;
    font-size: 10px;
  }

  .chart-legend small {
    font-size: 10px;
  }

  .chart-container {
    min-height: 190px;
    padding: 10px 7px 0 0;
  }

  .chart-footer {
    margin: 0 16px;
    font-size: 10px;
  }

  .axis-label {
    font-size: 13px;
  }

  .recommendations {
    display: block;
  }

  .recommendation {
    border-bottom: 1px solid #f0e6dc;
    padding: 15px 0;
  }

  .recommendation-index {
    display: block;
  }

  .recommendation p, .recommendation h3 {
    font-size: 12px;
  }

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

  .quick-action {
    padding: 15px 12px;
    font-size: 12px;
  }

  .quick-action:last-child {
    grid-column: 1 / -1;
  }

  .alerts-list {
    display: block;
  }

  .alert-item {
    border-bottom: 1px solid #f0f2f4;
  }

  .alert-item h3, .alert-item p {
    font-size: 12px;
  }

  .alert-item small {
    font-size: 11px;
  }

  .alert-item > svg {
    display: block;
  }

  .alerts-foot {
    font-size: 11px;
  }

  .bottom-note {
    text-align: center;
    align-items: flex-start;
    font-size: 11px;
  }

  .bottom-note .status-dot {
    margin-top: 6px;
  }

  .footer {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 10px;
  }

  .table-footer {
    padding: 12px;
    font-size: 10px;
  }

  .text-link {
    font-size: 11px;
  }

  .product-action {
    min-width: 44px;
    min-height: 44px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
    margin: 26px 0;
  }

  .capability-grid > div {
    padding: 18px;
  }

  .capability-grid h3 {
    margin: 8px 0;
  }

  .placeholder-panel h2 {
    font-size: 21px;
  }

  .section-note {
    align-items: flex-start;
  }

  .dialog-content {
    padding: 26px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.sales-v02 {
  font-size: 14px;
}

.sales-v02 h2 {
  font-size: 16px;
}

.sales-v02 .panel-heading p, .sales-v02 .source-note {
  font-size: 13px;
  line-height: 1.7;
}

.sales-v02 .panel-heading {
  flex-wrap: wrap;
}

.refresh-button {
  color: #fff;
  background: #e97135;
  border: 1px solid #d96930;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 17px;
  font-size: 14px;
  display: flex;
}

.refresh-button:hover {
  background: #d9672d;
}

.refresh-button:disabled {
  cursor: wait;
  background: #a58068;
  border-color: #a58068;
}

.refresh-spin {
  animation: 1.4s linear infinite refresh-rotate;
}

@keyframes refresh-rotate {
  to {
    transform: rotate(360deg);
  }
}

.source-status {
  border: 1px solid var(--line);
  color: #616d7b;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 17px 20px;
  font-size: 14px;
  line-height: 1.8;
}

.source-status > div, .source-status > p {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.source-status > div {
  margin-bottom: 6px;
}

.real-badge {
  color: #24654d;
  white-space: nowrap;
  background: #eaf5ef;
  border: 1px solid #cfe6d8;
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 12px;
  display: inline-flex;
}

.source-note {
  color: #717c88;
  padding: 8px 0 16px;
}

.sales-error {
  color: #8d3430;
  background: #fff1ef;
  border: 1px solid #ebc4bf;
  border-radius: 7px;
  margin-bottom: 15px;
  padding: 16px 20px;
  line-height: 1.7;
}

.sales-error p {
  margin-top: 5px;
}

.sales-v02 .kpi-top {
  align-items: flex-start;
  min-height: 40px;
  font-size: 14px;
}

.sales-v02 .kpi-card > small {
  color: #74818d;
  font-size: 12px;
  line-height: 1.6;
}

.sales-v02 .kpi-value-row strong {
  letter-spacing: -.6px;
  font-size: clamp(21px, 1.8vw, 29px);
}

.pending-metrics {
  color: #7a818b;
  flex-wrap: wrap;
  gap: 12px 25px;
  margin: -5px 0 24px;
  font-size: 13px;
  line-height: 1.7;
  display: flex;
}

.sales-empty {
  color: #7c8792;
  padding: 32px 20px;
  font-size: 14px;
  line-height: 1.7;
}

.sales-v02 .chart-legend {
  flex-wrap: wrap;
  font-size: 12px;
}

.sales-v02 .chart-legend small {
  font-size: 12px;
}

.sales-v02 .chart-footer {
  font-size: 12px;
  line-height: 1.6;
}

.sales-v02 .axis-label {
  font-size: 12px;
}

.sales-v02 .select-wrap select {
  min-height: 40px;
  font-size: 13px;
}

.sales-v02 .select-wrap svg {
  top: 14px;
}

.recent-columns {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 22px;
  display: grid;
}

.recent-columns > div {
  min-width: 0;
}

.recent-columns h3 {
  font-size: 14px;
}

.recent-sku {
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
  font-size: 12px;
  display: flex;
}

.recent-sku > span {
  -webkit-line-clamp: 2;
  color: #798490;
  -webkit-box-orient: vertical;
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
}

.recent-sku b {
  font-size: 14px;
  font-weight: 600;
}

.trend-explanation {
  color: #778390;
  border-top: 1px solid var(--line);
  padding: 15px 20px;
  font-size: 13px;
  line-height: 1.7;
}

.sales-table {
  max-height: 555px;
}

.sales-table th {
  z-index: 1;
  color: #687584;
  white-space: normal;
  min-width: 100px;
  font-size: 12px;
  position: sticky;
  top: 0;
}

.sales-table td {
  font-size: 13px;
}

.sales-table .sku, .sales-table .coverage {
  font-size: 12px;
}

.real-product-name {
  white-space: normal;
  min-width: 235px;
  max-width: 315px;
  line-height: 1.6;
}

.sales-v02 .table-footer {
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.sales-v02 .quick-section > h2 {
  font-size: 14px;
}

.sales-v02 .quick-action {
  font-size: 13px;
}

.demo-secondary {
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin: 26px 0 16px;
  display: grid;
}

.demo-secondary .recommendations, .demo-secondary .alerts-list {
  display: block;
}

.demo-secondary p, .demo-secondary .alert-item p {
  font-size: 13px;
  line-height: 1.6;
}

.demo-secondary h3, .demo-secondary .alert-item h3 {
  font-size: 14px;
}

.demo-secondary small, .demo-secondary .recommendation-tag, .demo-secondary .alert-item small {
  font-size: 12px;
}

.sales-v02 .product-dialog {
  width: min(550px, 100vw - 32px);
}

.sales-v02 .product-metrics dt {
  font-size: 13px;
  line-height: 1.5;
}

.history-list {
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.history-list li {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  display: flex;
}

.sales-v02 .demo-note {
  font-size: 13px;
}

@media (max-width: 1150px) {
  .sales-v02 .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .sales-v02 .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-v02 .kpi-card:first-child {
    grid-column: 1 / -1;
  }

  .demo-secondary {
    grid-template-columns: 1fr;
  }

  .source-status {
    padding: 15px;
  }

  .sales-v02 .chart-legend small {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .sales-v02 .kpi-value-row strong {
    font-size: 23px;
  }

  .sales-v02 .kpi-top {
    font-size: 13px;
  }

  .sales-v02 .panel-heading {
    gap: 10px;
  }

  .sales-v02 .chart-container {
    min-height: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .refresh-spin {
    animation: none;
  }
}

.inventory-v03 {
  min-width: 0;
  margin: 28px 0;
}

.inventory-v03 h2 {
  font-size: 23px;
}

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

.inventory-sources .source-status {
  overflow-wrap: anywhere;
  min-width: 0;
  display: block;
}

.inventory-sources p {
  font-size: 12px;
  line-height: 1.7;
}

.inventory-filters {
  flex-wrap: wrap;
  align-items: end;
  gap: 20px;
  margin: 22px 0;
  display: flex;
}

.inventory-filters label {
  gap: 8px;
  font-size: 13px;
  display: grid;
}

.inventory-filters input, .inventory-filters select {
  color: #273444;
  background: #fff;
  border: 1px solid #d9dfe7;
  border-radius: 8px;
  max-width: 100%;
  padding: 12px;
}

.inventory-table {
  max-height: 720px;
  overflow: auto;
}

.inventory-table table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1150px;
}

.inventory-table th, .inventory-table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e7ebf0;
  padding: 14px;
  font-size: 13px;
}

.inventory-table th {
  z-index: 1;
  background: #f5f7fa;
  position: sticky;
  top: 0;
}

.inventory-table td:first-child {
  min-width: 240px;
  max-width: 310px;
  line-height: 1.6;
}

.inventory-table td:last-child {
  min-width: 280px;
  max-width: 360px;
}

.inventory-table details {
  margin-top: 12px;
}

.inventory-table p {
  margin: 8px 0;
  line-height: 1.6;
}

.inventory-links {
  color: #406db5;
  gap: 24px;
  padding: 16px;
  display: flex;
}

.inventory-diagnostics {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .inventory-sources {
    grid-template-columns: 1fr;
  }

  .inventory-filters {
    align-items: stretch;
  }

  .inventory-v03 .page-heading {
    flex-wrap: wrap;
    gap: 16px;
  }
}

.inventory-table td {
  white-space: normal;
}

.inventory-table td:first-child, .inventory-table th:first-child {
  z-index: 1;
  background: #fff;
  min-width: 240px;
  position: sticky;
  left: 0;
}

.inventory-table th:first-child {
  z-index: 2;
  background: #f5f7fa;
}

.replenishment-panel {
  min-width: 0;
  margin: 24px 0;
}

.replenishment-panel h2 {
  font-size: 22px;
}

.replenishment-panel .inventory-filters input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.purchase-table {
  max-height: 720px;
}

.purchase-table table {
  min-width: 1400px;
}

.ml-catalog table {
  table-layout: fixed;
  min-width: 1620px;
}

.ml-catalog th:first-child {
  width: 260px;
}

.ml-catalog th:nth-child(2) {
  width: 190px;
}

.ml-catalog th:nth-child(3) {
  width: 160px;
}

.ml-catalog th:nth-child(4) {
  width: 280px;
}

.ml-catalog th:nth-child(5) {
  width: 380px;
}

.ml-catalog th:nth-child(6) {
  width: 350px;
}

.ml-catalog td {
  overflow-wrap: anywhere;
}

.replenishment-panel > a {
  color: #b24c1d;
  margin: 12px 0;
  display: inline-block;
}

.cost-rankings {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0;
  display: grid;
}

.cost-ranking {
  padding: 20px;
}

.cost-ranking h2 {
  margin-bottom: 12px;
  font-size: 19px;
}

.cost-ranking p {
  overflow-wrap: anywhere;
  margin: 10px 0;
  font-size: 13px;
  line-height: 1.7;
  display: block;
}

.cost-ranking strong {
  color: #263744;
  display: inline;
}

@media (max-width: 760px) {
  .cost-rankings {
    grid-template-columns: 1fr;
  }
}

.analysis-panel {
  gap: 18px;
  min-width: 0;
  display: grid;
}

.analysis-panel table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.analysis-panel th, .analysis-panel td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e7e9eb;
  padding: 12px;
}

.analysis-panel th {
  white-space: nowrap;
  background: #f7f8fa;
}

.analysis-panel td {
  min-width: 85px;
}

.analysis-panel input, .analysis-panel select {
  color: #263744;
  background: #fff;
  border: 1px solid #d6dce1;
  border-radius: 8px;
  max-width: 100%;
  margin: 5px;
  padding: 9px;
}

.analysis-panel p {
  line-height: 1.6;
}

.analysis-panel .panel {
  min-width: 0;
}

.analysis-panel button:not(.refresh-button) {
  color: #a74919;
  text-align: left;
  cursor: pointer;
}

.analysis-panel .kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .analysis-panel .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

.sales-v02 .analysis-panel .kpi-card:first-child {
  grid-column: auto;
}

.analysis-panel .kpi-card h2 {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
}

.finance-page {
  gap: 20px;
  min-width: 0;
  display: grid;
}

.finance-section, .finance-ledger {
  min-width: 0;
  padding: 22px;
}

.finance-page p {
  margin: 10px 0;
  line-height: 1.6;
}

.finance-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
  display: grid;
}

.finance-kpis button {
  text-align: left;
  cursor: pointer;
}

.finance-kpis strong {
  margin: 10px 0;
  font-size: 23px;
  display: block;
}

.finance-kpis small {
  color: #a34b1d;
}

.finance-form {
  border-bottom: 1px solid #e5e7eb;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px 0;
  display: grid;
}

.finance-form h3, .finance-form-actions {
  grid-column: 1 / -1;
}

.finance-form label, .finance-filters label {
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  display: flex;
}

.finance-page input, .finance-page select, .finance-page textarea {
  color: #263744;
  background: #fff;
  border: 1px solid #cfd6dd;
  border-radius: 8px;
  width: 100%;
  max-width: 100%;
  padding: 10px;
}

.finance-filters {
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px;
  display: flex;
}

.finance-filters label {
  flex: 1;
  min-width: 150px;
}

.finance-form-actions, .finance-tabs {
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  display: flex;
}

.finance-tabs {
  margin-bottom: 12px;
}

.finance-tabs button {
  background: #fff;
  border: 1px solid #d8dee3;
  border-radius: 8px;
  padding: 10px 20px;
}

.finance-tabs .selected {
  color: #a34b1d;
  background: #fff2e8;
}

.finance-table {
  max-width: 100%;
  max-height: 550px;
  overflow: auto;
}

.finance-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.finance-table th, .finance-table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e6e8eb;
  min-width: 100px;
  padding: 12px;
}

.finance-table th {
  white-space: nowrap;
  background: #f8f9fa;
  position: sticky;
  top: 0;
}

.finance-table button, .finance-section > button:not(.refresh-button), .finance-form-actions button:not(.refresh-button) {
  color: #a34b1d;
  cursor: pointer;
}

.finance-modal-backdrop {
  z-index: 1000;
  background: #18263388;
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: flex;
  position: fixed;
  inset: 0;
}

.finance-modal {
  background: #fff;
  border-radius: 16px;
  width: min(1100px, 100%);
  max-height: 90vh;
  padding: 24px;
  overflow: auto;
}

.finance-modal h2 {
  margin: 15px 0;
  font-size: 23px;
}

.finance-modal > button {
  margin: 8px;
}

.finance-modal dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.finance-modal dd {
  overflow-wrap: anywhere;
}

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

@media (max-width: 600px) {
  .finance-form {
    grid-template-columns: 1fr;
  }

  .finance-kpis strong {
    font-size: 20px;
  }

  .finance-section, .finance-ledger {
    padding: 16px;
  }

  .finance-modal-backdrop {
    padding: 10px;
  }

  .finance-modal {
    padding: 16px;
  }

  .finance-page .page-heading {
    gap: 15px;
  }
}

.finance-manual {
  min-width: 0;
}

.sales-v02 .finance-kpis .kpi-card:first-child {
  grid-column: auto;
}

.finance-page .page-heading > div {
  min-width: 0;
}

@media (max-width: 600px) {
  .finance-page .page-heading {
    flex-wrap: wrap;
  }
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

/*# sourceMappingURL=src_app_globals_162hn9o.css.map*/