.order-workspace {--inset:clamp(20px,2.5vw,32px);}
.catalog {overflow:hidden;}
.management-switch {display:flex;gap:4px;margin:0 0 16px;width:fit-content;background:#e8eee9;padding:4px;border-radius:10px;}
.management-switch button {padding:8px 16px;border-radius:7px;color:var(--muted);}
.management-switch button[aria-pressed=true] {background:white;color:var(--green);font-weight:600;}
.catalog-tools {display:grid;justify-items:start;gap:12px;padding:0 var(--inset) 20px;}
.catalog-filter {width:min(100%,24rem);}
.customer-row {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px var(--inset);border-top:1px solid var(--line);}
.customer-detail {display:flex;align-items:baseline;gap:6px;min-width:0;}
.customer-detail strong,.customer-detail span {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.customer-detail span {flex:0 0 auto;max-width:43%;color:var(--muted);}
.delete-action {order:-1;margin-right:auto;color:#963d32;font-size:14px;}

.catalog .panel-top {padding:20px var(--inset);}
.section-title .count {font-variant-numeric:tabular-nums;color:var(--muted);border-left:1px solid var(--line);padding-left:12px;}
.product-table {width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;}
.product-table thead {background:#f3f6f2;}
.product-table th,.product-table td {text-align:left;padding:16px 12px;vertical-align:middle;}
.product-table th:first-child {padding-left:var(--inset);}
.product-table th:last-child,.product-table td:last-child {padding-right:var(--inset);}
.product-table thead th {padding-block:10px;border-block:1px solid var(--line);font-size:13px;font-weight:500;color:var(--muted);}
.product-table tbody tr+tr {border-top:1px solid var(--line);}
.product-table tbody tr:hover {background:#f9fbf8;}
.product-name {width:36%;}
.mobile-state {display:none;}
.product-name strong,.product-name small {display:block;overflow-wrap:anywhere;}
.product-name strong {font-size:16px;font-weight:600;}
.product-name small,.price-cell small {font-weight:400;color:var(--muted);font-size:13px;}
.product-name small {margin-top:4px;}
.spec-cell {color:#51645a;overflow-wrap:anywhere;}
.product-table .numeric {text-align:right;white-space:nowrap;}
.price-cell strong {font-weight:600;}
.product-table .state-cell,.product-table th:nth-child(4) {padding-left:clamp(20px,4vw,64px);}
.state {display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#69716c;white-space:nowrap;}
.state::before {content:'';width:7px;height:7px;border-radius:50%;background:#a4ada6;}
.state.enabled {color:#38664f;}.state.enabled::before {background:#4f8c66;}
.unpriced {font-size:13px;color:#835d26;}
.product-table .row-action {text-align:right;}
.edit-link,.text-action {color:var(--green);font-weight:550;border-radius:8px;}
.edit-link {padding:8px 12px;min-height:40px;}
.edit-link:hover,.text-action:hover {background:#edf3ed;}
.catalog-empty {padding:24px var(--inset);color:var(--muted);}
.config-pair {margin-top:24px;display:grid;gap:24px;grid-template-columns:1fr 1fr;}
.config-panel {min-width:0;display:flex;flex-direction:column;padding:24px var(--inset);}
.section-icon {display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:#e9f1eb;color:var(--green);}
.payment-summary {margin:20px 0;display:grid;gap:8px;}
.payment-summary div {display:grid;grid-template-columns:80px minmax(0,1fr);align-items:baseline;gap:8px;}
.payment-summary dt {font-size:14px;color:var(--muted);}
.payment-summary dd {margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;}
.template-summary {display:flex;gap:16px;align-items:center;margin:auto 0;padding:24px 0;}
.template-summary strong {display:block;font-size:16px;overflow-wrap:anywhere;font-weight:600;}
.template-summary p {margin-top:4px;}
.document-tile {display:grid;place-items:center;width:48px;height:56px;flex:none;background:#eaf0f7;border:1px solid #dbe5ed;border-radius:8px;}
.document-tile img {width:32px;height:32px;}
.config-actions {display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding-top:16px;border-top:1px solid var(--line);margin-top:auto;}
.config-actions button {font-size:14px;}
.text-action {display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:8px 12px;}
#productDialog {width:min(520px,92vw);}
.form-grid {display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.span-all {grid-column:1/-1;}
dialog input[type=file] {padding:12px;background:#f5f7f4;}
dialog input::file-selector-button {font:inherit;color:var(--green);padding:6px 10px;margin-right:10px;border-radius:6px;border:1px solid #c9d8cc;background:white;}
@media(max-width:800px){.config-pair {gap:16px;}.config-panel{padding:20px;}}
@media(max-width:700px){
  .config-pair {grid-template-columns:1fr;margin-top:16px;}
  .product-table,.product-table tbody {display:block;}
  .product-table thead {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;}
  .product-table tbody tr {display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name price" "spec edit";align-items:center;gap:4px 12px;padding:16px var(--inset);}
  .product-table tbody tr:first-child {border-top:1px solid var(--line);}
  .product-table tbody tr th:first-child,.product-table tbody tr td,.product-table tbody tr td:last-child {padding:0;}
  .product-table td.state-cell {display:none;}.mobile-state {display:inline;}
  .product-name {grid-area:name;width:auto;}.price-cell {grid-area:price;}.spec-cell {grid-area:spec;font-size:13px;}
  .state-cell {grid-area:state;justify-self:end;}.row-action {grid-area:edit;}.edit-link {padding:4px 8px;min-height:36px;margin-right:-8px;}
  .config-actions {gap:8px;}.order-workspace h1 {margin-bottom:20px;}
  .catalog .panel-top {flex-wrap:nowrap;}.catalog .primary {padding-inline:12px;}
}
@media(max-width:400px){dialog {padding:20px;}.form-grid {gap:12px;}.section-title {gap:8px;}}
