:root {
  color: #17211d;
  background: #eef2f0;
  font-family: "Microsoft YaHei", "DengXian", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  min-height: 760px;
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 33, 29, 0.035) 1px, transparent 1px),
    #eef2f0;
  background-size: 28px 28px;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.loading-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.loading-shell section {
  display: grid;
  gap: 8px;
  min-width: 280px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #d7dfdb;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(33, 42, 39, 0.12);
}

.loading-shell strong {
  font-size: 22px;
}

.loading-shell span {
  color: #66746f;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.login-panel {
  display: grid;
  gap: 24px;
  width: min(420px, 100%);
  padding: 30px;
  background: #ffffff;
  border: 1px solid #d7dfdb;
  border-radius: 8px;
  box-shadow: 0 20px 52px rgba(33, 42, 39, 0.14);
}

.login-brand {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand strong {
  font-size: 24px;
}

.login-brand > div > span {
  color: #66746f;
  font-size: 14px;
}

.login-form {
  display: grid;
  gap: 15px;
}

.login-form label {
  display: grid;
  gap: 7px;
}

.login-form label span {
  color: #52645c;
  font-size: 13px;
  font-weight: 700;
}

.login-form input {
  height: 40px;
  padding: 0 11px;
  color: #17211d;
  background: #fbfcfb;
  border: 1px solid #cfd9d4;
  border-radius: 6px;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 100vh;
  padding: 24px 18px;
  color: #f7fbf7;
  background: #17231f;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-block {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #17231f;
  background: #b8d7c8;
  border-radius: 8px;
  font-size: 22px;
  font-weight: 800;
}

.brand-block strong,
.brand-block span {
  display: block;
}

.brand-block span {
  color: #aebdb6;
  font-size: 13px;
}

.nav-list {
  display: grid;
  flex: 1;
  gap: 6px;
  min-height: 0;
  padding-right: 2px;
  overflow-y: auto;
}

.nav-item {
  height: 37px;
  padding: 0 14px;
  color: #d7e1dc;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
  background: rgba(184, 215, 200, 0.14);
  border-color: rgba(184, 215, 200, 0.24);
}

.scope-box {
  margin-top: auto;
  padding: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.scope-box h2 {
  margin: 0 0 8px;
  font-size: 14px;
}

.scope-box p {
  margin: 0;
  color: #c2cec8;
  font-size: 13px;
}

.workspace {
  min-width: 0;
  padding: 26px 30px 34px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #5e7169;
  font-size: 13px;
  font-weight: 700;
}

.topbar h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.topbar-meta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.account-badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  height: 32px;
  padding: 0 5px 0 11px;
  color: #33443d;
  background: #ffffff;
  border: 1px solid #d8e0dc;
  border-radius: 6px;
  font-size: 13px;
}

.account-badge span {
  color: #65766f;
  white-space: nowrap;
}

.account-badge strong {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  color: #124732;
  white-space: nowrap;
  background: #dceee5;
  border: 1px solid #b8d7c8;
  border-radius: 6px;
  font-size: 13px;
}

.account-badge .small-button {
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
}

.notice {
  margin: 0 0 14px;
  padding: 10px 13px;
  border: 1px solid #ccd7d1;
  border-radius: 6px;
  font-size: 13px;
}

.notice.success {
  color: #0f5132;
  background: #dff1e8;
  border-color: #add7c3;
}

.notice.error {
  color: #842029;
  background: #f8d7da;
  border-color: #f1aeb5;
}

.notice.info {
  color: #33485f;
  background: #e7eef8;
  border-color: #bdd0e8;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric,
.panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d8e0dc;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(32, 43, 39, 0.07);
}

.metric {
  min-height: 96px;
  padding: 16px;
}

.metric span {
  display: block;
  color: #63756e;
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.metric em {
  display: block;
  margin-top: 4px;
  color: #77847f;
  font-size: 12px;
  font-style: normal;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.span-4 {
  grid-column: span 4;
}

.span-5 {
  grid-column: span 5;
}

.span-6 {
  grid-column: span 6;
}

.span-7 {
  grid-column: span 7;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.panel {
  overflow: hidden;
  margin-bottom: 16px;
}

.two-column .panel {
  margin-bottom: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #f8faf8;
  border-bottom: 1px solid #d8e0dc;
}

.panel-head h2 {
  margin: 0;
  font-size: 17px;
}

.panel-head span {
  color: #63756e;
  font-size: 13px;
  text-align: right;
}

.panel-body {
  padding: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e6ece9;
}

th {
  color: #41544c;
  background: #f8faf8;
  font-size: 13px;
  white-space: nowrap;
}

td {
  color: #24302b;
  font-size: 13px;
}

tr:last-child td {
  border-bottom: 0;
}

.empty-cell {
  color: #7a8782;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  white-space: nowrap;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
}

.status-ok {
  color: #0f5132;
  background: #d9efe4;
}

.status-warn {
  color: #76530f;
  background: #f5e7c4;
}

.status-bad {
  color: #842029;
  background: #f4d6d9;
}

.status-muted {
  color: #59645f;
  background: #e5ebe8;
}

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

.device-tile {
  min-height: 118px;
  padding: 14px;
  background: #f7f4ed;
  border: 1px solid #e1dacb;
  border-radius: 8px;
}

.device-tile span {
  display: block;
  color: #6c6251;
  font-size: 12px;
}

.device-tile strong {
  display: block;
  margin: 12px 0 18px;
  font-size: 21px;
}

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

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

.workflow-source-summary {
  grid-column: 1 / -1;
  margin: 6px;
  border: 1px solid #808080;
  background: #f3f1e5;
}

.workflow-source-title {
  padding: 4px 7px;
  color: #000000;
  background: #d4d0c8;
  border-bottom: 1px solid #808080;
  font-weight: 700;
}

.workflow-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.workflow-source-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 28px;
  border-right: 1px solid #b8b5aa;
  border-bottom: 1px solid #b8b5aa;
}

.workflow-source-item span,
.workflow-source-item strong {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 3px 6px;
}

.workflow-source-item span {
  background: #e8e6d5;
  border-right: 1px solid #b8b5aa;
  font-weight: 700;
}

.workflow-source-item strong {
  overflow-wrap: anywhere;
  background: #ffffff;
  font-weight: 400;
}

.material-source-summary {
  margin: 0;
}

.delivery-selection-message {
  grid-column: 1 / -1;
  min-height: 28px;
  padding: 5px 8px;
  color: #274e13;
  background: #e2f0d9;
  border: 1px solid #93c47d;
}

.delivery-selection-message[data-type="error"] {
  color: #8a1c12;
  background: #f4cccc;
  border-color: #cc0000;
}

.legacy-workspace[data-page="weighing"] .weighing-entry-form {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.legacy-workspace[data-page="weighing"] .weighing-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  padding: 8px;
  background: #f3f1e5;
  border: 1px solid #9b9b8f;
}

@media (max-width: 1200px) {
  .legacy-workspace[data-page="weighing"] .weighing-entry-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.full-row {
  grid-column: 1 / -1;
}

.form-grid label {
  display: grid;
  gap: 6px;
}

.form-grid label span {
  color: #52635d;
  font-size: 13px;
  font-weight: 700;
}

.form-grid input,
.form-grid select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  color: #17211d;
  background: #ffffff;
  border: 1px solid #cdd8d2;
  border-radius: 6px;
}

.form-grid input:focus,
.form-grid select:focus {
  border-color: #318366;
  outline: 2px solid rgba(49, 131, 102, 0.16);
}

.primary-button,
.small-button {
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
}

.primary-button {
  height: 40px;
  color: #ffffff;
  background: #236a54;
}

.primary-button:hover {
  background: #1b5946;
}

.small-button {
  height: 30px;
  padding: 0 12px;
  color: #ffffff;
  white-space: nowrap;
  background: #2d5f8d;
}

.small-button:hover {
  background: #254f76;
}

.small-button.danger-button {
  background: #8f3d2d;
}

.small-button.danger-button:hover {
  background: #743125;
}

.action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.device-note {
  margin: 0 16px 16px;
  padding: 12px;
  color: #5f563f;
  background: #fff6db;
  border: 1px solid #ecdca9;
  border-radius: 6px;
  font-size: 13px;
}

.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  padding: 8px 0;
}

.form-grid .checkbox-row label {
  display: inline-flex;
  grid-template-columns: none;
  gap: 6px;
  align-items: center;
  color: #17211d;
  font-size: 13px;
  font-weight: 700;
}

.form-grid .checkbox-row input {
  width: auto;
  height: auto;
}

.check-list {
  display: grid;
  gap: 8px;
  max-height: 210px;
  padding: 10px;
  overflow: auto;
  background: #f8faf8;
  border: 1px solid #d8e0dc;
  border-radius: 6px;
}

.check-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: center;
  color: #24302b;
  font-size: 13px;
}

.check-row input {
  width: 16px;
  height: 16px;
}

.empty-inline {
  color: #7a8782;
  font-size: 13px;
}

body {
  color: #000000;
  min-width: 0;
  min-height: 0;
  background: #d4d0c8;
  font-family: "SimSun", "Microsoft YaHei", Tahoma, sans-serif;
  font-size: 12px;
  line-height: 1.25;
  text-rendering: auto;
}

button,
input,
select {
  font-size: 12px;
}

.legacy-shell {
  display: grid;
  grid-template-rows: 28px 24px 32px minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  min-width: 0;
  background: #d4d0c8;
  border: 1px solid #808080;
}

.legacy-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 8px;
  color: #ffffff;
  background: linear-gradient(90deg, #0a246a, #3a6ea5);
  border-bottom: 1px solid #404040;
  white-space: nowrap;
}

.legacy-titlebar div {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.legacy-titlebar strong {
  font-size: 13px;
  font-weight: 700;
}

.legacy-titlebar span {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
}

.legacy-title-page {
  flex: 0 0 auto;
}

.legacy-menubar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: stretch;
  min-width: 0;
  padding: 0 4px;
  background: #ece9d8;
  border-top: 1px solid #ffffff;
  border-bottom: 1px solid #8a8a8a;
}

.legacy-menu-group {
  position: relative;
}

.legacy-menu-button,
.legacy-submenu-item {
  height: 22px;
  padding: 0 9px;
  color: #000000;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  font-weight: 400;
}

.legacy-menu-group.active > .legacy-menu-button,
.legacy-menu-button.active,
.legacy-menu-button:hover {
  background: #c7d7f5;
  border-color: #7f9db9;
}

.legacy-submenu {
  position: absolute;
  top: 22px;
  left: 0;
  display: none;
  min-width: 132px;
  padding: 2px;
  background: #ffffff;
  border: 1px solid #7f9db9;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.22);
}

.legacy-menu-group:hover .legacy-submenu {
  display: grid;
}

.legacy-submenu-item {
  width: 100%;
  height: 24px;
}

.legacy-submenu-item:hover,
.legacy-submenu-item.active {
  color: #ffffff;
  background: #316ac5;
}

.legacy-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  min-width: 0;
  padding: 3px 5px;
  background: #ece9d8;
  border-top: 1px solid #ffffff;
  border-bottom: 1px solid #8a8a8a;
}

