/* The hold menu replaces Production hold-drag. Fast swipes retain native scroll. */
.product-card,.table-row[data-id],.order-card[data-order]{position:relative;-webkit-touch-callout:none}
.card-actions-trigger{position:absolute;z-index:2;right:8px;bottom:8px;border:1px solid #ffffffdb;border-radius:50%;width:32px;height:32px;background:#ffffffed;color:var(--accent,#286a51);font-size:23px;line-height:1;display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 8px #0000000d}
.table-row[data-id]{padding-right:46px!important}
.table-row .card-actions-trigger{top:50%;bottom:auto;transform:translateY(-50%)}
.card-hold-pending{outline:2px solid color-mix(in srgb,var(--accent,#286a51) 25%,transparent);outline-offset:2px}
.card-action-caption{color:var(--muted,#617467);margin-top:-6px}
.card-action-menu{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:24px 0}
.card-action-menu button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;padding:26px 16px;border:1px solid var(--line,#dbe4df);border-radius:20px;background:var(--accent-soft,#edf5ef);color:var(--accent,#286a51);font:600 16px inherit;cursor:pointer}
.card-action-menu svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.card-selected{outline:3px solid var(--accent,#286a51)!important;outline-offset:1px}
.card-select-toggle{position:absolute;top:8px;left:8px;z-index:3;width:31px;height:31px;border-radius:10px;border:1px solid var(--accent,#286a51);background:#fff;color:var(--accent,#286a51);padding:4px;cursor:pointer}
.card-select-toggle svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8}
.card-select-toggle[aria-pressed=false] svg path{visibility:hidden}
.card-select-toggle[aria-pressed=true]{background:var(--accent,#286a51);color:white}
.table-row[data-selection-mode=true]{padding-left:48px!important}
.order-card[data-selection-mode=true]{padding-top:42px!important}
#cardSelectionBar{position:fixed;z-index:90;bottom:22px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;width:max-content;max-width:calc(100vw - 24px);padding:10px 12px;border:1px solid #fff;border-radius:25px;background:#f6fbf8f5;color:var(--ink,#183626);box-shadow:0 8px 38px #18362624;backdrop-filter:blur(18px);box-sizing:border-box}
#cardSelectionBar[hidden]{display:none}
.card-selection-count{font-size:13px;white-space:nowrap;padding:0 7px}.card-selection-count small{display:block;color:var(--muted,#617467);font-size:10px;margin-top:3px}
#cardSelectionBar button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;border:0;border-radius:17px;padding:10px 13px;background:var(--accent-soft,#e8f1eb);color:var(--accent,#286a51);font-size:12px;font-weight:600;cursor:pointer}
#cardSelectionBar button:disabled{opacity:.5;cursor:default}#cardSelectionBar svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#cardMoveForm>label{display:flex;flex-direction:column;gap:7px;margin-bottom:15px}#cardMoveForm>label[hidden]{display:none}.card-move-feedback,.card-move-result{line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.card-move-feedback:empty{display:none}
body.card-selection-active main{padding-bottom:110px!important}
@media(max-width:850px){#cardSelectionBar{bottom:calc(var(--mobile-dock-clearance,12px) + 8px);gap:4px;padding:9px 6px;border-radius:22px}#cardSelectionBar button{flex-direction:column;gap:3px;font-size:10px;padding:7px 9px;min-height:48px}.card-selection-count{font-size:12px;padding:0 5px}body.card-selection-active main{padding-bottom:calc(var(--mobile-dock-clearance,12px) + 100px)!important}}
@media(prefers-reduced-motion:reduce){.card-hold-pending,.card-selected{transition:none!important}}
@media print{#cardSelectionBar,.card-select-toggle,.card-actions-trigger{display:none!important}.card-selected{outline:0!important}}
.card-share .modal-head h2{overflow-wrap:anywhere}.card-share .modal-actions{flex-wrap:wrap;gap:8px}.card-share .modal-actions button{white-space:normal}.card-share-history,#cardShareMissingWrap{display:flex;align-items:flex-start;gap:10px;line-height:1.5;padding:12px;border-radius:12px;background:var(--accent-soft,#edf5ef)}.card-share-history input,#cardShareMissingWrap input{flex:0 0 18px;width:18px;height:18px;margin:3px 0 0}#cardShareMissingWrap[hidden]{display:none}#cardShareStatus{line-height:1.55;padding:14px;border-left:3px solid var(--accent,#286a51);background:#f1f5f2;border-radius:0 12px 12px 0}.card-share-preview{border:1px solid var(--line,#dbe4df);border-radius:14px;margin:12px 0;overflow:hidden}.card-share-preview summary{cursor:pointer;padding:14px;font-weight:600;color:var(--accent,#286a51);overflow-wrap:anywhere}.card-share-text{font-size:12px;line-height:1.55;padding:0 14px 14px}.card-share-preview .gallery{padding:0 14px 14px}.card-share-preview figure{margin:0}.card-share-preview figcaption{font-size:11px;overflow-wrap:anywhere;margin-top:5px}@media(max-width:500px){.card-share .modal-actions{display:grid;grid-template-columns:1fr}.card-share .modal-actions button{width:100%;min-height:44px}}

/* Absolute controls must not inherit legacy table nth-child column hiding. */
@media screen{.table-row>.card-select-toggle,.table-row>.card-actions-trigger{display:grid!important}}
body.card-selection-active #catalogBody.table-mode>.table-head{padding-left:48px!important;padding-right:46px!important}

#cardSelectionBar.card-controls-sized button:is([data-selection-share],[data-selection-metal],[data-selection-cancel]){box-sizing:border-box;flex:none;width:var(--selection-action-width);height:var(--selection-action-height);min-width:0!important;min-height:var(--selection-action-height);padding-block:0}
.card-share-weight{padding:12px;border:1px solid var(--line,#dbe4df);border-radius:14px;margin-bottom:12px;line-height:1.5}
.card-share-weight-switch{display:flex;align-items:center;gap:10px}.card-share-weight-switch input{width:44px;height:44px;flex:0 0 44px;margin:0}
#cardShareWeightInfo[hidden]{display:none}#cardShareWeightInfo p[role=alert]{color:#9d3c24;font-weight:600}#cardShareWeightText{display:block;width:100%;min-height:80px;box-sizing:border-box}

/* The label owns the 44px touch target; reset inherited input geometry. */
.card-share-weight-switch{min-height:44px;cursor:pointer}
html body .card-share-weight-switch input[role=switch]{appearance:none;position:relative;box-sizing:border-box;width:52px!important;min-width:52px!important;max-width:52px!important;height:32px!important;min-height:32px!important;max-height:32px!important;flex:0 0 52px;margin:0;padding:0!important;border:0;border-radius:20px;background:linear-gradient(180deg,#dce8e3e6,#c9d9d1cc);box-shadow:inset 0 0 0 1px #78968866,inset 0 2px 5px #284f3820,0 1px 0 #fff9;cursor:pointer;transition:background .2s,box-shadow .2s}
html body .card-share-weight-switch input[role=switch]::after{content:"";position:absolute;box-sizing:border-box;left:3px;top:50%;width:26px;height:26px;border-radius:50%;background:linear-gradient(180deg,#fff,#eef5f1);box-shadow:inset 0 0 0 1px #ffffffd9,0 2px 5px #16362633;transform:translate3d(0,-50%,0);transition:transform .2s ease}
html body .card-share-weight-switch input[role=switch]:checked{background:linear-gradient(180deg,#3d9572e8,var(--accent,#286a51));box-shadow:inset 0 0 0 1px #1b563666,inset 0 1px 3px #fff4,0 1px 0 #fff9}
html body .card-share-weight-switch input[role=switch]:checked::after{transform:translate3d(20px,-50%,0)}
html body .card-share-weight-switch input[role=switch]:disabled{opacity:.5;cursor:default}
html body .card-share-weight-switch input[role=switch]:focus-visible{outline:3px solid var(--accent,#286a51);outline-offset:3px}
@media(prefers-reduced-motion:reduce){html body .card-share-weight-switch input[role=switch],html body .card-share-weight-switch input[role=switch]::after{transition:none}}


@media(max-width:850px){#cardSelectionBar:has([data-selection-stone]){flex-wrap:wrap;justify-content:center}#cardSelectionBar:has([data-selection-stone]) .card-selection-count{flex:0 0 100%;box-sizing:border-box;text-align:center}#cardSelectionBar:has([data-selection-stone]) .card-selection-count small{display:inline;margin:0 0 0 6px}}
