button,a,input,select{-webkit-tap-highlight-color:transparent}button{touch-action:manipulation}.quick-scan{display:flex;gap:15px;margin-bottom:18px;align-items:center}.camera-launch{justify-content:center;gap:12px;min-height:54px}.camera-launch span{text-align:left}.camera-launch small{color:#ffffffb0;font-size:10px;margin-top:3px}.quick-modes{display:flex;padding:4px;background:var(--surface-2);border:1px solid var(--border-2);border-radius:10px;gap:4px}.mode-shortcut{background:transparent;color:var(--text-2);border-radius:7px;min-height:42px;padding:9px 17px;font-weight:600}.mode-shortcut.active{background:var(--accent-soft);color:var(--accent)}.live-scan{border-radius:10px;background:var(--surface-2);border:1px solid var(--border-2);padding:15px;margin-top:14px}.live-scan strong{display:block;font-size:14px}.live-scan small{margin-top:4px}.live-scan.error{border-color:var(--error)}.scan-backlog{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:14px;margin-top:12px;border-radius:9px;background:#f5a52415;font-size:12px}.agent small{line-height:1.6}.agent .printer-meta{margin-top:5px}.camera-dialog{padding:0;max-width:600px;width:calc(100% - 28px);overflow:hidden;border-radius:18px;max-height:96dvh;display:flex;flex-direction:column;background:var(--bg)}.camera-top{padding:20px;display:flex;justify-content:space-between;align-items:center}.camera-top .eyebrow{margin-bottom:6px}.camera-top h2{font-size:20px}.camera-top .icon-button{width:44px;height:44px;font-size:28px}.camera-settings{padding:0 20px 16px;display:grid;grid-template-columns:1.3fr 1fr;gap:12px}.camera-settings select{font-size:13px;min-height:44px;padding:10px}.camera-viewport{position:relative;background:#000;min-height:160px;aspect-ratio:4/3;flex-shrink:1;overflow:hidden}.camera-viewport video{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.camera-reticle{position:absolute;inset:26% 9%;border:2px solid #ffffffa0;border-radius:12px;box-shadow:0 0 0 200px #0005;pointer-events:none}.camera-reticle span{position:absolute;top:50%;height:2px;left:5%;right:5%;background:var(--accent);box-shadow:0 0 12px var(--accent)}.camera-aim{position:absolute;left:0;right:0;bottom:9px;text-align:center;font-size:11px;color:#fff;margin:0;text-shadow:0 1px 4px #000}.camera-feedback{padding:16px 20px 10px;min-height:92px}.camera-feedback strong{font-size:15px;display:block}.camera-feedback small{font-size:11px;margin-top:5px}.camera-feedback.error strong{color:var(--error)}.camera-controls{display:flex;gap:9px;flex-wrap:wrap;padding:8px 20px}.camera-controls button{min-height:44px;font-size:12px}.camera-privacy{font-size:10px;line-height:1.6;color:var(--text-3);margin:5px 20px 18px}.camera-dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}.camera-launch svg{flex-shrink:0}.status-dot.warning{background:var(--warning)}
@media(max-width:800px){html,body{overflow-x:hidden}input,select,textarea{font-size:16px!important}button,.primary,.secondary{min-height:44px}body{padding-bottom:env(safe-area-inset-bottom)}.sidebar{padding:15px 16px 0;position:static}.brand{display:flex;align-items:center;justify-content:space-between}.brand .logo{height:24px}.brand small{margin-top:0;font-size:8px}.sidebar nav{position:fixed;bottom:0;left:0;right:0;margin:0;padding:7px 5px calc(7px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border-2);z-index:20;display:flex;gap:2px;justify-content:space-around}.nav-button{display:flex;flex-direction:column;gap:5px;flex:1;font-size:10px;min-height:53px;padding:6px 3px;line-height:1.2}.nav-button span{font-size:21px}.sidebar-bottom{display:none}.topbar{position:sticky;top:0;z-index:15;padding:12px 16px;background:var(--bg);min-height:67px}.shop-picker{font-size:9px;gap:9px}.shop-picker select{width:65%;max-width:260px;min-height:45px;padding:10px;font-size:15px!important}main{padding:22px 15px calc(95px + env(safe-area-inset-bottom))}.page-heading{margin-bottom:17px}.page-heading h1{font-size:27px;margin-bottom:9px}.page-heading .eyebrow{font-size:9px;margin-bottom:8px}.page-heading .muted{font-size:12px;line-height:1.5}.agent{margin-top:15px;padding:12px 14px;min-width:0;max-width:none}.agent strong{font-size:13px}.agent small{font-size:11px}.panel{padding:18px;border-radius:13px}.section-heading{margin-bottom:15px}.section-heading h2{font-size:17px}.key-hint{display:none}.quick-scan{display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:15px}.camera-launch{width:100%;min-height:61px;font-size:15px}.camera-launch small{font-size:11px}.quick-modes{width:100%}.mode-shortcut{flex:1;min-height:44px;font-size:14px}.search-form{gap:7px;padding:5px}.search-form input{padding:9px 0;min-height:42px}.search-form button{font-size:12px;padding:10px}.scan-glyph{display:none}.search-meta{margin-top:8px}.search-meta .text-button{font-size:11px;min-height:36px}.two-column{gap:15px}.send-panel h2{display:none}.send-panel .eyebrow{margin-bottom:13px}.send-panel select{margin-bottom:16px;min-height:46px}.check-label{font-size:13px}.check-label input{width:21px;height:21px}.check-label small{font-size:11px}.destination{padding:14px}.destination strong{font-size:17px}.cart-row{gap:9px}.row-controls{gap:8px}.cart-row input[type=number]{min-height:44px;width:68px}.icon-button{min-width:40px;min-height:40px}.cart-row strong{font-size:13px}.cart-footer{flex-wrap:wrap}.cart-footer .primary{font-size:13px;min-height:46px}.cart-footer .text-button{min-height:40px}.empty{min-height:120px;padding:20px}.order-guide{display:none}.row-actions{gap:7px;width:100%}.row-actions .primary,.row-actions .secondary{font-size:12px;min-height:42px}.order-row,.job-row{padding:17px 0;gap:12px}.job-summary strong,.order-summary strong{font-size:14px}.job-summary p,.order-summary p{font-size:12px}.badge{font-size:11px}.pending{padding:14px;gap:12px}.pending button{width:100%;justify-content:center;font-size:12px}.notice{font-size:13px;padding:14px}.login-view{padding:22px;min-height:100dvh}.login-card{padding:27px 24px}.login-card input,.login-card select{min-height:49px}.login-card h1{font-size:34px}.login-card .primary{min-height:49px;font-size:14px}.camera-dialog{position:fixed;inset:0;margin:0;border:0;border-radius:0;width:100vw;max-width:none;height:100dvh;max-height:none;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.camera-top{padding:14px 17px 12px;flex-shrink:0}.camera-top h2{font-size:21px}.camera-settings{padding:0 17px 13px;gap:10px;flex-shrink:0}.camera-settings label{font-size:10px}.camera-settings select{font-size:14px!important;min-height:45px;max-width:100%;text-overflow:ellipsis}.camera-viewport{flex:1;aspect-ratio:auto;min-height:150px}.camera-reticle{inset:30% 7%}.camera-feedback{padding:15px 18px 7px;min-height:93px;flex-shrink:0}.camera-feedback strong{font-size:16px}.camera-controls{padding:9px 17px;flex-shrink:0;display:grid;grid-template-columns:auto 1fr}.camera-controls .primary{grid-column:1/-1}.camera-controls button{font-size:13px}.camera-privacy{font-size:10px;margin:5px 18px 13px;flex-shrink:0}#receive-dialog{width:100%;max-width:none;border-radius:18px 18px 0 0;margin:0;top:auto;bottom:0;max-height:94dvh;padding:22px 18px calc(20px + env(safe-area-inset-bottom))}.dialog-footer{position:sticky;bottom:0;background:var(--surface);padding-top:14px}.dialog-footer button{font-size:13px}.form-grid input{min-height:46px}.live-scan{padding:13px}.scan-backlog button{min-height:42px}footer{padding-top:20px;font-size:9px}}
@media(max-width:380px){.camera-settings{grid-template-columns:1fr}.camera-settings label{display:flex;align-items:center;gap:10px;justify-content:space-between}.camera-settings select{width:75%;margin-top:0;min-height:40px}.camera-top{padding-bottom:9px}.shop-picker select{max-width:220px}.camera-privacy{font-size:9px}.nav-button{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Un dialogue fermé ne doit jamais recouvrir l'application. */
.camera-dialog:not([open]){display:none}
.camera-viewport.scan-detected .camera-reticle{border-color:#34d399;box-shadow:0 0 0 200px #34d39918,0 0 22px #34d39980}
.camera-viewport.scan-detected .camera-reticle span{background:#34d399}
.camera-feedback{border-top:1px solid var(--border)}
.inline-history{margin-top:20px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
.inline-history>summary{padding:16px;cursor:pointer;font-size:14px;font-weight:600;list-style:none;display:flex;justify-content:space-between}
.inline-history>summary::-webkit-details-marker{display:none}.inline-history>.panel{border:0}
.access-card{margin:0 0 16px}.access-card h2{margin-bottom:16px}.access-card .check-label{margin:12px 0}
#products-search{margin:0 0 14px}#products-list .result{border-radius:0}#products-list .result>span:last-child{font-size:12px}
#product-dialog .form-grid{margin-top:14px}#products-page .section-heading{flex-wrap:wrap}
@media(max-width:800px){#app[data-page="products"] .printer-details,#app[data-page="access"] .printer-details{display:none}.inline-history .panel{padding-top:0}.camera-feedback strong{font-size:15px}.camera-feedback small{font-size:11px}#product-dialog{width:calc(100% - 20px);max-height:90dvh;padding:18px}#product-dialog .dialog-footer{padding-bottom:env(safe-area-inset-bottom)}.sidebar-bottom [data-page="access"]{width:100%;text-align:left;min-height:44px}}
.printer-details{min-width:230px;max-width:360px;font-size:12px;color:var(--text-2)}
.printer-details summary{cursor:pointer;padding:12px 0;list-style:none;display:flex;align-items:center;gap:8px}
.printer-details summary::-webkit-details-marker{display:none}
.printer-details summary::before{content:'';width:7px;height:7px;flex-shrink:0;border-radius:50%;background:var(--success)}
.printer-details.needs-attention summary::before{background:var(--warning)}
.printer-details summary::after{content:'⌄';margin-left:auto;color:var(--text-3)}
.printer-details .agent{margin:0;max-width:none;min-width:0}
.sidebar-bottom>summary{cursor:pointer;color:var(--text-2);font-size:13px}
.sidebar-bottom .account-menu{padding-top:12px}
.sidebar-bottom .account-menu p{display:none}
.camera-launch strong{display:block;font-size:16px;font-weight:650}
@media(min-width:801px){.sidebar-bottom{display:block}.sidebar-bottom:not([open])>.account-menu{display:block}}
@media(max-width:800px){
  .sidebar{height:58px;padding:10px 18px;border:0;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
  .brand .logo{height:25px}.brand small{display:none}
  .sidebar-bottom{display:block;position:relative;flex-shrink:0;margin:0;padding:0;border:0;z-index:35}
  .sidebar-bottom>summary{list-style:none;padding:8px 12px;border:1px solid var(--border-2);border-radius:20px;font-size:12px;min-height:36px}
  .sidebar-bottom>summary::-webkit-details-marker{display:none}
  .sidebar-bottom .account-menu{position:absolute;right:0;top:42px;width:220px;padding:16px;border:1px solid var(--border-2);border-radius:14px;background:var(--surface);box-shadow:0 12px 35px #0005}
  .account-menu button{display:block;width:100%;text-align:left;margin-top:5px}.account-menu .tag{display:block;margin-bottom:8px}
  .topbar{position:static;min-height:58px;padding:0 18px 12px;border:0}
  .shop-picker{gap:10px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:0 12px;text-transform:none;letter-spacing:0;font-size:12px;min-height:48px}
  .shop-picker select{width:auto;max-width:75%;flex:1;border:0;background:transparent;margin:0;padding:10px 0;font-size:15px!important;min-height:46px}
  main{padding:12px 18px calc(90px + env(safe-area-inset-bottom))}
  .page-heading{margin:0 0 16px;display:block}.page-heading>div>.eyebrow,.page-heading #subtitle{display:none}
  .page-heading h1{font-size:26px;line-height:1.2;margin:0 0 6px;letter-spacing:-.6px}
  .printer-details{width:100%;max-width:none;min-width:0;font-size:12px}.printer-details summary{min-height:38px;padding:9px 0}
  .printer-details .agent{padding:12px}.agent strong{font-size:12px}.agent small{font-size:11px}
  #app[data-page="orders"] .printer-details,#app[data-page="inventory"] .printer-details{display:none}
  .panel.search-panel{background:transparent;border:0;padding:0;margin:0 0 20px;border-radius:0}
  .search-panel>.section-heading,.search-meta #catalog-state{display:none}
  .quick-scan{display:flex;flex-direction:column;gap:12px;margin:0 0 18px;align-items:stretch}
  .quick-modes{order:-1;background:var(--surface);padding:4px;border:1px solid var(--border);border-radius:13px}
  .mode-shortcut{min-height:46px;border-radius:9px;font-size:15px}
  .mode-shortcut.active{background:var(--accent);color:#fff}
  .camera-launch{min-height:106px;border-radius:18px;display:flex;gap:15px;box-shadow:0 7px 24px #0002}
  .camera-launch svg{width:30px;height:30px}.camera-launch strong{font-size:18px}.camera-launch small{font-size:11px;line-height:1.5;margin-top:6px}
  .search-form{border-radius:12px;padding:4px 10px;gap:5px;background:var(--surface)}
  .search-form input{min-height:45px;font-size:16px!important}.search-form button{background:transparent;color:var(--accent);font-size:12px;padding:9px 3px}
  .search-form button span{display:none}.search-meta{justify-content:flex-end;margin:0}.search-meta .text-button{min-height:34px;padding:5px 0;font-size:11px}
  .search-results:empty{display:none}.search-results{max-height:38vh;border-radius:12px}.result{padding:15px 10px}.result strong{font-size:14px}
  #labels-page.empty-basket{display:none}
  #labels-page .two-column{gap:0;background:var(--surface);border:1px solid var(--border);border-radius:16px;overflow:hidden}
  #labels-page .panel{border:0;border-radius:0;background:transparent;padding:17px}
  #labels-page .send-panel{padding-top:0}.send-panel>*:not(#print){display:none}
  #print{min-height:50px;justify-content:center;font-size:15px;border-radius:11px}
  .cart-footer{margin-top:10px;padding-top:10px}.cart-row{padding:12px 0}.cart-row>div:first-child{min-width:0}.cart-row strong{overflow-wrap:anywhere}
  .cart-row small{font-size:10px}.cart-row .row-controls{flex-shrink:0;gap:5px}.cart-row input[type=number]{width:59px}
  #orders-page .panel>.muted,#inventory-page .panel>.muted{display:none}
  .panel{padding:17px;border-radius:15px}.panel h2{font-size:17px}.section-heading{margin-bottom:14px}
  .form-grid{gap:12px;margin-bottom:12px}.form-grid label{font-size:12px}.form-grid input{margin-top:6px}
  #order-cart:has(.empty),#inventory-cart:has(.empty){display:none}
  .order-list-panel{margin-top:20px}.order-list-panel .empty{min-height:80px;padding:16px}.empty-icon{display:none}
  .row-actions{gap:8px}.row-actions button{flex:1}.row-actions .badge{flex-basis:100%;width:fit-content}
  #history-page .panel>.muted{font-size:11px;line-height:1.5}#history-page .section-heading .tag{display:none}
  .job-row{gap:8px}.job-row .badge{white-space:normal;line-height:1.4}
  footer{display:none}.notice{margin-bottom:14px;padding:12px;font-size:12px}.notice:not(.error){border:0}
  .sidebar nav{padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:var(--bg);box-shadow:0 -8px 25px #0002}
  .nav-button{min-height:52px;border-radius:12px;font-size:10px;gap:6px}.nav-button span{font-size:20px}
  .camera-dialog{height:100vh;height:100dvh}.camera-top{padding:12px 16px}.camera-top .eyebrow{display:none}.camera-top h2{font-size:19px}
  .camera-settings{padding:0 16px 12px;grid-template-columns:1fr 1fr;gap:8px}.camera-settings label{font-size:10px}
  .camera-settings select{font-size:13px!important;padding:10px 6px;min-width:0}
  .camera-feedback{min-height:82px;padding:12px 16px 6px}.camera-feedback strong{font-size:15px}.camera-feedback small{font-size:11px}
  #camera-printer-state{font-size:10px;color:var(--text-3)}.camera-controls{padding:8px 16px}.camera-controls button{min-height:48px}
  .camera-privacy{margin:2px 16px 10px;font-size:10px}.camera-viewport{min-height:100px}
  .camera-top,.camera-settings,.camera-controls,.camera-privacy{flex-shrink:0}
}
@media(max-width:380px){main{padding-left:14px;padding-right:14px}.camera-settings label{display:block}.camera-settings select{width:100%;margin-top:5px}.camera-launch strong{font-size:16px}.camera-launch small{font-size:10px}}
