.page-stock-control > .toolbar {
  padding-top: 16px;
  margin-bottom: 18px;
}
.action-table-wrap table {
  min-width: 820px;
  table-layout: fixed;
}
.action-table-wrap th:first-child {
  width: 25%;
}
.action-table-wrap th:nth-child(2) {
  width: 22%;
}
.action-table-wrap th:last-child {
  width: 125px;
}
.action-table-wrap td {
  padding: 10px 12px;
}
.action-table-wrap td small,
.action-customer {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}
.action-table-wrap td small {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.correction-facts > div { display: grid; gap: 4px; }
.correction-facts small { color: var(--muted); }
.action-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 18px;
}
.action-facts dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.action-facts dd {
  margin: 0;
  font-size: 13px;
}
.action-detail-card .receipt {
  display: block;
  margin: 12px 0;
}
.page-stock-control > .toolbar > .search-field {
  max-width: none;
}
.product-result {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 22px;
  padding: 20px;
  border-radius: 14px;
  max-width: 1100px;
  margin-bottom: 15px;
}
.stock-photo {
  border-radius: 12px;
  overflow: hidden;
  background: #f1f2f4;
  display: grid;
  place-items: center;
}
@media (min-width: 1201px) {
  .product-result {
    max-width: none;
  }
}
.stock-photo .product-thumb {
  width: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 12px;
}
.stock-photo .icon {
  width: 60px;
  height: 60px;
}
.stock-details h2 {
  font-size: 23px;
  margin-bottom: 13px;
  color: #111;
}
.stock-details > div > p {
  margin: 7px 0;
}
.stock-details .metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-top: 16px;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: 16px 0 0;
}
.stock-details .metric > .muted {
  grid-column: 1/-1;
  letter-spacing: 0.6px;
  font-size: 12px;
}
.stock-details .metric > strong {
  font-size: 32px;
  background: #f5f5f7;
  border: 1px solid #e0e1e6;
  border-radius: 9px;
  padding: 9px 15px;
  margin: 0;
  color: #111;
}
.stock-details .metric > button {
  background: #202020;
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 9px;
}
.demand {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.demand .metric {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 3px 10px;
  align-items: center;
  background: #f7f7f8;
  padding: 15px;
  border-radius: 10px;
}
.demand .metric:nth-child(2) {
  background: #faf6f1;
}
.demand .metric:nth-child(3) {
  background: #f2f5fb;
}
.demand .metric > .icon {
  grid-row: 1/3;
  width: 30px;
  height: 30px;
  color: #171717;
}
.demand .metric > .muted {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #68707c;
}
.demand .metric > strong {
  font-size: 30px;
  margin: 0;
  color: #111;
}
.catalog-table {
  min-width: 1000px;
  table-layout: fixed;
}
.catalog-table th {
  padding: 9px 12px;
  border-bottom-color: #dce7f3;
  background: #f7faff;
  color: #41698f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.catalog-table td {
  padding: 9px 12px;
  border-bottom-color: #e7edf4;
}
.catalog-table tbody tr:nth-child(even) td {
  background: #fefefe;
}
.catalog-table th:first-child,
.catalog-table td:first-child {
  width: 38px;
  padding-right: 6px;
  padding-left: 12px;
  text-align: center;
}
.catalog-table th:last-child,
.catalog-table td:last-child {
  width: 136px;
  padding-right: 4px;
  padding-left: 4px;
}
.catalog-table--owner th:nth-child(2) {
  width: 34%;
}
.catalog-table--owner th:nth-child(3) {
  width: 10%;
}
.catalog-table--owner th:nth-child(4) {
  width: 8%;
}
.catalog-table--owner th:nth-child(5) {
  width: 10%;
}
.catalog-table--owner th:nth-child(6) {
  width: 12%;
}
.catalog-table--owner th:nth-child(7) {
  width: 9%;
}
.catalog-table th:nth-child(n + 3),
.catalog-table td:nth-child(n + 3) {
  white-space: nowrap;
}
.catalog-table .product-identity {
  flex-wrap: nowrap;
  gap: 10px;
  min-width: 0;
}
.catalog-table .product-identity > .product-thumb {
  width: 50px;
  min-width: 50px;
  height: 50px;
  min-height: 50px;
  padding: 0;
  border-color: #dce8f4;
  border-radius: 8px;
  background: #f3f7fb;
}
.catalog-table .product-identity > .product-thumb .icon {
  width: 21px;
  height: 21px;
}
.catalog-table .product-details {
  min-width: 0;
}
.catalog-table .product-details > button {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #1d3048;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-table .product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 3px;
}
.catalog-table .product-tag {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 2px 5px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 650;
  line-height: 1;
}
.catalog-table .product-source {
  border-color: #c9e9df;
  background: #effbf6;
  color: #198164;
}
.catalog-table .product-category {
  border-color: #d8e5f4;
  background: #f2f7fc;
  color: #59718f;
}
.catalog-table .product-weight {
  display: block;
  margin-top: 3px;
  color: #708197;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.1;
}
.catalog-table .product-identity strong {
  font-size: 12px;
}
.catalog-table .mini-badge {
  margin-top: 0;
}
.catalog-table .product-stock {
  border-color: #ffd2dc;
  border-radius: 999px;
  background: #fff0f3;
  color: #e54161;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
}
.catalog-table .financial-value {
  font-size: 12px;
  font-weight: 750;
}
.catalog-table .pricing-review {
  border-color: #f1dbad;
  background: #fff9e9;
  color: #8a6525;
}
.page-account td {
  padding: 15px 10px;
}
.page-account table {
  min-width: 900px;
}
.page-account th:first-child {
  width: 24%;
}
.page-account th:nth-child(2) {
  width: 43%;
}
.voucher-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.voucher-card {
  border: 1px solid #d9e5f4;
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 9px;
  align-items: center;
}
.voucher-card small {
  display: block;
  font-size: 8px;
  text-transform: uppercase;
  color: #7d8ba0;
  margin-bottom: 4px;
}
.voucher-card strong {
  color: #2774b9;
  font-size: 11px;
}
.voucher-card .voucher-total {
  grid-column: 1/-1;
  border-top: 1px solid #e1e8f1;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #74869e;
}
.voucher-card .voucher-total strong {
  color: #168777;
}
.finance-table {
  min-width: 950px;
}
.action-add {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.page-action-center .table-wrap th {
  text-transform: none;
  font-size: 10px;
}
.page-action-center .table-wrap td {
  padding: 17px 12px;
}
.page-action-center .table-wrap {
  min-width: 0;
}
.page-action-center table {
  min-width: 720px;
}
.page-action-center .tabs button {
  font-size: 11px;
}
.action-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px 0;
}
.action-facts small {
  display: block;
  font-size: 10px;
  color: #7f8a98;
}
.action-facts strong {
  font-size: 13px;
}
.action-center-panel {
  max-width: 1100px;
}
.action-center-panel .receipt {
  display: block;
  margin: 14px 0;
}
.action-center-panel button.primary {
  width: auto;
}
.finance-voucher-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.finance-voucher-title h2 {
  margin: 0;
}
.branding-preview,
.settings-logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.branding-preview small {
  display: block;
  margin-top: 8px;
  font-size: 10px;
}
.branding-logo {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 6px double #dfe5ec;
  background: #f3f7fc;
  font-size: 24px;
  font-weight: 700;
}
.settings-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: #f4f6fa;
  border: 1px solid var(--border);
  border-radius: 8px;
  flex: none;
}
.settings-logo-row {
  padding: 10px 0;
}
.settings-logo-row > .form {
  flex: 1;
}
.settings-divider {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 8px;
}
.product-editor-top {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1040px;
  margin: 0 auto 12px;
}
.product-editor-top h1 {
  font-size: 15px;
  margin: 0;
}
.product-editor {
  max-width: 1040px;
  margin: auto;
  gap: 0;
}
.product-editor-section {
  padding: 14px;
  background: #fff;
  border: 1px solid #e8ebef;
  border-radius: 12px;
  margin-bottom: 16px;
}
.product-editor-section h2 {
  font-size: 10px;
  color: #45516a;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  margin: 0 0 18px;
}
.product-editor .full {
  grid-column: 1/-1;
}
.product-editor .pricing {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.product-editor .product-upload {
  width: 100%;
  min-height: 180px;
  flex-direction: column;
  padding: 18px;
  border: 1px dashed #9bb3d4;
  background: #fafbfd;
  color: #4e6687;
}
.product-upload .icon {
  width: 26px;
  height: 26px;
}
.product-upload strong {
  font-size: 13px;
}
.product-upload span {
  font-size: 11px;
}
.product-variant-tools {
  display: flex;
  justify-content: flex-end;
  margin: -34px 0 16px;
}
@media (max-width: 760px) {
  .product-editor .form-grid,
  .product-editor .pricing {
    grid-template-columns: 1fr;
  }
  .product-editor-section {
    padding: 12px;
  }
  .product-editor .product-upload {
    min-height: 145px;
  }
  .product-editor .form-footer {
    position: sticky;
    bottom: 0;
    background: #f7f8fa;
    padding: 12px 0;
    border-top: 1px solid var(--border);
  }
}
.settings-editor .form-footer {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.settings-unavailable {
  font-size: 11px;
}
.media-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.media-upload input[type='file'] {
  width: 100%;
  max-width: 100%;
}
.media-preview {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafbfd;
  overflow: hidden;
}
.media-preview img,
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-preview .icon {
  width: 30px;
  height: 30px;
}
.media-upload > .form {
  min-width: 0;
}
.product-media-upload {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
}
.product-media-upload .media-preview {
  width: 110px;
  height: 110px;
}
.product-media-upload .product-upload {
  min-height: 130px;
}
.branding-preview .media-preview,
.brand-mark img {
  border-radius: 50%;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.photo-button {
  padding: 0;
  overflow: hidden;
}
.product-identity > div > button {
  background: none;
  border: 0;
  padding: 0;
  height: auto;
  text-align: left;
  font-weight: 650;
  color: inherit;
}
.catalog-table th select {
  display: inline-block;
  width: 118px;
  min-height: 26px;
  margin: 0 0 0 7px;
  padding: 3px 5px;
  border-color: #d8e4f2;
  border-radius: 5px;
  background: #fff;
  color: #55708e;
  font-size: 9px;
}
.product-actions {
  gap: 4px;
  flex-wrap: nowrap;
}
.catalog-table .product-actions .row-icon-button {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 5px;
  border-color: transparent;
  border-radius: 7px;
}
.catalog-table .product-actions .row-icon-button .icon {
  width: 15px;
  height: 15px;
}
.catalog-table .product-actions .product-pin-button {
  background: #fffaf0;
  color: #ed3e73;
}
.catalog-table .product-actions .product-pin-button.is-pinned {
  color: #df2860;
  background: #fff1ba;
  border-color: #fff1ba;
}
.catalog-table .product-actions .product-copy-button {
  background: #f1edff;
  color: #7655e8;
}
.catalog-table .product-actions .product-edit-button {
  background: #edf6ff;
  color: #2d80ee;
}
.catalog-table .product-actions .product-delete-button {
  background: #fff1f4;
  color: #ef7690;
}
@media (max-width: 760px) {
  .catalog-table {
    min-width: 1080px;
  }
  .catalog-table th,
  .catalog-table td {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
.product-status {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #fafbfd;
}
.product-status button.primary {
  background: #fff;
  color: #111;
  border-color: #bfc5cd;
  box-shadow: none;
}
.product-editor .form-grid {
  align-items: start;
}
.product-editor .category-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}
.product-editor .pricing > label[hidden] {
  display: none;
}
.product-editor .pricing + label {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}
@media (min-width: 1200px) {
  .product-editor,
  .product-editor-top {
    max-width: none !important;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .product-editor .category-control {
    grid-template-columns: 1fr;
  }
}
.variant-rows {
  display: grid;
  gap: 12px;
}
.variant-row {
  display: grid;
  grid-template-columns: 1fr 1fr 100px 1.2fr auto;
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 760px) {
  .variant-row {
    grid-template-columns: 1fr 1fr;
  }
  .variant-row > button {
    justify-self: end;
    grid-column: 1/-1;
  }
  .media-upload {
    flex-wrap: wrap;
  }
}
.photo-dialog {
  width: min(850px, calc(100vw - 24px));
}
.photo-zoom {
  display: block;
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
}
.form-error {
  color: #b91c1c;
  overflow-wrap: anywhere;
}
.settings-divider .media-upload {
  grid-column: 1/-1;
}
.stock-photo .photo-button {
  width: 100%;
  height: 100%;
  min-height: 190px;
}
.settings-dialog {
  width: min(640px, calc(100vw - 32px));
}
@media (max-width: 760px) {
  .finance-voucher-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .page-products > .metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
  }
  .page-products > .metrics > .metric {
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    padding: 10px;
  }
  .page-products > .metrics > .metric:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
  .page-products > .metrics > .metric:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .page-products > .toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .page-products > .toolbar > .search-field {
    grid-column: 1/-1;
  }
  .page-products > .toolbar > select,
  .page-products > .toolbar > button {
    width: 100%;
    min-width: 0;
    font-size: 10px;
    padding: 6px;
  }
  .product-result {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }
  .stock-photo .product-thumb {
    min-height: 150px;
  }
  .stock-details h2 {
    font-size: 16px;
  }
  .stock-details .metric > strong {
    font-size: 24px;
    padding: 8px;
  }
  .stock-details .metric > button {
    font-size: 12px;
    padding: 8px;
  }
  .stock-details .metric {
    margin-top: 8px;
  }
  .demand {
    gap: 6px;
  }
  .demand .metric {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 4px;
  }
  .demand .metric > .icon {
    grid-row: auto;
    width: 20px;
    height: 20px;
  }
  .demand .metric > .muted {
    font-size: 9px;
  }
  .demand .metric > strong {
    font-size: 24px;
  }
  .voucher-list {
    grid-template-columns: 1fr;
  }
  .action-facts {
    grid-template-columns: 1fr 1fr;
  }
}
.variant-photo {
  grid-column: 1/-1;
}
.variant-photo summary {
  cursor: pointer;
  font-size: 12px;
}
.variant-photo .media-upload {
  margin-top: 8px;
}
.bulk-sku-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
  margin: 6px 0 10px;
}
.bulk-sku-row > .muted {
  grid-column: 1/-1;
}
.bulk-sku-row output {
  overflow-wrap: anywhere;
}