.legacy-toolbar-left,
.legacy-toolbar-right {
  display: flex;
  gap: 2px;
  align-items: center;
  min-width: 0;
}

.legacy-toolbar-left {
  flex: 1 1 auto;
  overflow-x: auto;
}

.legacy-toolbar-right {
  flex: 0 0 auto;
}

.legacy-toolbar-label {
  flex: 0 0 auto;
  height: 22px;
  padding: 3px 6px 0;
  color: #333333;
  white-space: nowrap;
}

.legacy-tool-button {
  height: 24px;
  min-width: 38px;
  padding: 0 7px;
  color: #000000;
  background: #ece9d8;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  border-radius: 0;
  font-weight: 400;
  white-space: nowrap;
}

.legacy-tool-button:hover,
.legacy-tool-button.active {
  background: #d6e5ff;
}

.legacy-tool-button:active {
  border-color: #808080 #ffffff #ffffff #808080;
}

.legacy-toolbar-separator {
  width: 1px;
  height: 22px;
  margin: 0 4px;
  background: #808080;
  border-right: 1px solid #ffffff;
}

.legacy-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 0;
  background: #bfc3c6;
}

.legacy-layout-no-lookup {
  grid-template-columns: minmax(0, 1fr);
}

.legacy-lookup {
  min-width: 0;
  padding: 6px;
  overflow: auto;
  background: #d4d0c8;
  border-right: 1px solid #808080;
}

.legacy-lookup-title {
  height: 22px;
  padding: 3px 5px 0;
  color: #000000;
  background: #ece9d8;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  font-weight: 700;
}

.delivery-generated-summary {
  margin-top: 10px;
}

.delivery-generated-summary output {
  display: block;
  min-height: 48px;
  padding: 12px 6px;
  color: #0a246a;
  background: #ffffff;
  border: 1px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: center;
}

.delivery-today-date {
  margin-top: 5px;
  padding: 4px 5px;
  color: #000000;
  background: #ffffff;
  border: 1px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  font-weight: 700;
  text-align: center;
}

.delivery-new-button {
  width: 100%;
  margin-top: 5px;
}

.delivery-today-lookup table {
  min-width: 360px;
}

.delivery-today-link {
  padding: 0;
  color: #0a246a;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.delivery-today-lookup tr.is-selected .delivery-today-link,
.delivery-today-lookup tbody tr:hover .delivery-today-link {
  color: #ffffff;
}

.delivery-today-help {
  margin: 7px 2px 0;
  color: #333333;
  font-size: 12px;
  line-height: 1.45;
}

.legacy-query-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  margin-top: 5px;
}

.legacy-query-row label {
  color: #000000;
}

.legacy-query-row input,
.form-grid input,
.form-grid select {
  height: 23px;
  padding: 1px 4px;
  color: #000000;
  background: #ffffff;
  border: 1px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  border-radius: 0;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.12);
}

.weighing-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  align-items: start;
}

.weighing-page {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(340px, 1fr);
  gap: 8px;
  align-items: start;
  align-content: start;
}

.weighing-last-saved {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  border: 1px solid #808080;
  background: #e8e6d5;
}

.weighing-last-saved > div {
  min-width: 0;
  padding: 8px 12px;
}

.weighing-last-saved > div + div {
  border-left: 1px solid #aaa794;
}

.weighing-last-saved span {
  display: block;
  color: #333333;
  font-size: 12px;
}

