.nav {
  flex-shrink: 0;
}

.sidebar .brand {
  flex-shrink: 0;
}

.feature-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eaf0e3;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}

.feature-tab {
  padding: 9px 17px;
  border-radius: 7px;
  background: transparent;
  color: #7e9171;
  font-size: 12px;
}

.feature-tab.active {
  background: white;
  color: #345b3b;
  font-weight: 650;
  box-shadow: 0 2px 6px #24471c0a;
}

.feature-product-thumbnail {
  display: block;
  max-width: 100%;
  object-fit: contain;
  border-radius: 5px;
  background: #f5f6f3;
}

.feature-product-preview-trigger {
  display: block;
  max-width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.feature-product-image-preview {
  position: fixed;
  inset: auto;
  margin: 0;
  width: min(720px, calc(100vw - 16px), 78dvh);
  aspect-ratio: 1;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 8px 24px #24351f30;
  pointer-events: none;
}

.feature-product-image-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-oms-measurements {
  white-space: nowrap;
}

.feature-purchasing-toolbar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.feature-purchasing-toolbar .feature-tabs {
  margin-bottom: 0;
}

.feature-shipping-counts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
}

.feature-shipping-counts span {
  white-space: nowrap;
}

.feature-shipping-counts strong {
  margin-left: 4px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.feature-tracking-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.feature-tracking-step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.feature-tracking-step > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eaf0e3;
}

.feature-tracking-step.active {
  border-color: #608651;
  background: #edf4e5;
}

.feature-tracking-step.done > span {
  color: white;
  background: #245d4b;
}

.feature-tracking-step small {
  color: #7b8d6d;
}

.feature-stat-grid.feature-tracking-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-tracking-stats .feature-stat strong {
  font-size: clamp(18px, 1.55vw, 24px);
  white-space: nowrap;
}

