/* Catalogue panoramique : responsive layout, real catalog and existing sales flow. */
.returns-total { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid var(--line); }
.returns-total strong { font-size:20px; font-variant-numeric:tabular-nums; }
.returns-quantity input { min-height:44px; }
.returns-form .button { min-height:44px; white-space:normal; }
.panoramic-pos .cashback-shortcut { grid-column:1/-1; display:flex; justify-content:space-between; align-items:center; padding:8px 12px; }
.panoramic-pos .cashback-shortcut small { color:var(--muted); font-size:12px; font-weight:500; }
.cashback-fields { display:grid; gap:8px; margin:10px 0 14px; }
.cashback-fields input { min-height:44px; max-width:180px; padding:6px 10px; border:1px solid var(--line); border-radius:7px; background:var(--surface); color:var(--ink); }
.cashback-fields .muted { font-size:14px; }
@media(min-width:1100px) and (max-height:900px) {
 .panoramic-pos .selected-product-visual { height:76px; width:80px; }
 .panoramic-pos .selected-product-body { grid-template-columns:80px minmax(0,1fr); }
 .panoramic-pos .selected-product-copy { gap:3px; }
 .panoramic-pos .selected-product-heading { margin-bottom:3px; }
}
:root { --pos-topbar-height:64px; --catalog-columns:8; --catalog-line-columns:3; --catalog-rows:5; --catalog-card-height:156px; --catalog-row-height:70px; --pos-product-font:14px; --pos-touch-size:44px; }
.panoramic-pos .topbar { min-height:64px; padding:6px 12px; gap:18px; z-index:20; background:var(--surface); color:var(--ink); border-bottom:1px solid var(--line); }
.panoramic-pos .brand img { height:46px; }
.panoramic-pos .brand small { display:none; }
.panoramic-pos .main-nav { flex-wrap:wrap; gap:4px; }
.panoramic-pos .nav-button { min-height:44px; padding:7px 10px; color:var(--ink); font-size:14px; white-space:nowrap; }
.panoramic-pos .nav-button:hover,.panoramic-pos .nav-button[aria-current="page"] { color:var(--brand-hover); background:var(--canvas); border-color:var(--line); }
.panoramic-pos .topbar-tools { gap:12px; }
.panoramic-pos .connection { color:var(--muted); font-size:13px; }
.panoramic-pos .store-control select { max-width:185px; min-height:44px; color:var(--ink); background:var(--canvas); border-color:var(--line); font-size:14px; }
.panoramic-pos .profile summary { width:44px; height:44px; color:var(--ink); background:var(--canvas); border-color:var(--line); }
.panoramic-pos .profile-menu { z-index:30; }
.panoramic-pos .workspace { width:100%; max-width:none; margin:0; padding:10px; gap:10px; grid-template-columns:minmax(0,1fr) clamp(318px,18.5vw,460px); align-items:stretch; min-height:0; }
.panoramic-pos .catalog-panel { min-width:0; min-height:0; display:flex; flex-direction:column; gap:7px; }
.panoramic-pos .catalog-heading { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.panoramic-pos .panorama-toolbar { display:grid; grid-template-columns:minmax(200px,1fr) auto minmax(440px,.82fr); gap:9px; align-items:center; flex:none; }
.panoramic-pos #search-form { margin:0; min-width:0; }
.panoramic-pos #search { min-height:60px; font-size:15px; }
.panoramic-pos .catalog-display-tools { display:flex; align-items:center; gap:6px; }
.panoramic-pos #filter-availability { min-width:120px; max-width:150px; min-height:44px; font-size:13px; color:var(--ink); background:var(--surface); }
.panoramic-pos .catalog-view-switch { display:flex; gap:4px; }
.panoramic-pos .catalog-view-switch button { display:flex; align-items:center; justify-content:center; gap:6px; min-height:44px; min-width:76px; padding:7px 8px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--surface); font-size:14px; }
.panoramic-pos .catalog-view-switch button span { font-size:20px; }
.panoramic-pos .catalog-view-switch button[aria-pressed="true"] { border-color:var(--brand); background:var(--canvas); color:var(--brand-hover); }
.panoramic-pos .catalog-controls { position:relative; z-index:10; margin:0; display:grid; grid-template-columns:1fr 1fr; gap:8px; min-width:0; }
.panoramic-pos .catalog-dropdown { min-width:0; }
.panoramic-pos .catalog-dropdown summary { display:flex; align-items:center; justify-content:space-between; gap:10px; height:60px; padding:8px 12px; border:1px solid var(--line); border-radius:10px; background:var(--surface); list-style:none; cursor:pointer; }
.panoramic-pos .catalog-dropdown summary::-webkit-details-marker { display:none; }
.panoramic-pos .catalog-dropdown summary > span:first-child { display:grid; gap:3px; min-width:0; }
.panoramic-pos .catalog-dropdown summary small { color:var(--muted); font-size:12px; }
.panoramic-pos .catalog-dropdown summary strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
.panoramic-pos .menu-chevron { width:8px; height:8px; border-right:2px solid; border-bottom:2px solid; transform:rotate(45deg); flex:none; margin:0 3px 5px; }
.panoramic-pos .catalog-dropdown[open] summary { border-color:var(--brand); }
.panoramic-pos .catalog-dropdown[open] .menu-chevron { transform:rotate(225deg); margin-block:5px 0; }
.panoramic-pos .taxonomy-menu { position:absolute; top:68px; right:0; width:max(100%,min(880px,calc(100vw - 36px))); max-width:calc(100vw - 36px); padding:14px; border:1px solid var(--line); border-radius:12px; background:var(--surface); box-shadow:0 12px 32px #17283d33; max-height:calc(100dvh - var(--pos-topbar-height) - 100px); overflow:auto; }
.panoramic-pos .taxonomy-menu > strong { display:block; margin-bottom:10px; font-size:15px; }
.panoramic-pos .taxonomy-choices { display:grid; grid-template-columns:repeat(auto-fit,minmax(175px,1fr)); gap:8px; }
.panoramic-pos .taxonomy-choice { display:flex; align-items:center; gap:8px; justify-content:space-between; min-height:64px; min-width:0; padding:10px 12px; color:var(--ink); background:var(--canvas); border:1px solid var(--line); border-radius:9px; text-align:left; font-size:14px; overflow-wrap:anywhere; }
.panoramic-pos .taxonomy-choice[aria-pressed="true"] { color:var(--brand-hover); border-color:var(--brand); }
.panoramic-pos .taxonomy-choice small { color:var(--muted); font-size:12px; white-space:nowrap; }
.panoramic-pos .taxonomy-choice.is-child { padding-left:24px; }
.panoramic-pos .taxonomy-choice.is-child span::before { content:'↳ '; }
.panoramic-pos .results-head { min-height:30px; margin:0; align-items:center; flex:none; }
.panoramic-pos .results-head h2 { font-size:15px; letter-spacing:0; }
.panoramic-pos .results-head .muted { font-size:12px; }
.panoramic-pos #catalog-error { margin:0; flex:none; font-size:14px; }
.panoramic-pos .catalog-content { flex:1; min-height:0; min-width:0; }
.panoramic-pos .product-grid { display:grid; grid-template-columns:repeat(var(--catalog-columns),minmax(0,1fr)); gap:6px; align-content:start; }
.panoramic-pos .pos-product-entry { position:relative; height:var(--catalog-card-height); display:grid; grid-template-rows:minmax(0,1fr) 25px calc(var(--pos-touch-size) + 6px); border-radius:9px; box-shadow:none; }
.panoramic-pos .pos-product-entry.is-selected { border-color:var(--brand); box-shadow:inset 0 0 0 1px var(--brand); }
.panoramic-pos .product { display:flex; flex-direction:row; align-items:center; gap:6px; width:100%; height:100%; min-height:0; padding:7px 42px 3px 6px; }
.panoramic-pos .product-visual { width:42px; height:48px; flex:0 0 42px; border:0; border-radius:5px; background:#fff; }
.panoramic-pos .product-visual img { padding:0; mix-blend-mode:normal; }
.panoramic-pos .product-info { display:flex; flex-direction:column; justify-content:center; gap:3px; padding:0; min-width:0; overflow:hidden; }
.panoramic-pos .product-name { font-size:var(--pos-product-font); line-height:1.25; max-height:2.5em; font-weight:600; }
.panoramic-pos .product-code { font-size:11px; font-weight:400; letter-spacing:0; }
.panoramic-pos .product-details-button { position:absolute; top:4px; right:2px; width:38px; height:44px; display:grid; place-items:center; border:0; border-radius:7px; background:transparent; color:var(--muted); font-size:21px; text-decoration:none; padding:0; }
.panoramic-pos .product-details-button:hover { color:var(--brand-hover); background:var(--canvas); }
.panoramic-pos .product-price-stock { display:flex; align-items:center; justify-content:space-between; gap:4px; padding:0 6px; min-width:0; }
.panoramic-pos .product-price { display:flex; align-items:center; gap:3px; font-size:13px; font-weight:600; white-space:nowrap; }
.panoramic-pos .product-price-caption { color:var(--muted); font-size:10px; font-weight:400; }
.panoramic-pos .stock-label { background:transparent; padding:0; font-size:11px; font-weight:500; max-width:100%; overflow:hidden; text-overflow:ellipsis; }
.panoramic-pos .stock-label[data-level="available"] { background:transparent; color:var(--success); }
.panoramic-pos .stock-label[data-level="low"] { background:transparent; color:var(--warning); }
.panoramic-pos .stock-label[data-level="empty"] { background:transparent; color:var(--brand-hover); }
.panoramic-pos .catalog-quantity { display:grid; grid-template-columns:var(--pos-touch-size) minmax(30px,1fr) var(--pos-touch-size); gap:3px; padding:0 5px 5px; min-width:0; }
.panoramic-pos .catalog-quantity button,.panoramic-pos .catalog-quantity input { width:100%; min-width:0; min-height:var(--pos-touch-size); padding:3px; border:1px solid var(--line); border-radius:6px; background:var(--surface); color:var(--ink); text-align:center; }
.panoramic-pos .catalog-quantity button { font-size:20px; }
.panoramic-pos .catalog-quantity input { appearance:textfield; -moz-appearance:textfield; font-variant-numeric:tabular-nums; font-size:15px; }
.panoramic-pos .catalog-quantity input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.panoramic-pos .catalog-quantity button:hover:enabled { color:var(--brand-hover); border-color:var(--brand); }
.panoramic-pos .product-grid[data-layout="lines"] { grid-template-columns:repeat(var(--catalog-line-columns),minmax(0,1fr)); grid-auto-flow:column; grid-template-rows:repeat(var(--catalog-rows),var(--catalog-row-height)); }
.panoramic-pos .product-grid[data-layout="lines"] .pos-product-entry { height:var(--catalog-row-height); grid-template-columns:minmax(0,1fr) 92px 138px 40px; grid-template-rows:minmax(0,1fr); align-items:center; padding:0 3px; }
.panoramic-pos .product-grid[data-layout="lines"] .product { padding:4px; }
.panoramic-pos .product-grid[data-layout="lines"] .product-name { font-size:13px; }
.panoramic-pos .product-grid[data-layout="lines"] .product-price-stock { display:grid; justify-content:end; gap:4px; padding:0 5px 0 0; }
.panoramic-pos .product-grid[data-layout="lines"] .product-price { justify-content:end; }
.panoramic-pos .product-grid[data-layout="lines"] .product-price-caption { display:none; }
.panoramic-pos .product-grid[data-layout="lines"] .catalog-quantity { padding:0; }
.panoramic-pos .product-grid[data-layout="lines"] .product-details-button { position:static; grid-column:4; grid-row:1; }
.panoramic-pos .product-grid[data-layout="cards"] .pos-product-entry { grid-template-columns:minmax(0,1fr) 44px; }
.panoramic-pos .product-grid[data-layout="cards"] .product { grid-column:1/-1; padding-right:6px; }
.panoramic-pos .product-grid[data-layout="cards"] .product-price-stock { grid-column:1/-1; }
.panoramic-pos .product-grid[data-layout="cards"] .catalog-quantity { grid-column:1; grid-row:3; }
.panoramic-pos .product-grid[data-layout="cards"] .product-details-button { position:static; grid-column:2; grid-row:3; width:44px; height:44px; margin-bottom:5px; }
.panoramic-pos .catalog-footer { min-height:46px; margin:0; gap:10px; flex:none; font-size:12px; align-items:center; }
.panoramic-pos .catalog-pagination { display:flex; align-items:center; justify-content:end; gap:6px; margin-left:auto; }
.panoramic-pos .catalog-pagination .button { min-height:44px; min-width:44px; padding:4px; font-size:25px; }
.panoramic-pos #catalog-page { min-width:85px; text-align:right; font-size:12px; }
.panoramic-pos .ticket-panel { position:static; top:auto; display:flex; flex-direction:column; min-height:0; border-radius:11px; overflow:hidden; box-shadow:none; }
.panoramic-pos .selected-product { flex:none; padding:10px 11px 8px; background:var(--canvas); border-bottom:1px solid var(--line); }
.panoramic-pos .selected-product-heading { display:flex; align-items:center; justify-content:space-between; gap:5px; font-size:12px; color:var(--muted); margin-bottom:6px; }
.panoramic-pos .selected-product-heading > span { font-size:11px; }
.panoramic-pos .selected-product-body { display:grid; grid-template-columns:112px minmax(0,1fr); gap:10px; align-items:center; }
.panoramic-pos .selected-product-visual { width:112px; height:114px; background:#fff; display:grid; place-items:center; border-radius:6px; overflow:hidden; }
.panoramic-pos .selected-product-visual img { width:100%; height:100%; object-fit:contain; }
.panoramic-pos .selected-product-copy { display:grid; gap:5px; min-width:0; }
.panoramic-pos .selected-product-copy > strong { font-size:14px; font-weight:600; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.panoramic-pos .selected-product-copy > span { font-size:14px; }
.panoramic-pos .selected-product-copy small { font-size:11px; color:var(--muted); }
.panoramic-pos .selected-product-footer { display:flex; align-items:center; justify-content:space-between; gap:5px; margin-top:6px; }
.panoramic-pos .selected-product-footer small { min-width:0; font-size:11px; color:var(--muted); }
.panoramic-pos .selected-product-footer .button { min-height:44px; padding:5px 8px; font-size:12px; font-weight:500; }
.panoramic-pos .ticket-header { order:2; padding:7px 11px; align-items:center; border-bottom:1px solid var(--line); flex:none; }
.panoramic-pos .ticket-header h2 { font-size:14px; letter-spacing:0; }
.panoramic-pos .ticket-header p { margin-top:2px; font-size:11px; }
.panoramic-pos .ticket-header .link-button { font-size:12px; min-height:44px; padding:6px; }
.panoramic-pos .customer-section { order:1; padding:8px 11px; background:var(--surface); flex:none; }
.panoramic-pos .ticket-customer strong { font-size:15px; }
.panoramic-pos .ticket-customer small { font-size:11px; }
.panoramic-pos .ticket-customer-label { font-size:11px; }
.panoramic-pos .ticket-customer-actions { display:flex; gap:5px; }
.panoramic-pos .ticket-customer-actions .link-button { font-size:12px; min-height:44px; padding:5px 8px; border:1px solid var(--line); border-radius:7px; text-decoration:none; }
.panoramic-pos .cart { order:3; flex:1; min-height:100px; max-height:none; overflow:auto; }
.panoramic-pos .cart-line { padding:8px 11px; gap:4px 8px; }
.panoramic-pos .cart-name { font-size:13px; }
.panoramic-pos .cart-code { font-size:11px; }
.panoramic-pos .cart-line-price { font-size:13px; }
.panoramic-pos .quantity button { width:44px; height:44px; }
.panoramic-pos .remove-line { min-height:44px; }
.panoramic-pos .empty-cart { min-height:170px; padding:15px; font-size:14px; }
.panoramic-pos #cart-backorders { order:4; margin:0 10px 5px; font-size:12px; max-height:120px; overflow:auto; }
.panoramic-pos .ticket-footer { order:5; flex:none; padding:9px 10px; gap:7px; background:var(--canvas); }
.panoramic-pos .total-row strong { font-size:25px; letter-spacing:0; }
.panoramic-pos .subtotal-row { font-size:12px; }
.panoramic-pos .document-shortcuts .button,.panoramic-pos .payment-shortcuts .button { font-size:13px; min-height:48px; font-weight:600; }
.panoramic-pos #checkout-invoice { font-size:12px; }
.panoramic-pos .ticket-help { font-size:11px; }
.panoramic-pos .mobile-ticket { display:none !important; }
.panoramic-pos .stock-view { grid-template-columns:minmax(0,1fr); }
.panoramic-pos .stock-view .catalog-view-switch { display:none; }
.panoramic-pos .stock-view .catalog-content { overflow:auto; }
.panoramic-pos .stock-view .stock-list { overflow:visible; }
.panoramic-pos .pos-product-photo { display:block; max-width:min(100%,230px); max-height:170px; object-fit:contain; margin:0 auto 12px; }
.panoramic-pos .customer-history details { margin-block:6px; }
.panoramic-pos .customer-history summary { cursor:pointer; font-weight:600; }
:root[data-om-theme="night"] .panoramic-pos .product-visual,:root[data-om-theme="night"] .panoramic-pos .selected-product-visual { background:#fff; }
@media(min-width:1100px) {
 .panoramic-pos:has(.workspace:not([hidden])) { display:flex; flex-direction:column; height:100dvh; overflow:hidden; }
 .panoramic-pos .topbar { flex:none; }
 .panoramic-pos .workspace { flex:1; overflow:visible; }
}
@media(min-width:1921px) {
 .panoramic-pos .product-grid[data-layout="lines"] .pos-product-entry { grid-template-columns:minmax(0,1fr) 105px 165px 44px; }
 .panoramic-pos .product-grid[data-layout="lines"] .product-name { font-size:var(--pos-product-font); }
 .panoramic-pos .product-visual { width:52px; height:58px; flex-basis:52px; }
 .panoramic-pos .selected-product-body { grid-template-columns:140px minmax(0,1fr); }
 .panoramic-pos .selected-product-visual { width:140px; height:145px; }
 .panoramic-pos .product-price { font-size:15px; }
}
@media(max-width:1690px) {
 .panoramic-pos .panorama-toolbar { grid-template-columns:minmax(0,1fr) auto; }
 .panoramic-pos .catalog-controls { grid-column:1/-1; }
 .panoramic-pos .catalog-dropdown summary { height:54px; }
 .panoramic-pos .taxonomy-menu { top:62px; right:auto; left:0; width:100%; }
}
@media(max-width:1280px) {
 .panoramic-pos .topbar { flex-wrap:wrap; gap:5px 12px; }
 .panoramic-pos .main-nav { order:3; width:100%; flex-basis:100%; }
 .panoramic-pos .nav-button { min-height:44px; padding-inline:9px; }
 .panoramic-pos .store-control select { max-width:200px; }
}
@media(max-width:1099px) {
 .panoramic-pos .workspace { min-height:calc(100dvh - var(--pos-topbar-height)); }
 .panoramic-pos .catalog-content { min-height:480px; flex:none; }
 .panoramic-pos .ticket-panel { position:sticky; top:10px; max-height:calc(100dvh - 20px); align-self:start; }
 .panoramic-pos .cart { min-height:80px; max-height:300px; }
 .panoramic-pos .catalog-panel { gap:8px; }
 .panoramic-pos .panorama-toolbar { display:flex; flex-wrap:wrap; }
 .panoramic-pos #search-form { width:100%; }
 .panoramic-pos .catalog-controls { width:100%; }
 .panoramic-pos .catalog-display-tools { flex-wrap:wrap; }
 .panoramic-pos .catalog-footer { flex-wrap:wrap; }
 .panoramic-pos .product-grid[data-layout="lines"] .pos-product-entry { grid-template-columns:minmax(0,1fr) 80px 134px 38px; }
}
@media(max-width:760px) {
 .panoramic-pos .workspace { display:flex; flex-direction:column; padding:8px; gap:12px; }
 .panoramic-pos .ticket-panel { position:static; max-height:none; }
 .panoramic-pos .catalog-content { min-height:480px; }
 .panoramic-pos .catalog-panel { width:100%; }
 .panoramic-pos .cart { max-height:400px; }
 .panoramic-pos .taxonomy-menu { max-width:100%; }
 .panoramic-pos .taxonomy-choices { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .panoramic-pos .taxonomy-choice { font-size:14px; padding:8px; }
 .panoramic-pos .catalog-dropdown summary { padding:6px 8px; }
 .panoramic-pos .catalog-dropdown summary strong { font-size:13px; }
 .panoramic-pos .product-grid[data-layout="lines"] .pos-product-entry { grid-template-columns:minmax(0,1fr) 67px 126px 34px; }
 .panoramic-pos .product-grid[data-layout="lines"] .product-visual { display:none; }
 .panoramic-pos .product-grid[data-layout="lines"] .product-code { display:none; }
 .panoramic-pos .product-grid[data-layout="lines"] .product-details-button { width:34px; }
 .panoramic-pos .product-grid[data-layout="lines"] .catalog-quantity { grid-template-columns:44px minmax(24px,1fr) 44px; }
 .panoramic-pos .results-head .muted { font-size:11px; }
 .panoramic-pos .catalog-footer > span { width:100%; }
}

@media(min-width:1100px) and (max-height:900px) {
 .panoramic-pos .selected-product { padding:6px 9px; }
 .panoramic-pos .selected-product-visual { height:64px; width:64px; }
 .panoramic-pos .selected-product-body { grid-template-columns:64px minmax(0,1fr); }
 .panoramic-pos .selected-product-copy { gap:2px; }
 .panoramic-pos .selected-product-copy > strong { font-size:12px; -webkit-line-clamp:2; }
 .panoramic-pos #selected-product-reorder { display:none; }
 .panoramic-pos .selected-product-heading { margin-bottom:3px; }
 .panoramic-pos .customer-section { padding:6px 9px; }
 .panoramic-pos .ticket-header { padding:5px 9px; }
 .panoramic-pos .cart { min-height:40px; }
 .panoramic-pos .ticket-footer { gap:5px; padding:7px 9px; }
}

.panoramic-pos .returns-dialog { width:min(760px,calc(100vw - 24px)); }
.panoramic-pos .returns-quantity input { min-height:44px; font-size:16px; }
.panoramic-pos .returns-total { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid var(--line); }
.panoramic-pos .returns-total strong { font-size:22px; font-variant-numeric:tabular-nums; }
.panoramic-pos #returns-submit { min-height:48px; white-space:normal; }
.panoramic-pos .returns-record-actions .button { min-height:44px; }
