.commerce-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 20px}.commerce-metric{padding:17px;border:1px solid var(--portal-line);border-radius:10px;background:var(--portal-panel);min-width:0}.commerce-metric>span{display:block;font-size:11px;color:var(--portal-muted);margin-bottom:8px}.commerce-metric>strong{font:600 clamp(17px,2.2vw,27px)/1.3 Arial,sans-serif;overflow-wrap:anywhere}.gain strong,.gain dd{color:#85b9a2}.loss strong,.loss dd{color:#d58b8d}html[data-theme=light] .gain strong,html[data-theme=light] .gain dd{color:#28674c}html[data-theme=light] .loss strong,html[data-theme=light] .loss dd{color:#9a3844}
.archive-filters{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin-bottom:12px}.archive-filters>label,.archive-period label{display:grid;gap:5px;font-size:10px;color:var(--portal-muted);min-width:0}.archive-filters input,.archive-filters select{width:100%;min-width:0;min-height:40px;border:1px solid var(--portal-line);border-radius:7px;padding:8px 10px;background:var(--portal-panel);color:var(--portal-ink);font:12px Arial,sans-serif}.archive-search{display:flex;gap:6px;flex:1 1 230px;min-width:0}.archive-search input{min-width:60px}.archive-period{flex:1 1 200px;font-size:11px;padding:10px;border:1px solid var(--portal-line);border-radius:7px}.archive-period summary{cursor:pointer}.archive-period>div{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.commerce-calculation{font-size:11px;line-height:1.65;color:var(--portal-muted);margin:12px 0 18px}
.archive-list,.commerce-product-list{display:grid;gap:8px}.archive-row{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(90px,.6fr) minmax(110px,.7fr) auto;align-items:center;gap:18px;border:1px solid var(--portal-line);border-radius:10px;padding:14px;background:var(--portal-panel)}.archive-product{display:flex;align-items:center;gap:12px;min-width:0}.archive-product>div{min-width:0}.archive-product img,.archive-no-photo{width:46px;height:46px;border-radius:7px;object-fit:cover;flex:none;background:var(--portal-soft)}.archive-no-photo{display:grid;place-items:center;color:var(--portal-muted)}.archive-product strong{font-size:12px;line-height:1.4;display:block;overflow-wrap:anywhere}.archive-product small{display:block;font-size:10px;color:var(--portal-muted);line-height:1.6}.archive-number small{display:block;color:var(--portal-muted);font-size:10px;line-height:1.7}.archive-number strong{font-size:13px;white-space:nowrap}.archive-row.cancelled{opacity:.6}.archive-row.cancelled .archive-number strong{text-decoration:line-through}.commerce-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0;font-size:11px;color:var(--portal-muted)}.commerce-pagination>div{display:flex;gap:6px}.commerce-product-row{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px;border:1px solid var(--portal-line);border-radius:10px;background:var(--portal-panel)}.commerce-product-row>img{width:46px;height:46px;border-radius:7px;object-fit:cover}.commerce-product-name{min-width:0}.commerce-product-name strong{font-size:12px;overflow-wrap:anywhere}.commerce-product-name small{display:block;font-size:10px;color:var(--portal-muted);line-height:1.7}.commerce-product-price{font-size:14px}.commerce-product-actions{grid-column:2/-1;display:flex;flex-wrap:wrap;gap:7px}.commerce-product-actions .button{min-height:35px;padding:8px 11px;font-size:10px}.commerce-product-actions [data-commerce-action=sale]{color:#b47880}
.commerce-payment-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;border:1px solid var(--portal-line);border-radius:10px;background:var(--portal-soft);padding:14px 16px;margin-bottom:20px}.commerce-payment-banner>div{display:flex;align-items:center;gap:11px;min-width:0}.commerce-payment-banner svg,.commerce-payment-locked svg,.commerce-enable svg{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.6}.commerce-payment-banner strong{display:block;font-size:12px}.commerce-payment-banner small{display:block;color:var(--portal-muted);font-size:10px;line-height:1.6;margin-top:3px}.commerce-payment-banner.locked{color:var(--portal-muted)}.commerce-method-labels{font-size:10px;color:var(--portal-muted)}.commerce-cart-payment{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid var(--portal-line)}.commerce-cart-payment small{font-size:11px;color:var(--portal-muted);max-width:270px}.commerce-payment-locked{opacity:.55;cursor:not-allowed;display:flex;align-items:center;gap:8px}
.commerce-selected-product{display:flex;gap:12px;align-items:center;margin-bottom:20px;min-width:0}.commerce-selected-product img{width:58px;height:58px;object-fit:cover;border-radius:9px;flex:none}.commerce-selected-product strong{font-size:14px;overflow-wrap:anywhere}.commerce-selected-product small{display:block;margin-top:5px;font-size:11px;color:var(--portal-muted)}.sale-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:15px;border-radius:9px;background:var(--portal-soft);margin-top:16px}.sale-preview span{font-size:10px;color:var(--portal-muted);min-width:0}.sale-preview strong{display:block;font-size:14px;margin-top:5px;overflow-wrap:anywhere}.commerce-facts{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.commerce-facts>div{min-width:0}.commerce-facts dt{font-size:10px;color:var(--portal-muted);margin-bottom:5px}.commerce-facts dd{font-size:12px;line-height:1.6;margin:0;overflow-wrap:anywhere}.commerce-iban{font-family:monospace}.commerce-detail-note{white-space:pre-wrap;font-size:12px;color:var(--portal-muted);line-height:1.7;overflow-wrap:anywhere}.commerce-snapshot{font-size:12px;line-height:1.7}.commerce-snapshot p{white-space:pre-wrap;overflow-wrap:anywhere}.commerce-snapshot summary{cursor:pointer}.commerce-dialog-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.commerce-bank-form{padding:22px}.commerce-methods{border:0;padding:0;margin:22px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:10px}.commerce-methods legend{font-size:12px;font-weight:600;margin-bottom:12px}.commerce-methods label{display:flex;gap:9px;align-items:center;padding:12px;border:1px solid var(--portal-line);border-radius:8px;font-size:11px;min-width:0}.commerce-methods input{accent-color:var(--portal-accent);flex:none}.commerce-enable{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--portal-line);border-radius:8px;background:var(--portal-soft);font-size:12px}.commerce-enable svg{margin-left:auto}.commerce-enable input{accent-color:var(--portal-accent)}.commerce-bank-form>.form-field{margin:20px 0}.commerce-gateway{padding:22px;margin:18px 0}.commerce-gateway h2,.commerce-orders h2{font:24px Georgia,serif;margin:0 0 12px}.commerce-gateway p{font-size:12px;color:var(--portal-muted);line-height:1.7}.commerce-webhook{display:grid;gap:8px;font-size:11px;margin:18px 0;padding:13px;border:1px solid var(--portal-line);border-radius:8px}.commerce-webhook code{overflow-wrap:anywhere;white-space:normal}.commerce-webhook small{color:var(--portal-muted);line-height:1.7}.commerce-order-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:14px;border:1px solid var(--portal-line);border-radius:9px;background:var(--portal-panel);margin:8px 0}.commerce-order-row strong{font-size:12px}.commerce-order-row small{display:block;color:var(--portal-muted);font-size:10px;line-height:1.7;overflow-wrap:anywhere}.commerce-order-lines{display:grid;gap:10px;font-size:12px;margin:16px 0 22px}.commerce-order-lines>div{display:flex;justify-content:space-between;gap:14px}.commerce-order-lines span{overflow-wrap:anywhere;min-width:0}.commerce-order-lines strong{flex:none}.commerce-order-lines>div:last-child{padding-top:12px;border-top:1px solid var(--portal-line)}
@media(min-width:1100px){.commerce-product-row{grid-template-columns:46px minmax(0,1fr) auto minmax(210px,auto)}.commerce-product-actions{grid-column:auto;justify-content:flex-end}}
@media(max-width:1000px){.archive-row{gap:12px;grid-template-columns:minmax(0,1fr) minmax(85px,.5fr) auto}.archive-row>.archive-number:nth-child(2){display:none}.archive-filters>.button{min-height:40px}}
@media(max-width:600px){.commerce-metrics{grid-template-columns:1fr 1fr}.commerce-metric{padding:13px}.commerce-metric>strong{font-size:19px}.archive-row{grid-template-columns:minmax(0,1fr) auto;padding:12px}.archive-product{grid-column:1/-1}.archive-row>.archive-number:nth-child(2){display:block;grid-column:1}.archive-row>.archive-number:nth-child(3){grid-column:2;grid-row:2;text-align:right}.archive-row>.button{grid-column:1/-1;justify-self:end;min-height:35px;padding:7px 13px}.archive-filters>label{flex:1 1 130px}.archive-search{flex-basis:100%}.archive-period{flex-basis:100%}.commerce-pagination{flex-wrap:wrap}.commerce-payment-banner{padding:12px}.commerce-payment-banner>div{align-items:flex-start}.commerce-method-labels{padding-left:29px}.commerce-bank-form,.commerce-gateway{padding:16px}.commerce-methods{grid-template-columns:1fr}.commerce-facts{gap:14px}.commerce-product-row{padding:12px;gap:10px;grid-template-columns:38px minmax(0,1fr) auto}.commerce-product-row>img{width:38px;height:38px}.commerce-product-price{font-size:12px}.commerce-product-actions{grid-column:1/-1}.commerce-product-actions>.button{flex:1;justify-content:center}.sale-preview{padding:12px;gap:8px}.sale-preview strong{font-size:12px}.commerce-order-row{grid-template-columns:minmax(0,1fr) auto;gap:10px}.commerce-order-row>.button{grid-column:1/-1;justify-self:end}.commerce-dialog-actions>.button{flex:1 1 150px;justify-content:center}.commerce-facts{grid-template-columns:1fr}.commerce-methods label{min-height:44px}}

