/* Socle commun : dimensions, typographie et navigation */
:root {
  font-size:16px;
  --shop-navy:#092f3b;
  --shop-teal:#087f82;
  --shop-orange:#f0781f;
  --shop-banner-start:#062b3a;
  --shop-banner-middle:#073e52;
  --shop-banner-end:#0b5368;
  --shop-banner-gradient:linear-gradient(118deg,var(--shop-banner-start) 0%,var(--shop-banner-middle) 58%,var(--shop-banner-end) 100%);
  --shop-menu-rail:#f0781f;
  --shop-menu-gradient:var(--shop-banner-gradient);
  --shop-ink:#182d36;
  --shop-muted:#6d8188;
  --shop-line:#dbe5e7;
  --shop-paper:#f4f7f8;
}
html { min-width:320px; font-size:16px; -webkit-text-size-adjust:100%; }
body { min-width:320px; color:var(--shop-ink); background:var(--shop-paper); font:400 1rem/1.5 "Public Sans",system-ui,"Segoe UI",sans-serif; }
img,svg { max-width:100%; }
[hidden] { display:none !important; }
.shell:not(.guest-login) { display:grid; grid-template-columns:16rem minmax(0,1fr); width:100%; min-height:100vh; }
.admin-sidebar {
  position:sticky; top:0; z-index:20; display:flex; flex-direction:column; gap:1rem;
  width:16rem; height:100vh; min-height:100vh; padding:1rem .8rem; overflow:hidden;
  background:linear-gradient(180deg,var(--shop-navy),#0b3b47); color:#e8f2f3; box-shadow:8px 0 26px #092f3b12;
}
.sidebar-heading { display:flex; align-items:center; justify-content:space-between; gap:.55rem; min-width:0; padding:.2rem .25rem; }
.admin-sidebar .brand { display:flex; align-items:center; gap:.7rem; min-width:0; padding:.25rem; color:#fff; font-size:1.05rem; line-height:1.2; }
.brand-logo { display:block; flex:0 0 2.65rem; width:2.65rem; height:2.65rem; border:1px solid #ffffff33; border-radius:.72rem; object-fit:cover; background:#fff; box-shadow:0 5px 15px #00161e35; }
.admin-menu { display:flex; flex:1 1 auto; flex-direction:column; min-height:0; overflow:hidden; }
.admin-nav { display:grid; align-content:start; gap:.75rem; min-height:0; overflow:auto; padding:.1rem .1rem .8rem; scrollbar-width:thin; scrollbar-color:#ffffff55 #ffffff0d; }
.nav-section { display:grid; gap:.22rem; }
.nav-section-title { margin:.55rem .65rem .2rem; color:#a8c4ca; font-size:.65rem; font-weight:800; line-height:1.35; letter-spacing:.12em; text-transform:uppercase; }
.admin-nav .nav-link { display:flex; align-items:center; gap:.65rem; min-width:0; min-height:2.55rem; padding:.58rem .7rem; border:1px solid transparent; border-radius:.68rem; color:#e4f0f2; font-size:.84rem; line-height:1.3; text-decoration:none; transition:background .16s ease,color .16s ease; }
.admin-nav .nav-link:hover { background:#ffffff13; color:#fff; }
.admin-nav .nav-link[aria-current="page"] { border-color:#ffffff1f; background:#ffffff20; color:#fff; box-shadow:inset 3px 0 0 #ff9b3e; }
.nav-icon { display:block; flex:0 0 1.15rem; width:1.15rem; height:1.15rem; color:currentColor; }
.nav-link-label { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.signout { display:grid; gap:.65rem; margin-top:auto; padding:.8rem .1rem .1rem; border-top:1px solid #ffffff20; }
.sidebar-account { display:flex; align-items:center; gap:.65rem; min-width:0; padding:.3rem .45rem; }
.sidebar-account-icon { display:grid; place-items:center; flex:0 0 2rem; width:2rem; height:2rem; border-radius:.65rem; background:#ffffff17; color:#ffb66d; }
.sidebar-account-details { display:grid; min-width:0; line-height:1.3; }
.sidebar-account-details strong { overflow:hidden; color:#fff; font-size:.8rem; text-overflow:ellipsis; white-space:nowrap; }
.sidebar-account-details small { margin:0; color:#b8cbd0; font-size:.68rem; }
.signout-button { display:flex; align-items:center; justify-content:flex-start; gap:.6rem; width:100%; min-height:2.5rem; padding:.55rem .7rem; border:1px solid #ffffff2b !important; border-radius:.65rem; background:#ffffff0d !important; color:#f0f5f6 !important; font-size:.82rem !important; }
.signout-button:hover { background:#ffffff18 !important; }
.menu-toggle { display:none; align-items:center; gap:.45rem; padding:.55rem .7rem; border:1px solid #ffffff36; border-radius:.65rem; background:#ffffff15; color:#fff; font-size:.82rem; }
.menu-toggle-icon { display:block; width:1.2rem; height:1.2rem; }
.shell:not(.guest-login) > main { width:100%; min-width:0; max-width:none; margin:0; padding:clamp(1.15rem,2.5vw,2.5rem); }
main > .heading { margin:0 0 1.15rem; }
.heading { align-items:center; }
.admin-page-heading-copy { display:grid; gap:.35rem; min-width:0; }
.admin-page-heading-copy h1,.admin-form-heading h1 { margin:.15rem 0 0; }
.admin-page-heading-copy p,.admin-form-heading p { margin:.25rem 0 0; color:var(--shop-muted); }
.module-page-heading { margin-bottom:1rem; }
.admin-back-link { display:inline-flex; align-items:center; gap:.4rem; width:max-content; max-width:100%; color:var(--shop-teal); font-size:.8rem; font-weight:750; text-decoration:none; }
.admin-back-link:hover { text-decoration:underline; }
h1,h2,h3,h4 { font-family:"Bricolage Grotesque","Public Sans",system-ui,sans-serif; overflow-wrap:anywhere; }
h1 { font-size:clamp(1.65rem,2.2vw,2.25rem); line-height:1.15; }
h2 { font-size:clamp(1.1rem,1.5vw,1.4rem); line-height:1.25; }
.panel { min-width:0; border-color:var(--shop-line); border-radius:1rem; background:#fff; box-shadow:0 8px 24px #123c4809; }
a.panel { color:inherit; text-decoration:none; }
a.panel:hover { border-color:#b7d4d5; box-shadow:0 12px 28px #123c4814; }
label { line-height:1.35; }
button,input,select,textarea { max-width:100%; font:inherit; }
textarea { width:100%; min-height:6rem; padding:.7rem .8rem; border:1px solid #cbd9dc; border-radius:.65rem; }
button,.button { min-height:2.65rem; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:.45rem; }
.table-wrap,.shop-table-wrap { min-width:0; max-width:100%; overflow:auto; border:1px solid var(--shop-line); border-radius:.9rem; background:#fff; }
table { min-width:40rem; width:100%; border-collapse:collapse; }
th,td { padding:.78rem .9rem; border-bottom:1px solid #e7edef; vertical-align:middle; }
th { background:#f4f8f8; color:#61767e; font-size:.69rem; font-weight:800; letter-spacing:.055em; text-transform:uppercase; }
td { color:#263a41; font-size:.84rem; }
tbody tr:hover { background:#f8fbfb; }
tbody tr:last-child td { border-bottom:0; }
td small { margin-top:.2rem; color:var(--shop-muted); font-size:.72rem; }
.status,.badge,.review-status-badge,.audit-platform-badge,.shop-currency-badge,.shop-type-badge,.user-role-badge {
  display:inline-flex; align-items:center; justify-content:center; width:max-content; max-width:100%; padding:.24rem .62rem;
  border:1px solid transparent; border-radius:999px; background:#edf3f4; color:#52666d; font-size:.7rem; font-weight:800; line-height:1.25;
}
.status.active,.badge.success { background:#e5f5ee; color:#176441; }
.badge.warning { background:#fff2df; color:#99581d; }
.notice { border:1px solid #bee8d3; border-radius:.8rem; background:#e8f8ef; color:#176441; }
.empty-state,.shop-empty-state,.shop-no-activity,.dashboard-empty,.dashboard-no-data,.settings-empty {
  display:grid; place-items:center; gap:.4rem; min-height:8rem; padding:1.2rem; border:1px dashed #cbd9dc;
  border-radius:.85rem; background:#f8fbfb; color:var(--shop-muted); text-align:center;
}/* Tableau de bord et indicateurs */
.dashboard-hero { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:1.5rem; margin-bottom:1.2rem; padding:clamp(1.35rem,3vw,2.2rem); border-radius:1.25rem; background:linear-gradient(118deg,#092f3b,#0b5962); color:#fff; box-shadow:0 16px 34px #092f3b24; }
.dashboard-hero-copy { min-width:0; }
.dashboard-hero-copy h1 { margin:.35rem 0 .6rem; color:#fff; font-size:clamp(1.7rem,3.3vw,2.6rem); }
.dashboard-hero-copy p:last-child { margin:.35rem 0 0; color:#d6e6e9; }
.dashboard-eyebrow,.dashboard-section-eyebrow { display:block; color:#a6c8ce; font-size:.68rem; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.dashboard-section-eyebrow { color:var(--shop-teal); }
.dashboard-hero-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:.75rem; }
.dashboard-date { display:grid; gap:.1rem; padding-right:.7rem; color:#d6e6e9; font-size:.76rem; }
.dashboard-date strong { color:#fff; font-size:1rem; }
.dashboard-action-primary { background:var(--shop-orange); color:#092633; }
.dashboard-action-link { color:#fff; font-size:.82rem; font-weight:700; text-decoration:none; }
.dashboard-filter-panel { display:grid; grid-template-columns:minmax(14rem,.7fr) minmax(0,1.3fr); align-items:center; gap:1rem; margin-bottom:1.25rem; padding:1rem 1.2rem; }
.dashboard-filter-copy h2 { margin:.2rem 0; }
.dashboard-filter-copy p,.dashboard-section-heading p { margin:.25rem 0 0; color:var(--shop-muted); font-size:.82rem; }
.dashboard-filters { align-items:end; margin:0; }
.dashboard-filters label { font-size:.75rem; }
.dashboard-section,.shop-overview,.user-access-section { margin-block:1.35rem; }
.dashboard-section-heading,.settings-section-heading,.shop-health-heading,.report-summary-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; margin-bottom:.85rem; }
.dashboard-section-heading h2,.settings-section-heading h2,.shop-health-heading h2 { margin:.2rem 0; }
.dashboard-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.85rem; }
.dashboard-kpi { display:grid; align-content:start; gap:.55rem; min-height:9.2rem; padding:1rem; border-radius:1rem; }
.dashboard-kpi-top { display:flex; align-items:center; gap:.55rem; min-width:0; }
.dashboard-kpi-icon { display:grid; place-items:center; flex:0 0 2.25rem; width:2.25rem; height:2.25rem; border-radius:.75rem; background:#e7f5f3; color:var(--shop-teal); }
.dashboard-kpi-icon svg { width:1.25rem; height:1.25rem; }
.dashboard-kpi-label { color:#556b72; font-size:.78rem; font-weight:750; }
.dashboard-kpi strong { color:var(--shop-navy); font-size:clamp(1.6rem,2.6vw,2.25rem); line-height:1.05; font-variant-numeric:tabular-nums; }
.dashboard-kpi-caption { color:var(--shop-muted); font-size:.72rem; }
.dashboard-kpi--attention { border-color:#f0c68b; background:#fffaf2; }
.dashboard-finance-grid,.dashboard-chart-grid,.dashboard-shop-expense-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.9rem; }
.dashboard-finance-card,.dashboard-chart-card,.dashboard-activity-panel,.dashboard-stock-panel,.dashboard-shop-expense-card,.security-trend-panel {
  min-width:0; padding:1.1rem; border:1px solid var(--shop-line); border-radius:1rem; background:#fff; box-shadow:0 8px 22px #123c4808;
}
.dashboard-finance-heading,.dashboard-chart-heading,.dashboard-shop-expense-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:.8rem; margin-bottom:.8rem; }
.dashboard-finance-heading h3,.dashboard-chart-heading h3,.dashboard-shop-expense-heading h3 { margin:0; }
.dashboard-finance-grid,.dashboard-finance-values { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; }
.dashboard-finance-values > div { display:grid; gap:.2rem; padding:.75rem; border-radius:.75rem; background:#f5f8f9; }
.dashboard-finance-values strong,.dashboard-amount { color:var(--shop-navy); font-size:1rem; font-variant-numeric:tabular-nums; }
.dashboard-finance-values small,.dashboard-chart-note { color:var(--shop-muted); font-size:.72rem; }
.dashboard-activity-chart,.dashboard-stock-grid { display:grid; gap:.5rem; }
.dashboard-activity-day { display:grid; grid-template-columns:3.2rem minmax(0,1fr) 3.5rem; align-items:center; gap:.6rem; min-height:2rem; }
.dashboard-activity-date,.dashboard-activity-total { color:var(--shop-muted); font-size:.7rem; font-variant-numeric:tabular-nums; }
.dashboard-activity-total { text-align:right; }
.dashboard-activity-plot,.dashboard-activity-stack { display:flex; width:100%; height:.85rem; overflow:hidden; border-radius:999px; background:#edf2f3; }
.dashboard-activity-segment { min-width:0; height:100%; }
.dashboard-activity-segment--expense { background:#f0781f; }
.dashboard-activity-segment--repayment { background:#087f82; }
.dashboard-activity-segment--supplier { background:#5795c4; }
.dashboard-activity-legend,.security-trend-legend { display:flex; flex-wrap:wrap; gap:.55rem 1rem; margin-top:.8rem; color:var(--shop-muted); font-size:.72rem; }
.dashboard-activity-dot,.security-trend-dot { display:inline-block; width:.55rem; height:.55rem; margin-right:.3rem; border-radius:50%; background:#9aa; }
.dashboard-activity-dot--expense,.security-trend-dot--login { background:#f0781f; }
.dashboard-activity-dot--repayment,.security-trend-dot--logout { background:#087f82; }
.dashboard-activity-dot--supplier,.security-trend-dot--mobile-login { background:#5795c4; }
.security-trend-dot--mobile-logout { background:#7b6ab0; }
.dashboard-review-action { display:inline-flex; align-items:center; min-height:2.1rem; padding:.35rem .65rem; border-radius:.55rem; background:#e8f5f3; color:#086e70; font-size:.75rem; font-weight:750; text-decoration:none; }
.dashboard-review-count { font-weight:800; font-variant-numeric:tabular-nums; }
.dashboard-review-type { color:var(--shop-muted); font-size:.72rem; }
.dashboard-stock-row,.dashboard-shop-expense-row,.dashboard-alert-row { display:flex; align-items:center; justify-content:space-between; gap:.8rem; padding:.6rem 0; border-bottom:1px solid #edf1f2; font-size:.8rem; }
.dashboard-stock-title { min-width:0; overflow:hidden; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-stock-row:last-child,.dashboard-shop-expense-row:last-child,.dashboard-alert-row:last-child { border-bottom:0; }
.dashboard-chart-row { display:grid; grid-template-columns:minmax(7rem,10rem) minmax(0,1fr) 5rem; align-items:center; gap:.65rem; margin:.55rem 0; }
.dashboard-chart-row-heading { min-width:0; font-size:.76rem; font-weight:700; }
.dashboard-chart-track { height:.7rem; overflow:hidden; border-radius:999px; background:#edf2f3; }
.dashboard-chart-bar { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#087f82,#31aaa3); }
.dashboard-chart-scale { color:var(--shop-muted); font-size:.68rem; text-align:right; }
.dashboard-empty,.dashboard-no-data,.dashboard-chart-empty,.dashboard-activity-empty { min-height:5rem; }

/* Liste des Shops, utilisateurs et formulaires */
.shops-page-heading,.shop-activity-heading{ margin-bottom:1rem; }
.shop-filter-panel,.access-filter-panel { margin-bottom:1rem; padding:1rem; }
.shop-filter-grid,.access-filter-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; }
.shop-filter-grid label,.access-filter-grid label { font-size:.74rem; }
.shop-filter-actions,.access-filter-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.65rem; margin-top:.8rem; }
.shop-filter-actions span,.access-filter-actions span { margin-left:auto; color:var(--shop-muted); font-size:.78rem; }
.shop-summary-grid,.access-summary-grid,.settings-summary-grid,.settings-current-rate-grid,.shop-health-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; margin-block:1rem; }
.shop-summary-card,.access-summary-card,.settings-summary-card,.settings-current-rate,.shop-health-card {
  display:grid; align-content:start; gap:.35rem; min-width:0; min-height:6.5rem; padding:.9rem 1rem;
  border:1px solid var(--shop-line); border-radius:.9rem; background:#fff; color:inherit; text-decoration:none;
}
.shop-summary-card strong,.access-summary-card strong,.settings-summary-card strong,.settings-current-rate strong,.shop-health-value { color:var(--shop-navy); font-size:1.45rem; line-height:1.15; font-variant-numeric:tabular-nums; }
.shop-summary-card span,.access-summary-card span,.settings-summary-card span,.settings-current-rate span,.shop-health-label { color:var(--shop-muted); font-size:.76rem; }
.shop-summary-card--active,.access-summary-card--active,.settings-summary-card--active { border-top:3px solid #168a65; }
.shop-summary-card--inactive,.access-summary-card--deleted,.settings-summary-card--attention { border-top:3px solid #e4a23c; }
.shop-summary-card--deleted,.access-summary-card--deleted { background:#f7f8f8; }
.access-summary-card--web { border-top:3px solid var(--shop-teal); }
.access-summary-card--mobile { border-top:3px solid #5795c4; }
.shop-contact,.user-account,.user-last-login,.shop-last-activity { display:grid; gap:.2rem; }
.shop-muted,.shop-team-caption,.shop-last-activity,.user-never-logged,.user-permission-caption,.access-form-guide { color:var(--shop-muted); font-size:.73rem; }
.shop-row-actions,.user-row-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem; }
.shop-row-actions a,.user-row-actions a,.user-edit-link,.shop-activity-open,.shop-restore-button,.user-restore-button {
  display:inline-flex; align-items:center; justify-content:center; min-height:2rem; padding:.32rem .58rem;
  border:1px solid #d5e2e4; border-radius:.55rem; background:#fff; color:#096d70; font-size:.72rem; font-weight:750; text-decoration:none;
}
.shop-row-archived { opacity:.72; }
.user-role-badge { background:#e8f4f3; color:#086e70; }
.user-delete-button { padding:.35rem .6rem; border:1px solid #efc6c0; border-radius:.55rem; background:#fff5f3; color:#923b2c; font-size:.72rem; font-weight:750; }
.user-access-preview { margin-top:1rem; }
.user-access-preview-heading { margin-bottom:.65rem; }
.user-access-preview-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; }
.user-access-preview-card { padding:.85rem; border:1px solid var(--shop-line); border-radius:.8rem; background:#f8fbfb; }
.user-access-preview-card strong { display:block; margin-bottom:.25rem; }
.user-access-preview-note { color:var(--shop-muted); font-size:.74rem; }
.web-permissions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem .8rem; padding:.8rem; border:1px solid var(--shop-line); border-radius:.75rem; }
.web-permissions label { display:flex; align-items:flex-start; gap:.45rem; font-size:.78rem; }
.web-permissions input { width:auto; margin-top:.2rem; }/* Modules financiers, supervision et paramètres */
.stock-overview,.cash-overview,.emoney-overview,.expense-overview,.debt-overview,.payment-overview { margin:1rem 0; }
.stock-overview-grid,.cash-flow-grid,.debt-metric-grid,.expense-currency-grid,.payment-overview,.emoney-overview-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; }
.stock-overview-card,.cash-flow-metric,.emoney-overview-card,.expense-currency-panel,.debt-currency-panel,.payment-currency-panel {
  display:grid; align-content:start; gap:.32rem; min-width:0; padding:.9rem 1rem; border:1px solid var(--shop-line); border-radius:.9rem; background:#fff; box-shadow:0 6px 18px #123c4808;
}
.stock-overview-card span,.cash-flow-metric span,.emoney-overview-card span,.expense-currency-panel span,.debt-currency-panel span,.payment-currency-panel span { color:var(--shop-muted); font-size:.74rem; }
.stock-overview-card strong,.cash-flow-metric strong,.emoney-overview-card strong,.expense-currency-panel strong,.debt-currency-panel strong,.payment-currency-panel strong { color:var(--shop-navy); font-size:1.35rem; line-height:1.2; font-variant-numeric:tabular-nums; }
.stock-overview-card small,.cash-flow-metric small,.emoney-overview-card small { color:var(--shop-muted); font-size:.7rem; }
.stock-overview-card--empty,.debt-metric-overdue { border-top:3px solid #ed9b47; }
.stock-overview-card--units,.emoney-overview-card--total { border-top:3px solid var(--shop-teal); }
.stock-overview-card--usd,.emoney-overview-card--usd { border-top:3px solid #3889be; }
.stock-overview-card--cdf,.emoney-overview-card--cdf { border-top:3px solid #7c69b2; }
.stock-panel-heading,.report-summary-heading { margin:1rem 0 .65rem; }
.stock-operator-grid,.cash-flow-chart,.debt-party-chart,.expense-category-chart { display:grid; gap:.5rem; }
.stock-operator-panel,.cash-currency-panel,.expense-currency-panel,.debt-currency-panel,.payment-currency-panel,.emoney-chart-panel {
  min-width:0; padding:1rem; border:1px solid var(--shop-line); border-radius:.9rem; background:#fff;
}
.stock-operator-row,.cash-flow-chart-row,.debt-party-row,.expense-category-row,.emoney-operator-row,.report-category-row {
  display:grid; grid-template-columns:minmax(6rem,10rem) minmax(0,1fr) auto; align-items:center; gap:.65rem; min-width:0; padding:.55rem 0; border-bottom:1px solid #edf1f2;
}
.stock-operator-row:last-child,.cash-flow-chart-row:last-child,.debt-party-row:last-child,.expense-category-row:last-child,.emoney-operator-row:last-child,.report-category-row:last-child { border-bottom:0; }
.stock-operator-row-heading { min-width:0; overflow-wrap:anywhere; font-size:.78rem; font-weight:700; }
.stock-share,.stock-quantity,.report-overdue-value,.dashboard-chart-note,.stock-history-context,.cash-overview-note,.summary-subtitle { color:var(--shop-muted); font-size:.74rem; }
.stock-state { display:inline-flex; padding:.22rem .55rem; border-radius:999px; background:#edf3f4; font-size:.7rem; font-weight:750; }
.cash-flow-chart-row { grid-template-columns:5rem minmax(0,1fr) 6rem; }
.cash-flow-bar,.report-flow-bar,.payment-split-bar,.expense-category-bar,.emoney-operator-bar,.stock-operator-bar,.debt-party-bar {
  display:block; height:.7rem; overflow:hidden; border-radius:999px; background:linear-gradient(90deg,var(--shop-teal) 0 var(--bar-width,0%),#e9f0f1 var(--bar-width,0%) 100%);
}
.cash-flow-bar--in { background:linear-gradient(90deg,#13896b 0 var(--bar-width,0%),#e9f0f1 var(--bar-width,0%) 100%); }
.cash-flow-bar--out { background:linear-gradient(90deg,#e18436 0 var(--bar-width,0%),#e9f0f1 var(--bar-width,0%) 100%); }
.payment-method-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
.payment-split-legend,.report-flow-legend { display:flex; flex-wrap:wrap; gap:.8rem; color:var(--shop-muted); font-size:.74rem; }
.payment-split-cash { color:#13896b; }
.payment-split-emoney { color:#5795c4; }
.inventory-variance-strip,.inventory-detail-summary { display:flex; flex-wrap:wrap; gap:.6rem; margin:.8rem 0; }
.inventory-detail-summary > *,.inventory-variance-strip > * { flex:1 1 8rem; padding:.65rem .8rem; border-radius:.65rem; background:#f5f8f9; font-size:.77rem; }
.inventory-detail-summary--short,.inventory-variance-short { background:#fff0ed !important; color:#9a3529; }
.inventory-detail-summary--excess,.inventory-variance-excess { background:#fff4dc !important; color:#8c5a13; }
.inventory-detail-summary--match { background:#eaf7ef !important; color:#176441; }
.review-overview { margin:1rem 0; padding:1rem; border:1px solid var(--shop-line); border-radius:1rem; background:#f8fbfb; }
.review-overview-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.8rem; }
.review-overview-heading h2 { margin:.2rem 0; }
.review-overview-heading p { margin:.2rem 0 0; color:var(--shop-muted); font-size:.8rem; }
.review-overview-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.65rem; }
.review-status-card { display:grid; gap:.25rem; padding:.8rem; text-decoration:none; }
.review-status-card strong { color:var(--shop-navy); font-size:1.35rem; }
.review-status-card small { color:var(--shop-muted); font-size:.68rem; }
.review-status-card.is-selected { outline:2px solid var(--shop-teal); }
.audit-export-actions,.report-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.6rem; margin:.7rem 0; }
.audit-session-summary,.audit-record-context,.audit-session-facts { padding:1rem; border:1px solid var(--shop-line); border-radius:.9rem; background:#f8fbfb; }
.audit-session-facts,.audit-change-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; }
.audit-session-fact { display:grid; gap:.15rem; min-width:0; padding:.65rem; border-radius:.65rem; background:#fff; }
.audit-session-fact small,.audit-device-name,.audit-platform-muted { color:var(--shop-muted); font-size:.7rem; }
.report-summary-grid,.report-summary-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; }
.report-summary-card,.report-category-card { min-width:0; padding:.9rem; border:1px solid var(--shop-line); border-radius:.85rem; background:#fff; }
.report-summary-card-heading { color:var(--shop-muted); font-size:.75rem; font-weight:750; }
.report-summary-total { display:block; margin-top:.3rem; color:var(--shop-navy); font-size:1.35rem; font-weight:850; font-variant-numeric:tabular-nums; }
.report-summary-caption { color:var(--shop-muted); font-size:.7rem; }
.report-category-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; }
.settings-section,.settings-category-panel { margin-block:1rem; padding:1rem; border:1px solid var(--shop-line); border-radius:1rem; background:#fff; }
.settings-section { scroll-margin-top:1rem; }
.settings-jump-nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.7rem; margin:0 0 1rem; }
.settings-jump-link { display:flex; align-items:center; gap:.7rem; min-width:0; padding:.78rem .85rem; border:1px solid var(--shop-line); border-radius:.85rem; background:#fff; color:var(--shop-ink); text-decoration:none; transition:border-color .16s ease,background .16s ease,transform .16s ease; }
.settings-jump-link:hover { border-color:#f0b77f; background:#fff9f2; transform:translateY(-1px); }
.settings-jump-link > span:nth-child(2) { display:grid; flex:1 1 auto; gap:.16rem; min-width:0; }
.settings-jump-link strong { overflow:hidden; font-size:.78rem; text-overflow:ellipsis; white-space:nowrap; }
.settings-jump-link small { color:var(--shop-muted); font-size:.68rem; }
.settings-jump-link > b { color:var(--shop-teal); font-size:1rem; }
.settings-jump-number { display:grid; place-items:center; flex:0 0 2.1rem; width:2.1rem; height:2.1rem; border-radius:.68rem; background:#fff0e1; color:#9a3f08; font-size:.72rem; }
.settings-jump-number--history { background:#e7f4f2; color:#0b625d; }
.settings-jump-number--categories { background:#edf1f8; color:#3d5b80; }
.settings-summary-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.settings-current-rate-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.settings-current-rate strong { font-size:1.15rem; }
.settings-current-rate strong small { color:var(--shop-muted); font-size:.72rem; font-weight:700; }
.settings-current-rate--missing { border-color:#efc080; background:#fffaf2; }
.settings-current-rate a { width:max-content; max-width:100%; color:var(--shop-teal); font-size:.74rem; font-weight:750; text-decoration:none; }
.settings-current-rate a:hover { text-decoration:underline; }
.settings-current-rate--future,.settings-rate-state--future { border-color:#f0d7a2; background:#fffaf0; }
.settings-rate-filter { display:grid; grid-template-columns:minmax(12rem,1.25fr) repeat(2,minmax(9rem,1fr)) auto; align-items:end; gap:.7rem; margin:1rem 0; padding:.9rem; border:1px solid var(--shop-line); border-radius:.85rem; background:#f8fbfb; }
.settings-rate-filter-field { display:grid; gap:.35rem; min-width:0; }
.settings-rate-filter-field label { color:#40575e; font-size:.72rem; font-weight:750; }
.settings-rate-filter-field input,.settings-rate-filter-field select { width:100%; min-width:0; }
.settings-rate-filter-actions { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; }
.settings-rate-filter-actions a { color:var(--shop-teal); font-size:.73rem; font-weight:750; text-decoration:none; }
.settings-rate-filter-actions a:hover { text-decoration:underline; }
.settings-rate-date,.settings-category-state { color:var(--shop-muted); font-size:.75rem; }
.settings-rate-state { display:inline-flex; padding:.2rem .52rem; border-radius:999px; background:#eef3f4; font-size:.7rem; font-weight:750; }
.settings-rate-state--current { background:#e5f5ee; color:#176441; }
.settings-add-rate { margin-top:1rem; }
.settings-category-list { display:grid; gap:.55rem; }
.settings-category-row { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(8rem,.6fr) auto; align-items:end; gap:.7rem; padding:.8rem; border:1px solid #e8eef0; border-radius:.8rem; background:#fff; }
.settings-category-name { display:flex; grid-column:1; grid-row:1; align-items:center; justify-content:space-between; gap:.6rem; font-weight:700; }
.settings-category-name label { color:#40575e; font-size:.72rem; font-weight:750; }
.settings-category-state { display:inline-flex; padding:.18rem .48rem; border-radius:999px; background:#eef3f4; font-size:.66rem; font-weight:800; }
.settings-category-state--active { background:#e5f5ee; color:#176441; }
.settings-category-state--inactive { background:#fff2df; color:#99581d; }
.settings-category-row > input { grid-column:1; grid-row:2; }
.settings-category-row > select { grid-column:2; grid-row:2; }
.settings-category-row > button { grid-column:3; grid-row:2; white-space:nowrap; }
.settings-category-new { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:.6rem; margin:0 0 1rem; padding:1rem; border:1px solid #e8eef0; border-radius:.85rem; background:#f8fbfb; }
.settings-category-new > label { grid-column:1; grid-row:1; color:#40575e; font-size:.75rem; font-weight:750; }
.settings-category-new > input[name="name"] { grid-column:1; grid-row:2; }
.settings-category-new > button { grid-column:2; grid-row:2; min-width:10rem; }
.settings-add-rate { overflow:hidden; }
.settings-add-rate > summary { display:flex; align-items:center; justify-content:space-between; gap:.6rem; padding:1rem; background:#fff4e8; color:#7c2d12; font-weight:800; list-style:none; cursor:pointer; }
.settings-add-rate > summary::-webkit-details-marker { display:none; }
.settings-add-rate > summary small { margin-left:auto; color:#805b43; font-size:.7rem; font-weight:650; }
.settings-add-rate > summary::after { content:""; flex:0 0 .45rem; width:.45rem; height:.45rem; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg) translateY(-.12rem); transition:transform .16s ease; }
.settings-add-rate[open] > summary::after { transform:rotate(225deg) translate(-.05rem,-.05rem); }
.settings-add-rate > .editor { padding:1rem; }

/* Points de rupture cohérents avec le menu mobile */
@media (max-width:1150px) {
  .dashboard-kpis,.stock-overview-grid,.cash-flow-grid,.debt-metric-grid,.expense-currency-grid,.payment-overview,.emoney-overview-grid,
  .shop-summary-grid,.access-summary-grid,.shop-health-grid,.report-summary-grid,.report-summary-metrics,
  .settings-summary-grid,.settings-current-rate-grid,.settings-jump-nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .settings-rate-filter { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-filter-panel { grid-template-columns:1fr; }
  .shop-filter-grid,.access-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .audit-session-facts,.audit-change-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:861px) and (max-width:950px) {
  .shell:not(.guest-login) { grid-template-columns:15rem minmax(0,1fr); }
  .shell:not(.guest-login) .admin-sidebar { width:15rem; }
  .shell:not(.guest-login) .brand { padding:.25rem; font-size:1rem; }
  .shell:not(.guest-login) .admin-nav .nav-link { justify-content:flex-start; font-size:.78rem; }
}
@media (max-width:860px) {
  .shell:not(.guest-login) { display:block; }
  .shell:not(.guest-login) .admin-sidebar { position:sticky; top:0; width:100%; height:auto; min-height:0; gap:0; padding:.55rem 1rem; overflow:visible; }
  .shell:not(.guest-login) .sidebar-heading { min-height:2.9rem; }
  .shell:not(.guest-login) .brand { padding:.1rem; font-size:1rem; }
  .shell:not(.guest-login) .brand-logo { flex-basis:2.35rem; width:2.35rem; height:2.35rem; }
  .shell:not(.guest-login) .menu-toggle { display:inline-flex; }
  .shell:not(.guest-login) .admin-menu { position:absolute; inset:100% 0 auto; max-height:calc(100dvh - 3.5rem); padding:1rem; overflow:auto; border-top:1px solid #ffffff24; background:var(--shop-menu-gradient); box-shadow:0 16px 26px #092f3b32; }
  .shell:not(.guest-login) .admin-nav { overflow:visible; }
  .shell:not(.guest-login) .admin-nav .nav-link { justify-content:flex-start; font-size:.85rem; }
  .shell:not(.guest-login) .signout { margin-top:.65rem; }
  .shell:not(.guest-login) > main { padding:1rem; }
  .dashboard-hero { grid-template-columns:1fr; }
  .dashboard-hero-actions { justify-content:flex-start; }
}
@media (max-width:620px) {
  .shell:not(.guest-login) > main { padding:.85rem .7rem 1.5rem; }
  .heading,.review-overview-heading,.dashboard-section-heading,.settings-section-heading { align-items:flex-start; flex-direction:column; }
  .dashboard-kpis,.stock-overview-grid,.cash-flow-grid,.debt-metric-grid,.expense-currency-grid,.payment-overview,.emoney-overview-grid,
  .shop-summary-grid,.access-summary-grid,.shop-health-grid,.settings-summary-grid,.settings-current-rate-grid,.report-summary-grid,.report-summary-metrics,
  .settings-jump-nav,.report-category-grid,.dashboard-finance-grid,.dashboard-chart-grid,.dashboard-shop-expense-grid,.review-overview-grid,.user-access-preview-grid,
  .audit-session-facts,.audit-change-grid { grid-template-columns:1fr; }
  .shop-filter-grid,.access-filter-grid,.web-permissions { grid-template-columns:1fr; }
  .dashboard-hero { padding:1.15rem; }
  .dashboard-hero-actions { align-items:stretch; flex-direction:column; }
  .dashboard-date { padding:0; }
  .dashboard-filter-panel { padding:.9rem; }
  .dashboard-filters { display:grid; grid-template-columns:1fr; align-items:stretch; }
  .dashboard-filters input,.dashboard-filters select,.dashboard-filters button { width:100%; }
  .dashboard-chart-row { grid-template-columns:minmax(5rem,7rem) minmax(0,1fr) 3.7rem; }
  .shop-filter-actions span,.access-filter-actions span { width:100%; margin-left:0; }
  .review-overview { padding:.8rem; }
  .report-actions { justify-content:stretch; }
  .report-actions > * { flex:1 1 9rem; }
  .settings-category-new { grid-template-columns:1fr; }
  .settings-rate-filter { grid-template-columns:1fr; }
  .settings-category-new > label,.settings-category-new > input[name="name"],.settings-category-new > button { grid-column:1; grid-row:auto; }
  .settings-category-new > button { width:100%; min-width:0; }
  .settings-category-row { grid-template-columns:1fr; }
  .settings-category-name,.settings-category-row > input,.settings-category-row > select,.settings-category-row > button { grid-column:1; grid-row:auto; }
  .settings-category-row > button { width:100%; }
  .audit-session-facts,.audit-change-grid { grid-template-columns:1fr; }
}
@media (max-width:420px) {
  .dashboard-hero-copy h1,.admin-page-heading-copy h1 { font-size:1.55rem; }
  .stock-operator-row,.cash-flow-chart-row,.debt-party-row,.expense-category-row,.emoney-operator-row,.report-category-row { grid-template-columns:minmax(5rem,1fr) minmax(3rem,1.2fr) auto; gap:.4rem; }
  .panel { padding:.8rem; }
}/* Éléments partagés et vues complémentaires */
.admin-icon-sprite { position:absolute; width:0; height:0; overflow:hidden; }
.secondary { border:1px solid var(--shop-line); background:#fff; color:var(--shop-navy); }
.access-search-field { min-width:12rem; }
.dashboard-section-link,.dashboard-reset-link { color:var(--shop-teal); font-size:.78rem; font-weight:750; text-decoration:none; }
.dashboard-section-link:hover,.dashboard-reset-link:hover { text-decoration:underline; }
.dashboard-kpi--shops .dashboard-kpi-icon { background:#e7f5f3; color:#087f82; }
.dashboard-kpi--users .dashboard-kpi-icon { background:#eaf1fb; color:#3b75a5; }
.dashboard-kpi--closures .dashboard-kpi-icon { background:#fff2df; color:#a85a11; }
.dashboard-kpi--inventories .dashboard-kpi-icon { background:#f0ecfb; color:#7257a8; }
.dashboard-empty-icon { display:grid; place-items:center; width:2.7rem; height:2.7rem; border-radius:50%; background:#e9f3f4; color:var(--shop-teal); }
.delegated-dashboard { display:grid; gap:1rem; }
.delegated-dashboard-hero { margin-bottom:.2rem; }
.delegated-profile-grid,.delegated-action-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; }
.delegated-profile-card,.delegated-scope-card,.delegated-permission-panel,.delegated-action-card {
  min-width:0; padding:1rem; border:1px solid var(--shop-line); border-radius:.9rem; background:#fff;
}
.delegated-profile-card--permissions,.delegated-permission-panel { background:#f8fbfb; }
.delegated-permission-list { display:grid; gap:.45rem; padding:0; list-style:none; }
.delegated-permission-list li { padding:.55rem .7rem; border-radius:.6rem; background:#fff; }
.delegated-action-card { display:grid; align-content:start; gap:.35rem; color:inherit; text-decoration:none; }
.delegated-action-card--review { border-color:#f0d5ad; background:#fffaf2; }
.delegated-action-eyebrow { color:var(--shop-teal); font-size:.67rem; font-weight:850; letter-spacing:.1em; text-transform:uppercase; }
.delegated-action-open { color:var(--shop-teal); font-size:.78rem; font-weight:750; }
.delegated-action-grid--compact { grid-template-columns:repeat(3,minmax(0,1fr)); }
.delegated-single-action { grid-column:1/-1; }
.delegated-review-count { color:var(--shop-navy); font-size:1.5rem; font-weight:850; }
.shop-health-section { margin-block:1.2rem; }
.shop-health-card { min-height:6rem; }
.shop-health-card--team { border-top:3px solid #5795c4; }
.shop-health-warning { padding:.8rem 1rem; border:1px solid #f0d7a2; border-radius:.75rem; background:#fff8e9; color:#8c5a13; }
.shop-activity-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; margin:1rem 0; }
.shop-activity-summary > * { min-width:0; padding:1rem; border:1px solid var(--shop-line); border-radius:.85rem; background:#fff; }
.shop-activity-summary--finance { border-top:3px solid #13896b; }
.shop-activity-summary--operations { border-top:3px solid var(--shop-teal); }
.shop-activity-summary--reports { border-top:3px solid #7b6ab0; }
.shop-record { display:grid; gap:.2rem; }
.decision-list { display:grid; gap:.6rem; padding:0; list-style:none; }
.decision-list > li { padding:.75rem; border:1px solid var(--shop-line); border-radius:.7rem; background:#fff; }
.inventory-difference { display:inline-flex; align-items:center; padding:.2rem .5rem; border-radius:999px; background:#edf3f4; font-size:.72rem; font-weight:750; }
.debt-overdue-label { color:#9a3529; font-size:.72rem; font-weight:750; }
.emoney-overview-card--rate { border-top:3px solid #7b6ab0; }
.expense-payment-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; }
.report-financial-summary { margin:1rem 0; }
.report-summary-metrics > div { display:grid; gap:.2rem; padding:.65rem; border-radius:.65rem; background:#f5f8f9; }
.report-summary-metrics strong { font-variant-numeric:tabular-nums; }
.report-flow-bar { width:100%; height:.7rem; background:#edf2f3; }
.report-flow-bar--in { display:block; height:100%; border-radius:inherit; background:#13896b; }
.payment-split-bar { display:flex; width:100%; height:.75rem; overflow:hidden; border-radius:999px; background:#edf2f3; }
.payment-split-bar .payment-split-cash { display:block; height:100%; background:#13896b; }
.payment-split-bar .payment-split-emoney { display:block; height:100%; background:#5795c4; }
.cash-flow-bar,.expense-category-bar,.emoney-operator-bar,.stock-operator-bar,.debt-party-bar { background:#087f82; }
.cash-flow-bar--in { background:#13896b; }
.cash-flow-bar--out { background:#e18436; }
.expense-category-bar { background:#e18436; }
.security-kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; }
.security-kpi { display:grid; gap:.3rem; min-width:0; padding:.9rem; border:1px solid var(--shop-line); border-radius:.85rem; background:#fff; }
.security-kpi strong { color:var(--shop-navy); font-size:1.5rem; font-variant-numeric:tabular-nums; }
.security-kpi span,.security-kpi small { color:var(--shop-muted); font-size:.72rem; }
.security-kpi--login { border-top:3px solid #f0781f; }
.security-kpi--users { border-top:3px solid #087f82; }
.security-kpi--mobile-login { border-top:3px solid #5795c4; }
.security-kpi--mobile-users { border-top:3px solid #7b6ab0; }
.security-trend-section { margin-block:1.2rem; }
.security-trend-heading { display:flex; align-items:center; justify-content:space-between; gap:.8rem; margin-bottom:.7rem; }
.security-trend-list { display:grid; gap:.55rem; }
.security-trend-row { display:grid; grid-template-columns:4.5rem minmax(0,1fr) minmax(8rem,.8fr); align-items:center; gap:.7rem; }
.security-trend-row > strong { font-size:.73rem; }
.security-trend-bars { display:grid; gap:.2rem; }
.security-trend-track { display:block; height:.38rem; overflow:hidden; border-radius:999px; background:#edf2f3; }
.security-trend-bar { display:block; height:100%; border-radius:inherit; background:#f0781f; }
.security-trend-bar--logout { background:#087f82; }
.security-trend-bar--mobile-login { background:#5795c4; }
.security-trend-bar--mobile-logout { background:#7b6ab0; }
.security-trend-values { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.25rem .65rem; color:var(--shop-muted); font-size:.68rem; }
.settings-shop-name { font-weight:750; }
.settings-inactive-count { color:#9a5c18; font-size:.75rem; }
.summary { cursor:pointer; }.dashboard-overview-section,.dashboard-security-section { scroll-margin-top:1rem; }
.dashboard-alert-table,.dashboard-review-table { width:100%; min-width:0; }
.dashboard-alert-table table,.dashboard-review-table table { min-width:44rem; }
.dashboard-security-section .security-kpi-grid { margin-bottom:1rem; }
.menu-toggle-label { display:inline-block; line-height:1; }
.security-trend-bar--login { background:#f0781f; }
.user-access-none { display:inline-flex; padding:.2rem .5rem; border-radius:999px; background:#f2f4f5; color:#7a898e; font-size:.7rem; }

/* Dashboard activity chart refinement */
.dashboard-activity-meta { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.7rem 1rem; margin-bottom:.8rem; }
.dashboard-activity-legend { margin-top:0; }
.dashboard-activity-summary { display:flex; align-items:baseline; gap:.45rem; padding:.4rem .65rem; border:1px solid var(--shop-line); border-radius:.7rem; background:#f5f8f9; color:var(--shop-muted); font-size:.72rem; }
.dashboard-activity-summary strong { color:var(--shop-navy); font-variant-numeric:tabular-nums; }
.dashboard-activity-chart { grid-template-columns:repeat(7,minmax(0,1fr)); align-items:stretch; gap:.55rem; min-height:12rem; padding:.35rem .25rem 0; }
.dashboard-activity-day { grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr) auto; align-items:stretch; gap:.4rem; height:11rem; min-height:0; }
.dashboard-activity-total { justify-self:center; text-align:center; color:var(--shop-navy); font-size:.72rem; font-weight:800; }
.dashboard-activity-plot { display:flex; align-items:stretch; justify-content:center; width:100%; height:auto; min-height:0; overflow:visible; border-radius:.6rem; background:repeating-linear-gradient(to top,#e8eef0 0 1px,transparent 1px 25%); }
.dashboard-activity-stack { align-self:stretch; align-items:flex-end; flex-direction:column-reverse; width:min(60%,2.2rem); height:100%; min-height:0; margin-inline:auto; border-radius:.45rem .45rem .18rem .18rem; background:#eef3f4; }
.dashboard-activity-segment { display:block; flex:0 0 auto; width:100%; min-height:0; transition:height .2s ease; }
.dashboard-activity-date { overflow:hidden; color:var(--shop-muted); font-size:.66rem; text-align:center; text-overflow:clip; white-space:nowrap; }
.dashboard-activity-empty { margin:.8rem 0 0; color:var(--shop-muted); font-size:.82rem; text-align:center; }
@media (max-width:620px) {
  .dashboard-activity-chart { gap:.2rem; min-height:9.8rem; padding-inline:0; }
  .dashboard-activity-day { height:9rem; gap:.28rem; }
  .dashboard-activity-total { font-size:.62rem; }
  .dashboard-activity-date { font-size:.56rem; }
  .dashboard-activity-summary { width:100%; justify-content:space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-activity-segment { transition:none; }
}

/* Dashboard liquidity summary */
.dashboard-liquidity-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.9rem; }
.dashboard-liquidity-card { min-width:0; padding:1.15rem; }
.dashboard-liquidity-heading { display:flex; align-items:center; justify-content:space-between; gap:.7rem; color:var(--shop-muted); font-size:.76rem; font-weight:700; }
.dashboard-liquidity-currency { display:grid; place-items:center; min-width:3.1rem; min-height:2rem; padding:.2rem .55rem; border-radius:.65rem; background:#e8f5f3; color:var(--shop-teal); font-size:.73rem; font-weight:850; letter-spacing:.06em; }
.dashboard-liquidity-total { display:flex; align-items:baseline; gap:.45rem; margin:.75rem 0 .9rem; }
.dashboard-liquidity-total strong { color:var(--shop-navy); font-size:clamp(1.7rem,3vw,2.35rem); line-height:1.08; font-variant-numeric:tabular-nums; }
.dashboard-liquidity-total span { color:var(--shop-muted); font-size:.78rem; font-weight:750; }
.dashboard-liquidity-breakdown { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.5rem .75rem; padding-top:.75rem; border-top:1px solid var(--shop-line); }
.dashboard-liquidity-breakdown span { color:var(--shop-muted); font-size:.78rem; }
.dashboard-liquidity-breakdown strong { color:var(--shop-ink); font-size:.8rem; font-variant-numeric:tabular-nums; text-align:right; }
@media (max-width:620px) {
  .dashboard-liquidity-grid { grid-template-columns:1fr; }
  .dashboard-liquidity-card { padding:.9rem; }
}

/* Référence visuelle EXA 2 — interface Web */
.shell:not(.guest-login) .admin-sidebar {
  background:var(--shop-menu-gradient);
}
.shell:not(.guest-login) .brand { font-weight:800; letter-spacing:-.02em; }
.shell:not(.guest-login) .brand-logo { border-color:#ff9b3e66; }
.shell:not(.guest-login) .nav-section-title { color:#b7d1d5; }
.shell:not(.guest-login) .admin-nav .nav-link { border-radius:.78rem; }
.shell:not(.guest-login) .admin-nav .nav-link[aria-current="page"] {
  border-color:transparent;
  background:linear-gradient(105deg,#f0781f,#ff9a3d);
  color:#092f3b;
  font-weight:800;
  box-shadow:0 7px 18px #f0781f33;
}
.shell:not(.guest-login) .admin-nav .nav-link[aria-current="page"] .nav-icon { color:#092f3b; }
.shell:not(.guest-login) .admin-nav .nav-link:not([aria-current="page"]):hover { background:#ffffff19; }
.shell:not(.guest-login) > main { background:var(--shop-paper); }
.shell:not(.guest-login) > main .panel {
  border-color:#dce6e8;
  border-radius:1.05rem;
  box-shadow:0 8px 24px #092f3b0b;
}
.shell:not(.guest-login) > main .table-wrap { box-shadow:0 8px 24px #092f3b09; }
.shell:not(.guest-login) > main th { background:#edf4f5; color:#31525d; }
.shell:not(.guest-login) > main tbody tr:hover { background:#f4f9fa; }
.shell:not(.guest-login) > main :is(input,select,textarea):focus-visible,
.shell:not(.guest-login) > main :is(button,.button,a):focus-visible {
  outline:3px solid #f0781f77;
  outline-offset:2px;
}
.shell:not(.guest-login) .module-page-heading {
  padding-bottom:.85rem;
  border-bottom:1px solid var(--shop-line);
}
.dashboard-hero {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border:1px solid #ffffff1c;
  background:radial-gradient(ellipse at 100% 0%,#0d718055,transparent 42%),linear-gradient(118deg,#062c39 0%,#0b4654 62%,#082f45 100%);
}
.dashboard-hero::after {
  position:absolute;
  z-index:-1;
  top:-18rem;
  right:clamp(8rem,22vw,27rem);
  width:38rem;
  height:38rem;
  border:1px solid #ffffff20;
  border-radius:50%;
  box-shadow:0 0 0 2rem #ffffff08,0 0 0 5rem #ffffff06;
  content:"";
  pointer-events:none;
}
.dashboard-hero-copy,.dashboard-hero-actions { position:relative; }
.dashboard-eyebrow {
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.35rem .6rem;
  border:1px solid #ffffff28;
  border-radius:999px;
  background:#ffffff0d;
  color:#ffd1aa;
  letter-spacing:.13em;
}
.dashboard-eyebrow::before { width:.45rem; height:.45rem; border-radius:50%; background:var(--shop-orange); content:""; }
.dashboard-hero-actions {
  padding:.8rem;
  border:1px solid #ffffff20;
  border-radius:1rem;
  background:#ffffff0c;
  backdrop-filter:blur(6px);
}
.dashboard-date { padding:.12rem .8rem .12rem 0; }
.dashboard-action-primary {
  min-height:2.8rem;
  padding:.62rem 1rem;
  border:0;
  border-radius:.72rem;
  background:linear-gradient(110deg,#f0781f,#ff9637);
  color:#092f3b;
  font-weight:850;
  box-shadow:0 8px 20px #f0781f30;
  transition:transform .16s ease,box-shadow .16s ease;
}
.dashboard-action-primary:hover { transform:translateY(-1px); box-shadow:0 11px 24px #f0781f40; }
.dashboard-action-link { padding:.5rem .3rem; }
.dashboard-filter-panel { border-left:4px solid var(--shop-orange); }
.dashboard-section-heading { padding-bottom:.55rem; border-bottom:1px solid #e4ebed; }
.dashboard-section-heading h2 { color:var(--shop-navy); font-weight:800; letter-spacing:-.02em; }
.dashboard-section-eyebrow { color:#078187; }
.dashboard-kpi {
  position:relative;
  overflow:hidden;
  border-top:3px solid var(--shop-teal);
  border-radius:.95rem;
  box-shadow:0 8px 24px #092f3b0b;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.dashboard-kpi--shops { border-top-color:var(--shop-orange); }
.dashboard-kpi--users { border-top-color:var(--shop-teal); }
.dashboard-kpi--closures { border-top-color:#db9a34; }
.dashboard-kpi--inventories { border-top-color:#4c94ba; }
.dashboard-kpi--shops .dashboard-kpi-icon { background:#fff0e5; color:#c95710; }
.dashboard-kpi--closures .dashboard-kpi-icon { background:#fff5e2; color:#a56713; }
.dashboard-kpi--inventories .dashboard-kpi-icon { background:#eaf4fa; color:#397a9e; }
.dashboard-kpi strong { letter-spacing:-.035em; }
.dashboard-kpi.panel:hover { transform:translateY(-2px); border-color:#c5dadd; box-shadow:0 14px 28px #092f3b14; }
.dashboard-kpi--attention { border-top-color:#e2a03b; }
.dashboard-liquidity-card { border-top:3px solid var(--shop-orange) !important; }
.dashboard-liquidity-card:nth-child(2) { border-top-color:#168d8b !important; }
.dashboard-liquidity-currency { background:#fff0e5; color:#bd5712; }
.dashboard-liquidity-card:nth-child(2) .dashboard-liquidity-currency { background:#e7f5f3; color:#087f82; }
.dashboard-review-action { border:1px solid #cbe4e1; transition:background .15s ease,border-color .15s ease; }
.dashboard-review-action:hover { border-color:#f2c39b; background:#fff2e8; color:#a4470f; }
@media (max-width:860px) {
  .shell:not(.guest-login) .admin-sidebar { background:var(--shop-menu-gradient); }
  .dashboard-hero-actions { justify-content:flex-start; }
}
@media (max-width:620px) {
  .dashboard-section-heading { align-items:flex-start; }
  .dashboard-hero-actions { padding:.7rem; }
  .dashboard-date { padding:0; }
}
@media (prefers-reduced-motion:reduce) {
  .dashboard-action-primary,.dashboard-kpi,.dashboard-review-action { transition:none; }
  .dashboard-action-primary:hover,.dashboard-kpi.panel:hover { transform:none; }
}

/* Dashboard navigation and entrance motion */
@keyframes dashboard-surface-enter {
  from { opacity:0; transform:translateY(9px); }
  to { opacity:1; transform:translateY(0); }
}
@keyframes dashboard-attention-glow {
  0%,100% { box-shadow:0 0 0 0 #f0781f14; }
  50% { box-shadow:0 0 0 .45rem #f0781f00; }
}
.dashboard-hero { animation:dashboard-surface-enter .55s cubic-bezier(.2,.7,.2,1) both; }
.dashboard-filter-panel { animation:dashboard-surface-enter .55s .08s cubic-bezier(.2,.7,.2,1) both; }
.dashboard-section-nav {
  display:flex; gap:.45rem; margin:.1rem 0 1.15rem; padding:.15rem .05rem .55rem;
  overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin;
}
.dashboard-section-nav a {
  display:inline-flex; align-items:center; flex:0 0 auto; min-height:2.45rem; padding:.52rem .78rem;
  border:1px solid var(--shop-line); border-radius:999px; background:#fff; color:var(--shop-navy);
  font-size:.75rem; font-weight:750; line-height:1.2; text-decoration:none; white-space:nowrap;
  transition:transform .16s ease,border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease;
}
.dashboard-section-nav a:hover {
  transform:translateY(-1px); border-color:#b9d5d7; background:#f0f8f8; color:#06696d;
  box-shadow:0 5px 14px #092f3b10;
}
.dashboard-section-nav a:focus-visible { outline:3px solid #f0781f77; outline-offset:2px; }
.dashboard-section-nav ~ .dashboard-section[id],.dashboard-section :is(h2[id],h3[id]) { scroll-margin-top:1.25rem; }
.dashboard-kpi { animation:dashboard-surface-enter .48s .14s cubic-bezier(.2,.7,.2,1) both; }
.dashboard-kpis > .dashboard-kpi:nth-child(2) { animation-delay:.2s; }
.dashboard-kpis > .dashboard-kpi:nth-child(3) { animation-delay:.26s; }
.dashboard-kpis > .dashboard-kpi:nth-child(4) { animation-delay:.32s; }
.dashboard-kpi--attention .dashboard-kpi-icon { animation:dashboard-attention-glow 3.2s ease-in-out infinite; }
@media (max-width:620px) {
  .dashboard-section-nav { margin-bottom:.85rem; }
  .dashboard-section-nav a { min-height:2.3rem; padding:.48rem .68rem; font-size:.72rem; }
}
@media (prefers-reduced-motion:reduce) {
  .dashboard-hero,.dashboard-filter-panel,.dashboard-kpi,.dashboard-kpi--attention .dashboard-kpi-icon { animation:none !important; }
  .dashboard-section-nav a { transition:none; }
  .dashboard-section-nav a:hover { transform:none; }
}
.dashboard-nav-count {
  display:inline-grid; place-items:center; min-width:1.35rem; min-height:1.35rem; padding:0 .32rem;
  border-radius:999px; background:#e9f1f3; color:#31525d; font-size:.66rem; font-weight:850;
  font-variant-numeric:tabular-nums;
}
.dashboard-nav-count--attention { background:#ffebd8; color:#a4470f; }
.dashboard-nav-count--clear { background:#e5f4f0; color:#087f82; }

/* Dashboard section hierarchy */
.dashboard-section-intro {
  display:flex; align-items:center; gap:.8rem; margin:1.65rem 0 .65rem; padding:.78rem .9rem;
  border:1px solid #dbe7e9; border-left:3px solid var(--shop-orange); border-radius:.9rem;
  background:linear-gradient(105deg,#f0f8f7 0%,#fff 64%,#fff7ef 100%);
}
.dashboard-section-intro-index {
  display:grid; place-items:center; flex:0 0 2.25rem; width:2.25rem; height:2.25rem;
  border-radius:.72rem; background:var(--shop-navy); color:#fff; font-size:.72rem; font-weight:850;
  font-variant-numeric:tabular-nums; box-shadow:0 5px 12px #092f3b18;
}
.dashboard-section-intro-copy { display:grid; gap:.12rem; min-width:0; }
.dashboard-section-intro-copy strong { color:var(--shop-navy); font-size:.88rem; font-weight:850; }
.dashboard-section-intro-copy span { color:var(--shop-muted); font-size:.73rem; line-height:1.45; }
.dashboard-section-intro-tag {
  flex:0 0 auto; margin-left:auto; padding:.38rem .65rem; border:1px solid #dce8e8; border-radius:999px;
  background:#ffffffc9; color:#087f82; font-size:.66rem; font-weight:800; letter-spacing:.04em;
}
.dashboard-section { scroll-margin-top:1.25rem; }
@media (max-width:620px) {
  .dashboard-section-intro { align-items:flex-start; margin-top:1.3rem; padding:.7rem; }
  .dashboard-section-intro-copy span { font-size:.7rem; }
  .dashboard-section-intro-tag { display:none; }
}
/* Dashboard quick links grouped by task */
.dashboard-section-nav {
  display:flex; align-items:stretch; gap:.55rem; margin:.1rem 0 1.15rem; padding:.15rem .05rem .55rem;
  overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin;
}
.dashboard-nav-group {
  display:grid; align-content:start; gap:.32rem; flex:0 0 auto; padding:.42rem .5rem;
  border:1px solid #dfe8ea; border-radius:.85rem; background:linear-gradient(145deg,#f8fbfb,#fff);
}
.dashboard-nav-group-label { padding-inline:.18rem; color:#71848b; font-size:.58rem; font-weight:850; letter-spacing:.11em; }
.dashboard-nav-group-links { display:flex; align-items:center; gap:.32rem; }
.dashboard-nav-group-links a { min-height:2.15rem; padding:.42rem .62rem; font-size:.7rem; }
.dashboard-section-intro[id] { scroll-margin-top:1.25rem; }
@media (max-width:620px) {
  .dashboard-section-nav { gap:.4rem; }
  .dashboard-nav-group { padding:.38rem .42rem; }
  .dashboard-nav-group-links a { min-height:2.05rem; padding:.38rem .52rem; font-size:.67rem; }
}
/* Selected dashboard scope */
.dashboard-context-summary { display:flex; align-items:center; flex-wrap:wrap; gap:.48rem; margin-top:.9rem; }
.dashboard-context-chip {
  display:inline-flex; align-items:center; flex-wrap:wrap; gap:.35rem; min-height:2rem; padding:.32rem .62rem;
  border:1px solid #ffffff2b; border-radius:.68rem; background:#ffffff10; color:#fff;
}
.dashboard-context-chip-label { color:#c6dce0; font-size:.58rem; font-weight:850; letter-spacing:.1em; }
.dashboard-context-chip strong { font-size:.72rem; font-weight:750; }
.dashboard-context-note { flex-basis:100%; color:#cfdee1; font-size:.68rem; line-height:1.4; }
@media (max-width:620px) {
  .dashboard-context-summary { align-items:stretch; }
  .dashboard-context-chip { width:100%; justify-content:space-between; }
  .dashboard-context-chip strong { text-align:right; }
}
/* Shop list sorting */
.shop-sort-control { display:inline-flex; align-items:center; gap:.45rem; }
.shop-sort-control label { color:var(--shop-muted); font-size:.72rem; font-weight:750; white-space:nowrap; }
.shop-sort-control select { min-width:11.5rem; min-height:2.35rem; padding:.42rem 2rem .42rem .6rem; }
@media (max-width:620px) {
  .shop-sort-control { width:100%; align-items:stretch; flex-direction:column; gap:.25rem; }
  .shop-sort-control select { width:100%; }
}
.shop-summary-card[href] { transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease; }
.shop-summary-card[href]:hover { transform:translateY(-2px); border-color:#b9d5d7; box-shadow:0 10px 24px #092f3b12; }
.shop-summary-card[href]:focus-visible { outline:3px solid #f0781f88; outline-offset:3px; }
@media (prefers-reduced-motion:reduce) { .shop-summary-card[href] { transition:none; } .shop-summary-card[href]:hover { transform:none; } }
/* Stock movement overview and filtering */
.stock-movement-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; margin-block:1rem; }
.stock-movement-summary-card {
  display:grid; align-content:start; gap:.35rem; min-width:0; min-height:6.5rem; padding:.9rem 1rem;
  border:1px solid var(--shop-line); border-radius:.9rem; background:#fff; color:inherit; text-decoration:none;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.stock-movement-summary-card span { color:var(--shop-muted); font-size:.76rem; }
.stock-movement-summary-card strong { color:var(--shop-navy); font-size:1.45rem; line-height:1.15; font-variant-numeric:tabular-nums; }
.stock-movement-summary-card small { color:var(--shop-muted); font-size:.68rem; }
.stock-movement-summary-card--entry { border-top:3px solid #168a65; }
.stock-movement-summary-card--exit { border-top:3px solid #d66a32; }
.stock-movement-summary-card--adjustment { border-top:3px solid #5795c4; }
.stock-movement-summary-card:hover { transform:translateY(-2px); border-color:#b9d5d7; box-shadow:0 10px 24px #092f3b12; }
.stock-movement-summary-card:focus-visible { outline:3px solid #f0781f88; outline-offset:3px; }
.stock-movement-summary-card.is-selected { box-shadow:inset 0 0 0 2px #0c7377,0 8px 20px #092f3b10; }
.stock-movement-kind { display:inline-flex; padding:.22rem .55rem; border-radius:999px; font-size:.7rem; font-weight:800; }
.stock-movement-kind--entree { background:#e5f5ee; color:#176441; }
.stock-movement-kind--sortie { background:#fff1e8; color:#a4470f; }
.stock-movement-kind--ajustement { background:#edf2fa; color:#3f6596; }
.stock-movement-quantity { font-variant-numeric:tabular-nums; }
.stock-movement-quantity--in { color:#176441; }
.stock-movement-quantity--out { color:#a4470f; }
@media (max-width:1150px) { .stock-movement-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:620px) { .stock-movement-summary-grid { grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce) { .stock-movement-summary-card { transition:none; } .stock-movement-summary-card:hover { transform:none; } }
/* E-Money account status and balance overview */
.emoney-status-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.75rem; margin:0 0 1rem; }
.emoney-status-card {
  display:grid; align-content:start; gap:.35rem; min-width:0; min-height:6.35rem; padding:.85rem 1rem;
  border:1px solid var(--shop-line); border-radius:.9rem; background:#fff; color:inherit; text-decoration:none;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.emoney-status-card span { color:var(--shop-muted); font-size:.76rem; }
.emoney-status-card strong { color:var(--shop-navy); font-size:1.4rem; line-height:1.15; font-variant-numeric:tabular-nums; }
.emoney-status-card small { color:var(--shop-muted); font-size:.68rem; }
.emoney-status-card--active { border-top:3px solid #168a65; }
.emoney-status-card--inactive { border-top:3px solid #788993; }
.emoney-status-card--rate { border-top:3px solid #dc792e; }
.emoney-status-card:hover { transform:translateY(-2px); border-color:#b9d5d7; box-shadow:0 10px 24px #092f3b12; }
.emoney-status-card:focus-visible { outline:3px solid #f0781f88; outline-offset:3px; }
.emoney-status-card.is-selected { box-shadow:inset 0 0 0 2px #0c7377,0 8px 20px #092f3b10; }
.emoney-state-badge { display:inline-flex; padding:.22rem .55rem; border-radius:999px; font-size:.7rem; font-weight:800; }
.emoney-state-badge--active { background:#e5f5ee; color:#176441; }
.emoney-state-badge--inactive { background:#edf1f4; color:#5d6d74; }
.emoney-rate-missing { color:#a4470f; font-weight:750; }
@media (max-width:1150px) { .emoney-status-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:620px) { .emoney-status-grid { grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce) { .emoney-status-card { transition:none; } .emoney-status-card:hover { transform:none; } }
/* E-Money movement monitoring */
.emoney-movement-overview { display:grid; gap:.85rem; margin-block:1rem; }
.emoney-movement-summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; }
.emoney-movement-summary-card {
  display:grid; align-content:start; gap:.35rem; min-width:0; min-height:6.35rem; padding:.9rem 1rem;
  border:1px solid var(--shop-line); border-radius:.9rem; background:#fff; color:inherit; text-decoration:none;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.emoney-movement-summary-card span { color:var(--shop-muted); font-size:.76rem; }
.emoney-movement-summary-card strong { color:var(--shop-navy); font-size:1.4rem; line-height:1.15; font-variant-numeric:tabular-nums; }
.emoney-movement-summary-card small { color:var(--shop-muted); font-size:.68rem; }
.emoney-movement-summary-card--entry { border-top:3px solid #168a65; }
.emoney-movement-summary-card--exit { border-top:3px solid #d66a32; }
.emoney-movement-summary-card:hover { transform:translateY(-2px); border-color:#b9d5d7; box-shadow:0 10px 24px #092f3b12; }
.emoney-movement-summary-card:focus-visible { outline:3px solid #f0781f88; outline-offset:3px; }
.emoney-movement-summary-card.is-selected { box-shadow:inset 0 0 0 2px #0c7377,0 8px 20px #092f3b10; }
.emoney-movement-flow-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.emoney-movement-flow-panel { min-width:0; }
.emoney-flow-bar { display:block; height:100%; min-height:.55rem; border-radius:inherit; }
.emoney-flow-bar--entry { background:#168a65; }
.emoney-flow-bar--exit { background:#d66a32; }
.emoney-movement-amount { font-variant-numeric:tabular-nums; white-space:nowrap; }
.emoney-movement-amount--entree { color:#176441; }
.emoney-movement-amount--sortie { color:#a4470f; }
@media (max-width:850px) { .emoney-movement-flow-grid { grid-template-columns:1fr; } }
@media (max-width:620px) { .emoney-movement-summary-grid { grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce) { .emoney-movement-summary-card { transition:none; } .emoney-movement-summary-card:hover { transform:none; } }
/* Cash movement summaries and signed amounts */
.cash-movement-summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.75rem; margin-block:1rem; }
.cash-movement-summary-card {
  display:grid; align-content:start; gap:.35rem; min-width:0; min-height:6.25rem; padding:.9rem 1rem;
  border:1px solid var(--shop-line); border-radius:.9rem; background:#fff; color:inherit; text-decoration:none;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.cash-movement-summary-card span { color:var(--shop-muted); font-size:.76rem; }
.cash-movement-summary-card strong { color:var(--shop-navy); font-size:1.4rem; line-height:1.15; font-variant-numeric:tabular-nums; }
.cash-movement-summary-card small { color:var(--shop-muted); font-size:.68rem; }
.cash-movement-summary-card--entry { border-top:3px solid #168a65; }
.cash-movement-summary-card--exit { border-top:3px solid #d66a32; }
.cash-movement-summary-card:hover { transform:translateY(-2px); border-color:#b9d5d7; box-shadow:0 10px 24px #092f3b12; }
.cash-movement-summary-card:focus-visible { outline:3px solid #f0781f88; outline-offset:3px; }
.cash-movement-summary-card.is-selected { box-shadow:inset 0 0 0 2px #0c7377,0 8px 20px #092f3b10; }
.cash-movement-amount { font-variant-numeric:tabular-nums; white-space:nowrap; }
.cash-movement-amount--entree { color:#176441; }
.cash-movement-amount--sortie { color:#a4470f; }
@media (max-width:620px) { .cash-movement-summary-grid { grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce) { .cash-movement-summary-card { transition:none; } .cash-movement-summary-card:hover { transform:none; } }
/* Navigation repliable et recherche rapide */
.admin-menu { gap:.45rem; }
.menu-search { flex:0 0 auto; padding:.25rem .15rem .4rem; }
.menu-search > label { display:block; margin:0 0 .35rem .2rem; color:#bfd3d7; font-size:.64rem; font-weight:850; letter-spacing:.1em; text-transform:uppercase; }
.menu-search-control { position:relative; display:flex; align-items:center; min-width:0; }
.menu-search-icon { position:absolute; left:.72rem; width:1rem; height:1rem; color:#a9c1c6; pointer-events:none; }
.menu-search-control input {
  width:100%; min-width:0; min-height:2.55rem; margin:0; padding:.58rem 2.5rem .58rem 2.15rem;
  border:1px solid #ffffff2b; border-radius:.75rem; background:#ffffff12; color:#fff; font:inherit; font-size:.78rem;
}
.menu-search-control input::placeholder { color:#b6c9cd; opacity:1; }
.menu-search-control input:focus-visible { outline:3px solid #ff9b3e88; outline-offset:2px; border-color:#ffb36a; }
.menu-search-control [data-menu-search-clear] {
  position:absolute; right:.42rem; display:grid; place-items:center; width:1.8rem; height:1.8rem; padding:0;
  border:0; border-radius:.5rem; background:#ffffff18; color:#fff; font-size:1.15rem; line-height:1; cursor:pointer;
}
.menu-search-tools { display:flex; align-items:center; justify-content:space-between; gap:.45rem; min-height:1.55rem; }
.menu-search-results { min-height:.9rem; margin:.28rem .25rem 0; color:#a9c1c6; font-size:.62rem; }
.menu-expand-all { flex:0 0 auto; padding:.24rem .38rem; border:1px solid #ffffff2a; border-radius:.45rem; background:#ffffff0b; color:#e0eff0; font:inherit; font-size:.61rem; font-weight:750; cursor:pointer; }
.menu-expand-all:hover { border-color:#ffb36a88; background:#ffffff16; color:#fff; }
.menu-expand-all:focus-visible { outline:3px solid #ffb36a; outline-offset:2px; }
.admin-nav .nav-section { display:block; overflow:hidden; border:1px solid #ffffff17; border-radius:.82rem; background:#ffffff08; }
.admin-nav .nav-section[hidden] { display:none; }
.admin-nav .nav-section-title {
  display:flex; align-items:center; justify-content:space-between; gap:.7rem; min-height:2.5rem; margin:0; padding:.65rem .7rem;
  border-radius:.72rem; color:#bfd3d7; font-size:.64rem; font-weight:850; line-height:1.3; letter-spacing:.1em; text-transform:uppercase;
  list-style:none; cursor:pointer; user-select:none;
}
.admin-nav .nav-section-title::-webkit-details-marker { display:none; }
.admin-nav .nav-section-title::after {
  content:""; flex:0 0 .43rem; width:.43rem; height:.43rem; margin-right:.1rem;
  border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg) translateY(-.12rem);
  transition:transform .15s ease;
}
.admin-nav details[open] > .nav-section-title::after { transform:rotate(225deg) translate(-.05rem,-.05rem); }
.admin-nav .nav-section-title:hover { background:#ffffff10; color:#fff; }
.admin-nav .nav-section-title:focus-visible,.admin-nav .nav-link:focus-visible { outline:3px solid #ffb36a; outline-offset:2px; }
.admin-nav .nav-section > .nav-link { margin:.06rem .35rem; width:calc(100% - .7rem); }
.admin-nav .nav-section > .nav-link:last-child { margin-bottom:.35rem; }
.nav-empty-state { margin:.35rem 0; padding:.9rem .7rem; border:1px dashed #ffffff38; border-radius:.78rem; color:#d7e4e6; font-size:.78rem; text-align:center; }
.admin-nav .nav-link[hidden] { display:none; }
@media (max-width:860px) {
  .shell:not(.guest-login) .menu-search { padding:0 .1rem .5rem; }
  .shell:not(.guest-login) .admin-nav { gap:.5rem; }
  .shell:not(.guest-login) .admin-nav .nav-section-title { min-height:2.7rem; }
  .shell:not(.guest-login) .menu-search-control input { min-height:2.75rem; font-size:16px; }
}
@media (prefers-reduced-motion:reduce) {
  .admin-nav .nav-section-title::after { transition:none; }
}
/* Identité de marque et bandeau illustré pour les modules */
.dashboard-hero { background:var(--shop-banner-gradient); }
.dashboard-hero-illustration { position:absolute; z-index:0; top:50%; right:clamp(14rem,25vw,30rem); width:clamp(7rem,13vw,11rem); height:auto; color:#d7fff2; opacity:.13; transform:translateY(-50%); pointer-events:none; }
.dashboard-hero-copy { z-index:1; }
.dashboard-hero-actions,.delegated-scope-card { position:relative; z-index:2; }
.brand-logo { flex-basis:3.35rem; width:3.35rem; height:3.35rem; padding:.1rem; border-radius:.9rem; object-fit:contain; }
.module-hero {
  position:relative; display:flex; align-items:center; justify-content:space-between; gap:1.5rem; min-height:13.25rem; margin:0 0 1.15rem; padding:clamp(1.2rem,2.5vw,2rem);
  overflow:hidden; isolation:isolate; border:1px solid #5aa9bd48; border-radius:1.25rem;
  background:var(--shop-banner-gradient); color:#fff;
  box-shadow:0 16px 36px #062b3a30;
}
.module-hero::before,.module-hero::after { position:absolute; z-index:-1; content:""; border-radius:50%; pointer-events:none; }
.module-hero::before { width:27rem; height:27rem; right:4%; top:-17rem; border:1px solid #ffffff25; box-shadow:0 0 0 2.3rem #ffffff08,0 0 0 4.7rem #ffffff06; }
.module-hero::after { width:15rem; height:15rem; right:22%; bottom:-12rem; background:radial-gradient(circle,#ff9b3e28 0%,#ff9b3e00 70%); }
.module-hero-content { position:relative; z-index:2; display:grid; justify-items:start; gap:.9rem; min-width:0; max-width:min(68%,52rem); }
.module-hero-back { display:inline-flex; align-items:center; gap:.38rem; padding:.35rem .62rem; border:1px solid #ffffff30; border-radius:999px; background:#ffffff10; color:#e5f4f1; font-size:.72rem; font-weight:750; text-decoration:none; }
.module-hero-back:hover { background:#ffffff1c; color:#fff; }
.module-hero-back svg { width:.95rem; height:.95rem; }
.module-hero-copy { display:grid; gap:.42rem; }
.module-hero-eyebrow { color:#aee1d4; font-size:.65rem; font-weight:900; letter-spacing:.14em; line-height:1.25; text-transform:uppercase; }
.module-hero-copy h1 { max-width:100%; margin:0; color:#fff; font-size:clamp(1.65rem,3.4vw,2.65rem); font-weight:850; letter-spacing:-.045em; line-height:1.08; text-wrap:balance; }
.module-hero-copy p { max-width:45rem; margin:.15rem 0 0; color:#d8eeeb; font-size:clamp(.82rem,1.2vw,.98rem); line-height:1.55; }
.module-hero-action { display:inline-flex; align-items:center; justify-content:center; min-height:2.55rem; padding:.62rem .95rem; border:1px solid #ffffff5c; border-radius:.75rem; background:#fff; color:#07584f; font-size:.78rem; font-weight:850; text-decoration:none; box-shadow:0 7px 18px #043b3530; }
.module-hero-action:hover { background:#f0fbf7; transform:translateY(-1px); }
.module-hero-illustration { position:relative; display:grid; flex:0 0 clamp(10rem,20vw,15rem); place-items:center; width:clamp(10rem,20vw,15rem); aspect-ratio:1; margin-right:clamp(.25rem,2vw,1.7rem); }
.module-hero-orbit { position:absolute; display:block; border:1px solid #d7fff23b; border-radius:50%; }
.module-hero-orbit--one { inset:8%; }
.module-hero-orbit--two { inset:19%; border-style:dashed; opacity:.72; }
.module-hero-icon-stage { position:relative; z-index:2; display:grid; place-items:center; width:6.2rem; height:6.2rem; border:1px solid #ffffffa8; border-radius:1.75rem; background:linear-gradient(145deg,#f3fff9,#cdeee3); color:#087f72; box-shadow:0 17px 30px #013f3a4a; transform:rotate(-7deg); }
.module-hero-icon-stage svg { width:3.25rem; height:3.25rem; color:#087f72; }
.module-hero-art-chip,.module-hero-art-card { position:absolute; z-index:3; display:flex; align-items:center; border:1px solid #ffffff5c; background:#073f3bd9; color:#f4fffc; box-shadow:0 10px 22px #02363130; backdrop-filter:blur(10px); }
.module-hero-art-chip { top:14%; right:-4%; gap:.38rem; padding:.42rem .6rem; border-radius:999px; font-size:.51rem; font-weight:850; letter-spacing:.07em; }
.module-hero-art-chip i { width:.42rem; height:.42rem; border-radius:50%; background:#ffad56; box-shadow:0 0 0 .2rem #ffad5630; }
.module-hero-art-card { right:0; bottom:11%; gap:.55rem; padding:.48rem .56rem; border-radius:.8rem; transform:rotate(5deg); }
.module-hero-art-card-mark { display:grid; place-items:center; width:1.35rem; height:1.35rem; border-radius:.42rem; background:#ff9b3e; color:#092f3b; font-size:.48rem; font-weight:950; }
.module-hero-art-bars { display:flex; align-items:end; gap:.14rem; height:1.35rem; }
.module-hero-art-bars i { display:block; width:.18rem; border-radius:99px; background:#b5e6d8; }
.module-hero-art-bars i:nth-child(1) { height:42%; }
.module-hero-art-bars i:nth-child(2) { height:72%; }
.module-hero-art-bars i:nth-child(3) { height:55%; }
.module-hero-art-bars i:nth-child(4) { height:100%; background:#ffad56; }
.module-hero-art-check { display:grid; place-items:center; width:1.25rem; height:1.25rem; border-radius:50%; background:#dff8eb; color:#087f5b; font-size:.75rem; font-weight:900; }
@media (max-width:1000px) {
  .module-hero { min-height:11.5rem; }
  .module-hero-illustration { flex-basis:10rem; width:10rem; }
  .module-hero-content { max-width:72%; }
  .module-hero-icon-stage { width:5.3rem; height:5.3rem; }
}
@media (max-width:620px) {
  .dashboard-hero-illustration { right:1rem; width:6rem; opacity:.09; }
  .brand-logo { flex-basis:2.9rem; width:2.9rem; height:2.9rem; }
  .module-hero { min-height:11.5rem; padding:1rem; gap:.35rem; }
  .module-hero-content { max-width:100%; gap:.65rem; }
  .module-hero-copy { max-width:calc(100% - 3.1rem); }
  .module-hero-copy h1 { font-size:clamp(1.45rem,7vw,1.9rem); }
  .module-hero-copy p { font-size:.78rem; }
  .module-hero-illustration { position:absolute; right:-2.4rem; bottom:-1.4rem; width:8.2rem; margin:0; opacity:.38; }
  .module-hero-icon-stage { width:4rem; height:4rem; border-radius:1.15rem; }
  .module-hero-icon-stage svg { width:2.35rem; height:2.35rem; }
  .module-hero-art-chip { right:22%; top:8%; font-size:.42rem; }
  .module-hero-art-card { right:20%; bottom:10%; transform:scale(.82) rotate(5deg); }
  .module-hero-action { min-height:2.35rem; padding:.52rem .75rem; font-size:.72rem; }
}
@media (prefers-reduced-motion:reduce) { .module-hero-action { transition:none; } .module-hero-action:hover { transform:none; } }

/* Navigation inspirée du nouveau modèle bleu à rail d’icônes */
.shell:not(.guest-login) .admin-sidebar {
  --shop-icon-rail-width:2.45rem; position:sticky; isolation:isolate; overflow:hidden; border-radius:0 1.3rem 1.3rem 0;
  background:var(--shop-menu-gradient); box-shadow:8px 0 28px #1c326d1c;
}
.shell:not(.guest-login) .admin-sidebar::before {
  position:absolute; z-index:-1; top:.4rem; bottom:.4rem; left:.8rem; width:var(--shop-icon-rail-width);
  border-radius:1.05rem; background:linear-gradient(180deg,#ff9b3e,var(--shop-menu-rail) 52%,#d95e12); content:"";
  box-shadow:inset 0 1px 0 #ffffff35,inset 0 -1px 0 #203d9a55;
}
.shell:not(.guest-login) .sidebar-heading { position:relative; z-index:1; justify-content:center; min-height:3.8rem; margin-left:2.35rem; padding:.3rem .2rem; }
.shell:not(.guest-login) .sidebar-heading .brand { flex:0 0 auto; justify-content:center; gap:0; padding:0; border-radius:0; background:transparent; }
.shell:not(.guest-login) .brand-logo { border-color:transparent; background:transparent; box-shadow:none; }
.shell:not(.guest-login) .admin-menu {
  position:relative; z-index:1; display:grid; grid-template-columns:var(--shop-icon-rail-width) minmax(0,1fr); align-items:stretch; gap:.55rem;
  min-height:0; overflow:hidden; background:transparent;
}
.admin-icon-rail { display:flex; flex-direction:column; align-items:center; gap:.58rem; min-height:0; overflow:auto; padding:.48rem .1rem; scrollbar-width:none; }
.admin-icon-rail::-webkit-scrollbar { display:none; }
.admin-icon-rail-link { display:grid; flex:0 0 2.05rem; place-items:center; width:2.05rem; height:2.05rem; border:1px solid #ffffff2e; border-radius:.72rem; background:var(--shop-menu-gradient); color:#fff; text-decoration:none; transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease; }
.admin-icon-rail-link .nav-icon { width:1.2rem; height:1.2rem; filter:drop-shadow(0 1px 1px #70350e45); }
.admin-icon-rail-link:hover { border-color:#ffffff9c; background:#ffffff25; color:#fff; }
.admin-icon-rail-link[aria-current="page"] { border-color:#ffb66d; background:var(--shop-menu-gradient); color:#fff; box-shadow:inset 0 0 0 1px #ffffff55,0 6px 16px #00131d55; }
.admin-icon-rail-link:focus-visible { outline:3px solid #fff; outline-offset:2px; }
.admin-menu-content { display:flex; flex:1 1 auto; flex-direction:column; min-width:0; min-height:0; gap:.35rem; overflow:hidden; }
.shell:not(.guest-login) .admin-nav .nav-section { overflow:visible; border:0; border-radius:0; background:transparent; }
.shell:not(.guest-login) .admin-nav .nav-section + .nav-section { margin-top:.28rem; padding-top:.3rem; border-top:1px solid #ffffff20; }
.shell:not(.guest-login) .admin-nav .nav-section-title { min-height:2.25rem; padding:.55rem .5rem; color:#d2dcff; font-size:.62rem; letter-spacing:.09em; }
.shell:not(.guest-login) .admin-nav .nav-section-title:hover { background:#ffffff12; color:#fff; }
.shell:not(.guest-login) .admin-nav .nav-link { min-height:2.35rem; margin:.05rem 0; width:100%; padding:.48rem .55rem; border-radius:.68rem; color:#f0f3ff; font-size:.79rem; }
.shell:not(.guest-login) .admin-nav .nav-link:not([aria-current="page"]):hover { background:#ffffff18; color:#fff; }
.shell:not(.guest-login) .admin-nav .nav-link[aria-current="page"] { border-color:#fff; background:#fff; color:#354e99; box-shadow:0 6px 16px #1a347339; }
.shell:not(.guest-login) .admin-nav .nav-link[aria-current="page"] .nav-icon { color:#354e99; }
.shell:not(.guest-login) .admin-nav .nav-section-title {
  border:1px solid #ffbf7a; background:linear-gradient(105deg,#9a3f08,#b45309); color:#fff8ef;
  box-shadow:inset 0 1px 0 #ffffff24,0 2px 8px #00131d22;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}
.shell:not(.guest-login) .admin-nav .nav-section-title:hover {
  border-color:#ffd1a3; background:linear-gradient(105deg,#b45309,#c65d0c); color:#fff;
}
.shell:not(.guest-login) .admin-nav details[open] > .nav-section-title {
  border-color:#ffc078; background:linear-gradient(105deg,#7c2d12,#9a3412); color:#fff;
}
.shell:not(.guest-login) .menu-search > label { color:#d8e0ff; }
.shell:not(.guest-login) .menu-search-control input { border-color:#ffffff; background:#f4f6fc; color:#24345e; }
.shell:not(.guest-login) .menu-search-control input::placeholder { color:#69779e; }
.shell:not(.guest-login) .menu-search-icon { color:#536899; }
.shell:not(.guest-login) .menu-search-control [data-menu-search-clear] { background:#e0e7f8; color:#344a88; }
.shell:not(.guest-login) .menu-search-results { color:#cbd6ff; }
.shell:not(.guest-login) .menu-expand-all { border-color:#ffffff42; background:#ffffff12; color:#f3f5ff; }
.shell:not(.guest-login) .menu-expand-all:hover { border-color:#ffffffa8; background:#ffffff22; }
.shell:not(.guest-login) .nav-empty-state { border-color:#ffffff5c; color:#e1e7ff; }
.shell:not(.guest-login) .signout { border-top-color:#ffffff38; }
.shell:not(.guest-login) .sidebar-account-icon { background:#ffffff20; color:#fff; }
.shell:not(.guest-login) .signout-button { border-color:#ffffff45 !important; border-radius:.7rem; background:#ffffff12 !important; color:#f5f6ff !important; }
.shell:not(.guest-login) .signout-button:hover { background:#ffffff22 !important; }
@media (min-width:861px) and (max-width:950px) {
  .shell:not(.guest-login) .admin-sidebar { --shop-icon-rail-width:2.2rem; }
  .shell:not(.guest-login) .admin-menu { grid-template-columns:var(--shop-icon-rail-width) minmax(0,1fr); gap:.4rem; }
  .shell:not(.guest-login) .admin-icon-rail-link { flex-basis:1.85rem; width:1.85rem; height:1.85rem; }
  .shell:not(.guest-login) .admin-icon-rail-link .nav-icon { width:1.05rem; height:1.05rem; }
  .shell:not(.guest-login) .sidebar-heading { margin-left:2.1rem; }
}
@media (max-width:860px) {
  .shell:not(.guest-login) .admin-sidebar { border-radius:0; }
  .shell:not(.guest-login) .admin-sidebar::before,.shell:not(.guest-login) .admin-icon-rail { display:none; }
  .shell:not(.guest-login) .sidebar-heading { justify-content:space-between; margin-left:0; }
  .shell:not(.guest-login) .sidebar-heading .brand { background:transparent; }
  .shell:not(.guest-login) .admin-menu { display:block; }
  .shell:not(.guest-login) .admin-menu-content { overflow:visible; }
}
@media (prefers-reduced-motion:reduce) { .admin-icon-rail-link { transition:none; } .admin-icon-rail-link:hover { transform:none; } }
.shell:not(.guest-login) .sidebar-heading { min-height:6.2rem; }
.shell:not(.guest-login) .brand-logo { flex-basis:5.6rem; width:5.6rem; height:5.6rem; }
@media (max-width:860px) {
  .shell:not(.guest-login) .sidebar-heading { min-height:5rem; }
  .shell:not(.guest-login) .brand-logo { flex-basis:4.5rem; width:4.5rem; height:4.5rem; }
}