.weighing-last-saved strong {
  display: block;
  color: #003b3b;
  font: bold 32px/1.25 Consolas, "Courier New", monospace;
  overflow-wrap: anywhere;
}

.weighing-page .weighing-workspace {
  grid-template-columns: minmax(0, 1fr) 240px;
}

.weighing-history-panel .table-wrap {
  max-height: max(200px, calc(100vh - 300px));
  overflow-anchor: none;
}

.weighing-history-panel table {
  min-width: 0;
  width: 100%;
}

@media (max-width: 1250px) {
  .weighing-page {
    grid-template-columns: minmax(0, 1fr);
  }
}

.weighing-entry-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 8px;
}

.weighing-scan-fields {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(110px, 1fr);
  gap: 8px;
}

.weighing-scale-panel {
  align-self: start;
  padding: 8px;
  border: 1px solid #808080;
  background: #e8e6d5;
}

.scale-weight-field {
  display: block;
  width: 100%;
  max-width: 320px;
}

.scale-weight-readout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  margin-top: 3px;
  border: 2px solid #6f8614;
  background: #b7d83b;
}

.scale-weight-readout strong {
  padding-right: 6px;
  color: #111111;
  font-size: 16px;
  text-align: right;
}

.scale-weight-display {
  height: 56px !important;
  padding: 3px 8px !important;
  color: #111111 !important;
  background: #b7d83b !important;
  border: 0 !important;
  font-family: Consolas, "Courier New", monospace;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  text-align: right;
  box-shadow: none !important;
}

.scale-weight-display::placeholder {
  color: #3e470f;
  opacity: 1;
}

.scale-weight-display:focus {
  background: #b7d83b !important;
  outline: 0 !important;
}

.scale-status {
  min-height: 30px;
  padding: 5px 2px;
  color: #333333;
  line-height: 1.4;
}

.weighing-scale-panel .small-button {
  width: 100%;
}

@media (max-width: 980px) {
  .weighing-workspace,
  .weighing-page .weighing-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .weighing-scale-panel {
    width: 320px;
    max-width: 100%;
  }
}

.legacy-lookup-table {
  margin-top: 6px;
  overflow: auto;
  border: 1px solid #808080;
  background: #ffffff;
}

.legacy-lookup table {
  min-width: 210px;
}

.legacy-lookup th,
.legacy-lookup td {
  padding: 3px 4px;
  border-right: 1px solid #c0c0c0;
  border-bottom: 1px solid #c0c0c0;
  font-size: 12px;
}

.legacy-lookup tr.is-selected td {
  color: #ffffff;
  background: #0a246a;
}

.legacy-lookup tbody tr:hover td {
  color: #ffffff;
  background: #316ac5;
}

.legacy-workspace {
  min-width: 0;
  min-height: 0;
  padding: 6px;
  overflow: auto;
  background: #bfc3c6;
}

.legacy-workspace[data-page="weighing"] {
  overflow-anchor: none;
}

.legacy-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 30px;
  margin-bottom: 5px;
  padding: 0 6px;
  color: #000000;
  background: #ece9d8;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
}

.legacy-page-head div {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.legacy-page-head span {
  color: #000000;
  font-size: 12px;
  white-space: nowrap;
}

.legacy-page-head strong {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice {
  margin: 0 0 5px;
  padding: 5px 7px;
  border-radius: 0;
  font-size: 12px;
}

.weighing-notice {
  height: 42px;
  overflow: auto;
}

.metric-strip {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 5px;
  margin-bottom: 5px;
}

.metric,
.panel {
  color: #000000;
  background: #ece9d8;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  border-radius: 0;
  box-shadow: none;
}

.metric {
  min-height: 58px;
  padding: 7px;
}

.metric span,
.metric em {
  color: #000000;
  font-size: 12px;
}

.metric strong {
  margin-top: 4px;
  color: #000080;
  font-size: 18px;
}

.two-column {
  gap: 5px;
  margin-bottom: 5px;
}

.panel {
  margin-bottom: 5px;
  overflow: visible;
}

.panel-head {
  min-height: 24px;
  padding: 3px 5px;
  background: #d4d0c8;
  border-bottom: 1px solid #808080;
}

.panel-head h2 {
  color: #000000;
  font-size: 13px;
}

.panel-head span {
  color: #333333;
  font-size: 12px;
}

.panel-body {
  background: #ece9d8;
}

.table-wrap {
  max-height: max(180px, calc(100vh - 260px));
  overflow: auto;
  border: 1px solid #808080;
  background: #ffffff;
}

.table-wrap > table > thead > tr > th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.entry-grid-table {
  min-width: 980px;
}

.entry-grid-table th,
.entry-grid-table td {
  padding: 2px;
}

.entry-grid-table input {
  width: 100%;
  min-width: 78px;
  height: 22px;
  padding: 1px 3px;
  font-size: 12px;
}

.process-material-page {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.process-material-page .panel,
.process-material-page .panel-body,
.process-material-plan-form,
.process-material-plan-section,
.process-material-plan-table-wrap {
  min-width: 0;
}

.production-process-heading {
  display: flex;
  align-items: end;
  gap: 8px;
  flex-wrap: wrap;
  margin: 7px 0;
}

.production-process-heading > label {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 1 640px;
  min-width: 220px;
  max-width: 100%;
}

.production-process-heading > label > span {
  flex-shrink: 0;
}

.production-process-heading select {
  flex: 1;
  min-width: 0;
  width: 0;
}

.production-process-saved {
  flex: 1;
  min-width: 200px;
  color: #444;
}

.production-process-section {
  min-width: 0;
  margin: 7px 0;
  padding: 6px 8px 8px;
  border: 1px solid #aaa;
}

.production-process-section legend {
  color: #000080;
  font-weight: bold;
}

.production-process-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px 8px;
}

.production-process-grid label {
  min-width: 0;
}

.production-process-grid input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
}

.production-process-wide {
  grid-column: span 2;
}

.production-process-grid .production-process-check {
  display: flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 1300px) {
  .production-process-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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

.process-material-plan-form {
  padding-bottom: 6px;
}

.process-material-common-fields {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  border-bottom: 1px solid #808080;
}

.process-material-plan-section {
  padding: 6px;
}

.process-material-plan-toolbar,
.process-material-plan-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.process-material-plan-toolbar {
  min-height: 30px;
  padding-bottom: 5px;
}

.process-material-plan-toolbar > div {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.process-material-plan-toolbar span {
  color: #333333;
}

.process-material-plan-table-wrap {
  max-height: 420px;
}

.process-material-plan-table {
  width: 100%;
  min-width: 1780px;
  table-layout: fixed;
}

.process-material-plan-table th,
.process-material-plan-table td {
  padding: 2px;
  vertical-align: middle;
}

.process-material-plan-table th:first-child,
.process-material-plan-table td:first-child {
  width: 38px;
  text-align: center;
}

.process-material-plan-table th:nth-child(2),
.process-material-plan-table td:nth-child(2) {
  width: 320px;
}

.process-material-plan-table th:last-child,
.process-material-plan-table td:last-child {
  width: 58px;
}

.process-material-plan-table input,
.process-material-plan-table select {
  width: 100%;
  min-width: 0;
  height: 24px;
  padding: 1px 3px;
  color: #000000;
  background: #ffffff;
  border: 1px solid #808080;
  border-radius: 0;
  font-size: 12px;
}

.process-material-plan-table input[readonly] {
  background: #f0f0e8;
}

.process-material-stock-summary {
  min-height: 24px;
  padding: 3px 5px;
  overflow: hidden;
  color: #000000;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #f0f0e8;
  border: 1px solid #808080;
}

.process-material-stock-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 3px;
}

.process-material-stock-actions .small-button {
  min-width: 0;
}

.process-material-plan-summary {
  min-height: 34px;
  padding-top: 6px;
}

.process-material-plan-summary .primary-button {
  min-width: 180px;
}

[data-process-material-ratio-total] {
  color: #006100;
}

[data-process-material-ratio-total].is-invalid {
  color: #9c0006;
}

.yarn-batch-lookup-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(0, 0, 0, 0.28);
}

.yarn-batch-lookup-overlay[hidden] {
  display: none;
}

.yarn-batch-lookup-window {
  display: grid;
  grid-template-rows: auto auto minmax(220px, 1fr) auto;
  width: min(1180px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  color: #000000;
  background: #ece9d8;
  border: 2px solid #315f93;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
}

.yarn-batch-lookup-titlebar,
.yarn-batch-lookup-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
}

.yarn-batch-lookup-titlebar {
  color: #ffffff;
  background: #315f93;
}

.yarn-batch-lookup-titlebar h3 {
  margin: 0;
  font-size: 16px;
}

.yarn-batch-lookup-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
  gap: 6px;
  align-items: end;
  padding: 8px;
  border-bottom: 1px solid #808080;
}

