/* Caisse tactile : trois zones. Styles limités à la caisse, gestion inchangée. */
.sale-workspace{grid-template-columns:176px minmax(0,1fr) 346px;height:calc(100dvh - 80px);min-height:0}
.caisse-categories{min-height:0;overflow:hidden;display:flex;flex-direction:column;background:#fafbf8;border-right:1px solid var(--line);padding:20px 12px;gap:18px}
.caisse-categories h2,.shop-heading h1,.cloud-basket-heading h2{font-size:25px;line-height:1.2;letter-spacing:-.035em;margin:0;font-weight:750}
.caisse-categories h2{padding:0 5px;font-size:21px}
.caisse-categories .cloud-categories{display:flex;flex-direction:column;overflow-x:hidden;overflow-y:auto;gap:9px;flex:1;min-height:0;margin:0;padding:3px}
.caisse-categories .cloud-categories button{flex-shrink:0;min-height:62px;padding:12px;white-space:normal;text-align:left;border:1px solid transparent;border-radius:12px;font-size:14px;gap:11px}
.caisse-categories .cloud-categories button>svg{width:25px;height:25px}
.caisse-categories .cloud-categories button[aria-pressed=true]{background:#18513b;color:white;border-color:#18513b;box-shadow:0 2px 5px #12342520;outline:0}
.caisse-categories .cloud-categories button[aria-pressed=true]>svg{color:white}
.cloud-shop{padding:20px 18px 0;gap:0}.shop-heading{margin-bottom:12px;gap:12px;flex-wrap:nowrap}.shop-heading .eyebrow{display:none}.cloud-search-label{width:min(60%,330px)}
.cloud-shortcuts{gap:10px;margin-bottom:14px}.cloud-shortcuts button{min-height:64px;padding:10px 12px;gap:10px}.cloud-shortcuts small{display:none}.cloud-shortcuts strong{font-size:15px}.shortcut-icon{width:30px;height:30px}
.cloud-shop>.cloud-grid{display:block;padding:0 5px 16px 0;overflow-y:auto;flex:1;min-height:0}
.catalogue-section{margin-bottom:20px}.catalogue-section-title{display:flex;align-items:center;gap:12px;background:var(--tint);color:#203b30;border-radius:12px;padding:12px 16px;margin-bottom:10px;font-size:22px;min-height:52px}.catalogue-section-title svg{color:var(--accent);width:27px;height:27px}
.catalogue-section-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.resource-product-row{grid-column:1/-1;display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;align-items:center;background:var(--tint);padding:10px;border-radius:14px}.resource-product-row h3{font-size:18px;line-height:1.3;overflow-wrap:anywhere;padding:0 4px}
.resource-variants{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.cloud-product{min-height:136px;padding:12px;display:grid;grid-template-columns:1fr;grid-template-rows:30px auto auto auto;gap:3px;border-radius:12px;align-content:center;box-shadow:none}
.cloud-product .product-top{margin:0;min-height:30px}.product-top>svg{width:29px;height:29px;background:transparent;padding:0}.cloud-product>strong{font-size:16px;line-height:1.25;margin:3px 0 0;padding-right:4px}.product-format{font-size:13px;line-height:1.3;color:#6b7d72}.product-bottom{border:0;padding:4px 0 0;margin:0}.product-bottom>b{font-size:19px;color:#173f31}.cloud-badge{width:27px;height:27px;border-radius:50%;font-size:14px;right:8px;top:8px;background:#d6edc9;color:#174930}
.cloud-product.in-cart{border:2px solid #508565;padding:11px;background:#f3faef;box-shadow:none}.cloud-product:active{background:#d9edcf;transform:scale(.98)}.cloud-product.just-added{animation:added-feedback .18s ease-out}@keyframes added-feedback{from{box-shadow:inset 0 0 0 3px #78a45f;background:#d9edcf}to{box-shadow:inset 0 0 0 0 transparent}}
.cloud-basket{padding:20px 16px 14px}.cloud-basket-heading .eyebrow{display:none}.cloud-basket-heading{margin-bottom:16px}.cloud-basket-content{min-height:0;max-height:none;flex:1}.count-pill{margin-top:0}.tariff-control button{min-height:46px;font-size:14px}.cloud-line{padding:12px 0}.line-title{font-size:15px;gap:8px}.line-title strong{overflow-wrap:anywhere}.line-controls{gap:6px}.quantity-control button{min-height:46px;min-width:44px}.gift-button{padding:8px;font-size:12px}.cloud-checkout .total-row strong{font-size:32px}.cloud-checkout .checkout-button{min-height:56px;font-size:20px}.shop-footer{min-height:58px;gap:7px}.shop-footer>span{display:none}.attendance-shortcuts{margin:0;flex:1}.attendance-shortcuts button{padding:8px;font-size:12px;min-height:44px}
@media(min-width:1500px){.sale-workspace{grid-template-columns:200px minmax(0,1fr) 390px}.catalogue-section-items{grid-template-columns:repeat(4,minmax(0,1fr))}.resource-product-row{grid-template-columns:145px minmax(0,1fr)}.cloud-product{min-height:146px}.cloud-shop{padding:22px 22px 0}}
@media(max-width:1150px){.sale-workspace{grid-template-columns:150px minmax(0,1fr) 304px}.caisse-categories{padding:16px 8px}.caisse-categories h2{font-size:19px}.caisse-categories .cloud-categories button{font-size:13px;padding:10px 8px;gap:7px;min-height:58px}.cloud-shop{padding:16px 12px 0}.resource-product-row{grid-template-columns:1fr}.resource-product-row h3{font-size:16px}.cloud-basket{padding:16px 12px}.cloud-shortcuts strong{font-size:13px}.cloud-shortcuts button>b{font-size:14px}.shortcut-icon{display:none}.cloud-product{padding:10px}.cloud-product.in-cart{padding:9px}}
@media(max-width:900px){.sale-workspace{grid-template-columns:128px minmax(0,1fr) 280px}.catalogue-section-items{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-variants{grid-template-columns:repeat(2,minmax(0,1fr))}.cloud-shortcuts button{min-height:52px}.cloud-shortcuts button>svg:last-child{display:none}.shop-heading{flex-wrap:wrap}.cloud-search-label{width:100%}.cloud-basket-heading h2{font-size:23px}}
@media(max-width:650px){.sale-workspace{display:flex;height:auto}.caisse-categories{padding:12px;border-right:0}.caisse-categories .cloud-categories{flex-direction:row}.caisse-categories .cloud-categories button{min-width:125px}.cloud-shop{height:65dvh;min-height:400px}.cloud-basket{min-height:450px}.cloud-basket-content{min-height:180px;max-height:400px}.resource-variants{grid-template-columns:repeat(3,minmax(0,1fr))}}
html[data-theme=dark] .caisse-categories{background:#182f24}html[data-theme=dark] .resource-product-row,html[data-theme=dark] .catalogue-section-title{background:#294232;color:#e3ecdf}html[data-theme=dark] .product-bottom>b{color:#e3ecdf}html[data-theme=dark] .product-format{color:#b5c7ba}html[data-theme=dark] .cloud-product.in-cart{background:#304e37;border-color:#a9cd91}
@media(prefers-reduced-motion:reduce){.cloud-product.just-added{animation:none}.cloud-product:active{transform:none}}

.caisse-categories .cloud-categories button>span{min-width:0;overflow-wrap:anywhere}.caisse-categories .cloud-categories button>svg{flex-shrink:0}

.stock-warning:empty{display:none}.stock-warning{font-size:11px;line-height:1.3;color:#91500e}.basket-stock-warning{font-size:12px;padding:8px;background:#fff0d2;border-radius:8px;max-height:80px;overflow:auto}.cloud-product{grid-template-rows:30px auto auto auto auto}
#cloud-admin .refine-toolbar{position:sticky;top:0;z-index:3;background:#f4f7ef;padding:12px;border-bottom:1px solid #d7e2d4}#cloud-admin .refine-toolbar .manager-search{margin:0;max-width:320px}#cloud-admin #admin-editor form>.actions{position:sticky;bottom:0;background:#f4f7ef;padding:12px;z-index:4;box-shadow:0 -4px 12px #193e2212}html[data-theme=dark] #cloud-admin .refine-toolbar,html[data-theme=dark] #cloud-admin #admin-editor form>.actions{background:#203c2d}html[data-theme=dark] .basket-stock-warning{background:#553e20;color:#fff0d2}

#cloud-admin .order-save{position:sticky;bottom:12px;z-index:4;box-shadow:0 2px 12px #193e2230}
/* Nuances nocturnes : familles lisibles, actions en vert OBT. */
.split-payment-link{display:block;margin:12px auto;background:transparent!important;border:0;text-decoration:underline;text-underline-offset:3px;min-height:44px;font-size:14px;color:var(--muted)}
html[data-theme=dark]{--line:#48535a;background:#191f22}
html[data-theme=dark] body,html[data-theme=dark] #cloud-main,html[data-theme=dark] .cloud-shop{background:#191f22}
html[data-theme=dark] .tone-amber{--night-tint:#383022;--night-card:#302b23;--night-accent:#edc17a}
html[data-theme=dark] .tone-rose{--night-tint:#3c2935;--night-card:#32262e;--night-accent:#e3a1bc}
html[data-theme=dark] .tone-blue{--night-tint:#263943;--night-card:#233039;--night-accent:#9acde2}
html[data-theme=dark] .tone-purple{--night-tint:#352d43;--night-card:#2d2838;--night-accent:#c7adeb}
html[data-theme=dark] .tone-brown{--night-tint:#3d3028;--night-card:#332b26;--night-accent:#e5b78e}
html[data-theme=dark] .tone-olive{--night-tint:#323925;--night-card:#2b3125;--night-accent:#c3d590}
html[data-theme=dark] .resource-product-row,html[data-theme=dark] .catalogue-section-title{background:var(--night-tint,#29373a);color:#eef1ec}
html[data-theme=dark] .cloud-product{background:var(--night-card,#283236);border-color:#69706c;color:#eef1ec}
html[data-theme=dark] .cloud-product svg,html[data-theme=dark] .catalogue-section-title svg{color:var(--night-accent,#bdd6c9)}
html[data-theme=dark] .cloud-product.in-cart{background:var(--night-tint,#344039);border-color:#b4d999;box-shadow:inset 0 0 0 1px #b4d999}
html[data-theme=dark] .caisse-categories{background:#222b2b}
html[data-theme=dark] .caisse-categories .cloud-categories button{background:var(--night-tint,#2b3539);color:#edf0eb;border-color:#505c58}
html[data-theme=dark] .caisse-categories .cloud-categories button>svg{color:var(--night-accent,#c1d5cd)}
html[data-theme=dark] .caisse-categories .cloud-categories button[aria-pressed=true]{background:#31563f;border:2px solid #b4d999;color:#f3f8ec}
html[data-theme=dark] .caisse-categories .cloud-categories button[aria-pressed=true]>svg{color:#dcf1cb}
html[data-theme=dark] .cloud-basket{background:#263333;border-left:1px solid #667771}
html[data-theme=dark] .cloud-checkout{background:#2c3b39}
html[data-theme=dark] .stock-warning{color:#f4cc89}
html[data-theme=dark] .cloud-product:active{filter:brightness(1.2)}
html[data-theme=dark] #cloud-pos .cloud-product{background:var(--night-card,#283236);border-color:#69706c;color:#eef1ec}
html[data-theme=dark] #cloud-pos .cloud-product.in-cart{background:var(--night-tint,#344039);border-color:#b4d999;box-shadow:inset 0 0 0 1px #b4d999}
html[data-theme=dark] #cloud-pos .cloud-basket{background:#263333;border-left:1px solid #667771}

/* Compact cards: fixed corner icon and stable optional text slots. */
.cloud-product{min-height:148px;padding:8px;gap:2px;grid-template-rows:minmax(60px,1fr) minmax(20px,auto) minmax(15px,auto) 29px;align-content:stretch;text-align:center;box-shadow:0 2px 5px #173f3110}
.cloud-product .product-heading{display:flex;align-items:center;justify-content:center;gap:0;padding-top:36px;min-width:0}
.cloud-product .product-heading>strong{font-size:20px;line-height:24px;overflow-wrap:anywhere;min-width:0;text-align:center}
.cloud-product .product-icon-tile{position:absolute;top:6px;left:6px;display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--tint,#eef3e8);color:var(--accent,#597c61)}
.cloud-product .product-icon-tile>svg{width:28px;height:28px}
.cloud-product .cloud-badge{width:24px;height:24px;top:6px;right:6px;font-size:13px}
.cloud-product .product-format{align-self:start;font-size:15px;line-height:20px;color:#596f61}
.cloud-product .product-format.is-concealed{visibility:hidden}
.cloud-product .stock-warning{display:block;align-self:start;line-height:15px}
.cloud-product .stock-warning:empty{visibility:hidden}
.cloud-product .product-bottom{justify-content:center;align-self:end;padding:0;margin:0;line-height:29px}
html[data-theme=dark] .cloud-product .product-icon-tile{background:color-mix(in srgb,var(--night-accent,#bdd6c9) 15%,var(--night-card,#283236));color:var(--night-accent,#bdd6c9)}

.cloud-product.in-cart{padding:7px}
.cloud-product .product-bottom>b{font-size:24px;line-height:29px}
html[data-theme=dark] .cloud-product .product-format{color:#c1d0c5}
