.shop-work,.shop-dialog {--shop-border:#d5e2d8;--shop-tint:#f0f5ed;--shop-deep:#164d44;--shop-text:#1e3732;--shop-muted:#587066;color:var(--shop-text)}
.shop-work {display:grid;gap:1rem}
.shop-header {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem 1.2rem;padding:1.45rem 1.65rem;border-radius:10px;color:#f1f9ee;background:linear-gradient(110deg,#0c534c,#16453a);border:1px solid #174d42}
.shop-header h1 {color:#fffaf1;font-size:clamp(1.65rem,3vw,2.38rem);line-height:1.34;margin:.15rem 0}
.shop-header p:not(.shop-overline){font-size:.9rem;color:#d5e6d8}
.shop-overline,.shop-product-id {font:600 .76rem/1.5 var(--mono,var(--sans));letter-spacing:.045em;color:#6c7c70;overflow-wrap:anywhere}
.shop-header .shop-overline,.shop-summary .shop-overline {color:#e8ca87}
.shop-header-controls,.shop-toolbar,.shop-mini-actions,.shop-filters,.shop-sides,.shop-nav,.shop-block-head,.shop-controls,.shop-amount,.shop-line,.shop-line-controls,.shop-snap-line,.shop-request {display:flex;align-items:center}
.shop-header-controls,.shop-toolbar,.shop-mini-actions,.shop-filters,.shop-controls {gap:.46rem;flex-wrap:wrap}
.shop-sides {padding:.18rem;background:#143c36;border:1px solid #4a7464;border-radius:7px;gap:.1rem}
.shop-switch {background:transparent;border:1px solid transparent;border-radius:5px;padding:.30rem .68rem;color:var(--shop-muted);font-size:.85rem;font-weight:580;white-space:nowrap}
.shop-switch.is-current {color:#214f42;background:#e4ede1;border-color:#ccdbcd;font-weight:680}
.shop-sides .shop-switch {color:#dceadd}
.shop-sides .shop-switch.is-current {background:#edf2e6;color:#234b3d}
.shop-role {font-size:.86rem;border:1px solid #6b8d79;padding:.25rem .7rem;border-radius:99px}
.shop-nav {border-bottom:1px solid var(--shop-border);overflow:auto;scrollbar-width:thin;gap:.3rem}
.shop-navbtn {background:transparent;color:var(--shop-muted);position:relative;border:0;border-radius:0;flex:none;display:inline-flex;align-items:center;gap:.4rem;padding:.68rem .84rem;font-weight:620;font-size:.93rem}
.shop-navbtn.is-current {color:var(--teal);box-shadow:inset 0 -3px var(--teal)}
.shop-navbtn span {color:#375949;border-radius:99px;padding:0 .38rem;min-width:1.2rem;font-size:.77rem;background:#dfeadf}
.shop-columns {display:grid;grid-template-columns:minmax(0,1fr) minmax(235px,28%);gap:1rem;align-items:start}
.shop-main,.shop-catalogue {min-width:0}
.shop-catalogue,.shop-summary,.shop-basket,.shop-snapshot,.shop-request,.shop-product {background:var(--paper,#fffefa);border:1px solid var(--shop-border);border-radius:9px}
.shop-catalogue {padding:1.1rem}
.shop-block-head {justify-content:space-between;align-items:center;gap:.5rem 1rem;flex-wrap:wrap;margin-bottom:.8rem}
.shop-controls {justify-content:space-between;margin-bottom:.78rem;gap:.7rem}
.shop-search {display:block;flex:1 1 205px}
.shop-search input {display:block;width:100%;background:#fff;border:1px solid #c4d6c8;border-radius:6px;min-height:38px;padding:.46rem .68rem;font-size:.88rem;color:var(--shop-text)}
.shop-filters {padding:.15rem;border:1px solid var(--shop-border);background:#f8faf6;border-radius:7px;gap:.1rem}
.shop-help {color:var(--shop-muted);font-size:.875rem;line-height:1.66;overflow-wrap:anywhere}
.shop-catalogue>.shop-help {margin-bottom:.75rem}
.shop-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:.72rem}
.shop-product {overflow:hidden;display:flex;flex-direction:column;min-width:0}
.shop-picture {position:relative;aspect-ratio:1.75 / 1;overflow:hidden;border-bottom:1px solid var(--shop-border);background:#e8eee4}
.shop-picture img,.shop-image-fallback {width:100%;height:100%;display:block;object-fit:cover}
.shop-image-fallback {display:grid;place-items:center;background:linear-gradient(135deg,#dce9d4,#eef2e8);color:#648673}
.shop-image-fallback svg {width:42px;height:42px}
.shop-tag {position:absolute;bottom:.45rem;left:.45rem;padding:.13rem .45rem;font-size:.76rem;font-weight:650;line-height:1.5;color:#27473c;background:#f8fbf1ed;border-radius:4px;box-shadow:0 0 0 1px #ffffff6b}
.shop-product-body {display:flex;flex-direction:column;align-items:flex-start;gap:.22rem;padding:.68rem;flex:1;min-width:0}
.shop-product h3 {font-size:1.01rem;overflow-wrap:anywhere;margin:0}
.shop-price {color:#16493f;font-weight:750;font-size:1.05rem;font-variant-numeric:tabular-nums}
.shop-price small,.shop-stock,.shop-snap-line small,.shop-request small,.shop-line-main small {color:var(--shop-muted);font-weight:450;font-size:.8rem;line-height:1.45;display:block}
.shop-price small {display:inline}
.shop-badge {padding:.12rem .39rem;font-size:.76rem;line-height:1.4;border-radius:4px;background:#f2eee1;color:#745e29;margin:.12rem 0}
.shop-badge.available {background:#e8f1e5;color:#42664d}
.shop-product-action {margin-top:auto;padding-top:.22rem;align-self:stretch}
.shop-product-action .btn {width:100%;min-height:35px;padding:.30rem .42rem;font-size:.84rem}
.shop-product-action .btn svg {width:15px;height:15px}
.shop-product-id {font-size:.75rem}
.shop-summary {position:sticky;top:1rem;overflow:hidden}
.shop-summary-intro {padding:.9rem 1rem;color:#f7faee;background:#194b41}
.shop-summary-intro h2 {color:#fffdf5;font-size:1.19rem}
.shop-totals {padding:.58rem 1rem}
.shop-amount {justify-content:space-between;gap:.75rem;padding:.44rem 0;font-size:.90rem;border-bottom:1px solid var(--shop-border)}
.shop-amount:last-child {border-bottom:0}
.shop-amount strong,.shop-line-value strong,.shop-snap-line b {font-variant-numeric:tabular-nums}
.shop-amount span {color:var(--shop-muted)}
.shop-amount.shop-positive strong {color:#2b6749}
.shop-amount.shop-warning strong {color:#935124}
.shop-summary>.shop-help,.shop-summary-cta {margin:0 1rem .85rem}
.shop-summary-cta .btn {width:100%}
.shop-empty {padding:1.2rem;border-radius:7px;background:var(--shop-tint);border:1px dashed #c5d4c4}
.shop-empty p {font-size:.9rem;color:var(--shop-muted);margin:.28rem 0 .55rem}
.shop-basket,.shop-snapshot {padding:.85rem;margin-top:.65rem}
.shop-basket .shop-block-head {margin-bottom:.28rem}
.shop-line,.shop-snap-line,.shop-request {justify-content:space-between;gap:.65rem;padding:.65rem 0;border-bottom:1px solid var(--shop-border)}
.shop-line:last-child,.shop-snap-line:last-child {border-bottom:0}
.shop-line-main,.shop-line-value,.shop-snap-line>div {min-width:0;overflow-wrap:anywhere}
.shop-line-main {flex:1}
.shop-line-main strong {color:var(--shop-text)}
.shop-line-controls {gap:.14rem}
.shop-line-controls input {width:4.25rem;min-height:32px;padding:.2rem .25rem;text-align:center;border:1px solid #b6cdbb;background:white;border-radius:4px;appearance:textfield}
.shop-line-controls input::-webkit-inner-spin-button {appearance:none}
.btn.shop-square {width:32px;min-height:32px;padding:.12rem;border:1px solid #c5d6c6;background:#f0f5ed;color:#315745}
.shop-mini-actions .btn,.btn.shop-text {min-height:28px;border:0;background:transparent;font-size:.84rem;color:#2a6150;padding:.1rem .35rem}
.btn.shop-text:hover {text-decoration:underline}
.shop-line-value,.shop-snap-line>div:last-child {text-align:right}
.shop-line-value strong,.shop-line-value .btn,.shop-snap-line b {display:block}
.shop-line-value .btn {margin-left:auto}
.shop-request {padding:.78rem;margin-block:.55rem;border:1px solid var(--shop-border)}
.shop-request h3,.shop-snapshot h3 {font-size:1rem}
.shop-request p,.shop-dialog {font-size:.94rem}
.shop-settlement {border-radius:6px;border:1px solid #d0dfd0;background:#f2f6ec;padding:.65rem .8rem;margin-top:.75rem}
.shop-settlement p {color:#365a42;margin-top:.4rem;font-weight:650}
.shop-dialog>.shop-help {margin:.45rem 0}
html:lang(km) .shop-work *,html:lang(km) .shop-dialog * {letter-spacing:normal}
@media (min-width:1300px){.shop-grid {grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:920px){.shop-columns {grid-template-columns:minmax(0,1fr) 237px}.shop-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.shop-header {padding:1rem}.shop-columns {grid-template-columns:1fr}.shop-summary {position:static}.shop-summary .shop-totals {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1rem}.shop-grid {grid-template-columns:repeat(auto-fit,minmax(min(165px,100%),1fr))}.shop-request {flex-wrap:wrap}}
@media (max-width:500px){.shop-work {gap:.62rem}.shop-catalogue {padding:.68rem}.shop-header {padding:.8rem}.shop-header-controls {width:100%;justify-content:space-between}.shop-navbtn {padding:.5rem .58rem;font-size:.86rem}.shop-controls {align-items:stretch}.shop-filters {width:100%;overflow:auto;flex-wrap:nowrap;scrollbar-width:thin}.shop-filters .shop-switch {font-size:.77rem;padding:.26rem .45rem}.shop-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}.shop-product-body {padding:.5rem}.shop-product-action .btn {font-size:.79rem}.shop-picture {aspect-ratio:1.5 / 1}.shop-line {flex-wrap:wrap}.shop-line-main {flex-basis:100%}.shop-snap-line {align-items:flex-start}.shop-amount {flex-wrap:wrap;gap:.1rem .50rem}.shop-basket,.shop-snapshot {padding:.65rem}.shop-header h1 {font-size:1.56rem}}
@media (max-width:340px){.shop-grid {grid-template-columns:1fr}.shop-summary .shop-totals {grid-template-columns:1fr}}
#bulk-library-form > p {line-height:1.65;color:var(--muted,#425a66)} #bulk-library-form fieldset{border:1px solid #c9dbe0;border-radius:12px;padding:.8rem;margin:1rem 0} #bulk-library-form legend{padding:0 .45rem;font-weight:700}.ref-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr));gap:.5rem}.ref-item{display:flex;align-items:start;gap:.55rem;padding:.65rem;background:#f1f7f8;border-radius:6px}.ref-item input{accent-color:#075e65;margin-top:.25rem}.ref-item small{display:block;color:#415e68;font-size:.8rem;line-height:1.5}.ref-item:has(input:disabled){background:#f5f5f5}
