:root {
  --v3-ink: #17211f;
  --v3-muted: #68736f;
  --v3-line: #e3e8e5;
  --v3-canvas: #f4f6f4;
  --v3-card: #ffffff;
  --v3-green: #087a65;
  --v3-green-dark: #075f51;
  --v3-green-soft: #e8f4f0;
  --v3-amber-soft: #fff4de;
  --v3-radius: 18px;
  --v3-shadow: 0 1px 2px rgba(18, 38, 32, .04), 0 8px 28px rgba(18, 38, 32, .055);
}

/* V249 — native business workspace with stable hierarchy and one sales path */
@media (max-width: 900px) {
  .v249-home,
  .v249-business,
  .v249-inventory,
  .v249-more {
    --v249-canvas: #f5f7f6;
    --v249-line: #e3e8e5;
    --v249-ink: #17231f;
    --v249-muted: #6f7c76;
    background: var(--v249-canvas) !important;
  }

  .v249-home {
    gap: 18px !important;
    padding: 0 14px calc(92px + env(safe-area-inset-bottom)) !important;
  }

  .v249-home .v249-home-head {
    width: auto !important;
    margin: 0 -14px !important;
    padding: calc(19px + env(safe-area-inset-top)) 18px 20px !important;
    border: 0 !important;
    border-radius: 0 0 24px 24px !important;
    background: linear-gradient(145deg, #123b32 0%, #0f5b4a 100%) !important;
    box-shadow: none !important;
  }

  .v249-home .v249-home-head .v221-today {
    margin-top: 17px !important;
  }

  .v249-home .v249-home-head .v221-today > a {
    padding-top: 13px !important;
  }

  .v249-home .v249-home-head .v221-today strong {
    font-size: 25px !important;
  }

  .v249-setup {
    display: grid;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid #d9e4df;
    border-radius: 15px;
    background: #edf5f1;
  }

  .v249-setup > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .v249-setup > div:first-child strong { color: #1f4036; font-size: 14px; }
  .v249-setup > div:first-child small { color: #658077; font-size: 10px; }
  .v249-setup > div:last-child { display: flex; gap: 8px; }

  .v249-setup button {
    display: grid;
    min-width: 0;
    min-height: 44px;
    flex: 1;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid #d6e2dc;
    border-radius: 12px;
    background: #fff;
    color: #24443a;
    text-align: left;
  }

  .v249-setup button .v2-icon { width: 24px; height: 24px; color: #277762; }
  .v249-setup button span { overflow: hidden; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
  .v249-setup button b { color: #277762; font-size: 17px; }

  .v249-home .v249-command {
    display: grid !important;
    gap: 10px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .v249-command > header,
  .v249-home .v233-work-queue > header,
  .v249-home .v233-recent > header,
  .v249-home .v233-customer-panel > header {
    min-height: 28px !important;
    padding: 0 2px !important;
  }

  .v249-command > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .v249-command > header h2 { margin: 0; color: var(--v249-ink); font-size: 16px; }
  .v249-command > header a { color: var(--v249-muted); font-size: 11px; text-decoration: none; }

  .v249-module-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  .v249-module-grid > a,
  .v249-module-grid > button {
    display: grid !important;
    min-width: 0;
    min-height: 78px !important;
    grid-template-columns: 38px minmax(0, 1fr) auto !important;
    align-items: center;
    gap: 9px !important;
    padding: 12px !important;
    border: 1px solid var(--v249-line) !important;
    border-radius: 15px !important;
    background: #fff !important;
    color: var(--v249-ink) !important;
    box-shadow: none !important;
    text-align: left !important;
    text-decoration: none;
  }

  .v249-module-grid > a:first-child,
  .v249-module-grid > button:first-child {
    border-color: #cfe1da !important;
    background: #eff7f3 !important;
  }

  .v249-module-grid .v2-icon {
    display: grid;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    border-radius: 12px !important;
  }

  .v249-module-grid > * > span:not(.v2-icon) {
    display: grid;
    min-width: 0;
    gap: 3px;
  }

  .v249-module-grid strong {
    overflow: hidden;
    color: var(--v249-ink) !important;
    font-size: 13px !important;
    font-weight: 850;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .v249-module-grid small {
    overflow: hidden;
    color: var(--v249-muted) !important;
    font-size: 9px !important;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .v249-module-grid > * > b {
    color: #a5afaa;
    font-size: 16px;
    font-weight: 500;
  }

  .v249-home .v9-home-draft {
    margin: 0 !important;
    border: 1px solid #dfe7e3;
    box-shadow: none !important;
  }

  .v249-home .v233-work-queue > div,
  .v249-home .v233-recent > div,
  .v249-home .v233-customer-panel > div {
    border-color: var(--v249-line) !important;
    border-radius: 15px !important;
    box-shadow: none !important;
  }

  .v249-business .native-page-head,
  .v249-inventory .native-page-head {
    padding-right: 16px !important;
    padding-left: 16px !important;
    background: rgba(245,247,246,.96) !important;
  }

  .v249-business .document-create-bar,
  .v249-business .document-attention,
  .v249-inventory .native-stock-summary,
  .v249-inventory .native-block,
  .v249-more .native-account-card,
  .v249-more .native-block {
    margin-right: 12px !important;
    margin-left: 12px !important;
    border-color: var(--v249-line) !important;
    border-radius: 15px !important;
    box-shadow: none !important;
  }

  .v249-business .document-primary-create {
    min-height: 72px;
    border-radius: 14px 14px 0 0 !important;
  }

  .v249-business .document-type-tabs {
    background: rgba(245,247,246,.97) !important;
  }

  .v249-business .document-stream {
    margin: 0 12px 18px !important;
    border-color: var(--v249-line) !important;
    border-radius: 15px !important;
    box-shadow: none !important;
  }

  .v249-more .native-account-card {
    margin-top: 12px !important;
    background: linear-gradient(145deg, #173d34, #0f5b4a) !important;
    color: #fff;
  }

  .v249-more .native-account-card h1,
  .v249-more .native-account-card p,
  .v249-more .native-account-card small,
  .v249-more .native-account-card a { color: #fff !important; }

  .v249-more .native-settings-group > div > a,
  .v249-more .native-settings-group > div > button,
  .v249-inventory .native-stock-actions > a {
    min-height: 58px;
  }
}

/* V236 — fewer decisions, stronger correction paths, and scalable daily lists. */
.v236-inventory-page { background: #f4f7f5; }
.v236-inventory-list > header { align-items: flex-end; }
.v236-inventory-tools { display: flex; min-width: min(430px, 50vw); align-items: center; justify-content: flex-end; gap: 9px; }
.v236-inventory-tools label { flex: 1 1 260px; }
.v236-inventory-tools input,
.v236-list-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dce5e1;
  border-radius: 12px;
  background: #f8faf9;
  padding: 0 13px;
  color: #1e3029;
  font: inherit;
}
.v236-inventory-tools input:focus,
.v236-list-search input:focus { border-color: #6fa998; outline: 3px solid rgba(76,145,124,.12); }
.v236-inventory-page .inventory-row-actions {
  grid-column: 1 / -1;
  display: grid !important;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid #e7ece9;
}
.v236-inventory-page .inventory-row-actions .table-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  border-radius: 10px;
  background: #f2f6f4;
  color: #3f5d53;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.v236-inventory-page .inventory-row-actions .inventory-restock-action { background: #176d58; color: #fff; }
[data-inventory-item][hidden],
[data-partner-item][hidden],
[data-inventory-no-results][hidden],
[data-partner-no-results][hidden] { display: none !important; }
.v236-list-search { display: block; padding: 11px 13px 7px; border-top: 1px solid #edf1ef; }
.v236-partner-list .partner-payment-action { color: #176d58; font-weight: 800; }
.order-picker-option em { line-height: 1.35; }
.v233-order-form [data-draft-summary] { color: #718079 !important; font-weight: 700; }

@media (max-width: 780px) {
  .v236-inventory-page { padding: 0 0 calc(82px + env(safe-area-inset-bottom)); }
  .v236-inventory-page > .page-header,
  .v236-inventory-page > .inventory-overview,
  .v236-inventory-page > .inventory-alert,
  .v236-inventory-page > .inventory-list { margin-right: 12px; margin-left: 12px; }
  .v236-inventory-page > .page-header { margin-top: 8px; padding: 12px 2px; }
  .v236-inventory-page > .page-header p { display: none; }
  .v236-inventory-list > header { align-items: stretch; flex-direction: column; gap: 10px; }
  .v236-inventory-tools { width: 100%; min-width: 0; }
  .v236-inventory-tools label { min-width: 0; }
  .v236-inventory-tools .button { flex: 0 0 auto; min-height: 42px; padding-inline: 12px; }
  .v236-inventory-page .inventory-item { overflow: hidden; }
  .v236-inventory-page .inventory-row-actions { align-items: stretch; justify-content: stretch; }
  .v236-list-search { padding: 10px 12px 8px; }
  .v236-list-search input { min-height: 44px; font-size: 16px; }
}

/* V232 — purchase entry follows the same continuous mobile workflow as sales. */
.v232-purchase-form { max-width: 760px; }
.v232-purchase-party,
.v232-purchase-lines,
.v232-purchase-settlement { border: 1px solid #e4e9e6; border-radius: 16px; background: #fff; box-shadow: none; }
.v232-purchase-party { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 12px; padding: 16px; }
.v232-purchase-party > header { grid-column: 1 / -1; }
.v232-purchase-party h2,
.v232-purchase-lines h2 { margin: 0; color: #17231f; font-size: 18px; }
.v232-purchase-party h2 small,
.v232-purchase-lines h2 small { margin-left: 4px; color: #84908b; font-size: 11px; font-weight: 700; }
.v232-purchase-supplier { min-width: 0; }
.v232-recent-suppliers { grid-column: 1 / -1; display: grid; gap: 7px; }
.v232-recent-suppliers > small,
.v232-purchase-quick > small { color: #858f8b; font-size: 10px; }
.v232-recent-suppliers > div { display: flex; flex-wrap: wrap; gap: 7px; }
.v232-recent-suppliers button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #dce5e1;
  border-radius: 999px;
  background: #f7f9f8;
  color: #2c4b42;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.v232-purchase-meta { align-self: end; border: 0; }
.v232-purchase-meta > summary { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; border: 1px solid #d7e0dc; border-radius: 12px; list-style: none; }
.v232-purchase-meta > summary::-webkit-details-marker { display: none; }
.v232-purchase-meta > summary span { display: grid; gap: 1px; }
.v232-purchase-meta > summary strong { font-size: 12px; }
.v232-purchase-meta > summary small { color: #75817c; font-size: 11px; }
.v232-purchase-meta > summary b { color: #1b6654; font-size: 11px; }
.v232-purchase-meta > label { display: grid; gap: 5px; padding: 10px 0 0; color: #6f7c76; font-size: 11px; }
.v232-purchase-meta input { min-height: 42px; padding: 0 10px; border: 1px solid #d7e0dc; border-radius: 11px; font: inherit; }

.v232-purchase-lines { padding: 16px; }
.v232-purchase-lines > header { min-height: 38px; margin-bottom: 2px; }
.v232-purchase-lines > header button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: #eef4f1;
  color: #165a49;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}
.v232-purchase-quick { display: grid; gap: 6px; margin: 3px 0 12px; }
.v232-purchase-quick > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.v232-purchase-quick button {
  display: grid;
  min-width: 0;
  min-height: 49px;
  align-content: center;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid #e4e9e7;
  border-radius: 11px;
  background: #f8f9f8;
  color: #263a33;
  font: inherit;
  text-align: left;
}
.v232-purchase-quick button.selected { border-color: #9cc6ba; background: #edf7f3; color: #175f4e; }
.v232-purchase-quick strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.v232-purchase-quick span { color: #78847f; font-size: 10px; }

.purchase-line-row.v232-purchase-line {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 13px;
  border: 1px solid #e2e8e5;
  border-radius: 13px;
  background: #fbfcfb;
}
.v232-purchase-line > header { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; }
.v232-purchase-line > header > span { display: grid; min-width: 0; gap: 1px; }
.v232-purchase-line > header small { color: #87918d; font-size: 9px; }
.v232-purchase-line > header span strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.v232-purchase-line > header > strong { color: #173f35; font-size: 14px; }
.v232-purchase-line > header > button { border: 0; background: transparent; color: #9b5a51; font: inherit; font-size: 11px; font-weight: 800; }
.v232-purchase-line label { display: grid; gap: 5px; color: #6f7b76; font-size: 10px; font-weight: 750; }
.v232-purchase-line select,
.v232-purchase-line input { width: 100%; min-height: 43px; border: 1px solid #d9e1de; border-radius: 10px; background: #fff; color: #17241f; font: inherit; font-size: 14px; }
.v232-purchase-line select { padding: 0 10px; }
.v232-purchase-line input { padding: 0 11px; }
.v232-purchase-numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.v232-purchase-empty { min-height: 64px !important; border: 1px dashed #ccd8d3 !important; border-radius: 12px !important; background: #f8faf9 !important; }
.v232-purchase-settlement { padding: 15px 16px; }
.v232-purchase-settlement > header { margin-bottom: 10px; }
.v232-purchase-total { display: grid; min-width: 0; gap: 1px; }
.v232-purchase-total > span { display: flex; align-items: center; gap: 6px; color: #53625b; font-size: 11px; }
.v232-purchase-total em { color: #89938f; font-size: 9px; font-style: normal; }
.v232-purchase-total > strong { color: #17231f; font-size: 20px; }
.v232-purchase-footer { align-items: center; justify-content: space-between; }

@media (max-width: 900px) {
  #app[data-route='new-purchase'] .bottom-nav { display: none !important; }
  #app[data-route='new-purchase'] .main-content { padding-bottom: 20px; }
  .v232-purchase-page { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .v232-purchase-form { width: 100%; gap: 8px; }
  .v232-purchase-party,
  .v232-purchase-lines,
  .v232-purchase-settlement,
  .v232-purchase-form > details { margin: 0; border: 0; border-radius: 0; }
  .v232-purchase-party { grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; }
  .v232-purchase-party > header,
  .v232-recent-suppliers { grid-column: 1; }
  .v232-purchase-meta { width: 100%; }
  .v232-purchase-lines { padding: 15px 16px; }
  .v232-purchase-settlement { padding: 15px 16px; }
  .v232-purchase-form > details { padding-inline: 16px; background: #fff; }
  .v232-purchase-form > .v232-purchase-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 18;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(138px, 43%);
    gap: 10px;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid rgba(28, 43, 36, .1);
    border-radius: 0;
    background: rgba(255,255,255,.98);
    box-shadow: 0 -8px 24px rgba(20,35,29,.07);
  }
  .v232-purchase-footer .button.primary { min-height: 48px; border-radius: 12px; }
}

/* V170 — workflow rebuild: explicit parties, inline pricing, full-page purchasing */
.order-v7-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 10px;
  align-items: stretch;
}

.order-v7-meta-grid .order-v3-customer-row { margin: 0; }

.order-v3-customer-row.required {
  border: 1.5px dashed #d68f42;
  background: #fffaf2;
}

.order-v3-customer-row.required .order-v3-customer-avatar {
  background: #fff0d7;
  color: #a96018;
}

.order-v7-date {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dce5e1;
  border-radius: 13px;
  background: #fff;
}

.order-v7-date span {
  color: #74817c;
  font-size: 11px;
  font-weight: 750;
}

.order-v7-date input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #182620;
  font: inherit;
  font-weight: 800;
}

.order-v7-recent-customers {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.order-v7-recent-customers > small { color: #77847f; font-size: 11px; font-weight: 750; }
.order-v7-recent-customers > div { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.order-v7-recent-customers button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #dce5e1;
  border-radius: 999px;
  background: #f8fbfa;
  color: #274039;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.v7-inline-line.simple {
  grid-template-columns: minmax(130px, 1fr) auto 104px 34px;
  gap: 9px;
  align-items: center;
}

.v7-inline-line .v6-line-main { cursor: default; }
.v7-inline-line .v6-line-main > b { display: block; }

.v7-inline-price {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-height: 42px;
  padding: 0 8px;
  border: 1px solid #d9e2de;
  border-radius: 10px;
  background: #fff;
}

.v7-inline-price span { color: #74817c; font-size: 10px; font-weight: 750; }
.v7-inline-price input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #17251f;
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  text-align: right;
}

.order-v7-footer { grid-template-columns: auto minmax(110px, 1fr) auto !important; }
.order-v7-save-draft {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #d7e0dc;
  border-radius: 11px;
  background: #fff;
  color: #4e625b;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.v7-purchase-page { padding-bottom: 30px; }
.v7-purchase-form {
  display: grid;
  gap: 14px;
  width: min(calc(100% - 28px), 960px);
  margin: 0 auto;
}

.v7-purchase-head,
.v7-purchase-lines,
.v7-purchase-form > details,
.v7-purchase-footer {
  border: 1px solid #e0e7e4;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(22, 49, 41, .055);
}

.v7-purchase-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 12px;
  padding: 16px;
}

.v7-purchase-head label { display: grid; gap: 7px; color: #68766f; font-size: 12px; font-weight: 800; }
.v7-purchase-head input {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #d7e0dc;
  border-radius: 11px;
  background: #fbfcfc;
  color: #17251f;
  font: inherit;
}

.v7-purchase-lines { padding: 16px; }
.v7-purchase-lines > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.v7-purchase-lines > header > div { display: grid; gap: 3px; }
.v7-purchase-lines > header strong { font-size: 17px; }
.v7-purchase-lines > header small { color: #74817c; }
.v7-purchase-lines [data-purchase-lines] { display: grid; gap: 10px; }
.v7-purchase-lines .purchase-line-row { margin: 0; }
.v7-purchase-form > details { padding: 0 16px; }
.v7-purchase-form > details > summary { min-height: 50px; }
.v7-purchase-form > details > div { padding-bottom: 16px; }
.v7-purchase-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 16px; }

@media (max-width: 760px) {
  .order-v7-meta-grid { grid-template-columns: minmax(0, 1fr) 118px; }
  .order-v7-date { padding-inline: 9px; }
  .order-v7-date input { font-size: 12px; }

  .v7-inline-line.simple {
    grid-template-columns: minmax(0, 1fr) 34px;
    padding-block: 12px;
  }

  .v7-inline-line .v6-line-main { grid-column: 1 / -1; }
  .v7-inline-line .v6-line-main > b { display: block; font-size: 16px; }
  .v7-inline-line .v6-inline-stepper { grid-column: 1; grid-row: 2; justify-self: start; }
  .v7-inline-line .v7-inline-price { grid-column: 1; grid-row: 2; width: 104px; margin-left: 126px; }
  .v7-inline-line > .v5-line-delete { grid-column: 2; grid-row: 2; }

  .order-v7-footer {
    position: sticky;
    bottom: calc(64px + env(safe-area-inset-bottom));
    z-index: 8;
    grid-template-columns: auto minmax(0, 1fr) !important;
    padding: 10px !important;
    box-shadow: 0 -9px 26px rgba(25, 49, 42, .1) !important;
  }

  .order-v7-footer > div { grid-column: 1 / -1; grid-row: 1; }
  .order-v7-footer > .order-v7-save-draft { grid-column: 1; grid-row: 2; }
  .order-v7-footer > .button.primary { grid-column: 2; grid-row: 2; }

  .v7-purchase-form { width: calc(100% - 24px); gap: 0; }
  .v7-purchase-head { grid-template-columns: minmax(0, 1fr) 122px; border-radius: 17px 17px 0 0; }
  .v7-purchase-head input { min-height: 43px; padding-inline: 9px; font-size: 13px; }
  .v7-purchase-lines,
  .v7-purchase-form > details,
  .v7-purchase-footer { border-top: 0; border-radius: 0; box-shadow: none; }
  .v7-purchase-footer { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 8; border-radius: 0 0 17px 17px; box-shadow: 0 -9px 26px rgba(25, 49, 42, .1); }
  .v7-purchase-footer .button { flex: 1; }
}

body {
  background: var(--v3-canvas);
  color: var(--v3-ink);
}

.main-content {
  background: var(--v3-canvas);
}

.v3-registration {
  background: var(--v3-canvas);
  min-height: 100dvh;
}

.v3-registration .identity-page-bar {
  background: rgba(244, 246, 244, .94);
  border-bottom: 1px solid var(--v3-line);
  backdrop-filter: blur(18px);
}

.v3-registration-intro {
  max-width: 620px;
  margin: 0 auto;
  padding: 34px 24px 20px;
}

.v3-registration-intro > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--v3-green-dark);
  background: var(--v3-green-soft);
  font-size: 13px;
  font-weight: 800;
}

.v3-registration-intro h1 {
  margin: 14px 0 9px;
  color: var(--v3-ink);
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1.2;
  letter-spacing: -.04em;
}

.v3-registration-intro p {
  margin: 0;
  color: var(--v3-muted);
  font-size: 15px;
  line-height: 1.7;
}

.v3-registration-form {
  max-width: 620px;
  margin: 0 auto 40px;
  padding: 0 16px 28px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.registration-wizard-progress {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0 8px 18px;
  padding: 0;
  list-style: none;
}

.registration-wizard-progress li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #8a9490;
  font-size: 12px;
  font-weight: 700;
}

.registration-wizard-progress li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: #dbe1de;
}

.registration-wizard-progress i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #d8dfdc;
  border-radius: 50%;
  background: var(--v3-canvas);
  font-style: normal;
}

.registration-wizard-progress li.active,
.registration-wizard-progress li.done {
  color: var(--v3-green-dark);
}

.registration-wizard-progress li.active i,
.registration-wizard-progress li.done i {
  border-color: var(--v3-green);
  background: var(--v3-green);
  color: white;
}

.registration-wizard-progress li.done:not(:last-child)::after {
  background: var(--v3-green);
}

.registration-wizard-panel {
  display: grid;
  gap: 16px;
  padding: 22px 18px 18px;
  border: 1px solid var(--v3-line);
  border-radius: 22px;
  background: var(--v3-card);
  box-shadow: var(--v3-shadow);
}

.registration-wizard-panel[hidden] {
  display: none !important;
}

.registration-wizard-panel > header small {
  color: var(--v3-green);
  font-size: 12px;
  font-weight: 800;
}

.registration-wizard-panel > header h2 {
  margin: 3px 0 4px;
  font-size: 23px;
  line-height: 1.25;
}

.registration-wizard-panel > header h1 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -.03em;
}

.registration-wizard-panel > header p {
  margin: 0;
  color: var(--v3-muted);
  font-size: 14px;
  line-height: 1.55;
}

.registration-wizard-panel > label:not(.legal-consent),
.registration-wizard-panel .verification-field > label {
  gap: 7px;
  color: #34403c;
  font-size: 14px;
  font-weight: 700;
}

.registration-wizard-panel input:not([type='radio']):not([type='checkbox']) {
  min-height: 52px;
  padding-inline: 15px;
  border: 1px solid #d7dedb;
  border-radius: 13px;
  background: #fbfcfb;
  box-shadow: none;
}

.registration-wizard-panel input:focus {
  border-color: var(--v3-green);
  outline: 3px solid rgba(8, 122, 101, .11);
}

.industry-picker {
  margin: 0;
  padding: 0;
  border: 0;
}

.industry-picker legend {
  margin-bottom: 10px;
  color: #34403c;
  font-size: 14px;
  font-weight: 800;
}

.industry-picker > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.industry-choice {
  display: block;
  min-width: 0;
  cursor: pointer;
}

.industry-choice > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.industry-choice > span {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 9px;
  min-height: 58px;
  padding: 11px;
  border: 1px solid #dde3e0;
  border-radius: 14px;
  background: #fbfcfb;
}

.industry-choice .v2-icon {
  align-self: center;
  width: 34px;
  height: 34px;
}

.industry-choice b {
  align-self: center;
  overflow: hidden;
  color: var(--v3-ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.industry-choice small {
  grid-column: 2;
  overflow: hidden;
  color: var(--v3-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* V178 — task-led business flow and faster correction/search */
.v10-business-draft {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin: 0 14px 12px;
  padding: 12px;
  border: 1px solid #cfe5dd;
  border-radius: 16px;
  background: linear-gradient(135deg, #f3fbf8, #fff);
  color: #23342e;
  text-decoration: none;
  box-shadow: 0 7px 20px rgba(24, 72, 58, .07);
}
.v10-business-draft > span { display: grid; min-width: 0; gap: 2px; }
.v10-business-draft small { color: #6c7d76; font-size: 11px; font-weight: 750; }
.v10-business-draft strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.v10-business-draft > b { color: #08765e; font-size: 15px; white-space: nowrap; }
.v10-business-draft > i { color: #08765e; font-size: 12px; font-style: normal; font-weight: 850; white-space: nowrap; }

.order-v10-repeat {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid #d9e7e1;
  border-radius: 13px;
  background: #f7fbf9;
  color: #263a33;
  font: inherit;
  text-align: left;
}
.order-v10-repeat > span { display: grid; gap: 2px; }
.order-v10-repeat small { color: #73847d; font-size: 10px; }
.order-v10-repeat strong { font-size: 13px; }
.order-v10-repeat > b { color: #08765e; font-size: 12px; white-space: nowrap; }
.order-v10-existing { animation: v10-existing-line 1.1s ease; }
@keyframes v10-existing-line {
  0%, 100% { box-shadow: 0 0 0 0 rgba(8,118,94,0); }
  28%, 72% { box-shadow: 0 0 0 3px rgba(8,118,94,.24); }
}

.v10-ledger-finder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
  margin-bottom: 9px;
}
.v10-ledger-finder label {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  min-height: 45px;
  border: 1px solid #d7e0dc;
  border-radius: 12px;
  background: #fff;
}
.v10-ledger-finder label > span { display: grid; place-items: center; color: #698078; }
.v10-ledger-finder label .v2-icon { width: 18px; height: 18px; }
.v10-ledger-finder input,
.v10-ledger-finder select {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #26372f;
  font: inherit;
  font-size: 14px;
}
.v10-ledger-finder select {
  padding: 0 9px;
  border: 1px solid #d7e0dc;
  border-radius: 12px;
  background: #fff;
}

.v10-purchase-empty {
  display: grid;
  width: 100%;
  min-height: 124px;
  place-items: center;
  align-content: center;
  gap: 4px;
  border: 1px dashed #bfd6cd;
  border-radius: 16px;
  background: #f8fbfa;
  color: #23362f;
  font: inherit;
}
.v10-purchase-empty > span { color: #08765e; font-size: 28px; line-height: 1; }
.v10-purchase-empty > strong { font-size: 15px; }
.v10-purchase-empty > small { color: #75867f; font-size: 11px; }

.industry-choice:has(input:checked) > span {
  border-color: var(--v3-green);
  background: var(--v3-green-soft);
  box-shadow: inset 0 0 0 1px var(--v3-green);
}

.industry-choice:has(input:checked) > span::after {
  content: '✓';
  position: absolute;
  top: 7px;
  right: 9px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--v3-green);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.registration-wizard-actions {
  display: grid;
  grid-template-columns: minmax(96px, .7fr) minmax(0, 1.3fr);
  gap: 10px;
}

.registration-wizard-panel .button {
  min-height: 50px;
  border-radius: 13px;
}

.registration-finish-note {
  text-align: center;
  color: var(--v3-muted);
  line-height: 1.5;
}

.v3-home {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 20px 16px 28px;
  background: var(--v3-canvas);
}

.v3-home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.v3-home-head > div {
  min-width: 0;
}

.v3-home-head > div > small {
  display: block;
  margin-bottom: 4px;
  color: var(--v3-muted);
  font-size: 13px;
}

.v3-home-head > div > a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--v3-ink);
  text-decoration: none;
}

.v3-home-head strong {
  overflow: hidden;
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-home-head > div > a span {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e7ece9;
  color: #53605b;
  font-size: 11px;
  font-weight: 700;
}

.v3-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dbe9e4;
  color: var(--v3-green-dark);
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
}

.v3-primary-task {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 112px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #087a65, #0b5e54);
  color: white;
  box-shadow: 0 14px 32px rgba(8, 92, 78, .2);
  text-decoration: none;
}

.v3-primary-task > .v2-icon {
  width: 48px;
  height: 48px;
  border: 0;
  background: rgba(255, 255, 255, .14);
  color: white;
}

.v3-primary-task > span {
  display: grid;
  min-width: 0;
}

.v3-primary-task small {
  color: #bfe8de;
  font-size: 11px;
  font-weight: 800;
}

.v3-primary-task strong {
  margin: 2px 0;
  font-size: 21px;
  line-height: 1.2;
}

.v3-primary-task em {
  overflow: hidden;
  color: rgba(255, 255, 255, .77);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-primary-task > b {
  font-size: 13px;
  white-space: nowrap;
}

.v3-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0 18px;
}

.v3-quick-action {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 10px 3px;
  border: 0;
  background: transparent;
  color: var(--v3-ink);
  text-align: center;
  text-decoration: none;
}

.v3-quick-action .v2-icon {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 13px;
}

.v3-quick-action > span {
  display: block;
  min-width: 0;
}

.v3-quick-action strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-quick-action small {
  display: none;
}

.v3-quick-more {
  font: inherit;
  cursor: pointer;
}

.v3-overview,
.v3-section,
.v3-analysis-link {
  margin-bottom: 14px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius);
  background: var(--v3-card);
  box-shadow: var(--v3-shadow);
}

.v3-overview > header,
.v3-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 11px;
}

.v3-overview h2,
.v3-section h2 {
  margin: 0;
  font-size: 17px;
}

.v3-overview header a,
.v3-section header a,
.v3-section header span {
  color: var(--v3-green);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.v3-overview > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 7px 15px;
}

.v3-overview article {
  min-width: 0;
  padding: 6px 9px;
  border-right: 1px solid #edf0ee;
}

.v3-overview article:last-child {
  border-right: 0;
}

.v3-overview article > * {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-overview article small,
.v3-overview article span {
  color: var(--v3-muted);
  font-size: 10px;
}

.v3-overview article strong {
  margin: 5px 0 3px;
  font-size: 16px;
}

.v3-attention > div > a,
.v3-analysis-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  color: var(--v3-ink);
  text-decoration: none;
}

.v3-attention > div > a + a {
  border-top: 1px solid #edf0ee;
}

.v3-attention .v2-icon,
.v3-analysis-link .v2-icon {
  width: 36px;
  height: 36px;
}

.v3-attention a > span,
.v3-analysis-link > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.v3-attention strong,
.v3-analysis-link strong {
  font-size: 14px;
}

.v3-attention small,
.v3-analysis-link small {
  overflow: hidden;
  color: var(--v3-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v3-recent > div .native-record {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.v3-empty {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 28px 18px;
  color: var(--v3-muted);
  text-align: center;
}

.v3-empty strong {
  color: #3b4743;
  font-size: 14px;
}

.v3-empty span {
  font-size: 12px;
}

.v3-analysis-link {
  grid-template-columns: 38px minmax(0, 1fr) 22px;
}

.order-form-v3 {
  display: grid;
  gap: 12px;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 0 14px 12px;
}

.order-form-v3 > section,
.order-form-v3 > details {
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius);
  background: var(--v3-card);
  box-shadow: var(--v3-shadow);
}

.order-v3-customer,
.order-v3-products {
  padding: 15px;
}

.order-v3-customer > header,
.order-v3-products > header,
.order-v3-line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-v3-customer > header span,
.order-v3-products > header > span {
  display: grid;
  gap: 1px;
}

.order-v3-customer header small,
.order-v3-products header small {
  color: var(--v3-green);
  font-size: 11px;
  font-weight: 800;
}

.order-v3-customer h2,
.order-v3-products h2 {
  margin: 0;
  font-size: 18px;
}

.order-v3-customer header button,
.order-v3-products header button,
.order-v3-line-head button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d6dedb;
  border-radius: 10px;
  background: white;
  color: var(--v3-green-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.order-v3-products header > div {
  display: flex;
  gap: 7px;
}

.order-v3-products header button.primary {
  border-color: var(--v3-green);
  background: var(--v3-green);
  color: white;
}

.order-v3-customer-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 66px;
  margin-top: 13px;
  padding: 8px 4px;
  border: 0;
  border-top: 1px solid #edf0ee;
  background: white;
  color: var(--v3-ink);
  text-align: left;
  font: inherit;
}

.order-v3-customer-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--v3-green-soft);
  color: var(--v3-green-dark);
  font-weight: 900;
}

.order-v3-customer-row > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.order-v3-customer-row strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-v3-customer-row small {
  overflow: hidden;
  color: var(--v3-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-v3-customer-row b {
  color: var(--v3-green);
  font-size: 12px;
}

.order-v3-first-add {
  display: grid;
  justify-items: start;
  gap: 3px;
  width: 100%;
  margin-top: 12px;
  padding: 15px;
  border: 1px dashed #b5c9c2;
  border-radius: 13px;
  background: #f6faf8;
  color: var(--v3-green-dark);
  text-align: left;
  font: inherit;
}

.order-v3-first-add small {
  color: var(--v3-muted);
}

.order-v3-address {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #edf0ee;
}

.order-v3-address > span {
  color: var(--v3-muted);
  font-size: 12px;
}

.order-v3-address select {
  min-width: 0;
  height: 38px;
  padding: 0 8px;
  border: 0;
  background: white;
  color: #3e4a46;
  font-size: 13px;
}

.order-v3-address button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: var(--v3-green-soft);
  color: var(--v3-green-dark);
  font-size: 18px;
}

.order-v3-recent {
  margin: 14px -15px 0;
  padding: 10px 15px 12px;
  border-block: 1px solid #edf0ee;
  background: #fafbfa;
}

.order-v3-recent > small {
  display: block;
  margin-bottom: 7px;
  color: var(--v3-muted);
  font-size: 11px;
}

.order-v3-recent > div {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.order-v3-recent button {
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
  min-width: 104px;
  max-width: 148px;
  padding: 9px 11px;
  border: 1px solid #dce3e0;
  border-radius: 11px;
  background: white;
  color: var(--v3-ink);
  text-align: left;
  font: inherit;
}

.order-v3-recent strong,
.order-v3-recent span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-v3-recent strong {
  font-size: 13px;
}

.order-v3-recent span {
  color: var(--v3-muted);
  font-size: 10px;
}

.order-v3-line-head {
  padding: 14px 0 10px;
}

.order-v3-line-head > span:first-child {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.order-v3-line-head strong {
  font-size: 15px;
}

.order-v3-line-head small {
  color: var(--v3-muted);
  font-size: 11px;
}

.order-form-v3 .line-items {
  display: grid;
  gap: 10px;
}

.order-v3-empty {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 100%;
  min-height: 124px;
  padding: 18px;
  border: 1px dashed #b9c9c3;
  border-radius: 14px;
  background: #f8faf9;
  color: var(--v3-green-dark);
  text-align: center;
  font: inherit;
}

.order-v3-empty > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--v3-green-soft);
  font-size: 24px;
}

.order-v3-empty strong {
  font-size: 14px;
}

.order-v3-empty small {
  color: var(--v3-muted);
  font-size: 11px;
}

.order-form-v3 .line-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, .8fr) 40px;
  gap: 9px;
  padding: 12px;
  border: 1px solid #dfe5e2;
  border-radius: 14px;
  background: white;
  box-shadow: none;
}

.order-form-v3 .line-item > label {
  min-width: 0;
  color: var(--v3-muted);
  font-size: 11px;
}

.order-form-v3 .line-item > label.product-field {
  grid-column: 1 / -2;
}

.order-form-v3 .line-item input,
.order-form-v3 .line-item select {
  min-width: 0;
  min-height: 45px;
  margin-top: 5px;
  padding: 0 10px;
  border: 1px solid #d8dfdc;
  border-radius: 10px;
  background: #fbfcfb;
  font-size: 16px;
  font-weight: 750;
}

.order-form-v3 .line-item > .icon-button.danger {
  grid-column: 4;
  grid-row: 1;
  width: 36px;
  height: 36px;
  align-self: center;
}

.order-form-v3 .line-amount {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 5px 8px;
  border-radius: 10px;
  background: var(--v3-green-soft);
}

.order-form-v3 .line-amount span {
  color: var(--v3-muted);
  font-size: 10px;
}

.order-form-v3 .line-amount strong {
  overflow: hidden;
  color: var(--v3-green-dark);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-form-v3 .clothing-matrix-editor,
.order-form-v3 .measurement-editor {
  grid-column: 1 / -1;
}

.order-v3-more {
  padding: 0 15px;
}

.order-v3-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  color: #3b4743;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.order-v3-more summary span {
  color: var(--v3-muted);
  font-size: 11px;
  font-weight: 600;
}

.order-v3-more > label {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  color: var(--v3-muted);
  font-size: 12px;
}

.order-v3-more textarea {
  min-height: 76px;
  padding: 11px;
  border: 1px solid #d8dfdc;
  border-radius: 11px;
  resize: vertical;
}

.order-form-v3 .order-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  align-items: center;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius);
  background: white;
  box-shadow: var(--v3-shadow);
}

.order-form-v3 .order-footer > small {
  grid-column: 1 / -1;
  color: var(--v3-muted);
  font-size: 10px;
}

.order-form-v3 .order-footer > div {
  display: grid;
}

.order-form-v3 .order-footer > div span {
  color: var(--v3-muted);
  font-size: 11px;
}

.order-form-v3 .order-footer > div strong {
  font-size: 22px;
}

.order-form-v3 .order-footer > button {
  min-width: 126px;
  min-height: 48px;
  border-radius: 13px;
}

.factory-print-sheet .print-matrix th:first-child,
.factory-print-sheet .print-matrix td:first-child {
  width: 116px;
}

.factory-print-sheet .print-matrix th:nth-child(n+4):nth-child(-n+13),
.factory-print-sheet .print-matrix td:nth-child(n+4):nth-child(-n+13) {
  width: 40px;
}

.factory-print-sheet .print-matrix th:nth-child(16),
.factory-print-sheet .print-matrix td:nth-child(16) {
  width: 84px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.factory-print-sheet .print-matrix th:nth-child(17),
.factory-print-sheet .print-matrix td:nth-child(17) {
  width: 92px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.factory-print-sheet .print-matrix td.matrix-size {
  display: table-cell;
}

.factory-print-sheet .matrix-size small {
  display: block;
  padding-top: 3px;
  color: #111;
  font-size: 10px;
  line-height: 12px;
}

.factory-print-sheet .matrix-size small + strong {
  height: auto;
  min-height: 24px;
}

.factory-print-sheet .print-matrix.print-simple {
  font-size: 16px;
}

.factory-print-sheet .print-matrix.print-simple th,
.factory-print-sheet .print-matrix.print-simple td {
  height: 54px;
  padding: 7px 9px;
}

.factory-print-sheet .print-matrix.print-simple thead tr:last-child th {
  height: 42px;
  font-size: 14px;
}

.factory-print-sheet .print-matrix.print-simple th:first-child,
.factory-print-sheet .print-matrix.print-simple td:first-child { width: 44%; }
.factory-print-sheet .print-matrix.print-simple th:nth-child(2),
.factory-print-sheet .print-matrix.print-simple td:nth-child(2) { width: 10%; }
.factory-print-sheet .print-matrix.print-simple th:nth-child(3),
.factory-print-sheet .print-matrix.print-simple td:nth-child(3) { width: 14%; }
.factory-print-sheet .print-matrix.print-simple th:nth-child(4),
.factory-print-sheet .print-matrix.print-simple td:nth-child(4) { width: 15%; }
.factory-print-sheet .print-matrix.print-simple th:nth-child(5),
.factory-print-sheet .print-matrix.print-simple td:nth-child(5) { width: 17%; }
.factory-print-sheet .print-matrix.print-simple td:nth-child(n+3) {
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .v3-home {
    padding-top: 15px;
  }

  .order-form-v3 .line-item {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 40px;
  }

  .order-form-v3 .line-item > label.product-field {
    grid-column: 1 / 3;
  }

  .order-form-v3 .line-item > .icon-button.danger {
    grid-column: 3;
  }

  .order-form-v3 .line-amount {
    min-height: 50px;
  }
}

/* V180 — quiet sync chrome and verifiable business records */
.v12-home-account { display: flex; align-items: center; gap: 10px; }
.sync-status-pill {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #dce7e2;
  border-radius: 999px;
  background: #fff;
  color: #42645a;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}
.sync-status-pill > i { width: 7px; height: 7px; border-radius: 50%; background: #3da286; box-shadow: 0 0 0 3px rgba(61,162,134,.12); }
.sync-status-pill[data-sync-state="saving"] > i,
.sync-status-pill[data-sync-state="connecting"] > i { background: #3b83bd; box-shadow: 0 0 0 3px rgba(59,131,189,.12); }
.sync-status-pill[data-sync-state="offline"] > i { background: #c89027; box-shadow: 0 0 0 3px rgba(200,144,39,.13); }
.sync-status-pill[data-sync-state="danger"] { border-color: #eabcb6; background: #fff5f3; color: #9f4035; }
.sync-status-pill[data-sync-state="danger"] > i { background: #c84b3c; box-shadow: 0 0 0 3px rgba(200,75,60,.13); }
.sync-status-pill[data-sync-state="local"] > i { background: #75817c; box-shadow: 0 0 0 3px rgba(117,129,124,.12); }

.order-v8-autosave {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.order-v8-autosave[data-sync-state="saving"] i,
.order-v8-autosave[data-sync-state="connecting"] i { background: #3b83bd; box-shadow: 0 0 0 4px rgba(59, 131, 189, .12); }
.order-v8-autosave[data-sync-state="offline"] i { background: #c89027; box-shadow: 0 0 0 4px rgba(200, 144, 39, .13); }
.order-v8-autosave[data-sync-state="danger"] i { background: #c84b3c; box-shadow: 0 0 0 4px rgba(200, 75, 60, .13); }

.ledger-protection {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid #d8e7e1;
  border-radius: 15px;
  background: #f4faf7;
}
.ledger-protection > i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 11px;
  background: #dcefe8;
  color: #176d5b;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.ledger-protection > span { display: grid; min-width: 0; gap: 3px; }
.ledger-protection strong { color: #153d34; font-size: 13px; }
.ledger-protection small { color: #687970; font-size: 10px; line-height: 1.45; }
.ledger-protection.draft { border-color: #dce4e8; background: #f7f9fa; }
.ledger-protection.draft > i { background: #e8eef1; color: #526a76; }
.ledger-protection.voided { border-color: #efd2cd; background: #fff6f4; }
.ledger-protection.voided > i { background: #f8dfda; color: #9b4136; }
.order-review-page > .ledger-protection { margin-bottom: 0; }

.data-safety-intro {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.data-safety-intro > i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3da286;
  box-shadow: 0 0 0 5px rgba(61, 162, 134, .12);
}
.data-safety-intro > span { display: grid; gap: 3px; }
.data-safety-intro[data-sync-state="offline"] > i { background: #c89027; box-shadow: 0 0 0 5px rgba(200, 144, 39, .13); }
.data-safety-intro[data-sync-state="danger"] > i { background: #c84b3c; box-shadow: 0 0 0 5px rgba(200, 75, 60, .13); }
.data-safety-facts { display: grid; gap: 8px; margin-top: 12px; }
.data-safety-facts > span {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 10px;
  padding: 11px 12px;
  border: 1px solid #e1e8e4;
  border-radius: 13px;
  background: #fff;
}
.data-safety-facts > span > i { grid-row: 1 / 3; display: grid; width: 27px; height: 27px; place-items: center; border-radius: 9px; background: #e8f4f0; color: #176d5b; font-size: 11px; font-style: normal; font-weight: 900; }
.data-safety-facts strong { color: var(--navy); font-size: 13px; }
.data-safety-facts small { color: #718079; font-size: 10px; line-height: 1.45; }
.data-sync-retry { width: 100%; margin-top: 12px; }

.native-data-center { max-width: 860px; }
.data-center-status {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 19px 20px;
  border: 1px solid #cfe1db;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef8f4, #fff);
  box-shadow: 0 9px 28px rgba(17, 61, 50, .07);
}
.data-center-status > i { width: 11px; height: 11px; border-radius: 50%; background: #2c9b7f; box-shadow: 0 0 0 6px rgba(44,155,127,.12); }
.data-center-status > span { display: grid; min-width: 0; gap: 3px; }
.data-center-status small { color: #6e8179; font-size: 10px; font-weight: 750; }
.data-center-status strong { color: #153d34; font-size: 20px; }
.data-center-status p { margin: 0; color: #63766f; font-size: 11px; }
.data-center-status > button { min-height: 38px; padding: 0 13px; border: 1px solid #b8d8ce; border-radius: 11px; background: #fff; color: #176d5b; font: inherit; font-size: 11px; font-weight: 850; }
.data-center-status[data-sync-state="offline"] { border-color: #ead9aa; background: #fffaf0; }
.data-center-status[data-sync-state="offline"] > i { background: #c89027; box-shadow: 0 0 0 6px rgba(200,144,39,.13); }
.data-center-status[data-sync-state="danger"] { border-color: #ecc4be; background: #fff5f3; }
.data-center-status[data-sync-state="danger"] > i { background: #c84b3c; box-shadow: 0 0 0 6px rgba(200,75,60,.13); }
.recovery-copy-list { padding: 16px; }
.recovery-copy-list h2 { margin: 0 0 8px; font-size: 16px; }
.recovery-copy-list > p { margin: 0 0 12px; font-size: 12px; color: #53675f; }
.recovery-copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px 0; }
.recovery-copy-row > span { font-size: 12px; overflow-wrap: anywhere; }
.recovery-copy-row .button { min-height: 44px; padding: 8px 12px; font-size: 14px; }
.recovery-copy-details details { border-bottom: 1px solid #e3e8e5; padding: 10px 0; }
.recovery-copy-details summary { min-height: 36px; cursor: pointer; font-weight: 650; }
.recovery-copy-details section { padding: 10px; background: #f5f7f6; margin-bottom: 8px; border-radius: 8px; overflow-wrap: anywhere; }
.recovery-copy-details p { font-size: 14px; margin: 6px 0; }

.data-integrity-panel > header,
.data-activity-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.data-integrity-panel > header > div,
.data-activity-panel > header > div { display: grid; gap: 3px; }
.data-integrity-panel > header h2,
.data-activity-panel > header h2 { margin: 0; }
.data-integrity-panel > header p,
.data-activity-panel > header p { margin: 0; color: #78867f; font-size: 10px; }
.data-integrity-panel > header > span { padding: 4px 9px; border-radius: 999px; background: #e4f3ed; color: #176d5b; font-size: 10px; font-weight: 900; }
.data-integrity-panel.has-issues > header > span { background: #fff0ed; color: #a44237; }
.data-integrity-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #e8eeeb; border-bottom: 1px solid #e8eeeb; }
.data-integrity-metrics > span { display: grid; gap: 5px; padding: 15px 17px; border-right: 1px solid #e8eeeb; }
.data-integrity-metrics > span:last-child { border-right: 0; }
.data-integrity-metrics small { color: #75847d; font-size: 10px; }
.data-integrity-metrics strong { color: var(--navy); font-size: 22px; }
.data-integrity-ok { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 11px; margin: 13px; padding: 12px; border-radius: 13px; background: #f3f8f6; }
.data-integrity-ok > i { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #dcefe8; color: #176d5b; font-style: normal; font-weight: 900; }
.data-integrity-ok > span { display: grid; gap: 2px; }
.data-integrity-ok strong { color: #244a41; font-size: 12px; }
.data-integrity-ok small { color: #74827c; font-size: 10px; }
.data-integrity-issues { display: grid; padding: 6px 13px 13px; }
.data-integrity-issues > a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 58px; padding: 9px 4px; border-bottom: 1px solid #edf1ef; color: inherit; }
.data-integrity-issues > a:last-child { border-bottom: 0; }
.data-integrity-issues span { display: grid; gap: 3px; }
.data-integrity-issues strong { color: #8f3c34; font-size: 12px; }
.data-integrity-issues small { color: #7b8580; font-size: 10px; }
.data-integrity-issues b { color: #a4473d; font-size: 10px; }

.data-activity-panel > div { display: grid; }
.data-activity-row { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 66px; padding: 10px 17px; border-top: 1px solid #edf1ef; color: inherit; }
.data-activity-row > i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: #e6f3ee; color: #176d5b; font-size: 11px; font-style: normal; font-weight: 900; }
.data-activity-row > i.amber { background: #fff3d8; color: #9b6c16; }
.data-activity-row > i.blue { background: #e8f1f7; color: #386b8c; }
.data-activity-row > i.red { background: #fae7e4; color: #a54439; }
.data-activity-row > span { display: grid; min-width: 0; gap: 3px; }
.data-activity-row > span strong,
.data-activity-row > span small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-activity-row > span strong { color: var(--navy); font-size: 12px; }
.data-activity-row > span small { color: #78857f; font-size: 10px; }
.data-activity-row > b { color: #24443b; font-size: 12px; white-space: nowrap; }

.data-rules-panel > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #edf1ef; }
.data-rules-panel > div > span { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 3px 9px; padding: 15px; border-right: 1px solid #edf1ef; }
.data-rules-panel > div > span:last-child { border-right: 0; }
.data-rules-panel > div i { grid-row: 1 / 3; display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: #edf4f1; color: #315e52; font-size: 10px; font-style: normal; font-weight: 900; }
.data-rules-panel > div strong { color: var(--navy); font-size: 11px; }
.data-rules-panel > div small { color: #77857f; font-size: 9px; line-height: 1.45; }
.data-rules-panel > button { width: calc(100% - 26px); min-height: 40px; margin: 0 13px 13px; border: 1px solid #d9e4df; border-radius: 11px; background: #f7faf9; color: #315e52; font: inherit; font-size: 11px; font-weight: 800; }

@media (max-width: 640px) {
  .v12-home-account { gap: 7px; }
  .sync-status-pill { min-height: 28px; padding-inline: 8px; }
  .ledger-protection { padding: 11px 12px; border-radius: 14px; }
  .data-center-status { grid-template-columns: 11px minmax(0, 1fr); gap: 12px; padding: 16px; border-radius: 17px; }
  .data-center-status strong { font-size: 18px; }
  .data-center-status > button { grid-column: 1 / -1; width: 100%; }
  .data-integrity-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-integrity-metrics > span:nth-child(2) { border-right: 0; }
  .data-integrity-metrics > span:nth-child(-n+2) { border-bottom: 1px solid #e8eeeb; }
  .data-activity-row { padding-inline: 13px; }
  .data-rules-panel > div { grid-template-columns: 1fr; }
  .data-rules-panel > div > span { border-right: 0; border-bottom: 1px solid #edf1ef; }
  .data-rules-panel > div > span:last-child { border-bottom: 0; }
}

/* V160 — mobile task-first shell */
.v5-home {
  display: grid;
  gap: 14px;
}

.v5-task-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e7ecea;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 54, 44, .07);
}

.v5-task-grid > a,
.v5-task-grid > button {
  display: grid;
  min-height: 112px;
  place-items: center;
  align-content: center;
  gap: 9px;
  border: 0;
  border-right: 1px solid #edf1ef;
  background: transparent;
  color: #1e2d28;
  text-align: center;
  text-decoration: none;
}

.v5-task-grid > :last-child { border-right: 0; }

.v5-task-grid .v2-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}

.v5-task-grid strong { font-size: 15px; }
.v5-task-grid small { color: #7a8983; font-size: 11px; }

.v5-task-grid .primary {
  background: linear-gradient(145deg, #eaf8f3, #f8fffc);
  color: #08765e;
}

.v5-home-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e7ecea;
  border-radius: 18px;
  background: #e7ecea;
}

.v5-home-summary a {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.v5-home-summary span { color: #77847f; font-size: 12px; }
.v5-home-summary strong { overflow: hidden; color: #17241f; font-size: 19px; text-overflow: ellipsis; }

.v5-order-lines {
  display: grid;
  gap: 10px;
}

.v5-order-line {
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e9e6;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(15, 45, 37, .045);
}

.v5-order-line > button:first-child {
  display: flex;
  width: 100%;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 50px 14px 15px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.v5-order-line > button:first-child > span:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.v5-order-line strong { font-size: 17px; }
.v5-order-line small { color: #7d8985; font-size: 12px; }
.v5-order-line em { overflow: hidden; color: #40504a; font-size: 13px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.v5-order-line > button:first-child > span:last-child { display: flex; align-items: center; gap: 8px; }
.v5-order-line > button:first-child b { color: #08765e; font-size: 17px; white-space: nowrap; }
.v5-order-line > button:first-child i { color: #9caaa5; font-size: 22px; font-style: normal; }

.v5-line-delete {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: #f5f7f6;
  color: #9aa6a2;
  font-size: 18px;
}

.order-v5-address-add {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 1px dashed #cbd8d3;
  border-radius: 13px;
  background: #fbfdfc;
  color: #277866;
  font-weight: 750;
}

.order-v5-address-add span { color: #8c9994; font-size: 12px; font-weight: 500; }

.order-line-modal,
.order-line-modal-matrix { width: min(720px, calc(100vw - 24px)); }

.v5-line-editor {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
}

.v5-line-editor-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 2px 16px;
  border-bottom: 1px solid #e8ecea;
}

.v5-line-editor-head > span { display: grid; min-width: 0; flex: 1; gap: 3px; }
.v5-line-editor-head strong { overflow: hidden; font-size: 21px; text-overflow: ellipsis; white-space: nowrap; }
.v5-line-editor-head small { color: #7a8782; }
.v5-line-editor-head label { display: grid; width: 128px; gap: 5px; color: #697772; font-size: 12px; }
.v5-line-editor-head input { width: 100%; min-height: 44px; font-size: 17px; font-weight: 750; text-align: right; }

.v5-quantity-editor {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px 10px 10px;
}

.v5-quantity-editor > span { color: #66736f; font-size: 13px; font-weight: 750; }
.v5-quantity-editor > div { display: grid; grid-template-columns: 56px minmax(120px, 180px) 56px; gap: 10px; }
.v5-quantity-editor button { border: 0; border-radius: 16px; background: #e7f5f0; color: #08765e; font-size: 28px; font-weight: 500; }
.v5-quantity-editor input { min-height: 58px; border-radius: 16px; font-size: 27px; font-weight: 800; text-align: center; }
.v5-quantity-editor small { color: #7c8985; font-size: 13px; }

.measurement-price-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #5f6e69;
  font-size: 13px;
  font-weight: 750;
}

.measurement-price-field input {
  width: 126px;
  min-height: 42px;
  font-size: 17px;
  font-weight: 800;
  text-align: right;
}

@media (max-width: 760px) {
  .v5-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v5-task-grid > a,
  .v5-task-grid > button { min-height: 98px; border-right: 1px solid #edf1ef; border-bottom: 1px solid #edf1ef; }
  .v5-task-grid > :nth-child(2n) { border-right: 0; }
  .v5-task-grid > :nth-last-child(-n + 2) { border-bottom: 0; }
  .v5-task-grid small { display: none; }
  .v5-home-summary a { padding: 13px 10px; }
  .v5-home-summary strong { font-size: 16px; }
  .v5-order-line > button:first-child { min-height: 78px; padding-left: 13px; }
  .v5-order-line > button:first-child b { font-size: 15px; }
  .order-line-modal,
  .order-line-modal-matrix {
    display: grid;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 16px);
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    margin-top: auto;
    border-radius: 24px 24px 0 0;
  }
  .order-line-modal > form,
  .order-line-modal-matrix > form {
    display: grid;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .order-line-modal .modal-body,
  .order-line-modal-matrix .modal-body {
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .order-line-modal-matrix .modal-body { padding-inline: 12px; }
  .order-line-modal > form > footer,
  .order-line-modal-matrix > form > footer {
    position: relative;
    z-index: 3;
    background: #fff;
    box-shadow: 0 -8px 24px rgba(15, 41, 33, .06);
  }
  .order-line-modal-matrix .matrix-color-cell input { width: 100%; }
  .v5-line-editor-head { align-items: center; }
  .v5-line-editor-head strong { font-size: 18px; }
  .v5-line-editor-head label { width: 116px; }
  #app[data-route='new-order'] .bottom-nav,
  #app[data-route='return-order'] .bottom-nav,
  #app[data-route='edit-order'] .bottom-nav { display: none !important; }
  #app[data-route='new-order'] .main-content,
  #app[data-route='return-order'] .main-content,
  #app[data-route='edit-order'] .main-content { padding-bottom: 24px; }
}

@media (min-width: 641px) {
  .v3-home {
    padding-top: 32px;
  }

  .order-form-v3 {
    padding-inline: 0;
  }
}

/* V4: fewer words, fewer decisions, task-first mobile flow */
.simple-auth-entry {
  width: min(460px, 100%);
  box-shadow: 0 12px 44px rgba(18, 38, 32, .08);
}

.simple-auth-entry .auth-entry-hero {
  margin: 38px 0 28px;
  padding: 0;
  background: transparent;
  color: var(--v3-ink);
}

.simple-auth-entry .auth-entry-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 9vw, 48px);
}

.simple-auth-entry .auth-entry-hero p {
  color: var(--v3-muted);
  font-size: 16px;
}

.simple-auth-entry .legal-links,
.simple-login-entry .legal-links {
  margin-top: 24px;
}

.simple-login-entry {
  width: min(460px, 100%);
}

.simple-login-entry .account-login-form {
  margin-top: 22px;
}

.simple-login-entry .account-login-form h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.v3-registration-form {
  padding-top: 22px;
}

.v3-registration .registration-wizard-panel {
  box-shadow: none;
}

.v3-registration .legal-consent {
  margin-top: 2px;
}

/* V241 — safer, calmer registration with explicit consent and password confirmation */
.registration-legal-consent {
  padding: 13px 14px;
  border: 1px solid #d9e3df;
  border-radius: 14px;
  background: #f7faf8;
}

.registration-legal-consent > span {
  display: grid;
  gap: 5px;
}

.registration-legal-consent strong {
  color: #263530;
  font-size: 13px;
  font-weight: 750;
}

.registration-legal-consent small {
  color: #66726e;
  font-size: 12px;
  line-height: 1.55;
}

/* V242 — native registration flow with fewer visual layers and live feedback */
.v242-registration {
  min-height: 100dvh;
  background: #f4f7f5;
}

.v242-registration .identity-page-bar {
  top: 0;
  border: 0;
  border-bottom: 1px solid #e1e7e4;
  border-radius: 0;
  background: rgba(250, 252, 251, .96);
  box-shadow: none;
}

.v242-registration-form {
  width: min(100%, 540px);
  margin: 0 auto;
  padding: 18px 16px calc(28px + env(safe-area-inset-bottom));
}

.registration-flow-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  margin: 0 2px 22px;
  color: #65736e;
  font-size: 12px;
  font-weight: 800;
}

.registration-flow-progress > i {
  overflow: hidden;
  height: 4px;
  border-radius: 999px;
  background: #dce4e0;
}

.registration-flow-progress > i > b {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: #087a65;
  transition: width .22s ease;
}

.v242-registration-form .registration-wizard-panel {
  gap: 17px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.v242-registration-form .registration-wizard-panel > header {
  padding: 2px 2px 5px;
}

.v242-registration-form .registration-wizard-panel > header small {
  color: #087a65;
  font-size: 12px;
  letter-spacing: .04em;
}

.v242-registration-form .registration-wizard-panel > header h1 {
  margin-top: 5px;
  color: #17231f;
  font-size: 29px;
  line-height: 1.18;
}

.v242-registration-form .registration-wizard-panel > header p {
  margin-top: 7px;
  color: #6a7772;
  font-size: 13px;
}

.v242-registration-form .registration-wizard-panel > label:not(.legal-consent),
.v242-registration-form .registration-wizard-panel .verification-field > label,
.v242-registration-form .registration-password-fields > label {
  display: grid;
  gap: 7px;
  color: #26342f;
  font-size: 13px;
  font-weight: 800;
}

.v242-registration-form .registration-wizard-panel input:not([type='radio']):not([type='checkbox']) {
  width: 100%;
  min-height: 55px;
  padding: 0 15px;
  border: 1px solid #d8e0dc;
  border-radius: 15px;
  background: #fff;
  color: #18231f;
  font-size: 16px;
  font-weight: 650;
}

.v242-registration-form .verification-field {
  grid-template-columns: minmax(0, 1fr) 116px;
}

.v242-registration-form .verification-field .button {
  min-height: 55px;
  border-radius: 15px;
  background: #e9f4f0;
  color: #08705d;
}

.registration-password-fields {
  display: grid;
  gap: 14px;
}

.registration-password-control {
  position: relative;
}

.v242-registration-form .registration-password-control input {
  padding-right: 64px !important;
}

.registration-password-control > button {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 48px;
  min-height: 38px;
  padding: 0 8px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #08705d;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.registration-password-status {
  min-height: 19px;
  margin: -3px 2px 0;
  color: #7a8581;
  font-size: 12px;
}

.registration-password-status[data-state='error'] { color: #b4473e; }
.registration-password-status[data-state='success'] { color: #08705d; }
.registration-password-status[data-state='success']::before { content: '✓ '; font-weight: 900; }

.v242-registration-form .industry-picker legend {
  margin-bottom: 9px;
  font-size: 13px;
}

.v242-registration-form .industry-choice > span {
  min-height: 62px;
  border-radius: 15px;
  background: #fff;
}

.registration-legal-box {
  overflow: hidden;
  border: 1px solid #d9e2de;
  border-radius: 15px;
  background: #fff;
}

.v242-registration-form .registration-legal-consent {
  margin: 0;
  padding: 13px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #34423d;
}

.v242-registration-form .registration-legal-consent > span {
  display: block;
  line-height: 1.65;
}

.v242-registration-form .registration-legal-consent input {
  width: 20px;
  height: 20px;
}

.registration-legal-detail {
  border-top: 1px solid #edf1ef;
}

.registration-legal-detail summary {
  padding: 10px 14px;
  color: #66736e;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.registration-legal-detail p {
  margin: 0;
  padding: 0 14px 13px;
  color: #6c7773;
  font-size: 12px;
  line-height: 1.65;
}

.v242-registration-form .registration-wizard-panel > .button,
.v242-registration-form .registration-wizard-actions .button {
  min-height: 55px;
  border-radius: 15px;
  font-size: 16px;
}

@media (max-width: 640px) {
  .v242-registration-form [data-registration-panel='2'] {
    padding-bottom: 82px;
  }

  .v242-registration-form .registration-wizard-actions {
    position: fixed;
    z-index: 35;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    padding: 8px;
    border: 1px solid rgba(214, 224, 219, .92);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 30px rgba(20, 52, 42, .14);
    backdrop-filter: blur(18px);
  }
}

.v3-primary-task {
  min-height: 84px;
}

.v3-primary-task > span {
  align-content: center;
}

.v3-primary-task > span small,
.v3-primary-task > span em {
  display: none;
}

.v3-primary-task > b {
  min-width: 58px;
  text-align: center;
}

.v3-quick-action {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 84px;
  padding: 13px 8px;
  text-align: center;
}

.v3-quick-action > span:not(.v2-icon),
.v3-quick-action small {
  display: none;
}

.v3-quick-action > strong,
.v3-quick-action > span > strong {
  font-size: 13px;
}

.v3-overview article span,
.v3-attention a small {
  display: none;
}

.v4-empty-action {
  padding: 24px;
  color: var(--v3-muted);
  text-align: center;
  font-size: 13px;
}

.order-v3-customer > header > h2,
.order-v3-products > header > h2 {
  margin: 0;
  font-size: 18px;
}

.order-v3-products > header > button.primary {
  min-height: 36px;
}

.order-form-v3 .line-item {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 13px;
}

.order-form-v3 .line-item-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid #edf0ee;
}

.order-form-v3 .line-item-head > span:first-child {
  display: grid;
  min-width: 0;
}

.order-form-v3 .line-item-head strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-form-v3 .line-item-head small {
  overflow: hidden;
  color: var(--v3-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-form-v3 .line-item-head > span:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-form-v3 .line-item-head b {
  color: var(--v3-green-dark);
  font-size: 16px;
  white-space: nowrap;
}

.order-form-v3 .line-item-head .icon-button.danger {
  width: 34px;
  height: 34px;
}

.order-form-v3 .line-item > input[type='hidden'] {
  display: none;
}

.order-form-v3 .clothing-matrix-editor,
.order-form-v3 .measurement-editor {
  grid-column: 1 / -1;
}

.order-form-v3 .clothing-matrix-editor > header {
  min-height: 38px;
}

.order-form-v3 .order-footer {
  grid-template-columns: minmax(0, 1fr) 132px;
}

.order-form-v3 .order-footer > small {
  display: none;
}

.compact-more-fields {
  grid-column: 1 / -1;
  margin-top: 4px;
  border-top: 1px solid var(--v3-line);
}

.compact-more-fields summary {
  display: flex;
  justify-content: space-between;
  padding: 15px 2px 4px;
  color: #3c4743;
  font-size: 14px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.compact-more-fields summary span {
  color: var(--v3-muted);
  font-size: 12px;
  font-weight: 500;
}

.compact-more-fields > .form-grid {
  margin-top: 12px;
}

.product-mode-picker {
  margin: 0;
  padding: 0;
  border: 0;
}

.product-mode-picker legend {
  margin-bottom: 8px;
  color: #4d5954;
  font-size: 13px;
  font-weight: 800;
}

.product-mode-picker > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.product-mode-picker label {
  position: relative;
}

.product-mode-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.product-mode-picker span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 6px;
  border: 1px solid #d8dfdc;
  border-radius: 11px;
  background: #fff;
  color: #4c5854;
  font-size: 13px;
  font-weight: 750;
}

.product-mode-picker input:checked + span {
  border-color: var(--v3-green);
  background: var(--v3-green-soft);
  color: var(--v3-green-dark);
  box-shadow: inset 0 0 0 1px var(--v3-green);
}

.clothing-size-options {
  display: grid;
  gap: 7px;
}

.clothing-size-options[hidden] {
  display: none !important;
}

.initial-use-disclaimer summary {
  cursor: pointer;
  font-weight: 800;
}

@media (max-width: 640px) {
  .simple-auth-entry {
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: center;
  }

  .simple-login-entry .account-login-form {
    padding: 20px 16px;
  }

  .v3-registration-form {
    padding-top: 18px;
  }

  .order-form-v3 .line-item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-form-v3 .line-item > label:last-of-type {
    grid-column: 1 / -1;
  }
}

/* V161 — fewer hops, inline order entry, task-first records */
.order-v6-draft-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #ead9ae;
  border-radius: 14px;
  background: #fffaf0;
}

.order-v6-draft-notice > span {
  display: grid;
  gap: 2px;
}

.order-v6-draft-notice strong { color: #574315; font-size: 14px; }
.order-v6-draft-notice small { color: #8a7542; font-size: 11px; }

.order-v6-draft-notice button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #ddc98f;
  border-radius: 10px;
  background: #fff;
  color: #785d1b;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.order-v3-products > header .v2-icon {
  width: 18px;
  height: 18px;
  margin-right: 3px;
  vertical-align: -4px;
}

.order-v6-quick-products { margin-bottom: 12px; }

.v6-order-line.simple {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 10px;
  overflow: visible;
  padding: 11px 9px 11px 13px;
}

.v6-order-line.simple > .v6-line-main {
  display: flex;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
}

.v6-line-main > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.v6-line-main strong,
.v6-line-main small,
.v6-line-main em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v6-line-main strong { font-size: 16px; }
.v6-line-main small { color: #7d8985; font-size: 11px; }
.v6-line-main em { color: #66746f; font-size: 12px; font-style: normal; }
.v6-line-main > b { color: #08765e; font-size: 15px; white-space: nowrap; }

.v6-inline-stepper {
  display: grid;
  grid-template-columns: 38px 50px 38px;
  overflow: hidden;
  border: 1px solid #d9e2de;
  border-radius: 12px;
  background: #fff;
}

.v6-inline-stepper button,
.v6-inline-stepper input {
  min-width: 0;
  min-height: 42px;
  border: 0;
  border-radius: 0;
  background: #f3f8f6;
  color: #08765e;
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.v6-inline-stepper input {
  width: 50px;
  padding: 0 2px;
  border-inline: 1px solid #d9e2de;
  background: #fff;
  color: #15231e;
  font-size: 17px;
  appearance: textfield;
}

.v6-inline-stepper input::-webkit-inner-spin-button,
.v6-inline-stepper input::-webkit-outer-spin-button { margin: 0; appearance: none; }

.v6-order-line.simple > .v5-line-delete {
  position: static;
  width: 34px;
  height: 34px;
  transform: none;
}

.v6-ledger-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(calc(100% - 28px), 1120px);
  margin: 0 auto 14px;
  padding: 4px;
  border: 1px solid #dfe7e3;
  border-radius: 14px;
  background: #eef3f1;
}

.v6-ledger-tabs a {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  color: #61706b;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.v6-ledger-tabs a.active {
  background: #fff;
  color: #08765e;
  box-shadow: 0 4px 12px rgba(18, 51, 42, .08);
}

.v6-ledger-tabs b {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 10px;
  background: #fbe6e3;
  color: #b64d43;
  font-size: 11px;
}

.v6-order-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(calc(100% - 28px), 1120px);
  margin: 0 auto 14px;
  overflow: hidden;
  border: 1px solid #e1e8e5;
  border-radius: 16px;
  background: #e7ecea;
}

.v6-order-overview > span {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 15px;
  background: #fff;
}

.v6-order-overview small { color: #76847f; font-size: 11px; }
.v6-order-overview strong { overflow: hidden; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }

.v6-ledger-orders { padding-top: 14px; }

.v6-ledger-tools {
  display: flex;
  align-items: end;
  gap: 9px;
  margin-bottom: 15px;
}

.v6-ledger-tools label {
  display: grid;
  flex: 1;
  gap: 5px;
  color: #68756f;
  font-size: 11px;
  font-weight: 750;
}

.v6-ledger-tools input {
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid #d7e0dc;
  border-radius: 11px;
  background: #fff;
  color: #27342f;
  font: inherit;
}

.v6-ledger-tools > button,
.v6-ledger-tools > a {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 0 13px;
  border: 1px solid #d7e0dc;
  border-radius: 11px;
  background: #fff;
  color: #08765e;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.v6-ledger-tools > a {
  border-color: #08765e;
  background: #08765e;
  color: #fff;
}

@media (max-width: 760px) {
  .mobile-header > #mobile-menu { visibility: hidden; pointer-events: none; }

  .v6-home .v5-task-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .v6-home .v5-task-grid > a,
  .v6-home .v5-task-grid > button {
    grid-column: span 2;
    min-height: 82px;
    border-right: 1px solid #edf1ef;
    border-bottom: 0;
  }

  .v6-home .v5-task-grid > :first-child {
    grid-column: 1 / -1;
    min-height: 94px;
    grid-template-columns: 48px auto auto;
    justify-content: center;
    border-right: 0;
    border-bottom: 1px solid #e2ebe7;
  }

  .v6-home .v5-task-grid > :first-child > span:last-child {
    padding: 5px 10px;
    border-radius: 999px;
    background: #08765e;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
  }

  .v6-home .v5-task-grid > :last-child { border-right: 0; }

  .order-form-v3 {
    gap: 0;
    margin: 10px auto 0;
    padding: 0 12px 18px;
  }

  .order-form-v3 > section,
  .order-form-v3 > details,
  .order-form-v3 > .order-footer {
    border-radius: 0;
    box-shadow: none;
  }

  .order-form-v3 > section:first-of-type {
    border-radius: 17px 17px 0 0;
  }

  .order-form-v3 > section + section,
  .order-form-v3 > section + details,
  .order-form-v3 > details + .order-footer {
    border-top: 0;
  }

  .order-form-v3 > .order-footer {
    border-radius: 0 0 17px 17px;
  }

  .order-v6-draft-notice {
    margin-bottom: 10px;
    border-radius: 14px !important;
  }

  .v6-order-line.simple {
    grid-template-columns: minmax(0, 1fr) auto 34px;
    gap: 7px;
  }

  .v6-line-main > b { display: none; }

  .v6-inline-stepper {
    grid-template-columns: 36px 45px 36px;
  }

  .v6-inline-stepper button,
  .v6-inline-stepper input { min-height: 40px; }
  .v6-inline-stepper input { width: 45px; }

  .order-picker-modal,
  .order-line-modal,
  .order-line-modal-matrix,
  .measurement-modal {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .modal-backdrop:has(.order-picker-modal),
  .modal-backdrop:has(.order-line-modal),
  .modal-backdrop:has(.order-line-modal-matrix),
  .modal-backdrop:has(.measurement-modal) { padding: 0; }

  .v6-ledger-tabs,
  .v6-order-overview { width: calc(100% - 24px); }

  .v6-order-overview > span { padding: 13px 10px; }
  .v6-order-overview strong { font-size: 16px; }

  .v6-ledger-tools { align-items: stretch; flex-wrap: wrap; }
  .v6-ledger-tools label { min-width: 170px; }
  .v6-ledger-tools > a { flex: 1; }
}

/* Final V170 mobile overrides live last so older V161 rules cannot win. */
@media (max-width: 760px) {
  .order-form-v3 .order-v7-meta-grid {
    grid-template-columns: minmax(0, 1fr) 145px;
  }

  .order-form-v3 .order-v7-date input {
    min-width: 0;
    padding-inline: 8px;
    font-size: 13px;
  }
}

/* V173 — real onboarding and selectable local-only storage. */
.v7-quick-start {
  overflow: hidden;
  border: 1px solid #dce9e4;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--v3-shadow);
}

.v7-quick-start > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 18px 13px;
  background: linear-gradient(135deg, #ecf8f4, #f8fbfa);
}

.v7-quick-start > header span,
.v7-quick-start > header h2 { display: block; margin: 0; }
.v7-quick-start > header span { margin-bottom: 2px; color: #547169; font-size: 12px; }
.v7-quick-start > header h2 { color: #173b33; font-size: 18px; }
.v7-quick-start > header > strong { color: var(--v3-green); font-size: 20px; }

.v7-quick-start > div > button,
.v7-quick-start > div > a,
.v7-quick-start > div > div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 24px;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 67px;
  padding: 11px 16px;
  border: 0;
  border-top: 1px solid #edf1ef;
  background: #fff;
  color: #182622;
  text-align: left;
  text-decoration: none;
}

.v7-quick-start > div > button { font: inherit; }
.v7-quick-start > div > * > i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #e7f4ef;
  color: var(--v3-green);
  font-style: normal;
  font-weight: 900;
}

.v7-quick-start > div > * > span strong,
.v7-quick-start > div > * > span small { display: block; }
.v7-quick-start > div > * > span strong { font-size: 15px; }
.v7-quick-start > div > * > span small { margin-top: 3px; color: #75807c; font-size: 12px; }
.v7-quick-start > div > .done { opacity: .62; }

.storage-mode-intro,
.storage-mode-warning {
  display: grid;
  gap: 5px;
  padding: 14px 15px;
  border-radius: 15px;
  background: #eef7f4;
}

.storage-mode-intro p,
.storage-mode-warning span { margin: 0; color: #65736e; font-size: 13px; line-height: 1.55; }
.storage-mode-picker { margin: 14px 0; padding: 0; border: 0; }
.storage-mode-picker legend { margin-bottom: 8px; color: #596762; font-size: 13px; }
.storage-mode-picker > label { display: block; margin-top: 8px; }
.storage-mode-picker > label > input { position: absolute; opacity: 0; pointer-events: none; }
.storage-mode-picker > label > span {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px 14px;
  border: 1.5px solid #dfe6e3;
  border-radius: 16px;
  background: #fff;
}
.storage-mode-picker > label > input:checked + span { border-color: var(--v3-green); background: #f1faf7; box-shadow: 0 0 0 2px rgba(8,122,101,.08); }
.storage-mode-picker strong,
.storage-mode-picker small { display: block; }
.storage-mode-picker small { margin-top: 3px; color: #6f7a76; line-height: 1.35; }
.storage-mode-warning { background: #fff8e9; }

@media (max-width: 760px) {
  .v7-quick-start { margin: 0 0 12px; }
  .v5-task-grid > .primary strong { max-width: 122px; line-height: 1.25; }
}

/* V174 — operational reports built from booked sales, payments, purchasing and inventory. */
.native-reports { --report-green: #0b806b; --report-navy: #112d3f; padding-bottom: 110px; }
.report-page-head { align-items: flex-start; }
.report-page-head > div:first-child p { margin: 4px 0 0; color: #72808a; font-size: 13px; }
.report-page-head > div:last-child { display: flex; gap: 8px; }
.report-page-head button { min-width: 58px; height: 36px; padding: 0 12px; border: 1px solid #d7e1e2; border-radius: 11px; background: #fff; color: #24504a; font: inherit; font-size: 13px; font-weight: 800; }
.report-period { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; margin: 0 0 14px; padding: 7px; border: 1px solid #e4eaea; border-radius: 17px; background: #fff; box-shadow: 0 8px 22px rgba(18,45,63,.04); }
.report-period > a, .report-period > .disabled { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #1e5048; font-size: 29px; font-weight: 500; text-decoration: none; }
.report-period > a:active { background: #edf7f4; }
.report-period > .disabled { color: #c8d1d2; }
.report-period label { display: flex; align-items: center; justify-content: center; gap: 10px; color: #65747b; font-size: 13px; font-weight: 700; }
.report-period input { width: 132px; height: 38px; padding: 0 8px; border: 0; border-radius: 10px; background: #f3f7f6; color: #173d38; font: inherit; font-weight: 900; text-align: center; }
.report-hero { overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr); gap: 20px; margin-bottom: 14px; padding: 25px 26px; border-radius: 24px; background: linear-gradient(132deg, #0b715f 0%, #0c8871 52%, #11364a 130%); color: #fff; box-shadow: 0 18px 34px rgba(12,101,85,.18); }
.report-hero > div:first-child { display: flex; flex-direction: column; }
.report-hero > div:first-child > span { color: rgba(255,255,255,.78); font-size: 14px; font-weight: 700; }
.report-hero > div:first-child > strong { margin: 7px 0 6px; font-size: clamp(32px, 5vw, 46px); line-height: 1.05; letter-spacing: -.04em; }
.report-hero > div:first-child > small { color: rgba(255,255,255,.72); }
.report-hero > div:last-child { display: grid; grid-template-columns: 1fr 1fr; align-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 17px; background: rgba(255,255,255,.08); }
.report-hero > div:last-child span { min-width: 0; padding: 17px; }
.report-hero > div:last-child span + span { border-left: 1px solid rgba(255,255,255,.18); }
.report-hero > div:last-child small { display: block; margin-bottom: 6px; color: rgba(255,255,255,.7); }
.report-hero > div:last-child strong { display: block; overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.report-hero .danger { color: #ffe7b0; }
.report-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.report-kpi-grid a { min-width: 0; padding: 17px; border: 1px solid #e2e9e9; border-radius: 18px; background: #fff; color: #233c45; text-decoration: none; box-shadow: 0 8px 22px rgba(18,45,63,.035); }
.report-kpi-grid span, .report-kpi-grid small { display: block; color: #7a878d; font-size: 12px; font-weight: 700; }
.report-kpi-grid strong { display: block; overflow: hidden; margin: 7px 0 5px; color: #173d38; font-size: 20px; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.report-kpi-grid strong.danger { color: #b8493f; }
.report-tasks, .report-trend, .report-ranking, .report-aging { margin-bottom: 14px; border: 1px solid #e3eaea; box-shadow: 0 8px 24px rgba(18,45,63,.035); }
.report-tasks > header, .report-trend > header, .report-ranking > header, .report-aging > header { min-height: 58px; }
.report-tasks > header > span { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 12px; background: #fff0ed; color: #bd493d; font-size: 12px; font-weight: 900; }
.report-tasks > div > a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 70px; padding: 12px 17px; border-top: 1px solid #edf1f1; color: inherit; text-decoration: none; }
.report-tasks > div > a:first-child { border-top: 0; }
.report-tasks > div > a span:not(.v2-icon) { min-width: 0; }
.report-tasks strong, .report-tasks small { display: block; }
.report-tasks strong { color: #263e46; font-size: 15px; }
.report-tasks small { margin-top: 4px; color: #79868c; font-size: 12px; }
.report-all-clear { margin-bottom: 14px; padding: 15px 18px; border: 1px solid #cfe6df; border-radius: 16px; background: #eff9f6; color: #176e5f; font-size: 14px; font-weight: 800; }
.report-trend > header > div small, .report-aging > header > div small { display: block; margin-top: 3px; color: #869197; font-size: 12px; }
.report-trend > div { display: grid; gap: 3px; padding: 4px 16px 16px; }
.report-trend article { display: grid; grid-template-columns: 38px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.report-trend article.active { background: #f0f8f5; }
.report-trend article > span { color: #68787e; font-size: 12px; font-weight: 800; }
.report-trend article > div { position: relative; overflow: hidden; height: 31px; border-radius: 8px; background: #f4f6f6; }
.report-trend article i { position: absolute; inset: 0 auto 0 0; opacity: .2; border-radius: 8px; }
.report-trend article i.sales { background: #0b806b; }
.report-trend article i.receipt { background: #2d6fba; }
.report-trend article small { position: relative; z-index: 1; display: flex; align-items: center; height: 100%; padding: 0 8px; color: #3d535a; font-size: 11px; font-weight: 800; white-space: nowrap; }
.report-ranking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.report-ranking > header small { color: #8a9599; font-size: 12px; }
.report-ranking > div > a, .report-ranking > div > button { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 62px; padding: 10px 16px; border: 0; border-top: 1px solid #edf1f1; background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: none; }
.report-ranking > div > :first-child { border-top: 0; }
.report-ranking b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 9px; background: #edf6f3; color: #207464; font-size: 12px; }
.report-ranking > div > :nth-child(-n+3) b { background: #0d806c; color: #fff; }
.report-ranking span { min-width: 0; }
.report-ranking span strong, .report-ranking span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report-ranking span strong { color: #263d44; font-size: 14px; }
.report-ranking span small { margin-top: 3px; color: #849095; font-size: 11px; }
.report-ranking em { color: #173f39; font-size: 13px; font-style: normal; font-weight: 900; white-space: nowrap; }
.report-empty { margin: 0; padding: 28px 16px; color: #899498; font-size: 13px; text-align: center; }
.report-aging > header > strong { color: #224942; font-size: 18px; }
.report-aging > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 3px 16px 14px; }
.report-aging > div a { padding: 13px; border-radius: 14px; background: #f2f7f6; color: inherit; text-decoration: none; }
.report-aging > div a.watch { background: #fff8e8; }
.report-aging > div a.urgent { background: #fff1e8; }
.report-aging > div a.overdue { background: #fff0ee; }
.report-aging > div span, .report-aging > div small { display: block; color: #77858b; font-size: 11px; font-weight: 700; }
.report-aging > div strong { display: block; overflow: hidden; margin: 6px 0 3px; color: #25433f; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.report-aging > p { margin: 0; padding: 0 16px 16px; color: #8a959a; font-size: 11px; line-height: 1.5; }

@media (max-width: 720px) {
  .native-reports { padding-inline: 14px; }
  .report-page-head { padding-inline: 2px; }
  .report-page-head > div:first-child p { display: none; }
  .report-page-head button { min-width: 52px; height: 34px; padding: 0 9px; }
  .report-period { grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .report-period > a, .report-period > .disabled { width: 40px; height: 40px; }
  .report-period label span { display: none; }
  .report-hero { grid-template-columns: 1fr; gap: 15px; padding: 22px 19px; border-radius: 21px; }
  .report-hero > div:first-child > strong { font-size: 34px; }
  .report-hero > div:last-child span { padding: 13px; }
  .report-kpi-grid { grid-template-columns: 1fr 1fr; }
  .report-kpi-grid a { padding: 15px; }
  .report-kpi-grid strong { font-size: 18px; }
  .report-trend article { grid-template-columns: 30px minmax(0, 1fr); gap: 7px; }
  .report-trend article > div:last-child { grid-column: 2; }
  .report-ranking-grid { grid-template-columns: 1fr; gap: 0; }
  .report-aging > div { grid-template-columns: 1fr 1fr; }
}

@media print {
  body:has(.native-reports) .sidebar,
  body:has(.native-reports) .mobile-header,
  body:has(.native-reports) .bottom-nav,
  body:has(.native-reports) .site-compliance,
  body:has(.native-reports) .report-period,
  body:has(.native-reports) .report-page-head button { display: none !important; }
  body:has(.native-reports) .app-shell,
  body:has(.native-reports) .main-content { display: block !important; width: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; background: #fff !important; }
  .native-reports { padding: 0 !important; }
  .report-hero, .report-kpi-grid a, .report-tasks, .report-trend, .report-ranking, .report-aging { break-inside: avoid; box-shadow: none !important; }
}

/* V175 — operator-first cloud workflow: editable lines, undo, and quieter actions. */
.order-v3-products > header h2 small {
  margin-left: 6px;
  color: #7b8984;
  font-size: 12px;
  font-weight: 750;
}

.order-v8-line { overflow: hidden; }
.order-v8-line-summary {
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.order-v8-line-summary > span:first-child { display: grid; min-width: 0; gap: 3px; }
.order-v8-line-summary > span:last-child { display: flex; align-items: center; gap: 8px; }
.order-v8-line-summary b { color: #08765e; font-size: 16px; white-space: nowrap; }
.order-v8-line-summary i { color: #9caaa5; font-size: 21px; font-style: normal; }

.order-v8-line-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 39px;
  padding: 4px 7px;
  border-top: 1px solid #edf1ef;
  background: #fbfcfc;
}
.order-v8-line-actions button {
  min-width: 46px;
  min-height: 31px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #50635d;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.order-v8-line-actions button:active:not(:disabled) { background: #eaf4f1; color: #08765e; }
.order-v8-line-actions button:disabled { opacity: .28; }
.order-v8-line-actions .danger { margin-left: auto; color: #a84b46; }

.v7-inline-line.simple {
  grid-template-columns: minmax(150px, 1fr) auto 112px;
  padding: 12px 12px 0;
}
.v7-inline-line.simple > .order-v8-line-actions { grid-column: 1 / -1; margin: 0 -12px; }
.v7-inline-line .v7-inline-price { width: 112px; }
.v7-inline-line .v7-inline-price input { font-size: 17px; }

.order-v8-undo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 11px 12px 11px 14px;
  border: 1px solid #f0dbc0;
  border-radius: 13px;
  background: #fff9ef;
}
.order-v8-undo span { display: grid; min-width: 0; gap: 2px; }
.order-v8-undo strong { overflow: hidden; color: #664728; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.order-v8-undo small { color: #947b5f; font-size: 11px; }
.order-v8-undo button { min-width: 60px; min-height: 34px; border: 0; border-radius: 9px; background: #75512c; color: #fff; font: inherit; font-size: 12px; font-weight: 850; }

.order-v8-autosave { display: flex !important; align-items: center; gap: 7px; color: #6d7c76; }
.order-v8-autosave i { width: 8px; height: 8px; border-radius: 50%; background: #42a58c; box-shadow: 0 0 0 4px rgba(66,165,140,.12); }
.order-v8-autosave span { color: inherit !important; font-size: 12px !important; font-weight: 750; }

.cloud-data-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.cloud-data-benefits > span { display: grid; justify-items: center; gap: 7px; padding: 13px 8px; border: 1px solid #e1e9e6; border-radius: 13px; color: #33544c; font-size: 12px; text-align: center; }

@media (max-width: 760px) {
  .v7-inline-line.simple { grid-template-columns: minmax(0, 1fr) 118px; gap: 8px; }
  .v7-inline-line .v6-line-main { grid-column: 1 / -1; grid-row: 1; }
  .v7-inline-line .v6-line-main > b { display: block; font-size: 16px; }
  .v7-inline-line .v6-inline-stepper { grid-column: 1; grid-row: 2; }
  .v7-inline-line .v7-inline-price { grid-column: 2; grid-row: 2; width: 118px; margin-left: 0; }
  .v7-inline-line.simple > .order-v8-line-actions { grid-row: 3; }
  .order-v8-line-actions { overflow-x: auto; scrollbar-width: none; }
  .order-v8-line-actions button { flex: 0 0 auto; }
  .order-v7-footer { grid-template-columns: minmax(0, 1fr) auto !important; }
  .order-v7-footer > .order-v8-autosave { grid-column: 1; grid-row: 1; justify-self: start; }
  .order-v7-footer > .order-v8-autosave + div { grid-column: 2; grid-row: 1; }
  .order-v7-footer > .button.primary { grid-column: 1 / -1; grid-row: 2; width: 100%; }
}

/* V177 — daily-operator pass: business-first home, clean editable lines, native action sheet. */
.v9-quick-start > header { padding-block: 14px 11px; }
.v9-quick-start > div > button { min-height: 61px; }

.v9-home-draft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #cfe5dd;
  border-radius: 17px;
  background: linear-gradient(135deg, #eef8f5, #fff);
  color: #173b33;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(18, 63, 52, .07);
}
.v9-home-draft > span { display: grid; min-width: 0; gap: 3px; }
.v9-home-draft small { color: #6b7c76; font-size: 11px; font-weight: 750; }
.v9-home-draft strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.v9-home-draft b { color: #08765e; font-size: 16px; white-space: nowrap; }
.v9-home-draft i { color: #08765e; font-size: 12px; font-style: normal; font-weight: 850; white-space: nowrap; }

.order-v9-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
}
.order-v9-line .order-v8-line-summary { min-width: 0; }
.order-v9-line-more {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  padding: 0 0 7px;
  border: 0;
  border-radius: 10px;
  background: #f0f5f3;
  color: #48615a;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
}
.order-v9-line-more:active { background: #dfeee9; color: #08765e; }
.v7-inline-line .v6-line-main > .order-v9-line-more { margin-left: 2px; }

.order-v9-line-sheet > header > div { display: grid; min-width: 0; gap: 3px; }
.order-v9-line-sheet > header h2 { overflow: hidden; margin: 0; text-overflow: ellipsis; white-space: nowrap; }
.order-v9-line-sheet > header small { overflow: hidden; color: #73817c; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.order-v9-line-sheet .modal-body { display: grid; gap: 8px; }
.order-v9-line-sheet .modal-body > button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 60px;
  padding: 10px 13px;
  border: 1px solid #e1e8e5;
  border-radius: 13px;
  background: #fff;
  color: #21342e;
  font: inherit;
  text-align: left;
}
.order-v9-line-sheet .modal-body > button span { display: grid; gap: 2px; }
.order-v9-line-sheet .modal-body > button strong { font-size: 14px; }
.order-v9-line-sheet .modal-body > button small { color: #78847f; font-size: 11px; }
.order-v9-line-sheet .modal-body > button b { color: #84938e; font-size: 19px; }
.order-v9-line-sheet .modal-body > button.danger { border-color: #f0d7d4; color: #a5443d; }
.order-v9-move-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.order-v9-move-actions button { min-height: 43px; border: 1px solid #dce5e1; border-radius: 12px; background: #f8faf9; color: #42564f; font: inherit; font-size: 13px; font-weight: 800; }
.order-v9-move-actions button:disabled { opacity: .35; }

@media (max-width: 760px) {
  .v9-home-draft { margin-bottom: 12px; }
  .order-form-v3 { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .v7-inline-line.simple { padding-bottom: 12px; }
  .v7-inline-line .v6-line-main { display: grid; grid-template-columns: minmax(0, 1fr) auto 34px; }
  .v7-inline-line .v6-line-main > .order-v9-line-more { margin: 0; }
  .order-form-v3 > .order-footer.order-v7-footer {
    position: fixed;
    z-index: 35;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    grid-template-columns: 20px minmax(82px, 1fr) minmax(132px, 45%) !important;
    gap: 8px;
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
    border: 1px solid #dce5e1;
    border-radius: 16px 16px 0 0 !important;
    background: rgba(255,255,255,.97);
    box-shadow: 0 -10px 28px rgba(20,48,40,.11);
    backdrop-filter: blur(12px);
  }
  .order-v7-footer > .order-v8-autosave { grid-column: 1; grid-row: 1; justify-self: center; }
  .order-v7-footer > .order-v8-autosave span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .order-v7-footer > .order-v8-autosave + div { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; }
  .order-form-v3 .order-footer > div strong { font-size: 18px; }
  .order-v7-footer > .button.primary { grid-column: 3; grid-row: 1; width: 100%; min-width: 0; min-height: 46px; }
  .order-v9-line-sheet { align-self: end; width: 100%; max-width: none; border-radius: 22px 22px 0 0; }
}

/* V181 — business lifecycle: every document shows what changed, what is next, and what happened. */
.business-workflow-board {
  overflow: hidden;
  border: 1px solid #e0e8e5;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 57, 47, .06);
}
.business-workflow-board > header { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 15px 16px 11px; }
.business-workflow-board > header div { display: grid; gap: 2px; }
.business-workflow-board > header small { color: #81908a; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.business-workflow-board > header h2 { margin: 0; color: #17372f; font-size: 17px; }
.business-workflow-board > header a { color: #08765e; font-size: 12px; font-weight: 800; text-decoration: none; }
.business-workflow-board > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #edf1ef; }
.business-workflow-board > div > a { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 14px; border-right: 1px solid #edf1ef; color: #213a33; text-decoration: none; }
.business-workflow-board > div > a:last-child { border-right: 0; }
.business-workflow-board > div > a > span { display: flex; min-width: 0; align-items: center; gap: 7px; }
.business-workflow-board .v2-icon { width: 25px; height: 25px; flex: 0 0 25px; }
.business-workflow-board small { color: #5f706a; font-size: 11px; font-weight: 750; white-space: nowrap; }
.business-workflow-board strong { color: #102c25; font-size: 21px; font-variant-numeric: tabular-nums; }

.order-lifecycle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #dfe7e4;
  border-radius: 17px;
  background: #fff;
}
.order-lifecycle > span { position: relative; display: grid; min-width: 0; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; column-gap: 9px; padding: 13px 14px; border-right: 1px solid #e8edeb; }
.order-lifecycle > span:last-child { border-right: 0; }
.order-lifecycle i { grid-row: 1 / 3; display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #edf2f0; color: #798983; font-size: 12px; font-style: normal; font-weight: 900; }
.order-lifecycle small { color: #84918c; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.order-lifecycle strong { overflow: hidden; color: #41544e; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.order-lifecycle > span.done { background: #fbfdfc; }
.order-lifecycle > span.done i { background: #daf1e9; color: #08765e; }
.order-lifecycle > span.done strong { color: #08765e; }
.order-lifecycle > span.current { box-shadow: inset 0 -3px #d99a42; }
.order-lifecycle > span.current i { background: #fff0d9; color: #a96713; }
.order-lifecycle > span.voided i { background: #f7e7e5; color: #a94640; }
.order-lifecycle.compact { margin: 0 0 14px; border-radius: 13px; box-shadow: none; }
.order-lifecycle.compact > span { grid-template-columns: 22px minmax(0, 1fr); column-gap: 6px; padding: 9px 8px; }
.order-lifecycle.compact i { width: 20px; height: 20px; font-size: 9px; }
.order-lifecycle.compact small { font-size: 9px; }
.order-lifecycle.compact strong { font-size: 11px; }

.posting-impact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 12px 0; }
.posting-impact > span { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid #e1e8e5; border-radius: 14px; background: #f9fbfa; }
.posting-impact small { color: #7c8984; font-size: 10px; font-weight: 800; }
.posting-impact strong { color: #203a33; font-size: 13px; line-height: 1.45; }

.order-next-action { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0; padding: 13px 14px; border: 1px solid #d7e7e1; border-radius: 16px; background: linear-gradient(135deg, #edf8f4, #fff); }
.order-next-action > span { display: flex; min-width: 0; align-items: center; gap: 10px; }
.order-next-action > span > span { display: grid; min-width: 0; gap: 2px; }
.order-next-action .v2-icon { width: 34px; height: 34px; flex: 0 0 34px; }
.order-next-action strong { color: #183c33; font-size: 14px; }
.order-next-action small { color: #6d7f79; font-size: 11px; line-height: 1.4; }
.order-next-action .button { min-width: 102px; }
.order-next-action.waiting { border-color: #eadfcf; background: #fffaf2; }
.order-next-action.voided { border-color: #ecd7d4; background: #fff8f7; }

.order-audit-trail { margin: 14px 0; overflow: hidden; border: 1px solid #dfe7e4; border-radius: 16px; background: #fff; }
.order-audit-trail > summary { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; cursor: pointer; list-style: none; }
.order-audit-trail > summary::-webkit-details-marker { display: none; }
.order-audit-trail > summary > span { display: grid; gap: 2px; }
.order-audit-trail > summary strong { color: #223b34; font-size: 14px; }
.order-audit-trail > summary small { color: #85918d; font-size: 10px; }
.order-audit-trail > summary b { color: #08765e; font-size: 12px; }
.order-audit-trail[open] > summary { border-bottom: 1px solid #edf1ef; }
.order-audit-trail[open] > summary b { transform: rotate(90deg); }
.order-audit-trail > div { display: grid; padding: 3px 14px; }
.order-audit-trail article { display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 59px; border-bottom: 1px solid #edf1ef; }
.order-audit-trail article:last-child { border-bottom: 0; }
.order-audit-trail article .v2-icon { width: 29px; height: 29px; }
.order-audit-trail article > span { display: grid; min-width: 0; gap: 2px; }
.order-audit-trail article strong { color: #263c35; font-size: 12px; }
.order-audit-trail article small { overflow: hidden; color: #7d8a85; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.order-audit-trail time { display: grid; justify-items: end; color: #60706a; font-size: 11px; font-style: normal; font-variant-numeric: tabular-nums; }
.order-audit-trail time small { color: #98a29e; font-size: 9px; }

.posting-confirm-modal > header > div { display: grid; gap: 2px; }
.posting-confirm-modal > header small { color: #7a8984; font-size: 11px; }
.posting-confirm-total { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 3px 2px 14px; }
.posting-confirm-total span { color: #73827d; font-size: 12px; }
.posting-confirm-total strong { color: #0c634f; font-size: 29px; font-variant-numeric: tabular-nums; }
.posting-confirm-effects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.posting-confirm-effects > span { display: flex; align-items: center; gap: 9px; padding: 13px 11px; border: 1px solid #e0e8e5; border-radius: 14px; background: #f8faf9; }
.posting-confirm-effects .v2-icon { width: 34px; height: 34px; flex: 0 0 34px; }
.posting-confirm-effects > span > span { display: grid; min-width: 0; gap: 2px; }
.posting-confirm-effects small { color: #7b8984; font-size: 10px; font-weight: 800; }
.posting-confirm-effects strong { color: #203a33; font-size: 12px; line-height: 1.4; }
.posting-confirm-modal .modal-body > p { margin: 12px 2px 0; color: #6f7e79; font-size: 11px; line-height: 1.6; }

@media (max-width: 760px) {
  .business-workflow-board > div { grid-template-columns: repeat(4, minmax(72px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .business-workflow-board > div > a { min-width: 82px; flex-direction: column; align-items: flex-start; gap: 5px; padding: 12px; }
  .business-workflow-board > div > a > span { gap: 5px; }
  .business-workflow-board strong { font-size: 19px; }
  .order-lifecycle > span { grid-template-columns: 24px minmax(0, 1fr); column-gap: 6px; padding: 11px 8px; }
  .order-lifecycle i { width: 22px; height: 22px; font-size: 10px; }
  .order-lifecycle small { font-size: 9px; }
  .order-lifecycle strong { font-size: 11px; }
  .order-next-action { align-items: stretch; }
  .order-next-action > span { align-items: flex-start; }
  .order-next-action .button { min-width: 92px; padding-inline: 11px; }
  .posting-confirm-modal { align-self: end; width: 100%; max-width: none; border-radius: 22px 22px 0 0; }
}
/* V182: 开单即结算，减少“开单后再找收款”的断点 */
.order-settlement{margin:12px 16px;padding:16px;border:1px solid #e2e8e5;border-radius:18px;background:#fff;box-shadow:0 5px 18px rgba(21,55,45,.045)}
.order-settlement>header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:12px}.order-settlement h2{margin:0;font-size:17px;color:#17231f}.order-settlement header small{display:block;margin-top:3px;color:#7b8782;font-size:12px}
.order-settlement-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.order-settlement-modes label{position:relative}.order-settlement-modes input{position:absolute;opacity:0;pointer-events:none}.order-settlement-modes span{display:flex;min-height:44px;align-items:center;justify-content:center;border:1px solid #dce5e1;border-radius:12px;background:#f7f9f8;color:#53615b;font-size:14px;font-weight:700}.order-settlement-modes input:checked+span{border-color:#14775f;background:#eaf5f1;color:#0f6c55;box-shadow:inset 0 0 0 1px #14775f}
.order-settlement-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid #edf1ef}.order-settlement-fields[hidden]{display:none}.order-settlement-fields label>span{display:block;margin:0 0 5px;color:#68746f;font-size:12px}.order-settlement-fields input,.order-settlement-fields select{width:100%;height:44px;border:1px solid #dce5e1;border-radius:11px;background:#fff;padding:0 11px;font:inherit}.order-settlement-fields input[readonly]{background:#f3f7f5;color:#0f6c55;font-weight:800}.order-settlement-result{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:10px;background:#f2f8f5;color:#66736e;font-size:12px}.order-settlement-result strong{color:#126e57;text-align:right}
.posting-confirm-total small{display:block;margin-top:4px;color:#14775f;font-weight:700}
@media(max-width:520px){.order-settlement{margin:10px 12px;padding:14px}.order-settlement-modes{gap:6px}.order-settlement-modes span{font-size:13px}.order-settlement-fields{grid-template-columns:1fr}}
.inventory-row-actions{display:flex!important;align-items:center;justify-content:flex-end;gap:8px}.inventory-row-actions .table-link{white-space:nowrap}
.stock-history-balance{display:flex;align-items:flex-end;justify-content:space-between;padding:14px 16px;border-radius:14px;background:#edf7f3;color:#60706a}.stock-history-balance strong{font-size:24px;color:#126e57}.stock-movement-list{margin-top:12px;border:1px solid #e5ebe8;border-radius:14px;overflow:hidden}.stock-movement-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border-bottom:1px solid #edf1ef;color:inherit;text-decoration:none}.stock-movement-row:last-child{border-bottom:0}.stock-movement-row>span{display:flex;flex-direction:column;gap:3px}.stock-movement-row>span:last-child{text-align:right}.stock-movement-row strong{font-size:14px}.stock-movement-row small{font-size:11px;color:#7a8781}.stock-movement-row b{font-size:17px}.stock-movement-row b.in{color:#14775f}.stock-movement-row b.out{color:#b75045}
.purchase-card{width:100%;appearance:none;font:inherit;color:inherit;text-align:left;cursor:pointer}.purchase-detail-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.purchase-detail-summary>span{display:flex;flex-direction:column;gap:4px;padding:12px;border-radius:12px;background:#f5f8f7}.purchase-detail-summary small{color:#75817c}.purchase-detail-summary strong{font-size:18px}.purchase-detail-summary .due strong{color:#b75045}.purchase-detail-lines{margin-top:12px;border:1px solid #e5ebe8;border-radius:13px;overflow:hidden}.purchase-detail-line{display:flex;justify-content:space-between;gap:10px;padding:12px;border-bottom:1px solid #edf1ef}.purchase-detail-line:last-child{border:0}.purchase-detail-line span{display:flex;flex-direction:column;gap:3px}.purchase-detail-line small{color:#75817c}.purchase-payment-history{margin-top:16px}.purchase-payment-history h3{margin:0 0 8px;font-size:14px}.purchase-payment-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #edf1ef}.purchase-payment-row span{display:flex;flex-direction:column;gap:2px}.purchase-payment-row small{color:#75817c}.purchase-payment-row button{border:0;background:#f7eeec;color:#a54c42;border-radius:8px;padding:7px 10px}.purchase-payment-row.reversed{opacity:.62}.purchase-payment-row em{font-size:11px;color:#a54c42}.purchase-paid-mark{align-self:center;color:#14775f;font-weight:800}
.posting-impact.with-payment>span:last-child{grid-column:1/-1;border-color:#cae6db;background:#eef8f4}.posting-impact.with-payment>span:last-child strong{color:#116f57}
@media(max-width:520px){.purchase-detail-summary{grid-template-columns:1fr}.purchase-detail-summary>span{flex-direction:row;align-items:center;justify-content:space-between}}

/* V190 — the business area is a document workbench, not a directory of links. */
.document-workbench { display: grid; align-content: start; gap: 12px; }
.document-workbench .native-page-head { margin-bottom: 0; }
.document-workbench .native-page-head p { margin: 3px 0 0; color: #788780; font-size: 11px; }
.document-create-bar { overflow: hidden; border: 1px solid #dce6e2; border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(20, 54, 45, .065); }
.document-primary-create { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 78px; padding: 14px 16px; color: #143d32; text-decoration: none; background: linear-gradient(130deg, #edf8f4 0%, #fff 72%); }
.document-primary-create .v2-icon { width: 44px; height: 44px; }
.document-primary-create > span { display: grid; gap: 2px; }
.document-primary-create strong { font-size: 17px; }
.document-primary-create small { color: #70817a; font-size: 11px; }
.document-primary-create > b { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 12px; background: #08765e; color: #fff; font-size: 21px; }
.document-create-bar > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #edf1ef; }
.document-create-bar > div > a, .document-create-bar > div > button { display: flex; min-height: 54px; align-items: center; justify-content: center; gap: 7px; padding: 8px; border: 0; border-right: 1px solid #edf1ef; background: #fff; color: #455a53; font: inherit; font-size: 13px; font-weight: 800; text-decoration: none; }
.document-create-bar > div > :last-child { border-right: 0; }
.document-create-bar > div .v2-icon { width: 28px; height: 28px; }
.document-today-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid #e1e8e5; border-radius: 16px; background: #fff; }
.document-today-summary > span, .document-today-summary > a { display: grid; min-width: 0; gap: 4px; padding: 12px 11px; border-right: 1px solid #edf1ef; color: inherit; text-decoration: none; }
.document-today-summary > :last-child { border-right: 0; }
.document-today-summary small { color: #7b8983; font-size: 10px; font-weight: 750; }
.document-today-summary strong { overflow: hidden; color: #18372f; font-size: 16px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.document-today-summary > a strong { color: #a56316; }
.document-attention { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid #eadfce; border-radius: 14px; background: #fffaf1; }
.document-attention > strong { color: #7f561c; font-size: 12px; }
.document-attention > div { display: flex; justify-content: flex-end; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.document-attention a { padding: 7px 9px; border-radius: 9px; background: #fff; color: #755627; font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.document-attention b { color: #a56316; font-size: 13px; }
.document-type-tabs { display: flex; gap: 5px; overflow-x: auto; padding: 2px 0; scrollbar-width: none; }
.document-type-tabs a { display: flex; min-height: 36px; flex: 0 0 auto; align-items: center; gap: 5px; padding: 0 12px; border: 1px solid #e0e7e4; border-radius: 18px; background: #fff; color: #60716a; font-size: 12px; font-weight: 800; text-decoration: none; }
.document-type-tabs a small { color: #97a19d; font-size: 10px; }
.document-type-tabs a.active { border-color: #08765e; background: #08765e; color: #fff; }
.document-type-tabs a.active small { color: #cce9df; }
.document-stream { overflow: hidden; border: 1px solid #e1e8e5; border-radius: 18px; background: #fff; box-shadow: 0 7px 24px rgba(20, 54, 45, .045); }
.document-day-heading { margin: 0; padding: 11px 14px 8px; border-bottom: 1px solid #edf1ef; background: #f8faf9; color: #7a8983; font-size: 11px; font-weight: 850; }
.document-stream-row { display: grid; width: 100%; min-height: 68px; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 13px; border: 0; border-bottom: 1px solid #edf1ef; background: #fff; color: inherit; font: inherit; text-align: left; text-decoration: none; }
.document-stream-row:last-child { border-bottom: 0; }
.document-stream-row:active { background: #f2f7f5; }
.document-stream-row.muted { opacity: .58; }
.document-stream-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: #edf6f2; }
.document-stream-icon.purchase { background: #fff4df; }
.document-stream-icon.return { background: #fbeceb; }
.document-stream-icon.payment { background: #edf4fb; }
.document-stream-icon .v2-icon { width: 28px; height: 28px; }
.document-stream-copy, .document-stream-value { display: grid; min-width: 0; gap: 3px; }
.document-stream-copy strong { overflow: hidden; color: #213a33; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.document-stream-copy small { overflow: hidden; color: #82908a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.document-stream-value { justify-items: end; text-align: right; }
.document-stream-value strong { color: #17372f; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.document-stream-value small { max-width: 104px; overflow: hidden; color: #7b8983; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 760px) {
  .document-workbench { gap: 10px; }
  .document-workbench .native-page-head p { display: block; }
  .document-create-bar, .document-stream { border-radius: 16px; }
  .document-primary-create { min-height: 72px; padding: 12px 14px; }
  .document-today-summary strong { font-size: 14px; }
}

.v190-home-head { align-items: center; }
.v190-home-head > div { min-width: 0; }
.v190-home-head > div a { display: grid; min-width: 0; gap: 2px; }
.v190-home-head > div strong { overflow: hidden; max-width: 260px; text-overflow: ellipsis; white-space: nowrap; }
.v190-home-head .v3-avatar { flex: 0 0 auto; }
.v190-home-overview { overflow: hidden; border-radius: 21px; background: linear-gradient(140deg, #123e34 0%, #0b6c57 100%); color: #fff; box-shadow: 0 14px 32px rgba(9, 78, 62, .19); }
.v190-home-overview > header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 15px; align-items: center; padding: 19px 18px 16px; }
.v190-home-overview > header > span { display: grid; gap: 3px; }
.v190-home-overview > header small { color: rgba(255,255,255,.7); font-size: 11px; font-weight: 750; }
.v190-home-overview > header > span strong { font-size: 29px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.v190-home-overview > header .primary { display: flex; min-width: 124px; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 8px 11px; border: 0; border-radius: 14px; background: #fff; color: #0b6954; font: inherit; text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.v190-home-overview > header .primary .v2-icon { width: 29px; height: 29px; }
.v190-home-overview > header .primary span { min-width: 0; }
.v190-home-overview > header .primary strong { display: block; overflow: hidden; max-width: 80px; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.v190-home-overview > header .primary b { font-size: 11px; white-space: nowrap; }
.v190-home-overview > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.08); }
.v190-home-overview > div a { display: grid; gap: 4px; padding: 12px 14px; border-right: 1px solid rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.v190-home-overview > div a:last-child { border-right: 0; }
.v190-home-overview > div small { color: rgba(255,255,255,.65); font-size: 10px; }
.v190-home-overview > div strong { overflow: hidden; font-size: 15px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.v190-home-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid #dfe7e4; border-radius: 17px; background: #fff; }
.v190-home-actions > a, .v190-home-actions > button { display: flex; min-height: 66px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 9px 5px; border: 0; border-right: 1px solid #edf1ef; background: #fff; color: #3c514a; font: inherit; text-align: center; text-decoration: none; }
.v190-home-actions > :last-child { border-right: 0; }
.v190-home-actions .v2-icon { width: 31px; height: 31px; }
.v190-home-actions strong { display: block; overflow: hidden; max-width: 96px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.v190-workflow { box-shadow: none; }

@media (max-width: 420px) {
  .v190-home-head > div strong { max-width: 240px; }
  .v190-home-overview > header { padding-inline: 15px; }
  .v190-home-overview > header > span strong { font-size: 26px; }
  .v190-home-overview > header .primary { min-width: 112px; }
  .v190-home-overview > div a { padding-inline: 10px; }
}

/* V200 — native product shell: fewer cards, larger type, one universal create action. */
.bottom-nav button.factory-bottom-item {
  appearance: none;
  display: grid;
  min-width: 0;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 5px 2px 4px;
  border: 0;
  background: transparent;
  color: #87918d;
  font: inherit;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
}
.bottom-nav button.factory-bottom-item svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav button.factory-bottom-item span { margin-top: 1px; }
.bottom-nav .bottom-create-item { transform: translateY(-9px); color: #0b7059; }
.bottom-nav .bottom-create-item svg { width: 47px !important; height: 47px !important; padding: 12px; border-radius: 18px; background: #0b745d; color: #fff; box-shadow: 0 9px 20px rgba(11, 116, 93, .26); stroke-width: 2.2; }
.bottom-nav .bottom-create-item span { color: #31564c; font-size: 10px; font-weight: 850; }

.v200-core-section { overflow: hidden; border: 1px solid #dfe6e3; border-radius: 19px; background: #fff; }
.v200-core-section > header { display: flex; min-height: 54px; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid #e9eeec; }
.v200-core-section h2 { margin: 0; color: #172923; font-size: 18px; letter-spacing: -.2px; }
.v200-core-section > header a { color: #0d745d; font-size: 12px; font-weight: 800; text-decoration: none; }
.v200-core-section > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v200-core-section > div > a { display: grid; min-height: 96px; grid-template-columns: 42px minmax(0, 1fr) 12px; gap: 10px; align-items: center; padding: 14px; border-right: 1px solid #e9eeec; border-bottom: 1px solid #e9eeec; color: inherit; text-decoration: none; }
.v200-core-section > div > a:nth-child(2n) { border-right: 0; }
.v200-core-section > div > a:nth-last-child(-n+2) { border-bottom: 0; }
.v200-core-section > div > a:active { background: #f2f7f5; }
.v200-core-section .v2-icon { width: 42px; height: 42px; }
.v200-core-section > div > a > span { display: grid; min-width: 0; gap: 4px; }
.v200-core-section strong { color: #1b3029; font-size: 16px; line-height: 1.2; }
.v200-core-section small { overflow: hidden; color: #77847f; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.v200-core-section b { color: #9aa5a1; font-size: 20px; font-weight: 500; }

.native-page-head h1 { font-size: 25px; letter-spacing: -.4px; }
.business-workflow-board.v190-workflow { border: 1px solid #dfe6e3; border-radius: 19px; background: #fff; }
.business-workflow-board.v190-workflow > div > a { background: transparent; }
.document-workbench .native-page-head p { font-size: 12px; }
.document-primary-create strong { font-size: 18px; }
.document-primary-create small { font-size: 12px; }
.document-stream-copy strong { font-size: 14px; }
.document-stream-copy small { font-size: 11px; }
.document-stream-value strong { font-size: 15px; }

.v200-create-sheet { width: min(470px, calc(100% - 28px)); padding-bottom: max(8px, env(safe-area-inset-bottom)); border-radius: 24px; }
.v200-create-sheet > header { align-items: center; padding: 18px 18px 13px; }
.v200-create-sheet > header > div { display: grid; gap: 3px; }
.v200-create-sheet > header h2 { margin: 0; color: #172a24; font-size: 22px; }
.v200-create-sheet > header small { color: #77847f; font-size: 12px; }
.v200-create-sheet .modal-body { display: grid; gap: 8px; padding: 4px 14px 14px; }
.v200-create-sheet .modal-body > button { display: grid; width: 100%; min-height: 72px; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 13px; border: 1px solid #e0e7e4; border-radius: 16px; background: #fff; color: inherit; font: inherit; text-align: left; }
.v200-create-sheet .modal-body > button.primary { border-color: #bcdacf; background: #edf7f3; }
.v200-create-sheet .modal-body .v2-icon { width: 42px; height: 42px; }
.v200-create-sheet .modal-body > button > span { display: grid; gap: 4px; }
.v200-create-sheet .modal-body strong { color: #1a3028; font-size: 17px; }
.v200-create-sheet .modal-body small { color: #77847f; font-size: 12px; }
.v200-create-sheet .modal-body b { color: #8d9994; font-size: 23px; font-weight: 500; }

@media (max-width: 520px) {
  .v200-core-section > div > a { min-height: 91px; padding: 12px 11px; }
  .v200-core-section strong { font-size: 15px; }
  .v200-create-sheet { align-self: end; width: 100%; max-width: none; border-radius: 24px 24px 0 0; }
}

/* V220 — a true mobile workbench instead of a stack of web cards. */
.v220-home { gap: 14px; }
.v220-home-hero { overflow: hidden; margin: -12px -16px 0; padding: 18px 18px 0; border-radius: 0 0 28px 28px; background: linear-gradient(145deg, #0b4e40 0%, #087a61 64%, #0b8a6d 100%); color: #fff; box-shadow: 0 16px 34px rgba(8, 95, 75, .19); }
.v220-home-hero > header { display: flex; align-items: center; justify-content: space-between; }
.v220-home-hero > header > a:first-child { display: grid; gap: 4px; color: #fff; text-decoration: none; }
.v220-home-hero > header strong { font-size: 22px; letter-spacing: -.35px; }
.v220-home-hero > header span { color: rgba(255,255,255,.7); font-size: 12px; }
.v220-home-hero .v3-avatar { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 15px; background: rgba(255,255,255,.15); color: #fff; font-size: 16px; font-weight: 850; text-decoration: none; }
.v220-home-total { display: flex; min-height: 94px; align-items: center; justify-content: space-between; gap: 16px; }
.v220-home-total > span { display: grid; gap: 3px; }
.v220-home-total small { color: rgba(255,255,255,.7); font-size: 12px; }
.v220-home-total > span > strong { font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.8px; }
.v220-home-total .primary { display: flex; min-width: 126px; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border: 0; border-radius: 15px; background: #fff; color: #0b6f59; font: inherit; text-decoration: none; box-shadow: 0 8px 18px rgba(0,0,0,.1); }
.v220-home-total .primary .v2-icon { width: 29px; height: 29px; }
.v220-home-total .primary span { display: grid; color: #0b6f59; }
.v220-home-total .primary strong { font-size: 14px; }
.v220-home-total .primary b { font-size: 10px; white-space: nowrap; }
.v220-home-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-inline: -18px; border-top: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.08); }
.v220-home-kpis a { display: grid; gap: 5px; padding: 13px 18px 15px; border-right: 1px solid rgba(255,255,255,.13); color: #fff; text-decoration: none; }
.v220-home-kpis a:last-child { border-right: 0; }
.v220-home-kpis small { color: rgba(255,255,255,.67); font-size: 10px; }
.v220-home-kpis strong { overflow: hidden; font-size: 16px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }

.v220-tool-panel, .v220-pending { background: #fff; }
.v220-tool-panel > header, .v220-pending > header { display: flex; min-height: 48px; align-items: center; justify-content: space-between; padding: 0 4px; }
.v220-tool-panel h2, .v220-pending h2 { margin: 0; color: #172923; font-size: 18px; }
.v220-tool-panel header a, .v220-pending header a { color: #0c755e; font-size: 12px; font-weight: 800; text-decoration: none; }
.v220-tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 13px 4px 8px; border: 1px solid #e0e7e4; border-radius: 20px; background: #fff; }
.v220-tool-grid > a, .v220-tool-grid > button { display: flex; min-width: 0; min-height: 86px; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding: 3px 2px; border: 0; background: transparent; color: #253c34; font: inherit; text-align: center; text-decoration: none; }
.v220-tool-grid .v2-icon { width: 44px; height: 44px; border-radius: 15px; }
.v220-tool-grid > * > span { display: block; min-width: 0; }
.v220-tool-grid strong { display: block; overflow: hidden; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.v220-tool-grid small { display: none; }
.v220-tool-grid > *:active .v2-icon { transform: scale(.94); }

.v220-pending > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid #e0e7e4; border-radius: 18px; }
.v220-pending > div > a { display: grid; min-height: 79px; place-items: center; align-content: center; gap: 3px; border-right: 1px solid #e9eeec; color: #263b34; text-decoration: none; }
.v220-pending > div > a:last-child { border-right: 0; }
.v220-pending .v2-icon { width: 25px; height: 25px; background: transparent; }
.v220-pending strong { font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; }
.v220-pending span { color: #78857f; font-size: 11px; }
.v220-home .v3-recent { overflow: hidden; border: 1px solid #e0e7e4; border-radius: 18px; box-shadow: none; }

.v220-order-progress { margin: 0 12px; border-radius: 14px; }
.v220-order-progress span { min-height: 46px; gap: 6px; }
.v220-order-progress i { width: 21px; height: 21px; }
.order-v3-customer .order-v7-meta-grid { grid-template-columns: 1fr; }
.v220-order-meta, .v220-settlement { overflow: hidden; margin-top: 12px; border: 1px solid #e1e7e4; border-radius: 14px; background: #fff; }
.v220-order-meta > summary, .v220-settlement > summary { display: grid; min-height: 58px; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 13px; cursor: pointer; list-style: none; }
.v220-order-meta > summary::-webkit-details-marker, .v220-settlement > summary::-webkit-details-marker { display: none; }
.v220-order-meta > summary > span, .v220-settlement > summary > span { display: grid; min-width: 0; gap: 3px; }
.v220-order-meta > summary strong, .v220-settlement > summary strong { color: #253a33; font-size: 14px; }
.v220-order-meta > summary small, .v220-settlement > summary small { overflow: hidden; color: #818d88; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.v220-order-meta > summary b, .v220-settlement > summary b { color: #0d765f; font-size: 12px; }
.v220-order-meta[open] > summary, .v220-settlement[open] > summary { border-bottom: 1px solid #e7ecea; }
.v220-order-meta[open] > summary b, .v220-settlement[open] > summary b { font-size: 0; }
.v220-order-meta[open] > summary b::after, .v220-settlement[open] > summary b::after { font-size: 12px; content: '收起⌃'; }
.v220-order-meta-body { display: grid; gap: 10px; padding: 12px; }
.v220-order-meta-body .order-v7-date { min-height: 50px; }
.v220-order-note { display: grid; gap: 6px; color: #65736d; font-size: 12px; }
.v220-order-note > span { display: flex; justify-content: space-between; }
.v220-order-note small { color: #929d98; }
.v220-order-note textarea { width: 100%; min-height: 70px; resize: vertical; border: 1px solid #dbe3df; border-radius: 11px; padding: 10px; background: #fff; color: #1f302a; font: inherit; font-size: 16px; }
.v220-settlement { margin: 0 16px 12px; }
.v220-settlement > summary > span small { order: 1; }
.v220-settlement > summary > span strong { order: 2; font-size: 16px; }
.v220-settlement .order-settlement { margin: 0; border: 0; border-radius: 0; box-shadow: none; }

@media (max-width: 520px) {
  .v220-home-hero { margin-inline: -12px; }
  .v220-home-total > span > strong { font-size: 31px; }
  .v220-tool-grid { padding-inline: 2px; }
  .v220-tool-grid > a, .v220-tool-grid > button { min-height: 82px; }
  .v220-tool-grid strong { font-size: 12px; }
  .v220-pending > div > a { min-height: 74px; }
  .v220-settlement { margin-inline: 12px; }
}

/* V221: task-first mobile workbench and dense order editor. */
.v221-home { gap: 16px; color: #192823; }
.v221-home-head { overflow: hidden; margin: -12px -16px 0; padding: 18px 18px 16px; border-radius: 0 0 27px 27px; background: linear-gradient(150deg, #0b4036 0%, #086c58 70%, #078066 100%); color: #fff; box-shadow: 0 14px 30px rgba(8, 84, 69, .16); }
.v221-home-head > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.v221-home-head > header > a:first-child { display: grid; min-width: 0; gap: 3px; color: #fff; text-decoration: none; }
.v221-home-head > header strong { overflow: hidden; font-size: 21px; letter-spacing: -.3px; text-overflow: ellipsis; white-space: nowrap; }
.v221-home-head > header span { color: rgba(255,255,255,.68); font-size: 11px; }
.v221-home-head .v3-avatar { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255,255,255,.26); border-radius: 14px; background: rgba(255,255,255,.12); color: #fff; font-weight: 850; text-decoration: none; }
.v221-today { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 18px -2px 14px; }
.v221-today > span { display: grid; min-width: 0; gap: 3px; padding: 0 12px 0 2px; }
.v221-today > span + span { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.18); }
.v221-today small { color: rgba(255,255,255,.7); font-size: 11px; }
.v221-today strong { overflow: hidden; font-size: 25px; font-variant-numeric: tabular-nums; letter-spacing: -.5px; text-overflow: ellipsis; white-space: nowrap; }
.v221-today em { color: rgba(255,255,255,.62); font-size: 10px; font-style: normal; }
.v221-primary { display: grid; width: 100%; min-height: 54px; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 12px; border: 0; border-radius: 16px; background: #fff; color: #075f4d; font: inherit; text-align: left; text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,.11); }
.v221-primary .v2-icon { width: 36px; height: 36px; border-radius: 12px; }
.v221-primary span { display: grid; }
.v221-primary strong { font-size: 16px; }
.v221-primary b { font-size: 11px; white-space: nowrap; }

.v221-tool-panel > header, .v221-customer-panel > header, .v221-work-queue > header { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px; }
.v221-tool-panel h2, .v221-customer-panel h2, .v221-work-queue h2 { margin: 0; color: #192823; font-size: 18px; letter-spacing: -.2px; }
.v221-tool-panel header a, .v221-customer-panel header a, .v221-work-queue header a { color: #527067; font-size: 11px; font-weight: 760; text-decoration: none; }
.v221-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.v221-tool-grid > a, .v221-tool-grid > button { display: grid; min-width: 0; min-height: 88px; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; padding: 14px; border: 1px solid #e0e7e4; border-radius: 18px; background: #fff; color: #20342d; font: inherit; text-align: left; text-decoration: none; box-shadow: 0 4px 14px rgba(19, 49, 40, .035); }
.v221-tool-grid .v2-icon { width: 48px; height: 48px; border-radius: 16px; }
.v221-tool-grid > * > span:last-child { display: grid; min-width: 0; gap: 4px; }
.v221-tool-grid strong { overflow: hidden; font-size: 15px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.v221-tool-grid small { display: -webkit-box; overflow: hidden; color: #7b8984; font-size: 10px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.v221-tool-grid > *:active { transform: scale(.975); background: #f7faf8; }

.v221-customer-panel > div { overflow: hidden; border: 1px solid #e0e7e4; border-radius: 18px; background: #fff; }
.v221-customer-panel > div > button { display: grid; width: 100%; min-height: 68px; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 10px 13px; border: 0; border-bottom: 1px solid #edf1ef; background: transparent; color: #20342d; font: inherit; text-align: left; }
.v221-customer-panel > div > button:last-child { border-bottom: 0; }
.v221-customer-avatar { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 14px; background: #e5f1ed; color: #08725a; font-weight: 900; }
.v221-customer-panel button > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.v221-customer-panel button > span:nth-child(2) strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.v221-customer-panel button > span:nth-child(2) small { overflow: hidden; color: #83908b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.v221-customer-due { display: grid; min-width: 76px; justify-items: end; gap: 1px; }
.v221-customer-due small { color: #8a9691; font-size: 9px; }
.v221-customer-due strong { color: #a34c3f; font-size: 12px; font-variant-numeric: tabular-nums; }
.v221-customer-due b { color: #08725a; font-size: 11px; }

.v221-work-queue > div { overflow: hidden; border: 1px solid #e0e7e4; border-radius: 18px; background: #fff; }
.v221-work-queue > div > a { display: grid; min-height: 54px; grid-template-columns: minmax(0, 1fr) auto 14px; align-items: center; gap: 10px; padding: 8px 13px; border-bottom: 1px solid #edf1ef; color: #243830; text-decoration: none; }
.v221-work-queue > div > a:last-child { border-bottom: 0; }
.v221-work-queue a > span { display: flex; align-items: center; gap: 10px; }
.v221-work-queue .v2-icon { width: 30px; height: 30px; border-radius: 10px; }
.v221-work-queue a > span strong { font-size: 13px; }
.v221-work-queue a > b { font-size: 20px; font-variant-numeric: tabular-nums; }
.v221-work-queue a > i { color: #91a099; font-size: 17px; font-style: normal; }
.v221-home .v3-recent { margin-top: 0; }

.v221-order-form { gap: 10px; background: #f4f6f5; }
.v221-order-form .order-progress { display: none !important; }
.v221-order-form > section, .v221-order-form > details { border: 0; border-radius: 17px; box-shadow: 0 2px 10px rgba(20, 47, 39, .035); }
.v221-order-party, .v221-order-products { background: #fff; }
.v221-order-party > header h2 { display: grid; gap: 2px; }
.v221-order-party > header h2 small { color: #89958f; font-size: 10px; font-weight: 550; }
.v221-order-party .order-v3-customer-row { min-height: 68px; border: 1px solid #dce6e2; border-radius: 15px; background: #fbfcfb; }
.v221-order-party .order-v3-customer-row.required { border-color: #dcc8a0; background: #fffaf0; }
.v221-order-party .order-v3-customer-row > span:nth-child(2) { gap: 2px; }
.v221-order-party .order-v3-customer-row > span:nth-child(2) small { order: 2; }
.v221-customer-account { display: grid; flex: 0 0 auto; justify-items: end; gap: 1px; }
.v221-customer-account small { color: #8b9691; font-size: 9px; }
.v221-customer-account em { color: #a34c3f; font-size: 12px; font-style: normal; font-weight: 850; font-variant-numeric: tabular-nums; }
.v221-order-party .order-v3-customer-row > b { font-size: 10px; }
.v221-order-party .order-v10-repeat { min-height: 50px; margin-top: 9px; padding-block: 7px; border-radius: 13px; }
.v221-order-meta { margin-top: 9px; border-color: #e3e9e6; background: #fbfcfb; }
.v221-order-meta > summary { min-height: 51px; padding-block: 8px; }
.v221-order-products > header { min-height: 50px; }
.v221-order-products > header > button.primary { min-height: 38px; padding: 8px 11px; border-radius: 12px; font-size: 12px; }
.v221-order-products .order-v6-quick-products { padding-block: 9px 11px; }
.v221-order-products .order-v6-quick-products > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.v221-order-products .order-v6-quick-products button { min-width: 0; min-height: 54px; padding: 8px 10px; border-radius: 12px; text-align: left; }
.v221-order-products .v7-inline-line { border-radius: 15px; box-shadow: none; }
.v221-order-settlement { margin: 0 12px 10px; box-shadow: none !important; }
.v221-order-settlement > summary { min-height: 53px; }

/* V222: customer-aware fast ordering and a single deliberate posting step. */
.order-picker-context { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; padding: 8px 11px; border-radius: 12px; background: #eef7f3; color: #226655; }
.order-picker-context strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.order-picker-context span { flex: 0 0 auto; color: #6b827a; font-size: 9px; }
.order-picker-option.customer-used > span:first-child > strong { display: flex; align-items: center; gap: 6px; }
.order-picker-option.customer-used > span:first-child > strong em { padding: 2px 5px; border-radius: 999px; background: #dff1ea; color: #08725a; font-size: 8px; font-style: normal; font-weight: 850; }
.order-picker-option.customer-used:not(.selected) { background: linear-gradient(90deg, #fbfefd, #f3faf7); }
.multi-product-picker .modal-body { grid-template-rows: auto auto minmax(0, 1fr); }
.order-picker-line { border-bottom: 1px solid #edf0ee; background: #fff; }
.order-picker-line:last-child { border-bottom: 0; }
.order-picker-line > .order-picker-option { border-bottom: 0; }
.order-picker-line.selected { background: #f7fbf9; box-shadow: inset 3px 0 #08745c; }
.order-picker-line.selected > .order-picker-option.selected { background: transparent; box-shadow: none; }
.order-picker-inline-edit { display: grid; grid-template-columns: minmax(134px, 1fr) minmax(104px, .72fr); align-items: center; gap: 10px; padding: 0 12px 12px 15px; }
.order-picker-inline-quantity { display: grid; min-height: 42px; grid-template-columns: 42px minmax(44px, 1fr) 42px; overflow: hidden; border: 1px solid #d7e3de; border-radius: 12px; background: #fff; }
.order-picker-inline-quantity button { border: 0; background: #edf6f2; color: #08745c; font: 850 19px/1 inherit; }
.order-picker-inline-quantity input { width: 100%; min-width: 0; border: 0; border-inline: 1px solid #e2e9e6; border-radius: 0; background: #fff; color: #172b24; font: 850 16px/1 inherit; text-align: center; }
.order-picker-inline-price { display: grid; min-height: 42px; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px; padding: 0 9px; border: 1px solid #d7e3de; border-radius: 12px; background: #fff; }
.order-picker-inline-price span { color: #74847e; font-size: 9px; }
.order-picker-inline-price input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: #172b24; font: 800 14px/1 inherit; text-align: right; }
.order-picker-inline-quantity input:focus, .order-picker-inline-price input:focus { outline: 0; }

@media (max-width: 900px) {
  .v221-home { padding: 12px 14px calc(90px + env(safe-area-inset-bottom)); }
  .v221-home-head { margin-inline: -14px; padding-top: calc(16px + env(safe-area-inset-top)); }
  .v221-order-form { padding-top: 10px; }
  .v221-order-form > section, .v221-order-form > details { margin-inline: 10px; }
  .v221-order-form > .order-v6-draft-notice { margin-inline: 10px; }
  .v221-order-footer { grid-template-columns: minmax(92px, .75fr) minmax(146px, 1.25fr) !important; }
  .v221-order-footer > .order-v8-autosave { display: none; }
}

/* V227 — purchase correction, recoverable drafts, supplier payables, and direct restocking. */
.purchase-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.purchase-summary > article.due strong { color: #a24b3b; }
.supplier-payable-panel {
  overflow: hidden;
  border: 1px solid #e3e9e6;
  border-radius: 18px;
  background: #fff;
}

/* V228 — stocktake audit trail, daily cashbook, and supplier ledger. */
.inventory-stocktake-action { color: #0f6f61 !important; font-weight: 800; }
.stocktake-current { display: grid; gap: 4px; padding: 16px; border-radius: 18px; background: #eef8f5; }
.stocktake-current span, .stocktake-current small { color: #65736f; }
.stocktake-current strong { color: #0d5148; font-size: 24px; }
.stocktake-matrix { display: grid; gap: 14px; }
.stocktake-matrix > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.stocktake-matrix > header small { color: #7a8581; }
.stocktake-matrix section { display: grid; gap: 8px; }
.stocktake-matrix h3 { margin: 0; font-size: 15px; }
.stocktake-matrix section > div { display: grid; grid-template-columns: repeat(5, minmax(54px, 1fr)); gap: 7px; overflow-x: auto; }
.stocktake-matrix label { display: grid; gap: 5px; min-width: 54px; color: #56625f; font-size: 12px; text-align: center; }
.stocktake-matrix input { min-width: 0; padding: 9px 4px; border: 1px solid #d8e2df; border-radius: 10px; text-align: center; font-weight: 800; }
.stocktake-page { max-width: 860px; margin-inline: auto; }
.stocktake-page-form { display: grid; gap: 20px; padding: 20px; }
.stocktake-page-form label { display: grid; gap: 7px; color: #52605b; font-weight: 750; }
.stocktake-page-form input,
.stocktake-page-form textarea { width: 100%; min-height: 48px; border: 1px solid #d8e2df; border-radius: 13px; background: #fff; padding: 11px 13px; color: #17231e; font: inherit; }
.stocktake-page-form textarea { resize: vertical; }
.stocktake-quantity-field input { min-height: 72px; color: #0d5148; font-size: 32px; font-weight: 900; text-align: center; }
.stocktake-quantity-field small { color: #74807b; font-weight: 500; }
.stocktake-page-meta { display: grid; grid-template-columns: minmax(160px, .45fr) minmax(0, 1fr); gap: 12px; }
.stocktake-page-form > footer { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 2; display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; padding-top: 4px; background: linear-gradient(180deg, transparent, #fff 24%); }
.stocktake-page-form > footer .button { width: 100%; min-width: 0; }
.stock-adjustment-row > span:last-child { display: grid; justify-items: end; gap: 3px; }
.stock-adjustment-row button { border: 0; padding: 0; background: transparent; color: #ad4a4a; font-size: 12px; }
.supplier-ledger-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.supplier-ledger-summary span { display: grid; gap: 5px; padding: 13px; border-radius: 14px; background: #f5f7f7; }
.supplier-ledger-summary small { color: #74807d; }
.supplier-ledger-summary strong { font-size: 18px; }
.supplier-ledger-summary .due strong { color: #b94f43; }
.supplier-ledger-list { display: grid; gap: 8px; margin-top: 16px; }
.supplier-ledger-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; align-items: center; gap: 10px; width: 100%; padding: 14px; border: 1px solid #e4e9e7; border-radius: 15px; background: #fff; text-align: left; }
.supplier-ledger-row span { display: grid; gap: 3px; }
.supplier-ledger-row span:nth-child(2) { text-align: right; }
.supplier-ledger-row small { color: #74807d; }
.supplier-ledger-row.is-voided { opacity: .55; }
.cashbook-page { max-width: 980px; margin-inline: auto; }
.cashbook-period { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: end; gap: 8px; margin: 12px 0; }
.cashbook-period > a { display: grid; place-items: center; min-height: 48px; border: 1px solid #dfe6e3; border-radius: 14px; background: #fff; color: #0f6f61; font-size: 25px; text-decoration: none; }
.cashbook-period label { display: grid; gap: 5px; color: #66736f; font-size: 12px; }
.cashbook-period input { min-height: 48px; border: 1px solid #dfe6e3; border-radius: 14px; background: #fff; padding: 0 14px; font: inherit; }
.cashbook-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cashbook-summary article { display: grid; gap: 8px; padding: 17px; border-radius: 18px; background: #fff; box-shadow: 0 8px 26px rgba(13, 36, 56, .06); }
.cashbook-summary span { color: #6e7a76; font-size: 13px; }
.cashbook-summary strong { font-size: clamp(20px, 4vw, 28px); }
.cashbook-summary .income strong { color: #0f7a68; }
.cashbook-summary .expense strong, .cashbook-summary .danger { color: #b94f43; }
.cashbook-list { margin-top: 12px; overflow: hidden; }
.cashbook-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; align-items: center; gap: 11px; padding: 14px 0; border-bottom: 1px solid #edf0ef; }
.cashbook-row:last-child { border-bottom: 0; }
.cashbook-row > i { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: #eaf6f2; color: #0f7565; font-style: normal; font-weight: 900; }
.cashbook-row > i.expense { background: #fff0ed; color: #b94f43; }
.cashbook-row > span { display: grid; gap: 3px; min-width: 0; }
.cashbook-row small, .cashbook-row em { overflow: hidden; color: #78837f; font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.cashbook-row > b.income { color: #0f7565; }
.cashbook-row > b.expense { color: #b94f43; }
.cashbook-row > button { border: 0; background: transparent; color: #9d5350; }
.cashbook-row.is-reversed { opacity: .52; }
.cash-entry-type { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cash-entry-type label { position: relative; }
.cash-entry-type input { position: absolute; opacity: 0; }
.cash-entry-type span { display: grid; min-height: 46px; place-items: center; border: 1px solid #dbe4e1; border-radius: 13px; font-weight: 800; }
.cash-entry-type input:checked + span { border-color: #16806f; background: #eaf6f2; color: #0f675a; }
.cash-entry-hint { margin: 0; padding: 12px 14px; border-radius: 13px; background: #f5f7f7; color: #68736f; font-size: 12px; line-height: 1.6; }

@media (max-width: 640px) {
  .stocktake-matrix section > div { grid-template-columns: repeat(3, minmax(62px, 1fr)); }
  .stocktake-page-form { gap: 16px; padding: 15px; }
  .stocktake-page-meta { grid-template-columns: 1fr; }
  .supplier-ledger-summary { grid-template-columns: 1fr; }
  .cashbook-summary { grid-template-columns: 1fr 1fr; }
  .cashbook-summary .net { grid-column: 1 / -1; }
  .cashbook-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .cashbook-row > button { grid-column: 2 / -1; justify-self: end; }
}
.supplier-payable-panel > header { padding: 16px 18px 11px; }
.supplier-payable-panel > header h2 { margin: 0; color: #17231e; font-size: 18px; }
.supplier-payable-panel > header p { margin: 4px 0 0; color: #77817c; font-size: 12px; }
.supplier-payable-card {
  display: grid;
  width: 100%;
  min-height: 66px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 0;
  border-top: 1px solid #edf0ee;
  background: #fff;
  color: inherit;
  text-align: left;
}
.supplier-payable-card > span { display: grid; min-width: 0; gap: 4px; }
.supplier-payable-card > span strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.supplier-payable-card > span small { color: #7a847f; font-size: 11px; }
.supplier-payable-card > b { display: grid; justify-items: end; color: #9a493a; font-size: 16px; font-variant-numeric: tabular-nums; }
.supplier-payable-card > b small { margin-top: 3px; color: #826b64; font-size: 10px; }
.purchase-card.is-voided { opacity: .58; background: #f6f7f6; }
.purchase-card.is-voided strong { text-decoration: line-through; text-decoration-thickness: 1px; }
.purchase-voided-note,
.purchase-correction-banner,
.purchase-draft-restored {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #f2f5f3;
}
.purchase-voided-note,
.purchase-correction-banner { display: grid; justify-content: stretch; gap: 3px; }
.purchase-voided-note { background: #f5efed; color: #7e4a3f; }
.purchase-correction-banner { margin-bottom: 12px; background: #edf5f1; color: #285548; }
.purchase-draft-restored > span { display: grid; gap: 3px; }
.purchase-draft-restored small,
.purchase-correction-banner span,
.purchase-voided-note span { color: #75817b; font-size: 11px; }
.purchase-draft-restored > button {
  flex: none;
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #315b4f;
  font-weight: 800;
}
.purchase-correct-button { color: #875849; }
.inventory-restock-action { color: #9a493a !important; font-weight: 850 !important; }

@media (max-width: 900px) {
  .purchase-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supplier-payable-panel { border-radius: 16px; }
  .purchase-detail-modal > footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .purchase-detail-modal > footer .button.primary { grid-column: 1 / -1; }
  .purchase-detail-modal > footer .purchase-paid-mark { grid-column: 1 / -1; justify-self: center; }
  .purchase-draft-restored { margin: 12px 14px 0; }
  .purchase-correction-banner { margin: 12px 14px 0; }
}

@media (max-width: 360px) {
  .v221-tool-grid > a, .v221-tool-grid > button { min-height: 82px; grid-template-columns: 42px minmax(0, 1fr); padding: 11px; }
  .v221-tool-grid .v2-icon { width: 42px; height: 42px; }
  .v221-tool-grid strong { font-size: 13px; }
  .v221-today strong { font-size: 22px; }
}

.multi-product-picker .order-picker-option.selected { background: #eff8f4; box-shadow: inset 3px 0 #08745c; }
.multi-product-picker .order-picker-option.selected .order-picker-price small { color: #08745c; font-weight: 850; }
.multi-product-picker > footer { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 10px; }
.multi-product-picker > footer .button { width: 100%; min-width: 0; }

/* V225 — quiet, native visual system: fewer cards, one accent and clearer hierarchy. */
@media (max-width: 900px) {
  .v225-home,
  .v225-business { background: #f7f8f7; color: #171c19; }

  .v225-home { gap: 25px; padding: 14px 18px calc(88px + env(safe-area-inset-bottom)); }
  .v225-home .v221-home-head {
    overflow: visible;
    margin: 0;
    padding: calc(4px + env(safe-area-inset-top)) 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #171c19;
    box-shadow: none;
  }
  .v225-home .v221-home-head > header > a:first-child { color: #171c19; }
  .v225-home .v221-home-head > header strong { color: #171c19; font-size: 23px; font-weight: 850; letter-spacing: -.55px; }
  .v225-home .v221-home-head > header span { color: #7b827e; font-size: 11px; }
  .v225-home .v221-home-head .v3-avatar {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 14px;
    background: #e8edeb;
    color: #294239;
  }
  .v225-home .v221-today { margin: 27px 0 19px; }
  .v225-home .v221-today > span { gap: 4px; padding-left: 0; }
  .v225-home .v221-today > span + span { padding-left: 18px; border-left-color: #dfe4e1; }
  .v225-home .v221-today small { color: #7a817d; font-size: 11px; }
  .v225-home .v221-today strong { color: #171c19; font-size: 29px; font-weight: 880; letter-spacing: -.8px; }
  .v225-home .v221-today em { color: #949a96; font-size: 10px; }
  .v225-home .v221-primary {
    min-height: 56px;
    border-radius: 16px;
    background: #173f35;
    color: #fff;
    box-shadow: none;
  }
  .v225-home .v221-primary .v2-icon { background: rgba(255,255,255,.12) !important; color: #fff !important; }
  .v225-home .v221-primary strong { font-size: 15px; }

  .v225-home .v221-tool-panel > header,
  .v225-home .v221-customer-panel > header,
  .v225-home .v221-work-queue > header { min-height: 34px; padding-inline: 0; }
  .v225-home .v221-tool-panel h2,
  .v225-home .v221-customer-panel h2,
  .v225-home .v221-work-queue h2 { font-size: 18px; font-weight: 850; letter-spacing: -.35px; }
  .v225-home .v221-tool-panel header a,
  .v225-home .v221-customer-panel header a,
  .v225-home .v221-work-queue header a { color: #737c77; font-size: 11px; }
  .v225-home .v221-tool-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding-top: 8px;
  }
  .v225-home .v221-tool-grid > a,
  .v225-home .v221-tool-grid > button {
    display: flex;
    min-height: 78px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 4px 1px;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
    box-shadow: none;
  }
  .v225-home .v221-tool-grid .v2-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #e9efec !important;
    color: #244c40 !important;
  }
  .v225-home .v221-tool-grid > * > span:last-child { display: block; }
  .v225-home .v221-tool-grid strong { font-size: 12px; font-weight: 800; }
  .v225-home .v221-tool-grid small { display: none; }

  .v225-home .v221-customer-panel > div,
  .v225-home .v221-work-queue > div {
    border: 1px solid #e7ebe9;
    border-radius: 16px;
    background: #fff;
  }
  .v225-home .v221-customer-panel > div > button { min-height: 70px; padding: 11px 13px; }
  .v225-home .v221-customer-avatar { border-radius: 12px; background: #edf2ef; color: #305247; }
  .v225-home .v221-customer-due strong { color: #765e48; }

  .v225-home .v221-work-queue > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; }
  .v225-home .v221-work-queue > div > a {
    min-height: 72px;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    gap: 4px;
    padding: 9px 5px;
    border-right: 1px solid #edf0ee;
    border-bottom: 0;
    text-align: center;
  }
  .v225-home .v221-work-queue > div > a:last-child { border-right: 0; }
  .v225-home .v221-work-queue a > span { display: block; }
  .v225-home .v221-work-queue .v2-icon,
  .v225-home .v221-work-queue a > i { display: none; }
  .v225-home .v221-work-queue a > span strong { color: #737c77; font-size: 11px; font-weight: 700; }
  .v225-home .v221-work-queue a > b { order: -1; color: #18211d; font-size: 24px; }

  .v225-home .v3-section > header { padding-inline: 0; }
  .v225-home .v3-recent {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .v225-home .v3-recent > div { overflow: hidden; border: 1px solid #e7ebe9; border-radius: 16px; background: #fff; }
  .v225-home .native-record { min-height: 68px; }

  .bottom-nav {
    border-top: 1px solid rgba(34, 47, 41, .08);
    background: rgba(255,255,255,.94);
    box-shadow: none;
    backdrop-filter: blur(18px);
  }
  .bottom-nav .bottom-create-item { transform: none; }
  .bottom-nav .bottom-create-item svg {
    width: 42px !important;
    height: 42px !important;
    padding: 11px;
    border-radius: 14px;
    background: #173f35;
    box-shadow: none;
  }
  .bottom-nav .bottom-create-item span { color: #53625c; }

  .v225-business { gap: 18px; padding-inline: 16px; }
  .v225-business .native-page-head { min-height: 54px; }
  .v225-business .native-page-head h1 { font-size: 28px; font-weight: 880; letter-spacing: -.65px; }
  .v225-business .native-head-search { border: 0; background: #e9edeb; box-shadow: none; }
  .v225-business .document-create-bar {
    border: 1px solid #e5e9e7;
    border-radius: 17px;
    background: #fff;
    box-shadow: none;
  }
  .v225-business .document-primary-create { min-height: 68px; background: #173f35; color: #fff; }
  .v225-business .document-primary-create .v2-icon { background: rgba(255,255,255,.12) !important; color: #fff !important; }
  .v225-business .document-primary-create small { color: rgba(255,255,255,.64); }
  .v225-business .document-primary-create > b { background: #fff; color: #173f35; }
  .v225-business .document-create-bar > div > a,
  .v225-business .document-create-bar > div > button { min-height: 52px; color: #394740; font-size: 12px; }
  .v225-business .document-create-bar > div .v2-icon { width: 25px; height: 25px; background: transparent !important; }

  .v225-business .document-today-summary {
    overflow: visible;
    border: 0;
    border-block: 1px solid #e4e8e6;
    border-radius: 0;
    background: transparent;
  }
  .v225-business .document-today-summary > span,
  .v225-business .document-today-summary > a { padding: 14px 8px; border-right-color: #e4e8e6; }
  .v225-business .document-today-summary small { color: #7d8581; font-weight: 650; }
  .v225-business .document-today-summary strong { color: #181f1b; font-size: 15px; }
  .v225-business .document-today-summary > a strong { color: #765e48; }
  .v225-business .document-attention { padding: 10px 12px; border: 0; border-radius: 12px; background: #f5efe5; }
  .v225-business .document-attention > strong { color: #715b3f; }
  .v225-business .document-attention a { padding: 5px 6px; background: transparent; color: #715b3f; }

  .v225-business .document-type-tabs { gap: 22px; padding: 0; border-bottom: 1px solid #dfe4e1; }
  .v225-business .document-type-tabs a {
    min-height: 36px;
    gap: 4px;
    padding: 0 0 9px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #7a827e;
    font-size: 12px;
  }
  .v225-business .document-type-tabs a.active { background: transparent; color: #173f35; box-shadow: inset 0 -2px #173f35; }
  .v225-business .document-type-tabs a.active small { color: #173f35; }
  .v225-business .document-stream { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .v225-business .document-day-heading { padding: 2px 0 9px; border: 0; background: transparent; color: #888f8b; }
  .v225-business .document-stream-row { min-height: 72px; padding: 10px 0; background: transparent; }
  .v225-business .document-stream-icon { border-radius: 11px; background: #e9efec; }
  .v225-business .document-stream-icon.purchase,
  .v225-business .document-stream-icon.return,
  .v225-business .document-stream-icon.payment { background: #edf0ee; }
  .v225-business .document-stream-copy strong { color: #1b211e; font-size: 14px; }

  .v225-order-form {
    gap: 0;
    width: 100%;
    margin: 0;
    padding-inline: 0;
    padding-top: 0;
    background: #fff;
  }
  #app[data-route='new-order'] .main-content,
  #app[data-route='return-order'] .main-content,
  #app[data-route='edit-order'] .main-content {
    padding: 0 0 24px;
    background: #fff;
  }
  .v225-order-form > section,
  .v225-order-form > details {
    margin-inline: 0 !important;
    border: 0 !important;
    border-bottom: 8px solid #f3f5f4 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .v225-order-form .v221-order-party,
  .v225-order-form .v221-order-products { padding: 19px 18px; }
  .v225-order-form .v221-order-party > header,
  .v225-order-form .v221-order-products > header { min-height: 42px; padding: 0; }
  .v225-order-form .v221-order-party > header h2,
  .v225-order-form .v221-order-products > header h2 { color: #191f1c; font-size: 19px; letter-spacing: -.35px; }
  .v225-order-form .v221-order-party > header h2 small { display: none; }
  .v225-order-form .v221-order-party > header > button,
  .v225-order-form .v221-order-products > header > button.primary {
    min-height: 36px;
    padding: 7px 9px;
    border: 0;
    border-radius: 10px;
    background: #edf2ef;
    color: #245043;
    box-shadow: none;
  }
  .v225-order-form .v221-order-products > header > button.primary .v2-icon { width: 22px; height: 22px; background: transparent !important; }
  .v225-order-form .order-v3-customer-row,
  .v225-order-form .order-v3-customer-row.required {
    min-height: 64px;
    border: 0;
    border-radius: 14px;
    background: #f2f5f3;
  }
  .v225-order-form .order-v3-customer-row.required { box-shadow: inset 0 0 0 1px #ddd3bf; }
  .v225-order-form .v221-order-meta { margin-top: 10px; border: 0; border-top: 1px solid #e8ecea; border-radius: 0; background: transparent; }
  .v225-order-form .v221-order-meta > summary { padding-inline: 0; }
  .v225-order-form .order-v6-quick-products { margin: 0; padding: 8px 0 2px; }
  .v225-order-form .order-v6-quick-products > small { color: #8b928e; }
  .v225-order-form .order-v6-quick-products button { min-height: 50px; border: 0; background: #f3f5f4; }
  .v225-order-form .v5-order-lines { margin-top: 8px; }
  .v225-order-form .v7-inline-line,
  .v225-order-form .v6-order-line { border: 1px solid #e7ebe9; border-radius: 14px; background: #fff; }
  .v225-order-form .v221-order-settlement { margin: 0 !important; padding: 0 18px; background: #fff; }
  .v225-order-form .v221-order-settlement > summary { padding-inline: 0; }
  .v225-order-form > .order-footer {
    border-top: 1px solid rgba(31, 44, 38, .09);
    background: rgba(255,255,255,.96);
    box-shadow: none;
    backdrop-filter: blur(18px);
  }
  .v225-order-form > .order-footer .button.primary { border-radius: 14px; background: #173f35; box-shadow: none; }

  .multi-product-picker { border-radius: 22px 22px 0 0; box-shadow: 0 -18px 44px rgba(19, 32, 27, .12); }
  .multi-product-picker .order-picker-context { border-radius: 11px; background: #edf2ef; }
  .multi-product-picker .order-picker-line.selected { background: #f5f8f6; box-shadow: inset 2px 0 #315d50; }
  .multi-product-picker .order-picker-option.selected { background: transparent; box-shadow: none; }
  .multi-product-picker .order-picker-inline-quantity,
  .multi-product-picker .order-picker-inline-price { border-color: #dfe5e2; border-radius: 11px; }
}

/* V226 — one continuous sales-entry path: customer → products → review. */
.multi-product-picker .order-picker-context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 9px 10px 9px 12px;
}
.multi-product-picker .order-picker-context > span { display: grid; min-width: 0; gap: 2px; }
.multi-product-picker .order-picker-context > span strong,
.multi-product-picker .order-picker-context > span small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-product-picker .order-picker-context > span strong { color: #19362d; font-size: 13px; }
.multi-product-picker .order-picker-context > span small { color: #728078; font-size: 10px; }
.multi-product-picker .order-picker-context > button {
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #245043;
  font: 800 11px/1 inherit;
}
.multi-product-picker > footer [data-order-picker-review] { font-variant-numeric: tabular-nums; }
.multi-product-picker > footer [data-order-picker-review]:disabled { background: #e8ecea; color: #8b958f; opacity: 1; }

@media (max-width: 900px) {
  .multi-product-picker > footer {
    position: sticky;
    bottom: 0;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid #e5e9e7;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(18px);
  }
  .multi-product-picker > footer .button { min-height: 50px; border-radius: 14px; }
  .multi-product-picker > footer .button.primary { background: #173f35; box-shadow: none; }
}

/* V229 — purchase returns keep stock, supplier balances, and corrections in one auditable flow. */
.purchase-return-modal { width: min(760px, calc(100vw - 24px)); }
.purchase-return-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #eef6f3;
}
.purchase-return-summary > span,
.purchase-return-summary > small { color: #6f7d77; }
.purchase-return-summary > strong { overflow: hidden; color: #153d33; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.purchase-return-summary > small { grid-column: 1 / -1; line-height: 1.55; }
.purchase-return-lines { display: grid; gap: 10px; }
.purchase-return-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, .34fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #e1e8e5;
  border-radius: 16px;
  background: #fff;
}
.purchase-return-line > span,
.purchase-return-line label { display: grid; gap: 5px; min-width: 0; }
.purchase-return-line > span strong { overflow: hidden; color: #17231e; text-overflow: ellipsis; white-space: nowrap; }
.purchase-return-line small { color: #76827d; font-size: 11px; line-height: 1.45; }
.purchase-return-line label > span { color: #596760; font-size: 12px; font-weight: 750; }
.purchase-return-line input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 9px 10px;
  border: 1px solid #d7e1dd;
  border-radius: 12px;
  background: #f9fbfa;
  color: #113b31;
  font: 850 18px/1 inherit;
  text-align: center;
}
.purchase-return-line.matrix { grid-template-columns: 1fr; }
.purchase-return-variants { display: grid; grid-template-columns: repeat(4, minmax(92px, 1fr)); gap: 8px; }
.purchase-return-variants label { padding: 9px; border-radius: 12px; background: #f5f7f6; }
.purchase-return-record,
.purchase-settlement-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #f3f7f5;
}
.purchase-settlement-strip { margin: 10px 0; background: #eef6f3; color: #345a4f; }
.purchase-settlement-strip strong { color: #173f35; }
.purchase-return-record > span { display: grid; gap: 3px; min-width: 0; }
.purchase-return-record small,
.purchase-return-record em { color: #74807b; font-size: 11px; font-style: normal; }
.purchase-return-record > button { flex: none; border: 0; background: transparent; color: #a44d43; font-weight: 800; }
.purchase-return-record.reversed { opacity: .56; }
.purchase-return-record.reversed strong { text-decoration: line-through; }
.supplier-ledger-summary em { color: #74807d; font-size: 10px; font-style: normal; line-height: 1.4; }
.purchase-summary > article small { line-height: 1.4; }

@media (max-width: 640px) {
  .purchase-return-modal { width: 100%; }
  .purchase-return-line { grid-template-columns: 1fr; }
  .purchase-return-variants { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .purchase-return-record { align-items: flex-start; }
  .purchase-settlement-strip { align-items: flex-start; flex-direction: column; gap: 4px; }
  .purchase-detail-modal > footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .purchase-detail-modal > footer > * { min-width: 0; }
}

/* V230 — focused daily workbench, complete business stream, and guided order entry. */
.v230-home-tools .v221-tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.v230-home-tools .v221-tool-grid > * {
  min-height: 92px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 12px 8px;
  text-align: center;
}
.v230-home-tools .v221-tool-grid > * > span { min-width: 0; }
.v230-home-tools .v221-tool-grid strong { font-size: 13px; }
.v230-home-tools .v221-tool-grid small { display: none; }
.v230-home-focus > div > a { min-height: 58px; }
.v230-home-focus > div > a > b { color: #173f35; }

.order-flow-progress {
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 4px;
  background: #fff;
}
.order-flow-progress > span { display: flex; align-items: center; gap: 6px; color: #9aa39f; }
.order-flow-progress > span i {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid #d9e0dd;
  border-radius: 50%;
  background: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}
.order-flow-progress > span b { font-size: 12px; white-space: nowrap; }
.order-flow-progress > em { height: 1px; background: #dfe5e2; }
.order-flow-progress > span.active { color: #173f35; }
.order-flow-progress > span.active i { border-color: #173f35; background: #173f35; color: #fff; }
.order-flow-progress > span.done { color: #2f7564; }
.order-flow-progress > span.done i { border-color: #d8ebe4; background: #e8f4f0; color: #17604f; }
.order-flow-progress > span.done + em { background: #7bb4a5; }

.v230-order-empty {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 11px;
  width: 100%;
  min-height: 82px;
  padding: 14px !important;
  border: 1px dashed #cfdad6 !important;
  border-radius: 15px !important;
  background: #f7f9f8 !important;
  color: #1d4439 !important;
  text-align: left !important;
}
.v230-order-empty > span {
  grid-row: 1 / -1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: #e5f1ed;
  color: #17604f;
  font-size: 23px;
}
.v230-order-empty > strong { align-self: end; font-size: 15px; }
.v230-order-empty > small { align-self: start; color: #7c8782; font-size: 11px; }
.v225-order-form > .order-footer .button.primary:disabled {
  background: #dce2df;
  color: #7f8a85;
  cursor: default;
}

@media (max-width: 640px) {
  .v225-home { gap: 18px; }
  .v230-home-tools .v221-tool-grid { border-radius: 16px; }
  .v230-home-tools .v221-tool-grid .v2-icon { width: 34px; height: 34px; }
  .order-flow-progress { position: sticky; top: calc(54px + env(safe-area-inset-top)); z-index: 5; padding-bottom: 10px; border-bottom: 1px solid #edf0ef; }
  .v225-order-form .v221-order-party,
  .v225-order-form .v221-order-products { padding-top: 15px; }
  .v225-business .document-create-bar { margin-bottom: 0; }
  .v225-business .document-attention { margin-top: -6px; }
  .v225-business .document-type-tabs { margin-top: 2px; }
}

/* V231 — one-tap daily work, operational navigation, and uninterrupted sales entry. */
.v231-command {
  overflow: hidden;
  border: 1px solid #e2e7e4;
  border-radius: 18px;
  background: #fff;
}
.v231-main-action {
  display: grid;
  min-height: 64px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 0;
  background: #173f35;
  color: #fff;
  font: inherit;
  text-align: left;
  text-decoration: none;
}
.v231-main-action .v2-icon { width: 36px; height: 36px; background: rgba(255,255,255,.12) !important; color: #fff !important; }
.v231-main-action span { display: grid; min-width: 0; }
.v231-main-action strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.v231-main-action b { color: rgba(255,255,255,.78); font-size: 11px; white-space: nowrap; }
.v231-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #edf0ee; }
.v231-shortcuts > a,
.v231-shortcuts > button {
  display: grid;
  min-width: 0;
  min-height: 68px;
  justify-items: center;
  align-content: center;
  gap: 5px;
  padding: 8px 3px;
  border: 0;
  border-right: 1px solid #edf0ee;
  background: #fff;
  color: #35473f;
  font: inherit;
  text-align: center;
  text-decoration: none;
}
.v231-shortcuts > :last-child { border-right: 0; }
.v231-shortcuts .v2-icon { width: 28px; height: 28px; border-radius: 9px; background: transparent !important; }
.v231-shortcuts > * > span:last-child { display: block; min-width: 0; }
.v231-shortcuts strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.v231-shortcuts small { display: none; }

.v231-order-footer .v231-order-total { display: grid; gap: 1px; min-width: 0; }
.v231-order-footer .v231-order-total > span { display: flex; align-items: center; gap: 7px; }
.v231-order-footer .v231-order-total em { overflow: hidden; color: #82908a; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {
  .v231-home { gap: 18px; padding: 14px 16px calc(88px + env(safe-area-inset-bottom)); }
  .v231-home .v231-home-head { padding-top: calc(2px + env(safe-area-inset-top)); }
  .v231-home .v221-today { margin: 23px 0 2px; padding-bottom: 2px; }
  .v231-home .v221-today strong { font-size: 28px; }
  .v231-home .v221-work-queue,
  .v231-home .v221-customer-panel { margin-top: 1px; }
  .v231-home .v221-work-queue > header,
  .v231-home .v221-customer-panel > header { min-height: 30px; }
  .v231-home .v221-work-queue h2,
  .v231-home .v221-customer-panel h2 { font-size: 17px; }
  .v231-home .v221-work-queue > div,
  .v231-home .v221-customer-panel > div { border-radius: 14px; }

  .bottom-nav a.factory-bottom-item,
  .bottom-nav button.factory-bottom-item { color: #7a837f; }
  .bottom-nav .factory-bottom-item.active { color: #173f35; font-weight: 850; }
  .bottom-nav .bottom-create-item svg { border-radius: 50%; }

  .v231-order-form { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .v231-order-form .v221-order-party,
  .v231-order-form .v221-order-products { padding: 15px 16px 16px; }
  .v231-order-form .v221-order-party > header,
  .v231-order-form .v221-order-products > header { min-height: 38px; }
  .v231-order-form .v221-order-party > header h2,
  .v231-order-form .v221-order-products > header h2 { font-size: 18px; }
  .v231-order-form .order-v3-customer-row,
  .v231-order-form .order-v3-customer-row.required { min-height: 58px; border-radius: 12px; }
  .v231-order-form .order-v7-recent-customers { margin-top: 10px; }
  .v231-order-form .order-v7-recent-customers > small,
  .v231-order-form .order-v6-quick-products > small { color: #858d89; font-size: 10px; }
  .v231-order-form .order-v6-quick-products { margin: 3px 0 10px; padding: 5px 0 0; }
  .v231-order-form .order-v6-quick-products > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .v231-order-form .order-v6-quick-products button {
    min-height: 48px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #e5e9e7;
    border-radius: 11px;
    background: #f8f9f8;
    text-align: left;
  }
  .v231-order-form .v5-order-lines { margin-top: 5px; }
  .v231-order-form .v7-inline-line,
  .v231-order-form .v6-order-line { border-radius: 12px; }
  .v231-order-form .v221-order-settlement { padding: 0 16px; }
  .v231-order-form > .order-footer.v231-order-footer {
    grid-template-columns: minmax(0, 1fr) minmax(132px, 43%) !important;
    gap: 10px;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid rgba(28, 43, 36, .1);
    border-radius: 0 !important;
    box-shadow: 0 -8px 24px rgba(20, 35, 29, .07);
  }
  .v231-order-footer .v231-order-total { grid-column: 1; grid-row: 1; text-align: left; }
  .v231-order-footer .v231-order-total > span { justify-content: flex-start; }
  .v231-order-footer > .button.primary { grid-column: 2 !important; grid-row: 1 !important; min-height: 48px; border-radius: 12px !important; }
}

/* Keep the V232 purchase workspace authoritative over legacy purchase layout. */
.v7-purchase-form.v232-purchase-form { max-width: 760px; }
.v7-purchase-head.v232-purchase-party { grid-template-columns: minmax(0, 1fr) 170px; gap: 12px; padding: 16px; }
.v7-purchase-lines.v232-purchase-lines { padding: 16px; }
.v7-purchase-footer.v232-purchase-footer { align-items: center; justify-content: space-between; }

@media (max-width: 900px) {
  .v7-purchase-form.v232-purchase-form { width: 100%; gap: 8px; }
  .v7-purchase-head.v232-purchase-party { grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; border-radius: 0; }
  .v7-purchase-lines.v232-purchase-lines { padding: 15px 16px; }
}

/* V233 — one coherent, native-feeling operating rhythm across daily work. */
.v233-operation-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 10px;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 13px;
  border: 0;
  border-bottom: 1px solid #edf1ef;
  background: transparent;
  color: #17231f;
  font: inherit;
  text-align: left;
  text-decoration: none;
}
.v233-operation-row:last-child { border-bottom: 0; }
.v233-operation-row > i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.v233-operation-row > i.sale { background: #e8f4f0; color: #12604f; }
.v233-operation-row > i.purchase { background: #fff2de; color: #995916; }
.v233-operation-row > span { display: grid; min-width: 0; gap: 2px; }
.v233-operation-row > span:nth-of-type(1) strong,
.v233-operation-row > span:nth-of-type(1) small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v233-operation-row > span:nth-of-type(1) strong { font-size: 14px; }
.v233-operation-row > span:nth-of-type(1) small { color: #7a8580; font-size: 10px; }
.v233-operation-row > span:nth-of-type(2) { justify-items: end; }
.v233-operation-row > span:nth-of-type(2) b { color: #18251f; font-size: 13px; }
.v233-operation-row > span:nth-of-type(2) small { color: #697771; font-size: 9px; }
.v233-operation-row > em { color: #a1aaa6; font-style: normal; }

.v233-purchase-undo {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #cfe2db;
  border-radius: 12px;
  background: #edf7f3;
}
.v233-purchase-undo > span { display: grid; gap: 1px; }
.v233-purchase-undo strong { color: #214139; font-size: 12px; }
.v233-purchase-undo small { color: #71817b; font-size: 9px; }
.v233-purchase-undo button { min-height: 34px; padding: 0 13px; border: 0; border-radius: 10px; background: #17604f; color: #fff; font: inherit; font-size: 11px; font-weight: 850; }

.v233-purchase-review { width: min(540px, calc(100vw - 24px)); }
.v233-purchase-review .modal-body { display: grid; gap: 12px; background: #f5f7f6; }
.v233-purchase-review-party { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 13px 14px; border-radius: 14px; background: #fff; }
.v233-purchase-review-party > span { display: grid; gap: 3px; }
.v233-purchase-review-party > span:last-child { justify-items: end; }
.v233-purchase-review-party small { color: #7a8580; font-size: 10px; }
.v233-purchase-review-party strong { font-size: 14px; }
.v233-purchase-review ul { overflow: hidden; margin: 0; padding: 0; border-radius: 14px; background: #fff; list-style: none; }
.v233-purchase-review li { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #edf1ef; }
.v233-purchase-review li:last-child { border-bottom: 0; }
.v233-purchase-review li span { display: grid; gap: 3px; }
.v233-purchase-review li strong { font-size: 13px; }
.v233-purchase-review li small { color: #74817b; font-size: 10px; }
.v233-purchase-review li b { font-size: 13px; white-space: nowrap; }
.v233-purchase-review-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 15px; border-radius: 14px; background: #173f35; color: #fff; }
.v233-purchase-review-total span { display: grid; gap: 5px; }
.v233-purchase-review-total small { color: rgba(255,255,255,.72); font-size: 10px; }
.v233-purchase-review-total strong { font-size: 12px; }
.v233-purchase-review-total > b { font-size: 24px; }

@media (max-width: 900px) {
  :root { --v233-ink: #14201c; --v233-green: #155d4d; --v233-canvas: #f3f6f4; }

  .v233-home {
    gap: 15px !important;
    padding: 12px 14px calc(92px + env(safe-area-inset-bottom)) !important;
    background: var(--v233-canvas);
  }
  .v233-home .v233-home-head {
    overflow: hidden;
    margin: 0 !important;
    padding: calc(15px + env(safe-area-inset-top)) 16px 16px !important;
    border-radius: 22px;
    background: linear-gradient(145deg, #102e28 0%, #174d41 100%);
    color: #fff;
    box-shadow: 0 12px 30px rgba(16,46,40,.16);
  }
  .v233-home .v233-home-head > header > a:first-child { color: #fff; }
  .v233-home .v233-home-head > header a:first-child strong { color: #fff; font-size: 18px; }
  .v233-home .v233-home-head > header a:first-child span { color: rgba(255,255,255,.66); }
  .v233-home .v233-home-head .v3-avatar { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.12); color: #fff; }
  .v233-home .v221-today { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 19px 0 0 !important; padding: 0 !important; border-top: 1px solid rgba(255,255,255,.13); }
  .v233-home .v221-today > a {
    display: grid;
    min-width: 0;
    gap: 2px;
    padding: 15px 4px 2px;
    color: #fff;
    text-decoration: none;
  }
  .v233-home .v221-today > a + a { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.13); }
  .v233-home .v221-today small { color: rgba(255,255,255,.68); font-size: 10px; }
  .v233-home .v221-today strong { overflow: hidden; color: #fff; font-size: 27px !important; letter-spacing: -.8px; text-overflow: ellipsis; white-space: nowrap; }
  .v233-home .v221-today em { color: rgba(255,255,255,.62); font-size: 9px; font-style: normal; }

  .v233-command { border: 0; border-radius: 18px; box-shadow: 0 4px 18px rgba(23,48,40,.06); }
  .v233-command .v231-main-action { min-height: 68px; padding-inline: 15px; background: #17604f; }
  .v233-command .v231-main-action strong { font-size: 16px; }
  .v233-command .v231-shortcuts > * { min-height: 66px; background: #fff; }
  .v233-command .v231-shortcuts .v2-icon { color: #355f53 !important; }

  .v233-work-queue,
  .v233-recent,
  .v233-customer-panel { margin: 0 !important; }
  .v233-work-queue > header,
  .v233-recent > header,
  .v233-customer-panel > header { display: flex; min-height: 30px; align-items: center; justify-content: space-between; padding: 0 2px; }
  .v233-work-queue h2,
  .v233-recent h2,
  .v233-customer-panel h2 { margin: 0; color: var(--v233-ink); font-size: 16px !important; }
  .v233-work-queue header a,
  .v233-recent header a,
  .v233-customer-panel header a { color: #73807a; font-size: 11px; text-decoration: none; }
  .v233-work-queue > div,
  .v233-recent > div,
  .v233-customer-panel > div { overflow: hidden; border: 1px solid #e5ebe8; border-radius: 17px !important; background: #fff; box-shadow: 0 3px 16px rgba(23,48,40,.045); }
  .v233-home .v233-work-queue > div { display: grid !important; grid-template-columns: 1fr !important; }
  .v233-home .v233-work-queue > div > a { display: grid; grid-template-columns: minmax(0, 1fr) auto 12px !important; min-height: 54px !important; align-items: center; justify-items: stretch; border-right: 0 !important; border-bottom: 1px solid #edf1ef; text-align: left; }
  .v233-home .v233-work-queue > div > a:last-child { border-bottom: 0; }
  .v233-home .v233-work-queue > div > a > span { display: flex; align-items: center; justify-self: start; gap: 9px; }
  .v233-home .v233-work-queue > div > a > b { order: initial; justify-self: end; font-size: 18px; }
  .v233-home .v233-work-queue a > i { display: block; }
  .v233-home .v233-work-queue a > span strong { color: #263831; font-size: 13px; font-weight: 800; }
  .v233-home .v233-work-queue .v2-icon { display: grid; width: 28px; height: 28px; }

  .v233-customer-panel > div > button { min-height: 68px; }

  .v233-business,
  .v233-inventory,
  .v233-partners,
  .v233-more { background: var(--v233-canvas); }
  .v233-business .native-page-head,
  .v233-inventory .native-page-head,
  .v233-partners .native-page-head { padding-inline: 16px; background: rgba(243,246,244,.96); }
  .v233-business .document-create-bar,
  .v233-business .document-attention,
  .v233-inventory .native-stock-summary,
  .v233-inventory .native-block,
  .v233-partners .native-partner-summary,
  .v233-partners .partner-identity,
  .v233-partners .native-block,
  .v233-more .native-account-card,
  .v233-more .native-block { margin-right: 14px; margin-left: 14px; border: 1px solid #e4eae7; border-radius: 17px; box-shadow: 0 3px 16px rgba(23,48,40,.04); }
  .v233-business .document-primary-create { border-radius: 15px 15px 0 0; }
  .v233-business .document-type-tabs { top: calc(53px + env(safe-area-inset-top)); background: rgba(243,246,244,.97); }
  .v233-business .document-stream { margin: 0 14px 18px; overflow: hidden; border: 1px solid #e4eae7; border-radius: 17px; background: #fff; }
  .v233-business .document-day-heading { margin: 0; padding: 13px 14px 6px; background: #fff; }

  .v233-order-form {
    gap: 10px;
    padding: 10px 0 calc(82px + env(safe-area-inset-bottom));
    background: var(--v233-canvas);
  }
  .v233-order-form .v221-order-party,
  .v233-order-form .v221-order-products,
  .v233-order-form .v221-order-settlement {
    width: calc(100% - 24px);
    margin: 0 12px;
    padding: 15px !important;
    border: 1px solid #e3e9e6;
    border-radius: 18px !important;
    background: #fff;
    box-shadow: 0 3px 16px rgba(23,48,40,.045);
  }
  .v233-order-form .order-v3-customer-row,
  .v233-order-form .order-v3-customer-row.required { border-style: solid; border-color: #dce4e0; background: #f8faf9; }
  .v233-order-form .order-v10-repeat { border-color: #dce7e3; background: #f5faf8; }
  .v233-order-form .order-v6-quick-products button { min-height: 52px; border-radius: 13px; background: #f7f9f8; }
  .v233-order-form .v7-inline-line,
  .v233-order-form .v6-order-line { border-color: #dfe6e3; border-radius: 15px !important; background: #fff; }
  .v233-line-more { width: auto !important; min-width: 42px; padding: 0 8px !important; border-radius: 9px !important; color: #52645d !important; font-size: 10px !important; letter-spacing: 0 !important; }
  .v233-order-form input:focus,
  .v233-purchase-form input:focus,
  .v233-purchase-form select:focus { border-color: #6fa998 !important; outline: 3px solid rgba(76,145,124,.12); }

  .v233-purchase-page { background: var(--v233-canvas); }
  .v233-purchase-form { gap: 10px !important; padding: 10px 0 calc(84px + env(safe-area-inset-bottom)); }
  .v233-purchase-form .v232-purchase-party,
  .v233-purchase-form .v232-purchase-lines,
  .v233-purchase-form .v232-purchase-settlement,
  .v233-purchase-form > details {
    width: calc(100% - 24px);
    margin: 0 12px !important;
    border: 1px solid #e3e9e6 !important;
    border-radius: 18px !important;
    background: #fff;
    box-shadow: 0 3px 16px rgba(23,48,40,.045);
  }
  .v233-purchase-form .v232-purchase-party,
  .v233-purchase-form .v232-purchase-lines,
  .v233-purchase-form .v232-purchase-settlement { padding: 15px !important; }
  .v233-purchase-form .v232-purchase-supplier > span { display: none; }
  .v233-purchase-form .v232-purchase-lines > header { display: flex; min-height: 40px; align-items: center; flex-direction: row; justify-content: space-between; margin: 0 0 7px; }
  .v233-purchase-form .v232-purchase-lines > header > div { display: block; }
  .v233-purchase-form .v232-purchase-lines > header h2 { margin: 0; text-align: left; }
  .v233-purchase-form .v232-purchase-lines > header > button { margin: 0; }
  .v233-purchase-form > details { padding-inline: 14px !important; }
  .v233-purchase-line { border-radius: 15px !important; background: #fff !important; }
  .v233-purchase-line > header > button { min-height: 32px; padding: 0 8px; border-radius: 9px; background: #f5f7f6; color: #76534d; }
  .v233-purchase-footer { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

  .bottom-nav {
    border-top-color: rgba(25,45,38,.09);
    background: rgba(255,255,255,.94);
    box-shadow: 0 -8px 28px rgba(22,45,38,.055);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .bottom-nav .bottom-create-item svg { box-shadow: 0 8px 18px rgba(23,63,53,.22); }
  button:active,
  a:active { transform: scale(.985); }
  input:active,
  select:active,
  textarea:active { transform: none; }

  .v233-purchase-review { width: calc(100vw - 20px); max-height: calc(100dvh - 28px); border-radius: 22px 22px 0 0; }
  .v233-purchase-review > footer { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

/* V249 final overrides stay last so older visual layers cannot restore web-style cards. */
@media (max-width: 900px) {
  .v249-home { gap: 18px !important; padding: 0 14px calc(92px + env(safe-area-inset-bottom)) !important; background: #f5f7f6 !important; }
  .v249-home .v249-home-head { width: auto !important; margin: 0 -14px !important; padding: calc(19px + env(safe-area-inset-top)) 18px 20px !important; border: 0 !important; border-radius: 0 0 24px 24px !important; background: linear-gradient(145deg, #123b32, #0f5b4a) !important; box-shadow: none !important; }
  .v249-home .v249-command { display: grid !important; gap: 10px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
  .v249-home .v249-command > header { display: flex !important; align-items: center; justify-content: space-between; min-height: 28px; padding: 0 2px; }
  .v249-home .v249-command > header h2 { margin: 0; color: #17231f; font-size: 16px; }
  .v249-home .v249-command > header a { color: #6f7c76; font-size: 11px; text-decoration: none; }
  .v249-home .v249-module-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 9px !important; }
  .v249-home .v249-module-grid > a,
  .v249-home .v249-module-grid > button { display: grid !important; min-width: 0; min-height: 78px !important; grid-template-columns: 38px minmax(0, 1fr) auto !important; align-items: center; gap: 9px !important; padding: 12px !important; border: 1px solid #e3e8e5 !important; border-radius: 15px !important; background: #fff !important; color: #17231f !important; box-shadow: none !important; text-align: left !important; text-decoration: none; }
  .v249-home .v249-module-grid > a:first-child,
  .v249-home .v249-module-grid > button:first-child { border-color: #cfe1da !important; background: #eff7f3 !important; }
  .v249-home .v249-module-grid .v2-icon { display: grid; width: 38px !important; height: 38px !important; margin: 0 !important; border-radius: 12px !important; }
  .v249-home .v249-module-grid > * > span:not(.v2-icon) { display: grid; min-width: 0; gap: 3px; }
  .v249-home .v249-module-grid strong { overflow: hidden; color: #17231f !important; font-size: 13px !important; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
  .v249-home .v249-module-grid small { overflow: hidden; color: #6f7c76 !important; font-size: 9px !important; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
  .v249-home .v249-module-grid > * > b { color: #a5afaa; font-size: 16px; font-weight: 500; }
  .v249-home .v249-setup { margin: 0 !important; box-shadow: none !important; }
  .v249-home .v233-work-queue > div,
  .v249-home .v233-recent > div,
  .v249-home .v233-customer-panel > div { border-color: #e3e8e5 !important; border-radius: 15px !important; box-shadow: none !important; }
  .v249-business,
  .v249-inventory,
  .v249-more { background: #f5f7f6 !important; }
  .v249-business .document-create-bar,
  .v249-business .document-attention,
  .v249-inventory .native-stock-summary,
  .v249-inventory .native-block,
  .v249-more .native-account-card,
  .v249-more .native-block { margin-right: 12px !important; margin-left: 12px !important; border-color: #e3e8e5 !important; border-radius: 15px !important; box-shadow: none !important; }
  .v249-business .document-stream { margin: 0 12px 18px !important; border-color: #e3e8e5 !important; border-radius: 15px !important; box-shadow: none !important; }
  .v249-more .native-account-card { margin-top: 12px !important; background: linear-gradient(145deg, #173d34, #0f5b4a) !important; }
}

/* V250 — one dominant daily action, compact tools, and visible save state. */
@media (max-width: 900px) {
  .v250-home .v250-home-head > header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto 38px;
    align-items: center;
    gap: 9px;
  }

  .v250-sync {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
  }

  .v250-sync i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7fe0bd;
    box-shadow: 0 0 0 3px rgba(127,224,189,.1);
  }

  .v250-sync em {
    max-width: 64px;
    overflow: hidden;
    color: rgba(255,255,255,.76);
    font-size: 9px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .v250-home .v250-command {
    display: grid !important;
    gap: 10px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .v250-primary-action {
    display: grid !important;
    min-height: 74px !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    align-items: center;
    gap: 11px !important;
    padding: 13px 15px !important;
    border: 0 !important;
    border-radius: 17px !important;
    background: #145b49 !important;
    color: #fff !important;
    box-shadow: none !important;
    text-align: left;
    text-decoration: none;
  }

  .v250-primary-action .v2-icon {
    display: grid;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 13px !important;
    background: rgba(255,255,255,.11) !important;
    color: #fff !important;
  }

  .v250-primary-action > span:not(.v2-icon) { display: grid; min-width: 0; gap: 3px; }
  .v250-primary-action strong { color: #fff !important; font-size: 16px !important; font-weight: 850; }
  .v250-primary-action small { color: rgba(255,255,255,.68) !important; font-size: 10px !important; }
  .v250-primary-action > b { padding: 7px 10px; border-radius: 999px; background: #fff; color: #145b49; font-size: 10px; }

  .v250-quick-actions {
    display: grid;
    overflow: hidden;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #e2e8e5;
    border-radius: 15px;
    background: #fff;
  }

  .v250-quick-actions > a,
  .v250-quick-actions > button {
    display: grid !important;
    min-width: 0;
    min-height: 70px !important;
    place-items: center;
    align-content: center;
    gap: 5px !important;
    padding: 8px 3px !important;
    border: 0 !important;
    border-right: 1px solid #edf0ee !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #26352f !important;
    box-shadow: none !important;
    text-align: center !important;
    text-decoration: none;
  }

  .v250-quick-actions > *:last-child { border-right: 0 !important; }
  .v250-quick-actions .v2-icon { width: 28px !important; height: 28px !important; margin: 0 !important; border-radius: 9px !important; }
  .v250-quick-actions > * > span:not(.v2-icon) { display: grid; gap: 1px; }
  .v250-quick-actions strong { color: #26352f !important; font-size: 11px !important; white-space: nowrap; }
  .v250-quick-actions small { color: #87918d !important; font-size: 8px !important; white-space: nowrap; }
}

/* V251 — separate "resume" from "new", then keep the sale flow on one calm page. */
@media (max-width: 900px) {
  .v251-home .v251-home-draft {
    display: grid !important;
    min-height: 66px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "copy amount" "copy action";
    align-items: center;
    gap: 2px 10px;
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 1px solid #d8e4de !important;
    border-radius: 16px !important;
    background: #fff !important;
    color: #17231f !important;
    box-shadow: none !important;
    text-decoration: none;
  }

  .v251-home .v251-home-draft > span { display: grid; grid-area: copy; gap: 3px; min-width: 0; }
  .v251-home .v251-home-draft small { color: #648075 !important; font-size: 10px !important; }
  .v251-home .v251-home-draft strong { overflow: hidden; color: #17231f !important; font-size: 13px !important; text-overflow: ellipsis; white-space: nowrap; }
  .v251-home .v251-home-draft > b { grid-area: amount; color: #17231f !important; font-size: 14px !important; }
  .v251-home .v251-home-draft > i { grid-area: action; color: #14705a !important; font-size: 10px !important; font-style: normal; font-weight: 800; text-align: right; }

  .v251-order-form {
    gap: 10px !important;
    padding-top: 0 !important;
    background: #f4f6f5 !important;
  }

  .v251-order-steps {
    position: sticky;
    z-index: 7;
    top: 0;
    display: grid;
    min-height: 54px;
    grid-template-columns: auto minmax(18px, 1fr) auto minmax(18px, 1fr) auto;
    align-items: center;
    gap: 7px;
    margin: 0 0 2px;
    padding: 7px 18px;
    border-bottom: 1px solid #e6eae8;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .v251-order-steps > b { height: 1px; background: #dce3df; }
  .v251-order-steps button { display: inline-flex; min-width: 52px; min-height: 38px; align-items: center; justify-content: center; gap: 5px; padding: 0; border: 0; background: transparent; color: #8a9490; font-size: 11px; }
  .v251-order-steps button i { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid #cfd7d3; border-radius: 50%; background: #fff; font-size: 10px; font-style: normal; font-weight: 800; }
  .v251-order-steps button.current { color: #154f41; font-weight: 850; }
  .v251-order-steps button.current i { border-color: #145b49; background: #145b49; color: #fff; }
  .v251-order-steps button.done { color: #397263; }
  .v251-order-steps button.done i { border-color: #d3e8df; background: #eaf5f0; color: #14705a; }
  .v251-order-steps button:disabled { opacity: 1; }

  .v251-order-form > .order-v3-customer,
  .v251-order-form > .order-v3-products,
  .v251-order-form > details { margin-right: 12px !important; margin-left: 12px !important; border: 1px solid #e2e7e4 !important; border-radius: 16px !important; background: #fff !important; box-shadow: none !important; }
  .v251-order-form .order-v3-customer-row { min-height: 62px !important; border: 0 !important; border-radius: 13px !important; background: #f4f8f6 !important; box-shadow: none !important; }
  .v251-order-form .order-v7-recent-customers > div,
  .v251-order-form .order-v6-quick-products > div { gap: 7px !important; }
  .v251-order-form .order-v7-recent-customers button,
  .v251-order-form .order-v6-quick-products button { min-height: 38px !important; border-color: #dfe7e3 !important; border-radius: 11px !important; background: #fff !important; box-shadow: none !important; }
  .v251-order-form .v7-inline-line,
  .v251-order-form .order-v9-line { border-color: #e5e9e7 !important; border-radius: 14px !important; box-shadow: none !important; }

  .v251-registration .v242-registration-form { padding: 11px 16px calc(18px + env(safe-area-inset-bottom)); }
  .v251-registration .registration-flow-progress { gap: 10px; margin: 0 2px 12px; }
  .v251-registration .v242-registration-form .registration-wizard-panel { gap: 11px; }
  .v251-registration .v242-registration-form .registration-wizard-panel > header { padding: 0 2px 2px; }
  .v251-registration .v242-registration-form .registration-wizard-panel > header h1 { margin-top: 3px; font-size: 26px; }
  .v251-registration .v242-registration-form .registration-wizard-panel > header p { margin-top: 4px; font-size: 12px; }
  .v251-registration .v242-registration-form .registration-wizard-panel > label:not(.legal-consent),
  .v251-registration .v242-registration-form .registration-wizard-panel .verification-field > label,
  .v251-registration .v242-registration-form .registration-password-fields > label { gap: 5px; }
  .v251-registration .v242-registration-form .registration-wizard-panel input:not([type='radio']):not([type='checkbox']),
  .v251-registration .v242-registration-form .verification-field .button { min-height: 50px; }
  .v251-registration .registration-password-fields { gap: 9px; }
  .v251-registration .registration-password-status { min-height: 16px; margin-top: -2px; }
  .v251-registration .registration-next {
    position: sticky;
    z-index: 8;
    bottom: max(8px, env(safe-area-inset-bottom));
    margin-top: 1px !important;
    border: 5px solid rgba(244,247,245,.96) !important;
    box-shadow: 0 8px 22px rgba(20,52,42,.16) !important;
  }
}

/* V252 — purchase intake now guides supplier, products, then review instead of failing at the end. */
@media (max-width: 900px) {
  .v252-purchase-form {
    gap: 10px !important;
    padding-top: 0 !important;
    background: #f4f6f5 !important;
  }

  .v252-purchase-steps {
    position: sticky;
    z-index: 7;
    top: 0;
    display: grid;
    min-height: 54px;
    grid-template-columns: auto minmax(18px, 1fr) auto minmax(18px, 1fr) auto;
    align-items: center;
    gap: 7px;
    margin: 0 0 2px;
    padding: 7px 18px;
    border-bottom: 1px solid #e6eae8;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .v252-purchase-steps > b { height: 1px; background: #dce3df; }
  .v252-purchase-steps button { display: inline-flex; min-width: 52px; min-height: 38px; align-items: center; justify-content: center; gap: 5px; padding: 0; border: 0; background: transparent; color: #8a9490; font: inherit; font-size: 11px; }
  .v252-purchase-steps button i { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid #cfd7d3; border-radius: 50%; background: #fff; font-size: 10px; font-style: normal; font-weight: 800; }
  .v252-purchase-steps button.current { color: #154f41; font-weight: 850; }
  .v252-purchase-steps button.current i { border-color: #145b49; background: #145b49; color: #fff; }
  .v252-purchase-steps button.done { color: #397263; }
  .v252-purchase-steps button.done i { border-color: #d3e8df; background: #eaf5f0; color: #14705a; }
  .v252-purchase-steps button:disabled { opacity: 1; }

  .v252-purchase-form > .v232-purchase-party,
  .v252-purchase-form > .v232-purchase-lines,
  .v252-purchase-form > .v232-purchase-settlement,
  .v252-purchase-form > details { margin-right: 12px !important; margin-left: 12px !important; border: 1px solid #e2e7e4 !important; border-radius: 16px !important; background: #fff !important; box-shadow: none !important; }
  .v252-purchase-form .v232-purchase-quick button { min-height: 40px; border-color: #dfe7e3; border-radius: 11px; box-shadow: none; }
  .v252-purchase-form .v233-purchase-line { border-color: #e5e9e7 !important; box-shadow: none !important; }
  .v252-purchase-footer [data-purchase-primary-action] { min-width: 126px; }
}

/* V254 — long-running businesses render records in stable batches instead of freezing the phone. */
.document-stream-more {
  display: block;
  width: calc(100% - 24px);
  margin: -8px 12px 18px;
  border-color: #dce5e1;
  background: #fff;
  color: #17604f;
  box-shadow: none;
}

.purchase-list > .purchase-list-more {
  margin-top: 12px;
  border-color: #dce5e1;
  background: #fff;
  color: #17604f;
  box-shadow: none;
}

/* V255 — interrupted work is recoverable, and starting a new purchase cannot silently reuse an old draft. */
body.modal-open { overflow: hidden; }

.v255-business-drafts {
  display: grid;
  gap: 8px;
  margin: 0 14px 12px;
}

.v255-business-drafts > .v10-business-draft { margin: 0; }
.v255-business-purchase-draft { border-color: #eadfc9; background: linear-gradient(135deg, #fff9ee, #fff); }

@media (max-width: 900px) {
  .v255-unfinished-work {
    display: grid;
    gap: 7px;
  }

  .v255-unfinished-work > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3px;
  }

  .v255-unfinished-work > header h2 { margin: 0; color: #26352f; font-size: 13px; }
  .v255-unfinished-work > header span { color: #7e8b86; font-size: 9px; }
  .v255-unfinished-work > div { display: grid; gap: 8px; }

  .v255-unfinished-work .v251-home-draft { margin: 0 !important; }

  .v255-purchase-draft {
    display: grid;
    min-height: 66px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    grid-template-areas: "icon copy amount" "icon copy action";
    align-items: center;
    gap: 2px 9px;
    padding: 11px 13px;
    border: 1px solid #eadfc9;
    border-radius: 16px;
    background: #fff;
    color: #2e2b24;
    text-decoration: none;
  }

  .v255-purchase-draft > .v2-icon { grid-area: icon; width: 34px; height: 34px; margin: 0; }
  .v255-purchase-draft > span:not(.v2-icon) { display: grid; grid-area: copy; min-width: 0; gap: 3px; }
  .v255-purchase-draft small { color: #89785d; font-size: 10px; }
  .v255-purchase-draft strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .v255-purchase-draft > b { grid-area: amount; font-size: 14px; white-space: nowrap; }
  .v255-purchase-draft > i { grid-area: action; color: #9c681b; font-size: 10px; font-style: normal; font-weight: 800; text-align: right; white-space: nowrap; }
}

/* V256 — real interruption handling: pause several sales or purchases and switch without losing work. */
@media (max-width: 900px) {
  .v256-unfinished-work > header h2 { display: inline-flex; align-items: center; gap: 6px; }
  .v256-unfinished-work > header h2 b { display: grid; min-width: 19px; height: 19px; place-items: center; border-radius: 999px; background: #e5efeb; color: #155b49; font-size: 9px; }
  .v256-unfinished-work > header > button { min-height: 30px; padding: 0 4px; border: 0; background: transparent; color: #17604f; font: inherit; font-size: 10px; font-weight: 800; }

  .v256-paused-draft {
    display: grid;
    width: 100%;
    min-height: 66px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    grid-template-areas: "icon copy amount" "icon copy action";
    align-items: center;
    gap: 2px 9px;
    padding: 11px 13px;
    border: 1px dashed #cedbd6;
    border-radius: 16px;
    background: #fbfcfb;
    color: #29352f;
    font: inherit;
    text-align: left;
  }

  .v256-paused-draft > .v2-icon { grid-area: icon; width: 34px; height: 34px; margin: 0; }
  .v256-paused-draft > span:not(.v2-icon) { display: grid; grid-area: copy; min-width: 0; gap: 3px; }
  .v256-paused-draft small { color: #77847f; font-size: 10px; }
  .v256-paused-draft strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .v256-paused-draft > b { grid-area: amount; font-size: 14px; white-space: nowrap; }
  .v256-paused-draft > i { grid-area: action; color: #17604f; font-size: 10px; font-style: normal; font-weight: 800; text-align: right; }
}

.v256-work-draft-modal .modal-body { display: grid; gap: 9px; }
.v256-work-draft-modal .modal-body > article { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; overflow: hidden; border: 1px solid #dfe6e2; border-radius: 14px; background: #fff; }
.v256-work-draft-modal article > button:first-child { display: grid; min-width: 0; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 11px; border: 0; background: #fff; color: #27342f; font: inherit; text-align: left; }
.v256-work-draft-modal article > button:first-child .v2-icon { width: 34px; height: 34px; margin: 0; }
.v256-work-draft-modal article > button:first-child span { display: grid; min-width: 0; gap: 2px; }
.v256-work-draft-modal article > button:first-child small,
.v256-work-draft-modal article > button:first-child em { overflow: hidden; color: #7b8782; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.v256-work-draft-modal article > button:first-child strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.v256-work-draft-modal article > button:first-child b { color: #17604f; font-size: 11px; white-space: nowrap; }
.v256-work-draft-modal article > .danger-link { min-width: 50px; padding: 0 10px; border: 0; border-left: 1px solid #edf0ee; background: #fff; color: #a64a42; font-size: 11px; }

/* V257 — restore full product capability through a clear hierarchy instead of hiding useful tools. */
.v257-home-functions,
.v257-tool-group {
  border: 1px solid #e4e9e6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(24, 53, 44, .045);
}

.v257-home-functions > header,
.v257-tool-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 10px;
}

.v257-home-functions > header h2,
.v257-tool-group > header h2 { margin: 0; color: #26342f; font-size: 15px; }
.v257-home-functions > header > div { display: flex; align-items: center; gap: 12px; }
.v257-home-functions > header button,
.v257-home-functions > header a { padding: 0; border: 0; background: transparent; color: #17604f; font: inherit; font-size: 11px; font-weight: 750; text-decoration: none; }

.v257-home-functions > nav,
.v257-tool-group > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border-top: 1px solid #edf0ee;
  border-radius: 0 0 18px 18px;
  background: #edf0ee;
}

.v257-home-tool,
.v257-tool-group > div > a,
.v257-tool-group > div > button {
  display: grid;
  min-width: 0;
  min-height: 82px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #27332e;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.v257-home-tool { grid-template-columns: 38px minmax(0, 1fr); }
.v257-home-tool .v2-icon,
.v257-tool-group .v2-icon { width: 38px; height: 38px; margin: 0; }
.v257-home-tool > span:not(.v2-icon),
.v257-tool-group > div > :is(a, button) > span:not(.v2-icon) { display: grid; min-width: 0; gap: 4px; }
.v257-home-tool strong,
.v257-tool-group strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.v257-home-tool small,
.v257-tool-group small { overflow: hidden; color: #7c8883; font-size: 9px; line-height: 1.35; text-overflow: ellipsis; }
.v257-tool-group > header small { color: #8a9590; font-size: 10px; }
.v257-tool-group > div > :is(a, button) > b { color: #a0aaa6; font-size: 17px; }
.v257-tools-head { margin-bottom: 12px; }
.v257-tools-head p { max-width: 520px; }

@media (max-width: 900px) {
  .v257-home-functions { margin: 0 12px; box-shadow: none; }
  .v257-home-functions > nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v257-home-tool { min-height: 74px; padding: 11px; }
  .v257-home-tool .v2-icon { width: 34px; height: 34px; }

  .v257-tools-head { padding: 4px 3px 0; }
  .v257-tools-head p { margin-top: 4px; color: #7b8782; font-size: 10px; }
  .v257-tool-group { margin: 0 12px 12px; border-radius: 17px; box-shadow: none; }
  .v257-tool-group > div { grid-template-columns: 1fr; border-radius: 0 0 17px 17px; }
  .v257-tool-group > div > a,
  .v257-tool-group > div > button { min-height: 68px; padding: 10px 13px; }
  .v257-tool-group > div > :is(a, button) > span:not(.v2-icon) small { white-space: normal; }
}

/* Continuous selection: one scroll region, persistent search and order total. */
.modal.order-picker-modal { display: flex; flex-direction: column; height: min(800px, calc(100dvh - 32px)); overflow: hidden; }
.modal.order-picker-modal > header, .modal.order-picker-modal > footer { flex: 0 0 auto; }
.modal.order-picker-modal > .modal-body { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; padding: 0; gap: 0; }
.order-picker-modal .picker-toolbar { flex: 0 0 auto; padding: 0 16px; background: #fff; }
.order-picker-modal .order-picker-list { flex: 1; min-height: 0; border: 0; border-radius: 0; overflow-y: auto; }
.order-picker-modal .order-picker-context { margin: 0 0 12px; padding: 0; min-height: 28px; background: none; border-radius: 0; }
.order-picker-modal .order-picker-context > span { flex: 1; }
.order-picker-modal .order-picker-context > span strong { font-size: 14px; }
.order-picker-modal .order-picker-context > button { min-height: 36px; font-size: 13px; }
.order-picker-modal .order-picker-search input { min-height: 46px; border: 0; border-radius: 10px; background: #f2f5f3; font-size: 16px; }
.picker-scope-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; border-bottom: 1px solid #e5eae7; }
.picker-scope-tabs button { min-height: 48px; border: 0; border-bottom: 3px solid transparent; background: none; color: #78827d; font: inherit; font-size: 14px; }
.picker-scope-tabs button[aria-pressed="true"] { border-bottom-color: #176b55; color: #176b55; font-weight: 750; }
.picker-scope-tabs b { font-variant-numeric: tabular-nums; }
.modal.multi-product-picker .order-picker-line { padding: 8px 4px; box-shadow: none; }
.modal.multi-product-picker .order-picker-option { min-height: 64px; padding: 10px 12px; background: transparent; gap: 14px; }
.modal.multi-product-picker .order-picker-option strong { display: block; white-space: normal; line-height: 1.45; font-size: 16px; overflow-wrap: anywhere; }
.modal.multi-product-picker .order-picker-option small { font-size: 12px; }
.modal.multi-product-picker .order-picker-price { max-width: 115px; }
.modal.multi-product-picker .order-picker-price small { max-width: 100%; white-space: normal; text-align: right; font-size: 11px; }
.modal.multi-product-picker .order-picker-price b { font-size: 17px; }
.modal.multi-product-picker .order-picker-inline-edit { padding-bottom: 0; grid-template-columns: minmax(120px, 1fr) minmax(100px, 1fr); }
.modal.multi-product-picker .order-picker-inline-quantity { grid-template-columns: 40px minmax(0, 1fr) 40px; }
.modal.multi-product-picker .order-picker-inline-quantity input, .modal.multi-product-picker .order-picker-inline-price input { font-size: 17px; min-height: 44px; }
.modal.multi-product-picker .order-picker-inline-price span { font-size: 12px; }
.picker-line-actions { display: flex; justify-content: space-between; align-items: center; min-height: 36px; padding: 0 12px 0 15px; }
.picker-line-actions > span { color: #4d6258; font-size: 12px; font-variant-numeric: tabular-nums; }
.picker-line-actions button, .picker-duplicate-link { border: 0; background: none; color: #6f7974; font: inherit; font-size: 12px; min-height: 36px; padding: 0 8px; }
.picker-duplicate-link { margin-left: 8px; color: #176b55; }
.picker-undo { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: #fff8e9; font-size: 12px; }
.picker-undo:empty { display: none; }
.picker-undo > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-undo button, .order-picker-empty button { flex: 0 0 auto; min-height: 36px; border: 0; background: none; color: #176b55; font: inherit; font-weight: 700; }
.modal.multi-product-picker > footer { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); gap: 12px; background: #fff; border-top: 1px solid #e3e9e5; }
.picker-footer-total { display: grid; gap: 4px; min-width: 0; align-content: center; }
.picker-footer-total small { font-size: 11px; color: #768179; }
.picker-footer-total strong { font-size: 22px; color: #172b23; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.modal.multi-product-picker > footer .button { min-height: 48px; padding-inline: 16px; font-size: 15px; border-radius: 11px; }
@media (max-width: 760px) {
  .modal.order-picker-modal { height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .modal.order-picker-modal > header { padding: max(14px, env(safe-area-inset-top)) 16px 12px; }
}

