:root {
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #233c40;
  background: #f4f6f5;
  font-size: 16px;
  --ink: #143e43;
  --teal: #257866;
  --line: #e1e7e3;
  --muted: #758583;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
}
button:hover {
  background: #eef5f1;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.primary:hover {
  background: #24585c;
}
.danger {
  color: #ad443d;
}
.danger-primary {
  background: #aa443b;
  border-color: #aa443b;
  color: #fff;
}
.danger-primary:hover {
  background: #91382f;
  border-color: #91382f;
}
.danger-primary:focus-visible,
.supplier-delete:focus-visible,
.product-delete:focus-visible {
  outline: 2px solid #ad443d;
  outline-offset: 3px;
}
.supplier-row-actions {
  min-width: 135px;
  max-width: 260px;
}
.supplier-delete:disabled,
.product-delete:disabled {
  cursor: not-allowed;
  color: #9d8b84;
  background: #f7f5f2;
  border-color: #e5ded8;
  opacity: 0.75;
}
.supplier-delete-hint {
  white-space: normal;
  overflow-wrap: anywhere;
  margin: 8px 0 0;
  color: #8e9288;
  font-size: 0.75rem;
  line-height: 1.7;
}
.notice.delete-supplier-notice,
.notice.delete-product-notice {
  color: #914b3d;
  border-left-color: #c77a69;
  background: #fff3ed;
  overflow-wrap: anywhere;
}
.delete-supplier-description,
.delete-product-description {
  font-size: 0.9375rem;
  line-height: 1.8;
}
.product-card-delete {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf1ec;
}
.product-delete-hint {
  display: grid;
  gap: 2px;
  margin: 0 0 18px;
  color: #8e9288;
  font-size: 0.75rem;
  line-height: 1.7;
  white-space: normal;
  overflow-wrap: anywhere;
}
.product-card-delete .product-delete-hint {
  flex-basis: 100%;
  margin: 0;
}
.small {
  padding: 6px 10px;
  font-size: 0.875rem;
}
a {
  color: var(--teal);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfdad5;
  border-radius: 7px;
  background: #fff;
  color: #203e40;
  font-size: 0.9375rem;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
label {
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
h2 {
  font-size: 1.125rem;
}
h3 {
  font-size: 1rem;
}
.muted {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}
.layout {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--ink);
  color: #e3f0e8;
  padding: 32px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.portal-label {
  align-self: flex-start;
  margin: -18px 12px 10px;
  padding: 6px 10px;
  border: 1px solid #547e79;
  border-radius: 6px;
  color: #e5f5eb;
  font-size: 0.8125rem;
  font-weight: 600;
}
.supplier-portal .sidebar {
  background: #243f56;
}
.supplier-portal .nav button:hover,
.supplier-portal .nav button.active {
  background: #36566f;
}
.supplier-portal .portal-label {
  border-color: #637d94;
  color: #edf5ff;
}
.supplier-portal .sidebar-bottom {
  border-top-color: #476278;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 36px;
}
.brand img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: #23565a;
  border-radius: 12px;
}
.brand strong {
  display: block;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
}
.sidebar .brand {
  padding-left: 0;
  padding-right: 0;
  gap: 8px;
}
.sidebar .brand img {
  width: 32px;
  height: 32px;
}
.sidebar .brand strong {
  font-size: 1rem;
  letter-spacing: 0;
  white-space: nowrap;
}
.brand span {
  font-size: 0.75rem;
  color: #a6c6c4;
  letter-spacing: 0.07em;
}
.nav-label {
  font-size: 0.75rem;
  color: #88ada9;
  padding: 8px 15px 12px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 14px;
  background: transparent;
  color: #bad3d0;
  border: 0;
  text-align: left;
  padding: 13px 16px;
  font-weight: 500;
}
.nav button:hover,
.nav button.active {
  background: #2a5659;
  color: white;
}
.nav button.active {
  box-shadow: inset 3px 0 #9bd0bb;
}
.nav svg {
  width: 19px;
  height: 19px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 24px 12px 0;
  border-top: 1px solid #365c5e;
  font-size: 0.8125rem;
  color: #a1bfba;
  line-height: 1.8;
}
.sidebar-bottom strong {
  color: #e2eee7;
  font-weight: 500;
}
.main {
  min-width: 0;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fcfdfb;
}
.breadcrumb {
  color: #7f918b;
  font-size: 0.875rem;
}
.breadcrumb strong {
  color: #364e4a;
  font-weight: 500;
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e4eee4;
  font-size: 0.875rem;
  color: #42705e;
}
.account button {
  padding: 5px 8px;
  border: 0;
  background: transparent;
}
.content {
  padding: 36px 42px 60px;
  max-width: 1680px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: #748e83;
  margin-bottom: 12px;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 12px;
  position: relative;
}
.stat .value {
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  margin: 17px 0 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.stat .unit {
  font-size: 0.875rem;
  font-weight: 400;
  margin-left: 5px;
}
.stat.focus {
  background: #e6efe7;
  border-color: #d7e4d7;
}
.stat label {
  font-weight: 500;
  color: #526b61;
}
.stat .hint {
  font-size: 0.8125rem;
  color: #819389;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 22px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 24px;
  border-bottom: 1px solid #edf0ed;
  gap: 14px;
}
.panel-head h2 {
  margin: 0;
}
.panel-body {
  padding: 24px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  white-space: nowrap;
}
th {
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #809087;
  background: #f8faf7;
  padding: 15px 20px;
}
td {
  padding: 20px;
  border-top: 1px solid #edf0ed;
  color: #496058;
}
td strong {
  font-weight: 600;
  color: #264840;
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #edf3ed;
  color: #5d7965;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 0.8125rem;
}
.badge:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.amber {
  background: #fbf2df;
  color: #a0782e;
}
.badge.blue {
  background: #e9f1f5;
  color: #4b7b91;
}
.badge.red {
  background: #fbece6;
  color: #b06149;
}
.badge.gray {
  background: #eff1ef;
  color: #8b9890;
}
.split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
}
.empty {
  text-align: center;
  color: #7f9185;
  padding: 56px 24px;
  line-height: 1.9;
}
.toolbar {
  display: flex;
  gap: 14px;
  padding: 18px 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.toolbar input {
  max-width: 320px;
}
.toolbar select {
  max-width: 180px;
}
.progress {
  height: 5px;
  border-radius: 4px;
  background: #ebf0eb;
  min-width: 85px;
  overflow: hidden;
  margin-top: 8px;
}
.progress span {
  display: block;
  height: 100%;
  background: #82ac92;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.product-image {
  width: 100%;
  height: 210px;
  background: #eaf0ec;
  display: grid;
  place-items: center;
  object-fit: cover;
  color: #90a79b;
  font-size: 0.875rem;
}
.product-card .info {
  padding: 22px;
}
.product-card h2 {
  margin: 8px 0 14px;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.product-card-status,
.product-scope-heading,
.product-review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.product-card-status .eyebrow {
  margin: 0;
}
.product-maintainer {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin: 0 0 14px;
}
.product-card-edit {
  margin-top: 14px;
}
.product-order-reference {
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 3px solid #8baabb;
  background: #f0f6fa;
}
.product-order-reference p {
  margin: 0 0 10px;
  color: #4b697c;
  font-size: 0.8125rem;
  line-height: 1.7;
}
.product-order-reference .actions {
  justify-content: flex-start;
}
.product-order-reference button {
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
}
.product-card-rejection {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 6px;
  color: #925448;
  background: #fcf2ee;
  font-size: 0.8125rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.product-scope-section {
  margin: 28px 0 36px;
}
.product-scope-heading h2 {
  margin: 0;
  font-size: 1.125rem;
}
.product-scope-section > .help {
  margin-bottom: 18px;
}
.product-workflow-overview {
  padding-top: 20px;
}
.product-workflow-counts {
  display: flex;
  gap: 18px 32px;
  flex-wrap: wrap;
  font-size: 0.875rem;
}
.product-workflow-counts strong {
  margin-left: 6px;
  color: var(--ink);
  font-size: 1.25rem;
}
.product-review-panel {
  margin: 20px 0;
  border: 1px solid #d9e5de;
  border-radius: 10px;
  background: #f4f8f3;
  padding: 18px 20px;
}
.product-review-heading {
  align-items: flex-start;
}
.product-review-heading .muted {
  margin: 8px 0 0;
}
.product-review-heading button:disabled {
  cursor: not-allowed;
}
.product-review-panel > .help {
  margin: 14px 0 0;
}
.product-review-missing {
  margin-bottom: 0;
  color: #966526;
  font-size: 0.875rem;
  line-height: 1.6;
}
.product-rejection-note {
  border-left: 3px solid #cf8b77;
  padding: 12px 15px;
  margin-top: 16px;
  background: #fff7f2;
  color: #825548;
  font-size: 0.875rem;
}
.product-rejection-note p {
  margin: 6px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.product-review-history {
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.product-review-history summary {
  cursor: pointer;
  color: var(--ink);
  padding: 4px 0;
  font-weight: 600;
}
.product-review-history summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}
.product-review-history .table-wrap {
  margin-top: 16px;
}
.barcode-readonly {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  font-size: 0.875rem;
}
.barcode-readonly > span {
  white-space: normal;
  overflow-wrap: anywhere;
}
.barcode-awaiting {
  display: inline-block;
  border-radius: 6px;
  padding: 7px 10px;
  background: #fbf3e5;
  color: #91652c;
  font-size: 0.8125rem;
}
@media (max-width: 720px) {
  .portal-label {
    margin: 0 0 12px;
  }
  .product-review-heading .actions {
    justify-content: flex-start;
  }
  .product-review-panel {
    padding: 16px;
  }
  .product-workflow-counts {
    gap: 12px 20px;
  }
}
.code {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.02em;
  font-size: 0.8125rem;
  color: #819688;
}
.order-card {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.order-card:last-child {
  border: 0;
}
.order-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.order-title h3 {
  margin: 6px 0;
}
.pill {
  background: #f4f6f3;
  border: 1px solid #e2e8e0;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 0.8125rem;
}
.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.notice {
  background: #eef4ee;
  border-left: 3px solid #97b998;
  padding: 14px 18px;
  line-height: 1.8;
  font-size: 0.875rem;
  color: #587260;
  margin-bottom: 22px;
}
.settlement-rule-label {
  margin-top: 4px;
  color: var(--teal);
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: normal;
  min-width: 140px;
  max-width: 220px;
}
.settlement-rule-label.legacy {
  color: var(--muted);
}
.settlement-pending {
  color: #956329;
}
.settlement-notice > div {
  margin-top: 8px;
}
.settlement-notice .help {
  margin-bottom: 0;
}
.settlement-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.order-fabric-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.fabric-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
.fabric-section-heading h3,
.fabric-section-heading p {
  margin-top: 0;
}
.fabric-section-heading .help {
  margin-bottom: 0;
  max-width: 540px;
}
.fabric-review-card {
  padding: 20px;
  margin-bottom: 18px;
  border: 1px solid #dbe7df;
  border-radius: 10px;
  background: #f5f8f4;
}
.fabric-money-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 24px;
}
.fabric-money-grid > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.fabric-money-grid span {
  color: var(--muted);
  font-size: 0.8125rem;
}
.fabric-money-grid strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.receipt-money-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px;
  background: #f5f8f4;
  border-radius: 10px;
}
.fabric-review-hint {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
  color: #956329;
  font-size: 0.8125rem;
  white-space: normal;
  min-width: 140px;
}
.fabric-verify {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 16px;
  background: #f5f8f4;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.7;
}
.fabric-verify input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--teal);
}
.fabric-row-actions {
  justify-content: flex-start;
  min-width: 130px;
}
.fabric-detail-actions {
  margin-top: 20px;
}
.fabric-excess {
  border-left-color: #c7a375;
  color: #795d3c;
  background: #fbf6ed;
}
.fabric-cost-history {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.fabric-cost-history.is-void {
  background: #f7f8f7;
}
.fabric-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 0;
}
.fabric-record-grid dt {
  color: var(--muted);
  font-size: 0.8125rem;
  margin-bottom: 5px;
}
.fabric-record-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.fabric-note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.fabric-finance-notice {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.fabric-stock-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin: 0 0 22px;
  padding: 16px 20px;
  border: 1px solid #dbe7df;
  border-radius: 10px;
  background: #f8faf7;
  font-size: 0.875rem;
}
.fabric-stock-progress .help {
  margin: 0;
}
.fabric-stock-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 5px;
  min-width: 140px;
  max-width: 230px;
  white-space: normal;
  font-size: 0.8125rem;
  line-height: 1.6;
}
.fabric-stock-difference {
  color: #956329;
  font-weight: 600;
}
.fabric-stock-section {
  margin: 24px 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.fabric-stock-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 20px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: #f4f8f6;
}
.fabric-stock-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.fabric-stock-history-group {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
.fabric-stock-history-group > summary {
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 4px 0;
}
.fabric-stock-history-group > summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
  border-radius: 3px;
}
.fabric-stock-history {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
}
.fabric-stock-history.is-void {
  background: #f7f8f7;
}
.fabric-stock-history h4 {
  margin: 20px 0 12px;
}
.fabric-stock-history .fabric-note {
  font-size: 0.875rem;
}
.fabric-stock-void-note {
  color: #7c6861;
}
.fabric-stock-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0;
}
.fabric-stock-metrics > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fabric-stock-metrics span {
  color: var(--muted);
  font-size: 0.8125rem;
}
@media (max-width: 600px) {
  .fabric-money-grid,
  .receipt-money-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fabric-section-heading > .actions {
    width: 100%;
    justify-content: flex-start;
  }
  .fabric-review-card {
    padding: 15px;
  }
  .fabric-record-grid {
    grid-template-columns: 1fr;
  }
  .fabric-stock-overview {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }
  .fabric-stock-history {
    padding: 15px;
  }
}
.late {
  color: #b7674c;
}
dialog {
  width: min(880px, 94vw);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  max-height: 90vh;
  color: #26413c;
  box-shadow: 0 30px 100px #173e4333;
}
dialog::backdrop {
  background: #12353766;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 28px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  margin: 0;
}
.modal-body {
  padding: 25px 28px;
}
.modal-foot {
  padding-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.full {
  grid-column: 1/-1;
}
.stack {
  display: grid;
  gap: 18px;
}
.line-entry {
  display: grid;
  grid-template-columns: 1fr 100px 110px 40px;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}
.line-entry label {
  font-size: 0.8125rem;
}
.file-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid #eef1ed;
}
.file-details {
  min-width: 0;
  overflow-wrap: anywhere;
}
.file-name {
  font-size: 0.875rem;
  line-height: 1.7;
}
.file-row-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
.file-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid #b9d1bf;
  border-radius: 6px;
  background: #edf6ef;
  color: #2d6548;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: normal;
  text-decoration: none;
}
.file-download:hover {
  background: #dfeee3;
  color: #204f36;
  text-decoration: none;
}
.file-download:focus-visible {
  outline: 2px solid #257866;
  outline-offset: 3px;
}
.file-download svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.asset-actions .file-download {
  padding: 5px 9px;
  font-size: 0.75rem;
}
.file-download-pending {
  color: #849589;
  font-size: 0.75rem;
  line-height: 1.7;
}
.order-file-download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border: 1px solid #e0e8df;
  border-radius: 8px;
  max-width: 100%;
  background: #f8faf6;
}
.order-file-download > span {
  font-size: 0.8125rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
@media (max-width: 580px) {
  .file-row {
    flex-wrap: wrap;
  }
  .file-row-actions {
    justify-content: flex-start;
  }
  .tech-detail {
    flex-wrap: wrap;
  }
}
.detail-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}
.detail-grid .product-image {
  height: 230px;
  border-radius: 8px;
}
.error {
  color: #ac5142;
  background: #fff1eb;
  padding: 12px 16px;
  border-radius: 7px;
  font-size: 0.875rem;
  display: none;
}
.error.visible {
  display: block;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 14px 22px;
  border-radius: 9px;
  background: #174b43;
  color: white;
  box-shadow: 0 8px 30px #163d4426;
  z-index: 100;
  display: none;
  max-width: 90vw;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fcfdfb;
}
.login-side {
  background: #143e43;
  color: white;
  padding: 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-side .brand {
  padding: 0;
}
.login-side h1 {
  font-size: 2.8rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.login-side p {
  color: #abc5bd;
  line-height: 2;
}
.login-slogan {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid #3d6361;
}
.login-slogan strong {
  font-size: 1rem;
  letter-spacing: 0.08em;
}
.login-side .login-slogan p {
  margin: 8px 0 0;
  font-size: 0.95rem;
  line-height: 1.8;
}
.login-stages {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.login-stages span {
  border: 1px solid #3d6361;
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: #cae0d2;
}
.login-form {
  max-width: 410px;
  width: 100%;
  margin: auto;
  padding: 35px;
}
.login-form h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.login-form form {
  margin-top: 32px;
  display: grid;
  gap: 22px;
}
.login-form button {
  padding: 13px;
}
.login-form .muted {
  margin-bottom: 0;
}
.application-auth-panel {
  max-width: 520px;
}
.product-exclusive-factory .supplier-tags {
  margin: 12px 0 0;
}
.product-exclusive-factory .help {
  margin-bottom: 0;
}
.product-history-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.order-delivery-notice {
  margin: 18px 0;
  line-height: 1.8;
}
.application-auth-panel form {
  gap: 17px;
  margin-top: 24px;
}
.application-auth-links,
.application-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.application-auth-links {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.application-auth-links button {
  flex: 1 1 140px;
  font-size: 0.875rem;
  padding: 10px;
}
.application-field-pair {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 14px;
}
.application-field-pair > label {
  min-width: 0;
}
.application-result-card {
  background: #f0f5ef;
  border: 1px solid #dae5dc;
  border-radius: 12px;
  padding: 22px;
  margin-top: 24px;
  overflow-wrap: anywhere;
}
.application-result-card h3 {
  margin: 14px 0 10px;
}
.application-result-note {
  border-left: 3px solid #ad7e56;
  background: #fbf5ec;
  padding: 16px;
  margin: 18px 0;
  overflow-wrap: anywhere;
}
.application-result-note p {
  margin: 7px 0;
  white-space: pre-wrap;
}
.application-info {
  display: grid;
  gap: 13px;
  margin: 22px 0;
}
.application-info > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
}
.application-info dt {
  color: var(--muted);
}
.application-info dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.application-summary,
.application-detail-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 22px;
}
.application-summary strong {
  color: #795f28;
}
.application-nav-count {
  background: #e4ba77;
  color: #302820;
  margin-left: auto;
  min-width: 23px;
  padding: 2px 7px;
  border-radius: 30px;
  font-size: 0.75rem;
  text-align: center;
}
.application-nav-count[hidden] {
  display: none;
}
.application-access-notice {
  margin: 18px 0;
}
.application-verify {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #f2f6f1;
  border: 1px solid #d4e2d6;
  border-radius: 9px;
  margin-bottom: 20px;
  line-height: 1.7;
}
.application-verify input {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin: 4px 0 0;
  accent-color: var(--teal);
}
.application-auth-links button:focus-visible,
.application-result-actions button:focus-visible,
.application-verify input:focus-visible {
  outline: 3px solid #8ea9a0;
  outline-offset: 3px;
}
@media (max-width: 460px) {
  .application-field-pair {
    grid-template-columns: 1fr;
  }
  .application-info > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .application-result-actions button {
    flex: 1 1 100%;
  }
}
.kpi-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}
.kpi-row:last-child {
  border: 0;
}
.link-button {
  border: 0;
  background: transparent;
  color: #287764;
  padding: 0;
}
.help {
  font-size: 0.8125rem;
  color: #859289;
  line-height: 1.8;
}
.nowrap {
  white-space: nowrap;
}
.wrap {
  white-space: normal;
  min-width: 180px;
  max-width: 340px;
  line-height: 1.65;
}
.product-supplier-summary {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #edf1ec;
  min-width: 0;
}
.product-supplier-label {
  display: block;
  color: #829287;
  font-size: 0.75rem;
  margin-bottom: 7px;
}
.supplier-tags .pill {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.6;
  color: #476b56;
  background: #eff5ee;
}
.supplier-tags .supplier-inactive {
  color: #879087;
  background: #f3f3ef;
}
.unlinked-supplier {
  color: #a4814b;
  font-size: 0.775rem;
  line-height: 1.8;
}
.product-supplier-detail {
  display: grid;
  gap: 10px;
  border: 1px solid #e0e8df;
  border-radius: 9px;
  background: #f8faf6;
  padding: 16px 18px;
  margin-bottom: 22px;
  font-size: 0.875rem;
}
.consumption-inputs {
  border: 0;
  padding: 0;
  margin: 24px 0 0;
  min-width: 0;
}
.consumption-inputs legend {
  padding: 0;
  margin-bottom: 12px;
  font-size: 0.875rem;
  font-weight: 600;
}
.consumption-inputs legend span {
  margin-left: 8px;
  color: #889b8d;
  font-size: 0.75rem;
  font-weight: 400;
}
.consumption-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.consumption-grid label {
  font-size: 0.8125rem;
}
.consumption-inputs .help {
  margin: 10px 0 0;
}
.consumption-detail {
  padding: 18px 20px;
  margin-bottom: 22px;
  border: 1px solid #e0e8df;
  border-radius: 9px;
  background: #fbfcfa;
}
.consumption-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.consumption-heading h3 {
  margin: 0;
  font-size: 0.875rem;
}
.consumption-heading > span {
  color: #8a9b8e;
  font-size: 0.75rem;
}
.consumption-detail dl {
  margin: 0;
}
.consumption-detail dt {
  color: #819184;
  font-size: 0.775rem;
  margin-bottom: 8px;
}
.consumption-detail dd {
  margin: 0;
  color: #355c43;
  font-size: 1.2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.consumption-detail dd small {
  margin-left: 7px;
  color: #8a9b8e;
  font-weight: 400;
  font-size: 0.7rem;
  white-space: nowrap;
}
.consumption-empty {
  color: #96a397;
  font-size: 0.875rem;
  font-weight: 400;
}
@media (max-width: 580px) {
  .consumption-inputs .consumption-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .consumption-detail .consumption-grid {
    gap: 10px;
  }
  .consumption-detail dd small {
    display: block;
    margin: 4px 0 0;
  }
}
.supplier-picker {
  border: 0;
  padding: 0;
  margin: 22px 0 0;
  min-width: 0;
}
.supplier-picker legend {
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.supplier-picker legend span {
  color: #889b8d;
  font-weight: 400;
  font-size: 0.75rem;
  margin-left: 6px;
}
.supplier-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding: 2px;
}
.supplier-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px 14px;
  border: 1px solid #dce6db;
  border-radius: 8px;
  background: #fcfdfb;
  font-weight: 500;
  min-width: 0;
  line-height: 1.7;
}
.supplier-option:has(input:checked) {
  background: #edf5ed;
  border-color: #a7c6a8;
}
.supplier-option input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
  accent-color: #387c56;
}
.supplier-option > span {
  overflow-wrap: anywhere;
}
.supplier-option small {
  margin-left: 8px;
  color: #8b948a;
  font-size: 0.7rem;
  white-space: nowrap;
}
.supplier-option.is-inactive {
  color: #8b948a;
  background: #f6f7f3;
}
.supplier-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.7;
}
.supplier-picker .help {
  margin: 12px 0 0;
}
.supplier-picker-empty,
.purchase-empty {
  border: 1px dashed #d4e0d2;
  border-radius: 9px;
  background: #f7faf5;
  padding: 24px;
  color: #778d7c;
  font-size: 0.875rem;
  line-height: 1.8;
}
.purchase-empty {
  margin-bottom: 15px;
}
.purchase-empty strong {
  color: #52745b;
  font-weight: 600;
}
.purchase-empty p {
  margin: 7px 0 0;
}
.supplier-switch-notice {
  margin-bottom: 18px;
}
.supplier-switch-notice[hidden] {
  display: none;
}
@media (max-width: 580px) {
  .supplier-options {
    grid-template-columns: 1fr;
  }
  .product-detail-top {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
.product-card .eyebrow {
  margin-bottom: 7px;
  font-size: 0.6875rem;
}
.product-card h2 {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  margin-top: 0;
}
.product-card .product-image {
  object-fit: contain;
}
.product-colors-summary {
  margin-bottom: 14px;
  min-height: 24px;
}
dialog.product-modal {
  width: min(1080px, 94vw);
}
.product-modal .modal-head {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
}
.product-form-intro {
  font-size: 0.9375rem;
  color: #71837c;
  margin: 0 0 26px;
  line-height: 1.7;
}
.product-form-section {
  padding: 0 0 28px;
  margin: 0 0 26px;
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.section-heading h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-heading h3 > span {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 7px;
  background: #e8f0eb;
  color: #498268;
  font-size: 0.7rem;
  font-weight: 600;
}
.section-help {
  margin: 12px 0 0;
}
.product-view-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.asset-control {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dae4de;
  border-radius: 10px;
  background: #fff;
}
.asset-preview {
  display: grid;
  place-items: center;
  height: 145px;
  background: #f0f4f1;
  color: #93a69b;
  font-size: 0.85rem;
  border-bottom: 1px solid #e6ece7;
}
.asset-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  min-height: 0;
}
.asset-content {
  padding: 14px;
  min-width: 0;
  flex: 1;
}
.asset-title {
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  line-height: 1.6;
}
.required-mark,
.asset-ready {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}
.required-mark {
  color: #9e7840;
  background: #faf2e4;
}
.asset-ready {
  color: #517c63;
  background: #eaf3ec;
}
.asset-optional {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 4px;
  color: #7d8e83;
  background: #f0f3ef;
  font-size: 0.68rem;
  font-weight: 500;
}
.file-state {
  min-height: 22px;
  line-height: 1.7;
  margin: 6px 0 12px;
  font-size: 0.775rem;
  color: #6c8076;
  overflow-wrap: anywhere;
  white-space: normal;
}
.file-state strong {
  color: #407c64;
  font-weight: 500;
  margin-right: 4px;
}
.file-state .muted {
  font-size: inherit;
}
.asset-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.file-select {
  cursor: pointer;
  position: relative;
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid #c7d8cc;
  border-radius: 6px;
  background: #f8fbf8;
  font-size: 0.8rem;
  color: #3d6c56;
  overflow: hidden;
  line-height: 1.6;
}
.file-select:hover {
  background: #eaf3ed;
}
.file-select:focus-within {
  outline: 2px solid #257866;
  outline-offset: 2px;
}
.asset-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  padding: 0;
  width: 100%;
  height: 100%;
}
.asset-actions .link-button {
  font-size: 0.75rem;
  font-weight: 500;
}
.asset-control.compact {
  flex-direction: row;
  align-items: center;
}
.asset-control.compact .asset-preview {
  width: 90px;
  height: 100px;
  flex: 0 0 90px;
  border-bottom: 0;
  border-right: 1px solid #e6ece7;
}
.tech-upload {
  margin-top: 16px;
}
.packaging-upload {
  margin-top: 16px;
}
.packaging-detail {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #dce7dd;
  border-radius: 9px;
  background: #fbfcfa;
}
.packaging-image {
  display: block;
  flex: 0 0 112px;
  width: 112px;
  height: 126px;
  border-radius: 7px;
  overflow: hidden;
  background: #f0f4ed;
}
.packaging-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.packaging-placeholder {
  display: grid;
  place-items: center;
  color: #91a08e;
  font-size: 0.75rem;
}
.packaging-info {
  min-width: 0;
  overflow-wrap: anywhere;
}
.packaging-info h3 {
  margin-bottom: 9px;
  font-size: 0.875rem;
}
.packaging-info p {
  margin-bottom: 12px;
}
.packaging-info a {
  font-size: 0.8125rem;
}
.tech-upload .asset-content {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.tech-upload .file-state {
  margin: 0;
}
.tech-upload .asset-title {
  justify-content: flex-start;
}
.size-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 12px;
}
.size-fieldset legend {
  padding: 0;
  margin-bottom: 12px;
  font-size: 0.875rem;
  font-weight: 600;
}
.size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.size-option {
  position: relative;
  display: block;
  cursor: pointer;
}
.size-option input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.size-option span {
  display: inline-grid;
  min-width: 72px;
  height: 43px;
  place-items: center;
  border: 1px solid #ccd9d0;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background 0.15s;
}
.size-option input:checked + span {
  background: #e7f1e9;
  border-color: #6ca780;
  color: #276346;
  box-shadow: inset 0 0 0 1px #6ca780;
}
.size-option input:focus-visible + span {
  outline: 2px solid #257866;
  outline-offset: 3px;
}
#product-colors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.color-entry {
  padding: 18px;
  border: 1px solid #dce5df;
  border-radius: 10px;
  background: #fafcf9;
  min-width: 0;
}
.color-entry-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.875rem;
}
.color-entry-heading .small {
  font-size: 0.75rem;
  padding: 4px 8px;
  background: transparent;
}
.color-entry-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.color-entry-fields label {
  font-size: 0.8125rem;
}
.color-entry-fields input {
  padding: 9px 10px;
  font-size: 0.85rem;
}
.add-color-button {
  margin-top: 16px;
  width: 100%;
  border-style: dashed;
  background: #fafcf9;
  color: #527663;
  padding: 12px;
}
.sku-count {
  font-size: 0.775rem;
  color: #60806a;
  background: #edf4ee;
  padding: 6px 10px;
  border-radius: 20px;
}
.barcode-empty {
  padding: 30px 20px;
  background: #f4f7f3;
  border: 1px dashed #d7e3d9;
  border-radius: 9px;
  color: #81958a;
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.9;
}
.barcode-table {
  border: 1px solid #dce6dd;
  border-radius: 10px;
}
.barcode-table td {
  padding: 14px 18px;
  vertical-align: middle;
}
.barcode-table th {
  padding: 13px 18px;
}
.barcode-table td:first-child {
  width: 26%;
  white-space: normal;
  overflow-wrap: anywhere;
}
.barcode-table td:nth-child(2) {
  width: 12%;
}
.barcode-table td:last-child {
  min-width: 260px;
}
.barcode-table .asset-control {
  border: 0;
  background: transparent;
}
.barcode-table .asset-content {
  padding: 0;
}
.barcode-table .asset-title {
  font-size: 0.8rem;
}
.barcode-table .file-state {
  margin: 4px 0 7px;
}
.size-token {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  padding: 6px 9px;
  border-radius: 5px;
  background: #edf2ed;
  color: #54715d;
  font-size: 0.8125rem;
  font-weight: 600;
}
.product-modal .modal-foot {
  position: sticky;
  bottom: -25px;
  z-index: 3;
  background: #fff;
  border-top: 1px solid #e3eae4;
  margin: 24px -28px -25px;
  padding: 18px 28px;
}
.product-modal .error {
  margin-top: 20px;
  line-height: 1.8;
}
.product-detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.product-detail-top h2 {
  font-size: 1.6rem;
  margin: 8px 0;
}
.product-detail-top p {
  margin-bottom: 0;
}
.product-views {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product-views figure {
  margin: 0;
  border: 1px solid #e1e8e1;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f5f1;
}
.product-views img,
.view-empty {
  width: 100%;
  height: 230px;
  object-fit: contain;
  display: block;
}
.view-empty {
  display: grid;
  place-items: center;
  color: #8d9f92;
  font-size: 0.875rem;
}
.product-views figcaption {
  padding: 10px;
  text-align: center;
  background: #fff;
  border-top: 1px solid #e3eae2;
  font-size: 0.8125rem;
  color: #738578;
}
.tech-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #dce7dd;
  border-radius: 9px;
  background: #f7faf5;
}
.tech-detail p {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.detail-section-title {
  margin: 30px 0 16px;
}
.color-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.color-detail {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e1e8df;
  border-radius: 9px;
}
.color-detail > div:last-child {
  overflow-wrap: anywhere;
  min-width: 0;
  font-size: 0.85rem;
}
.color-detail .muted {
  font-size: 0.7rem;
  margin-top: 5px;
}
.color-detail img,
.color-placeholder {
  display: block;
  width: 65px;
  height: 75px;
  flex: 0 0 65px;
  border-radius: 6px;
  object-fit: contain;
  background: #f0f4ed;
}
.color-placeholder {
  display: grid;
  place-items: center;
  color: #91a08e;
  font-size: 0.7rem;
}
.supplemental-head {
  padding: 26px 0 16px;
}
@media (max-width: 720px) {
  .product-view-inputs {
    gap: 9px;
  }
  .asset-preview {
    height: 110px;
  }
  .asset-content {
    padding: 10px;
  }
  .asset-title {
    flex-wrap: wrap;
    font-size: 0.8rem;
  }
  .file-select {
    padding: 5px 8px;
  }
  .tech-upload .asset-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .tech-upload .file-state {
    flex-basis: 100%;
    order: 3;
  }
  #product-colors {
    grid-template-columns: 1fr;
  }
  .size-options {
    gap: 8px;
  }
  .size-option span {
    min-width: 52px;
  }
  .product-modal .modal-foot {
    bottom: -20px;
    margin: 24px -20px -20px;
    padding: 16px 20px;
  }
  .product-modal .modal-head {
    padding: 18px 20px;
  }
  .product-views {
    gap: 9px;
  }
  .product-views img,
  .view-empty {
    height: 140px;
  }
  .color-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 460px) {
  .product-view-inputs {
    grid-template-columns: 1fr;
  }
  .product-view-inputs .asset-control {
    flex-direction: row;
    align-items: center;
  }
  .product-view-inputs .asset-preview {
    width: 110px;
    flex: 0 0 110px;
    height: 145px;
    border: 0;
  }
  .color-detail-grid {
    grid-template-columns: 1fr;
  }
  .color-entry-fields {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1500px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 200px 1fr;
  }
  .content {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sidebar {
    padding: 26px 12px;
  }
}
@media (max-width: 720px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }
  .brand {
    padding: 0 0 18px;
  }
  .nav {
    flex-direction: row;
    overflow-x: auto;
  }
  .nav button {
    white-space: nowrap;
    padding: 11px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .topbar {
    height: 65px;
    padding: 0 18px;
  }
  .content {
    padding: 24px 16px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 18px;
  }
  .stat .value {
    font-size: 1.5rem;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .line-entry {
    grid-template-columns: 1fr 1fr;
  }
  .line-entry label:first-child {
    grid-column: 1/-1;
  }
  .modal-body {
    padding: 20px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-side {
    padding: 28px;
  }
  .login-side h1 {
    font-size: 1.8rem;
    margin: 30px 0 14px;
  }
  .login-slogan {
    margin-top: 24px;
  }
  .login-form {
    padding: 35px 25px;
  }
  .account .muted {
    display: none;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .order-title {
    flex-direction: column;
  }
  .stat .hint {
    line-height: 1.5;
  }
}
@media print {
  .sidebar,
  .topbar,
  .actions,
  .toolbar,
  button {
    display: none !important;
  }
  .layout {
    display: block;
  }
  .content {
    padding: 0;
  }
  .panel {
    overflow: visible;
  }
  .table-wrap {
    overflow: visible;
  }
  body {
    background: white;
  }
}