.yarn-batch-lookup-filters label {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.yarn-batch-lookup-filters input {
  width: 100%;
  min-width: 0;
  height: 26px;
  padding: 2px 4px;
  color: #000000;
  background: #ffffff;
  border: 1px solid #808080;
  border-radius: 0;
}

.yarn-batch-lookup-results-wrap {
  min-height: 220px;
  max-height: 420px;
  overflow: auto;
  background: #ffffff;
  border-bottom: 1px solid #808080;
}

.yarn-batch-lookup-table {
  width: 100%;
  min-width: 1120px;
  table-layout: fixed;
}

.yarn-batch-lookup-table th:first-child,
.yarn-batch-lookup-table td:first-child {
  width: 48px;
  text-align: center;
}

.yarn-batch-lookup-result-row {
  cursor: pointer;
}

.yarn-batch-lookup-result-row:hover {
  background: #d9e8fb;
}

.yarn-batch-lookup-result-row.is-selected,
.yarn-batch-lookup-result-row.is-selected:hover {
  color: #ffffff;
  background: #316ac5;
}

.yarn-batch-lookup-result-row.is-zero-stock:not(.is-selected) {
  color: #9c0006;
  background: #fce8e6;
}

.yarn-batch-lookup-footer {
  min-height: 38px;
}

.yarn-batch-lookup-footer > div {
  display: flex;
  gap: 6px;
}

.yarn-batch-lookup-footer .primary-button {
  min-width: 100px;
}

.legacy-list-query {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  min-height: 42px;
  padding: 5px 6px;
  background: #ece9d8;
  border-bottom: 1px solid #808080;
}

.legacy-list-query label {
  display: grid;
  grid-template-columns: auto minmax(280px, 420px);
  gap: 6px;
  align-items: center;
}

.legacy-list-query label span {
  white-space: nowrap;
}

.legacy-list-query input {
  width: 100%;
  height: 22px;
  padding: 1px 4px;
  color: #000000;
  background: #ffffff;
  border: 1px solid #808080;
  border-radius: 0;
}

.legacy-list-query-actions {
  display: flex;
  gap: 4px;
}

.legacy-list-query-actions .small-button {
  min-width: 52px;
}

table {
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 3px 5px;
  color: #000000;
  vertical-align: middle;
  border-right: 1px solid #b5b5b5;
  border-bottom: 1px solid #b5b5b5;
  font-size: 12px;
  line-height: 1.25;
}

th {
  color: #000000;
  background: #ece9d8;
  border-bottom: 1px solid #808080;
  font-weight: 700;
}

td {
  color: #000000;
  background: #ffffff;
}

tbody tr:nth-child(even) td {
  background: #f4f4f4;
}

tbody tr:hover td {
  background: #dce8ff;
}

.form-grid {
  gap: 5px 8px;
  padding: 6px;
}

.form-grid label {
  gap: 3px;
}

.form-grid label span {
  color: #000000;
  font-size: 12px;
  font-weight: 400;
}

.form-grid input:focus,
.form-grid select:focus {
  border-color: #0a246a;
  outline: 1px dotted #000000;
}

.primary-button,
.small-button {
  height: 24px;
  min-height: 24px;
  padding: 0 9px;
  color: #000000;
  background: #ece9d8;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  border-radius: 0;
  font-size: 12px;
  font-weight: 400;
}

.primary-button:hover,
.small-button:hover {
  color: #000000;
  background: #d6e5ff;
}

.small-button.danger-button {
  color: #ffffff;
  background: #8f3d2d;
}

.small-button.danger-button:hover {
  color: #ffffff;
  background: #743125;
}

.primary-button:active,
.small-button:active {
  border-color: #808080 #ffffff #ffffff #808080;
}

.action-group {
  gap: 2px;
}

.badge {
  min-height: 18px;
  padding: 0 5px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0;
  font-size: 12px;
}

.status-ok {
  color: #006100;
  background: #c6efce;
}

.status-warn {
  color: #7a3f00;
  background: #ffe699;
}

.status-bad {
  color: #9c0006;
  background: #ffc7ce;
}

.status-muted {
  color: #333333;
  background: #d9e1f2;
}

.device-note {
  margin: 0 6px 6px;
  padding: 6px;
  color: #5f4200;
  background: #fff2cc;
  border: 1px solid #c8a951;
  border-radius: 0;
  font-size: 12px;
}

.check-list {
  max-height: 170px;
  padding: 4px;
  background: #ffffff;
  border: 1px solid #808080;
  border-radius: 0;
}

.check-row {
  grid-template-columns: 16px 1fr;
  gap: 4px;
  font-size: 12px;
}

.legacy-workspace[data-page="ticket-printing"] .table-wrap,
.legacy-workspace[data-page="tickets"] .table-wrap {
  background: #ffffff;
}

.legacy-workspace[data-page="ticket-printing"] tbody td,
.legacy-workspace[data-page="tickets"] tbody td {
  background: #ffffff;
}

.legacy-workspace[data-page="ticket-printing"] tbody tr:nth-child(even) td,
.legacy-workspace[data-page="tickets"] tbody tr:nth-child(even) td {
  background: #f4f4f4;
}

.legacy-workspace[data-page="ticket-printing"] tbody tr:hover td,
.legacy-workspace[data-page="tickets"] tbody tr:hover td {
  color: #000000;
  background: #dce8ff;
}

.legacy-workspace[data-page="ticket-printing"] .badge,
.legacy-workspace[data-page="tickets"] .badge {
  border-color: rgba(0, 0, 0, 0.24);
}

.legacy-workspace[data-page="fabric-stock"] .table-wrap {
  max-height: calc(100vh - 300px);
  overflow: auto;
}

.legacy-workspace[data-page="fabric-stock"] thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.ticket-printing-page {
  display: grid;
  gap: 8px;
}

.ticket-production-query,
.ticket-query-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: end;
  padding: 6px;
}

