/* One quiet field surface, one focus treatment, across app. and gest. */
:root{--vv-field:#222222;--vv-line:#4b4b4b;--vv-focus:#b8b5af;--vv-radius:12px}
.vv-control{position:relative;display:block;min-width:0;width:100%;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;height:auto!important;color:var(--text-primary,#f5f3ef);font-size:13px}
.vv-control>.vv-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:0;min-height:44px;padding:10px 13px;border:1px solid var(--vv-line);border-radius:var(--vv-radius);background:var(--vv-field);color:var(--text-primary,#f5f3ef);font:inherit;text-align:left;cursor:pointer;line-height:1.35;transition:background .15s,border-color .15s;box-shadow:none;outline:0}
.vv-control>.vv-trigger:hover:not(:disabled){background:#292929;border-color:#666}
.vv-control>.vv-trigger[aria-expanded=true]{background:#292929;border-color:var(--vv-focus)}
.vv-control>.vv-trigger:focus-visible{outline:2px solid var(--vv-focus);outline-offset:2px}
.vv-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vv-trigger>svg{flex:none;color:#aaa7a1}
.vv-control>.vv-trigger:disabled{cursor:default;color:#92908c;background:#1d1d1d;border-color:#383838;opacity:1}
.vv-trigger:disabled>svg{color:#777}
/* The real fields still participate in forms and React onChange. */
.vv-control>.vv-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;min-width:0!important;max-width:1px!important;padding:0!important;margin:0!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important;clip-path:inset(50%)!important;bottom:0;left:0;border:0!important;outline:0!important}
.vv-control:is(.management-store-filter,.finance-store-filter,.mobile-store-select){display:none}
.sidebar .vv-control.sidebar-store-picker{width:100%}
.sidebar .vv-trigger{font-size:13px}
.vv-dialog{position:fixed;inset:auto;margin:0;padding:0;width:min(392px,calc(100vw - 16px));max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);z-index:10000;border:1px solid #505050;border-radius:15px;color:#f5f3ef;background:#252525;box-shadow:0 16px 48px #0009;overflow:hidden;font:400 14px/1.45 Inter,system-ui,sans-serif;color-scheme:dark;animation:vv-appear .14s ease-out}
.vv-dialog[open]{display:flex;flex-direction:column}
.vv-dialog-head{display:flex;align-items:center;gap:12px;padding:13px 14px 9px;flex-shrink:0}
.vv-dialog-head.vv-dialog-head-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.vv-dialog:has(.vv-dialog-head-hidden) .vv-options{padding-top:8px}
.vv-dialog:has(.vv-dialog-head-hidden) .vv-search{margin-top:12px}
.vv-dialog-head h2{margin:0;flex:1;min-width:0;font-size:12px;font-weight:650;letter-spacing:.02em;line-height:1.4;color:#aaa7a1}
.vv-dialog .vv-icon-button{display:grid;place-items:center;flex:none;width:36px;height:36px;min-height:36px;min-width:36px;padding:0;border:0;border-radius:10px;background:transparent;color:#b8b5af;font-size:26px;cursor:pointer}
.vv-dialog .vv-icon-button:hover:not(:disabled){background:#333;color:#fff}
.vv-dialog button:focus-visible,.vv-dialog input:focus-visible{outline:2px solid var(--vv-focus);outline-offset:-2px}
.vv-dialog button:disabled{opacity:.38;cursor:default}
.vv-dialog-head+div:not(.vv-calendar-toolbar){min-height:0;display:flex;flex-direction:column;overflow:hidden}
.vv-search{display:flex;align-items:center;gap:10px;margin:0 14px 10px;padding:0 12px;border:1px solid var(--vv-line);border-radius:11px;background:#191919;color:#aaa7a1;min-height:44px;flex:none}
.vv-search>svg{flex:none}
.vv-search input{padding:10px 0;margin:0;border:0!important;border-radius:0;background:transparent!important;outline:0!important;box-shadow:none!important;color:#f5f3ef;min-height:42px;min-width:0;font:inherit;width:100%}
.vv-search:focus-within{border-color:var(--vv-focus)}
.vv-options{padding:0 8px 10px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#555 transparent;max-height:min(370px,55dvh);min-height:0}
.vv-options .vv-option{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:46px;padding:12px;border:0;border-radius:10px;background:transparent;color:#d9d6d0;font:inherit;font-size:14px;text-align:left;line-height:1.45;cursor:pointer}
.vv-option>span{overflow-wrap:anywhere}
.vv-option>svg{flex:none}
.vv-options .vv-option:hover:not(:disabled){background:#2c2c2c}
.vv-options .vv-option[aria-selected=true]{background:#353535;color:#fff}
.vv-option-group{padding:14px 12px 6px;font-size:11px;letter-spacing:.05em;color:#aaa7a1}
.vv-empty{margin:16px 12px 24px;color:#b8b5af;text-align:center}
.vv-calendar-toolbar{display:grid;grid-template-columns:36px minmax(0,1fr) 66px 36px;align-items:center;gap:5px;padding:0 14px 12px}
.vv-calendar-toolbar .vv-trigger{min-height:38px;padding:8px 10px;border-color:transparent;background:transparent;font-size:14px;text-transform:capitalize}
.vv-calendar-toolbar .vv-year{width:100%;min-width:0;min-height:38px;height:38px;margin:0;padding:6px;border:1px solid #4b4b4b;border-radius:9px;background:#222;color:#f5f3ef;font:inherit;text-align:center}
.vv-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;padding:0 16px}
.vv-weekday{display:grid;place-items:center;height:28px;font-size:11px;color:#aaa7a1}
.vv-calendar .vv-day{border:1px solid transparent;border-radius:10px;min-height:40px;height:40px;padding:0;min-width:0;font:inherit;font-size:13px;color:#d9d6d0;background:transparent;cursor:pointer;font-variant-numeric:tabular-nums}
.vv-day:hover:not(:disabled){background:#333}
.vv-calendar .vv-day.is-today{border-color:#67645f}
.vv-calendar .vv-day[aria-pressed=true]{background:#e5e2dc;color:#1a1a1a;font-weight:650}
.vv-calendar .vv-day:disabled{opacity:.3}
.vv-time{display:flex;align-items:center;gap:8px;padding:16px 18px 0;color:#b8b5af;font-size:13px}
.vv-time>span:first-child{margin-right:auto}
.vv-time .vv-control{width:80px;flex:none}
.vv-date-summary{padding:14px 18px 8px;color:#b8b5af;font-size:12px;text-align:center;min-height:40px}
.vv-date-error{margin:0 18px 8px;font-size:12px;color:#edb09b}
.vv-date-actions{display:flex;align-items:center;gap:6px;padding:12px 14px 14px;border-top:1px solid #383838}
.vv-dialog .vv-text-button{border:0;border-radius:9px;padding:9px 8px;min-height:40px;color:#b8b5af;background:transparent;font:inherit;font-size:12px;cursor:pointer}
.vv-text-button:hover:not(:disabled){background:#303030;color:#fff}
.vv-dialog .vv-apply{margin-left:auto;border:0;border-radius:10px;padding:10px 16px;min-height:40px;color:#1a1a1a;background:#e5e2dc;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.vv-date-dialog{overflow-y:auto}
/* Search wrappers own their sole outline; inner inputs never draw a second one. */
body :is(.search,.ops-search,.stocks-search>span:last-child){min-width:0;min-height:44px;height:44px;gap:10px;padding:0 13px;border:1px solid var(--vv-line);border-radius:var(--vv-radius);background:var(--vv-field);color:#aaa7a1;box-shadow:none;transition:border-color .15s}
body :is(.search,.ops-search,.stocks-search>span:last-child):focus-within{border-color:var(--vv-focus);outline:0;box-shadow:0 0 0 1px var(--vv-focus)}
body :is(.search,.ops-search,.stocks-search) input,body :is(.search,.ops-search,.stocks-search) input:focus,body :is(.search,.ops-search,.stocks-search) input:focus-visible{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important;padding:0!important;min-width:0;min-height:0;height:100%;width:100%;font-size:13px;color:#f5f3ef}
body :is(.search,.ops-search,.stocks-search) svg{flex-shrink:0}
body :is(.search,.ops-search,.stocks-search) input::placeholder{color:#aaa7a1;opacity:1}
body input[type=checkbox]{accent-color:#e5e2dc;border-radius:5px}
body :is(.m-inline-check,.ops-checkbox){min-height:40px;align-items:center;gap:10px}
body :is(.topbar-page-slot,.management-topbar,.journal-topbar-filters){min-width:0}
.stocks-filter-control>.vv-control{font-size:13px}
.cart-line-controls .vv-trigger{min-height:38px;padding:8px 10px;font-size:11px}
.m-import-table .vv-control{min-width:145px}
@keyframes vv-appear{from{opacity:0;transform:translateY(-3px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:980px){
  body .topbar .vv-control{font-size:13px}
  body .topbar-page-slot .vv-trigger{min-height:46px}
  body .vv-control:is(.management-store-filter,.finance-store-filter,.mobile-store-select){display:block}
  body .topbar.topbar-stats{height:auto;min-height:72px;padding-block:8px;align-items:stretch}
  body .topbar-stats .topbar-page-slot{align-self:auto;overflow:visible}
  body .topbar-page-slot .stats-topbar{grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
  body .topbar-stocks .topbar-page-slot .stocks-filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  body .stocks-filter .vv-trigger{padding:9px 8px;gap:4px}
  body .stocks-filter .vv-value{white-space:normal;overflow-wrap:anywhere;line-height:1.25;font-size:12px}
  body :is(.search,.ops-search,.stocks-search>span:last-child){min-height:46px;height:46px}
  body :is(.search,.ops-search,.stocks-search) input{font-size:16px}
}
@media(max-width:640px){
  body .topbar-page-slot .stats-topbar{grid-template-columns:repeat(2,minmax(0,1fr))}
  body .topbar-stocks .topbar-page-slot .stocks-filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  body .stocks-filter .vv-value{white-space:nowrap;overflow-wrap:normal}
  body .stocks-filter .vv-trigger{padding-inline:8px;gap:4px}
  body .stocks-filter .vv-value{font-size:11px}
  .vv-dialog{border-radius:15px;padding-bottom:0;box-shadow:0 14px 44px #000a}
  .vv-dialog-head{padding:12px 14px 8px}
  .vv-options{max-height:min(320px,48dvh);padding-bottom:10px}
  .vv-options .vv-option{min-height:46px;font-size:14px;padding:12px}
  .vv-search input,.vv-calendar-toolbar .vv-year{font-size:16px}
  .vv-calendar{padding-inline:10px}
  .vv-calendar .vv-day{height:40px;min-height:40px;font-size:13px}
  .vv-dialog .vv-icon-button{min-width:40px;min-height:40px}
  .vv-date-actions button{min-height:44px!important}
  .vv-calendar-toolbar{grid-template-columns:40px minmax(0,1fr) 70px 40px}
  body .topbar-page-slot .accounts-topbar{grid-template-columns:minmax(0,1fr) auto;gap:8px}
  body .accounts-store-filter{grid-column:1/-1}
  body .accounts-topbar .button{min-height:46px}
}
@media(prefers-reduced-motion:reduce){.vv-dialog{animation:none}.vv-trigger{transition:none}}

/* Account filters fit the header; creation stays reachable from the page. */
body .topbar:has(.accounts-topbar){height:auto;min-height:72px;padding-block:10px;align-items:stretch}
body .topbar-page-slot:has(.accounts-topbar){container-type:inline-size;container-name:vv-accounts-header;overflow:visible;align-self:stretch}
body .topbar-page-slot .accounts-topbar{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(180px,.8fr);width:100%;min-width:0;gap:8px;padding:0;align-items:center}
body .accounts-topbar>.search{order:-1;width:100%;min-width:0;margin:0;box-sizing:border-box}
body .accounts-topbar>.accounts-store-filter{display:block;grid-column:auto;width:100%;min-width:0;margin:0}
body .accounts-topbar .vv-trigger{min-height:44px}
.accounts-new-account-fab{position:fixed;z-index:25;right:24px;bottom:24px;display:grid;place-items:center;width:52px;height:52px;min-width:52px;padding:0;border-radius:50%;box-shadow:0 8px 24px #0007}
.accounts-new-account-fab:focus-visible{outline:2px solid var(--vv-focus,#eee);outline-offset:4px}
.accounts-page{padding-bottom:90px}
@container vv-accounts-header (max-width:480px){body .topbar-page-slot .accounts-topbar{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){body .topbar:has(.accounts-topbar){min-height:60px}.accounts-new-account-fab{right:16px;bottom:calc(82px + env(safe-area-inset-bottom));width:48px;height:48px;min-width:48px}.accounts-page{padding-bottom:100px}}
@media print{.accounts-new-account-fab{display:none}}

/* Stocks: five useful desktop columns, compact expandable rows on phones. */
.vv-stock-table{width:100%;min-width:0;color:var(--text-primary,#f5f3ef);font-variant-numeric:tabular-nums}
.vv-stock-head,.vv-stock-summary{display:grid;grid-template-columns:minmax(250px,1.35fr) minmax(100px,.4fr) 55px minmax(200px,1fr) 58px;align-items:center;column-gap:18px}
.vv-stock-head{min-height:42px;border-bottom:1px solid var(--border-subtle,#303030);letter-spacing:.8px;text-transform:uppercase}
.vv-stock-head>span:nth-child(2){text-align:right}
.vv-stock-head span:last-child{text-align:center}
.vv-stock-row{border-bottom:1px solid var(--border-subtle,#303030);background:transparent}
.vv-stock-row[open]{background:color-mix(in srgb,var(--surface,#202020) 76%,transparent)}
.vv-stock-summary{min-height:72px;padding:9px 18px;list-style:none;cursor:pointer;transition:background .14s}
.vv-stock-summary::-webkit-details-marker{display:none}
.vv-stock-summary::marker{content:""}
.vv-stock-summary:hover{background:color-mix(in srgb,var(--hover,#2e2e2e) 52%,transparent)}
.vv-stock-summary:focus-visible{outline:2px solid var(--focus-neutral,#d6d1c8);outline-offset:-2px}
.vv-stock-product{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:12px;min-width:0}
.vv-stock-product-image{display:grid;place-items:center;width:48px;height:48px;overflow:hidden;border:1px solid #ffffff14;border-radius:12px;background:linear-gradient(145deg,#385641,#24352a);color:#f5f3ef;font-size:17px;font-weight:650}
.vv-stock-product-image img{width:100%;height:100%;object-fit:cover}
.vv-stock-product-copy{display:grid;min-width:0;gap:2px}
.vv-stock-product-copy strong,.vv-stock-product-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vv-stock-product-copy strong{font-size:13px;font-weight:600;color:var(--text-primary,#f5f3ef)}
.vv-stock-product-copy small{font-size:10px;color:var(--text-muted,#8f8c86)}
.vv-stock-total{display:grid;gap:5px;min-width:0;justify-items:end;text-align:right}
.vv-stock-total>span:first-child{white-space:nowrap}
.vv-stock-total strong{font-size:17px;font-weight:620;letter-spacing:-.02em}
.vv-stock-total small{font-size:10px;color:var(--text-secondary,#b8b5af)}
.vv-stock-total.is-negative>span:first-child,.vv-stock-total.is-negative strong{color:var(--red,#e6a5a0)}
.vv-stock-total.is-empty>span:first-child,.vv-stock-total.is-empty strong{color:var(--amber,#d5ad77)}
.vv-stock-statuses{display:flex;flex-wrap:wrap;gap:4px}
.vv-stock-statuses:empty{display:none}
.vv-stock-statuses em{padding:3px 6px;border-radius:6px;background:color-mix(in srgb,var(--text-muted,#8f8c86) 11%,transparent);color:var(--text-secondary,#b8b5af);font-size:8px;font-style:normal;font-weight:600;letter-spacing:.02em;white-space:nowrap}
.vv-stock-statuses em.is-warning{background:color-mix(in srgb,var(--amber,#d5ad77) 12%,transparent);color:var(--amber,#d5ad77)}
.vv-stock-statuses em.is-danger{background:color-mix(in srgb,var(--red,#e6a5a0) 12%,transparent);color:var(--red,#e6a5a0)}
.vv-stock-location{min-width:0;overflow:hidden;color:var(--text-secondary,#b8b5af);font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.vv-stock-more{display:flex;align-items:center;justify-content:center;gap:2px;color:var(--text-muted,#8f8c86)}
.vv-stock-more svg{width:14px;height:14px;transition:transform .14s}
.vv-stock-menu-trigger{width:36px;height:36px;min-height:36px;padding:0;border:0;border-radius:7px;background:transparent;justify-self:center}
.vv-stock-menu-trigger:hover:not(:disabled){background:var(--hover,#2e2e2e);color:var(--text-primary,#f5f3ef)}
.vv-stock-action-menu{padding:5px}
.vv-stock-action-menu>button{display:block;width:100%;min-height:40px;padding:9px 12px;border:0;border-radius:5px;text-align:left;background:transparent;color:var(--text-primary,#f5f3ef);font-size:13px}
.vv-stock-action-menu>button:hover:not(:disabled){background:var(--hover,#2e2e2e)}
.vv-stock-details{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:24px;padding:2px 76px 18px 78px}
.vv-stock-breakdown{display:grid;gap:5px;min-width:0}
.vv-stock-detail-label,.vv-stock-barcode>span{color:var(--text-muted,#8f8c86);font-size:8px;font-weight:650;letter-spacing:.08em;text-transform:uppercase}
.vv-stock-breakdown>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;min-height:32px;padding:6px 9px;border-radius:8px;background:color-mix(in srgb,var(--elevated,#272727) 70%,transparent);font-size:10px}
.vv-stock-breakdown>div span{overflow:hidden;color:var(--text-secondary,#b8b5af);text-overflow:ellipsis;white-space:nowrap}
.vv-stock-breakdown>div strong{font-size:10px;font-weight:600;white-space:nowrap}
.vv-stock-breakdown p{margin:0;color:var(--text-muted,#8f8c86);font-size:10px}
.vv-stock-side{display:grid;align-content:start;justify-items:end;gap:12px;min-width:220px}
.vv-stock-barcode{display:grid;justify-items:end;gap:3px;min-width:0}
.vv-stock-barcode strong{max-width:230px;overflow:hidden;color:var(--text-secondary,#b8b5af);font:500 11px/1.3 ui-monospace,SFMono-Regular,Consolas,monospace;text-overflow:ellipsis;white-space:nowrap}
.vv-stock-actions{display:flex;gap:7px}
.vv-stock-actions button{min-height:38px;padding:8px 12px;border:1px solid var(--border-control,#686868);border-radius:9px;background:var(--elevated,#272727);color:var(--text-primary,#f5f3ef);font:600 10px/1 Inter,system-ui,sans-serif;cursor:pointer}
.vv-stock-actions button:hover:not(:disabled){background:var(--hover,#2e2e2e)}
.vv-stock-actions button:disabled{opacity:.38;cursor:default}
.vv-stock-empty{display:grid;place-items:center;align-content:center;min-height:280px;padding:40px;text-align:center;color:var(--text-muted,#8f8c86)}
.vv-stock-empty h3{margin:0 0 5px;color:var(--text-primary,#f5f3ef);font-size:15px}
.vv-stock-empty p{margin:0;font-size:11px}
@media(max-width:760px){
  .vv-stock-head{display:none}
  .vv-stock-row{background:var(--canvas,#171717)}
  .vv-stock-summary{grid-template-columns:minmax(0,1fr) auto 30px 36px;grid-template-areas:"product stock unit more";column-gap:7px;min-height:64px;padding:10px 13px}
  .vv-stock-product{grid-area:product;grid-template-columns:44px minmax(0,1fr);gap:10px}
  .vv-stock-product-image{width:44px;height:44px;border-radius:11px;font-size:15px}
  .vv-stock-product-copy strong{font-size:12px}
  .vv-stock-product-copy small{font-size:9px}
  .vv-stock-total{grid-area:stock;justify-items:end;gap:3px;text-align:right}
  .vv-stock-total strong{font-size:15px}
  .vv-stock-total small{font-size:9px}
  .vv-stock-statuses{justify-content:flex-end;max-width:120px}
  .vv-stock-statuses em{padding:2px 5px;font-size:7px}
  .vv-stock-location{display:none}
  .vv-stock-more{grid-area:more;align-self:center;gap:0}
  .vv-stock-more svg{width:16px;height:16px}
  .vv-stock-details{grid-template-columns:1fr;gap:12px;padding:0 13px 15px}
  .vv-stock-detail-label{display:none}
  .vv-stock-breakdown{gap:5px;padding-left:54px}
  .vv-stock-breakdown>div{display:block;min-height:0;padding:0;border-radius:0;background:transparent;font-size:9px}
  .vv-stock-breakdown>div span{display:block;overflow:visible;line-height:1.4;text-overflow:clip;white-space:normal}
  .vv-stock-breakdown>div strong{display:none}
  .vv-stock-side{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;justify-items:stretch;gap:10px;min-width:0}
  .vv-stock-barcode{justify-items:start;min-width:0}
  .vv-stock-barcode strong{max-width:100%;font-size:10px}
  .vv-stock-actions{justify-content:flex-end}
  .vv-stock-actions button{min-height:40px;padding:8px 10px}
  .vv-stock-empty{min-height:220px;padding:30px 18px}
}
@media(max-width:360px){
  .vv-stock-side{grid-template-columns:1fr}
  .vv-stock-actions{display:grid;grid-template-columns:1fr 1fr}
  .vv-stock-actions button{width:100%}
}

/* Barcode scanning is a focused page: full viewport on phones, a large overlay elsewhere. */
.modal.scanner-modal{position:relative;display:grid;grid-template-rows:auto minmax(0,1fr);width:min(960px,calc(100vw - 64px));height:min(720px,calc(100dvh - 64px));max-height:calc(100dvh - 64px);padding:0;border:1px solid #3b3b3b;border-radius:24px;background:#171717;box-shadow:0 38px 120px #000d;overflow:hidden;color:#fff}
body:has(dialog.scanner-modal[open]){overflow:hidden}
.scanner-modal::backdrop{background:#050505d9;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.scanner-modal .modal-head{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:20px 22px;border-bottom:1px solid #303030;background:#1d1d1d}
.scanner-modal .modal-head h2{color:#f5f3ef;font-size:18px;font-weight:600;letter-spacing:-.01em;margin:0}
.scanner-modal .modal-head button{border:1px solid transparent;background:transparent;color:#f5f3ef;box-shadow:none}
.scanner-modal .modal-body{position:relative;display:grid;grid-template-rows:minmax(0,1fr) auto auto;align-items:center;gap:16px;width:100%;height:100%;min-height:0;padding:20px;background:#171717;overflow:auto}
.scanner-modal .barcode-camera{position:relative;inset:auto;justify-self:stretch;align-self:stretch;width:100%;height:100%;min-height:260px;aspect-ratio:auto;border:1px solid #303030;border-radius:20px;background:#000;overflow:hidden}
.scanner-modal .barcode-camera video{display:block;width:100%;height:100%;object-fit:cover;background:#000}
.scanner-modal .barcode-camera>div{inset:28% 12%;border:2px solid #f5f3ef;border-radius:18px;box-shadow:0 0 0 150vmax #0004,0 0 32px #0008}
.scanner-modal .barcode-camera>div::after{content:"";position:absolute;left:5%;right:5%;top:50%;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,#ff765d 12%,#ff765d 88%,transparent);box-shadow:0 0 14px #ff765dcc;animation:vivria-scan-line 2.2s ease-in-out infinite}
.scanner-modal .ops-muted{position:relative;left:auto;bottom:auto;width:100%;margin:0;transform:none;color:#aaa8a3;text-align:left;font-size:13px;line-height:1.5;text-shadow:none;background:transparent;border:0;border-radius:0;padding:0}
.scanner-modal .modal-body>.button,.scanner-modal .modal-body>.ops-form-actions{position:relative;left:auto;bottom:auto;justify-self:start;margin:0;transform:none;white-space:nowrap}
.scanner-modal .modal-body>.ops-form-actions{display:flex;justify-content:flex-start;width:auto}
@keyframes vivria-scan-line{0%,100%{transform:translateY(-48px);opacity:.45}50%{transform:translateY(48px);opacity:1}}
@media(max-width:760px){
  .modal.scanner-modal{inset:0;grid-template-rows:auto minmax(0,1fr);width:100vw;max-width:none;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;background:#171717}
  .scanner-modal .modal-head{padding:calc(14px + env(safe-area-inset-top)) 16px 14px;border-bottom:1px solid #2d2d2d;background:#1b1b1b}
  .scanner-modal .modal-head h2{font-size:16px}
  .scanner-modal .modal-head button{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:13px}
  .scanner-modal .modal-body{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:14px;padding:16px 16px calc(16px + env(safe-area-inset-bottom));background:#171717;overflow:auto}
  .scanner-modal .barcode-camera{flex:0 0 auto;width:100%;height:min(52dvh,calc((100vw - 32px)*.75));min-height:210px;max-height:440px;border-radius:18px}
  .scanner-modal .barcode-camera>div{inset:25% 9%;border-radius:16px}
  .scanner-modal .ops-muted{font-size:13px}
  .scanner-modal .modal-body>.button,.scanner-modal .modal-body>.ops-form-actions{align-self:flex-start}
}
@media(prefers-reduced-motion:reduce){.scanner-modal .barcode-camera>div::after{animation:none;transform:none}}

/* Shared Vivria scan session: a full working page on phones and a large overlay on desktop. */
body:has(dialog.vv-scanner[open]){overflow:hidden}
.vv-scanner{position:fixed;inset:50% auto auto 50%;translate:-50% -50%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(1080px,calc(100vw - 48px));height:min(780px,calc(100dvh - 48px));max-width:none;max-height:none;margin:0;padding:0;overflow:hidden;border:1px solid #3b3b3b;border-radius:24px;background:#171717;color:#f5f3ef;box-shadow:0 40px 130px #000e;font:400 14px/1.4 Inter,system-ui,sans-serif;color-scheme:dark}
.vv-scanner::backdrop{background:#050505df;-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px)}
.vv-scanner-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 20px;border-bottom:1px solid #303030;background:#1d1d1d}
.vv-scanner-head>div:first-child{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:2px 10px;min-width:0}
.vv-scanner-mode{grid-row:1/3;display:grid;place-items:center;min-width:64px;min-height:38px;padding:6px 10px;border:1px solid #4b4b4b;border-radius:11px;background:#272727;color:#d8d5cf;font-size:11px;font-weight:650;letter-spacing:.04em;text-transform:uppercase}
.vv-scanner-head h2{margin:0;overflow:hidden;font-size:17px;font-weight:630;letter-spacing:-.015em;text-overflow:ellipsis;white-space:nowrap}
.vv-scanner-head p{margin:0;color:#aaa8a3;font-size:11px}
.vv-scanner-head-actions{display:flex;gap:7px;flex:none}
.vv-scanner-head-actions button{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #414141;border-radius:12px;background:#252525;color:#d8d5cf;cursor:pointer}
.vv-scanner-head-actions button:hover:not(:disabled){border-color:#696969;background:#303030;color:#fff}
.vv-scanner-head-actions button:disabled{opacity:.3;cursor:default}
.vv-scanner-body{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(330px,.78fr);gap:0;min-height:0;overflow:hidden}
.vv-scanner-camera{position:relative;min-width:0;min-height:0;margin:18px;border:1px solid #303030;border-radius:20px;background:#000;overflow:hidden;isolation:isolate}
.vv-scanner-camera video{display:block;width:100%;height:100%;object-fit:cover;background:#000}
.vv-scanner-frame{position:absolute;z-index:2;inset:29% 11%;border:2px solid #f5f3ef;border-radius:18px;box-shadow:0 0 0 150vmax #0003,0 0 34px #0009;transition:border-color .15s,box-shadow .15s}
.vv-scanner-frame::after{content:"";position:absolute;left:5%;right:5%;top:50%;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,#ff765d 12%,#ff765d 88%,transparent);box-shadow:0 0 14px #ff765dcc;animation:vivria-scan-line 2.1s ease-in-out infinite}
.vv-scanner-flash{position:absolute;z-index:4;inset:0;display:grid;place-items:center;background:#2dbb7655;color:#fff;opacity:0;pointer-events:none;transition:opacity .12s}
.vv-scanner-flash svg{padding:12px;border-radius:50%;background:#168c59;box-sizing:content-box;box-shadow:0 10px 36px #0008}
.vv-scanner-camera.is-success .vv-scanner-frame{border-color:#74e1ab;box-shadow:0 0 0 150vmax #0a5a3430,0 0 34px #22b56c88}
.vv-scanner-camera.is-success .vv-scanner-flash{opacity:1}
.vv-scanner-work{display:flex;min-width:0;min-height:0;padding:18px 18px 18px 0;flex-direction:column;gap:12px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#555 transparent}
.vv-scan-location{display:grid;gap:7px;padding:12px;border:1px solid #353535;border-radius:14px;background:#1e1e1e}
.vv-scan-location>span{color:#aaa8a3;font-size:10px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.vv-scan-message{padding:10px 12px;border:1px solid #695e43;border-radius:11px;background:#332e22;color:#ead9aa;font-size:12px;line-height:1.45}
.vv-scan-ready{display:grid;place-items:center;gap:5px;min-height:170px;padding:24px;border:1px dashed #414141;border-radius:16px;background:#1c1c1c;color:#aaa8a3;text-align:center}
.vv-scan-ready svg{margin-bottom:4px;color:#c9c6c0}
.vv-scan-ready strong{color:#e6e3dd;font-size:15px}
.vv-scan-ready span{max-width:280px;font-size:11px;line-height:1.5}
.vv-scan-active{display:grid;gap:13px;padding:14px;border:1px solid #414141;border-radius:16px;background:#202020;box-shadow:0 12px 30px #0003}
.vv-scan-product{display:flex;align-items:center;gap:12px;min-width:0}
.vv-scan-product-image{display:grid;place-items:center;width:64px;height:64px;flex:0 0 64px;overflow:hidden;border:1px solid #ffffff18;border-radius:14px;background:linear-gradient(145deg,#375844,#1d382b);color:#fff;font-size:24px;font-weight:650}
.vv-scan-product-image img{width:100%;height:100%;object-fit:cover}
.vv-scan-product>div{display:grid;min-width:0;gap:2px}
.vv-scan-product span{color:#8f8d88;font-size:9px;font-weight:650;letter-spacing:.06em;text-transform:uppercase}
.vv-scan-product strong{overflow:hidden;color:#f5f3ef;font-size:16px;text-overflow:ellipsis;white-space:nowrap}
.vv-scan-product small{overflow:hidden;color:#aaa8a3;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.vv-scan-quantity{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;gap:8px;align-items:center}
.vv-scan-quantity button{display:grid;place-items:center;height:48px;padding:0;border:1px solid #505050;border-radius:12px;background:#2b2b2b;color:#f5f3ef;cursor:pointer}
.vv-scan-quantity button:hover{background:#353535}
.vv-scan-quantity input{width:100%;height:48px;min-width:0;padding:0 8px;border:1px solid #5b5b5b;border-radius:12px;background:#171717;color:#fff;font:650 23px/1 Inter,system-ui,sans-serif;text-align:center;font-variant-numeric:tabular-nums;-moz-appearance:textfield}
.vv-scan-quantity input::-webkit-inner-spin-button{display:none}
.vv-scan-presets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.vv-scan-presets button{min-height:38px;padding:6px;border:1px solid #414141;border-radius:10px;background:#292929;color:#d8d5cf;font:600 12px/1 Inter,system-ui,sans-serif;cursor:pointer}
.vv-scan-presets button:hover,.vv-scan-presets button[aria-pressed=true]{border-color:#aaa8a3;background:#3a3a3a;color:#fff}
.vv-scan-next{min-height:40px;border:0;border-radius:11px;background:transparent;color:#c4c1bb;font:600 11px/1 Inter,system-ui,sans-serif;cursor:pointer}
.vv-scan-next:hover{background:#2b2b2b;color:#fff}
.vv-scan-batch{display:grid;gap:5px;padding:5px;border:1px solid #333;border-radius:13px;background:#1c1c1c}
.vv-scan-batch button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;padding:7px 9px;border:0;border-radius:8px;background:transparent;color:#aaa8a3;font:inherit;font-size:10px;text-align:left;cursor:pointer}
.vv-scan-batch button:hover{background:#292929;color:#fff}
.vv-scan-batch button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vv-scan-batch button strong{flex:none;color:#e4e1db;font-weight:650}
.vv-scan-manual{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;min-height:46px;margin-top:auto;padding:0 5px 0 12px;border:1px solid #4b4b4b;border-radius:12px;background:#222;color:#aaa8a3}
.vv-scan-manual:focus-within{border-color:#b8b5af;box-shadow:0 0 0 1px #b8b5af}
.vv-scan-manual input{width:100%;min-width:0;height:44px;padding:0;border:0;outline:0;background:transparent;color:#f5f3ef;font:inherit;font-size:13px}
.vv-scan-manual input::placeholder{color:#8f8d88}
.vv-scan-manual button{min-height:36px;padding:0 12px;border:0;border-radius:9px;background:#373737;color:#efede8;font:600 11px/1 Inter,system-ui,sans-serif;cursor:pointer}
.vv-scan-manual button:disabled{opacity:.35;cursor:default}
.vv-scanner-foot{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:66px;padding:11px 20px calc(11px + env(safe-area-inset-bottom));border-top:1px solid #303030;background:#1d1d1d}
.vv-scanner-foot>span{color:#96948f;font-size:10px}
.vv-scan-primary{min-height:42px;padding:10px 16px;border:0;border-radius:11px;background:#e5e2dc;color:#191919;font:650 12px/1 Inter,system-ui,sans-serif;cursor:pointer;box-shadow:0 8px 24px #0004}
.vv-scan-primary:hover:not(:disabled){background:#fff}
.vv-scan-primary:disabled{opacity:.38;cursor:default}
.vv-scan-unknown{display:grid;gap:12px;padding:14px;border:1px solid #4a4038;border-radius:16px;background:#211e1c}
.vv-scan-unknown-title{display:grid;gap:3px}
.vv-scan-unknown-title span{color:#d9a77f;font-size:9px;font-weight:650;letter-spacing:.07em;text-transform:uppercase}
.vv-scan-unknown-title strong{overflow:hidden;color:#f5f3ef;font:600 16px/1.25 ui-monospace,SFMono-Regular,Consolas,monospace;text-overflow:ellipsis}
.vv-scan-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:4px;border-radius:11px;background:#171717}
.vv-scan-tabs button{min-height:37px;padding:7px;border:0;border-radius:8px;background:transparent;color:#96948f;font:600 10px/1.2 Inter,system-ui,sans-serif;cursor:pointer}
.vv-scan-tabs button[aria-selected=true]{background:#333;color:#fff}
.vv-scan-create{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:10px}
.vv-scan-create label{display:grid;gap:5px;min-width:0}
.vv-scan-create label>span{color:#aaa8a3;font-size:9px;font-weight:600;text-transform:uppercase}
.vv-scan-create input{width:100%;min-width:0;min-height:44px;padding:9px 11px;border:1px solid #4b4b4b;border-radius:11px;background:#222;color:#f5f3ef;font:inherit;font-size:13px}
.vv-scan-create>label:nth-child(3){grid-column:1/-1}
.vv-scan-create>.vv-scan-primary{grid-column:1/-1}
.vv-scan-associate{display:grid;gap:10px}
.vv-scan-permission{margin:0;color:#d9a77f;font-size:10px;line-height:1.5}
.vv-scan-ignore{justify-self:start;min-height:38px;padding:8px 10px;border:0;border-radius:9px;background:transparent;color:#aaa8a3;font:600 10px/1 Inter,system-ui,sans-serif;cursor:pointer}
.vv-scan-ignore:hover{background:#2e2926;color:#fff}
.vv-scan-confirm{position:absolute;z-index:20;inset:0;display:grid;place-items:center;padding:20px;background:#080808c9;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.vv-scan-confirm>div{width:min(420px,100%);padding:22px;border:1px solid #4b4b4b;border-radius:17px;background:#242424;box-shadow:0 24px 70px #000c}
.vv-scan-confirm h3{margin:0;color:#fff;font-size:17px}
.vv-scan-confirm p{margin:8px 0 18px;color:#aaa8a3;font-size:12px;line-height:1.5}
.vv-scan-confirm>div>div{display:flex;flex-wrap:wrap;gap:8px}
.vv-scan-confirm button{min-height:42px;padding:9px 12px;border:1px solid #4b4b4b;border-radius:10px;background:#303030;color:#eee;font:600 11px/1 Inter,system-ui,sans-serif;cursor:pointer}
.vv-scan-confirm .vv-scan-primary{border:0;background:#e5e2dc;color:#191919}
.vv-scan-confirm .vv-scan-danger{border-color:#754640;background:#3a2320;color:#f3b5aa}
.stocks-scan-fab{position:fixed;z-index:25;right:102px;bottom:30px;display:grid;place-items:center;width:52px;height:52px;padding:0;border:1px solid #5a5a5a;border-radius:12px;background:#292929;color:#f5f3ef;box-shadow:0 14px 34px #0007;transition:background .16s,transform .16s,box-shadow .16s;cursor:pointer}
.stocks-scan-fab:hover:not(:disabled){background:#383838;transform:translateY(-2px);box-shadow:0 18px 38px #0008}
.stocks-scan-fab:disabled{opacity:.38;cursor:default}
@media(max-width:760px){
  .vv-scanner{inset:0;translate:none;width:100vw;height:100dvh;margin:0;border:0;border-radius:0;grid-template-rows:auto minmax(0,1fr) auto}
  .vv-scanner-head{padding:calc(11px + env(safe-area-inset-top)) 13px 11px;gap:8px}
  .vv-scanner-head>div:first-child{gap:1px 8px}
  .vv-scanner-mode{min-width:52px;min-height:34px;padding:5px 7px;border-radius:9px;font-size:9px}
  .vv-scanner-head h2{font-size:14px}
  .vv-scanner-head p{font-size:9px}
  .vv-scanner-head-actions{gap:5px}
  .vv-scanner-head-actions button{width:40px;height:40px;border-radius:11px}
  .vv-scanner-body{display:flex;flex-direction:column;overflow-y:auto}
  .vv-scanner-camera{flex:0 0 auto;width:auto;height:min(36dvh,310px);min-height:205px;margin:12px 12px 0;border-radius:17px}
  .vv-scanner-frame{inset:25% 8%;border-radius:15px}
  .vv-scanner-work{flex:0 0 auto;min-height:auto;padding:12px 12px 16px;overflow:visible}
  .vv-scan-ready{min-height:125px;padding:18px}
  .vv-scan-active{padding:12px;gap:11px}
  .vv-scan-product-image{width:54px;height:54px;flex-basis:54px;border-radius:12px}
  .vv-scan-quantity{grid-template-columns:50px minmax(0,1fr) 50px}
  .vv-scan-quantity button,.vv-scan-quantity input{height:50px}
  .vv-scan-manual input{font-size:16px}
  .vv-scanner-foot{min-height:72px;padding:10px 12px calc(10px + env(safe-area-inset-bottom))}
  .vv-scanner-foot>span{max-width:46%;font-size:9px}
  .vv-scanner-foot>.vv-scan-primary{min-height:46px}
  .stocks-scan-fab{right:74px;bottom:calc(82px + env(safe-area-inset-bottom));width:48px;height:48px;border-radius:11px}
}
@media(max-width:420px){
  .vv-scanner-camera{height:min(31dvh,260px);min-height:185px}
  .vv-scanner-head p{display:none}
  .vv-scan-presets{gap:4px}
  .vv-scan-create{grid-template-columns:minmax(0,1fr) 102px}
}
@media(prefers-reduced-motion:reduce){.vv-scanner-frame::after{animation:none}.vv-scanner-flash{transition:none}}

/* 0.4.4 — compact tables, original data and handlers retained */
.vv-stock-actions button,.vv-table-action{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 40px;width:40px!important;min-width:40px!important;height:40px;min-height:40px!important;padding:0!important;border:1px solid var(--border-control,#686868)!important;border-radius:9px;background:var(--elevated,#272727);color:var(--text-primary,#f5f3ef);vertical-align:middle;cursor:pointer}
.vv-table-action svg{width:18px;height:18px;flex:none}
.vv-table-action:disabled{opacity:.4;cursor:default}
.vv-table-action:focus-visible,.vv-mobile-summary:focus-visible{outline:2px solid var(--focus-neutral,#d6d1c8);outline-offset:-2px}
.vv-compact-table{min-width:0!important;width:100%;table-layout:auto!important;font-variant-numeric:tabular-nums}
.vv-compact-table th{padding:12px 14px!important}
.vv-compact-table td{padding:8px 14px!important;white-space:normal!important;overflow-wrap:anywhere;vertical-align:middle}
.vv-compact-table .vv-cell-sub{margin-top:3px;color:var(--text-muted,#8f8c86);font-size:10px}
.vv-compact-table .m-num{white-space:nowrap!important}
.vv-compact-table .m-actions{flex-wrap:wrap;gap:6px}
.vv-mobile-table{width:100%;min-width:0;max-width:100%;font-size:12px;color:var(--text-primary,#f5f3ef);font-variant-numeric:tabular-nums}
.vv-mobile-row{border-bottom:1px solid var(--border-subtle,#303030)}
.vv-mobile-summary{display:grid;grid-template-columns:minmax(0,1fr) auto 20px;gap:8px;align-items:center;min-height:58px;padding:9px 13px;list-style:none;cursor:pointer}
.vv-mobile-summary::-webkit-details-marker{display:none}
.vv-mobile-summary::marker{content:''}
.vv-mobile-summary .m-title{font-size:12px}
.vv-row-identity{min-width:0;overflow-wrap:anywhere}
.vv-row-identity .m-link{text-align:left;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.vv-mobile-summary .m-sub,.vv-mobile-summary .vv-cell-sub{font-size:10px;color:var(--text-muted,#8f8c86);line-height:1.4;margin-top:2px}
.vv-row-value{text-align:right;font-size:13px;font-weight:600;white-space:nowrap}
.vv-row-value .badge,.vv-row-value .m-badge{white-space:normal;max-width:125px}
.vv-row-chevron{display:flex;justify-content:center;align-items:center;color:var(--text-muted,#8f8c86)}
.vv-row-chevron svg{width:16px;height:16px;transition:transform .14s}
.vv-mobile-row[open] .vv-row-chevron svg{transform:rotate(90deg)}
.vv-mobile-row[open]{background:var(--surface,#202020)}
.vv-mobile-details{padding:2px 13px 12px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px 14px}
.vv-mobile-field{min-width:0;overflow-wrap:anywhere;font-size:11px;line-height:1.5}
.vv-field-label{display:block;font-size:9px;color:var(--text-muted,#8f8c86);margin-bottom:2px}
.vv-mobile-field .m-sub{font-size:10px;white-space:normal}
.vv-mobile-field.is-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:6px}
.vv-mobile-field .m-actions{display:flex;gap:6px;flex-wrap:wrap}
.vv-table-empty{padding:20px 13px;color:var(--text-muted,#8f8c86);font-size:12px}
@media(max-width:760px){
  .vv-stock-details{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:0 13px 12px}
  .vv-stock-breakdown{padding-left:0;gap:4px}
  .vv-stock-breakdown>div{font-size:10px}
  .vv-stock-breakdown.is-multiple>div{display:flex;gap:8px;align-items:baseline;justify-content:space-between}
  .vv-stock-breakdown.is-multiple>div strong{display:block;font-size:10px}
  .vv-stock-side{display:block;min-width:0}
  .vv-stock-actions{display:flex;gap:6px}
  .vv-stock-actions button{flex:0 0 40px}
  .m-table-wrap:has(>.vv-mobile-table),.m-table-wrap:has(>.vv-import-table){min-width:0;width:100%;overflow:visible}
  .vv-import-table,.vv-import-table tbody{display:block;width:100%;min-width:0!important}
  .vv-import-table thead{display:block}
  .vv-import-table thead tr{display:block;padding:8px 12px}
  .vv-import-table thead th{display:none}
  .vv-import-table thead th:first-child{display:flex;align-items:center;gap:10px;padding:0;border:0}
  .vv-import-table thead th:first-child::after{content:'Tout sélectionner';font-size:11px}
  .vv-import-table tbody tr{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(0,1fr);gap:10px 8px;padding:12px;border-bottom:1px solid var(--border-subtle,#303030)}
  .vv-import-table tbody td{display:block;min-width:0;padding:0!important;border:0!important;white-space:normal}
  .vv-import-table tbody td:first-child{grid-column:1;grid-row:1;align-self:center}
  .vv-import-table tbody td:nth-child(2){grid-column:2/-1}
  .vv-import-table tbody td:nth-child(3),.vv-import-table tbody td:nth-child(5){grid-column:2}
  .vv-import-table tbody td:nth-child(4),.vv-import-table tbody td:nth-child(6){grid-column:3}
  .vv-import-table tbody td:not(:first-child)::before{content:attr(data-label);display:block;margin-bottom:4px;font-size:9px;color:var(--text-muted,#8f8c86)}
  .vv-import-table input:not([type=checkbox]),.vv-import-table .vv-control{width:100%;min-width:0!important;max-width:100%;box-sizing:border-box}
  .vv-import-table .m-sub{font-size:9px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
}
@media(min-width:761px) and (max-width:980px){
 .vv-stock-head,.vv-stock-summary{grid-template-columns:minmax(190px,1.2fr) minmax(75px,.4fr) 40px minmax(155px,1fr) 40px;column-gap:12px;padding-left:13px;padding-right:13px}
 .vv-import-table{min-width:0!important;table-layout:fixed!important}
 .vv-import-table th,.vv-import-table td{padding:8px 6px!important;white-space:normal!important;overflow-wrap:anywhere}
 .vv-import-table th:first-child,.vv-import-table td:first-child{width:30px}
 .vv-import-table input:not([type=checkbox]),.vv-import-table .vv-control{min-width:0!important;width:100%;max-width:100%;box-sizing:border-box}
}

/* 0.4.8 — centered signature with dark login panel */
.login-layout{background:var(--canvas,#171717)}
.login-story{position:relative;background:linear-gradient(to bottom,#fff 0,#fff 172px,#1c1c1c 172px,#1c1c1c 100%)}
.login-story .brand{z-index:1;align-self:center}
.login-story .brand::before{border-radius:0;background-size:cover;box-shadow:none}
.login-panel{color-scheme:dark;background:var(--canvas,#171717);color:var(--text-primary,#f5f3ef)}
.login-panel .login-form input{background:var(--surface,#202020)}
@media(max-width:760px){
  .login-story{align-items:center;justify-content:center;background:#fff;color:#202422}
  .login-story .brand{align-self:center;margin-inline:auto}
}


/* 0.4.9 — minimal public login copy */
.login-form>.eyebrow,.login-form>h2,.login-form>p,.login-form form .field>small,.login-foot{display:none}

/* 0.4.10 — accessible compact field and mobile story */
.login-form form .field>span{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
@media(max-width:760px){
  .login-layout{display:flex;min-height:100dvh;flex-direction:column;background:var(--canvas,#171717)}
  .login-story{display:flex;min-height:0;padding:0;align-items:stretch;justify-content:flex-start;background:var(--canvas,#171717);color:var(--text-primary,#f5f3ef)}
  .login-story .brand{width:100%;min-height:250px;margin:0;padding:0 25px;flex:0 0 250px;align-self:stretch;justify-content:center;background:#fff}
  .login-story .brand::before{width:220px;min-height:66px;flex:0 0 220px;align-self:center}
  .login-copy{display:block;margin:0;padding:36px 25px 22px;background:var(--canvas,#171717)}
  .login-copy h1{margin:20px 0;font-size:clamp(36px,10vw,46px)}
  .login-copy p{font-size:14px;line-height:1.65}
  .login-tiles{margin-top:26px}
  .login-panel{min-height:220px;padding:16px 25px 60px;flex:1;align-items:flex-start}
}
@media(max-width:420px){
  .login-story .brand{min-height:220px;flex-basis:220px}
  .login-copy{padding-top:30px}
  .login-copy h1{font-size:36px}
  .login-tiles{gap:8px}
  .login-tiles span{width:88px;height:102px}
}
/* 0.4.11 — mobile form before supporting copy */
.login-submit svg{display:none}
@media(max-width:760px){
  .login-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto;align-content:start}
  .login-story,.login-panel,.login-copy,.login-form,.login-form>form{display:contents}
  .login-story .brand{grid-column:1;grid-row:1}
  .login-copy>.eyebrow{display:block;grid-column:1;grid-row:2;margin:36px 25px 0}
  .login-copy>h1{display:block;grid-column:1;grid-row:3;margin:16px 25px 0}
  .login-form form .field{grid-column:1;grid-row:4;width:min(400px,calc(100% - 50px));margin:30px auto 0}
  .login-submit{grid-column:1;grid-row:5;width:min(400px,calc(100% - 50px));margin:14px auto 0}
  .login-copy>p{grid-column:1;grid-row:6;margin:28px 25px 0}
  .login-tiles{grid-column:1;grid-row:7;margin:22px 25px 60px}
}
@media(max-width:420px){
  .login-copy>.eyebrow{margin-top:28px}
  .login-copy>h1{margin-top:14px}
  .login-form form .field{margin-top:24px}
  .login-copy>p{margin-top:24px}
  .login-tiles{margin:20px 25px 50px}
}
/* 0.4.12 — aligned mobile form and centered tiles */
@media(max-width:760px){
  .login-form form .field,.login-submit{width:calc(100% - 50px)}
  .login-tiles{justify-content:center}
}

/* 0.4.45 — center login illustrations in the space left below the supporting text. */
@media(max-width:760px){
  .login-layout{grid-template-rows:250px auto auto auto auto auto minmax(0,1fr);align-content:stretch}
  .login-tiles{align-self:center;margin:0 25px}
}
@media(max-width:420px){
  .login-layout{grid-template-rows:220px auto auto auto auto auto minmax(0,1fr)}
  .login-tiles{align-self:center;margin:0 25px}
}

/* 0.4.46 — center login illustrations in the desktop story column. */
@media(min-width:761px){
  .login-story{padding-bottom:16px}
  .login-copy{flex:1;min-height:0;width:100%;max-width:620px;align-self:center;margin:0;padding:0;display:grid;grid-template-rows:minmax(0,.62fr) auto auto auto minmax(0,1fr);text-align:center}
  .login-copy>.eyebrow{grid-row:2}
  .login-copy>h1{grid-row:3}
  .login-copy>p{grid-row:4}
  .login-tiles{grid-row:5;align-self:center;justify-content:center;margin:0}
}

/* 0.4.13 — simplified cart and compact top-aligned scanner */
.caisse-cart-category-back{display:grid;grid-template-columns:48px minmax(0,1fr) 24px;align-items:center;gap:10px;width:100%;min-height:58px;margin:0 0 12px;padding:6px;border:1px solid var(--border-subtle,#303030);border-radius:12px;background:var(--surface,#202020);color:var(--text-primary,#f5f3ef);font:inherit;text-align:left;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.caisse-cart-category-back:hover:not(:disabled){border-color:var(--border-control,#565656);background:var(--elevated,#272727);transform:translateY(-1px)}
.caisse-cart-category-back:focus-visible{outline:2px solid var(--focus-neutral,#d6d1c8);outline-offset:2px}
.caisse-cart-category-back:disabled{cursor:default;opacity:.68}
.caisse-cart-category-thumb{display:block;width:48px;height:46px;overflow:hidden;border-radius:9px;background:var(--elevated,#272727)}
.caisse-cart-category-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.caisse-cart-category-copy{display:grid;min-width:0;gap:2px}
.caisse-cart-category-copy small{color:var(--text-muted,#8f8c86);font-size:8px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
.caisse-cart-category-copy strong{overflow:hidden;font-size:11px;font-weight:620;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
.caisse-cart-category-arrow{color:var(--text-secondary,#b8b5af);font-size:17px;text-align:center}
.caisse-cart .pos-cart-lines{margin-top:0}
.vv-scanner{grid-template-rows:minmax(0,1fr) auto}
.vv-scanner-head{display:none}
@media(max-width:760px){
  .vv-scanner{grid-template-rows:minmax(0,1fr) auto}
  .vv-scanner-camera{width:calc(100% - 40px);margin:12px auto 0}
}

/* 0.4.14 — collapsed cart rows reveal price and quantity controls on demand */
.caisse-cart-line{padding:8px 2px 9px}
.caisse-cart-line-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:30px;padding:2px 0;list-style:none;cursor:pointer;border-radius:7px}
.caisse-cart-line-summary::-webkit-details-marker{display:none}
.caisse-cart-line-summary::marker{content:""}
.caisse-cart-line-summary:hover{color:#fff}
.caisse-cart-line-summary:focus-visible{outline:2px solid var(--focus-neutral,#d6d1c8);outline-offset:2px}
.caisse-cart-line-summary strong{min-width:0;overflow:hidden;font-size:12px;font-weight:560;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.caisse-cart-line-summary span{flex:none;color:var(--text-primary,#f5f3ef);font-size:12px;font-weight:620;font-variant-numeric:tabular-nums}
.caisse-cart-line-details{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px}
.caisse-cart-unit-price{min-width:0;color:var(--text-secondary,#b8b5af);font-size:10px;white-space:nowrap}
.caisse-cart-line-details .qty-control{margin-left:auto}

/* 0.4.15 — denser cart rows and camera scanner reserved for phones */
.caisse-camera-scanner{display:none!important}
.caisse-cart-line{padding:2px 2px 3px}
.caisse-cart-line-summary{min-height:27px;padding:0;gap:8px}
.caisse-cart-line-summary strong,.caisse-cart-line-summary span{font-size:11px}
.caisse-cart-line-details{margin-top:4px}
@media(min-width:761px){
  .topbar-page-slot .caisse-search-row{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:760px){
  .caisse-camera-scanner{display:inline-flex!important}
}

/* 0.4.16 — checkout actions at the top and camera-only cart scanner */
.caisse-cart-top-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;min-height:58px;margin:0 0 12px}
.caisse-cart-top-actions>.button{display:flex;min-width:0;min-height:58px;padding:5px 2px!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:10px;font-size:8px!important;line-height:1}
.caisse-cart-top-actions>.button svg{flex:none}
.caisse-cart-top-actions>.button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.caisse-cart-action{gap:0}
.vv-scanner-cart .vv-scan-ready,.vv-scanner-cart .vv-scan-manual{display:none}
.vv-scanner-cart .vv-scanner-work.is-idle{display:none}
.vv-scanner-cart .vv-scanner-foot{justify-content:flex-end}
.vv-scanner-cart .vv-scanner-foot>span{display:none}

/* 0.4.17 — safer checkout hierarchy and wider return content */
.caisse-cart-top-actions{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:50px 44px;gap:10px 8px;width:100%;min-height:104px;box-sizing:border-box}
.caisse-cart-top-actions>.button{min-height:44px;padding:8px 6px!important;flex-direction:row;gap:6px;font-size:9px!important}
.caisse-cart-top-actions>.caisse-cart-checkout{grid-column:1/-1;grid-row:1;min-height:50px;font-size:10px!important}
.caisse-cart-top-actions>.caisse-cart-cancel{grid-column:1;grid-row:2}
.caisse-cart-top-actions>.caisse-cart-order{grid-column:2;grid-row:2}
.caisse-cart-category-back{grid-template-columns:40px minmax(0,1fr) 18px;gap:7px;width:100%;min-width:0;min-height:64px;padding:5px;box-sizing:border-box}
.caisse-cart-category-thumb{width:40px;height:40px}
.caisse-cart-category-copy strong{display:-webkit-box;overflow:hidden;white-space:normal;text-overflow:clip;-webkit-box-orient:vertical;-webkit-line-clamp:2}

/* 0.4.18 — fixed top slot keeps cart lines vertically stable */
.caisse-cart-category-back,.caisse-cart-top-actions{width:100%;height:104px;min-height:104px;margin-bottom:12px;box-sizing:border-box}
.caisse-cart-category-back{grid-template-columns:56px minmax(0,1fr) 18px;padding:8px}
.caisse-cart-category-thumb{width:56px;height:56px}


/* 0.4.19 — settings in account menu and desktop scanner simulations */
.account-button .settings-status-dot{margin-left:auto}
.sidebar-collapsed .account-button{position:relative}
.sidebar-collapsed .account-button .settings-status-dot{position:absolute;top:7px;right:6px;width:6px;height:6px}
.vv-scan-simulations{display:none;align-items:center;gap:8px;min-width:0;flex:1}
.vv-scan-simulations button{min-height:42px;padding:9px 12px;border:1px solid #4b4b4b;border-radius:10px;background:#292929;color:#efede8;font:600 11px/1.15 Inter,system-ui,sans-serif;white-space:nowrap;cursor:pointer}
.vv-scan-simulations button:hover{background:#383838;color:#fff}
@media (any-hover:hover) and (any-pointer:fine){.vv-scanner-cart .vv-scanner-foot{justify-content:space-between}.vv-scanner-cart .vv-scan-simulations{display:flex}}
@media (max-width:520px) and (any-hover:hover) and (any-pointer:fine){.vv-scanner-cart .vv-scanner-foot{flex-wrap:wrap}.vv-scanner-cart .vv-scan-simulations{flex:1 1 100%}.vv-scanner-cart .vv-scan-simulations button{flex:1}.vv-scanner-cart .vv-scanner-foot>.vv-scan-primary{margin-left:auto}}

/* 0.4.20 — compact known and new product scanner states */
.vv-scanner-cart .vv-scan-active{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}
.vv-scanner-cart .vv-scan-product{grid-column:1;min-width:0}
.vv-scanner-cart .vv-scan-quantity{grid-column:2;min-width:0}
.vv-scanner-cart .vv-scan-presets{grid-column:1/-1;grid-template-columns:repeat(5,minmax(0,1fr))}
.vv-scan-create.is-cart>.vv-scan-create-name{grid-column:1/-1}
.vv-scan-create.is-cart>.vv-scan-create-price{grid-column:1}
.vv-scan-create.is-cart>.vv-scan-create-unit{grid-column:2}

/* 0.4.21 — focused quantity and optional hierarchical location */
.vv-scanner-cart .vv-scan-active{grid-template-rows:auto}
.vv-scan-location-toggle{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;min-height:40px;padding:8px 2px;border:0;border-top:1px solid #393531;background:transparent;color:#e6e3dd;font:600 12px/1 Inter,system-ui,sans-serif;text-align:left;cursor:pointer}
.vv-scan-location-toggle span{color:#aaa8a3;font-size:17px}
.vv-scan-location-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.vv-scan-location-fields label{display:grid;gap:5px;min-width:0}
.vv-scan-location-fields label>span{color:#aaa8a3;font-size:9px;font-weight:600;text-transform:uppercase}
@media(max-width:520px){.vv-scan-location-fields{grid-template-columns:1fr}}

/* 0.4.22 — cart list inside the known-product scanner state */
.vv-scan-cart-list{grid-column:1/-1;display:grid;gap:7px;min-width:0;padding-top:10px;border-top:1px solid #393939}
.vv-scan-cart-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#f5f3ef}
.vv-scan-cart-heading>strong{font-size:12px}
.vv-scan-cart-heading>span{color:#8f8d88;font-size:9px}
.vv-scan-cart-list>div:last-child{display:grid;max-height:min(26dvh,220px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#555 transparent}
.vv-scan-cart-list button{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:42px;padding:7px 9px;border:0;border-bottom:1px solid #333;background:transparent;color:#d8d5cf;text-align:left;cursor:pointer}
.vv-scan-cart-list button:first-child{border-radius:9px 9px 0 0}
.vv-scan-cart-list button:last-child{border-bottom:0;border-radius:0 0 9px 9px}
.vv-scan-cart-list button:only-child{border-radius:9px}
.vv-scan-cart-list button:hover,.vv-scan-cart-list button.is-active{background:#30302f;color:#fff}
.vv-scan-cart-list button>span{display:grid;min-width:0;gap:2px}
.vv-scan-cart-list button>span>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.vv-scan-cart-list button small{color:#92908b;font-size:9px}
.vv-scan-cart-list button>strong{font-size:12px;font-variant-numeric:tabular-nums}

/* 0.4.22 — fixed scanner prompt matching the known-product card */
.vv-scanner-cart .vv-scanner-work.is-idle{display:flex}
.vv-scanner-cart .vv-scan-ready,.vv-scanner-cart .vv-scan-active{min-height:82px;box-sizing:border-box}
.vv-scanner-cart .vv-scan-ready{display:flex;align-items:center;justify-content:center;padding:14px}
.vv-scanner-cart .vv-scan-ready svg,.vv-scanner-cart .vv-scan-ready>span{display:none}
.vv-scanner-cart .vv-scan-ready strong{font-size:14px}
.vv-scanner-cart .vv-scan-cart-list{width:100%;box-sizing:border-box}

/* 0.4.24 — scanner cards align with the camera preview */
.vv-scanner-cart .vv-scan-cart-list{padding-top:4px;border-top:0}
.vv-scanner-cart .vv-scan-cart-heading{padding-inline:12px}
@media(max-width:760px){.vv-scanner-cart .vv-scanner-work{padding-left:20px;padding-right:20px}.vv-scanner-cart .vv-scan-ready,.vv-scanner-cart .vv-scan-active,.vv-scanner-cart .vv-scan-unknown,.vv-scanner-cart .vv-scan-cart-list{width:100%;margin-inline:0;box-sizing:border-box}}


/* 0.4.25 — mobile cart handoff and action bar */
@media(min-width:761px){.caisse-mobile-cart.pos-cart{display:none!important}.sidebar-sale-active .sidebar>.sidebar-store,.sidebar-sale-active .sidebar>nav{display:none}.sidebar-sale-active.sidebar-collapsed{--sidebar-width:78px;grid-template-columns:78px minmax(0,1fr)}.sidebar-sale-active.sidebar-collapsed .caisse-sidebar-slot{display:none}.sidebar-sale-active.sidebar-collapsed .sidebar>.brand{min-height:56px;margin:12px 9px 10px;padding:0;justify-content:center}.sidebar-sale-active.sidebar-collapsed .sidebar>.brand::before{flex:0 0 56px;width:56px;height:56px;background-image:url("/brand/vivria-icon.png");background-size:150%}}
@media(max-width:760px){.caisse-mobile-cart.pos-cart{padding:16px 16px calc(94px + env(safe-area-inset-bottom));touch-action:pan-y}.caisse-mobile-cart .caisse-cart-mobile-actions{position:fixed;z-index:3;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0;padding:8px 8px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--border-subtle);background:color-mix(in srgb,var(--navigation) 96%,transparent);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.caisse-cart-mobile-actions>.button{display:flex;min-width:0;min-height:58px;padding:6px 2px!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:10px;font-size:9px!important;line-height:1}.caisse-cart-mobile-actions>.button span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.caisse-cart-mobile-return>span:first-child{font-size:20px;line-height:16px}}


/* 0.4.27 — category card replaces the desktop brand before cart mode */
@media(min-width:761px){.sidebar-sale-active .sidebar>.brand,.sidebar-category-active .sidebar>.brand{display:none}.sidebar-category-active:not(.sidebar-sale-active) .caisse-sidebar-slot{display:flex;order:-1;width:100%;min-height:0;flex:0 0 auto}.sidebar-category-active:not(.sidebar-sale-active) .caisse-sidebar-cart.pos-cart{width:100%;min-height:0;max-height:none;padding:0;flex:0 0 auto;overflow:visible}.sidebar-category-active:not(.sidebar-sale-active) .caisse-sidebar-cart .pos-cart-lines,.sidebar-category-active:not(.sidebar-sale-active) .caisse-sidebar-cart .caisse-cart-action{display:none}.sidebar-category-active:not(.sidebar-sale-active) .caisse-cart-category-back{margin:0}.sidebar-category-active.sidebar-collapsed:not(.sidebar-sale-active) .caisse-sidebar-slot{width:56px;align-self:center}.sidebar-category-active.sidebar-collapsed:not(.sidebar-sale-active) .caisse-cart-category-back{display:grid;width:56px;height:56px;min-height:56px;padding:0;grid-template-columns:56px;overflow:hidden}.sidebar-category-active.sidebar-collapsed:not(.sidebar-sale-active) .caisse-cart-category-thumb{width:56px;height:56px}.sidebar-category-active.sidebar-collapsed:not(.sidebar-sale-active) .caisse-cart-category-copy,.sidebar-category-active.sidebar-collapsed:not(.sidebar-sale-active) .caisse-cart-category-arrow{display:none}}


/* 0.4.28 — cart opens only from its summary on phones */
@media(max-width:760px){.caisse-mobile-cart.pos-cart{overscroll-behavior-x:contain}.caisse-mobile-cart .caisse-cart-mobile-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}


/* 0.4.29 — category card preserves the navigation baseline */
@media(min-width:761px){.sidebar-category-active:not(.sidebar-sale-active):not(.sidebar-collapsed) .caisse-sidebar-slot{width:auto;height:64px;min-height:64px;margin:12px 14px 10px;align-self:stretch;flex:0 0 64px}.sidebar-category-active:not(.sidebar-sale-active):not(.sidebar-collapsed) .caisse-sidebar-cart.pos-cart{height:64px;min-height:64px}.sidebar-category-active:not(.sidebar-sale-active):not(.sidebar-collapsed) .caisse-cart-category-back{height:64px;min-height:64px;padding:5px;grid-template-columns:40px minmax(0,1fr) 18px;gap:7px}.sidebar-category-active:not(.sidebar-sale-active):not(.sidebar-collapsed) .caisse-cart-category-thumb{width:40px;height:40px}}
.caisse-order-toast{position:fixed;z-index:95;left:50%;bottom:20px;width:max-content;max-width:calc(100vw - 32px);margin:0;padding:10px 14px;border:1px solid #fff;border-radius:10px;background:#fff;color:#171717;box-shadow:0 14px 40px #0007;transform:translateX(-50%)}.caisse-order-toast svg{color:#171717}@media(max-width:760px){.caisse-order-toast{bottom:calc(84px + env(safe-area-inset-bottom))}}


/* 0.4.30 — animated phone swipe navigation */
@media(max-width:760px){.caisse-product-section{touch-action:pan-y;overscroll-behavior-x:contain}.caisse-mobile-cart.pos-cart{will-change:transform}}


/* 0.4.33 — balanced checkout and in-app cancel confirmation */
.modal.caisse-cancel-modal{width:min(380px,calc(100vw - 28px))}.caisse-cancel-confirm{display:grid;gap:18px}.caisse-cancel-confirm p{margin:0}.caisse-cancel-confirm .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.caisse-cancel-confirm .button{width:100%}
@media(max-width:760px){.caisse-mobile-cart .caisse-cart-mobile-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 50vw}}


/* 0.4.33 — concise checkout and useful cart quantities */
.checkout-balance{display:flex;align-items:baseline;justify-content:flex-end;gap:8px;min-height:28px;padding:2px 0 4px;color:var(--text-primary,#f5f3ef);font-size:13px;font-variant-numeric:tabular-nums;text-align:right}.checkout-balance span,.checkout-balance strong{color:inherit;font-size:inherit;font-weight:600}


/* 0.4.33 — thumb-tracked mobile back gestures */
@media(max-width:760px){.caisse-product-section{will-change:transform;backface-visibility:hidden}.caisse-catalog-stage.is-products.is-swipe-back .caisse-category-section{visibility:visible!important;pointer-events:none;transform:translate3d(var(--vv-swipe-offset,-24px),0,0);opacity:var(--vv-swipe-under-opacity,.72)}.caisse-product-section.is-swipe-dragging{background:var(--canvas,#171717);box-shadow:-18px 0 42px #0008}.caisse-product-section.is-swipe-dragging,.caisse-mobile-cart.is-swipe-dragging{transition:none!important;user-select:none;cursor:grabbing}.caisse-mobile-cart.pos-cart{backface-visibility:hidden}}


/* 0.4.34 — restore interactive layers between repeated returns */
@media(max-width:760px){
 .caisse-catalog-stage.is-swipe-back .caisse-category-section{will-change:transform,opacity}
 .caisse-product-section.is-swipe-dragging{z-index:2}
 .caisse-product-section img{-webkit-user-drag:none;user-select:none}
 .caisse-mobile-cart.is-swipe-dragging{overflow-x:clip}
}

/* 0.4.36 — accept the first fresh tap on the revealed categories while the return settles */
@media(max-width:760px){
 .caisse-catalog-stage.is-products.is-swipe-ready .caisse-category-section{pointer-events:auto}
 .caisse-catalog-stage.is-products.is-swipe-ready .caisse-product-section{pointer-events:none}
}

/* 0.4.38 — the outgoing visual cannot intercept a new touch */
@media(max-width:760px){.caisse-product-section.is-swipe-closing,.caisse-mobile-cart.is-swipe-closing{pointer-events:none!important}}

/* 0.4.41 — Stocks and orders share the same compact responsive rhythm. */
.stocks-scan-topbar{display:none}
.approvisionnements-topbar{display:grid;width:100%;min-width:0;grid-template-columns:minmax(220px,.75fr) minmax(240px,1.25fr);gap:10px;align-items:center}
.approvisionnements-topbar>.approvisionnements-tabs{display:grid!important;grid-column:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;min-width:0}
body .topbar-approvisionnements .topbar-page-slot .approvisionnements-topbar>.approvisionnements-tabs{grid-column:1!important;grid-row:1!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
body .topbar-approvisionnements .topbar-page-slot .approvisionnements-topbar>.search{grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0}
.approvisionnements-orders{width:100%;min-width:0;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}
.approvisionnements-orders>.m-table{border:0;border-radius:0;background:transparent}
.approvisionnements-catalogues{width:100%;min-width:0;overflow-x:auto;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.approvisionnements-catalogues>.catalogue-table{width:100%;border:0;border-radius:0;background:transparent}

@media(max-width:980px) and (min-width:761px){
  body .topbar-stocks .topbar-page-slot .stocks-filters{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  body .stocks-filter .vv-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}
}

/* 0.4.43 — catalogue preview behaves like a compact editable spreadsheet. */
.approvisionnements-import{width:100%;min-width:0;overflow-x:auto;border:0;border-radius:0;background:transparent;box-shadow:none}
.approvisionnements-import .m-import-table{width:100%;min-width:690px!important;table-layout:fixed!important;border:0;border-collapse:collapse;background:transparent}
.approvisionnements-import .m-import-table th,.approvisionnements-import .m-import-table td{height:32px;padding:0!important;border:0;border-right:1px solid var(--border-subtle);border-bottom:1px solid var(--border-subtle);vertical-align:middle;background:transparent}
.approvisionnements-import .m-import-table th{height:30px;padding:0 6px!important;background:var(--elevated);font-size:9px;line-height:1.15;white-space:normal}
.approvisionnements-import .m-import-table th:first-child,.approvisionnements-import .m-import-table td:first-child{width:34px;text-align:center}
.approvisionnements-import .m-import-table th:nth-child(2),.approvisionnements-import .m-import-table td:nth-child(2){width:24%}
.approvisionnements-import .m-import-table th:nth-child(3),.approvisionnements-import .m-import-table td:nth-child(3){width:17%}
.approvisionnements-import .m-import-table th:nth-child(4),.approvisionnements-import .m-import-table td:nth-child(4){width:25%}
.approvisionnements-import .m-import-table th:nth-child(5),.approvisionnements-import .m-import-table td:nth-child(5){width:12%}
.approvisionnements-import .m-import-table th:nth-child(6),.approvisionnements-import .m-import-table td:nth-child(6){width:16%}
.approvisionnements-import .m-import-table input:not([type=checkbox]),.approvisionnements-import .m-import-table select,.approvisionnements-import .m-import-table .vv-control,.approvisionnements-import .m-import-table .vv-trigger{width:100%;min-width:0!important;max-width:100%;box-sizing:border-box}
.approvisionnements-import .m-import-table input:not([type=checkbox]),.approvisionnements-import .m-import-table select,.approvisionnements-import .m-import-table .vv-trigger{height:31px;min-height:31px;padding:3px 6px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--text-primary);font-size:11px}
.approvisionnements-import .m-import-table td:nth-child(6) input{text-align:right;font-variant-numeric:tabular-nums}
.approvisionnements-import .m-import-table input:not([type=checkbox]):focus,.approvisionnements-import .m-import-table select:focus,.approvisionnements-import .m-import-table .vv-control:focus-within .vv-trigger{outline:2px solid var(--vv-focus);outline-offset:-2px;background:var(--elevated)!important}
.approvisionnements-import .m-import-table input[type=checkbox]{width:16px!important;min-width:16px!important;max-width:16px!important;height:16px;margin:0;vertical-align:middle}

@media(max-width:760px){
  .approvisionnements-import .vv-import-table{display:table!important;width:100%!important;min-width:690px!important;table-layout:fixed!important}
  .approvisionnements-import .vv-import-table thead{display:table-header-group!important}
  .approvisionnements-import .vv-import-table tbody{display:table-row-group!important;width:auto!important}
  .approvisionnements-import .vv-import-table thead tr,.approvisionnements-import .vv-import-table tbody tr{display:table-row!important;height:32px;padding:0!important;border:0!important;background:transparent!important}
  .approvisionnements-import .vv-import-table th,.approvisionnements-import .vv-import-table td{display:table-cell!important;grid-column:auto!important;grid-row:auto!important;min-width:0;padding:0!important;white-space:normal}
  .approvisionnements-import .vv-import-table tbody td::before{display:none!important;content:none!important}
}

@media(max-width:760px){
  body .topbar-stocks .topbar-page-slot .stocks-filters{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px}
  body .topbar-stocks .stocks-filter{flex:1 1 calc((100% - 16px)/3);min-width:0}
  body .topbar-stocks .stocks-search{flex:1 1 calc(100% - 56px);min-width:0}
  .stocks-scan-topbar{display:grid;place-items:center;flex:0 0 48px;width:48px;height:46px;padding:0;border:1px solid var(--vv-line);border-radius:var(--vv-radius);background:var(--vv-field);color:var(--text-primary);cursor:pointer}
  .stocks-scan-topbar:disabled{opacity:.38;cursor:default}
  .stocks-scan-topbar:focus-visible{outline:2px solid var(--vv-focus);outline-offset:2px}
  .approvisionnements-topbar{grid-template-columns:1fr;gap:8px}
  body .topbar-approvisionnements .topbar-page-slot .approvisionnements-topbar>.approvisionnements-tabs{grid-column:1!important;grid-row:1!important}
  body .topbar-approvisionnements .topbar-page-slot .approvisionnements-topbar>.search{grid-column:1!important;grid-row:2!important}
  .approvisionnements-orders .m-table,.approvisionnements-orders .m-table tbody{display:block;width:100%;min-width:0!important;max-width:100%}
  .approvisionnements-orders .m-table{table-layout:fixed!important}
  .approvisionnements-orders .m-table thead{display:none}
  .approvisionnements-orders .m-table tr{display:grid;width:100%;max-width:100%;box-sizing:border-box;grid-template-columns:minmax(0,1fr) minmax(96px,auto);grid-template-rows:auto auto auto;gap:3px 12px;min-height:72px;padding:10px 12px;border-bottom:1px solid var(--border-subtle);overflow:hidden;background:transparent}
  .approvisionnements-orders .m-table td{display:block;min-width:0;padding:0;border:0}
  .approvisionnements-orders .m-table td:nth-child(1){grid-column:1;grid-row:1;align-self:center}
  .approvisionnements-orders .m-table td:nth-child(2){grid-column:2;grid-row:2;color:var(--text-muted);font-size:9px;text-align:right}
  .approvisionnements-orders .m-table td:nth-child(2)::after{content:" produit(s)"}
  .approvisionnements-orders .m-table td:nth-child(3){grid-column:1;grid-row:2;align-self:center}
  .approvisionnements-orders .m-table td:nth-child(4){grid-column:2;grid-row:1;align-self:center;justify-self:end;max-width:100%;white-space:nowrap;text-align:right;font-weight:650}
  .approvisionnements-orders .m-table td:nth-child(5){grid-column:1/-1;grid-row:3;align-self:center;justify-self:end;max-width:100%;text-align:right}
  .approvisionnements-orders .m-table td:nth-child(5) .button{max-width:100%;min-height:34px;padding:7px 9px;white-space:nowrap;font-size:10px}
  .approvisionnements-orders .m-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .approvisionnements-orders .m-sub{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* 0.4.44 — persistent catalogue workflow and row-level order interactions. */
.vv-order-row{touch-action:pan-y;-webkit-tap-highlight-color:transparent}
.vv-order-row.is-openable,.vv-order-row.has-actions{cursor:pointer}
.vv-order-row.is-openable:hover,.vv-order-row.has-actions:hover{background:color-mix(in srgb,var(--elevated,#242424) 72%,transparent)}
.vv-order-row:focus-visible{outline:2px solid var(--vv-focus);outline-offset:-2px;background:var(--elevated,#242424)}
.vv-order-row .m-title{display:block}
.vv-order-status,.vv-catalogue-status{display:inline-flex;align-items:center;width:max-content;max-width:100%;min-height:24px;padding:3px 8px;border-radius:7px;background:var(--elevated,#242424);color:var(--text-secondary,#c9c5bd);font-size:11px;font-weight:650;line-height:1.2;white-space:nowrap}
.vv-order-status.is-success,.vv-catalogue-status.is-success{background:#173426;color:#b8e5c8}
.vv-order-status.is-warning,.vv-catalogue-status.is-warning{background:#342b1e;color:#f2c879}
.vv-catalogue-status.is-error{background:#3a2020;color:#ffc3c3}
.vv-catalogue-status.is-working{background:#202e3c;color:#bddcff}

dialog.vv-work-modal{width:min(560px,calc(100vw - 32px));max-width:none;max-height:min(760px,calc(100dvh - 32px));padding:0;overflow:visible;border:0;border-radius:16px;background:transparent;color:var(--text-primary,#f5f3ef);box-shadow:0 28px 80px #000a}
dialog.vv-work-modal::backdrop{background:#000a;backdrop-filter:blur(5px)}
.vv-work-modal-panel{display:grid;grid-template-rows:auto minmax(0,1fr);max-height:min(760px,calc(100dvh - 32px));overflow:hidden;border:1px solid var(--border-subtle,#343434);border-radius:16px;background:var(--panel,#202020)}
.vv-work-modal-panel>header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px;padding:14px 18px;border-bottom:1px solid var(--border-subtle,#343434)}
.vv-work-modal-panel>header h2{min-width:0;margin:0;font-size:18px;line-height:1.25}
.vv-work-modal-panel>header button{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:0;border:0;border-radius:9px;background:transparent;color:inherit;cursor:pointer}
.vv-work-modal-panel>header button:hover{background:var(--elevated,#2a2a2a)}
.vv-work-modal-body{min-height:0;padding:18px;overflow:auto}
.vv-work-error{margin:0;padding:10px 12px;border-left:3px solid #d97272;background:#3a2020;color:#ffd1d1;font-size:12px}
.vv-order-actions{display:grid;gap:16px}
.vv-order-actions>label,.vv-catalogue-create>label:not(.vv-catalogue-auto){display:grid;gap:7px}
.vv-order-actions label>span,.vv-catalogue-create label>span{font-size:12px;font-weight:650;color:var(--text-secondary,#c9c5bd)}
.vv-order-actions input,.vv-order-actions select,.vv-catalogue-create input[type=text],.vv-catalogue-create input:not([type]){width:100%;min-height:44px;box-sizing:border-box;border:1px solid var(--border-subtle,#444);border-radius:10px;background:var(--field,#252525);color:var(--text-primary,#f5f3ef)}
.vv-order-actions-footer,.vv-catalogue-create-footer{display:grid;grid-template-columns:auto 1fr 1fr;gap:8px;padding-top:4px}
.vv-order-actions-footer .button,.vv-catalogue-create-footer .button{width:100%;min-height:42px}
.vv-order-actions-footer .button.danger{border-color:#784141;background:#4a2525;color:#ffd1d1}

.vv-catalogues,.vv-catalogue-detail{position:relative;min-width:0;width:100%}
.vv-catalogue-list{overflow-x:auto}
.vv-catalogue-list>.m-table{width:100%;min-width:690px;table-layout:fixed;border:0;border-collapse:collapse;background:transparent}
.vv-catalogue-list>.m-table th:first-child,.vv-catalogue-list-row td:first-child{width:78px;text-align:center}
.vv-catalogue-list>.m-table th:nth-child(2){width:40%}
.vv-catalogue-list>.m-table th:nth-child(3){width:22%}
.vv-catalogue-list>.m-table th:nth-child(4){width:12%}
.vv-catalogue-list-row{cursor:pointer}
.vv-catalogue-list-row:hover{background:var(--elevated,#242424)}
.vv-catalogue-list-row:focus-visible{outline:2px solid var(--vv-focus);outline-offset:-2px;background:var(--elevated,#242424)}
.vv-catalogue-list-row td:nth-child(2) strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vv-file-format{position:relative;display:inline-flex;align-items:flex-end;justify-content:center;box-sizing:border-box;width:38px;height:42px;padding:0 2px 5px;border:1.5px solid currentColor;border-radius:5px;background:color-mix(in srgb,currentColor 13%,transparent);vertical-align:middle}
.vv-file-format::before{position:absolute;top:-1.5px;right:-1.5px;width:11px;height:11px;content:"";border-left:1.5px solid currentColor;border-bottom:1.5px solid currentColor;border-radius:0 4px 0 3px;background:var(--navigation,#1f1f1f)}
.vv-file-format>span{font-size:9px;font-weight:800;line-height:1;letter-spacing:-.25px}
.vv-file-format.is-pdf{color:#f08783}
.vv-file-format.is-sheet{color:#80d6a2}
.vv-file-format.is-document{color:#a9c7e7}
.vv-catalogue-add svg{display:block;width:28px;height:28px}
.vv-catalogue-validate svg{display:block;width:27px;height:27px;stroke-width:2.2}
.vv-catalogue-validate:disabled{opacity:.5;cursor:default}
.topbar-catalogues{position:relative;z-index:20;overflow:visible}
.vv-catalogue-topbar{display:flex;width:100%;min-width:0;align-items:center;gap:8px}
.vv-catalogue-topbar-back{display:grid;flex:none;place-items:center;width:40px;height:40px;padding:0;border:1px solid var(--border-subtle,#444);border-radius:10px;background:var(--elevated,#292929);color:var(--text-primary,#f5f3ef);cursor:pointer}
.vv-catalogue-topbar-back svg{width:21px;height:21px}
.vv-catalogue-topbar-title{display:block;flex:1;min-width:0;min-height:44px;overflow:hidden;padding:0 10px;color:var(--text-primary,#f5f3ef);font-family:inherit;font-size:17px;font-weight:650;line-height:44px;text-align:left;text-overflow:ellipsis;white-space:nowrap}
.vv-catalogue-topbar-menu{position:relative;flex:none}
.vv-catalogue-menu-trigger{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid var(--border-subtle,#444);border-radius:10px;background:var(--elevated,#292929);color:var(--text-primary,#f5f3ef);cursor:pointer}
.vv-catalogue-menu-trigger svg{width:22px;height:22px}
.vv-catalogue-menu-trigger:hover,.vv-catalogue-menu-trigger[aria-expanded=true]{background:#393939}
.vv-catalogue-topbar-back:focus-visible,.vv-catalogue-menu-trigger:focus-visible,.vv-catalogue-menu button:focus-visible,.vv-catalogue-menu a:focus-visible{outline:2px solid var(--vv-focus);outline-offset:2px}
.vv-catalogue-menu-trigger:disabled{opacity:.45;cursor:default}
.vv-catalogue-menu{position:absolute;z-index:100;top:calc(100% + 8px);right:0;display:grid;width:min(250px,calc(100vw - 32px));padding:5px;border:1px solid var(--border-subtle,#444);border-radius:12px;background:var(--navigation,#202020);box-shadow:0 12px 28px #0008}
.vv-catalogue-menu button,.vv-catalogue-menu a{display:flex;align-items:center;width:100%;min-height:40px;box-sizing:border-box;padding:7px 12px;border:0;border-radius:7px;background:transparent;color:var(--text-primary,#f5f3ef);font:inherit;font-size:13px;text-align:left;text-decoration:none;cursor:pointer}
.vv-catalogue-menu button:hover:not(:disabled),.vv-catalogue-menu a:hover{background:var(--elevated,#343434)}
.vv-catalogue-menu button:disabled{opacity:.42;cursor:default}
.vv-catalogue-menu button.is-danger{color:#f3aaa5}
.vv-catalogue-action-form{display:grid;gap:14px}
.vv-catalogue-action-form>label{display:grid;gap:7px}
.vv-catalogue-action-form label>span{font-size:12px;font-weight:650;color:var(--text-secondary,#c9c5bd)}
.vv-catalogue-action-form input{width:100%;min-height:44px;box-sizing:border-box;padding:0 12px;border:1px solid var(--border-subtle,#444);border-radius:10px;background:var(--field,#252525);color:var(--text-primary,#f5f3ef)}
.vv-catalogue-action-form p{margin:0;line-height:1.5}
.vv-catalogue-action-buttons{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.vv-catalogue-action-buttons .button{min-height:42px}
.vv-catalogue-action-buttons .button.danger{border-color:#784141;background:#4a2525;color:#ffd1d1}
.vv-catalogue-notice{margin:0 0 10px;padding:9px 12px;color:var(--text-primary,#f5f3ef);font-size:12px}
.vv-catalogue-progress{display:flex;align-items:center;gap:9px;margin:10px 0;padding:9px 12px;color:var(--text-secondary,#c9c5bd);font-size:12px}
.vv-catalogue-progress>span{width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:vv-spin .8s linear infinite}
@keyframes vv-spin{to{transform:rotate(360deg)}}
.vv-catalogue-empty{padding:42px 16px;text-align:center;color:var(--text-muted,#9d9990)}
.vv-catalogue-grid{margin-top:0;max-width:100%}
.vv-catalogue-grid .m-import-table{width:100%;min-width:1260px!important;table-layout:fixed!important}
.vv-catalogue-grid .m-import-table th:first-child,.vv-catalogue-grid .m-import-table td:first-child{width:34px}
.vv-catalogue-grid .m-import-table th:nth-child(2),.vv-catalogue-grid .m-import-table td:nth-child(2){width:170px}
.vv-catalogue-grid .m-import-table th:nth-child(3),.vv-catalogue-grid .m-import-table td:nth-child(3){width:125px}
.vv-catalogue-grid .m-import-table th:nth-child(4),.vv-catalogue-grid .m-import-table td:nth-child(4){width:120px}
.vv-catalogue-grid .m-import-table th:nth-child(5),.vv-catalogue-grid .m-import-table td:nth-child(5){width:175px}
.vv-catalogue-grid .m-import-table th:nth-child(6),.vv-catalogue-grid .m-import-table td:nth-child(6){width:80px}
.vv-catalogue-grid .m-import-table th:nth-child(7),.vv-catalogue-grid .m-import-table td:nth-child(7){width:135px}
.vv-catalogue-grid .m-import-table th:nth-child(8),.vv-catalogue-grid .m-import-table td:nth-child(8){width:115px}
.vv-catalogue-grid .m-import-table th:nth-child(9),.vv-catalogue-grid .m-import-table td:nth-child(9),.vv-catalogue-grid .m-import-table th:nth-child(10),.vv-catalogue-grid .m-import-table td:nth-child(10){width:105px}
.vv-catalogue-grid .m-import-table th:nth-child(11),.vv-catalogue-grid .m-import-table td:nth-child(11){width:74px}
.vv-catalogue-grid .m-import-table input:not([type=checkbox]),.vv-catalogue-grid .m-import-table .vv-trigger{height:31px;min-height:31px;width:100%;padding:3px 6px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--text-primary,#f5f3ef);font-size:11px}
.vv-catalogue-grid .m-import-table .vv-trigger{display:flex}
.vv-catalogue-grid .m-import-table input:disabled,.vv-catalogue-grid .m-import-table .vv-trigger:disabled{opacity:.62}
.vv-catalogue-grid .m-import-table tr.is-imported{background:#17342655}
.vv-catalogue-confidence{display:block;overflow:hidden;padding:0 5px;color:var(--text-secondary,#c9c5bd);font-size:10px;text-align:right;text-overflow:ellipsis;white-space:nowrap}
.vv-catalogue-create{display:grid;gap:17px}
.vv-catalogue-create input[type=file]{width:100%;min-height:46px;box-sizing:border-box;padding:8px;border:1px solid var(--border-subtle,#444);border-radius:10px;background:var(--field,#252525);color:var(--text-primary,#f5f3ef)}
.vv-catalogue-create input[type=file]::file-selector-button{height:30px;margin-right:10px;padding:0 12px;border:0;border-radius:7px;background:var(--elevated,#343434);color:inherit;cursor:pointer}
.vv-catalogue-auto{display:flex;align-items:flex-start;gap:11px;padding:12px 0}
.vv-catalogue-auto>input{flex:0 0 18px;width:18px;height:18px;margin:2px 0 0}
.vv-catalogue-auto>span{display:grid;gap:4px}
.vv-catalogue-auto small{font-weight:400;line-height:1.4;color:var(--text-muted,#9d9990)}
.vv-catalogue-create-footer{grid-template-columns:1fr 1fr}

@media(max-width:760px){
  .approvisionnements-orders .m-table tr.vv-order-row{grid-template-columns:minmax(0,1fr) minmax(96px,auto);grid-template-rows:auto auto;gap:4px 12px;min-height:66px;padding:10px 12px}
  .approvisionnements-orders .m-table tr.vv-order-row td:nth-child(1){grid-column:1;grid-row:1}
  .approvisionnements-orders .m-table tr.vv-order-row td:nth-child(2){grid-column:2;grid-row:2}
  .approvisionnements-orders .m-table tr.vv-order-row td:nth-child(3){grid-column:1;grid-row:2}
  .approvisionnements-orders .m-table tr.vv-order-row td:nth-child(4){grid-column:2;grid-row:1}
  dialog.vv-work-modal{position:fixed;inset:auto 0 0 0;width:100vw;max-height:calc(100dvh - 36px);margin:0;border-radius:18px 18px 0 0}
  .vv-work-modal-panel{max-height:calc(100dvh - 36px);border-width:1px 0 0;border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom)}
  .vv-work-modal-body{padding:16px}
  .vv-order-actions-footer{grid-template-columns:1fr 1fr}
  .vv-order-actions-footer .button:first-child{grid-column:1/-1;grid-row:2}
  .vv-catalogue-list>.m-table,.vv-catalogue-list>.m-table tbody{display:block;width:100%;min-width:0}
  .vv-catalogue-list>.m-table thead{display:none}
  .vv-catalogue-list>.m-table tr.vv-catalogue-list-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:4px 10px;min-height:68px;padding:10px 12px;border-bottom:1px solid var(--border-subtle,#343434)}
  .vv-catalogue-list>.m-table td{display:block;min-width:0;padding:0;border:0}
  .vv-catalogue-list>.m-table tr:not(.vv-catalogue-list-row) td{width:100%;box-sizing:border-box}
  .vv-catalogue-list>.m-table .vv-catalogue-list-row td:nth-child(1){grid-column:1;grid-row:1/3;align-self:center;width:40px}
  .vv-catalogue-list>.m-table .vv-catalogue-list-row td:nth-child(2){grid-column:2;grid-row:1;align-self:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .vv-catalogue-list>.m-table .vv-catalogue-list-row td:nth-child(3){grid-column:2;grid-row:2;color:var(--text-muted,#9d9990);font-size:10px}
  .vv-catalogue-list>.m-table .vv-catalogue-list-row td:nth-child(4){grid-column:3;grid-row:2;color:var(--text-muted,#9d9990);font-size:10px}
  .vv-catalogue-list>.m-table .vv-catalogue-list-row td:nth-child(4)::after{content:" produit(s)"}
  .vv-catalogue-list>.m-table .vv-catalogue-list-row td:nth-child(5){grid-column:3;grid-row:1;justify-self:end}
  .vv-catalogue-topbar-title{min-height:40px;font-size:15px;line-height:40px}
  .vv-catalogue-grid{margin-inline:0}
  .vv-catalogue-create-footer{grid-template-columns:1fr 1fr}
}
/* 0.4.47 — keep work tables inside the space left by the desktop sidebar. */
@media(min-width:761px) and (max-width:1020px){
  .vv-stock-head,.vv-stock-summary{grid-template-columns:minmax(155px,1.15fr) minmax(55px,.35fr) 32px minmax(100px,1fr) 58px;column-gap:8px;padding-inline:12px}
}
@media(min-width:761px) and (max-width:850px){
  .topbar.topbar-stocks{height:auto;min-height:72px;padding-block:10px}
  body .topbar-stocks .topbar-page-slot .stocks-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
  body .topbar-stocks .topbar-page-slot .stocks-search{grid-column:1/-1;width:100%;min-width:0}
}
@media(min-width:761px) and (max-width:930px){
  .approvisionnements-orders>.m-table{width:100%;min-width:0!important;table-layout:fixed!important}
  .approvisionnements-orders>.m-table th,.approvisionnements-orders>.m-table td{padding-inline:9px!important;overflow:hidden}
  .approvisionnements-orders>.m-table th:nth-child(1){width:47%}
  .approvisionnements-orders>.m-table th:nth-child(2){width:15%}
  .approvisionnements-orders>.m-table th:nth-child(3){width:22%}
  .approvisionnements-orders>.m-table th:nth-child(4){width:16%}
  .approvisionnements-orders .m-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .approvisionnements-orders .m-num{white-space:nowrap}
}
@media(min-width:901px) and (max-width:1000px){
  .families-page .m-table{width:100%;min-width:0!important;table-layout:fixed!important}
  .families-page .m-table th,.families-page .m-table td{padding-inline:8px!important;overflow:hidden;white-space:normal;overflow-wrap:anywhere}
  .families-page .m-table th:nth-child(1){width:23%}
  .families-page .m-table th:nth-child(2){width:21%}
  .families-page .m-table th:nth-child(3){width:17%}
  .families-page .m-table th:nth-child(4){width:24%}
  .families-page .m-table th:nth-child(5){width:15%}
  .families-page .m-table td:last-child{white-space:nowrap}
}
@media(max-width:900px){
  .families-page>.m-table-wrap{width:100%;min-width:0;overflow:visible;border:0;border-radius:0}
  .families-page .m-table,.families-page .m-table tbody{display:block;width:100%;min-width:0!important;max-width:100%}
  .families-page .m-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  .families-page .m-table tbody tr{display:grid;width:100%;box-sizing:border-box;grid-template-columns:minmax(0,1fr) minmax(105px,auto);grid-template-rows:auto auto auto;gap:4px 12px;padding:12px 13px;border-bottom:1px solid var(--border-subtle,#303030)}
  .families-page .m-table tbody td{display:block;min-width:0;padding:0!important;border:0!important;white-space:normal;overflow-wrap:anywhere}
  .families-page .m-table tbody td:nth-child(1){grid-column:1;grid-row:1}
  .families-page .m-table tbody td:nth-child(2){grid-column:1;grid-row:2}
  .families-page .m-table tbody td:nth-child(3){grid-column:1;grid-row:3}
  .families-page .m-table tbody td:nth-child(4){grid-column:2;grid-row:1/3;text-align:right}
  .families-page .m-table tbody td:nth-child(5){grid-column:2;grid-row:3;justify-self:end;align-self:end}
  .families-page .m-table tbody td:nth-child(2)::before,.families-page .m-table tbody td:nth-child(3)::before,.families-page .m-table tbody td:nth-child(4)::before{display:block;color:var(--text-muted,#8f8c86);font-size:9px;line-height:1.4}
  .families-page .m-table tbody td:nth-child(2)::before{content:'Contact'}
  .families-page .m-table tbody td:nth-child(3)::before{content:'Cadence'}
  .families-page .m-table tbody td:nth-child(4)::before{content:'Passages'}
  .families-page .m-table .m-link{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left}
  .families-page .m-table tbody td:nth-child(5) .button{max-width:100%;min-height:34px;padding:7px 10px;white-space:nowrap}
}
/* 0.4.48 — opened stock details must also fit beside the sidebar. */
@media(min-width:761px) and (max-width:1020px){
  .vv-stock-details{grid-template-columns:minmax(0,1fr) minmax(140px,220px);gap:10px;padding:8px 12px 16px}
  .vv-stock-side{min-width:0}
  .vv-stock-barcode strong{max-width:100%}
}
/* 0.4.49 — let stock action buttons fit their labels at every width. */
.vv-stock-actions{max-width:100%;flex-wrap:wrap}
.vv-stock-actions button{flex:0 0 auto!important;width:auto!important;min-width:0!important;padding:0 10px!important;white-space:nowrap}
@media(max-width:480px){
  .vv-stock-details{grid-template-columns:minmax(0,1fr);gap:8px}
  .vv-stock-side{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;gap:7px;min-width:0}
  .vv-stock-barcode{justify-items:start}
  .vv-stock-actions{justify-content:flex-start}
}
/* 0.4.50 — independent Orders and Catalogues pages, with Clients in navigation. */
.approvisionnements-topbar.vv-route-topbar{grid-template-columns:minmax(0,1fr);gap:0}
body .topbar-approvisionnements .topbar-page-slot .vv-route-topbar>.search{grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0}
@media(max-width:760px){
  .mobile-nav{gap:2px}
  .mobile-nav a span,.mobile-nav .mobile-nav-more span{font-size:8px;letter-spacing:-.15px}
}
@media(max-width:360px){
  .mobile-nav a,.mobile-nav .mobile-nav-more{padding-inline:0}
  .mobile-nav a span,.mobile-nav .mobile-nav-more span{font-size:7px;letter-spacing:-.5px}
}
/* 0.4.57 — shared dossiers and planning. */
.vv-dossiers{color:var(--text-primary);min-width:0}
.vv-dossier-header{display:flex;justify-content:space-between;align-items:flex-end;gap:22px;margin-bottom:24px}
.vv-dossier-header h1{margin:4px 0 5px;font-size:clamp(25px,2.5vw,34px);letter-spacing:-.035em}
.vv-dossier-header p{margin:0;color:var(--text-muted);font-size:13px}
.vv-eyebrow{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted)}
.vv-dossier-tabs{display:flex;gap:4px;padding:4px;background:var(--selected);border:1px solid var(--border-subtle);border-radius:12px}
.vv-dossier-tabs a{min-width:92px;text-align:center;padding:9px 14px;border-radius:9px;color:var(--text-secondary);font-size:13px}
.vv-dossier-tabs a[aria-current=page]{background:var(--surface);color:var(--text-primary);box-shadow:0 2px 10px #0002}
.vv-dossier-toolbar,.vv-planning-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.vv-dossier-toolbar>input[type=search]{flex:1 1 220px}.vv-dossier-toolbar>select{flex:0 1 200px}
.vv-planning-toolbar>select{flex:1 1 190px;max-width:280px}
.vv-dossiers input:not([type=checkbox]):not([type=color]),.vv-dossiers select,.vv-dossiers textarea,.vv-dossier-form input:not([type=checkbox]):not([type=color]),.vv-dossier-form select,.vv-dossier-form textarea{min-height:42px;border:1px solid var(--border-control);border-radius:9px;background:var(--surface);color:var(--text-primary);padding:8px 12px;outline:none;max-width:100%}
.vv-dossiers input:focus-visible,.vv-dossiers select:focus-visible,.vv-dossiers textarea:focus-visible,.vv-dossier-form input:focus-visible,.vv-dossier-form select:focus-visible,.vv-dossier-form textarea:focus-visible{border-color:var(--focus-neutral);outline:2px solid var(--focus-neutral);outline-offset:1px}
.vv-dossiers .button{white-space:nowrap}.vv-inactive-switch,.vv-check{display:flex!important;align-items:center;gap:8px;white-space:nowrap;color:var(--text-secondary);font-size:12px}
.vv-inactive-switch input,.vv-check input{accent-color:var(--action-neutral)}
.vv-inline-alert,.vv-inline-success{padding:11px 14px;border-radius:9px;margin:0 0 15px;font-size:12px}
.vv-inline-alert{color:var(--amber);background:color-mix(in srgb,var(--amber) 9%,transparent)}
.vv-inline-success{color:var(--green);background:color-mix(in srgb,var(--green) 10%,transparent)}
.vv-dossier-list{display:grid;gap:8px}.vv-dossier-row{display:grid;grid-template-columns:42px minmax(140px,1.4fr) minmax(120px,1.2fr) minmax(90px,.7fr) minmax(90px,.7fr) 12px;align-items:center;gap:14px;width:100%;padding:14px 16px;text-align:left;background:var(--surface);color:var(--text-primary);border:1px solid var(--border-subtle);border-radius:12px;cursor:pointer}
.vv-dossier-row:hover{background:var(--hover);border-color:var(--border-control)}
.vv-dossier-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:color-mix(in srgb,var(--action-neutral) 18%,var(--surface));color:var(--text-primary);font-weight:650}
.vv-dossier-identity{min-width:0}.vv-dossier-identity strong{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vv-dossier-identity small,.vv-dossier-last small{display:block;margin-top:4px;color:var(--text-muted);font-size:11px}
.vv-dossier-badges,.vv-profile-tags{display:flex;flex-wrap:wrap;gap:5px}.vv-category-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:30px;background:color-mix(in srgb,var(--tag-color) 15%,transparent);color:var(--tag-color);border:1px solid color-mix(in srgb,var(--tag-color) 28%,transparent);font-size:11px;font-weight:550;white-space:nowrap}
.vv-dossier-last{font-size:12px;color:var(--text-secondary)}.vv-dossier-arrow{font-size:24px;color:var(--text-muted)}
.vv-dossier-empty{display:grid;justify-items:start;gap:7px;padding:26px;background:var(--surface);border:1px dashed var(--border-control);border-radius:12px;color:var(--text-muted)}
.vv-dossier-empty h2,.vv-dossier-empty p{margin:0}.vv-dossier-empty h2{font-size:16px;color:var(--text-primary)}
.vv-calendar-navigation{display:flex;align-items:center;gap:6px;margin-right:auto}.vv-calendar-navigation .button{min-width:36px;padding:8px}.vv-calendar-navigation strong{margin-left:10px;text-transform:capitalize;font-size:15px;white-space:nowrap}
.vv-dossiers .vv-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;padding:0;border:1px solid var(--border-subtle);border-radius:12px;overflow:hidden;background:var(--surface)}
.vv-calendar-weekday{text-align:center;padding:12px 4px;font-size:11px;color:var(--text-muted);border-bottom:1px solid var(--border-subtle)}
.vv-calendar-day{display:flex;flex-direction:column;min-width:0;min-height:105px;padding:9px;text-align:left;color:var(--text-primary);background:transparent;border:0;border-right:1px solid var(--border-subtle);border-bottom:1px solid var(--border-subtle);cursor:pointer}
.vv-calendar-day:nth-child(7n){border-right:0}.vv-calendar-day:hover{background:var(--hover)}.vv-calendar-day.outside{opacity:.42}.vv-calendar-day.selected{background:color-mix(in srgb,var(--action-neutral) 13%,var(--surface))}
.vv-calendar-number{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;font-size:12px}.vv-calendar-day.today .vv-calendar-number{background:var(--action-neutral);color:var(--on-action-neutral)}
.vv-calendar-events{display:grid;gap:3px;min-width:0;margin-top:5px}.vv-calendar-event{display:block;min-width:0;padding:4px 6px;border-radius:5px;background:color-mix(in srgb,var(--action-neutral) 13%,transparent);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.vv-calendar-event time{font-weight:700}
.vv-calendar-event.status-present{background:color-mix(in srgb,var(--green) 17%,transparent)}.vv-calendar-event.status-absent{background:color-mix(in srgb,var(--amber) 19%,transparent)}
.vv-agenda{margin-top:20px}.vv-agenda-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:10px}.vv-agenda-head h2{margin:0;font-size:18px;text-transform:capitalize}.vv-agenda-head span{font-size:12px;color:var(--text-muted)}
.vv-agenda-event{display:grid;grid-template-columns:75px minmax(120px,1fr) auto auto;gap:16px;align-items:center;padding:14px 16px;margin-bottom:7px;border:1px solid var(--border-subtle);border-radius:10px;background:var(--surface)}
.vv-agenda-time small,.vv-agenda-person span{display:block;margin-top:4px;color:var(--text-muted);font-size:11px}.vv-agenda-person p{margin:6px 0 0;color:var(--text-secondary);font-size:12px}
.vv-attendance-chip{border-radius:20px;padding:5px 9px;font-size:11px;background:var(--selected);white-space:nowrap}.vv-attendance-chip.status-present{color:var(--green)}.vv-attendance-chip.status-absent{color:var(--amber)}
.vv-agenda-actions{display:flex;gap:5px}.vv-agenda-actions button{background:transparent;color:var(--text-secondary);border:1px solid var(--border-control);border-radius:7px;padding:7px 9px;cursor:pointer;font-size:11px}.vv-agenda-actions button:hover{color:var(--text-primary);background:var(--hover)}
.vv-profile{display:grid;gap:22px}.vv-profile-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:15px}.vv-profile-intro p{margin:5px 0 12px;color:var(--text-secondary);font-size:12px}.vv-profile-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.vv-profile-section{border-top:1px solid var(--border-subtle);padding-top:16px}.vv-profile-section h3{font-size:15px;margin:0 0 12px}.vv-profile-section h3 small{color:var(--text-muted);font-size:12px}.vv-muted{color:var(--text-muted);font-size:12px}.vv-note{white-space:pre-wrap;color:var(--text-secondary);font-size:13px}
.vv-history-list,.vv-purchases{display:grid;gap:7px;max-height:400px;overflow:auto}.vv-history-row,.vv-purchase{padding:10px 12px;border:1px solid var(--border-subtle);border-radius:9px}.vv-history-row time{display:block;color:var(--text-muted);font-size:11px}.vv-history-row strong{font-size:12px}.vv-history-row small{margin-left:8px;color:var(--green)}.vv-history-row p{margin:6px 0 0;white-space:pre-wrap;font-size:12px;color:var(--text-secondary)}
.vv-purchase header{display:flex;justify-content:space-between;gap:10px;font-size:12px}.vv-purchase header span{font-weight:700}.vv-purchase ul{margin:8px 0 0;padding-left:20px;color:var(--text-secondary);font-size:11px}
.vv-dossier-form{display:grid;gap:16px}.vv-dossier-form>label,.vv-form-grid>label{display:grid;gap:7px;font-size:12px;color:var(--text-secondary)}.vv-dossier-form input:not([type=checkbox]),.vv-dossier-form select,.vv-dossier-form textarea{width:100%}.vv-dossier-form textarea{min-height:82px;resize:vertical}.vv-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.vv-form-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding-top:8px}.vv-category-choices,.vv-slot-selection{border:1px solid var(--border-subtle);border-radius:10px;padding:12px}.vv-category-choices legend,.vv-slot-selection legend{padding:0 5px;font-size:12px;color:var(--text-secondary)}.vv-category-choices{display:flex;flex-wrap:wrap;gap:8px}.vv-category-choices label{display:flex;align-items:center;gap:5px}.vv-slot-selection>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;max-height:190px;overflow:auto;margin-top:8px}.vv-slot-selection label{display:flex;align-items:center;gap:9px;padding:7px;border-radius:7px;background:var(--selected);font-size:12px}.vv-slot-selection label small{display:block;color:var(--text-muted);font-size:10px}.vv-managed-categories{display:flex;flex-wrap:wrap;gap:6px}.vv-managed-categories button{display:flex;align-items:center;gap:8px;padding:3px;border:0;background:transparent;color:var(--text-muted);cursor:pointer;font-size:11px}
@media(max-width:1050px){.vv-dossier-row{grid-template-columns:42px minmax(120px,1fr) minmax(90px,1fr) 12px}.vv-dossier-last{display:none}.vv-agenda-event{grid-template-columns:62px minmax(100px,1fr) auto}.vv-agenda-actions{grid-column:2/-1}}
@media(max-width:760px){.vv-dossier-header{align-items:stretch;flex-direction:column;margin-bottom:16px;gap:14px}.vv-dossier-tabs{align-self:stretch}.vv-dossier-tabs a{flex:1}.vv-dossier-toolbar>input[type=search]{flex-basis:100%}.vv-dossier-toolbar>select{flex:1 1 150px}.vv-dossier-toolbar .button{flex:1}.vv-dossier-row{grid-template-columns:36px minmax(0,1fr) 12px;gap:10px;padding:12px}.vv-dossier-avatar{width:36px;height:36px}.vv-dossier-badges{grid-column:2;grid-row:2}.vv-dossier-arrow{grid-column:3;grid-row:1/3}.vv-planning-toolbar .button.primary{width:100%}.vv-calendar-day{min-height:57px;padding:4px}.vv-calendar-number{width:21px;height:21px;font-size:10px}.vv-calendar-event{font-size:0;width:7px;height:7px;padding:0;border-radius:50%;display:inline-block;margin-right:2px}.vv-calendar-event time{display:none}.vv-calendar-events{display:flex;flex-wrap:wrap;gap:0;margin-top:2px}.vv-calendar-weekday{padding:7px 2px}.vv-calendar-navigation{width:100%;justify-content:space-between}.vv-calendar-navigation strong{margin-left:auto;font-size:13px}.vv-agenda-event{grid-template-columns:60px minmax(0,1fr);gap:9px}.vv-attendance-chip{grid-column:2;justify-self:start}.vv-agenda-actions{grid-column:1/-1;justify-content:flex-end}.vv-profile-intro{flex-direction:column}.vv-profile-actions{justify-content:flex-start}.vv-form-grid,.vv-slot-selection>div{grid-template-columns:1fr}}
@media print{.vv-dossier-tabs,.vv-dossier-toolbar,.vv-planning-toolbar,.vv-profile-actions,.vv-agenda-actions{display:none!important}.vv-calendar-day{min-height:85px}.vv-calendar-event{font-size:10px;width:auto;height:auto;padding:4px}}

/* Dossiers and Planning use the shared page top bar and an independent add action. */
.topbar.topbar-dossiers,.topbar.topbar-planning{height:auto;min-height:72px;padding:8px 15px}
.topbar.topbar-dossiers .topbar-page-slot,.topbar.topbar-planning .topbar-page-slot{overflow:visible}
.vv-dossiers-topbar{display:block;width:100%;min-width:0}
.vv-dossier-topbar-filters,.vv-planning-topbar-filters{display:grid;width:100%;min-width:0;align-items:center;gap:8px}
.vv-dossier-topbar-filters{grid-template-columns:minmax(150px,1fr) minmax(180px,280px)}
.vv-planning-topbar-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
.vv-category-filter-control{display:flex;align-items:stretch;min-width:0;height:44px;border:1px solid var(--vv-line);border-radius:var(--vv-radius);background:var(--vv-field)}
.vv-category-filter-control:focus-within{outline:2px solid var(--vv-focus);outline-offset:2px}
.vv-category-filter-control>.vv-control{flex:1 1 auto;min-width:0}
.vv-category-filter-control>.vv-control>.vv-trigger{min-height:42px;height:42px;border:0;border-radius:var(--vv-radius) 0 0 var(--vv-radius);background:transparent;outline:0}
.vv-category-filter-control>.vv-control>.vv-trigger:focus-visible{outline:0}
.vv-category-filter-control>.vv-control>.vv-trigger:hover:not(:disabled),.vv-category-filter-control>.vv-control>.vv-trigger[aria-expanded=true]{background:var(--hover)}
.vv-category-filter-control>.vv-category-edit,.vv-dossiers-topbar .vv-category-edit{display:grid;flex:0 0 44px;place-items:center;width:44px;min-width:44px;height:42px;min-height:42px;padding:0;border:0;border-left:1px solid var(--vv-line);border-radius:0 calc(var(--vv-radius) - 1px) calc(var(--vv-radius) - 1px) 0;background:var(--selected);color:var(--text-secondary);box-shadow:none;cursor:pointer}
.vv-category-filter-control>.vv-category-edit:hover{background:var(--hover);color:var(--text-primary)}
.vv-category-filter-control>.vv-category-edit:focus-visible{outline:2px solid var(--vv-focus);outline-offset:-3px}
.vv-category-filter-control>.vv-category-edit svg{width:17px;height:17px}
.vv-dossiers-topbar input[type=search],.vv-dossiers-topbar select{box-sizing:border-box;display:block;width:100%;min-width:0;max-width:none;height:44px;min-height:44px;margin:0;padding:8px 12px;border:1px solid var(--vv-line);border-radius:var(--vv-radius);background:var(--vv-field);color:var(--text-primary,#f5f3ef);font:inherit;font-size:13px;outline:0}
.vv-dossiers-topbar input[type=search]::placeholder{color:var(--text-muted,#aaa7a1);opacity:1}
.vv-dossiers-topbar input[type=search]:focus-visible,.vv-dossiers-topbar select:focus-visible{outline:2px solid var(--vv-focus);outline-offset:2px}
.vv-dossiers-topbar .button{box-sizing:border-box;min-height:44px;padding:8px 12px;white-space:nowrap}
.vv-dossiers-topbar .vv-category-filter-control>.vv-category-edit{min-height:42px;padding:0}
.vv-dossier-fab,.vv-dossiers .vv-dossier-fab{position:fixed;z-index:25;right:28px;bottom:28px;display:grid;place-items:center;width:56px;min-width:56px;height:56px;min-height:56px;padding:0!important;border:0;border-radius:16px;background:var(--action-neutral,#e5e2dc);color:var(--on-action-neutral,#191919);font-family:inherit;font-size:29px;font-weight:600;line-height:1;box-shadow:0 14px 34px #0007;cursor:pointer;transition:transform .16s,box-shadow .16s,background .16s}
.vv-dossier-fab:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 18px 38px #0009}
.vv-dossier-fab:focus-visible{outline:2px solid var(--focus-neutral,#e5e2dc);outline-offset:3px}
.vv-dossier-fab:disabled{opacity:.45;cursor:default}
@media(max-width:760px){
  .topbar.topbar-dossiers,.topbar.topbar-planning{padding:8px 10px!important;min-height:60px}
  .vv-dossier-topbar-filters{grid-template-columns:minmax(0,1fr);gap:7px}
  .vv-dossier-topbar-filters>.ops-search{grid-column:1/-1}
  .vv-category-filter-control{height:46px}
  .vv-category-filter-control>.vv-control>.vv-trigger,.vv-category-filter-control>.vv-category-edit{height:44px;min-height:44px}
  .vv-planning-topbar-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .vv-dossiers-topbar input[type=search],.vv-dossiers-topbar select{height:46px;min-height:46px;font-size:16px}
  .vv-dossiers-topbar .button{min-height:46px}
  .vv-dossiers-topbar .vv-category-filter-control>.vv-category-edit{min-height:44px;padding:0}
  .vv-dossier-fab,.vv-dossiers .vv-dossier-fab{right:16px;bottom:calc(84px + env(safe-area-inset-bottom));width:52px;min-width:52px;height:52px;min-height:52px;border-radius:14px}
}
@media(max-width:390px){.vv-category-filter-control>.vv-control>.vv-trigger{padding-inline:9px}}
@media(prefers-reduced-motion:reduce){.vv-dossier-fab{transition:none}}
@media print{.vv-dossier-fab,.vv-dossiers-topbar{display:none!important}}

/* Dossiers follows the plain management tables used by the other pages. */
.vv-dossiers:has(.vv-dossier-table-wrap){padding-bottom:96px}
.vv-dossier-table-wrap.m-table-wrap{width:100%;min-width:0;overflow-x:auto;border:0;border-radius:0;background:transparent;box-shadow:none}
.vv-dossier-table.m-table{width:100%;min-width:0;table-layout:fixed;border:0;border-radius:0;border-collapse:collapse;background:transparent}
.vv-dossier-table th:first-child{width:60%}
.vv-dossier-table th:last-child{width:40%}
.vv-dossier-table th,.vv-dossier-table td{height:43px;padding:6px 13px;white-space:normal;overflow-wrap:anywhere}
.vv-dossier-table th:last-child,.vv-dossier-table td:last-child{text-align:right}
.vv-dossier-table td{font-size:12px;color:var(--text-secondary);vertical-align:middle}
.vv-dossier-table .vv-dossier-table-link{display:block;width:100%;min-width:0;min-height:0;padding:0;border:0;background:transparent;color:var(--text-primary);font:inherit;text-align:left;cursor:pointer}
.vv-dossier-table .vv-dossier-table-link:hover .vv-dossier-identity strong{text-decoration:underline;text-underline-offset:3px}
.vv-dossier-table-row{cursor:pointer}
.vv-dossier-table-row:hover .vv-dossier-identity strong{text-decoration:underline;text-underline-offset:3px}
.vv-dossier-table .vv-dossier-table-link:focus-visible{border-radius:5px;outline:2px solid var(--focus-neutral);outline-offset:3px}
.vv-dossier-table .vv-dossier-identity strong{display:inline;font-size:13px}
.vv-dossier-table .vv-dossier-identity small{display:inline;margin:0 0 0 8px;font-size:10px}
.vv-dossier-table .vv-dossier-badges{gap:5px;justify-content:flex-end}
@media(max-width:760px){
  .vv-dossier-table th:first-child{width:52%}
  .vv-dossier-table th:last-child{width:48%}
  .vv-dossier-table th,.vv-dossier-table td{padding:6px 9px}
  .vv-dossier-table .vv-dossier-identity strong{font-size:12px}
  .vv-dossier-table .vv-category-badge{font-size:10px;padding:3px 6px}
}
@media print{.vv-dossier-table-wrap.m-table-wrap{overflow:visible}.vv-dossier-table.m-table{min-width:0}}

/* Compact editor for a calendar placement. */
dialog.modal.vv-slot-modal{position:fixed;inset:auto 20px 20px auto;width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 40px);margin:0;border-radius:16px;overflow:auto;box-shadow:0 24px 70px #000b}
.vv-slot-modal .modal-head{padding:13px 16px}
.vv-slot-modal .modal-head h2{font-size:15px}
.vv-slot-modal .modal-body{padding:16px}
.vv-slot-editor .vv-form-actions{display:flex;width:100%;justify-content:stretch;flex-wrap:nowrap;gap:8px}
.vv-slot-editor .vv-form-actions>.button{flex:1 1 0;min-width:0;text-align:center}
.vv-slot-editor{gap:12px}
.vv-slot-editor .vv-form-grid{grid-template-columns:minmax(0,1fr);gap:11px}
.vv-slot-editor .vv-form-actions{padding-top:3px}
.vv-slot-picks{display:flex;flex-wrap:wrap;gap:5px;max-height:96px;overflow:auto}
.vv-slot-pick{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:4px 7px;border:1px solid var(--border-control);border-radius:7px;background:var(--selected);color:var(--text-primary);font-size:11px}
.vv-slot-pick button{display:grid;place-items:center;width:18px;min-width:18px;height:18px;min-height:18px;padding:0;border:0;border-radius:4px;background:transparent;color:var(--text-secondary);font-size:15px;line-height:1;cursor:pointer}
.vv-slot-pick button:hover{background:var(--hover);color:var(--text-primary)}
.vv-slot-note-field{display:grid;gap:6px;color:var(--text-secondary);font-size:12px}
.vv-slot-note-field textarea{min-height:64px;resize:vertical}
@media(max-width:760px){
  dialog.modal.vv-slot-modal{inset:auto 0 0 0;width:100vw;max-width:none;max-height:calc(100dvh - 24px);margin:0;border-radius:18px 18px 0 0}
  .vv-slot-modal .modal-body{padding:16px 16px calc(18px + env(safe-area-inset-bottom))}
}

/* Inline category editing and compact, expandable dossier details. */
dialog.modal.vv-category-modal{width:min(640px,calc(100vw - 24px));max-width:calc(100vw - 24px)}
.vv-category-modal .modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.vv-category-modal .modal-body{padding:0;max-height:min(75dvh,720px);overflow-y:auto}
.vv-category-manager{display:block}
.vv-category-add{display:flex;align-items:center;justify-content:center;margin-left:auto;width:34px;min-width:34px;height:34px;padding:0;border:1px solid var(--border-control);border-radius:9px;background:#fff;color:#20242a;font:inherit;font-size:22px;line-height:1;cursor:pointer}
.vv-category-add:hover:not(:disabled){background:#f2f3f5;border-color:var(--text-secondary)}
.vv-category-add:disabled{opacity:.45;cursor:default}
.vv-category-table-wrap{overflow-x:auto}
.vv-category-table{width:100%;min-width:320px;border-collapse:collapse;table-layout:fixed}
.vv-category-table th{padding:10px 16px;background:rgb(36,36,36);color:#fff;text-align:left;font-size:10px;font-weight:650;text-transform:uppercase;letter-spacing:.035em}
.vv-category-table th:nth-child(2){text-align:center}
.vv-category-table td{height:44px;padding:0 12px;border-bottom:1px solid var(--border-subtle);vertical-align:middle}
.vv-category-table th+th,.vv-category-table td+td{border-left:1px solid var(--border-subtle)}
.vv-category-table tr:last-child td{border-bottom:0}
.vv-category-table td:nth-child(2),.vv-category-table th:nth-child(2){width:112px;text-align:center}
.vv-category-table input[type=text]{box-sizing:border-box;width:100%;min-width:0;min-height:42px;padding:6px 4px;border:1px solid transparent;border-radius:0;background:transparent;color:var(--text-primary);font:inherit;font-size:13px;outline:0}
.vv-category-table input[type=text]:hover{background:var(--hover)}
.vv-category-table input[type=text]:focus-visible{outline:2px solid var(--focus-neutral);outline-offset:-2px;background:var(--surface)}
.vv-category-color{position:relative;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--border-control);border-radius:50%;background:var(--surface);cursor:pointer;vertical-align:middle}
.vv-category-color:hover{border-color:var(--text-secondary)}
.vv-category-color:focus-within{outline:2px solid var(--focus-neutral);outline-offset:2px}
.vv-category-swatch{display:block;width:27px;height:27px;border-radius:50%;box-shadow:inset 0 0 0 1px #0002}
.vv-category-table input[type=color]{position:absolute;inset:0;width:100%;height:100%;padding:0;opacity:0;cursor:pointer}
.vv-category-table input:disabled{cursor:default;opacity:.65}
.vv-category-row-actions{display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;margin-left:6px;vertical-align:middle}
.vv-category-row-actions button{width:27px;min-width:27px;height:27px;padding:0;border:1px solid var(--border-control);border-radius:6px;background:var(--selected);color:var(--text-primary);font-size:17px;cursor:pointer}
.vv-category-row-actions button:hover{background:var(--hover)}
.vv-category-error,.vv-category-saving{display:block;padding:0 8px 3px;font-size:10px}
.vv-category-error{color:var(--amber)}.vv-category-saving{color:var(--text-muted)}
.vv-check-menu{min-width:0;margin:0;padding:0;border:0}
.vv-check-menu legend{margin-bottom:8px;color:var(--text-secondary);font-size:12px}
.vv-check-menu details{border:1px solid var(--border-control);border-radius:9px;background:var(--surface)}
.vv-check-menu summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:9px 12px;color:var(--text-primary);font-size:13px;cursor:pointer;list-style:none}
.vv-check-menu summary::-webkit-details-marker{display:none}
.vv-check-menu summary span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vv-check-menu summary svg{flex:none}
.vv-check-menu summary:focus-visible{outline:2px solid var(--focus-neutral);outline-offset:2px;border-radius:9px}
.vv-check-menu-options{display:grid;gap:2px;max-height:190px;overflow:auto;padding:5px;border-top:1px solid var(--border-subtle)}
.vv-check-menu-option{display:flex;align-items:center;gap:10px;min-height:37px;padding:7px 9px;border-radius:6px;color:var(--text-primary);font-size:13px;cursor:pointer}
.vv-check-menu-option:hover{background:var(--hover)}
.vv-check-menu-option input{accent-color:var(--action-neutral)}
.vv-profile{gap:0}
.vv-profile-modal .modal-head{padding-bottom:0;border-bottom:0}
.vv-profile-modal .modal-body{padding-top:0}
.vv-profile-section{padding:0;border-top:1px solid var(--border-subtle)}
.vv-profile-section:first-child{border-top:0}
.vv-profile-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px}
.vv-profile-toggle{display:flex;align-items:center;gap:10px;flex:1 1 auto;min-width:0;min-height:44px;padding:8px 0;border:0;background:transparent;color:var(--text-primary);font:inherit;font-size:14px;font-weight:650;text-align:left;cursor:pointer}
.vv-profile-toggle:hover{color:var(--action-neutral)}
.vv-profile-toggle:focus-visible,.vv-purchase summary:focus-visible{border-radius:6px;outline:2px solid var(--focus-neutral);outline-offset:2px}
.vv-profile-toggle small{color:var(--text-muted);font-size:11px}
.vv-section-chevron{display:inline-block;color:var(--text-muted);font-size:22px;font-weight:400;line-height:1;transition:transform .15s}
.vv-profile-toggle[aria-expanded=true] .vv-section-chevron{transform:rotate(90deg)}
.vv-profile-section-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px}
.vv-profile-section-actions .button{min-height:33px;padding:6px 10px;font-size:11px}
.vv-profile-section-body{padding:0 0 16px 22px}
.vv-profile-section-body[hidden]{display:none}
.vv-profile-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
.vv-profile-info>div{min-width:0;padding:10px 12px;border:1px solid var(--border-subtle);border-radius:9px;background:var(--surface)}
.vv-profile-info dt{margin-bottom:6px;color:var(--text-muted);font-size:10px;font-weight:650}
.vv-profile-info dd{margin:0;color:var(--text-primary);font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.vv-profile-info dd.vv-profile-tags{display:flex}
.vv-profile-info-members{grid-column:1/-1}
.vv-profile-info-members ul{display:grid;gap:4px;margin:0;padding-left:18px}
.vv-profile-info .vv-profile-info-note{grid-column:1/-1}
.vv-profile-info-note dd{white-space:pre-wrap}
.vv-family-members{display:grid;gap:10px;margin:0;padding:12px;border:1px solid var(--border-subtle);border-radius:10px}
.vv-family-members legend{padding:0 5px;font-size:12px;color:var(--text-secondary)}
.vv-family-members-head{display:flex;justify-content:flex-end}
.vv-members-table{width:100%;border-collapse:collapse;table-layout:fixed}
.vv-members-table th{padding:6px 8px;color:var(--text-muted);font-size:10px;font-weight:650;text-align:left;text-transform:uppercase}
.vv-members-table th:last-child,.vv-members-table td:last-child{width:44px;text-align:center}
.vv-members-table td{padding:6px 4px;border-top:1px solid var(--border-subtle)}
.vv-members-table input{box-sizing:border-box;width:100%;min-width:0}
.vv-member-remove{width:32px;height:36px;border:1px solid var(--border-control);border-radius:7px;background:var(--selected);color:var(--text-primary);font-size:20px;cursor:pointer}
.vv-purchase{padding:0;overflow:hidden}
.vv-purchase summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:10px 12px;cursor:pointer;list-style:none;font-size:12px}
.vv-purchase summary::-webkit-details-marker{display:none}
.vv-purchase summary:hover{background:var(--hover)}
.vv-purchase summary span{font-weight:700;white-space:nowrap}
.vv-purchase[open] summary{border-bottom:1px solid var(--border-subtle)}
.vv-purchase ul{margin:9px 12px 12px;padding-left:18px}
@media(max-width:760px){
  .vv-profile-section-head{align-items:flex-start;flex-wrap:wrap;padding:7px 0}
  .vv-profile-section-actions{width:100%;justify-content:flex-start;padding:0 0 5px 22px}
  .vv-profile-section-body{padding-left:0}
  .vv-profile-info{grid-template-columns:minmax(0,1fr)}
  .vv-profile-info .vv-profile-info-note{grid-column:auto}
  .vv-profile-info .vv-profile-info-members{grid-column:auto}
  .vv-members-table th,.vv-members-table td{padding-inline:3px}
}

/* Shared headings and floating actions across the operational pages. */
:root{--vv-table-row-thick:71.5px;--vv-table-row-thin:43px}
/* Row density follows Commandes (two lines) and Dossiers (one line). */
.vv-stock-summary{min-height:calc(var(--vv-table-row-thick) - 1px)}
.vv-stores-page .accounts-table tbody tr>td,
.accounts-page .accounts-table tbody tr>td{height:var(--vv-table-row-thick)}
.vv-stores-page td.vv-commerce-row-actions{display:table-cell}
.vv-stores-page td.vv-commerce-row-actions>.button+.button{margin-left:8px}
.vv-journal-entry>td,
.vv-finance-table tbody tr>td{height:var(--vv-table-row-thin);padding-block:6px}
@media(min-width:761px){.vv-catalogue-list-row>td{height:var(--vv-table-row-thick)}}
@media(max-width:760px){
  :root{--vv-table-row-thick:67.5px}
  .accounts-page .accounts-table tbody tr>td{padding-block:11px}
  .vv-catalogue-list>.m-table tr.vv-catalogue-list-row{min-height:var(--vv-table-row-thick)}
}
.m-table thead th,.vv-dossier-table thead th,.vv-finance-day-table thead th,.vv-stock-head{
  box-sizing:border-box;
  height:42px;
  padding:8px 12px!important;
  background:rgb(36,36,36);
  color:#f5f3ef;
  font-size:11px;
  font-weight:600;
  line-height:1.2;
}
:root{--vv-fab-size:56px;--vv-fab-right:28px;--vv-fab-bottom:28px;--vv-fab-gap:12px}
.stocks-new-product-fab,.stocks-scan-fab,.journal-cash-fab,.approvisionnements-fab,
.vv-dossier-fab,.vv-dossiers .vv-dossier-fab{
  box-sizing:border-box;
  position:fixed;
  right:var(--vv-fab-right);
  bottom:var(--vv-fab-bottom);
  width:var(--vv-fab-size);
  min-width:var(--vv-fab-size);
  height:var(--vv-fab-size);
  min-height:var(--vv-fab-size);
  padding:0;
  border-radius:14px;
}
.stocks-scan-fab{right:calc(var(--vv-fab-right) + var(--vv-fab-size) + var(--vv-fab-gap))}
@media(max-width:760px){
  :root{--vv-fab-size:52px;--vv-fab-right:16px;--vv-fab-bottom:calc(84px + env(safe-area-inset-bottom));--vv-fab-gap:10px}
}
.vv-slot-presence{display:grid;gap:9px;color:var(--text-secondary);font-size:12px}
.vv-slot-presence strong{color:var(--text-primary)}
.vv-slot-declarations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.vv-slot-declarations .button{min-width:0;min-height:40px;padding:7px 9px;font-size:11px}
.vv-slot-declarations .button[aria-pressed=true]{border-color:var(--focus-neutral);background:var(--selected);color:var(--text-primary)}
@media print{.m-table thead th,.vv-dossier-table thead th,.vv-finance-day-table thead th{background:#fff;color:#000}}

/* Daily finance rows open their full sales ledger in an overlay. */
.finance-day-row{cursor:pointer}
.finance-day-row:hover{background:var(--hover)}
.finance-day-open{padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px}
.finance-day-row:hover .finance-day-open,.finance-day-open:focus-visible{text-decoration-color:currentColor}
.finance-day-open:focus-visible{outline:2px solid var(--focus-neutral);outline-offset:3px}
dialog.modal.vv-finance-day-modal{width:min(820px,calc(100vw - 24px))}
.vv-finance-day-table-wrap.m-table-wrap{max-height:72dvh;overflow:auto;border:0;border-radius:0;background:transparent}
.vv-finance-day-table.m-table{width:100%;min-width:440px;border-collapse:collapse;table-layout:fixed}
.vv-finance-day-table th:first-child{width:92px}.vv-finance-day-table th:last-child{width:110px}
.vv-finance-day-table th,.vv-finance-day-table td{padding:11px 13px}
.vv-finance-day-table th:last-child,.vv-finance-day-table td:last-child{text-align:right}
.vv-finance-day-table .vv-finance-day-row{cursor:pointer}
.vv-finance-day-table .vv-finance-day-row:hover{background:var(--hover)}
.vv-finance-day-open{display:inline-flex;align-items:center;gap:7px;padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer}
.vv-finance-day-open:focus-visible{outline:2px solid var(--focus-neutral);outline-offset:3px}
.vv-finance-day-chevron{display:inline-block;font-size:19px;line-height:10px;transition:transform .15s}
.vv-finance-day-open[aria-expanded=true] .vv-finance-day-chevron{transform:rotate(90deg)}
.vv-finance-day-row td:nth-child(2){overflow-wrap:anywhere}
.vv-finance-day-row td:nth-child(2) span{color:var(--text-secondary)}
.vv-finance-day-detail td{padding:11px 16px 15px 29px!important;background:var(--surface);text-align:left!important}
.vv-finance-day-detail small{display:block;color:var(--text-muted);font-size:11px}
.vv-finance-day-detail ul{display:grid;gap:6px;margin:6px 0 10px;padding:0;list-style:none;color:var(--text-secondary);font-size:12px}
.vv-finance-day-detail li{display:flex;justify-content:space-between;gap:12px}
.vv-finance-day-detail li span:last-child{white-space:nowrap}
.vv-finance-day-payments{display:flex;flex-wrap:wrap;gap:10px;padding-top:10px;border-top:1px solid var(--border-subtle);color:var(--text-muted);font-size:11px}
.vv-finance-day-table tfoot td{background:var(--selected);font-weight:650}
.vv-finance-day-table tfoot td:last-child{white-space:nowrap}
.vv-finance-export-page{position:fixed;z-index:25;right:var(--vv-fab-right);bottom:var(--vv-fab-bottom)}
.vv-finance-export-button{box-sizing:border-box;display:grid;place-items:center;width:var(--vv-fab-size);height:var(--vv-fab-size);padding:0;border:1px solid #0002;border-radius:14px;background:#fff;color:#242424;box-shadow:0 10px 28px #0005;cursor:pointer;transition:transform .16s,box-shadow .16s}
.vv-finance-export-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 14px 32px #0007}
.vv-finance-export-button:focus-visible{outline:2px solid var(--focus-neutral);outline-offset:3px}
.vv-finance-export-button:disabled{opacity:.6;cursor:progress}
.finance-table-wrap .vv-finance-total-row th,.finance-table-wrap .vv-finance-total-row td{position:static;padding:14px 17px;background:var(--selected);border-top:1px solid var(--border-control);font-weight:700;white-space:nowrap}
.finance-table-wrap .vv-finance-total-row th{text-align:left}
.vv-finance-day-content{position:relative;padding-bottom:calc(var(--vv-fab-size) + 14px)}
.vv-finance-day-content .vv-finance-export-actions{position:absolute;right:2px;bottom:0;z-index:1}
@media(prefers-reduced-motion:reduce){.vv-finance-export-button{transition:none}}
@media print{.vv-finance-export-actions{display:none!important}}
@media(prefers-reduced-motion:reduce){.vv-finance-day-chevron{transition:none}}

/* Statistics: five entries per page, with a separate pager for each group. */
.vv-stats-gallery{min-width:0;outline:none}
.vv-stats-gallery:focus-visible{outline:2px solid var(--focus-neutral);outline-offset:4px;border-radius:16px}
.vv-stats-gallery-tabs{display:flex;gap:5px;width:100%;margin:0 auto;padding:5px;border:1px solid var(--border-subtle);border-radius:13px;background:var(--elevated)}
.vv-stats-gallery-tabs button{flex:1;min-width:0;min-height:36px;padding:7px 9px;border:0;border-radius:9px;background:transparent;color:var(--text-secondary);font:inherit;font-size:12px;font-weight:650;cursor:pointer}
.vv-stats-gallery-tabs button:hover{background:var(--hover);color:var(--text-primary)}
.vv-stats-gallery-tabs button[aria-current=true]{background:var(--surface);color:var(--text-primary);box-shadow:0 2px 8px #0002}
.vv-stats-gallery-tabs button:focus-visible,.vv-stats-gallery-arrow:focus-visible{outline:2px solid var(--focus-neutral);outline-offset:2px}
.vv-stats-gallery-stage{min-width:0;margin-top:14px;touch-action:pan-y}
.vv-stats-gallery-pager{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:12px}
.vv-stats-gallery-arrow{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid var(--border-control);border-radius:12px;background:var(--surface);color:var(--text-primary);cursor:pointer}
.vv-stats-gallery-arrow:hover:not(:disabled){background:var(--selected)}
.vv-stats-gallery-arrow:disabled{opacity:.32;cursor:default}
.vv-stats-gallery-card{display:flex;flex-direction:column;width:100%;min-height:420px;padding:22px;animation:vv-stats-gallery-in .2s ease-out both}
.vv-stats-gallery-card .stats-panel-heading{margin-bottom:0}
.vv-stats-gallery-card .stats-bars,.vv-stats-gallery-card .vv-stats-trend{margin-top:22px}
.vv-stats-gallery-card:has(.vv-stats-trend){background:linear-gradient(155deg,color-mix(in srgb,var(--surface) 96%,#769bda 4%),var(--surface))}
.vv-stats-bar-label{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.vv-stats-bar-label small{color:var(--text-secondary);font-size:11px;line-height:1.3}
.vv-stats-gallery .stats-bar strong{flex-shrink:0;white-space:nowrap}
.vv-stats-gallery-foot{display:flex;justify-content:space-between;gap:10px;margin-top:auto;padding-top:18px;color:var(--text-secondary);font-size:12px;font-variant-numeric:tabular-nums}
.vv-stats-gallery-empty{margin:0;color:var(--text-secondary);font-size:13px}
.vv-stats-gallery-count{min-width:62px;color:var(--text-secondary);font-size:12px;text-align:center;font-variant-numeric:tabular-nums}
.vv-stats-gallery-print{display:none}
@keyframes vv-stats-gallery-in{from{opacity:.5;transform:translateX(var(--vv-slide-start))}to{opacity:1;transform:translateX(0)}}
@media(max-width:700px){
  .vv-stats-gallery-card{min-height:410px;padding:16px}
  .vv-stats-gallery-card .stats-bars,.vv-stats-gallery-card .vv-stats-trend{margin-top:16px}
  .vv-stats-gallery-tabs button{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.vv-stats-gallery-card{animation:none}}
.stats-page .stats-curve-panel{padding:22px;background:linear-gradient(155deg,color-mix(in srgb,var(--surface) 96%,#769bda 4%),var(--surface))}
.vv-stats-trend{min-width:0;margin-top:5px}
.vv-stats-trend-body{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:stretch}
.vv-stats-trend-axis,.vv-stats-trend-plot{position:relative;height:218px;min-width:0}
.vv-stats-trend-axis span{position:absolute;right:0;transform:translateY(-50%);color:var(--text-muted);font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}
.vv-stats-trend-plot{overflow:hidden;border:1px solid var(--border-subtle);border-radius:14px;background:linear-gradient(180deg,color-mix(in srgb,var(--elevated) 65%,#364767 35%),var(--surface) 92%)}
.vv-stats-trend-plot svg{position:absolute;inset:0;display:block;width:100%;height:100%}
.vv-stats-trend-grid{stroke:color-mix(in srgb,var(--text-muted) 16%,transparent);stroke-width:1;vector-effect:non-scaling-stroke}
.vv-stats-trend-zero{stroke:color-mix(in srgb,#a9c4f0 55%,transparent);stroke-width:1;stroke-dasharray:4 5;vector-effect:non-scaling-stroke}
.vv-stats-trend-area{stroke:none}
.vv-stats-trend-line{fill:none;stroke:#b9cdf4;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 5px #85a6ec88)}
.vv-stats-trend-point{position:absolute;z-index:1;width:10px;height:10px;box-sizing:border-box;transform:translate(-50%,-50%);border:2px solid #d1e0ff;border-radius:50%;background:#283d5b;box-shadow:0 0 0 4px #b0c9f332;pointer-events:auto}
.vv-stats-trend-dates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:11px 0 0 76px;color:var(--text-secondary);font-size:11px;font-variant-numeric:tabular-nums}
.vv-stats-trend-dates span:nth-child(2){text-align:center}.vv-stats-trend-dates span:last-child{text-align:right}
@media(max-width:700px){
  .stats-page .stats-curve-panel{padding:16px}
  .vv-stats-trend-body{grid-template-columns:45px minmax(0,1fr);gap:6px}
  .vv-stats-trend-axis,.vv-stats-trend-plot{height:180px}
  .vv-stats-trend-axis span{font-size:9px}
  .vv-stats-trend-dates{margin-left:51px}
  .vv-stats-trend-dates span:nth-child(2){display:none}
  .vv-stats-trend-dates{grid-template-columns:1fr 1fr}
}
@media print{
  .vv-stats-gallery-tabs,.vv-stats-gallery-stage,.vv-stats-gallery-pager{display:none!important}
  .vv-stats-gallery-print{display:block!important}
  .vv-stats-gallery-print .stats-panel{break-inside:auto!important;margin-bottom:16px}
  .vv-stats-gallery-print .stats-bar{break-inside:avoid}
  .vv-stats-trend-plot{background:#fff;border-color:#bbb}
  .vv-stats-trend-line{stroke:#303030;filter:none}
  .vv-stats-trend-area{opacity:.2}
  .vv-stats-trend-point{border-color:#303030;background:#fff;box-shadow:none}
}

/* Checkout dossier and explicit pricing status. */
.vv-checkout-dossier{display:grid;gap:12px;margin-bottom:20px;min-width:0}
.vv-checkout-dossier>label{display:grid;gap:7px;font-size:13px;color:var(--text-secondary,#b8b5af);min-width:0}
.vv-checkout-dossier .vv-select{width:100%;min-width:0}
.vv-checkout-status{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:var(--text-secondary,#b8b5af)}
.vv-checkout-status strong{padding:5px 10px;border-radius:7px;background:var(--surface-elevated,#303030);color:var(--text,#f5f3ef)}

.vv-stock-unit{font-size:12px;color:var(--text-secondary,#b8b5af);white-space:nowrap}
@media(max-width:760px){.vv-stock-unit{grid-area:unit;font-size:10px;text-align:center}}


/* Sion Unie agenda layout, adapted to Vivria's palette and application shell. */
.main-content.main-content-planning{max-width:none;margin:0;padding:15px;overflow:visible}
.vv-dossiers:has(.agenda-calendar-card){width:100%}
.vv-dossiers .agenda-calendar-card{
  --line:var(--border-subtle,#3d3d3d);
  --line-strong:var(--border-control,#565656);
  --text:var(--text-primary,#f5f3ef);
  --muted:var(--text-secondary,#b8b5af);
  --muted-2:var(--text-muted,#8f8c86);
  --cream:var(--action-neutral,#e5e2dc);
  --ink:var(--on-action-neutral,#191919);
  --event-color:var(--action-neutral,#e5e2dc);
  display:flex;
  flex-direction:column;
  width:100%;
  min-width:0;
  min-height:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:color-mix(in srgb,var(--surface,#242424) 90%,transparent);
  color:var(--text);
}
.vv-dossiers .agenda-calendar-card:has(.agenda-view-root:is(.is-day,.is-week,.is-list)){height:clamp(520px,calc(100dvh - 190px),760px)}
.agenda-calendar-head{
  display:flex;
  min-height:76px;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
}
.agenda-period-controls{
  display:grid;
  grid-template-columns:38px minmax(150px,1fr) 38px;
  min-width:min(390px,48%);
  align-items:center;
  gap:9px;
}
.agenda-period-controls button{
  display:grid;
  width:38px;
  height:38px;
  place-items:center;
  padding:0;
  border:1px solid var(--line);
  border-radius:10px;
  background:color-mix(in srgb,var(--text) 2.5%,transparent);
  color:var(--text);
  font-size:19px;
  cursor:pointer;
}
.agenda-period-controls button:hover{border-color:var(--line-strong);background:color-mix(in srgb,var(--text) 5%,transparent)}
.agenda-period-controls h2{margin:0;color:var(--text);font-size:18px;font-weight:700;text-align:center;text-transform:capitalize}
.calendar-view-switcher{
  display:inline-flex;
  gap:4px;
  padding:4px;
  border:1px solid var(--line);
  border-radius:12px;
  background:color-mix(in srgb,var(--text) 2%,transparent);
}
.calendar-view-switcher button{
  min-height:34px;
  padding:0 12px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--muted);
  font-family:inherit;
  font-size:10px;
  font-weight:700;
  line-height:1.2;
  cursor:pointer;
}
.calendar-view-switcher button:hover{color:var(--text)}
.calendar-view-switcher button.active,.calendar-view-switcher button[aria-pressed=true]{background:var(--cream);color:var(--ink)}
.agenda-calendar-card button:focus-visible,.agenda-calendar-card .cal-event:focus-visible{outline:2px solid var(--cream);outline-offset:-2px}
.agenda-view-root{flex:1 1 auto;min-height:0;min-width:0;overflow:hidden}
.agenda-view-root.is-month{display:grid;flex:0 0 auto;grid-template-rows:auto minmax(0,1fr)}
.agenda-month-weekdays,.agenda-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.agenda-month-weekdays{border-bottom:1px solid var(--line)}
.agenda-month-weekdays span{padding:12px 9px;color:var(--muted-2);font-size:8px;font-weight:700;text-align:center;text-transform:uppercase}
.agenda-month-grid{min-height:0;grid-auto-rows:102px}
.agenda-month-grid .calendar-day{
  position:relative;
  display:flex;
  width:100%;
  min-width:0;
  min-height:102px;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  overflow:hidden;
  padding:34px 10px 10px;
  border:0;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  border-radius:0;
  background:transparent;
  color:var(--muted);
  font:inherit;
  text-align:left;
  cursor:pointer;
}
.agenda-month-grid .calendar-day:nth-child(7n){border-right:0}
.agenda-month-grid .calendar-day:hover{background:color-mix(in srgb,var(--text) 3.2%,transparent)}
.agenda-month-grid .calendar-day.selected{background:color-mix(in srgb,var(--cream) 7.5%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--cream) 22%,transparent)}
.agenda-month-grid .calendar-day.today{background:color-mix(in srgb,var(--cream) 4.5%,transparent)}
.agenda-month-grid .calendar-day.today.selected{background:color-mix(in srgb,var(--cream) 8.5%,transparent)}
.agenda-month-grid .calendar-day>span:first-child{
  position:absolute;
  top:10px;
  left:10px;
  z-index:1;
  display:block;
  width:auto;
  min-width:0;
  height:auto;
  color:var(--muted-2);
  background:transparent;
  font-size:10px;
  font-weight:600;
  line-height:1;
}
.agenda-month-grid .calendar-day.outside>span:first-child{color:var(--muted-2);opacity:.55}
.agenda-month-grid .calendar-day.today>span:first-child{color:var(--cream)}
.agenda-month-grid .calendar-day .cal-event{
  display:block;
  flex:0 0 auto;
  overflow:hidden;
  margin-top:6px;
  padding:5px 6px;
  border:0;
  border-radius:5px;
  background:var(--event-color);
  color:var(--ink);
  font-size:9px;
  font-weight:700;
  white-space:nowrap;
  text-overflow:ellipsis;
  cursor:pointer;
}
.agenda-month-grid .calendar-day .cal-event:hover{filter:brightness(1.06)}
.agenda-month-grid .calendar-day .cal-more{margin-top:6px;color:var(--muted-2);font-size:9px}
.agenda-week-grid{display:grid;height:100%;min-height:530px;grid-template-columns:repeat(7,minmax(0,1fr));overflow:hidden}
.agenda-week-day{position:relative;min-width:0;overflow:hidden;padding:47px 9px 13px;border-right:1px solid var(--line)}
.agenda-week-day:last-child{border-right:0}
.agenda-week-day.today{background:color-mix(in srgb,var(--cream) 3.5%,transparent)}
.agenda-week-day-head{
  position:absolute;
  top:11px;
  left:9px;
  display:grid;
  width:auto;
  justify-items:start;
  gap:2px;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--muted);
  text-align:left;
  cursor:pointer;
}
.agenda-week-day-head:hover{background:color-mix(in srgb,var(--text) 4%,transparent)}
.agenda-week-day-head span{color:var(--muted-2);font-size:8px;text-transform:capitalize}
.agenda-week-day-head strong{display:block;color:var(--muted);font-size:11px;font-weight:600;line-height:1}
.agenda-week-day.today .agenda-week-day-head strong{color:var(--cream)}
.agenda-week-event{
  display:grid;
  width:100%;
  gap:4px;
  margin-bottom:7px;
  padding:9px 8px;
  border:0;
  border-radius:7px;
  background:var(--event-color);
  color:var(--ink);
  text-align:left;
  cursor:pointer;
}
.agenda-week-event:hover,.agenda-day-event:hover{filter:brightness(1.06)}
.agenda-week-event strong{overflow:hidden;font-size:9px;line-height:1.35;text-overflow:ellipsis}
.agenda-event-time{color:color-mix(in srgb,var(--ink) 72%,transparent);font-size:9px}
.agenda-no-event{display:block;padding:10px 2px;color:var(--muted-2);font-size:9px;text-align:center}
.agenda-view-root.is-day,.agenda-view-root.is-list{width:100%;max-width:none}
.agenda-day-view{width:100%;max-width:none;height:100%;overflow-y:auto;padding:24px}
.agenda-day-view>header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.agenda-day-view h3{margin:5px 0 0;font-size:22px;font-weight:700;text-transform:capitalize}
.agenda-day-events{display:grid;width:100%;gap:10px}
.agenda-day-event{
  display:grid;
  width:100%;
  min-height:84px;
  grid-template-columns:130px minmax(0,1fr) minmax(160px,auto);
  align-items:center;
  gap:16px;
  padding:16px 18px;
  border:0;
  border-radius:13px;
  background:var(--event-color);
  color:var(--ink);
  text-align:left;
  cursor:pointer;
}
.agenda-day-event strong{font-size:13px;font-weight:700}
.agenda-day-event>span:last-child{display:flex;align-items:center;gap:6px;color:color-mix(in srgb,var(--ink) 70%,transparent);font-size:10px}
.agenda-event-status{font-size:9px;line-height:1.35}
.agenda-day-view .empty-day{display:grid;gap:8px;justify-items:start;padding:20px;border:1px dashed var(--line);border-radius:12px;color:var(--muted)}
.agenda-day-view .empty-day h3,.agenda-day-view .empty-day p{margin:0}
.agenda-day-view .empty-day h3{color:var(--text);font-size:15px}
.agenda-view-root.is-list{min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain}
.agenda-list-view{display:grid;width:100%;max-width:none;gap:26px;margin:0;padding:24px 24px 96px}
.agenda-list-current-day{display:grid;min-width:0;gap:3px}
.agenda-list-current-day .kicker,.agenda-list-section .kicker{color:var(--muted-2);font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.agenda-list-current-day strong{overflow:hidden;font-size:18px;font-weight:700;line-height:1.2;text-overflow:ellipsis;text-transform:capitalize;white-space:nowrap}
.agenda-list-today,.agenda-list-section{display:grid;gap:14px}
.agenda-list-section>header{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}
.agenda-list-section h3{margin:4px 0 0;font-size:18px;font-weight:700;text-transform:capitalize}
.agenda-list-events{display:grid;gap:8px}
.agenda-list-event{
  display:grid;
  width:100%;
  min-height:62px;
  grid-template-columns:minmax(145px,190px) minmax(0,1fr);
  align-items:center;
  gap:14px;
  padding:12px 15px;
  border:1px solid var(--line);
  border-left:3px solid var(--event-color);
  border-radius:12px;
  background:color-mix(in srgb,var(--text) 1.8%,transparent);
  color:var(--text);
  text-align:left;
  cursor:pointer;
}
.agenda-list-event:hover,.agenda-list-event:focus-visible{border-color:var(--line-strong);border-left-color:var(--event-color);background:color-mix(in srgb,var(--text) 3.2%,transparent)}
.agenda-list-event-time{color:var(--cream);font-size:10px;font-weight:700;line-height:1.35}
.agenda-list-event-schedule,.agenda-list-event-copy{display:grid;min-width:0;gap:3px}
.agenda-list-event-date{color:var(--text);font-size:10px;font-weight:700;line-height:1.35;text-transform:capitalize}
.agenda-list-event-copy strong{overflow:hidden;font-size:11px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.agenda-list-event-copy small{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:9px}
.agenda-list-empty{display:flex;min-height:58px;align-items:center;justify-content:center;gap:8px;padding:12px;border:1px dashed var(--line);border-radius:12px;background:color-mix(in srgb,var(--text) 1.2%,transparent);color:var(--muted);font-size:10px}
.agenda-list-empty p{margin:0}
@media(max-width:850px){
  .agenda-calendar-head{align-items:stretch;flex-direction:column}
  .agenda-period-controls{width:100%;min-width:0}
  .calendar-view-switcher{align-self:flex-start}
  .agenda-week-grid{overflow:hidden}
  .agenda-day-event{grid-template-columns:110px minmax(0,1fr)}
  .agenda-day-event>span:last-child{grid-column:2}
}
@media(max-width:760px){
  .main-content.main-content-planning{padding:12px}
  .vv-dossiers .agenda-calendar-card{height:clamp(460px,calc(100dvh - 190px),760px);min-height:0}
  .vv-dossiers .agenda-calendar-card:has(.agenda-view-root:is(.is-day,.is-week,.is-list)){height:clamp(460px,calc(100dvh - 190px),760px)}
  .agenda-calendar-head{flex:0 0 auto;gap:10px;padding:12px 16px}
  .calendar-view-switcher{width:100%}
  .calendar-view-switcher button{flex:1;min-width:0;padding:0 7px}
  .agenda-view-root{flex:1 1 auto;min-height:0}
  .agenda-view-root.is-month{flex:1 1 auto}
  .agenda-month-weekdays,.agenda-month-grid{min-width:0}
  .agenda-month-weekdays span{padding:9px 2px}
  .agenda-month-grid{grid-auto-rows:minmax(0,1fr)}
  .agenda-month-grid .calendar-day{min-height:0;padding:28px 6px 6px}
  .agenda-month-grid .calendar-day>span:first-child{top:7px;left:6px}
  .agenda-month-grid .calendar-day .cal-event{padding:4px 3px;font-size:7px}
  .agenda-week-grid{height:100%;min-height:0}
  .agenda-week-day{padding:42px 4px 9px}
  .agenda-week-day-head{top:8px;left:4px}
  .agenda-week-day-head span{font-size:7px}
  .agenda-week-day-head strong{font-size:11px}
  .agenda-week-event{padding:7px 5px}
  .agenda-day-view{padding:17px}
  .agenda-day-view>header{align-items:flex-start}
  .agenda-day-event{grid-template-columns:1fr;gap:8px}
  .agenda-day-event>span:last-child{grid-column:auto}
  .agenda-list-view{gap:20px;padding:16px}
  .agenda-list-section h3{font-size:16px}
  .agenda-list-event{grid-template-columns:1fr;gap:6px;padding:12px}
}
@media(prefers-reduced-motion:reduce){.agenda-calendar-card button{transition:none}}
@media print{.agenda-calendar-head .calendar-view-switcher{display:none}.vv-dossiers .agenda-calendar-card{min-height:0;height:auto}}

.vv-commerce-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;width:100%;margin-bottom:16px}
.topbar .vv-commerce-toolbar{margin:0}.vv-commerce-toolbar>input{min-width:160px;flex:1}.vv-commerce-toolbar>.vv-select,.vv-commerce-toolbar>.vv-date{max-width:220px;flex:1}
.vv-cash-movement-button{margin-left:auto;white-space:nowrap}.vv-commerce-form{display:grid;gap:16px}.vv-commerce-form label{display:grid;gap:7px}
.vv-commerce-form .vv-inline,.vv-inline{display:flex;gap:9px;align-items:center}.vv-inline input{width:18px;height:18px;flex:none}
.vv-money-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.vv-money-summary strong{white-space:nowrap}
.vv-checkout-extras{display:grid;gap:18px;margin:16px 0}.vv-waiting-picks,.vv-advance-checkout{display:grid;gap:12px;padding:14px;border:1px solid #444;border-radius:12px}
.vv-advance-amount{display:grid;gap:7px}.vv-advance-amount>input{width:100%;min-width:0;box-sizing:border-box}
.vv-waiting-picks h3{margin:0;font-size:15px}.vv-waiting-pick{display:flex;gap:12px;align-items:center;justify-content:space-between}.vv-waiting-pick span{display:grid;gap:5px}.vv-waiting-pick small{color:#aaa}
.vv-commerce-table small{display:block;color:#aaa;font-size:11px;margin-top:5px}.vv-commerce-row-actions{display:flex;align-items:center;gap:8px}
.vv-segment{display:flex;gap:8px}.vv-row-menu{position:relative}.vv-row-menu summary{cursor:pointer;font-size:24px;list-style:none;padding:0 10px}.vv-row-menu>div{position:absolute;right:0;z-index:50;background:#272727;border:1px solid #555;border-radius:10px;padding:6px;min-width:185px;box-shadow:0 8px 20px #0008}
.vv-row-menu button{display:block;width:100%;text-align:left;background:none;border:0;color:inherit;padding:10px;cursor:pointer;border-radius:5px}.vv-row-menu button:hover{background:#383838}
.vv-cash-session{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px;flex-wrap:wrap}.vv-vocabulary-settings{margin-top:24px;padding:20px;border:1px solid #444;border-radius:14px}.vv-vocabulary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.caisse-held-line{opacity:.85}.caisse-held-line .qty-control{display:none}.caisse-held-line summary strong::after{content:' · Impayé';font-size:11px;color:#b8b5af}
.vv-commerce-form .vv-waiting-footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}
.vv-waiting-footer>.button{width:100%;min-width:0;margin:0;box-sizing:border-box}
.vv-orders-toolbar{width:100%;min-width:0}.vv-orders-toolbar>.search{width:100%;min-width:0;margin:0;box-sizing:border-box}
.vv-waiting-order-row[tabindex]{cursor:pointer}.vv-waiting-order-row[tabindex]:hover{background:var(--selected,#303030)}
.vv-waiting-order-row:focus-visible{outline:2px solid var(--vv-focus,#eee);outline-offset:-2px}
.vv-orders-page .vv-commerce-row-actions{display:table-cell;vertical-align:middle;text-align:right}.vv-orders-page .vv-row-menu{display:inline-block}
.topbar:has(.vv-journal-toolbar){height:auto;min-height:72px;padding-block:10px;align-items:stretch}
.topbar-page-slot:has(.vv-journal-toolbar){container-type:inline-size;container-name:vv-commerce-header;overflow:visible;align-self:stretch}
.topbar .vv-journal-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;align-items:center}
.topbar .vv-journal-toolbar:has(>.vv-cash-movement-button){grid-template-columns:repeat(4,minmax(0,1fr)) auto}
.topbar .vv-journal-toolbar>:is(.vv-date,.vv-select){width:100%;min-width:0;max-width:none}
.vv-journal-toolbar .vv-trigger{min-height:44px}.vv-journal-toolbar .vv-cash-movement-button{margin:0;min-height:44px}
@container vv-commerce-header (max-width:850px){.topbar .vv-journal-toolbar,.topbar .vv-journal-toolbar:has(>.vv-cash-movement-button){grid-template-columns:repeat(2,minmax(0,1fr))}.vv-journal-toolbar .vv-cash-movement-button{grid-column:1/-1;justify-self:end}}
@media(max-width:760px){.vv-commerce-toolbar{gap:8px}.vv-commerce-toolbar>.vv-select,.vv-commerce-toolbar>.vv-date{min-width:130px;max-width:none}.vv-cash-movement-button{margin-left:0;width:100%}.vv-waiting-pick{align-items:flex-start;flex-direction:column}.vv-waiting-pick button{width:100%}.vv-vocabulary-grid{grid-template-columns:1fr}.vv-commerce-table{min-width:650px}.vv-commercial-journal .m-table-wrap{overflow:auto}.vv-commerce-toolbar>.vv-date{flex-basis:calc(50% - 8px)}}
/* Catalogue controls stay separate from the card's add/open action. */
.vv-catalogue-card{position:relative;min-width:0;display:grid}
.vv-catalogue-card>.caisse-category-card,.vv-catalogue-card>.pos-product{width:100%;height:100%;box-sizing:border-box}
.vv-card-menu-trigger{position:absolute;z-index:3;top:6px;right:6px;display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:7px;background:#17171726;color:#f5f3efb3;font-size:21px;line-height:1;cursor:pointer}
.vv-card-menu-trigger:hover,.vv-card-menu-trigger:focus-visible{background:#272727;border-color:#aaa}
.vv-card-menu-trigger:disabled{opacity:.45;cursor:default}
.vv-catalogue-product .product-stock{right:40px;max-width:calc(100% - 52px)}
.vv-card-menu{position:fixed;z-index:1200;width:170px;padding:5px;background:#272727;border:1px solid #555;border-radius:9px;box-shadow:0 8px 22px #0008;box-sizing:border-box}
.vv-card-menu button{display:block;width:100%;min-height:42px;padding:8px 12px;text-align:left;border:0;border-radius:5px;background:transparent;color:#f5f3ef;cursor:pointer;font-size:13px}
.vv-card-menu button:hover,.vv-card-menu button:focus-visible{background:#383838;outline:0}
.caisse-catalogue .vv-catalogue-add{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;background:transparent;border:1px dashed var(--border-control,#686868);color:var(--text-secondary,#b8b5af);padding:20px;box-shadow:none}
.vv-catalogue-add>span{font-size:36px;font-weight:300;line-height:1}.vv-catalogue-add>strong{font-size:12px}
.caisse-catalogue .vv-catalogue-add.caisse-category-card{display:block;padding:0;aspect-ratio:auto;min-height:0}
.vv-catalogue-add.caisse-category-card>.vv-add-category-image{display:grid;place-items:center;background:transparent}
.vv-add-category-image>svg{width:30px;height:30px}
.vv-catalogue-add.caisse-category-card>.caisse-category-name{justify-content:center;padding-inline:11px;font-size:11px;font-weight:590;line-height:1.3}
.vv-catalogue-photo-preview{width:100%;max-height:220px;object-fit:contain;border-radius:8px;background:#171717}
.vv-orders-toolbar>.ops-search{display:flex;align-items:center;width:100%;box-sizing:border-box;margin:0}
main#main-content:has(>.vv-orders-page){padding:0;overflow:visible}
.vv-orders-page{width:100%;max-width:none;margin:0;padding:0;background:transparent;border:0;border-radius:0;min-height:100%}
.vv-orders-page>.vv-commerce-table{width:100%;min-width:0;border-radius:0;border-collapse:collapse}
.vv-orders-page>.m-muted{padding:18px}.vv-orders-page .vv-commerce-table td{white-space:normal;overflow-wrap:anywhere}
.vv-orders-page .vv-commerce-table th:last-child{width:58px}
.vv-journal-table{width:100%;min-width:960px;table-layout:fixed}.vv-journal-table :is(th,td){width:12.5%;overflow-wrap:anywhere}.vv-journal-table .m-num{white-space:nowrap;text-align:right}.vv-journal-table-wrap{width:100%;overflow:auto;border:0;border-radius:0;background:transparent}
.vv-journal-entry{cursor:pointer}.vv-journal-entry:focus-visible{outline:2px solid var(--vv-focus,#eee);outline-offset:-2px}
.vv-journal-table .vv-journal-dossier,.vv-journal-entry>td:first-child{white-space:normal;overflow-wrap:anywhere;word-break:normal;overflow:hidden;line-height:1.35}
main#main-content:has(>.vv-commercial-journal){padding:0;max-width:none;margin:0}
.vv-commercial-journal{width:100%;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;padding-bottom:90px}
.vv-commercial-journal>:is(.m-muted,.m-alert,.vv-cash-session){margin-inline:16px}
.vv-cash-movement-fab{position:fixed;z-index:25;right:24px;bottom:24px;width:52px;height:52px;min-width:52px;padding:0;border-radius:50%;box-shadow:0 8px 24px #0007}
.vv-cash-movement-fab>svg{width:23px;height:23px}
@media(max-width:760px){.vv-cash-movement-fab{right:16px;bottom:calc(82px + env(safe-area-inset-bottom));width:48px;height:48px;min-width:48px}}
@media print{.vv-cash-movement-fab{display:none}}
@media(max-width:760px){.vv-orders-page .vv-commerce-table th,.vv-orders-page .vv-commerce-table td{padding:12px 8px}.vv-orders-page .vv-commerce-table th:last-child{width:40px}.vv-card-menu-trigger{width:30px;height:30px}}

.caisse-catalog-stage.is-animating :is(.vv-card-menu-trigger,.vv-catalogue-add){visibility:hidden}
.caisse-category-image:has(>svg){display:grid;place-items:center;color:var(--text-secondary,#b8b5af)}

main#main-content:has(>.vv-finance-page){padding:0;max-width:none;margin:0;overflow-x:auto}
.vv-finance-page{width:100%;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;gap:18px}
.vv-finance-page>.vv-finance-table{width:100%;min-width:650px;margin:0;border:0;border-radius:0;border-collapse:collapse}
.vv-finance-page>.vv-finance-table :is(th,td):not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
.vv-finance-page>.vv-journal-table-wrap{border:0;border-radius:0}
.vv-finance-page>:is(.m-alert,.m-muted,.vv-cash-session,.vv-finance-export-actions){margin-inline:16px}

/* The upload action sits next to the name, with the native picker kept hidden. */
.vv-catalogue-name-row{display:flex;align-items:flex-end;gap:12px;min-width:0}
.vv-catalogue-name-row>label{flex:1;min-width:0}
.vv-catalogue-form .vv-photo-input{display:none}
.vv-photo-upload{display:flex;flex:none;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:62px;height:62px;padding:6px;border:1px dashed var(--border-control,#555);border-radius:12px;background:transparent;color:var(--text-secondary,#b8b5af);cursor:pointer}
.vv-photo-upload>img{width:38px;height:38px;object-fit:cover;border-radius:8px}.vv-photo-upload>svg{width:27px;height:27px}
.vv-photo-upload>small{font-size:9px;line-height:1}.vv-photo-upload:disabled{opacity:.45;cursor:default}
.vv-photo-upload:focus-visible{outline:2px solid var(--vv-focus,#eee);outline-offset:3px}
.vv-photo-edit{display:flex;align-items:center;gap:14px}.vv-photo-edit>.vv-catalogue-photo-preview{width:calc(100% - 76px)}
.sidebar .sidebar-store{margin-top:-8px}.sidebar .sidebar-store-picker{margin-top:0}
/* Every page search follows the Caisse field, including filter-bearing headers. */
body .topbar-page-slot :is(.ops-search,.stocks-search>span:last-child){display:flex;align-items:center;flex:1;width:100%;min-width:0;height:44px;min-height:44px;padding:0 13px;gap:10px;border:1px solid var(--vv-line);border-radius:var(--vv-radius);background:var(--vv-field);color:#aaa7a1;box-sizing:border-box;margin:0}
body .topbar-page-slot :is(.ops-search,.stocks-search>span:last-child):focus-within{border-color:var(--vv-focus);outline:0;box-shadow:0 0 0 1px var(--vv-focus)}
body .topbar-page-slot :is(.ops-search,.stocks-search>span:last-child)>svg{display:block;flex:0 0 18px;width:18px;height:18px;margin:0}
body .topbar-page-slot :is(.ops-search,.stocks-search>span:last-child)>input{display:block;flex:1;width:100%;min-width:0;height:100%;min-height:0;margin:0;padding:0;border:0;outline:0;box-shadow:none;background:transparent;font:inherit;font-size:13px;line-height:normal;color:#f5f3ef}
body .topbar-page-slot :is(.ops-search,.stocks-search>span:last-child)>input::placeholder{color:#aaa7a1;opacity:1}
body .topbar:has(.ops-search){padding-inline:15px}
@media(max-width:760px){body .topbar-page-slot :is(.ops-search,.stocks-search>span:last-child)>input{font-size:16px}}
.caisse-cart-line .qty-control{position:relative;overflow:hidden}
.caisse-cart-line .qty-control:focus-within{border-color:var(--vv-focus,#aaa);box-shadow:0 0 0 1px var(--vv-focus,#aaa)}
.caisse-cart-line .qty-control input:is(:focus,:focus-visible){outline:0!important;outline-offset:0!important;box-shadow:none!important;background:transparent!important;border:0!important;border-radius:0}
.vv-dossier-empty-cell>.vv-dossier-empty{display:grid;justify-items:center;align-content:center;gap:8px;min-height:220px;padding:28px 18px;text-align:center;background:transparent;border:0;border-radius:0}
.caisse-cancel-confirm .actions{align-items:stretch}
.caisse-cancel-confirm .actions>.button{align-self:stretch;min-height:48px;height:100%;margin:0;white-space:normal;justify-content:center}
.vv-checkout-modal .ops-form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;align-items:stretch}
.vv-checkout-modal .ops-form-actions>.button{width:100%;height:100%;min-height:44px;white-space:normal;justify-content:center;margin:0}
.vv-sync-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center}
.vv-sync-top>.button{margin:0;align-self:center;white-space:nowrap}
.vv-sync-top .sync-summary{margin:0;min-width:0}
.vv-sync-top .sync-summary p{margin:12px 0 6px}
.vv-sync-recovery:empty{display:none}
.vv-stores-page .m-table-wrap{border:0;border-radius:0;background:transparent}
.vv-stores-page .vv-table-empty{text-align:center;padding:48px 18px}
.vv-store-accounts{border:0;background:transparent;color:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font:inherit}
@media(max-width:480px){.vv-sync-top{gap:12px;grid-template-columns:minmax(0,1fr) auto}.vv-sync-top>.button{padding:10px;font-size:12px}.vv-stores-page .m-table{min-width:540px}}

/* Magasins shares the Comptes table and full-page spacing. */
.main-content.main-content-magasins{padding:0;max-width:none;margin:0}.topbar.topbar-magasins{padding-inline:15px}.topbar-magasins .topbar-page-slot{overflow:visible}
.main-content-magasins .vv-stores-page{max-width:none;margin:0;gap:0}
.vv-stores-page .accounts-table{min-width:780px}.vv-stores-page td{overflow-wrap:anywhere}.vv-stores-page .vv-commerce-row-actions{white-space:nowrap}.vv-stores-page .vv-store-accounts{background:var(--elevated,#292929);text-decoration:none;border:1px solid var(--border,#3d3d3d)}
.vv-store-footer,.vv-profile-footer{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}.vv-store-footer>.button,.vv-profile-footer>.button{width:100%;min-height:44px;margin:0;white-space:normal}
.topbar.topbar-reglages{display:none!important}
.vv-directory-table{table-layout:auto!important;min-width:980px}
.vv-directory-table :is(th,td):first-child{width:70px;min-width:70px;padding-inline:15px}
.vv-directory-table th:first-child{white-space:normal}
.vv-directory-table :is(th,td):nth-child(n+2){width:auto!important;overflow-wrap:anywhere}
.vv-stores-page .vv-directory-table{min-width:780px}
.vv-directory-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;overflow:hidden;background:var(--selected,#38463e);color:var(--text-primary,#eee);font-size:13px;font-weight:650}
.vv-directory-avatar>img{width:100%;height:100%;object-fit:cover}
.vv-directory-row{cursor:pointer}
.vv-directory-row:hover{background:var(--selected,#2c322e)}
.vv-directory-row:focus-visible{outline:2px solid var(--focus-neutral,#e5e2dc);outline-offset:-2px}
.vv-profile-access{width:100%;min-height:44px;margin-top:10px}
.vv-accounts-page .m-alert{margin-inline:16px}
.vv-commercial-journal.vv-journal-populated{display:flex;flex-direction:column;min-height:0;gap:0;padding-bottom:0;overflow:hidden}
.vv-journal-populated>.vv-journal-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0}
.vv-journal-scroll>.vv-journal-table-wrap{overflow:visible}
.vv-journal-scroll:has(>.vv-empty-page){display:flex;flex:1;flex-direction:column;min-height:0;width:100%}
.vv-journal-scroll>.vv-finance-table{min-width:960px}
.vv-journal-populated .vv-journal-table thead{position:sticky;top:0;z-index:2;background:var(--surface,#202020)}
.vv-journal-total{flex-shrink:0;overflow-x:auto;overflow-y:hidden;position:relative;z-index:3;scrollbar-width:none;background:var(--surface,#202020);border-top:1px solid var(--border-subtle,#444);box-shadow:0 -7px 22px #0002}
.vv-journal-total::-webkit-scrollbar{display:none}
.vv-journal-total-table{margin:0}
.vv-journal-total-table strong{font-weight:700}
.vv-journal-total-table th[colspan="2"]{width:25%}
.vv-journal-total-table tfoot :is(th,td){padding-block:16px;background:var(--surface,#202020)}
.vv-journal-populated>.vv-cash-movement-fab{bottom:84px}
main#main-content:has(>.vv-commercial-journal.vv-journal-populated){padding-bottom:0}
.vv-dossiers:has(.vv-dossier-table-wrap){padding-bottom:0}
.vv-dossiers .vv-dossier-table-wrap{margin-bottom:0}
.app-shell :is(.vv-dossier-fab,.accounts-new-account-fab,.stocks-new-product-fab,.approvisionnements-fab,.vv-cash-movement-fab){display:grid;place-items:center;width:56px;min-width:56px;height:56px;min-height:56px;right:28px;bottom:28px;padding:0!important;border:0;border-radius:16px;background:var(--action-neutral,#e5e2dc);color:var(--on-action-neutral,#191919);box-shadow:0 14px 34px #0007}
.app-shell :is(.vv-dossier-fab,.accounts-new-account-fab,.stocks-new-product-fab,.approvisionnements-fab,.vv-cash-movement-fab)>svg{width:23px;height:23px}
.app-shell .vv-journal-populated>.vv-cash-movement-fab{bottom:84px}
@media(max-width:760px){.app-shell :is(.vv-dossier-fab,.accounts-new-account-fab,.stocks-new-product-fab,.approvisionnements-fab,.vv-cash-movement-fab){right:16px;bottom:calc(84px + env(safe-area-inset-bottom));width:52px;min-width:52px;height:52px;min-height:52px;border-radius:14px}.app-shell .vv-journal-populated>.vv-cash-movement-fab{bottom:calc(144px + env(safe-area-inset-bottom))}.main-content.main-content-dossiers:has(.vv-dossier-table-wrap){padding-bottom:calc(71px + env(safe-area-inset-bottom))}}
@media print{.vv-commercial-journal.vv-journal-populated{display:block;height:auto!important;overflow:visible}.vv-journal-populated>.vv-journal-scroll{overflow:visible}.vv-journal-total{overflow:visible;box-shadow:none;border:0;margin:0!important}.vv-journal-total-table{min-width:0!important;width:100%!important}.vv-journal-populated .vv-journal-table{min-width:0}.vv-journal-populated .vv-journal-table thead{position:static}.vv-journal-populated>.vv-cash-session{display:none}}
.vv-profile-modal{width:min(580px,calc(100vw - 28px));max-width:580px}.vv-profile-modal>.modal-body{padding:0 24px 20px;overflow-x:hidden}.vv-profile-cover{height:154px;margin:0 -24px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 15% 20%,#57756880,transparent 55%),linear-gradient(120deg,#26382f,#202725 65%,#384741)}.vv-profile-cover>img{width:100%;height:100%;object-fit:cover}.vv-profile-cover-edit{position:absolute;right:16px;bottom:12px;display:flex;align-items:center;gap:7px;background:#171717bb;color:#fff;border:1px solid #ffffff40;border-radius:9px;padding:9px 12px;cursor:pointer;backdrop-filter:blur(6px)}
.vv-profile-heading{position:relative;display:flex;align-items:center;gap:18px;margin-top:-35px;margin-bottom:24px}.vv-profile-heading>div:last-child{padding-top:36px;min-width:0}.vv-profile-heading h3{margin:0;font-size:21px;line-height:1.3}.vv-profile-heading p{margin:4px 0 0;font-size:13px;color:var(--text-secondary,#b7b7b7);overflow-wrap:anywhere}.vv-profile-avatar{position:relative;flex:0 0 92px;height:92px;border:4px solid var(--surface,#202020);border-radius:50%;display:grid;place-items:center;background:#3c5145;color:#f6f7f6;font-size:28px;font-weight:650}.vv-profile-avatar>img{width:100%;height:100%;border-radius:50%;object-fit:cover}.vv-profile-avatar>button{position:absolute;right:-5px;bottom:-2px;display:grid;place-items:center;width:31px;height:31px;border-radius:50%;border:2px solid var(--surface,#202020);background:var(--action-neutral,#e7e5df);color:var(--on-action-neutral,#171717);cursor:pointer}
.vv-profile-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:0 0 24px}.vv-profile-details dt{color:var(--text-secondary,#aaa8a3);font-size:11px;margin-bottom:5px}.vv-profile-details dd{margin:0;font-size:14px;overflow-wrap:anywhere}.vv-profile-modify{width:100%;min-height:44px}.vv-profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.vv-profile-form label{display:flex;flex-direction:column;gap:7px;font-size:12px}.vv-profile-photo-removal{display:flex;flex-wrap:wrap;gap:8px}.vv-profile-spaces{display:flex;gap:10px;margin-top:18px;padding-top:18px;border-top:1px solid var(--border,#3d3d3d)}.vv-profile-spaces>.button{flex:1;min-width:0;text-align:center}.vv-profile-logout{margin-top:12px;color:var(--text-secondary,#aaa8a3)}.account-button .avatar>img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
@media(max-width:480px){.vv-profile-modal>.modal-body{padding-inline:18px}.vv-profile-cover{margin-inline:-18px;height:136px}.vv-profile-heading{gap:12px}.vv-profile-avatar{flex-basis:80px;height:80px}.vv-profile-heading h3{font-size:18px}.vv-profile-details{gap:16px}.vv-profile-spaces{flex-wrap:wrap}.vv-profile-spaces>.button{font-size:12px}}
@media(max-width:760px){.main-content.main-content-magasins{padding-bottom:calc(80px + env(safe-area-inset-bottom))}.topbar.topbar-magasins{padding:8px 9px}}

/* Finish every table with the same separator as its body rows. */
body .app-shell table{border-bottom-width:1px!important;border-bottom-style:solid!important;border-bottom-color:var(--border,#3d3d3d)!important}
body .app-shell table>:is(tbody,tfoot):last-child>tr:last-child{border-bottom:0!important}

/* Page creation buttons share the Catalogue button's dimensions and appearance.
 * Empty-page visibility rules are loaded afterwards. */
.main-content button.vv-page-add{
  box-sizing:border-box;
  position:fixed;
  z-index:25;
  right:var(--vv-fab-right);
  bottom:var(--vv-fab-bottom);
  display:grid;
  place-items:center;
  width:var(--vv-fab-size);
  min-width:var(--vv-fab-size);
  height:var(--vv-fab-size);
  min-height:var(--vv-fab-size);
  margin:0;
  padding:0;
  border:1px solid color-mix(in srgb,var(--text-primary) 18%,transparent);
  border-radius:14px;
  background:var(--action-neutral);
  color:var(--on-action-neutral);
  box-shadow:0 14px 34px #0007;
  cursor:pointer;
  transition:background .16s,transform .16s,box-shadow .16s;
}
.main-content button.vv-page-add>svg{display:block;width:28px;height:28px;margin:0;transform:none}
.main-content button.vv-page-add:hover:not(:disabled){background:var(--action-neutral-hover);transform:translateY(-2px);box-shadow:0 18px 38px #0008}
.main-content button.vv-page-add:active:not(:disabled){transform:translateY(0)}
.main-content button.vv-page-add:focus-visible{outline:2px solid var(--focus-neutral);outline-offset:3px}
.main-content button.vv-page-add:disabled{opacity:.42;cursor:not-allowed}
@media(prefers-reduced-motion:reduce){.main-content button.vv-page-add{transition:none}}
@media print{.main-content button.vv-page-add{display:none!important}}

/* Shared illustrated empty page; callers opt into a real creation action. */
.vv-empty-state{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none;gap:20px;width:min(400px,100%);aspect-ratio:1;min-height:0;margin-inline:auto;padding:32px 24px;border:1px solid rgba(239,235,226,.08);border-radius:18px;background:transparent;text-align:center;color:var(--text,#f5f3ef)}
.vv-empty-illustration{display:block;flex:none;width:150px;height:auto;max-width:100%}
.vv-empty-halo{fill:#839e8d;opacity:.055}.vv-empty-shadow{fill:#080c0a;opacity:.2}
.vv-empty-back-card{fill:var(--surface,#202020);stroke:#777d77;opacity:.55}
.vv-empty-front-card{fill:var(--surface-elevated,#292929);stroke:#9a9d96;opacity:.75}
.vv-empty-card-lines,.vv-empty-spark{stroke:#969c92;opacity:.4}
.vv-empty-tray{fill:var(--surface,#202020);stroke:#a0a397;opacity:.85}
.vv-empty-leaf{fill:#8eab98;fill-opacity:.12;stroke:#8eab98}
.vv-empty-copy{display:grid;gap:9px;max-width:460px}
.vv-empty-copy h2{margin:0;font-size:15px;font-weight:600;line-height:1.45;text-wrap:balance}
.vv-empty-copy p{margin:0;color:var(--text-secondary,#b8b5af);font-size:13px;line-height:1.6;text-wrap:balance}
.vv-empty-state>.button.vv-empty-create{display:inline-flex;align-items:center;justify-content:center;gap:9px;max-width:100%;margin-top:2px;white-space:normal;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:13px;font-weight:700;line-height:1.35}
.vv-empty-create>.vv-empty-create-label{font:inherit;font-weight:700}
.vv-empty-create>svg{display:block;flex:0 0 16px;width:16px;height:16px}
@media(max-width:760px){.vv-empty-state{padding:24px 18px;border-radius:16px;gap:17px}.vv-empty-illustration{width:132px}}

/* Center an empty Stats page in the space between its header and navigation. */
.workspace:has(.vv-stats-empty){display:flex;flex-direction:column;min-height:100dvh}
.workspace:has(.vv-stats-empty)>.topbar{flex:none}
.workspace:has(.vv-stats-empty)>.main-content{box-sizing:border-box;display:flex;flex:1;align-self:stretch;min-width:0;max-width:none;margin:0;padding:24px}
.stats-page:has(.vv-stats-empty){flex:1;gap:0}
.vv-stats-empty{flex:1;justify-content:center;align-items:center;width:100%}
.vv-stats-empty>.m-alert{align-self:stretch}
@media(max-width:760px){.workspace:has(.vv-stats-empty)>.main-content{padding:18px 16px calc(80px + env(safe-area-inset-bottom))}}
@media print{.workspace:has(.vv-stats-empty){display:block;min-height:0}.vv-empty-state{width:400px;max-width:100%;break-inside:avoid}}

/* Shared square empty pages occupy the available workspace, below the toolbar. */
.vv-empty-page{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;min-width:0;width:100%;gap:20px}
.workspace:has(.main-content .vv-empty-page){display:flex;flex-direction:column;min-height:100dvh}
.workspace:has(.main-content .vv-empty-page)>.topbar{flex:none}
.workspace:has(.main-content .vv-empty-page)>.main-content{box-sizing:border-box;display:flex;flex:1;align-self:stretch;min-width:0;max-width:none;margin:0;padding:24px}
.main-content>:is(.m-page,.vv-dossiers,.stocks-direct):has(.vv-empty-page),.vv-catalogues:has(>.vv-empty-page),.vv-catalogue-detail:has(>.vv-empty-page){display:flex;flex:1;flex-direction:column;min-width:0;min-height:0;gap:20px;width:100%;margin:0;padding:0}
.vv-empty-page>.vv-empty-state{margin-block:0}
.vv-empty-page:has(.vv-empty-create)~:is(.vv-dossier-fab,.approvisionnements-fab),.accounts-page:has(.vv-empty-create)>.accounts-new-account-fab,.stocks-direct:has(.vv-empty-create)>.stocks-new-product-fab{display:none}
.pos-page:has(.vv-empty-page) .caisse-catalog-stage,.pos-page:has(.vv-empty-page) .caisse-category-section,.pos-page:has(.vv-empty-page) .caisse-product-section{min-height:400px}
.pos-page:has(.vv-empty-page) .caisse-catalog-stage{flex:1}
.caisse-category-section:has(>.vv-empty-page),.caisse-product-section:has(>.vv-empty-page){display:flex;align-items:stretch;justify-content:center}
.vv-dossiers .agenda-calendar-card:has(.vv-empty-page){height:auto;flex:1}
.agenda-calendar-card:has(.vv-empty-page) :is(.agenda-view-root,.agenda-day-view,.agenda-list-view,.agenda-list-section,.agenda-list-events){display:flex;flex:1;flex-direction:column;min-height:0}
.agenda-calendar-card:has(.vv-empty-page){background:transparent;border:0;border-radius:0;box-shadow:none}
@media(max-width:760px){.workspace:has(.main-content .vv-empty-page)>.main-content{padding:18px 16px calc(80px + env(safe-area-inset-bottom))}.pos-page:has(.vv-empty-page) :is(.caisse-catalog-stage,.caisse-category-section,.caisse-product-section){min-height:min(400px,calc(100vw - 32px))}}
@media print{.workspace:has(.main-content .vv-empty-page){display:block;min-height:0}.workspace:has(.main-content .vv-empty-page)>.main-content{display:block}}

.main-content>.pos-page:has(.vv-empty-page),.pos-page:has(.vv-empty-page)>.caisse-layout,.pos-page:has(.vv-empty-page) .caisse-catalogue{display:flex;flex:1;flex-direction:column;min-width:0;width:100%;padding:0}
.pos-page:has(.vv-empty-page) .caisse-category-section:has(>.vv-empty-page){height:100%}
.agenda-calendar-card:has(.vv-empty-page)>.agenda-view-root>.vv-empty-page{padding-block:20px}

@media(max-width:380px){.vv-empty-state{padding:16px;gap:12px}.vv-empty-illustration{width:90px}.vv-empty-copy{gap:7px}.vv-empty-copy h2{font-size:14px;line-height:1.35}.vv-empty-copy p{font-size:12px;line-height:1.45}.vv-empty-state>.button.vv-empty-create{min-height:38px;padding:7px 12px;font-size:12px}}

/* A genuinely empty collection needs its first creation, not filtering controls.
 * A filtered zero-result keeps its toolbar so the user can recover the results. */
.workspace:has(.main-content .vv-page-without-data)>.topbar{display:none}
.main-content:has(.vv-page-without-data) :is(.vv-dossier-fab,.accounts-new-account-fab,.stocks-new-product-fab,.approvisionnements-fab,.vv-cash-movement-fab,.vv-cash-session){display:none}

/* Final catalogue flow from 0.5.0, kept in a versioned asset for safe PWA updates. */
.caisse-catalog-stage.is-products .caisse-category-section{position:absolute;inset:0;visibility:hidden!important;pointer-events:none}
.caisse-catalog-stage.is-products .caisse-category-section *{visibility:hidden!important;pointer-events:none!important}
.caisse-catalog-stage.is-products .caisse-product-section{position:relative;inset:auto;top:auto!important;min-height:210px;visibility:visible;pointer-events:auto}
@media(max-width:760px){
  .caisse-catalog-stage.is-products .caisse-product-section{min-height:var(--vv-products-min-height,210px)}
  /* A product button is an overflow container. It must declare its own touch policy. */
  .caisse-catalog-stage.is-products,
  .caisse-catalog-stage.is-products .caisse-product-section,
  .caisse-product-section .pos-product-grid,
  .caisse-product-section .vv-catalogue-card,
  .caisse-product-section button,
  .caisse-product-section button *{touch-action:pan-y pinch-zoom}
  .caisse-product-section button img{-webkit-user-drag:none;user-select:none}
  /* Reveal the underlying cards only during a deliberate return gesture. */
  .caisse-catalog-stage.is-products.is-swipe-back .caisse-category-section,
  .caisse-catalog-stage.is-products.is-swipe-back .caisse-category-section *{visibility:visible!important}
  .caisse-catalog-stage.is-products.is-swipe-ready .caisse-category-section,
  .caisse-catalog-stage.is-products.is-swipe-ready .caisse-category-section *{pointer-events:auto!important}
}
/* One bottom reserve only: no extra scrolling for a short product grid. */
@media(max-width:760px){
  .main-content-caisse.vv-caisse-viewport{padding-bottom:var(--vv-caisse-bottom-reserve,96px)}
  .main-content-caisse.vv-caisse-viewport .pos-page{padding-bottom:0}
  .pos-mobile-summary.vv-quick-cart{display:grid;grid-template-columns:minmax(0,1fr) 122px minmax(0,1fr);align-items:center;gap:4px;padding:6px 8px;min-height:60px;cursor:default}
  .vv-quick-cart button,.vv-quick-cart input{font:inherit;color:inherit;box-sizing:border-box}
  .vv-quick-cart>.vv-quick-cart-open,.vv-quick-cart>.vv-quick-cart-total{display:flex;align-items:center;gap:5px;min-width:0;min-height:44px;padding:0 2px;border:0;background:transparent;color:inherit;cursor:pointer}
  .vv-quick-cart-open>svg{flex:0 0 18px;width:18px;height:18px}
  .vv-quick-cart-open>span{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .vv-quick-cart>.vv-quick-cart-total{justify-content:flex-end}
  .vv-quick-cart-total>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;letter-spacing:-.035em}
  .vv-quick-cart-quantity{min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:2px}
  .vv-quick-cart-name{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:9px;line-height:12px;opacity:.8}
  .vv-quick-cart-stepper{display:grid;grid-template-columns:36px minmax(0,1fr) 36px;align-items:center;gap:2px}
  .vv-quick-cart-stepper>button{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:0;border:1px solid color-mix(in srgb,currentColor 20%,transparent);border-radius:9px;background:transparent;font-size:22px;font-weight:600;line-height:1;cursor:pointer;touch-action:manipulation}
  .vv-quick-cart-stepper>input{width:100%;min-width:0;height:36px;padding:2px;border:1px solid color-mix(in srgb,currentColor 25%,transparent);border-radius:8px;background:color-mix(in srgb,currentColor 5%,transparent);text-align:center;font-size:16px;line-height:1.2;font-variant-numeric:tabular-nums}
  .vv-quick-cart-stepper>input[aria-invalid=true]{outline:2px solid currentColor;outline-offset:1px}
  .vv-quick-cart :focus-visible{outline:2px solid currentColor;outline-offset:2px}
  .vv-quick-cart button:disabled,.vv-quick-cart input:disabled{opacity:.4;cursor:not-allowed}
}
@media(max-width:359px){
  .pos-mobile-summary.vv-quick-cart{left:10px;right:10px;grid-template-columns:minmax(0,1fr) 114px minmax(0,1fr);padding-inline:6px}
  .vv-quick-cart-open>svg{display:none}
  .vv-quick-cart-total>strong{font-size:14px}
}

/* 0.5.4 — barre panier mobile épurée. */
@media(max-width:760px){
  .vv-quick-cart-name{display:none}
  .vv-quick-cart-quantity{gap:0}
  .vv-quick-cart-stepper>input{border-color:transparent;background:transparent;font-weight:700}
}

/* 0.5.4 — ajout d’un produit inconnu depuis un lecteur de caisse. */
.vv-hardware-barcode-modal .vv-work-modal-panel{width:min(540px,calc(100vw - 32px))}
.vv-hardware-barcode-modal .vv-scan-unknown{margin:0}
.vv-hardware-barcode-modal .vv-scan-create{margin-top:2px}
