:root {
  color-scheme: light;
  --ink: #182a34;
  --soft-ink: #52646e;
  --line: #dce5e8;
  --canvas: #f1f5f5;
  --paper: #fff;
  --sidebar: #132731;
  --side-hover: #203a44;
  --side-text: #d6e4e7;
  --mint: #a9dfd5;
  --brand: #006558;
  --brand-deep: #005146;
  --green-tint: #dff1eb;
  --amber-ink: #774612;
  --amber-tint: #fbedd9;
  --blue-ink: #275a79;
  --blue-tint: #e7eff8;
  --error: #a32936;
  --danger-tint: #fbe9ec;
  --radius: 0.7rem;
  font-family: "Inter", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  background: var(--canvas);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.68; }
a, button, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #147aba; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.skip { position: fixed; z-index: 10; top: 0.5rem; left: 0.5rem; padding: 0.65rem 1rem; background: white; color: var(--brand); transform: translateY(-160%); }
.skip:focus { transform: none; }
.ink-icon { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; }
.primary, .secondary, .text-button, .table-action, .mobile-toggle {
  min-height: 2.75rem; display: inline-flex; justify-content: center; align-items: center;
  padding: 0.55rem 0.9rem; border-radius: 0.42rem; border: 1px solid transparent;
  text-decoration: none; color: var(--ink); gap: 0.45rem; font-weight: 660;
}
.primary { background: var(--brand); color: white; }
.primary:hover { background: var(--brand-deep); }
.secondary { background: var(--paper); border-color: #b8c9cc; }
.secondary:hover { background: #f2f9f7; border-color: var(--brand); }
.secondary.danger-button { color: var(--error); border-color: #e7aeb7; }
.secondary.danger-button:hover { background: var(--danger-tint); }
.text-button, .table-action { background: transparent; white-space: nowrap; color: var(--brand-deep); }
.text-button:hover, .table-action:hover { background: var(--green-tint); }
.table-action { padding-inline: 0.5rem; font-size: 0.85rem; }
.wide { width: 100%; }
.login-view { min-height: 100vh; display: grid; background: var(--canvas); }
.login-brand {
  align-items: center; display: flex; gap: 0.9rem; padding: 1.25rem clamp(1rem, 4vw, 3.5rem);
  background: var(--sidebar); color: white;
}
.login-brand strong, .brand strong { display: block; letter-spacing: 0.12em; }
.brand-sub { display: block; color: #bdd0d2; font-size: 0.74rem; margin-top: 0.21rem; }
.brand-mark {
  width: 2.25rem; height: 2.25rem; flex: 0 0 auto; display: inline-block; border: 1px solid #579086;
  border-radius: 0.42rem; background:
  linear-gradient(90deg, transparent 0 7%, var(--mint) 7% 92%, transparent 92%) center / 74% 2px no-repeat,
  repeating-linear-gradient(90deg, var(--mint) 0 2px, transparent 2px 5px, var(--mint) 5px 6px, transparent 6px 9px)
  center / 58% 50% no-repeat;
}
.login-content { display: grid; place-items: start center; padding: clamp(2rem, 7vw, 6rem) 1rem; }
.login-card { width: min(100%, 28rem); background: white; border: 1px solid var(--line); padding: clamp(1.2rem, 4vw, 2.2rem); border-radius: 0.85rem; }
.login-kicker { color: var(--brand); font-size: 0.88rem; font-weight: 750; margin-bottom: 0.5rem; }
.login-card h1 { font-size: 2rem; margin-bottom: 0.45rem; }
.login-card > p { color: var(--soft-ink); line-height: 1.55; }
.login-card form { display: grid; gap: 0.95rem; margin-top: 1.5rem; }
.demo-logins { border-top: 1px solid var(--line); margin-top: 1.3rem; padding-top: 1.15rem; }
.demo-logins h2 { font-size: 0.94rem; margin-bottom: 0.6rem; }
.demo-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.demo-buttons button { font-size: 0.83rem; padding-inline: 0.35rem; }
.shell { min-height: 100vh; display: grid; align-items: start; }
.sidebar { background: var(--sidebar); color: white; min-width: 0; }
.sidebar-head { display: flex; justify-content: space-between; justify-items: start; padding: 1rem; gap: 1rem; align-items: center; }
.brand { display: flex; align-items: center; gap: 0.68rem; }
.mobile-toggle { color: var(--side-text); border-color: #62808a; background: transparent; font-size: 0.9rem; }
.sidebar-body { display: none; padding: 0.25rem 0.7rem 0.8rem; }
.sidebar-body.open { display: flex; flex-direction: column; }
.sidebar nav { display: grid; gap: 0.85rem; }
.nav-section { display: grid; gap: 0.15rem; }
.nav-label { color: #b1c5cc; font-weight: 650; font-size: 0.75rem; margin: 0.25rem 0.65rem; }
.nav-link {
  display: flex; gap: 0.68rem; align-items: center; border: 1px solid transparent; border-radius: 0.45rem;
  color: var(--side-text); min-height: 2.75rem; padding: 0.45rem 0.68rem; font-weight: 625;
  font-size: 0.9rem; text-decoration: none; overflow-wrap: anywhere;
}
.nav-link:hover { background: var(--side-hover); }
.nav-link[aria-current="page"] { background: #25474d; border-color: #4c7376; color: #e6fffa; }
.nav-link[aria-current="page"] .ink-icon { color: var(--mint); }
.account {
  display: flex; gap: 0.55rem; align-items: center; margin-top: 1rem; border-top: 1px solid #35525b; padding: 0.85rem 0.25rem 0;
}
.account-mark { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.45rem; background: #325258; color: white; flex: 0 0 auto; }
.account-name { min-width: 0; margin-right: auto; }
.account-name strong, .account-name span { display: block; overflow-wrap: anywhere; }
.account-name strong { font-size: 0.83rem; }
.account-name span { color: #bdd0d2; font-size: 0.73rem; margin-top: 0.12rem; }
.account button { background: transparent; border: 0; border-radius: 0.4rem; color: #dce9ea; padding: 0.4rem 0.45rem; min-height: 2.75rem; }
.account button:hover { background: var(--side-hover); }
.main { min-width: 0; }
.topbar {
  min-height: 3.5rem; display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; justify-content: space-between;
  padding: 0.5rem clamp(1rem, 3.1vw, 3rem); border-bottom: 1px solid var(--line); background: var(--paper);
}
.breadcrumb, .topbar-meta { font-size: 0.81rem; color: var(--soft-ink); }
.breadcrumb strong { color: var(--ink); }
.topbar-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.2rem 0.65rem; }
.topbar-about { padding-inline: 0.4rem; text-decoration: underline; text-underline-offset: 0.2em; }
.topbar-about[aria-current="page"] { background: var(--green-tint); }
.topbar-clock { white-space: nowrap; }
.demo-tag { color: var(--amber-ink); background: var(--amber-tint); padding: 0.27rem 0.5rem; font-weight: 680; border-radius: 0.27rem; }
.work-pages {
  display: flex; gap: 0.35rem; align-items: center; min-width: 0; overflow-x: auto;
  position: sticky; top: 0; z-index: 4;
  padding: 0.38rem clamp(0.75rem, 2.4vw, 2rem);
  background: #eaf1f0; border-bottom: 1px solid #cededb;
  scrollbar-width: thin; scrollbar-color: #819b98 transparent;
}
.work-page {
  flex: 0 0 auto; display: flex; min-width: 0; max-width: min(24rem, 82vw);
  border: 1px solid #b9ccc9; border-radius: 0.4rem; color: var(--soft-ink); background: #f6faf9;
}
.work-page a, .work-page-close { display: block; min-height: 2.35rem; line-height: 2.35rem; color: inherit; }
.work-page a {
  min-width: 0; padding-inline: 0.7rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  text-decoration: none; font-size: 0.82rem; font-weight: 680; border-radius: inherit;
}
.work-page-close {
  flex: 0 0 auto; width: 2rem; padding: 0; background: transparent; border: 0;
  border-radius: 0 0.32rem 0.32rem 0; font-size: 1.17rem;
}
.work-page a:hover, .work-page-close:hover { background: #dfeeea; color: var(--brand-deep); }
.work-page :focus-visible { outline-offset: -3px; }
.work-page[data-current] {
  background: var(--paper); border-color: #65928b; color: var(--brand-deep);
  box-shadow: inset 0 -2px 0 var(--brand);
}
.work-record { display: grid; gap: 1rem; min-width: 0; padding: clamp(0.8rem, 2vw, 1.2rem); }
.work-record .value-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.work-record .form-message { margin: 0; }
.content-wrap { max-width: 115rem; padding: clamp(1.05rem, 3.1vw, 2.75rem); margin-inline: auto; }
.page-head { margin-bottom: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; align-items: end; justify-content: space-between; }
.page-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.24; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.page-head p { color: var(--soft-ink); margin-top: 0.52rem; line-height: 1.55; font-size: 0.9rem; }
.page-head h1:focus { outline: none; }
#route-title { scroll-margin-block-start: 3.8rem; }
.flow { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 0.98rem 1rem; margin-bottom: 1rem; }
.flow ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.63rem; margin: 0.65rem 0 0; padding: 0; list-style: none; }
.flow h2 { font-size: 0.98rem; }
.flow-step { display: flex; align-items: center; justify-content: space-between; min-height: 3rem; gap: 0.6rem; border: 1px solid #cde6df; padding: 0.65rem 0.75rem; border-radius: 0.42rem; background: #f2fbf7; color: var(--brand-deep); }
.flow-step[href] { text-decoration: none; }
.flow-step[href]:hover { background: var(--green-tint); }
.flow-step span { font-size: 0.8rem; font-weight: 700; }
.flow-step strong { font-size: 1.13rem; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.75rem), 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.metric { padding: 0.95rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.metric-label { display: flex; gap: 0.4rem; align-items: center; font-size: 0.83rem; color: var(--soft-ink); font-weight: 650; }
.metric-label .ink-icon { color: var(--brand); }
.metric strong { display: block; margin-top: 0.45rem; font-size: clamp(1.3rem, 2.2vw, 1.9rem); overflow-wrap: anywhere; font-weight: 750; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1rem; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; gap: 0.7rem; align-items: center; flex-wrap: wrap; padding: 0.95rem 1rem; }
.panel-heading h2 { font-size: 1.07rem; }
.panel-heading p { color: var(--soft-ink); font-size: 0.82rem; margin-top: 0.3rem; line-height: 1.5; }
.migration-details { padding: 1rem; line-height: 1.6; }
.contract-stamp-image { display: block; width: 9rem; max-width: 100%; max-height: 9rem; object-fit: contain; margin-block: 1rem; }
.migration-details h2 { font-size: 1.07rem; }
.migration-details ol { padding-inline-start: 1.45rem; }
.migration-details li + li { margin-block-start: 0.4rem; }
.interface-body { padding-block-start: 0; }
.interface-body > :is(.page-actions,.form-message) { margin-block-start: 0.8rem; }
#dashboard-filter, #direct-shipping-filter, .sales-pages { padding: 0.65rem 1rem; }
#dashboard-filter, #direct-shipping-filter { margin-bottom: 0; }
#print-dialog { width: min(72rem, calc(100% - 1rem)); max-height: 94dvh; }
#print-frame { display: block; width: 100%; height: calc(94dvh - 8rem); border: 0; background: #e8eeed; }
.table-wrap { max-width: 100%; overflow: auto; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.table-wrap:focus-visible { outline-offset: -3px; }
table { border-spacing: 0; border-collapse: separate; width: 100%; min-width: 37rem; font-size: 0.86rem; text-align: start; }
th, td { text-align: start; padding: 0.57rem 0.75rem; vertical-align: middle; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { padding-inline-start: 1rem; }
thead th { background: #f5f8f8; color: var(--soft-ink); font-weight: 730; white-space: nowrap; font-size: 0.8rem; height: 2.65rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f7faf9; }
td { min-height: 2.75rem; line-height: 1.4; }
.cell-number { text-align: end; white-space: nowrap; }
.cell-code { font-family: "IBM Plex Mono", Consolas, monospace; font-weight: 630; }
.cell-note { overflow-wrap: anywhere; min-width: 8rem; max-width: 16rem; }
.cell-serial { overflow-wrap: anywhere; white-space: pre-line; min-width: 8rem; max-width: 16rem; }
.cell-strong { font-weight: 735; }
.table-actions { display: flex; flex-wrap: wrap; gap: 0.12rem; }
.pill { display: inline-block; white-space: nowrap; padding: 0.22rem 0.49rem; border-radius: 0.35rem; color: var(--soft-ink); background: #e9eff0; font-size: 0.76rem; font-weight: 720; }
.pill.good { color: var(--brand-deep); background: var(--green-tint); }
.pill.wait { color: var(--amber-ink); background: var(--amber-tint); }
.pill.info { color: var(--blue-ink); background: var(--blue-tint); }
.pill.danger { color: var(--error); background: var(--danger-tint); }
.empty, .message { padding: 1.35rem 1rem; color: var(--soft-ink); line-height: 1.55; font-size: 0.88rem; }
.message { padding-inline: 0.25rem; }
.filters { display: flex; align-items: end; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 1rem; }
.filters label { min-width: min(100%, 11.5rem); }
.statement-filter [data-customer-picker] { flex: 0 0 100%; }
.statement-filter > label:has(select) { max-width: 100%; }
label { display: grid; gap: 0.38rem; color: var(--ink); font-size: 0.88rem; font-weight: 670; }
input, select, textarea {
  display: block; min-width: 0; width: 100%; min-height: 2.75rem; border: 1px solid #a7babe; border-radius: 0.4rem;
  padding: 0.54rem 0.62rem; background: white; color: var(--ink); font-size: 1rem; font-weight: 400;
}
textarea { min-height: 4.4rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: #637880; }
input:disabled, select:disabled { background: #edf2f3; }
.alert { background: var(--danger-tint); border: 1px solid #e7aeb7; border-radius: var(--radius); padding: 0.8rem 1rem; color: var(--error); margin-bottom: 1rem; line-height: 1.6; }
.error { color: var(--error); font-size: 0.89rem; line-height: 1.55; }
dialog { width: min(47rem, calc(100% - 1.25rem)); max-height: 90dvh; min-width: 0; border: 1px solid var(--line); border-radius: 0.82rem; padding: 0; color: var(--ink); box-shadow: 0 1.25rem 3.8rem #071b263b; }
dialog::backdrop { background: #1129358f; }
.dialog-head, .dialog-foot { background: var(--paper); position: sticky; z-index: 1; padding: 0.78rem 1rem; }
.dialog-head { top: 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.dialog-head h2 { font-size: 1.22rem; overflow-wrap: anywhere; }
.dialog-body { padding: 1rem; display: grid; gap: 0.92rem; }
.dialog-foot { bottom: 0; border-top: 1px solid var(--line); }
.document-workspace .page-head { margin-bottom: 0.85rem; }
.document-workspace .page-head h1 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
.document-workspace .panel-heading { padding: 0.65rem 0.8rem; }
.document-workspace .table-wrap table, .document-entry .table-wrap table { font-size: 0.8125rem; }
.document-workspace .table-wrap :is(th, td), .document-entry .table-wrap :is(th, td) {
  padding: 0.33rem 0.48rem; line-height: 1.32;
}
.document-workspace .table-wrap thead th, .document-entry .table-wrap thead th { height: 2rem; }
.document-workspace .table-action, .document-entry .table-action {
  min-height: 1.85rem; padding: 0.22rem 0.32rem; font-size: 0.79rem;
}
dialog.document-entry { width: min(59rem, calc(100% - 1.25rem)); max-height: 93dvh; }
.document-entry .dialog-head h2 { font-size: 1.1rem; }
.document-entry :is(.dialog-head, .dialog-foot) { padding: 0.42rem 0.8rem; }
.document-entry .dialog-body { padding: 0.7rem 0.8rem; }
.document-entry :is(.dialog-body, .form-grid, [data-price-history]) { gap: 0.6rem; }
.document-entry label { font-size: 0.82rem; gap: 0.24rem; }
.document-entry :is(input, select, textarea):not([type=checkbox], [type=radio]) { padding: 0.4rem 0.55rem; }
.document-entry textarea { min-height: 3.1rem; }
.line-remarks { display: grid; gap: 0.5rem; }
.dialog-foot .error { margin-bottom: 0.53rem; }
.dialog-actions { display: flex; justify-content: end; gap: 0.55rem; }
.form-grid { display: grid; gap: 0.8rem; }
.form-message { color: var(--soft-ink); font-size: 0.88rem; line-height: 1.55; }
[data-price-history] { display: grid; gap: 0.92rem; min-width: 0; }
dialog:has([data-sales-order-entry]) { width: min(72rem, calc(100% - 1.25rem)); max-height: 95dvh; }
[data-sales-order-entry] { gap: 0.55rem; }
[data-sales-order-entry] :is(.form-grid, .repeat-content, .repeat-row) { gap: 0.4rem 0.55rem; }
[data-sales-order-entry] .repeat-area { padding: 0.36rem 0.55rem 0.55rem; }
[data-sales-order-entry] .repeat-row { padding: 0.4rem 0.5rem; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; }
[data-sales-order-entry] :is(.order-product-fields, .full) { grid-column: 1 / -1; }
[data-sales-customer-detail] { overflow-wrap: anywhere; }
.sales-order-notes summary { width: fit-content; min-height: 1.65rem; cursor: pointer; color: var(--brand-deep); font-size: 0.83rem; }
.sales-order-notes[open] > summary { margin-bottom: 0.32rem; }
.sales-line-amount { display: grid; gap: 0.24rem; font-size: 0.82rem; }
.sales-line-amount strong { min-height: 2.25rem; display: flex; align-items: center; overflow-wrap: anywhere; }
.sales-line-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.sales-line-tools output { color: var(--brand-deep); font-weight: 700; font-size: 0.88rem; }
.shipping-section { display: grid; gap: 0.7rem; min-width: 0; }
.shipping-section > h3 { font-size: 1rem; }
.shipping-buttons { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.shipping-buttons > button { min-height: 2.75rem; }
.shipping-results { display: grid; gap: 0.45rem; overflow-wrap: anywhere; }
.shipping-results:empty { display: none; }
.shipping-results ol, .shipping-results ul { padding-inline-start: 1.35rem; }
.shipping-results li + li { margin-block-start: 0.38rem; }
.shipping-best { padding: 0.62rem 0.75rem; border-radius: 0.45rem; background: var(--green-tint); color: var(--brand-deep); }
.shipping-quote-line { display: flex; justify-content: space-between; align-items: baseline; gap: 0.55rem; }
.shipping-quote-line strong { flex: 0 0 auto; }
.shipping-history-record { border-top: 1px solid var(--line); padding-top: 0.65rem; }
.shipment-contacts { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap: 0.75rem; }
.shipment-contact { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem; }
.shipment-contact h4 { margin: 0; font-size: 0.88rem; }
.permission-options { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 0.35rem; }
.permission-options label { display: flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; }
.permission-options input { width: 1rem; min-height: auto; height: 1rem; padding: 0; accent-color: var(--ink); }
.module-options { margin-top: 0.75rem; margin-bottom: 0.65rem; }
[data-worker-access] { display: grid; gap: 0.8rem; }
.service-search { align-self: end; }
.repeat-area { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.65rem 0.7rem 0.75rem; margin: 0; min-width: 0; }
.repeat-area legend { font-size: 0.89rem; font-weight: 740; padding: 0 0.24rem; }
.repeat-content { display: grid; gap: 0.55rem; margin-bottom: 0.6rem; }
.repeat-row { display: grid; gap: 0.55rem; padding: 0.58rem; border: 1px solid var(--line); border-radius: 0.45rem; }
.repeat-row .text-button { color: var(--error); justify-self: start; }
.order-product-fields { display: grid; min-width: 0; gap: 0.55rem; }
.searchable-select { display: grid; min-width: 0; gap: 0.4rem; }
.option-search { position: relative; min-width: 0; }
.option-results { position: absolute; z-index: 2; inset-inline: 0; top: 100%; max-height: 13rem; overflow: auto;
  border: 1px solid var(--line); border-radius: 0.4rem; background: var(--paper); box-shadow: 0 6px 16px #182a341f; }
.option-results [role="option"] { padding: 0.45rem 0.6rem; min-height: 2rem; cursor: pointer; overflow-wrap: anywhere; }
.option-results [role="option"]:is(:hover,.highlighted) { color: var(--brand-deep); background: var(--green-tint); }
.option-results [aria-selected="true"] { font-weight: 700; }
.order-variants summary { cursor: pointer; color: var(--brand-deep); font-weight: 650; font-size: 0.82rem; }
.order-variants fieldset { margin: 0.4rem 0 0; border: 1px solid var(--line); border-radius: 0.4rem; min-width: 0; }
.order-variants label { display: flex; align-items: center; gap: 0.45rem; padding-block: 0.25rem; overflow-wrap: anywhere; }
.order-variants input { width: 1rem; min-height: 1rem; flex: 0 0 auto; accent-color: var(--brand); }
.order-variants button { margin-top: 0.4rem; }
[data-item-variant] > .text-button { margin-top: 0.45rem; }
.allocation-area { display: grid; gap: 0.55rem; }
.allocation-area [data-add-allocation] { justify-self: start; }
.allocation-area [data-allocation-total]:empty { display: none; }
.allocation-row { display: grid; gap: 0.55rem; align-items: end; padding: 0.55rem 0; }
.allocation-row .text-button { color: var(--error); justify-self: start; }
.company-custom-row { align-items: start; }
.company-custom-row .text-button { align-self: end; }
.company-field-value { white-space: pre-wrap; }
.op-line { padding: 0.65rem 0.75rem; background: var(--canvas); border-radius: 0.5rem; display: grid; gap: 0.4rem; }
.op-line strong { overflow-wrap: anywhere; }
.op-line > p { color: var(--soft-ink); font-size: 0.86rem; }
.document-line-fields { display: grid; gap: 0.55rem; margin-top: 0.55rem; }
.print-serial-toggle { display: flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; }
.print-serial-toggle input { width: 1rem; min-height: 0; height: 1rem; }
.summary-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 0.75rem; margin: 0 0 1rem; }
.report-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0.5rem; border-top: 1px solid var(--line); padding: 0.75rem 1rem; }
.report-strip dt { color: var(--soft-ink); font-size: 0.82rem; }
.report-strip dd { margin: 0.22rem 0 0; font-weight: 750; overflow-wrap: anywhere; }
.statement-figures { grid-template-columns: repeat(2, minmax(0,1fr)); }
.value-list { margin: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.value-list dt { font-size: 0.8rem; color: var(--soft-ink); }
.value-list dd { margin: 0.25rem 0 0; line-height: 1.4; font-size: 0.9rem; overflow-wrap: anywhere; }
.toast { position: fixed; z-index: 9; right: 1rem; bottom: 1rem; max-width: min(calc(100% - 2rem), 25rem); padding: 0.75rem 1rem; border-radius: 0.45rem; background: var(--sidebar); color: white; box-shadow: 0 0.25rem 1.2rem #10252b3b; line-height: 1.45; }
@media (max-width: 38.99rem) {
  .work-page a, .work-page-close { min-height: 2.75rem; line-height: 2.75rem; }
  .work-page-close { width: 2.75rem; }
}
@media (min-width: 39rem) {
  .login-view { grid-template-columns: minmax(11rem, 30%) 1fr; }
  .login-brand { align-content: start; align-items: start; padding-top: 2.2rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .full { grid-column: 1 / -1; }
  .content-wrap:has(> .document-workspace) { padding: 1rem clamp(1rem, 2.4vw, 2rem); }
  .document-entry :is(input, select, textarea):not([type=checkbox], [type=radio]) { font-size: 0.875rem; }
  .document-entry :is(input, select):not([type=checkbox], [type=radio]) { min-height: 2.25rem; }
  .document-entry .line-remarks:has(> label + label) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-entry .line-remarks > label { grid-column: auto; }
  .statement-figures { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .repeat-row { grid-template-columns: minmax(0,2fr) minmax(4.5rem,0.8fr) minmax(6.5rem,1.2fr) auto; align-items: end; }
  .allocation-row { grid-template-columns: minmax(0,2fr) minmax(0,1fr) auto; }
  .company-custom-row { grid-template-columns: minmax(0,1fr) minmax(0,2fr) auto; }
  [data-sales-order-entry] .repeat-row {
    grid-template-columns: minmax(0,1fr) 4.5rem 6.6rem minmax(5.5rem,auto) auto; align-items: start;
  }
  [data-sales-order-entry] .order-product-fields { grid-column: auto; gap: 0.35rem; }
  [data-sales-order-entry] [data-remove-line] { margin-top: 1.47rem; }
  [data-sales-order-entry] :is(.sales-line-tools button, [data-remove-line]) { min-height: 2.25rem; padding: 0.32rem 0.56rem; font-size: 0.82rem; }
}
@media (min-width: 55rem) {
  [data-sales-order-entry] > .form-grid { grid-template-columns: minmax(0,2fr) minmax(8rem,1fr) minmax(8rem,1fr); }
  [data-sales-order-entry] > .form-grid > [data-customer-picker] { grid-column: auto; }
  [data-sales-order-entry] .order-product-fields:has(> [data-order-interface]:not([hidden])) {
    grid-template-columns: minmax(0,1fr) minmax(7rem,0.42fr);
  }
  [data-sales-order-entry] .order-variants { grid-column: 1 / -1; }
  [data-sales-order-entry] .sales-order-notes > .form-grid > label { grid-column: auto; }
}
@media (min-width: 58rem) {
  .shell { grid-template-columns: 13rem 1fr; }
  .sidebar { height: 100dvh; display: flex; flex-direction: column; position: sticky; top: 0; overflow: auto; }
  .sidebar-head { padding: 1.28rem 1rem 1.1rem; }
  .mobile-toggle { display: none; }
  .sidebar-body { display: flex; flex-direction: column; flex: 1; }
  .account { margin-top: auto; }
  .sidebar nav { padding-bottom: 0.85rem; }
  .summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .summary-grid .panel { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