.ticket-production-query label,
.ticket-query-form label {
  display: grid;
  grid-template-columns: auto minmax(260px, 420px);
  gap: 6px;
  align-items: center;
}

.ticket-production-query input,
.ticket-query-form input,
.ticket-shipping-hold-form input {
  width: 100%;
  height: 23px;
  min-width: 0;
  padding: 1px 4px;
  color: #000000;
  background: #ffffff;
  border: 1px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  border-radius: 0;
}

.ticket-machine-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 6px 6px;
  background: #808080;
  border: 1px solid #808080;
}

.ticket-machine-summary span {
  min-width: 0;
  padding: 5px 6px;
  overflow: hidden;
  color: #000000;
  background: #eef3f8;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ticket-machine-summary strong {
  margin-left: 4px;
}

.ticket-machine-summary .ticket-weight-summary {
  white-space: normal;
  overflow: visible;
}

.ticket-printing-page .table-wrap td:nth-child(4),
.ticket-printing-page .table-wrap td:nth-child(5) {
  white-space: nowrap;
}

.fabric-stock-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding: 7px 8px;
  margin-bottom: 6px;
  color: #003b6f;
  background: #eef3f8;
  border: 1px solid #808080;
}

.fabric-stock-summary span {
  white-space: nowrap;
}

.ticket-range-preview {
  margin: 0 6px 6px;
  padding: 5px 6px;
  color: #003b6f;
  background: #e7f0fa;
  border-left: 3px solid #2f6ea5;
  font-weight: 700;
}

.ticket-query-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1.45fr) minmax(360px, 0.75fr);
  gap: 8px;
  align-items: start;
}

.ticket-query-panel,
.ticket-detail-panel {
  min-width: 0;
}

.ticket-query-panel .table-wrap {
  max-height: 620px;
  overflow: auto;
}

.ticket-query-panel table {
  min-width: 1320px;
}

.ticket-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid #808080;
}

.ticket-detail-grid > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  min-width: 0;
  border-right: 1px solid #c0c0c0;
  border-bottom: 1px solid #c0c0c0;
}

.ticket-detail-grid dt,
.ticket-detail-grid dd {
  min-width: 0;
  margin: 0;
  padding: 4px 5px;
  overflow-wrap: anywhere;
}

.ticket-detail-grid dt {
  background: #dfe5ea;
  font-weight: 700;
}

.ticket-detail-grid dd {
  background: #ffffff;
}

.ticket-operation-section {
  padding: 6px;
  border-bottom: 1px solid #808080;
}

.ticket-operation-section h3 {
  margin: 0 0 6px;
  font-size: 12px;
}

.ticket-edit-form {
  padding: 0;
}

.ticket-restriction-note {
  padding: 6px;
  color: #7a1f16;
  background: #f8e5df;
  border: 1px solid #b76a59;
}

.ticket-shipping-hold-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: end;
}

.ticket-shipping-hold-form label {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
}

.ticket-hold-current {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 4px 6px;
  color: #4f3200;
  background: #fff1c9;
  border: 1px solid #ba8a28;
}

.ticket-hold-current span {
  color: #5f5f5f;
}

.ticket-empty-detail {
  padding: 12px;
}

.login-shell,
.loading-shell {
  background: #d4d0c8;
}

.login-panel,
.loading-shell section {
  background: #ece9d8;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  border-radius: 0;
  box-shadow: none;
}

.brand-mark {
  color: #ffffff;
  background: #0a246a;
  border-radius: 0;
}

.login-brand > div > span,
.login-form label span {
  color: #000000;
}

.login-form input {
  height: 24px;
  color: #000000;
  background: #ffffff;
  border: 1px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  border-radius: 0;
}

.login-form .login-remember {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.login-form .login-remember input {
  width: 14px;
  height: 14px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

.login-form .login-remember span {
  font-weight: 400;
}


.yarn-inbound-form {
  display: grid;
  gap: 8px;
  padding: 6px;
}

.material-inbound-page {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.material-inbound-form-panel,
.material-inbound-record-panel {
  min-width: 0;
}

.material-inbound-header,
.yarn-inbound-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 260px));
  gap: 6px 22px;
  align-items: center;
  justify-content: start;
}

.material-inbound-header {
  padding: 6px;
  background: #ece9d8;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
}

.material-inbound-header label,
.yarn-inbound-line label {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  min-width: 0;
  color: #000000;
}

.material-inbound-header label span,
.yarn-inbound-line label span {
  overflow: hidden;
  white-space: nowrap;
  text-align: left;
  text-overflow: ellipsis;
}

.material-inbound-header label.required-field span::after,
.yarn-inbound-line label.required-field span::after {
  content: "*";
  margin-left: 2px;
  color: #b00000;
  font-weight: 700;
}

.material-inbound-header input,
.yarn-inbound-line input {
  width: 100%;
  height: 23px;
  min-width: 0;
  padding: 1px 4px;
  color: #000000;
  background: #ffffff;
  border: 1px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  border-radius: 0;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.12);
}

.material-inbound-header input:focus,
.yarn-inbound-line input:focus {
  border-color: #0a246a;
  outline: 1px dotted #000000;
}

.material-inbound-header label.full-row,
.yarn-inbound-line label.full-row {
  grid-column: span 2;
}

.material-inbound-lines {
  display: grid;
  gap: 8px;
}

.yarn-inbound-line {
  padding: 6px;
  background: #ece9d8;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
}

.line-toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.line-toolbar strong {
  font-size: 12px;
  font-weight: 700;
}

.material-inbound-record-panel .table-wrap {
  max-height: 260px;
  overflow: auto;
}

.material-inbound-record-panel table {
  min-width: 1440px;
}

.material-inbound-record-panel th:last-child,
.material-inbound-record-panel td:last-child:not([colspan]) {
  position: sticky;
  right: 0;
  min-width: 104px;
  width: 104px;
  background: #ece9d8;
  z-index: 1;
}

.material-inbound-record-panel th:last-child {
  z-index: 3;
}

.material-inbound-record-panel .action-group {
  flex-wrap: nowrap;
}

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