.commerce-finance-link{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;padding:16px;border:1px solid var(--portal-line);border-radius:10px;background:var(--portal-panel);font-size:11px;margin:18px 0 26px}.commerce-finance-link>small{margin-left:auto;color:var(--portal-accent)}
.commerce-shop-admin-sale{border-top:1px solid var(--portal-line);padding-top:12px;margin-top:12px}.commerce-shop-admin-sale>.button{width:100%;justify-content:center;min-height:36px;font-size:11px}
.archive-search .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

@media(max-width:600px){.archive-row .archive-product{grid-column:1;grid-row:1;gap:9px}.archive-row>.button{grid-column:2;grid-row:1;align-self:start;min-height:33px;padding:6px 10px;font-size:10px}.archive-row>.archive-number:nth-child(2){grid-column:1;grid-row:2}.archive-row>.archive-number:nth-child(3){grid-column:2;grid-row:2}.archive-product strong{font-size:11px}.archive-product small{font-size:9px}.archive-product img,.archive-no-photo{width:38px;height:38px}}
.commerce-shop-admin-sale{position:relative;z-index:1}

.archive-search [data-archive-scanner]{width:42px;min-width:42px;min-height:42px;padding:9px;flex:none;display:grid;place-items:center;color:var(--portal-accent)}.archive-search [data-archive-scanner] svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}.commerce-paypal-help ol{padding-left:19px;margin:12px 0;color:var(--portal-muted);font-size:12px;line-height:1.8}.commerce-paypal-help .commerce-dialog-actions{margin-top:12px}.portal-body #barcode-dialog{--line:var(--portal-line);--muted:var(--portal-muted);--mint:var(--portal-soft);--green:var(--portal-accent)}
@media(max-width:600px){.archive-search input{font-size:16px;min-width:0;flex:1;width:0}.archive-search>.button{padding:8px 10px;min-height:44px}.archive-search [data-archive-scanner]{width:44px;min-width:44px}}

@media(max-width:600px){body.portal-body .archive-search>.button,body.portal-body .archive-search input{min-height:44px}}

.archive-row.deleted{background:var(--portal-soft);border-style:dashed}.archive-row.deleted .archive-product,.archive-row.deleted .archive-number{opacity:.75;filter:grayscale(1)}.archive-row.deleted .archive-number strong{text-decoration:line-through;color:var(--portal-muted)}.archive-row.deleted .archive-product strong{color:var(--portal-muted)}.archive-note{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.commerce-deleted-notice{display:grid;gap:7px;padding:14px;border:1px dashed var(--portal-line);border-radius:8px;background:var(--portal-soft);color:var(--portal-muted);font-size:12px;line-height:1.6;overflow-wrap:anywhere}.commerce-deleted-notice strong{color:var(--portal-ink)}.commerce-sale-note{padding:12px 14px;border:1px solid var(--portal-line);border-radius:8px;margin:16px 0}.commerce-sale-note h3{font-size:11px;margin:0 0 6px}.commerce-sale-note p{margin:0}[data-commerce-action=sale-delete]{color:#bc7d85}
