/* En-têtes des pages autonomes et commandes communes. */
.comptoir-page-header{display:flex;justify-content:space-between;align-items:center;gap:24px;max-width:1200px;margin:0 auto;padding:24px}
.comptoir-header-start{display:flex;align-items:center;gap:24px;min-width:0}
.comptoir-page-header .comptoir-home-brand{font-size:25px;font-weight:750;letter-spacing:-1.2px;white-space:nowrap;color:#1b2340;text-decoration:none}
.comptoir-home-brand span{color:#4966ea}
.comptoir-page-header .comptoir-back,.comptoir-page-header .comptoir-header-link{font-size:12px;font-weight:500;letter-spacing:0;line-height:1.6;color:#63708b;text-decoration:none;white-space:nowrap}
.comptoir-page-header .comptoir-back:hover,.comptoir-page-header .comptoir-header-link:hover{color:#365de6;text-decoration:underline;text-underline-offset:3px}
.comptoir-header-actions{display:flex;gap:20px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.comptoir-page-header a:focus-visible{outline:2px solid #9bb0ff;outline-offset:5px;border-radius:3px}
.sidebar .settings-entry{margin-bottom:8px}
.workspace-profile{display:flex;align-items:center;gap:10px;width:100%;padding:12px 8px;margin:8px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;text-align:left;color:var(--ink);font:inherit}
.workspace-profile:hover{background:var(--bg);border-radius:8px}
.profile-avatar{width:32px;height:32px;display:grid;place-items:center;flex:none;border-radius:50%;background:#e6edf9;color:#3c5c9c;font-size:13px;font-weight:600}
.profile-label{display:block;min-width:0;flex:1;line-height:1.5}
.profile-label strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600}
.profile-label small{display:block;font-size:9px;color:var(--muted);letter-spacing:0;margin-top:2px}
.profile-chevron{color:var(--muted);font-size:15px}
.account-menu{position:fixed;left:12px;bottom:88px;width:280px;max-height:calc(100dvh - 110px);overflow-y:auto;z-index:50;background:var(--paper,#fff);border:1px solid var(--line,#e5e9f0);border-radius:12px;box-shadow:0 12px 44px #10182826;padding:6px;color:var(--ink,#202938);font:13px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.account-menu-heading{padding:14px 12px 16px;border-bottom:1px solid var(--line,#e5e9f0);margin-bottom:6px}
.account-menu-heading strong,.account-menu-heading span{display:block;overflow-wrap:anywhere}
.account-menu-heading strong{font-size:13px;font-weight:600}.account-menu-heading span{font-size:11px;color:var(--muted,#7d8796);margin-top:3px}
.account-menu-row{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;background:transparent;border-radius:7px;text-decoration:none;padding:10px 12px;margin:0;color:inherit;font:inherit;text-align:left;cursor:pointer}
.account-menu-row:hover{background:var(--bg,#f4f6fa)}
.account-menu-row:focus-visible{outline:2px solid #9bb0ff;outline-offset:-2px}
.account-menu-row kbd{font-size:11px;color:var(--muted,#7d8796);font-family:inherit}
.account-menu-themes{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:6px -6px 0;padding:14px 18px;border-block:1px solid var(--line,#e5e9f0)}
.theme-segment{display:flex;padding:3px;background:var(--bg,#f4f6fa);border:1px solid var(--line,#e5e9f0);border-radius:9px;gap:2px}
.theme-segment button{border:0;border-radius:6px;padding:6px 9px;background:transparent;margin:0;line-height:0;color:var(--muted,#7d8796);width:auto}
.theme-segment button[aria-pressed=true]{background:var(--paper,#fff);color:var(--ink,#202938);box-shadow:0 1px 3px #10182812}
.theme-segment svg{width:17px;height:17px}
.account-menu-logout{color:#c43e42;margin-top:6px}.account-menu-error{font-size:11px;color:#c43e42;padding:0 12px;line-height:1.7}
.comptoir-compact-sidebar .sidebar .nav-item{min-height:30px;padding-top:5px;padding-bottom:5px}
.comptoir-reduce-motion *,.comptoir-reduce-motion *::before,.comptoir-reduce-motion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
.comptoir-command-dialog{border:1px solid var(--line,#e5e9f0);border-radius:14px;box-shadow:0 20px 80px #10182840;background:var(--paper,#fff);color:var(--ink,#202938);padding:0;width:min(540px,calc(100vw - 32px));max-height:min(680px,85dvh);font:14px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.comptoir-command-dialog::backdrop{background:#10182866}
.command-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px}
.command-heading h2{font-size:14px;font-weight:600;letter-spacing:0;margin:0}
.command-close{width:auto;margin:0;border:0;border-radius:5px;background:transparent;color:var(--muted,#7d8796);font-size:11px;padding:5px 8px;cursor:pointer}
.command-search{display:block;width:calc(100% - 40px);margin:0 20px 14px;padding:12px 13px;border:1px solid var(--line,#e5e9f0);background:var(--bg,#f4f6fa);color:inherit;border-radius:8px;font:inherit}
.command-results{max-height:420px;overflow:auto;padding:0 8px 8px}
.command-result{display:block;text-decoration:none;color:inherit;padding:12px;border-radius:7px;font-size:12px}
.command-result:hover,.command-result:focus-visible{background:var(--soft,#eff3ff);color:var(--green,#365de6);outline:0}
.command-hint{border-top:1px solid var(--line,#e5e9f0);padding:12px 20px;margin:0;font-size:10px;line-height:1.7;color:var(--muted,#7d8796)}
.command-empty{padding:20px;color:var(--muted,#7d8796);font-size:12px}
.command-shortcut{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px;font-size:12px}.command-shortcut kbd{font:11px system-ui;background:var(--bg,#f4f6fa);padding:4px 7px;border:1px solid var(--line,#e5e9f0);border-radius:5px}
html[data-comptoir-theme=dark]{color-scheme:dark;--bg:#111827;--paper:#192231;--ink:#e7ecf4;--muted:#9ba8bc;--line:#303b4e;--green:#9ab6ff;--soft:#253553;background:#111827;color:#e7ecf4}
html[data-comptoir-theme=dark] body{background:var(--bg);color:var(--ink)}
html[data-comptoir-theme=dark] .sidebar,html[data-comptoir-theme=dark] .topbar,html[data-comptoir-theme=dark] .metric-card,html[data-comptoir-theme=dark] .service-strip,html[data-comptoir-theme=dark] .shortcut-card,html[data-comptoir-theme=dark] .device-status{background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-comptoir-theme=dark] .sidebar .nav-item,html[data-comptoir-theme=dark] .account{color:#b8c5d9}
html[data-comptoir-theme=dark] .sidebar .nav-item.active{color:var(--green);background:var(--soft)}
html[data-comptoir-theme=dark] .sidebar .nav-item:hover{background:#233147;color:var(--ink)}
html[data-comptoir-theme=dark] .sidebar .brand,html[data-comptoir-theme=dark] .comptoir-page-header .comptoir-home-brand{color:var(--ink)}
html[data-comptoir-theme=dark] .brand-mark{background:#365de6;color:#fff}
html[data-comptoir-theme=dark] .payment-row,html[data-comptoir-theme=dark] .list-footer,html[data-comptoir-theme=dark] .list-label,html[data-comptoir-theme=dark] .activity-table th{background:var(--paper);border-color:var(--line)}
html[data-comptoir-theme=dark] .payment-row:hover,html[data-comptoir-theme=dark] .payment-row.selected{background:var(--soft)}
html[data-comptoir-theme=dark] .primary,html[data-comptoir-theme=dark] .settings-layout .automatic-panel .confirmation+button{background:#466be8;color:#fff}
html[data-comptoir-theme=dark] .secondary{background:#293958;color:#b9ccff}
html[data-comptoir-theme=dark] .settings-layout #automatic-status,html[data-comptoir-theme=dark] .status-pill{background:#233147;color:#b4c2d8;border-color:var(--line)}
html[data-comptoir-theme=dark] .status-pill.positive{background:#163e31;color:#a3ddc0;border-color:#2b5a46}
html[data-comptoir-theme=dark] .service-card p,html[data-comptoir-theme=dark] .metric-label,html[data-comptoir-theme=dark] .service-details dt{color:var(--muted)}
html[data-comptoir-theme=dark] .nfc-signal.green{background:#163e31;border-color:#2b5a46;color:#a3ddc0}
html[data-comptoir-theme=dark] .nfc-signal.red{background:#3a2530;border-color:#634052;color:#e8b7c5}
html[data-comptoir-theme=dark] .nfc-signal.orange,html[data-comptoir-theme=dark] .notice{background:#382d21;color:#efcea1;border-color:#5b4935}
html[data-comptoir-theme=dark] .comptoir-legacy main,html[data-comptoir-theme=dark] .comptoir-legacy main>section,html[data-comptoir-theme=dark] .comptoir-legacy main>aside,html[data-comptoir-theme=dark] .comptoir-legacy .card{background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-comptoir-theme=dark] .comptoir-page-header .comptoir-back,html[data-comptoir-theme=dark] .comptoir-page-header .comptoir-header-link{color:#b8c5d9}
html[data-comptoir-theme=dark] input:not([type=color]):not([type=checkbox]):not([type=radio]):not([type=file]),html[data-comptoir-theme=dark] select,html[data-comptoir-theme=dark] textarea{background:#111b2b;color:var(--ink);border-color:var(--line)}
html[data-comptoir-theme=dark] .activity-table td,html[data-comptoir-theme=dark] .activity-footer{border-color:var(--line)}
@media(max-width:700px){.comptoir-page-header{padding:20px;gap:16px;flex-wrap:wrap}.comptoir-header-start{gap:18px}.comptoir-page-header .comptoir-home-brand{font-size:24px}.comptoir-header-actions{gap:14px}.comptoir-page-header .comptoir-back{font-size:11px}.account-menu{left:10px;width:min(290px,calc(100vw - 20px))}.command-heading{padding:16px}.command-shortcut{gap:12px;font-size:11px}}

.settings-return{display:block;padding:4px 10px 18px;font-size:11px;font-weight:500;line-height:1.7;color:var(--muted,#7d8796);text-decoration:none}
.settings-return:hover{color:var(--green,#365de6)}

/* Icônes Lucide, SVG locaux ; un libellé reste présent pour chaque commande. */
.account-menu{width:292px;padding:6px;bottom:78px}
.account-menu-heading{display:flex;align-items:center;gap:12px;padding:17px 14px;margin-bottom:6px}
.account-menu-avatar{width:38px;height:38px;border-radius:50%;display:grid!important;place-items:center;flex:none;background:#def5ed;color:#226454;font-size:14px!important;font-weight:600}
.account-menu-identity{min-width:0}.account-menu-identity strong{font-size:13px;font-weight:600;line-height:1.6}.account-menu-role{font-size:10px!important;letter-spacing:.5px;text-transform:uppercase;line-height:1.6}
.account-menu-row{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;column-gap:12px;padding:11px 13px;font-size:12px;line-height:1.6}
.account-menu-icon{display:inline-grid;place-items:center;flex:none;color:inherit}
.account-menu-icon svg{display:block;width:19px;height:19px}
.account-menu-row:not(.account-menu-logout) .account-menu-icon{color:#667085}
.account-menu-label{min-width:0}.account-menu-row kbd{justify-self:end}
.theme-segment .account-menu-icon svg{width:17px;height:17px}
.profile-chevron .nav-icon{width:15px;height:15px}
html[data-comptoir-theme=dark] .account-menu-row:not(.account-menu-logout) .account-menu-icon{color:var(--muted)}

.account-menu-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex:none;color:var(--muted,#778196)}
.account-menu-icon svg{display:block;width:20px;height:20px}
.account-menu-row{display:grid;grid-template-columns:20px minmax(0,1fr) auto;column-gap:12px;min-height:42px;padding:10px 12px}
.account-menu-label{display:block;line-height:1.6;font-size:12px}
.account-menu-logout .account-menu-icon{color:inherit}
.theme-segment .account-menu-icon{width:17px;height:17px}

.command-result{display:flex;align-items:center;justify-content:space-between;gap:16px}.command-page-label{min-width:0}.command-page-key{flex:none;border:1px solid var(--line,#e5e9f0);border-radius:5px;background:var(--bg,#f4f6fa);color:var(--muted,#7d8796);padding:2px 6px;font:10px system-ui;white-space:pre}.command-result:focus{outline:2px solid var(--green,#365de6);outline-offset:-2px;background:var(--soft,#eff3ff);color:var(--green,#365de6)}.command-hint{display:flex;gap:14px;flex-wrap:wrap}.command-help-item{white-space:nowrap}.command-help-item kbd{font:inherit;border:1px solid var(--line,#e5e9f0);border-radius:4px;padding:1px 4px}.command-shortcut kbd{flex:none;white-space:nowrap}