@media (max-width: 1200px) {
  .ticket-query-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .material-inbound-header,
  .yarn-inbound-line {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 900px) {
  .ticket-machine-summary,
  .ticket-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .material-inbound-header,
  .yarn-inbound-line {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .material-inbound-header label.full-row,
  .yarn-inbound-line label.full-row {
    grid-column: 1 / -1;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .ticket-production-query label,
  .ticket-query-form label,
  .ticket-shipping-hold-form,
  .ticket-shipping-hold-form label {
    grid-template-columns: minmax(0, 1fr);
  }

  .material-inbound-header,
  .yarn-inbound-line {
    grid-template-columns: 1fr;
  }

  .material-inbound-header label,
  .yarn-inbound-line label {
    grid-template-columns: 70px minmax(0, 1fr);
  }
}

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

.material-outbound-form {
  display: grid;
  gap: 8px;
}

.material-outbound-header,
.material-outbound-line,
.material-outbound-totals {
  display: grid;
  gap: 6px 12px;
  align-items: center;
}

.material-outbound-header {
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  padding: 6px;
  background: #ece9d8;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
}

.material-outbound-header-remark {
  grid-column: span 2;
}

.material-outbound-lines {
  display: grid;
  gap: 8px;
}

.material-outbound-line {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  padding: 6px;
  background: #ece9d8;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
}

.material-outbound-header label,
.material-outbound-line label,
.material-outbound-totals label {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  min-width: 0;
}

.material-outbound-header label span,
.material-outbound-line label span,
.material-outbound-totals label span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.material-outbound-header input,
.material-outbound-header select,
.material-outbound-line input,
.material-outbound-totals input {
  width: 100%;
  height: 23px;
  min-width: 0;
  padding: 1px 4px;
  color: #000000;
  background: #ffffff;
  border: 1px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  border-radius: 0;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.12);
}

.material-outbound-header input:focus,
.material-outbound-header select:focus,
.material-outbound-line input:focus {
  border-color: #0a246a;
  outline: 1px dotted #000000;
}

.material-outbound-form label.required-field span::after {
  content: "*";
  margin-left: 2px;
  color: #b00000;
  font-weight: 700;
}

.material-outbound-form .outbound-batch-field {
  grid-column: 1 / -1;
}

.outbound-material-results {
  grid-column: 1 / -1;
  min-height: 36px;
  margin: 0;
  padding: 5px;
  background: #f3f1e5;
  border: 1px solid #808080;
}

.material-outbound-line .material-source-summary {
  grid-column: 1 / -1;
}

.material-outbound-totals {
  grid-template-columns: auto repeat(3, minmax(180px, 240px));
  justify-content: end;
  padding: 6px;
  background: #f3f1e5;
  border: 1px solid #808080;
}

.material-outbound-totals strong {
  padding-right: 8px;
  font-size: 12px;
}

.outbound-material-lookup-empty {
  padding: 5px 7px;
  color: #4b4b4b;
  background: #ffffff;
  border: 1px solid #c7c7c7;
}

.outbound-material-lookup-empty.error {
  color: #9c0006;
  background: #ffc7ce;
  border-color: #c0504d;
}

.outbound-material-match-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4px;
}

.outbound-material-match {
  display: grid;
  grid-template-columns: minmax(100px, auto) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 4px 7px;
  color: #000000;
  text-align: left;
  background: #ffffff;
  border: 1px solid #808080;
  border-radius: 0;
  cursor: pointer;
}

.outbound-material-match:hover,
.outbound-material-match:focus {
  background: #dce8ff;
  outline: 1px dotted #000000;
}

.outbound-material-match.selected {
  background: #c6efce;
  border-color: #548235;
}

.outbound-material-match strong,
.outbound-material-match em {
  white-space: nowrap;
}

.outbound-material-match span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.outbound-material-match em {
  color: #006100;
  font-style: normal;
  font-weight: 700;
}

.material-outbound-record-panel .table-wrap {
  max-height: 300px;
  overflow: auto;
}

.material-outbound-record-panel table {
  min-width: 1280px;
}

.warehouse-query-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(210px, 260px)) minmax(250px, 1fr);
  gap: 6px 14px;
  align-items: center;
  padding: 6px;
  background: #ece9d8;
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
}

.warehouse-query-form-outbound {
  grid-template-columns: repeat(4, minmax(190px, 240px)) minmax(310px, 1fr);
}

.warehouse-query-form label {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
}

.warehouse-query-form label span {
  white-space: nowrap;
}

.warehouse-query-form input {
  width: 100%;
  height: 23px;
  min-width: 0;
  padding: 1px 4px;
  color: #000000;
  background: #ffffff;
  border: 1px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  border-radius: 0;
}

.warehouse-query-form input:focus {
  border-color: #0a246a;
  outline: 1px dotted #000000;
}

.warehouse-query-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.warehouse-query-summary {
  padding: 5px 7px;
  color: #333333;
  background: #f3f1e5;
  border-right: 1px solid #808080;
  border-bottom: 1px solid #808080;
  border-left: 1px solid #808080;
}

.primary-button:disabled,
.small-button:disabled {
  color: #7a7a7a;
  background: #d4d0c8;
  cursor: not-allowed;
}