.feature-tracking-source {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.feature-tracking-inbound + .feature-tracking-inbound { margin-top: 8px; }

.feature-tracking-list .table-wrap {
  overflow: visible;
}

.feature-tracking-list table {
  min-width: 0;
  table-layout: fixed;
  white-space: normal;
  font-size: 11px;
}

.feature-tracking-list table th,
.feature-tracking-list table td {
  min-width: 0;
  max-width: none;
  padding: 10px 6px;
  overflow-wrap: anywhere;
  vertical-align: top;
  line-height: 1.6;
}

.feature-tracking-list th:nth-child(1) { width: 12%; }
.feature-tracking-list th:nth-child(2) { width: 10%; }
.feature-tracking-list th:nth-child(3) { width: 10%; }
.feature-tracking-list th:nth-child(4) { width: 7%; }
.feature-tracking-list th:nth-child(n+5):nth-child(-n+12) { width: 7%; }
.feature-tracking-list th:nth-child(13) { width: 5%; }

.feature-tracking-list select[name="search_field"] {
  width: 160px;
  flex: 0 0 auto;
}

.feature-tracking-list td strong,
.feature-tracking-list .link-button {
  font-size: 11px;
}

.feature-tracking-list td .subline {
  font-size: 9px;
}

.feature-tracking-list .status-pill {
  max-width: 100%;
  padding: 3px 6px;
  font-size: 10px;
  white-space: normal;
}

@media(max-width:1200px) {
  .feature-stat-grid.feature-tracking-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media(max-width:900px) {
  .feature-tracking-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.feature-overline {
  font-size: 10px;
  letter-spacing: 1px;
  color: #97a789;
  margin-bottom: 8px;
}

.feature-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.feature-toolbar .feature-tabs {
  margin-bottom: 0;
}

.feature-toolbar .feature-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-filter .control {
  width: auto;
  max-width: 240px;
}

.feature-missing {
  color: #9d773c;
  background: #f9f0df;
  padding: 3px 7px;
  border-radius: 5px;
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
}

.feature-negative {
  color: #ad5d45;
}

.feature-positive {
  color: #4e7941;
}

.feature-money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.feature-purchase-identity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-shipping-marker {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 19px;
  line-height: 1;
}

.feature-shipping-marker:hover:not(:disabled),
.feature-shipping-marker:focus-visible {
  background: #eaf0e3;
  outline: 2px solid #9ab68b;
  outline-offset: 2px;
}

.feature-shipping-options {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.feature-shipping-options legend {
  margin-bottom: 12px;
  font-weight: 600;
}

.feature-shipping-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.feature-shipping-option:has(input:checked) {
  border-color: #829d70;
  background: #f3f7ee;
}

.feature-shipping-option span {
  font-size: 22px;
}

.feature-table-link {
  max-width: 240px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.feature-table-link a {
  color: #4f7944;
}

.feature-table-link a:hover {
  text-decoration: underline;
}

.feature-status-detail {
  display: block;
  max-width: 280px;
  margin-top: 5px;
  white-space: normal;
  color: #94a186;
  font-size: 10px;
  line-height: 1.8;
}

.feature-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-field-wide {
  grid-column: 1 / -1;
}

.feature-other-purchase-note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 560px;
}

.feature-cost-table-note {
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 300px;
}

.feature-cost-card > .card-header {
  flex-wrap: wrap;
  gap: 14px;
}

.feature-cost-heading {
  flex: 1 1 300px;
  max-width: 560px;
}

.feature-cost-controls, .feature-cost-rate {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-cost-rate {
  font-size: 11px;
}

.feature-cost-rate .control {
  width: 106px;
  min-height: 32px;
}

.feature-cost-upload-info {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.feature-tail-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.feature-tail-summary span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 8px;
}

.feature-tail-errors {
  margin: 16px 24px;
  font-size: 12px;
  color: #9c452e;
}

.feature-tail-progress {
  margin: 18px 24px;
  padding: 16px;
  border: 1px solid #dce6d4;
  border-radius: 10px;
  background: #f7faf3;
}

.feature-tail-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.feature-tail-progress-track {
  height: 9px;
  margin: 12px 0;
  overflow: hidden;
  border-radius: 9px;
  background: #e2e9dd;
}

.feature-tail-progress-track > div {
  height: 100%;
  background: #227561;
  transition: width .3s ease;
}

.feature-tail-progress-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #8a9686;
  font-size: 11px;
}

.feature-tail-progress-stages .active {
  color: #174f43;
  font-weight: 700;
}

.feature-tail-progress-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.feature-form-help {
  font-size: 11px;
  line-height: 1.9;
  color: #859678;
  margin-bottom: 18px;
}

.feature-modal-section {
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 20px;
}

.feature-modal-section h3 {
  margin-bottom: 13px;
}

dialog.feature-dialog {
  width: min(650px, calc(100% - 30px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.feature-metric-list {
  display: grid;
  gap: 9px;
  padding: 16px;
  background: #f6f9f0;
  border-radius: 9px;
}

.feature-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  color: #7e9171;
  font-size: 12px;
}

.feature-metric-row.total {
  padding-top: 10px;
  border-top: 1px solid #dce7cd;
  color: #3c6031;
  font-size: 14px;
  font-weight: 600;
}

.feature-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 23px;
}

.feature-stat {
  padding: 19px 22px;
}

.feature-stat span {
  color: #8f9f81;
  font-size: 11px;
}

.feature-stat strong {
  display: block;
  color: #3b5932;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.feature-stat small {
  color: #9aa68f;
  font-size: 9px;
}

.feature-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-catalog-item {
  padding: 15px;
  border: 1px solid #e3e9dc;
  border-radius: 10px;
  background: #fbfcf9;
  min-width: 0;
}

.feature-catalog-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
}

.feature-catalog-title strong {
  color: #546f49;
  font-size: 12px;
}

.feature-catalog-item p {
  color: #94a187;
  font-size: 10px;
  line-height: 1.9;
  margin-top: 8px;
}

.feature-inline-note {
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
}

.feature-readonly-label {
  margin-left: 7px;
  font-size: 9px;
  color: #9e8053;
}

.feature-chart {
  padding: 25px 23px 22px;
  overflow-x: auto;
}

.feature-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 190px;
  min-width: 500px;
  padding: 15px 0 26px;
  border-bottom: 1px solid #dce5d2;
}

.feature-chart-column {
  flex: 1;
  min-width: 16px;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.feature-chart-bar {
  width: 100%;
  max-width: 35px;
  background: #aac68c;
  border-radius: 4px 4px 0 0;
  min-height: 2px;
}

.feature-chart-count {
  font-size: 9px;
  color: #799369;
  padding-bottom: 5px;
}

.feature-chart-date {
  position: absolute;
  top: calc(100% + 7px);
  font-size: 8px;
  color: #9aa68f;
  white-space: nowrap;
}

.feature-acknowledged {
  opacity: .68;
}

.feature-group-row td {
  background: #f0f5e8;
  white-space: normal;
  padding-top: 14px;
  padding-bottom: 14px;
}

.feature-comparison {
  margin-top: 6px;
  font-size: 11px;
  color: #70845c;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.feature-comparison a {
  color: #3b6c39;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feature-collection-error {
  display: block;
  margin-top: 7px;
  color: #a96c4b;
  font-size: 10px;
  max-width: 270px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.8;
}

.feature-table-actions {
  flex-wrap: wrap;
  max-width: 155px;
  row-gap: 9px;
}

.feature-channel-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 13px;
  max-height: 240px;
  overflow: auto;
  border: 1px solid #dde5d3;
  border-radius: 8px;
  background: #fafbf7;
}

.feature-channel {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #6d825d;
}

.feature-channel input {
  margin-top: 4px;
  accent-color: var(--green);
}

.feature-channel small {
  display: block;
  font-size: 9px;
  color: #9aa98c;
  overflow-wrap: anywhere;
}

.feature-order-items {
  display: grid;
  gap: 12px;
}

.feature-order-item {
  display: grid;
  grid-template-columns: 1.6fr .8fr 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid #e1e9d7;
  border-radius: 9px;
  background: #f9fbf5;
}

.feature-order-item .field label {
  font-size: 10px;
}

.feature-order-item .icon-btn {
  color: #a37455;
  margin-bottom: 4px;
}

.feature-sku-picker .control + .control {
  margin-top: 6px;
}

.feature-purchase-product {
  min-width: 130px;
  max-width: 240px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.feature-purchase-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.feature-box-mark-options {
  display: grid;
  gap: 8px;
}

.feature-delete-link {
  color: var(--red);
}

.feature-container-no {
  max-width: 200px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.feature-purchase-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.feature-purchase-total {
  color: var(--green);
}

.feature-purchase-total strong {
  margin-left: 6px;
  font-size: 14px;
}

[data-purchase-total] {
  display: block;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 7px;
  background: #f2f5eb;
  font-weight: 600;
}

.feature-purchase-filter select {
  width: 150px;
  flex: 0 0 auto;
}

.feature-purchase-filter .search-wrap {
  min-width: 160px;
  max-width: 260px;
}

.feature-purchase-dates {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-purchase-dates input {
  width: 145px;
}

.feature-purchase-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.feature-purchase-stats .subline {
  margin-top: 8px;
}

[data-freight-fields][hidden] {
  display: none;
}

[data-freight-fields] output {
  display: block;
  padding: 10px 0;
  font-weight: 600;
}

@media(max-width:1200px) {
  .feature-purchase-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media(max-width:720px) {
  .feature-purchase-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.feature-package-grid {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid #e1e9d7;
}

.feature-package-group h4 {
  margin: 0 0 10px;
  font-size: 12px;
  color: #536847;
}

.feature-dimensions,
.feature-carton-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.feature-carton-summary {
  grid-column: 1 / -1;
  align-items: end;
}

.feature-packaging-hint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 11px;
  color: #7b8d6d;
}

dialog.feature-dialog:has(#feature-purchase-form) {
  width: min(830px, calc(100% - 30px));
}

dialog:has(#feature-purchase-form) .modal-header,
dialog:has(#feature-purchase-form) .modal-body {
  padding: 16px 22px;
}

#feature-purchase-form { gap: 14px; }
#feature-purchase-form .feature-fields { gap: 10px 14px; }
#feature-purchase-form .purchase-basics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#feature-purchase-form .control { min-height: 34px; }
#feature-purchase-form .feature-package-grid { padding-top: 8px; }
#feature-purchase-form .feature-package-group h4 { margin-bottom: 6px; }
#feature-purchase-form .feature-carton-summary { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
#feature-purchase-form [data-tail-carton-weight][hidden] { display: none; }

.purchase-form-heading,
.purchase-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.purchase-form-heading { margin-bottom: 8px; }
.purchase-form-footer .actions { margin: 0; }

.purchase-form-extra {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
}

.purchase-form-extra summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
}

.purchase-expenses { margin-top: 12px; }
#feature-purchase-form [data-freight-help] { margin: 0; }

.purchase-warehouse-picker {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 8px 10px;
  font-size: 12px;
}
.purchase-warehouse-picker summary { cursor: pointer; overflow-wrap: anywhere; }
.purchase-warehouse-picker > div { margin-top: 8px; display: grid; gap: 5px; }
.purchase-warehouse-picker label { display: flex; align-items: center; gap: 6px; }
.warehouse-split-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 8px; margin-top: 8px; }
.warehouse-split-preview { font-size: 12px; color: var(--muted); white-space: pre-line; }
.warehouse-split-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.warehouse-split-heading > label { flex: none; font-weight: 600; }
.warehouse-split-heading .warehouse-split-preview { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.warehouse-fixed-item + .warehouse-fixed-item { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.warehouse-fixed-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.warehouse-fixed-heading span { font-size: 12px; font-weight: 600; }
[data-warehouse-split] [data-fixed-note][data-invalid="true"] { color: var(--red, #b44736); }
.warehouse-demand-fallback { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; }
[data-warehouse-split] small { display: block; margin-top: 8px; color: var(--muted); }
#feature-purchase-form [hidden] { display: none; }

@media(max-width:620px) {
  #feature-purchase-form .purchase-basics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media(max-width:1200px) {
  .feature-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width:720px) {
  .feature-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .feature-stat {
    padding: 15px;
  }
  .feature-stat strong {
    font-size: 25px;
  }
  .feature-fields,
  .feature-catalog {
    grid-template-columns: 1fr;
  }
  .feature-tabs {
    width: 100%;
  }
  .feature-tab {
    flex: 1;
    padding: 8px 10px;
  }
  .feature-toolbar {
    align-items: stretch;
  }
  .feature-toolbar .feature-filter {
    width: 100%;
  }
  .feature-filter .control {
    flex: 1;
    max-width: none;
    min-width: 120px;
  }
  .feature-order-item {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-product-toolbar .feature-tabs { margin-bottom: 0; }
.feature-product-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.feature-product-filter input[type="search"] { width: min(280px, 100%); }
.feature-product-pagination .actions { margin-left: auto; }
.feature-product-pagination label { display: inline-flex; align-items: center; gap: 5px; }
.feature-product-pagination .control { width: auto; }

.feature-product-table table {
  table-layout: fixed;
  white-space: normal;
  overflow-wrap: anywhere;
}

.feature-product-table th,
.feature-product-table td { padding: 8px 5px; }
.feature-product-table th:first-child { width: clamp(42px, 6%, 66px); }
.feature-product-table th:nth-child(5),
.feature-product-table th:nth-child(6),
.feature-product-table th:nth-child(7),
.feature-product-table th:nth-child(10) { width: 7%; }
.feature-product-table th:nth-child(8) { width: 8%; }
.feature-product-table th:nth-child(11) { width: 6%; }
.feature-product-table th:last-child { width: 118px; }
.feature-product-table .feature-oms-measurements,
.feature-product-table .status-pill { white-space: normal; }
.feature-product-table .status-pill { padding-inline: 4px; }
.feature-product-table .table-actions { gap: 6px; }
.feature-product-table td:last-child .link-button {
  flex: none;
  font-size: 11px;
  white-space: nowrap;
}

.feature-purchase-cost-filters .feature-tabs { margin: 0; }
.feature-purchase-cost-filters .control { width: auto; max-width: 100%; }
.feature-purchase-cost-filters input[type="search"] { width: min(265px, 100%); }
.feature-purchase-cost-table th,
.feature-purchase-cost-table td { padding: 7px 10px; }
.feature-purchase-cost-table td { border-right: 1px solid var(--line); }
.feature-purchase-cost-table th { color: #54644f; background: #edf2d8; }
.feature-purchase-cost-table .purchase-cost-subtotal { background: #eef5e5; font-weight: 600; }
.feature-purchase-cost-table .purchase-cost-grand-total { background: #dfedd2; font-weight: 700; }
.feature-other-cost-table { overflow: visible; }
.feature-other-cost-table table { width: 100%; table-layout: fixed; white-space: normal; }
.feature-other-cost-table th,
.feature-other-cost-table td { padding: 8px 10px; overflow-wrap: anywhere; }
.feature-other-cost-table th:nth-child(1) { width: 15%; }
.feature-other-cost-table th:nth-child(2) { width: 16%; }
.feature-other-cost-table th:nth-child(3) { width: 25%; }
.feature-other-cost-table th:nth-child(4) { width: 10%; }
.feature-other-cost-table th:nth-child(5) { width: 8%; }
.feature-other-cost-table th:nth-child(6) { width: 16%; }
.feature-other-cost-table th:nth-child(7) { width: 10%; }
.feature-other-cost-table .feature-money { white-space: normal; }
.feature-other-cost-total { background: var(--skin-soft, #dfedd2); font-weight: 700; }

@media(min-width:761px) {
  .feature-purchase-cost-heading { padding: 14px 18px; }
  .feature-purchase-cost-filters { padding: 12px 16px; gap: 8px; }
  .feature-purchase-cost-filters .actions { flex: 1; min-width: 0; gap: 6px; }
  .feature-purchase-cost-filters .control { min-height: 32px; padding: 6px 8px; font-size: 11px; }
  .feature-purchase-cost-filters input[type="search"] { flex: 1 1 150px; width: 180px; max-width: 220px; }
  .feature-purchase-cost-filters .btn { padding: 7px 12px; font-size: 11px; }
  .feature-purchase-cost-filters .feature-tab { padding: 7px 10px; font-size: 11px; }
  .feature-purchase-cost-table { overflow: visible; }
  .feature-purchase-cost-table table {
    width: 100%;
    table-layout: fixed;
    white-space: normal;
    font-size: 10.5px;
    line-height: 1.4;
  }
  .feature-purchase-cost-table th,
  .feature-purchase-cost-table td {
    padding: 5px 3px;
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: middle;
  }
  .feature-purchase-cost-table th { font-size: 10px; line-height: 1.3; letter-spacing: 0; }
  .feature-purchase-cost-table th:nth-child(1) { width: 7.5%; }
  .feature-purchase-cost-table th:nth-child(2) { width: 8%; }
  .feature-purchase-cost-table th:nth-child(3) { width: 4.5%; }
  .feature-purchase-cost-table th:nth-child(4) { width: 9%; }
  .feature-purchase-cost-table th:nth-child(5) { width: 3%; }
  .feature-purchase-cost-table th:nth-child(6),
  .feature-purchase-cost-table th:nth-child(7),
  .feature-purchase-cost-table th:nth-child(8),
  .feature-purchase-cost-table th:nth-child(9),
  .feature-purchase-cost-table th:nth-child(11),
  .feature-purchase-cost-table th:nth-child(12),
  .feature-purchase-cost-table th:nth-child(13) { width: 4%; }
  .feature-purchase-cost-table th:nth-child(10) { width: 5%; }
  .feature-purchase-cost-table th:nth-child(14) { width: 8.5%; }
  .feature-purchase-cost-table th:nth-child(15) { width: 6%; }
  .feature-purchase-cost-table th:nth-child(16) { width: 4.5%; }
  .feature-purchase-cost-table th:nth-child(17) { width: 9%; }
  .feature-purchase-cost-table th:nth-child(18) { width: 7%; }
  .feature-purchase-cost-table td strong { font-size: inherit; }
  .feature-purchase-cost-table .subline { margin-top: 1px; font-size: 9px; line-height: 1.3; }
  .feature-purchase-cost-table .feature-money { white-space: normal; overflow-wrap: anywhere; }
  .feature-purchase-cost-table .feature-missing { padding: 2px 4px; font-size: 9px; }
}

.feature-label-options {
  min-width: 0;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.feature-label-options label { display: inline-flex; align-items: center; gap: 5px; }
.feature-label-options label:has(input:disabled) { opacity: .55; }
.feature-label-copies { width: 84px; }

dialog.feature-dialog:has(#feature-purchase-product-form) { width: min(770px, calc(100% - 30px)); }

.feature-create-product-section {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.feature-create-product-section legend { font-weight: 600; padding: 0 5px; }
.feature-create-product-measures { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.permission-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.permission-toolbar .control { flex: 1; min-width: 100px; }
.permission-groups { max-height: 460px; overflow-y: auto; padding-right: 8px; }
.permission-groups fieldset { margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; }
.permission-groups legend { padding: 0 6px; font-weight: 600; }
.permission-groups label { display: inline-flex; align-items: center; gap: 6px; }
.permission-row { display: grid; grid-template-columns: minmax(130px, 1fr) 64px 64px; align-items: center; gap: 10px; padding: 7px 0; font-size: 12px; }
.permission-editor [hidden] { display: none !important; }
[data-permission][hidden], [data-action][hidden], [data-feature-action][hidden], a[hidden] { display: none !important; }
