/* ConnectStock 1.13.30 — shared presentation; existing business rules retained. */
:root { color-scheme: light; --shadow: 0 4px 18px #18365607; --soft: #edf6fe; --good-bg: #e4f7ef; --good-fg: #087553; --watch-bg: #fff3d7; --watch-fg: #895900; --low-bg: #ffebe7; --low-fg: #b3312d; --out-bg: #ffe6ec; --out-fg: #b62042; }
:root[data-theme="night"] { color-scheme: dark; --shadow: 0 4px 18px #0002; --soft: #20364e; --good-bg: #173e37; --good-fg: #82e1be; --watch-bg: #443923; --watch-fg: #f5d081; --low-bg: #482d33; --low-fg: #ffb0a7; --out-bg: #452639; --out-fg: #ffabc1; }
* { box-sizing: border-box; }
body { background: var(--app-bg); color: var(--text); font-family: "Segoe UI", Arial, sans-serif; }
#app { overflow: visible; }
.cyber-backdrop { display: none; }
header { background: var(--surface); color: var(--text); border-bottom: 1px solid var(--border); padding: 14px 26px; gap: 24px; box-shadow: none; min-height: 92px; }
.header-brand { flex: 0 0 auto; }
.header-logo-plate { width: 220px; padding: 8px; border-radius: 10px; background: #fff; border: 0; box-shadow: none; }
.header-logo-plate .brand-logo { width: 100%; filter: none; }
.header-logo-plate .brand-kicker { color: #28415b; font-size: 6px; }
.header-motto { color: var(--muted); border-color: var(--border); font-size: 11px; letter-spacing: .1em; }
.header-account-actions { margin-left: auto; gap: 10px; flex-wrap: wrap; }
header small { color: var(--text); max-width: 220px; }
button { border-radius: 8px; font-weight: 600; letter-spacing: 0; box-shadow: none; transition: background .15s, box-shadow .15s; }
button:hover { filter: none; box-shadow: 0 2px 8px #0078ed20; }
button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button:disabled { opacity: .5; cursor: not-allowed; }
header .ghost, .ghost-secondary { background: var(--surface); color: var(--primary); border: 1px solid var(--border); }
main { max-width: 1800px; margin: 0 auto; padding: 0 22px 30px 0; display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 24px; align-items: start; }
main > nav { position: sticky; top: 0; display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: start; gap: 5px; margin: 0; padding: 22px 12px; min-height: calc(100vh - 92px); border: 0; border-right: 1px solid var(--border); border-radius: 0; background: var(--surface); box-shadow: none; overflow: visible; }
main > nav button { display: flex; align-items: center; justify-content: flex-start; flex: 0 0 auto; width: 100%; min-width: 0; max-width: none; min-height: 45px; padding: 10px 12px; gap: 11px; text-align: left; white-space: normal; overflow: visible; background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--text); font-size: 13px; line-height: 1.35; }
nav button svg, .mobile-more-items svg { width: 21px; height: 21px; flex: 0 0 21px; }
nav button svg, .mobile-more-items svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-label { min-width: 0; flex: 1; }
main > nav button.active { background: var(--primary-soft); color: var(--primary); border-color: transparent; box-shadow: none; }
main > nav button:hover { background: var(--soft); }
main > nav button::after { display:none; }
main > nav .unread-badge { position: static; flex-shrink: 0; margin: 0; transform: none; }
main > nav .mobile-more-control { display: none; }
.workspace { min-width: 0; padding-top: 20px; }
#content { min-width: 0; }
.page-banner { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 155px; overflow: hidden; background: var(--soft); border-radius: 14px; margin-bottom: 20px; }
.page-banner-copy { position: relative; z-index: 1; flex: 1; min-width: 0; padding: 24px; }
.page-banner h1 { color: var(--text); font-size: clamp(25px, 2.3vw, 34px); margin: 0 0 8px; letter-spacing: -.7px; line-height: 1.12; }
.page-banner p { margin: 0; color: var(--muted); font-size: 14px; }
.page-banner-copy > span { display: block; margin-top: 14px; color: var(--primary); font-size: 13px; font-weight: 600; }
.reference-banner-art { display: block; width: 46%; height: auto; flex: 0 0 46%; overflow: hidden; align-self: center; }
.page-banner:not(.has-illustration) { min-height: 100px; background: transparent; }
.page-banner:not(.has-illustration) .page-banner-copy { padding-left: 4px; }
[data-theme="night"] .reference-banner-art { border-radius: 8px; }
.panel, .card { border: 1px solid var(--border); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.panel { padding: 22px; margin-bottom: 20px; }
.panel h2 { color: var(--text); font-size: 20px; letter-spacing: -.35px; }
.panel h3 { font-size: 16px; color: var(--text); }
.section-title { gap: 16px; flex-wrap: wrap; }
.section-kicker, .muted { color: var(--muted); }
input, select, textarea { background: var(--input-bg); color: var(--text); border: 1px solid var(--border); border-radius: 7px; box-shadow: none; }
input:focus, select:focus, textarea:focus { outline-color: var(--primary); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); }
.notice, .empty-state { background: var(--soft); color: var(--muted); border-color: var(--border); border-radius: 9px; }
.notice b, .notice strong { color: var(--text); }
.stat { border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.stat b { font-size: 29px; }
.stock-good { background: var(--good-bg) !important; color: var(--good-fg) !important; }
.stock-watch { background: var(--watch-bg) !important; color: var(--watch-fg) !important; }
.stock-low { background: var(--low-bg) !important; color: var(--low-fg) !important; }
.stock-out { background: var(--out-bg) !important; color: var(--out-fg) !important; }
.stat-sales, .stat-orders, .stat-revenue { background: var(--soft); color: var(--text); }
.stock-summary { gap: 12px; }
.stock-category-card { outline: none; }
.stock-category-card.selected, .stock-category-card[aria-expanded="true"] { outline: 2px solid var(--primary); outline-offset: 2px; }
.stock-category-detail { margin-top: 22px; border-radius: 10px; }
table { color: var(--text); }
th { background: var(--soft); color: var(--text); }
td, th { border-color: var(--border); }
.model-row, .model-details, .product-family, .family-head, .variant-row { border-color: var(--border); }
.reception-counter { border-radius: 10px; background: var(--primary-soft); color: var(--text); border-color: var(--border); }
.reception-counter b { color: var(--primary); }
.scanner-ready { border-color: var(--border); background: var(--good-bg); color: var(--good-fg); box-shadow: none; }
.scanner-ready small { color: inherit; }
.reception-lines { margin: 16px 0; }
.reception-line { background: var(--surface); border-color: var(--border); color: var(--text); }
.reception-history { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }
.reception-history > summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
.reception-preview { overflow-x: auto; margin: 16px 0; }
.reception-preview table { width: 100%; min-width: 580px; border-collapse: collapse; }
.reception-preview th, .reception-preview td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); }
.reception-preview td:nth-last-child(-n+3) { font-variant-numeric: tabular-nums; font-weight: 600; }
.history-row, .history-results, .transaction, .transaction-card, .daily-detail { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: none; }
.history-row summary { color: var(--text); background: transparent; }
.history-row .badge, .history-results .badge, .transaction .badge, .transaction-card .badge { background: var(--soft) !important; color: var(--muted) !important; border: 1px solid var(--border); }
.history-row small, .history-row p { color: var(--muted); }
.transaction-status { background: var(--soft); color: var(--muted); border: 1px solid var(--border); }
.history-action { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.history-results .pill, .sale-transaction .pill, .history-results .status, .sale-transaction .status { background: var(--soft) !important; color: var(--muted) !important; }
.profit-kpis .is-positive { background: var(--good-bg); color: var(--good-fg); }
.profit-kpis .is-negative { background: var(--low-bg); color: var(--low-fg); }
.history-row > div { border-top: 1px solid var(--border); }
.app-footer { max-width: 1800px; background: transparent; color: var(--muted); border-top: 1px solid var(--border); padding: 16px 24px; }
.app-footer strong { color: var(--muted); }
dialog { color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 15px; }
[data-theme="night"] .panel, [data-theme="night"] .card { background: var(--surface); }
[data-theme="night"] :is(.product-card,.product-family-card,.product-model-row,.product-variant-row,.compact-shop-card,.shop-card,.order-card,.claim-card,.professional-card,.shop-account-card,.report-totals > div,.profitability-panel,.profitability-card,.profitability-stat,.ranking-card,.sale-session-card,.billing-grid,.replenishment-row,.replenishment-head,.stock-category-row,.history-group,.daily-detail) { background: var(--surface); color: var(--text); border-color: var(--border); }
[data-theme="night"] :is(.sale-report,.sale-history,.history-dialog,.history-summary,.history-filters,.history-presets,.reception-line,.replenishment-table,.replenishment-cart) { background: var(--surface); color: var(--text); border-color: var(--border); }
[data-theme="night"] :is(.product-code,.barcode-card,.barcode-preview) { background: #fff; color: #152d50; }
/* Page layouts: keep existing controls and permission checks intact. */
.catalog-layout { display:grid; grid-template-columns:190px minmax(0,1fr) 290px; gap:16px; align-items:start; }
.catalog-layout > .panel { min-width:0; padding:18px; }
.catalog-filters { display:grid; gap:18px; }
.catalog-filters h2,.catalog-basket h2 { margin:0; }
.catalog-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(175px,1fr)); gap:14px; }
.catalog-product-card { display:flex; flex-direction:column; min-width:0; gap:8px; padding:14px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.catalog-product-card h3,.catalog-product-card p { margin:0; overflow-wrap:anywhere; }
.catalog-product-card h3 { font-size:15px; }
.catalog-photo { display:grid; place-items:center; height:150px; width:100%; padding:8px; background:var(--soft); border:0; }
.catalog-photo img { width:100%; height:134px; max-height:134px; object-fit:contain; border:0; }
.catalog-color { display:flex; align-items:center; gap:6px; font-size:13px; }
.catalog-price { font-size:20px; margin-top:auto; }
.catalog-availability { color:var(--good-fg); font-size:12px; }
.catalog-product-card .qty { width:100%; justify-content:space-between; }
.catalog-basket { position:sticky; top:16px; }
.catalog-basket > button { width:100%; margin-top:16px; }
.catalog-basket .row { display:grid; gap:8px; padding:14px 0; font-size:13px; }
.catalog-basket .cart-total { padding:18px 0; border-top:1px solid var(--border); }
.catalog-basket .notice { font-size:12px; }
.product-group-form { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(250px,1fr); gap:20px; background:transparent; padding:0; border:0; box-shadow:none; }
.product-group-form > section { padding:22px; border:1px solid var(--border); border-radius:13px; background:var(--surface); min-width:0; }
.product-group-form h2 { margin-top:0; }
.product-information { display:grid; align-content:start; gap:16px; }
.product-base-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.product-photographs .file-picker { padding:24px 12px; border:1px dashed var(--primary); border-radius:10px; background:var(--soft); flex-wrap:wrap; }
.product-photographs .photo-preview-grid { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:16px; }
.product-photographs .pending-photo img { object-fit:contain; }
.product-variants,.product-group-form > .group-create-button { grid-column:1/-1; }
.product-group-form > .group-create-button { justify-self:end; }
.model-picker { grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); }
.variant-model,.variant-colors { background:var(--surface); color:var(--text); border-color:var(--border); }
#content[data-page="stock"] { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; align-items:start; }
#content[data-page="stock"] .stock-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
#content[data-page="stock"] .panel { min-width:0; margin-bottom:0; }
.reception-panel > .actions { flex-wrap:wrap; gap:10px; justify-content:flex-end; }
.stock-category-detail { overflow:hidden; }
.stock-category-card.active { outline:2px solid var(--primary); outline-offset:2px; }
.stock-defective,.stock-missing { background:var(--soft); color:var(--text); }
.compact-product-group,.compact-model { background:var(--surface); color:var(--text); border:1px solid var(--border); border-radius:12px; }
.compact-product-group > summary { background:transparent; padding:18px; gap:16px; }
.compact-model > summary { background:var(--soft); color:var(--text); }
.compact-variant { background:var(--surface); color:var(--text); border-color:var(--border); }
.compact-group-name b,.compact-group-name small,.compact-group-name span { color:inherit; }
.compact-group-name b { letter-spacing:0; }
.compact-group-actions { background:transparent; border-color:var(--border); flex-wrap:wrap; }
.replenishment-table { overflow-x:auto; }
.replenishment-row,.replenishment-head { min-width:620px; border-color:var(--border); }
.replenishment-action-card { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:20px; margin-top:20px; }
.replenishment-order-line { border-color:var(--border); background:var(--surface); }
.replenishment-switch button:not(.active) { background:var(--soft); color:var(--text); }
.account-self-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.account-self-form > button { grid-column:1/-1; justify-self:end; }
.profitability-settings { background:transparent; border:0; padding:0; box-shadow:none; }
#profitabilityForm { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr); gap:20px; }
#profitabilityForm > section { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:22px; min-width:0; }
#profitabilityForm > .profitability-preview,#profitabilityForm > button { grid-column:1/-1; }
.schedule-row { grid-template-columns:minmax(85px,1fr) minmax(0,1fr) minmax(0,1fr); }
.schedule-row input { max-width:100%; min-width:0; }
.employee-row { background:var(--soft); border-color:var(--border); color:var(--text); }
.history-row,.history-group,.history-day,.history-month,.transaction-card { background:var(--surface); color:var(--text); }
:is(.history-row,.history-group,.history-day,.history-month,.transaction-card) :is(.pill,.badge,.status,.transaction-status) { background:var(--soft)!important; color:var(--muted)!important; border-color:var(--border)!important; }
[data-theme="night"] :is(.report-card,.report-totals,.sale-transaction,.scanner-ready,.product-base-fields,.model-picker-title,.variant-model,.compact-variant,.compact-model,.compact-product-group,.employee-row,.schedule-row,.replenishment-action-card,.replenishment-order-line,.account-self-form) { color:var(--text); border-color:var(--border); }
[data-theme="night"] :is(.history-dialog,.invoice-dialog,.notification-popup,.mobile-more-sheet,.sale-report,.sale-session,.report-card,.report-totals,.sale-transaction) { background:var(--surface); color:var(--text); }
[data-theme="night"] .notification-popup > span { color:var(--muted); }
[data-theme="night"] .notification-popup :is(.notification-symbol,.notification-heading small,.notification-close) { background:var(--soft); color:var(--text); }
[data-theme="night"] .notification-popup > button:last-child { background:var(--primary); color:var(--on-primary); border-color:var(--border); }
[data-theme="night"] :is(.mini-pdf,.icon-button) { background:var(--soft); color:var(--primary); border-color:var(--border); }
.notification-popup { overflow-wrap:anywhere; max-height:calc(100dvh - 36px); overflow-y:auto; }
.compact-variant-info,.compact-group-name { min-width:0; overflow-wrap:anywhere; }
.reception-variant-addition { pointer-events:none; }
@media (max-width:600px) {
  .history-row summary { grid-template-columns:minmax(0,1fr) auto; }
  .history-row summary > span { grid-row:2; grid-column:1/-1; overflow-wrap:anywhere; }
  .reception-panel > .actions button { flex:1 1 100%; }
  .header-account-actions { max-width:100%; }
}
/* Printed invoices and barcode labels deliberately retain white paper backgrounds. */
.reference-banner-art { object-fit:contain; }
.report-totals > div { background:var(--surface); padding:20px; }
.report-totals b { color:var(--primary); font-size:clamp(20px,2vw,27px); }
.sales-report-filters { padding:12px 0 20px; }
.report-table th { background:var(--soft); color:var(--text); font-size:12px; }
.report-table td { padding:12px 14px; }
.report-table tbody tr:nth-child(even) { background:var(--soft); }
.history-action,.history-delete-action { background:var(--soft); color:var(--text); border:1px solid var(--border); box-shadow:none; }
.history-delete-action small { color:var(--muted); }
.history-delete-symbol { background:var(--surface); }
@media (min-width:1450px) { #content[data-page="stock"]:has(.reception-panel) { grid-template-columns:minmax(0,1fr) minmax(0,1fr); } }
@media (max-width:1300px) { .catalog-layout { grid-template-columns:minmax(0,1fr) 260px; } .catalog-filters { grid-column:1/-1; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:center; } .catalog-filters h2 { grid-column:1/-1; } }
@media (max-width:900px) { .product-group-form,#profitabilityForm { grid-template-columns:1fr; } .catalog-layout { grid-template-columns:1fr; } .catalog-basket { position:static; } }
@media (max-width:600px) { .catalog-filters,.account-self-form,.product-base-fields { grid-template-columns:1fr; } #content[data-page="stock"] .stock-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } .catalog-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } .catalog-product-card { padding:10px; } .catalog-photo { height:115px; } .catalog-photo img { height:95px; } .product-group-form > section { padding:15px; } }
/* Browser defaults must keep details and acknowledgement badges truly hidden. */
details:not([open]) > :not(summary) { display: none !important; }
@media (max-width: 1100px) and (min-width: 801px) {
  main { grid-template-columns: 198px minmax(0,1fr); gap: 16px; padding-right: 16px; }
  header { padding: 12px 18px; }
  .header-motto { display: none; }
  .grid.stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  header { min-height: 0; padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
  .header-logo-plate { width: 180px; }
  .header-motto { display: none; }
  .header-account-actions { gap: 6px; }
  header .ghost { padding: 8px; font-size: 11px; }
  main { display: block; padding: 0 12px calc(100px + env(safe-area-inset-bottom)); }
  .workspace { padding-top: 12px; }
  main > nav { position: fixed; z-index: 30; top: auto; left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); min-height: 0; flex-direction: row; border: 1px solid var(--border); padding: 6px; border-radius: 16px; gap: 2px; box-shadow: 0 4px 24px #10274422; }
  main > nav button.mobile-primary, main > nav .mobile-more-control { display: flex; width: auto; flex: 1 1 20%; flex-direction: column; justify-content: center; padding: 6px 2px; gap: 3px; font-size: 10px; text-align: center; min-height: 54px; }
  main > nav .nav-label { flex: 0; }
  main > nav .unread-badge { position: absolute; right: 0; top: 0; }
  .mobile-more-items button { display: flex; align-items: center; gap: 8px; text-align: left; }
  .page-banner { min-height: 146px; margin-bottom: 14px; }
  .page-banner { flex-wrap: wrap; }
  .page-banner-copy { flex: 1 1 100%; padding: 18px; }
  .page-banner h1 { font-size: 26px; }
  .page-banner p { font-size: 12px; }
  .page-banner-copy > span { font-size: 12px; margin-top: 10px; }
  .reference-banner-art { width: 100%; flex: 1 1 100%; max-height: 130px; margin-bottom: 8px; }
  .panel { padding: 15px; }
  .app-footer { padding: 10px 16px 100px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* Recomposition des pages, révision 3 : dispositions issues des maquettes. */
.sale-results-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr); gap:18px; align-items:start; margin-top:18px; }
.sale-results-layout > .daily-detail,.sale-results-layout > .sales-history-panel { min-width:0; margin:0; padding:18px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.sale-results-layout .sales-history-title { display:block; }
.sale-results-layout .sales-history-title .actions { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; }
.sale-results-layout .sales-history-title button { flex:1 1 140px; padding:10px; font-size:11px; }
.sale-results-layout .sale-transaction summary { grid-template-columns:minmax(0,1fr) auto; }
.sale-results-layout .sale-transaction .transaction-status { grid-column:1/-1; justify-self:start; }
.sale-results-layout .transaction-line { display:flex; flex-wrap:wrap; }
.report-totals { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.report-totals > div { display:grid; grid-template-columns:48px minmax(0,1fr); align-content:center; column-gap:12px; border:1px solid var(--border); border-radius:12px; min-height:105px; padding:16px; }
.report-totals .stat-icon { grid-row:1/3; width:46px; height:46px; align-self:center; background:var(--primary-soft); color:var(--primary); }
.report-totals > div > span:not(.stat-icon),.report-totals > div > b { grid-column:2; }
.replenishment-kpis { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:20px 0; }
.replenishment-kpis article { display:grid; grid-template-columns:48px minmax(0,1fr); column-gap:12px; row-gap:6px; padding:18px; background:var(--soft); border:1px solid var(--border); border-radius:12px; }
.replenishment-kpis .stat-icon { grid-row:1/3; align-self:center; color:var(--primary); }
.replenishment-kpis article > b { font-size:25px; grid-column:2; }
.replenishment-analysis-layout { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:18px; align-items:start; }
.replenishment-table { border:1px solid var(--border); border-radius:10px; }
.replenishment-table table { width:100%; min-width:680px; border-collapse:collapse; }
.replenishment-table th,.replenishment-table td { padding:13px 10px; text-align:left; }
.replenishment-table small { display:block; color:var(--muted); font-size:11px; margin-top:4px; }
.replenishment-insights { display:grid; gap:14px; }
.replenishment-insights section { margin:0; padding:18px; border:1px solid var(--border); border-radius:12px; }
.replenishment-insights h3 { margin:0 0 15px; }
.replenishment-insights section > div { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 0; border-bottom:1px solid var(--border); }
.replenishment-insights small { display:block; color:var(--muted); margin-top:3px; }
.replenishment-insights p { font-size:13px; line-height:1.6; }
.profitability-dashboard { background:transparent; border:0; padding:0; box-shadow:none; }
.profit-kpis { grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:18px 0; }
.profit-kpis > div { border:1px solid var(--border); border-radius:12px; padding:20px; background:var(--surface); min-width:0; }
.profit-kpis b { font-size:clamp(20px,2vw,29px); overflow-wrap:anywhere; }
.profit-kpis .stat-icon { display:none; }
.profit-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr); gap:18px; }
.profit-layout > section,.profit-layout > aside { min-width:0; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:20px; }
.profitability-settings { margin-top:20px; }
.account-self-form { align-items:start; }
.account-self-form > section { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:0; }
.account-self-form > section > h2,.account-self-form > section > p { grid-column:1/-1; margin:0; }
.account-self-form .password-field { min-width:0; }
.account-self-form .password-field input { min-width:0; width:100%; }
#content[data-page="dashboard"] .grid.stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
#content[data-page="dashboard"] .stat { padding:20px; min-height:110px; }
@media (max-width:1250px) { .replenishment-analysis-layout { grid-template-columns:minmax(0,1fr); } .replenishment-insights { grid-template-columns:repeat(2,minmax(0,1fr)); } .sale-results-layout { grid-template-columns:minmax(0,1fr); } .account-self-form > section { grid-template-columns:1fr; } }
@media (max-width:950px) { .profit-layout { grid-template-columns:minmax(0,1fr); } .profit-kpis,.report-totals { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) { .replenishment-kpis,.replenishment-insights { grid-template-columns:minmax(0,1fr); } .account-self-form { grid-template-columns:minmax(0,1fr); } .report-totals > div { display:flex; flex-direction:column; align-items:flex-start; padding:12px; } .report-totals .stat-icon { display:none; } #content[data-page="dashboard"] .grid.stats { grid-template-columns:repeat(2,minmax(0,1fr)); } .profit-kpis > div { padding:12px; } }
/* Structures communes des pages reconstruites, sans données de démonstration. */
.header-search { position:relative; flex:1 1 380px; max-width:800px; }
.header-search > label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.header-search > input { width:100%; background:var(--soft); padding:13px 18px; }
.header-search-results { position:absolute; z-index:60; top:calc(100% + 8px); left:0; right:0; max-height:65vh; overflow:auto; padding:10px; border:1px solid var(--border); border-radius:12px; background:var(--surface); box-shadow:0 12px 32px #08213d24; }
.search-product-result { display:flex; align-items:center; gap:12px; padding:10px; border-bottom:1px solid var(--border); }
.search-product-result img { width:36px; height:44px; object-fit:contain; }
.search-product-result > span { flex:1; min-width:0; }
.search-product-result small { display:block; margin-top:4px; }
.header-notifications { position:relative; padding:10px; }
.header-notifications > span:not(:empty) { position:absolute; right:-3px; top:-5px; padding:2px 5px; border-radius:20px; color:#fff; background:#c8374e; font-size:10px; }
.app-footer > img { width:150px; height:auto; object-fit:contain; padding:5px; background:white; border-radius:7px; }
.page-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; margin-bottom:18px; }
.page-toolbar label { min-width:220px; }
.page-toolbar .actions { flex-wrap:wrap; }
.filter-tabs { display:flex; flex-wrap:wrap; gap:6px; }
.filter-tabs button { padding:10px; font-size:12px; }
.filter-tabs .active { background:var(--primary); color:var(--on-primary); }
.overview-strip { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-bottom:18px; }
.overview-strip.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.overview-card { display:grid; grid-template-columns:44px minmax(0,1fr); align-content:center; column-gap:12px; row-gap:6px; min-width:0; min-height:98px; padding:18px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.overview-card .stat-icon { grid-row:1/3; width:42px; height:42px; align-self:center; color:var(--primary); background:var(--soft); }
.overview-card > b { grid-column:2; font-size:24px; overflow-wrap:anywhere; }
.overview-card > span:not(.stat-icon) { grid-column:2; font-size:13px; }
.master-detail-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(290px,.42fr); gap:20px; align-items:start; }
.master-detail-layout > * { min-width:0; }
.record-detail { padding:20px; border:1px solid var(--border); border-radius:12px; background:var(--surface); overflow-wrap:anywhere; }
.record-detail h2 { margin-top:0; }
.record-detail .actions { flex-wrap:wrap; gap:8px; }
.record-detail .actions button { flex:1 1 auto; }
.record-lines > div { padding:14px 0; border-bottom:1px solid var(--border); }
.record-total { display:flex; justify-content:space-between; gap:12px; font-size:18px; }
.record-detail .tracking-info,.record-detail .tracking-form { margin:16px 0 0; grid-template-columns:1fr; }
.selected-row { background:var(--primary-soft)!important; }
.claim-detail { margin-top:20px; }
.claim-detail-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; }
.claim-photo-preview { padding:5px; background:var(--soft); border:1px solid var(--border); }
.claim-photo-preview img { width:100px; height:100px; object-fit:contain; }
.claim-entry-grid { gap:20px; }
.claim-entry { background:var(--surface); border:1px solid var(--border); border-radius:12px; box-shadow:none; }
.sale-scanner-status { margin:0 0 18px; display:flex; align-items:center; gap:16px; }
.sale-scanner-status .scanner-ready { flex:1; margin:0; }
.dashboard-chart { margin-top:16px; }
.dashboard-statistics > .section-title h2 { margin-top:0; }
.stock-dashboard-strip { grid-template-columns:repeat(4,minmax(0,1fr)); }
.stock-dashboard-strip > button { text-align:left; }
.dashboard-analysis { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.ranking-line { display:grid; grid-template-columns:minmax(0,1fr) 100px 25px; align-items:center; gap:12px; padding:10px 0; font-size:13px; }
.ranking-line meter { width:100%; accent-color:var(--primary); }
.distribution-layout { display:flex; align-items:center; justify-content:space-evenly; gap:25px; }
.distribution-ring { display:grid; place-items:center; width:145px; height:145px; border-radius:50%; flex:0 0 145px; }
.distribution-ring > span { display:grid; place-content:center; text-align:center; width:95px; height:95px; border-radius:50%; background:var(--surface); font-weight:700; font-size:24px; }
.distribution-ring small { font-size:12px; color:var(--muted); }
.distribution-layout > div:last-child { flex:1; }
.distribution-layout p { display:flex; align-items:center; gap:8px; font-size:13px; }
.distribution-layout p > i { width:10px; height:10px; border-radius:50%; flex:none; }
.distribution-layout p > span { flex:1; }
.dashboard-shops summary { cursor:pointer; font-weight:600; }
.reception-page-layout { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(350px,1fr); gap:18px; align-items:start; }
.reception-page-layout > * { min-width:0; }
.category-product-details { margin-top:20px; display:grid; gap:12px; }
.featured-products { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; margin:18px 0 24px; }
.featured-product { display:flex; flex-direction:column; align-items:flex-start; gap:7px; text-align:left; padding:14px; background:var(--surface); color:var(--text); border:1px solid var(--border); }
.featured-product img { width:100%; height:100px; object-fit:contain; }
.featured-product span,.featured-product small { font-size:12px; }
.featured-product strong { margin-top:auto; color:var(--good-fg); font-size:12px; }
.table-product-photo { width:55px; }
.table-product-photo img { width:35px; height:45px; object-fit:contain; }
.selected-product-detail { margin-top:22px; }
.settings-navigation { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:20px; }
.settings-navigation button { display:flex; align-items:center; gap:12px; padding:18px; background:var(--surface); color:var(--text); border:1px solid var(--border); text-align:left; }
.settings-navigation svg { width:27px; height:27px; fill:none; stroke:currentColor; stroke-width:1.8; flex:none; }
.settings-navigation button.active { color:var(--primary); background:var(--primary-soft); border-color:var(--primary); }
.settings-hidden { display:none!important; }
#content[data-page="access"] .admin-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.product-group-form { grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,.8fr); align-items:stretch; }
.product-group-form > .product-information { grid-column:1; grid-row:1; }
.product-group-form > .product-photographs { grid-column:2; grid-row:1; }
.product-group-form > .product-models { grid-column:3; grid-row:1; }
.product-group-form > .product-variants { grid-column:1; grid-row:2; }
.product-group-form > .product-codes { grid-column:2; grid-row:2; }
.product-group-form > .product-preview { grid-column:3; grid-row:2; }
.product-group-form > .group-create-button { grid-row:3; grid-column:1/-1; }
.product-models .model-picker-title { display:block; }
.product-models .inline-custom-model { display:flex; flex-wrap:wrap; gap:8px; margin:15px 0; }
.product-models .inline-custom-model input { min-width:0; width:100%; }
.product-models .model-picker { display:grid; grid-template-columns:1fr; max-height:280px; overflow:auto; gap:8px; }
.product-models .model-check { padding:8px; border-radius:7px; background:var(--soft); display:flex; align-items:center; gap:8px; }
.product-models .model-check input { width:auto; }
.variant-table-heading { display:grid; grid-template-columns:1fr 1fr 80px; padding:8px; background:var(--soft); font-size:12px; }
#productColorRows .variant-model { margin-top:12px; padding:10px; }
#productColorRows .variant-color { display:grid; grid-template-columns:minmax(0,1fr) 70px 28px; gap:8px; margin-top:8px; }
#productColorRows input { min-width:0; width:100%; }
#productCodesPreview > div,#productDraftSummary > div { display:flex; justify-content:space-between; gap:12px; padding:14px 0; border-bottom:1px solid var(--border); }
#productCodesPreview > div { flex-direction:column; }
#productCodesPreview span { font-size:13px; color:var(--muted); }
.registered-products-editor { margin-top:20px; }
.registered-products-editor > summary { font-size:17px; font-weight:600; cursor:pointer; }
.registered-products-editor .product-list-heading { margin-top:20px; }
@media(max-width:1300px) {
 .master-detail-layout,.reception-page-layout { grid-template-columns:minmax(0,1fr); }
 .featured-products { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .product-group-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .product-group-form > section { grid-column:auto!important; grid-row:auto!important; }
 .product-group-form > .group-create-button { grid-row:auto; }
 .header-search { flex-basis:250px; }
}
@media(max-width:900px) {
 .settings-navigation { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .dashboard-analysis { grid-template-columns:minmax(0,1fr); }
 .header-search { order:3; flex-basis:100%; max-width:none; }
 header { flex-wrap:wrap; }
 .overview-card { padding:12px; }
 .overview-card > b { font-size:21px; }
}
@media(max-width:600px) {
 .overview-strip.three,.stock-dashboard-strip,.claim-detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .product-group-form,.claim-detail-grid,#content[data-page="access"] .admin-grid { grid-template-columns:minmax(0,1fr); }
 .featured-products { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .overview-card { display:flex; flex-direction:column; align-items:flex-start; }
 .overview-card .stat-icon { display:none; }
 .ranking-line { grid-template-columns:minmax(0,1fr) 60px 25px; }
 .settings-navigation button { padding:12px; font-size:12px; }
 .header-search-results { max-height:50vh; }
 .app-footer { flex-wrap:wrap; }
}

.overview-card .stat-icon,.report-totals .stat-icon,.replenishment-kpis .stat-icon { position:static; }
.stock-dashboard-strip > .stat { padding-left:76px!important; }

/* Statistics reference, isolated from all other application pages. */
.page-banner.statistics-banner { min-height:240px; display:block; background:#edf8ff; border:1px solid #e1eff9; }
.statistics-banner .reference-banner-art { position:relative; display:block; margin-left:auto; width:66%; height:auto; object-fit:contain; border-radius:0; }
.statistics-banner::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,#f2faff 0%,#f2faff 30%,#f2faff00 70%); pointer-events:none; }
.statistics-banner-copy { position:absolute; inset:0 auto auto 0; z-index:2; width:54%; padding:22px 24px; }
.statistics-banner-copy h1 { font-size:clamp(28px,3vw,46px); letter-spacing:-1.4px; }
.statistics-banner-copy h1 span { color:#008ce4; }
.statistics-banner-copy p { font-size:16px; }
.statistics-promises { display:flex; justify-content:space-between; gap:14px; margin-top:30px; max-width:390px; }
.statistics-promises > div { text-align:center; font-size:11px; line-height:1.5; }
.statistics-promises svg { display:block; margin:0 auto 8px; width:32px; height:32px; fill:none; stroke:#009ee9; stroke-width:1.7; }
#content[data-page="dashboard"] { --border:#e2edf5; --surface:#fff; --soft:#f4f9fe; }
#content[data-page="dashboard"] .panel { padding:20px; margin-bottom:16px; box-shadow:0 3px 14px #247ca306; }
#content[data-page="dashboard"] h2 { font-size:20px; letter-spacing:-.4px; }
#content[data-page="dashboard"] .dashboard-statistics > .section-title h2 { font-size:28px; }
.statistics-date { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:10px 14px; background:var(--soft); border:1px solid var(--border); border-radius:9px; font-size:13px; }
#content[data-page="dashboard"] .statistics-kpis { gap:14px; }
#content[data-page="dashboard"] .overview-card { border:1px solid var(--border); background:linear-gradient(115deg,var(--surface),var(--soft)); box-shadow:none; }
#content[data-page="dashboard"] .dashboard-chart { display:grid; grid-template-columns:minmax(0,1fr) 165px; gap:20px; align-items:center; }
.statistics-chart-main { min-width:0; }
.statistics-chart-main .profit-hour:nth-child(even) > small { visibility:hidden; }
.statistics-chart-main .profit-bars { gap:4px; }
.statistics-chart-main .profit-hour { min-width:0; }
.statistics-chart-main .profit-hour > small { font-size:10px; }
.statistics-chart-main .profit-chart-heading { align-items:start; flex-wrap:wrap; gap:8px; }
.statistics-chart-main .profit-chart-heading h3 { font-size:18px; }
.statistics-chart-main .profit-chart-heading p { font-size:11px; }
.statistics-chart-main .profit-metric-switch button { font-size:10px; padding:5px 8px; }
.statistics-dayparts { display:grid; gap:14px; }
.statistics-dayparts > div { display:flex; align-items:center; gap:12px; border:1px solid var(--border); background:var(--soft); border-radius:12px; padding:12px; }
.statistics-dayparts > div > span { font-size:40px; line-height:1; color:#008de9; }
.statistics-dayparts p { font-size:13px; margin:0; }
.statistics-dayparts small { display:block; margin-top:7px; color:var(--muted); }
#content[data-page="dashboard"] .stock-dashboard-strip { gap:12px; margin:16px 0; }
#content[data-page="dashboard"] .stock-dashboard-strip .stat { min-height:96px; border:1px solid var(--border); border-radius:13px; }
#content[data-page="dashboard"] .stock-out { background:#ffe8ed; }
#content[data-page="dashboard"] .stock-low { background:#fff0df; }
#content[data-page="dashboard"] .stock-watch { background:#fff9dc; }
#content[data-page="dashboard"] .stock-good { background:#dcfaf0; }
#content[data-page="dashboard"] .dashboard-analysis { gap:16px; }
#content[data-page="dashboard"] .ranking-line meter { height:16px; border:0; }
#content[data-page="dashboard"] meter::-webkit-meter-bar { background:#edf4fb; border:0; border-radius:3px; }
#content[data-page="dashboard"] meter::-webkit-meter-optimum-value { background:linear-gradient(90deg,#3196f8,#72d2ee); border-radius:3px; }
#content[data-page="dashboard"] meter::-moz-meter-bar { background:linear-gradient(90deg,#3196f8,#72d2ee); }
.statistics-costs h2 small { font-weight:400; font-size:14px; }
.record-detail .shipping-fields { display:flex; flex-direction:column; align-items:stretch; width:100%; }
.record-detail .shipping-fields label:not(.hidden) { display:flex; flex-direction:column; width:100%; min-width:0; }
.record-detail .shipping-fields :is(select,input) { width:100%; max-width:none; min-width:0; }
.catalog-groups { display:grid; gap:14px; }
.catalog-groups .compact-product-group { min-width:0; }
.catalog-groups .catalog-variant { grid-template-columns:minmax(0,1fr) auto; }
.catalog-groups .catalog-variant .barcode-preview { display:none; }
.order-details-dialog { width:min(760px,94vw); max-height:88vh; overflow:auto; padding:24px; color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:16px; }
.order-details-dialog::backdrop { background:#00142688; }
.order-details-dialog .tracking-info { grid-template-columns:1fr; }
@media(max-width:1000px) { .page-banner.statistics-banner { min-height:0; } .statistics-banner-copy { position:relative; width:100%; } .statistics-banner .reference-banner-art { width:100%; opacity:1; } .statistics-banner::after { display:none; } }
.statistics-costs .overview-strip { margin-bottom:8px; }
.statistics-costs p { font-size:12px; margin:8px 0 0; }
.statistics-orders .report-table th { background:transparent; }
:root[data-theme="night"] #content[data-page="dashboard"] { --surface:#052139; --soft:#082e4b; --border:#195773; --text:#eff8ff; --muted:#b5cddd; }
:root[data-theme="night"] body:has(#content[data-page="dashboard"]) { --surface:#052139; --soft:#082e4b; --border:#195773; --text:#eff8ff; --muted:#b5cddd; --app-bg:#021428; --primary-soft:#083c5d; background:#021428; }
[data-theme="night"] .page-banner.statistics-banner { background:#052139; border-color:#195773; }
[data-theme="night"] .statistics-banner::after { background:linear-gradient(90deg,#052139 0%,#052139 30%,#05213900 75%); }
[data-theme="night"] .statistics-banner-copy { color:#eff8ff; }
[data-theme="night"] .statistics-banner-copy :is(h1,p) { color:#eff8ff; }
[data-theme="night"] #content[data-page="dashboard"] .stock-dashboard-strip .stat { background:linear-gradient(120deg,#083653,#052139); color:#eff8ff; }
[data-theme="night"] #content[data-page="dashboard"] .panel { background:var(--surface); border-color:var(--border); }
@media(max-width:1150px) { #content[data-page="dashboard"] .dashboard-chart { grid-template-columns:minmax(0,1fr); } .statistics-dayparts { grid-template-columns:1fr 1fr; } .statistics-banner-copy { width:62%; } }
@media(max-width:700px) { .statistics-banner-copy { width:100%; padding:22px 18px; } .statistics-banner .reference-banner-art { width:100%; opacity:.28; } .statistics-banner::after { background:linear-gradient(90deg,#f2faff,#f2faff40); } .statistics-promises { max-width:330px; } #content[data-page="dashboard"] .statistics-kpis { grid-template-columns:1fr; } .statistics-date { width:100%; } #content[data-page="dashboard"] .distribution-layout { flex-wrap:wrap; } }

.app-footer { flex-wrap:wrap; gap:12px 22px; }
.app-footer small { font-size:10px; color:var(--muted); }
.product-type-cards { grid-template-columns:repeat(auto-fill,minmax(175px,1fr)); }
.product-type-cards .selected-type { border-color:var(--primary); background:var(--primary-soft); }
.type-card-action { color:var(--primary); font-size:12px; margin-top:auto; }
.product-category-tabs { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0; }
.product-category-tabs button { display:inline-flex; align-items:center; gap:8px; background:var(--soft); color:var(--text); border:1px solid var(--border); padding:10px 16px; }
.product-category-tabs button.active { background:linear-gradient(110deg,#087ef5,#00b9df); color:#fff; border-color:transparent; }
.product-category-tabs svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.7; }

/* Revision 2: complete banner, without cropping or text overlapping the artwork. */
.page-banner.statistics-banner { display:grid; grid-template-columns:minmax(260px,42%) minmax(0,58%); align-items:center; min-height:0; }
.statistics-banner-copy { position:relative; inset:auto; width:100%; min-width:0; padding:24px 20px; }
.statistics-banner .reference-banner-art { position:static; width:100%; height:auto; object-fit:contain; opacity:1; }
.statistics-banner::after { display:none; }
.statistics-banner-copy h1 { font-size:clamp(25px,2.6vw,40px); }
@media(max-width:900px) { .page-banner.statistics-banner { grid-template-columns:1fr; } .statistics-promises { margin-top:18px; } }

/* Shared 1.13.27 layout: all screens use the same spacing, surfaces and typography. */
header { min-height:74px; padding:10px 22px; gap:20px; }
.header-logo-plate { width:195px; padding:3px; }
.header-account-actions { flex-shrink:0; }
main { grid-template-columns:210px minmax(0,1fr); gap:18px; padding-right:18px; }
main > nav { min-height:calc(100vh - 74px); padding:18px 10px; gap:4px; }
main > nav button { min-height:44px; padding:10px; font-size:13px; }
.workspace { padding-top:14px; }
.panel { padding:18px; }
.page-banner { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,46%); min-height:112px; background:linear-gradient(110deg,var(--surface),var(--soft)); border:1px solid var(--border); }
.page-banner .page-banner-copy { padding:18px 22px; }
.page-banner .reference-banner-art { position:static; width:100%; max-width:100%; height:auto; align-self:stretch; object-fit:contain; }
.page-banner:not(.has-illustration):not(.statistics-banner) { grid-template-columns:1fr; border:0; min-height:90px; }
.page-banner.statistics-banner { grid-template-columns:minmax(0,43%) minmax(0,57%); min-height:0; }
.statistics-banner .reference-banner-art { align-self:center; }
.statistics-promises { margin-top:20px; }
.statistics-promises svg { width:28px; height:28px; }
.statistics-banner-copy h1 { font-size:clamp(27px,2.6vw,40px); }
[data-theme="night"] .page-banner { background:linear-gradient(110deg,#082d47,#063954); border-color:var(--border); }
[data-theme="night"] #content[data-page="dashboard"] { --surface:#08283f; --border:#205075; --soft:#0b334e; }
[data-theme="night"] .page-banner .reference-banner-art { border-radius:0 12px 12px 0; }
[data-theme="night"] .overview-card { background:linear-gradient(135deg,#09273e,#0b3553); }
.product-filter-row { display:grid; grid-template-columns:minmax(190px,1.7fr) repeat(5,minmax(100px,1fr)) auto; gap:10px; align-items:end; margin:20px 0; }
.product-filter-row label { margin:0; min-width:0; }
.product-filter-row label > span { display:block; font-size:11px; color:var(--muted); margin-bottom:6px; }
.product-filter-row input,.product-filter-row select { width:100%; min-width:0; padding:10px; font-size:12px; }
.product-filter-row button { padding:10px; font-size:12px; }
.products-overview { grid-template-columns:repeat(4,minmax(0,1fr)); }
.product-type-cards { grid-template-columns:repeat(6,minmax(0,1fr)); }
.featured-product { min-width:0; border-radius:9px; padding:12px; gap:8px; }
.featured-product b { font-size:14px; }
.featured-product img { height:125px; object-fit:contain; }
.featured-product .type-card-action { font-size:11px; color:var(--primary); }
.product-category-tabs button { padding:9px 13px; border-radius:8px; font-size:12px; }
.table-search-label { display:block; max-width:420px; margin:12px 0 18px; font-size:12px; color:var(--muted); }
.table-search-label input { display:block; width:100%; margin-top:6px; }
.catalog-layout { grid-template-columns:190px minmax(0,1fr) 290px; gap:14px; }
.catalog-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:12px; }
.catalog-groups .compact-product-group { margin:0; }
.catalog-groups .compact-product-group > summary { display:flex; flex-direction:column; align-items:stretch; gap:12px; padding:14px; min-width:0; }
.catalog-groups .product-gallery-trigger { width:100%; height:132px; background:var(--soft); border-radius:8px; margin:0; }
.catalog-groups .product-gallery-trigger img { width:100%; height:120px; object-fit:contain; }
.catalog-groups .compact-group-name { min-width:0; display:flex; flex-direction:column; gap:7px; }
.catalog-groups .compact-group-name b { font-size:15px; }
.catalog-groups .compact-group-name > span { font-size:12px; }
.catalog-groups .compact-group-name > span b { font-size:12px; }
.catalog-groups .compact-product-group > summary > strong { font-size:10px; color:var(--primary); padding-top:6px; }
.catalog-groups .compact-product-group[open] { grid-column:1/-1; }
.catalog-groups .compact-product-group[open] > summary { display:grid; grid-template-columns:92px minmax(0,1fr) auto; align-items:center; }
.catalog-groups .compact-product-group[open] .product-gallery-trigger { height:90px; }
.catalog-groups .compact-product-group[open] .product-gallery-trigger img { height:82px; }
.settings-overview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:20px; }
.settings-card { display:flex; flex-direction:column; gap:14px; margin:0; min-width:0; }
.settings-card h2 { display:flex; align-items:center; gap:12px; font-size:17px; margin:0; }
.settings-card h2 svg { width:28px; height:28px; flex:none; fill:none; stroke:var(--primary); stroke-width:1.8; }
.settings-card p { color:var(--muted); margin:0; font-size:13px; line-height:1.6; }
.settings-card button { margin-top:auto; width:100%; }
.settings-card small { line-height:1.6; }
.settings-thresholds { display:grid; gap:14px; margin:0; font-size:13px; }
.settings-thresholds > div { display:flex; justify-content:space-between; gap:12px; padding-bottom:9px; border-bottom:1px solid var(--border); }
.settings-thresholds dd { margin:0; font-weight:600; }
.settings-about img { width:170px; background:white; border-radius:8px; padding:5px; }
.settings-about > span { font-size:12px; color:var(--muted); }
.settings-navigation { grid-template-columns:repeat(5,minmax(0,1fr)); }
.settings-navigation button { padding:12px; font-size:12px; }
.report-table tr[hidden] { display:none!important; }
.reception-history,.history-row,.history-list { color:var(--text); background:var(--surface); }
.record-detail .shipping-fields { display:grid; grid-template-columns:1fr; gap:14px; }
.record-detail .shipping-fields select,.record-detail .shipping-fields input { width:100%; min-width:0; }
.app-footer { margin-top:20px; padding:18px 24px; border-top:1px solid var(--border); background:var(--surface); }
.app-footer > strong,.app-footer > small:first-of-type { display:none; }
.app-footer > span { color:var(--muted); font-size:13px; }
@media(min-width:1650px) { .catalog-groups { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:1300px) {
 .product-filter-row { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .product-type-cards { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .catalog-layout { grid-template-columns:160px minmax(0,1fr); }
 .catalog-basket { grid-column:2; position:static; }
 .catalog-groups { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .settings-overview { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:1000px) {
 .header-account-actions { flex-shrink:1; }
 .page-banner,.page-banner.statistics-banner { grid-template-columns:minmax(0,1fr); }
 .page-banner .reference-banner-art { max-height:210px; align-self:center; }
 .statistics-banner-copy { padding:18px; }
 .product-type-cards { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .settings-navigation { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:800px) {
 main { display:block; padding:0 12px 85px; }
 main > nav { min-height:0; }
 .catalog-layout { grid-template-columns:1fr; }
 .catalog-basket { grid-column:auto; }
 .catalog-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .catalog-filters h2,.catalog-filters p { grid-column:1/-1; }
 .product-filter-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .settings-overview,.products-overview { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .header-logo-plate { width:165px; }
}
@media(max-width:480px) {
 .product-type-cards,.catalog-groups { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .settings-overview { grid-template-columns:1fr; }
 .settings-navigation { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .catalog-groups .compact-product-group[open] > summary { grid-template-columns:60px minmax(0,1fr); }
 .catalog-groups .compact-product-group[open] > summary > strong { grid-column:1/-1; }
 .app-footer > img { width:120px; }
}
@media(min-width:801px) and (max-width:1300px) {
 .catalog-filters { grid-column:1; grid-row:1/3; grid-template-columns:1fr; align-items:start; }
 .catalog-products,.catalog-basket { grid-column:2; }
}
@media(max-width:800px) {
 .catalog-filters,.catalog-products,.catalog-basket { grid-column:1; grid-row:auto; }
 .product-group-form > section { grid-column:1!important; }
}
/* Options complémentaires communes aux deux thèmes */
.options-panel > summary {cursor:pointer;font-weight:700;padding:10px 0;color:var(--primary);}
.options-panel form {display:grid;gap:12px;margin:16px 0;}
.options-panel label {display:grid;gap:7px;}
.options-panel label:has(input[type=checkbox]) {display:flex;align-items:center;gap:10px;}
.options-panel input[type=checkbox] {width:18px;height:18px;}
.option-backup {display:flex;flex-wrap:wrap;gap:10px;padding:12px 0;overflow-wrap:anywhere;}
.option-bars>div {display:grid;grid-template-columns:100px minmax(60px,1fr) 110px;gap:14px;margin:12px 0;align-items:center;}
.option-bars meter{width:100%;}
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}

/* 1.13.29 — same interface, explicit claim and replenishment states. */
.claim-categories{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:18px}
.claim-categories .overview-card{text-align:left;color:var(--text,#112746);background:var(--panel,#fff);border:1px solid var(--line,#dce9f4);padding:16px;min-width:0}
.claim-categories .selected{outline:2px solid #0086ea;outline-offset:-2px}
.replenishment-settings{display:flex;flex-wrap:wrap;gap:16px;align-items:end;margin:18px 0}
.replenishment-settings label{flex:1;min-width:180px}
.learning-notice{margin-bottom:16px}.learning-notice p{margin:8px 0 0}
.replenishment-table small{display:block;white-space:normal;min-width:110px;line-height:1.45}
[data-theme="night"] .claim-categories .overview-card{color:#e7f3ff;background:#09263d;border-color:#204660}

/* 1.13.30: shared, distinct pictograms and unobstructed dialogs. */
dialog:not([open]) { display:none !important; }
.icon { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
nav .icon { color:var(--primary); }
nav .icon-receiving { color:#008a91; }
nav .icon-replenishment { color:#16775e; }
nav .icon-claims { color:#bd6714; }
nav .icon-profitability { color:#18805d; }
.stat-icon.metric-good,.stat-icon.metric-confirmed,.stat-icon.metric-received { background:var(--good-bg); color:var(--good-fg); }
.stat-icon.metric-watch,.stat-icon.metric-pending { background:var(--watch-bg); color:var(--watch-fg); }
.stat-icon.metric-low { background:#fff0df; color:#a74e08; }
.stat-icon.metric-out,.stat-icon.metric-refused,.stat-icon.metric-defective { background:var(--out-bg); color:var(--out-fg); }
.stat-icon.metric-shipped,.stat-icon.metric-receiving,.stat-icon.metric-missing { background:#dcf7f6; color:#007a80; }
.order-status { display:inline-flex; align-items:center; gap:6px; padding:5px 8px; border-radius:7px; background:var(--soft); color:var(--text); white-space:nowrap; font-size:12px; }
.order-status .stat-icon { width:18px; height:18px; padding:0; background:transparent; margin:0; }
.order-status .stat-icon svg { width:18px; height:18px; }
.status-pending { background:var(--watch-bg); color:var(--watch-fg); }
.status-confirmed,.status-received { background:var(--good-bg); color:var(--good-fg); }
.status-shipped { background:#dcf7f6; color:#007a80; }
.status-refused { background:var(--out-bg); color:var(--out-fg); }
.product-category-tabs .icon { width:20px; height:20px; color:var(--primary); }
.product-category-tabs .active .icon { color:inherit; }
.shop-supervision { flex-basis:100%; padding:12px; background:var(--soft); border-radius:8px; }
.shop-supervision summary { cursor:pointer; color:var(--primary); font-weight:600; }
.shop-supervision p { font-size:12px; }
.shop-supervision .actions { flex-wrap:wrap; }
.supervision-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.page-banner .reference-banner-art { object-fit:contain; object-position:center; align-self:center; aspect-ratio:2172 / 724; height:auto; max-height:none; image-rendering:auto; opacity:1; }
.compact-product-group > summary .product-photo,.featured-product .product-photo { object-fit:contain; image-rendering:auto; }
.overview-strip { grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); }
.record-detail .shipping-fields { grid-template-columns:minmax(0,1fr); }
.record-detail .shipping-fields select { width:100%; min-width:0; }
[data-theme="night"] .stat-icon.metric-low { background:#433324; color:#ffc182; }
[data-theme="night"] .stat-icon.metric-shipped,[data-theme="night"] .stat-icon.metric-receiving,[data-theme="night"] .stat-icon.metric-missing,[data-theme="night"] .status-shipped { background:#123d48; color:#7ee0e3; }
[data-theme="night"] nav .icon { color:#71c8ff; }
[data-theme="night"] nav .icon-receiving { color:#72d9d8; }
[data-theme="night"] nav .icon-replenishment,[data-theme="night"] nav .icon-profitability { color:#8cddbc; }
[data-theme="night"] nav .icon-claims { color:#ffd091; }
@media (max-width:800px) { .shop-supervision .actions { display:grid; grid-template-columns:1fr 1fr; } }