@media (max-width: 1200px) {
  .material-outbound-header {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .material-outbound-line {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .warehouse-query-form,
  .warehouse-query-form-outbound {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 760px) {
  .material-outbound-header,
  .material-outbound-line,
  .material-outbound-totals,
  .warehouse-query-form,
  .warehouse-query-form-outbound {
    grid-template-columns: minmax(0, 1fr);
  }

  .material-outbound-header-remark,
  .material-outbound-form .outbound-batch-field {
    grid-column: auto;
  }

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

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

.warehouse-delivery-form {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 5px;
}

.warehouse-delivery-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(190px, 1fr) minmax(150px, 0.75fr) minmax(130px, 0.6fr) minmax(175px, 0.8fr) minmax(240px, 1.2fr);
  gap: 5px 9px;
  min-width: 0;
}

.warehouse-delivery-controls label,
.warehouse-delivery-footer label {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  min-width: 0;
}

.warehouse-delivery-controls label > span:first-child,
.warehouse-delivery-footer label > span:first-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.warehouse-delivery-controls input,
.warehouse-delivery-controls select,
.warehouse-delivery-footer input {
  width: 100%;
  min-width: 0;
  height: 23px;
  padding: 1px 4px;
  color: #000000;
  background: #ffffff;
  border: 1px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  border-radius: 0;
}

.warehouse-scan-control {
  grid-column: 1 / span 5;
}

.warehouse-yarn-toggle > span:last-child,
.warehouse-machine-toggle > span:last-child {
  display: flex;
  gap: 5px;
  align-items: center;
  min-height: 23px;
  padding: 1px 5px;
  background: #ffffff;
  border: 1px solid #808080;
  white-space: nowrap;
}

.warehouse-yarn-toggle input,
.warehouse-machine-toggle input,
.warehouse-delivery-ticket-table input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

.warehouse-delivery-message {
  min-height: 26px;
  padding: 4px 7px;
}

.warehouse-delivery-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5px;
  min-width: 0;
}

.warehouse-delivery-pane,
.warehouse-delivery-summary {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #808080;
}

.warehouse-delivery-pane > header,
.warehouse-delivery-summary > header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding: 3px 7px;
  border-bottom: 1px solid #808080;
}

.warehouse-pending-pane > header {
  background: #fff2cc;
}

.warehouse-current-pane > header {
  background: #c6efce;
}

.warehouse-delivery-summary > header {
  background: #9ee4a7;
}

.warehouse-delivery-pane > header span,
.warehouse-delivery-summary > header span {
  color: #003b26;
  font-weight: 700;
  white-space: nowrap;
}

.warehouse-delivery-pane .table-wrap {
  min-height: 250px;
  max-height: 360px;
  overflow: auto;
  border: 0;
}

.warehouse-delivery-ticket-table {
  width: 100%;
  min-width: 720px;
  table-layout: fixed;
}

.warehouse-delivery-ticket-table th:first-child,
.warehouse-delivery-ticket-table td:first-child {
  width: 58px;
  text-align: center;
}

.warehouse-delivery-ticket-table th:nth-child(2) { width: 125px; }
.warehouse-delivery-ticket-table th:nth-child(3) { width: 135px; }
.warehouse-delivery-ticket-table th:nth-child(4) { width: 72px; }
.warehouse-delivery-ticket-table th:nth-child(5),
.warehouse-delivery-ticket-table th:nth-child(6) { width: 92px; }
.warehouse-delivery-ticket-table th:nth-child(7) { width: 78px; }

.warehouse-current-pane .warehouse-delivery-ticket-table { min-width: 815px; }
.warehouse-current-pane .warehouse-delivery-ticket-table th:nth-child(4) { width: 200px; }
.warehouse-current-pane .warehouse-delivery-ticket-table th:nth-child(5) { width: 60px; }
.warehouse-current-pane .warehouse-delivery-ticket-table th:nth-child(6),
.warehouse-current-pane .warehouse-delivery-ticket-table th:nth-child(7) { width: 90px; }
.warehouse-current-pane .warehouse-ticket-po { white-space: normal; overflow-wrap: anywhere; }
.warehouse-summary-context-menu { position: fixed; z-index: 10000; padding: 9px 14px; color: #111; background: #f3f0e4; border: 1px solid #777; box-shadow: 2px 3px 8px #0004; cursor: pointer; }
.warehouse-summary-context-menu:hover, .warehouse-summary-context-menu:focus { background: #dce8fc; }
.finance-monthly-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px; }
.finance-monthly-form label { display: flex; align-items: center; gap: 6px; }
.finance-monthly-form select[name="customer"] { min-width: 200px; }

.warehouse-delivery-ticket-table tr.is-held-ticket td {
  color: #7a1f1f;
  background: #fff2f2;
}

.warehouse-scan-add-button,
.warehouse-summary-delivery-link {
  padding: 0;
  color: #0000a0;
  background: transparent;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}

.warehouse-scan-disabled {
  color: #7a1f1f;
}

.warehouse-delivery-summary .table-wrap {
  max-height: 260px;
  overflow: auto;
  border: 0;
}

.warehouse-delivery-summary-table {
  width: 100%;
  min-width: 900px;
  table-layout: fixed;
}

.warehouse-delivery-summary-table th:nth-child(1) { width: 110px; }
.warehouse-delivery-summary-table th:nth-child(2) { width: 180px; }
.warehouse-delivery-summary-table th:nth-child(3) { width: 130px; }
.warehouse-delivery-summary-table th:nth-child(4) { width: 115px; }
.warehouse-delivery-summary-table th:nth-child(5) { width: auto; }
.warehouse-delivery-summary-table th:nth-child(6) { width: 70px; }
.warehouse-delivery-summary-table th:nth-child(7) { width: 110px; }

.warehouse-delivery-summary-table td,
.warehouse-current-pane td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.warehouse-delivery-board tr.is-current-delivery td,
.warehouse-delivery-summary tr.is-current-delivery td {
  background: #dce8ff;
}

.warehouse-delivery-summary tr.is-canceled-delivery td {
  color: #777777;
}

.warehouse-separate-current {
  border-top: 1px solid #808080;
  overflow: auto;
}

.warehouse-separate-current > strong {
  display: block;
  padding: 4px 7px;
}

.warehouse-delivery-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.warehouse-delivery-footer .delivery-form-actions {
  grid-column: auto;
  white-space: nowrap;
}

.delivery-query-page {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(0, 2fr);
  gap: 8px;
  min-width: 0;
}

.delivery-query-list-panel,
.delivery-query-detail-panel {
  min-width: 0;
}

.delivery-query-list-panel .table-wrap {
  max-height: 620px;
  overflow: auto;
}

.delivery-query-list-panel table {
  min-width: 0;
  table-layout: fixed;
}

.delivery-query-list-panel th:nth-child(1) { width: 88px; }
.delivery-query-list-panel th:nth-child(2) { width: 112px; }
.delivery-query-list-panel th:nth-child(3) { width: 84px; }
.delivery-query-list-panel th:nth-child(4) { width: 122px; }
.delivery-query-list-panel th:nth-child(5) { width: 58px; }

.delivery-query-list-panel td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-query-detail-panel .panel-body {
  min-width: 0;
}

.delivery-cancel-panel {
  grid-column: 1 / -1;
}

.delivery-entry-panel,
.delivery-record-panel,
.delivery-form-layout {
  min-width: 0;
}

.delivery-form-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 6px 12px;
  padding: 6px;
}

.delivery-form-layout > label {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  min-width: 0;
}

.delivery-form-layout > label > span:first-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.delivery-form-layout input {
  width: 100%;
  min-width: 0;
  height: 23px;
  padding: 1px 4px;
  color: #000000;
  background: #ffffff;
  border: 1px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  border-radius: 0;
}

.delivery-form-layout input[readonly] {
  background: #f1f1e9;
}

.delivery-form-layout input:focus {
  border-color: #0a246a;
  outline: 1px dotted #000000;
}

.delivery-yarn-length-toggle > span:last-child {
  display: flex;
  gap: 5px;
  align-items: center;
  min-height: 23px;
  padding: 1px 5px;
  background: #ffffff;
  border: 1px solid #808080;
  white-space: nowrap;
}

.delivery-yarn-length-toggle input {
  width: 14px;
  height: 14px;
}

.delivery-scan-field,
.delivery-fabric-name-field,
.delivery-yarn-summary-field,
.delivery-remark-field,
.delivery-selection-message,
.delivery-ticket-buckets,
.delivery-po-summary,
.delivery-form-actions {
  grid-column: 1 / -1;
}

.delivery-scan-field,
.delivery-fabric-name-field,
.delivery-yarn-summary-field,
.delivery-remark-field {
  grid-template-columns: 92px minmax(0, 1fr) !important;
}

.delivery-fabric-name-field,
.delivery-yarn-summary-field {
  grid-column: span 2;
}

.delivery-ticket-buckets {
  display: grid;
  gap: 6px;
}

.delivery-clear-all-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #5c3434;
}

.delivery-ticket-bucket {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #808080;
}

.delivery-ticket-bucket-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  min-height: 27px;
  padding: 3px 6px;
  border-bottom: 1px solid #808080;
}

.delivery-ticket-bucket.is-selected .delivery-ticket-bucket-head {
  background: #c6efce;
}

.delivery-ticket-bucket.is-remaining .delivery-ticket-bucket-head {
  background: #fff2cc;
}

.delivery-ticket-bucket.is-held .delivery-ticket-bucket-head {
  background: #f4cccc;
}

.delivery-ticket-bucket-head span {
  color: #003b26;
  font-weight: 700;
}

.delivery-ticket-bucket .table-wrap {
  max-height: 190px;
  overflow: auto;
  border: 0;
}

.delivery-ticket-table {
  width: 100%;
  min-width: 850px;
  table-layout: fixed;
}

.delivery-ticket-table th:first-child,
.delivery-ticket-table td:first-child {
  width: 52px;
  text-align: center;
}

.delivery-ticket-table th:nth-child(2) { width: 125px; }
.delivery-ticket-table th:nth-child(3) { width: 75px; }
.delivery-ticket-table th:nth-child(4),
.delivery-ticket-table th:nth-child(5) { width: 105px; }
.delivery-ticket-table th:nth-child(6) { width: 75px; }
.delivery-ticket-table th:nth-child(7) { width: 250px; }

.delivery-ticket-table tr.is-held-ticket td {
  color: #7a1f1f;
  background: #fff2f2;
}

.delivery-ticket-table tr.is-other-machine-ticket td {
  color: #555555;
  background: #f2f2f2;
}

.delivery-ticket-unavailable {
  color: #7a1f1f;
  font-weight: 700;
}

.delivery-ticket-table input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

.delivery-form-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-start;
}

.delivery-form-actions .primary-button {
  min-width: 150px;
}

