.consignment-page { display: grid; gap: 10px; }
.consignment-heading, .consignment-entry, .consignment-row, .consignment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.consignment-heading h2, .consignment-panel h3 { margin: 0 0 4px; }
.consignment-heading p, .consignment-entry p { margin: 0; color: var(--muted, #526479); }
.consignment-entry, .consignment-panel { padding: clamp(14px, 3vw, 22px); }
.consignment-entry { margin-top: 14px; }
.consignment-stats, .consignment-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 10px;
}
.consignment-stats strong { font-size: 1.42rem; }
.consignment-stats + .consignment-panel, .consignment-panel + .consignment-panel { margin-top: 10px; }
.consignment-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.consignment-page a.btn { text-decoration: none; }
.consignment-status { margin: 5px 0; font-size: .9rem; }
.consignment-status:empty { display: none; }
.consignment-page form, .consignment-panel label { display: grid; gap: 6px; }
.consignment-page form { gap: 12px; margin-top: 8px; }
.consignment-page input, .consignment-page select, .consignment-page textarea {
  width: 100%;
  min-width: 0;
  padding: .55rem .65rem;
  color: inherit;
  font: inherit;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 9px;
}
.consignment-row { padding: 9px 0; border-bottom: 1px solid var(--line, #dce4ea); }
.consignment-row :where(b, small) { overflow-wrap: anywhere; }
.consignment-row small { display: block; color: var(--muted, #526479); }
.consignment-row input { max-width: 110px; }
.consignment-actions { justify-content: flex-start; margin-top: 12px; }
@media (max-width: 480px) {
  .consignment-tabs .btn { padding: 8px 10px; }
  .consignment-row > div:first-child { flex: 1 1 140px; }
}

.consignment-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 14px 0 10px; }
.consignment-toolbar label { flex: 1 1 auto; max-width: 440px; display: grid; gap: 5px; }
.consignment-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 310px),1fr)); gap: 12px; }
.consignment-store { padding: 14px; }
.consignment-store-title { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; background: none; border: 0; color: inherit; font: inherit; padding: 0; }
.consignment-store-title b { flex: 1; }
.consignment-store-title > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--primary, #075e58); background: #dbf3ef; }
.consignment-store-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 100px),1fr)); gap: 8px; margin: 12px 0; }
.consignment-store-metrics > div { display: grid; gap: 3px; padding: 8px; background: var(--surface-soft, #f1f5f8); border-radius: 8px; }
.consignment-store-metrics small { color: var(--muted, #42546a); }
.consignment-product { display: flex; align-items: center; gap: 9px; min-width: 0; }
.consignment-photo { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; object-fit: cover; background: #eaf2f3; border-radius: 8px; }
.consignment-photo svg { width: 19px; }
.consignment-count-row { border: 1px solid var(--line, #dce4ea); padding: 12px; border-radius: 10px; display: grid; gap: 9px; }
.consignment-page [hidden] { display: none !important; }
@media (max-width: 480px) {
  .consignment-toolbar label { max-width: none; }
  .consignment-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .consignment-stats strong { font-size: 1.05rem; }
  .consignment-count-row .consignment-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.consignment-stats section {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  min-width: 0;
}
.consignment-stats section small, .consignment-store-title small { display: block; color: var(--muted, #526479); }
.consignment-stats section strong { display: block; line-height: 1.25; overflow-wrap: anywhere; }
.consignment-stat-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  color: var(--veconi-action, #075e58);
  background: #dbf3ef;
}
.consignment-stat-icon svg { width: 17px; height: 17px; }
.consignment-toolbar { align-items: center; flex-flow: row wrap; gap: 8px; }
.consignment-toolbar label, .consignment-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}
.consignment-toolbar label { flex: 1 1 145px; max-width: none; }
.consignment-toolbar .btn { flex: none; }
.consignment-toolbar label > svg, .consignment-search > svg {
  position: absolute;
  left: 11px;
  width: 17px;
  color: var(--muted, #526479);
  pointer-events: none;
}
.consignment-toolbar input, .consignment-search input { padding-left: 34px; min-height: 42px; }
.consignment-store-title > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.consignment-store .consignment-store-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
.consignment-store .consignment-store-metrics b { overflow-wrap: anywhere; }
.consignment-store .consignment-actions > button { flex: 1 1 auto; }
.consignment-flow { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
body:has(.consignment-flow) .bottom-nav { display: none !important; }
.consignment-flow .consignment-heading { justify-content: flex-start; flex-wrap: nowrap; }
.consignment-flow .consignment-heading h2 { font-size: clamp(1.05rem, 3vw, 1.38rem); overflow-wrap: anywhere; }
.consignment-flow .consignment-heading p svg { width: 14px; height: 14px; vertical-align: middle; }
.consignment-catalog-tools {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(145px, 190px) minmax(145px, 190px);
  gap: 8px;
  margin: 12px 0;
}
.consignment-catalog.mobile-sale-page { padding: 0; }
.consignment-catalog .pos-product:has([data-delivery-qty]:not([hidden])) { border-color: #5fd0b3; }
.consignment-catalog .pos-product [data-delivery-favorite] { z-index: 4; }
.consignment-catalog [data-delivery-grid] { display: grid; margin-bottom: 12px; }
.consignment-catalog [data-delivery-grid] > .muted { grid-column: 1 / -1; }
.consignment-bag {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 48;
  gap: 7px;
  box-shadow: 0 10px 24px rgba(4,117,91,.26);
}
.consignment-bag b { background: #073932; color: white; border-radius: 99px; min-width: 24px; padding: 2px 6px; }
.consignment-variants {
  max-width: min(460px, calc(100% - 24px));
  max-height: 78dvh;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line, #dae3ec);
  border-radius: 16px;
  color: inherit;
  background: var(--surface, #fff);
}
.consignment-variants::backdrop { background: #10182788; }
.consignment-variants header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.consignment-variants h3 { margin: 0; }
.consignment-variants input { width: 64px; }
.consignment-variants .consignment-product { flex: 1; }
.consignment-flow [data-delivery-items] label { display: grid; gap: 5px; }
@media (max-width: 767px) {
  .consignment-catalog-tools { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .consignment-search { grid-column: 1 / -1; }
  .consignment-catalog [data-delivery-grid].pos-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .consignment-catalog .pos-placeholder { display: grid; place-items: center; background: #eaf8f5; }
}
@media (max-width: 360px) {
  .consignment-stats section { gap: 6px; padding: 8px; }
  .consignment-stat-icon { width: 25px; height: 25px; flex-basis: 25px; }
  .consignment-toolbar .btn { font-size: .8rem; padding-inline: 8px; }
}

@media (min-width: 768px) {
  .consignment-catalog .desktop-sales-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%,240px),1fr));
    align-content: start;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
  .consignment-catalog .desktop-sale-product-image { height: 104px; }
}

.consignment-stats section { padding: 12px; }
.consignment-stats section strong { font-variant-numeric: tabular-nums; }
.consignment-store { display: flex; flex-direction: column; padding: clamp(12px, 2.2vw, 18px); }
.consignment-store-metrics > div { align-content: start; }
.consignment-store .consignment-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: auto;
}
.consignment-store .btn, .consignment-toolbar .btn { min-height: 42px; }

.consignment-bag-panel, .consignment-confirmation {
  width: min(100%, 760px);
  margin: 12px auto 0;
}
.consignment-bag-panel form { margin: 0; gap: 14px; }
.consignment-bag-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px 112px 44px;
  align-items: center;
  gap: 8px 12px;
  padding-block: 9px;
  border-bottom: 1px solid var(--line, #dce4ea);
}
.consignment-bag-item:first-child { padding-top: 0; }
.consignment-bag-item b { display: block; overflow-wrap: anywhere; }
.consignment-bag-item :is(small, label) { color: var(--muted, #526479); font-size: .8rem; }
.consignment-flow .consignment-bag-item label { gap: 3px; }
.consignment-bag-item input { padding-block: .35rem; min-height: 36px; }
.consignment-bag-item .consignment-photo { width: 34px; height: 34px; flex-basis: 34px; }
.consignment-bag-item [data-remove] { width: 44px; min-height: 44px; padding: 0; align-self: end; }
.consignment-bag-item [data-remove] svg { width: 17px; }
.consignment-delivery-fields textarea { resize: vertical; }

.consignment-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--veconi-surface-subtle, #edf7f6);
}
.consignment-summary span { display: block; color: var(--muted, #526479); font-size: .82rem; }
.consignment-summary strong {
  display: block;
  color: var(--veconi-ink, #073e43);
  font-size: 1.24rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.consignment-summary div + div { text-align: right; }
.consignment-bag-panel [type=submit], .consignment-confirmation-actions .btn { min-height: 44px; }

.consignment-confirmation .sale-completion-head {
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0 0 14px;
  border: 0;
}
.consignment-confirmation .sale-completion-head h3 { margin: 0; font-size: 1.15rem; }
.consignment-confirmation .sale-completion-head p { font-size: .86rem; overflow-wrap: anywhere; }
.consignment-confirmation-actions { display: grid; gap: 8px; margin-top: 12px; }
.consignment-confirmation-actions p { margin: 0; font-size: .82rem; }
.consignment-pdf-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.consignment-confirmation-actions .btn { white-space: normal; gap: 6px; }
.consignment-confirmation-actions .btn svg { width: 17px; flex: none; }
.consignment-confirmation details { margin-top: 12px; border-top: 1px solid var(--line, #dce4ea); }
.consignment-confirmation details:first-of-type { margin-top: 16px; }
.consignment-confirmation summary { padding-top: 10px; cursor: pointer; font-weight: 650; }
.consignment-confirmation details label { margin: 10px 0; }

@media (max-width: 480px) {
  .consignment-stats section { padding: 9px; }
  .consignment-store .btn { gap: 4px; padding-inline: 6px; }
  .consignment-bag-item { grid-template-columns: minmax(54px, .65fr) minmax(100px, 1fr) 44px; gap: 4px 8px; }
  .consignment-bag-item .consignment-product { grid-column: 1 / 3; }
  .consignment-bag-item [data-remove] { grid-column: 3; grid-row: 1; align-self: center; }
  .consignment-bag-item input { padding-inline: .55rem; }
  .consignment-delivery-fields { grid-template-columns: 1fr; }
  .consignment-pdf-actions .btn { padding-inline: 5px; font-size: .85rem; }
}