.delivery-transfer-button {
  min-width: 110px;
  color: #ffffff;
  background: #0a5f86;
  border-color: #4ea1c7 #043c57 #043c57 #4ea1c7;
  font-weight: 700;
}

.delivery-po-summary-panel .delivery-ticket-bucket-head {
  background: #d9eaf7;
}

.delivery-po-summary-panel .table-wrap {
  max-height: 210px;
}

.delivery-po-summary-table {
  width: 100%;
  min-width: 820px;
  table-layout: fixed;
}

.delivery-po-summary-table th:nth-child(1) { width: 115px; }
.delivery-po-summary-table th:nth-child(2) { width: 150px; }
.delivery-po-summary-table th:nth-child(3) { width: 115px; }
.delivery-po-summary-table th:nth-child(4) { width: 70px; }
.delivery-po-summary-table th:nth-child(5) { width: 125px; }
.delivery-po-summary-table th:nth-child(6) { width: 100px; }
.delivery-po-summary-table th:nth-child(7) { width: 90px; }

.delivery-readonly-summary {
  margin-bottom: 8px;
}

.delivery-readonly-ticket-bucket .table-wrap {
  border: 0;
}

.delivery-detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.delivery-cancel-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  padding: 6px;
}

.delivery-cancel-form label {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
}

.delivery-cancel-form input {
  width: 100%;
  height: 23px;
  padding: 1px 4px;
  border: 1px solid #808080;
  border-radius: 0;
}

.delivery-record-panel .table-wrap {
  max-height: 430px;
  overflow: auto;
}

.delivery-record-panel table {
  min-width: 1960px;
}

.report-template {
  min-width: 0;
  padding: 6px;
  background: #ffffff;
}

.report-template-heading,
.shipping-report-heading {
  position: relative;
  min-height: 44px;
  color: #000000;
  background: #ffffff;
}

.report-template-heading strong,
.shipping-report-heading strong,
.shipping-report-heading span {
  display: block;
  text-align: center;
}

.report-template-heading strong {
  padding-top: 7px;
  color: #c00000;
  font-size: 16px;
}

.report-template-heading span {
  display: block;
  margin-top: 3px;
  text-align: center;
}

.shipping-report-heading strong {
  font-family: "SimSun", "宋体", serif;
  font-size: 22px;
  font-weight: 400;
}

.shipping-report-heading span {
  margin-top: 4px;
  font-weight: 700;
}

.shipping-report-heading em {
  position: absolute;
  right: 8px;
  bottom: 2px;
  font-style: normal;
}

.truck-list-template .table-wrap,
.shipping-detail-template .table-wrap {
  max-height: calc(100vh - 245px);
  overflow: auto;
  border-color: #111111;
}

.truck-list-template table {
  width: 100%;
  min-width: 1595px;
  table-layout: fixed;
  font-size: 10px;
}

.shipping-detail-template table {
  width: 100%;
  min-width: 1040px;
  table-layout: fixed;
  font-size: 10px;
}

.truck-list-template th,
.truck-list-template td,
.shipping-detail-template th,
.shipping-detail-template td {
  padding: 3px 4px;
  border-right: 1px solid #111111;
  border-bottom: 1px solid #111111;
  white-space: nowrap;
}

.truck-list-template th:nth-child(1) { width: 130px; }
.truck-list-template th:nth-child(2) { width: 42px; }
.truck-list-template th:nth-child(3) { width: 135px; }
.truck-list-template th:nth-child(4) { width: 90px; }
.truck-list-template th:nth-child(5) { width: 80px; }
.truck-list-template th:nth-child(6) { width: 90px; }
.truck-list-template th:nth-child(7) { width: 45px; }
.truck-list-template th:nth-child(8) { width: 70px; }
.truck-list-template th:nth-child(9) { width: 85px; }
.truck-list-template th:nth-child(10) { width: 175px; }
.truck-list-template th:nth-child(11) { width: 40px; }
.truck-list-template th:nth-child(12) { width: 65px; }
.truck-list-template th:nth-child(13) { width: 38px; }
.truck-list-template th:nth-child(14) { width: 38px; }
.truck-list-template th:nth-child(15) { width: 60px; }
.truck-list-template th:nth-child(16) { width: 52px; }
.truck-list-template th:nth-child(17) { width: 105px; }
.truck-list-template th:nth-child(18) { width: 95px; }
.truck-list-template th:nth-child(19) { width: 75px; }
.truck-list-template th:nth-child(20) { width: 85px; }

.shipping-detail-template th:nth-child(1) { width: 75px; }
.shipping-detail-template th:nth-child(2) { width: 120px; }
.shipping-detail-template th:nth-child(3) { width: 80px; }
.shipping-detail-template th:nth-child(4) { width: 180px; }
.shipping-detail-template th:nth-child(5) { width: 45px; }
.shipping-detail-template th:nth-child(6) { width: 60px; }
.shipping-detail-template th:nth-child(7) { width: 40px; }
.shipping-detail-template th:nth-child(8) { width: 45px; }
.shipping-detail-template th:nth-child(9) { width: 145px; }
.shipping-detail-template th:nth-child(10) { width: 75px; }
.shipping-detail-template th:nth-child(11) { width: 90px; }
.shipping-detail-template th:nth-child(12) { width: 85px; }

.truck-list-template td,
.shipping-detail-template td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.truck-list-template th:nth-child(1),
.truck-list-template td:nth-child(1),
.truck-list-template th:nth-child(3),
.truck-list-template td:nth-child(3),
.truck-list-template th:nth-child(6),
.truck-list-template td:nth-child(6),
.truck-list-template th:nth-child(10),
.truck-list-template td:nth-child(10),
.truck-list-template th:nth-child(17),
.truck-list-template td:nth-child(17),
.truck-list-template th:nth-child(18),
.truck-list-template td:nth-child(18),
.truck-list-template th:nth-child(20),
.truck-list-template td:nth-child(20),
.shipping-detail-template th:nth-child(2),
.shipping-detail-template td:nth-child(2),
.shipping-detail-template th:nth-child(4),
.shipping-detail-template td:nth-child(4),
.shipping-detail-template th:nth-child(9),
.shipping-detail-template td:nth-child(9),
.shipping-detail-template th:nth-child(12),
.shipping-detail-template td:nth-child(12) {
  overflow-wrap: anywhere;
  white-space: normal;
}

.truck-list-template th {
  background: #a9d18e;
}

.shipping-detail-template th {
  background: #ffffff;
}

@media (max-width: 1100px) {
  .delivery-form-layout {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .warehouse-delivery-controls {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
  }

  .warehouse-scan-control {
    grid-column: 1 / span 2;
  }

  .warehouse-delivery-board,
  .warehouse-delivery-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .warehouse-delivery-footer .delivery-form-actions {
    grid-column: 1;
  }

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

@media (max-width: 680px) {
  .delivery-form-layout,
  .delivery-cancel-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .delivery-form-layout > label,
  .delivery-scan-field,
  .delivery-fabric-name-field,
  .delivery-yarn-summary-field,
  .delivery-remark-field,
  .delivery-cancel-form label {
    grid-template-columns: 96px minmax(0, 1fr) !important;
  }

  .delivery-fabric-name-field,
  .delivery-yarn-summary-field {
    grid-column: 1 / -1;
  }

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

  .warehouse-scan-control {
    grid-column: 1;
  }
}
