/*
 * Réinitialisation commune des pages plein écran SODIA STOCK (préparateur, client,
 * stock, préparations, etc.). Auparavant dupliquée dans chaque module PHP ;
 * centralisée ici depuis la version 1.8.0 pour être chargée et mise en cache une
 * seule fois au lieu d'être réimprimée sur chaque page.
 */
body.sodia-app-active {
	margin: 0 !important;
	padding: 0 !important;
	background: #f4f7fb !important;
}
body.sodia-app-active #masthead,
body.sodia-app-active #colophon,
body.sodia-app-active .site-header,
body.sodia-app-active .site-footer,
body.sodia-app-active .entry-header,
body.sodia-app-active .page-header,
body.sodia-app-active .wp-site-blocks > header,
body.sodia-app-active .wp-site-blocks > footer,
body.sodia-app-active header.wp-block-template-part,
body.sodia-app-active footer.wp-block-template-part,
body.sodia-app-active .wp-block-post-title {
	display: none !important;
}
body.sodia-app-active #page,
body.sodia-app-active #primary,
body.sodia-app-active #main,
body.sodia-app-active .site,
body.sodia-app-active .site-content,
body.sodia-app-active .content-area,
body.sodia-app-active .site-main,
body.sodia-app-active article,
body.sodia-app-active .entry-content,
body.sodia-app-active .single-content,
body.sodia-app-active .content-container,
body.sodia-app-active .site-container {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
}
body.sodia-app-active .wp-site-blocks,
body.sodia-app-active .wp-block-post-content,
body.sodia-app-active main.wp-block-group,
body.sodia-app-active .wp-block-group,
body.sodia-app-active .alignwide,
body.sodia-app-active .alignfull {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/*
 * Menu latéral + en-tête commun ("shell"), utilisé par toutes les pages du
 * logiciel (Stock, Réceptions, Préparation, Paramétrage, tableaux de bord...)
 * depuis la version 1.8.1. Design "ss-" repris en 1.9.0 de la maquette
 * fournie par SODIA (sidebar marine, cartes KPI colorées, barre du haut avec
 * recherche/notifications/avatar) et centralisé ici pour s'appliquer
 * automatiquement partout où le shell est utilisé.
 */
.sodia-shell {
	--navy: #071a34;
	--navy2: #0b2d55;
	--blue: #1677ff;
	--cyan: #19b9ed;
	--red: #e30613;
	--orange: #ff8a00;
	--green: #12a150;
	--ink: #12213a;
	--muted: #6f7d90;
	--line: #dce5f0;
	--surface: #f4f7fb;
	position: relative;
	width: 100%;
	min-height: 100vh;
	background: var(--surface);
	color: var(--ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	isolation: isolate;
}
.sodia-shell, .sodia-shell * {
	box-sizing: border-box;
}
.sodia-shell a {
	text-decoration: none;
}
.sodia-shell button, .sodia-shell input {
	font: inherit;
}
.sodia-shell button {
	cursor: pointer;
	color: inherit;
}
.ss-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ss-shell {
	display: grid;
	grid-template-columns: 256px minmax(0, 1fr);
	min-height: 100vh;
}
.ss-sidebar {
	position: sticky;
	top: 0;
	height: 100vh;
	padding: 18px 13px;
	background: linear-gradient(160deg, #06162d 0%, #082348 65%, #071a34 100%);
	color: #fff;
	z-index: 50;
	box-shadow: 14px 0 40px rgba(6, 24, 50, .12);
	overflow-y: auto;
}
.ss-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 61px;
	padding: 6px 8px 15px;
	margin-bottom: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, .1);
	color: #fff;
}
.ss-brand-img {
	width: 62px;
	height: 40px;
	object-fit: contain;
	border-radius: 8px;
	background: #fff;
	padding: 3px;
}
.ss-brand-copy {
	line-height: 1.05;
}
.ss-brand-copy strong {
	display: block;
	font-size: 19px;
	letter-spacing: .3px;
}
.ss-brand-copy strong span {
	color: #4cc8ff;
}
.ss-brand-copy small {
	display: block;
	margin-top: 6px;
	color: #a7bdd7;
	font-size: 10px;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}
.ss-nav {
	display: grid;
	gap: 5px;
}
.ss-nav-title {
	padding: 15px 13px 5px;
	color: #7692b2;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.ss-link {
	position: relative;
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 44px;
	padding: 10px 12px;
	border-radius: 11px;
	color: #d8e7f8;
	font-size: 14px;
	font-weight: 650;
	transition: transform .2s ease, background .2s ease, color .2s ease;
}
.ss-link:hover {
	color: #fff;
	background: rgba(255, 255, 255, .09);
	transform: translateX(4px);
}
.ss-link.is-active {
	color: #fff;
	background: linear-gradient(135deg, var(--red), #f2474d);
	box-shadow: 0 10px 25px rgba(227, 27, 35, .3);
}
.ss-ico {
	width: 23px;
	height: 23px;
	display: grid;
	place-items: center;
	flex: 0 0 23px;
	font-size: 17px;
}
.ss-count {
	margin-left: auto;
	min-width: 21px;
	height: 21px;
	padding: 0 6px;
	display: grid;
	place-items: center;
	border-radius: 999px;
	background: #ff3942;
	color: #fff;
	font-size: 11px;
	font-weight: 850;
}
.ss-link.is-active .ss-count {
	background: #fff;
	color: var(--red);
}
.ss-sidebar-foot {
	margin-top: 20px;
	padding: 13px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 13px;
	background: rgba(255, 255, 255, .04);
}
.ss-live {
	display: flex;
	align-items: center;
	gap: 9px;
	color: #dbeafa;
	font-size: 12px;
}
.ss-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #20d466;
	box-shadow: 0 0 0 5px rgba(32, 212, 102, .12);
}
.ss-update {
	margin-top: 10px;
	color: #86a2c1;
	font-size: 10px;
}
.ss-logout {
	display: block;
	margin-top: 10px;
	color: #86a2c1;
	font-size: 12px;
}
.ss-logout:hover {
	color: #fff;
}

.ss-main {
	min-width: 0;
}
.ss-topbar {
	position: sticky;
	top: 0;
	z-index: 40;
	height: 70px;
	background: rgba(255, 255, 255, .93);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(13px);
}
.ss-topbar-inner {
	height: 100%;
	max-width: 1550px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 27px;
}
.ss-menu-btn {
	display: none;
	width: 43px;
	height: 43px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: #fff;
	color: var(--navy);
	font-size: 21px;
}
/* Plus de titre de page dans l'en-tête depuis la 1.19.5 (repris à l'identique de
   la maquette Réceptions envoyée par l'utilisateur, qui n'en a pas non plus) :
   le titre est déjà affiché en grand dans le contenu de chaque page
   (.ss-heading h1), et sa présence ici écrasait la largeur de la barre de
   recherche par rapport à la maquette. */
/* !important en 1.19.8 sur les propriétés de largeur : sur le site réel, le
   thème WordPress du site (jamais totalement neutralisé — seul son menu
   visuel est masqué, ses feuilles de style restent chargées) définit ses
   propres règles génériques pour <form> et input[type="search"], à la même
   spécificité que les nôtres ; selon l'ordre de chargement, elles pouvaient
   l'emporter et réduire la barre de recherche à une largeur bien plus
   étroite que prévu (constaté en comparant nos règles, correctes, au rendu
   réel du site — la barre reste étroite malgré une largeur maximale de
   560px). Les propriétés qui contrôlent la largeur sont donc verrouillées
   ici pour ne plus jamais pouvoir être écrasées par le thème. */
.ss-search {
	position: relative;
	flex: 1 1 0% !important;
	min-width: 0;
	max-width: 560px !important;
}
.ss-search span[aria-hidden] {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #8291a5;
	font-size: 14px;
	pointer-events: none;
}
.ss-search input {
	width: 100% !important;
	max-width: none !important;
	height: 43px;
	padding: 0 14px 0 40px;
	border: 1px solid #d5dfeb;
	border-radius: 11px;
	background: #f8fafc;
	color: var(--ink);
	font-size: 13px;
	outline: 0;
	box-sizing: border-box;
}
.ss-search input:focus {
	background: #fff;
	border-color: var(--blue);
	box-shadow: 0 0 0 4px rgba(22, 119, 255, .09);
}
.ss-top-actions {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-left: auto;
	flex: 0 0 auto;
}
.ss-icon-btn {
	position: relative;
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	color: var(--navy);
	font-size: 18px;
}
/*
 * 1.19.14 : variante compacte de .ss-icon-btn pour les boutons d'action par
 * ligne de tableau (page Stock — fiche / étiquette / historique), où la
 * taille par défaut (42px, pensée pour un bouton isolé) serait trop grande.
 */
.ss-icon-btn-sm {
	width: 28px;
	height: 28px;
	border-radius: 7px;
	font-size: 12px;
}
.ss-icon-btn:hover {
	border-color: #b7c9df;
	background: #f5f9ff;
}
.ss-badge {
	position: absolute;
	right: -4px;
	top: -5px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	display: grid;
	place-items: center;
	border: 2px solid #fff;
	border-radius: 99px;
	background: var(--red);
	color: #fff;
	font-size: 9px;
	font-weight: 900;
}
.ss-user {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 6px 10px;
	border-radius: 12px;
	border: 1px solid transparent;
	background: none;
	color: var(--ink);
	text-align: left;
	flex: 0 0 auto;
}
.ss-user:hover {
	border-color: var(--line);
	background: #f5f9ff;
}
.ss-avatar {
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #e4ebf4;
	color: #163b65;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	overflow: hidden;
}
.ss-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ss-user strong {
	font-size: 13px;
}
.ss-user small {
	display: block;
	color: var(--muted);
	font-size: 10px;
	margin-top: 2px;
}

.ss-content {
	width: 100%;
	max-width: 1550px;
	margin: 0 auto;
	padding: 26px 28px 40px;
}
.ss-heading {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 22px;
}
.ss-heading h1 {
	margin: 0;
	font-size: clamp(22px, 2.6vw, 32px);
	letter-spacing: -.8px;
	color: #081b39;
}
.ss-heading p {
	margin: 7px 0 0;
	color: var(--muted);
	font-size: 13px;
}

.ss-kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 15px;
	margin-bottom: 17px;
}
.ss-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: 0 8px 28px rgba(17, 42, 76, .055);
}
.ss-kpi {
	min-height: 105px;
	padding: 16px;
	display: flex;
	gap: 12px;
}
/* Pas de forme décorative en fond de carte : aucune maquette envoyée par
   l'utilisateur n'en montre une (icône + texte seulement, voir 1.19.7). */
.ss-kpi-icon {
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	display: grid;
	place-items: center;
	border-radius: 13px;
	background: var(--tone);
	color: #fff;
	font-size: 19px;
	box-shadow: 0 8px 19px var(--shadow);
}
.ss-kpi-label {
	display: block;
	color: #69778a;
	font-size: 10px;
	font-weight: 700;
}
.ss-kpi-value {
	display: block;
	margin-top: 5px;
	color: #071b38;
	font-size: 24px;
	line-height: 1;
	font-weight: 900;
}
.ss-kpi-trend {
	display: block;
	margin-top: 8px;
	color: var(--tone);
	font-size: 8px;
	font-weight: 850;
}
.ss-kpi-trend span {
	color: #8a96a5;
	font-weight: 550;
}
.ss-blue { --tone: #1677ff; --shadow: rgba(22,119,255,.22); --tint: rgba(22,119,255,.07); }
.ss-green { --tone: #12a150; --shadow: rgba(18,161,80,.22); --tint: rgba(18,161,80,.07); }
.ss-cyan { --tone: #0ca9dc; --shadow: rgba(12,169,220,.22); --tint: rgba(12,169,220,.07); }
.ss-red { --tone: #e30613; --shadow: rgba(227,6,19,.22); --tint: rgba(227,6,19,.07); }
.ss-orange { --tone: #ff8a00; --shadow: rgba(255,138,0,.22); --tint: rgba(255,138,0,.07); }

.ss-dashboard {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 292px;
	gap: 17px;
}
.ss-panel-head {
	min-height: 55px;
	padding: 14px 17px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid var(--line);
}
.ss-panel-head h2, .ss-panel-head h3 {
	margin: 0;
	color: #10213a;
	font-size: 15px;
}
.ss-panel-head a {
	color: var(--blue);
	font-size: 11px;
	font-weight: 750;
}
.ss-stock {
	min-width: 0;
	overflow: hidden;
}
.ss-table-wrap {
	width: 100%;
	overflow-x: auto;
}
.ss-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
}
.ss-table th {
	padding: 10px 11px;
	background: #f8fafc;
	color: #6e7b8e;
	font-size: 10px;
	font-weight: 750;
	text-align: left;
	white-space: nowrap;
}
.ss-table td {
	padding: 10px 11px;
	border-top: 1px solid #edf1f6;
	color: #28374d;
	font-size: 11px;
	vertical-align: middle;
}
.ss-table tbody tr:hover {
	background: #f6faff;
}
.ss-prod {
	display: flex;
	align-items: center;
	gap: 9px;
}
.ss-thumb {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 9px;
	background: #eef3f8;
	font-size: 19px;
	overflow: hidden;
}
.ss-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ss-ref {
	color: var(--blue);
	font-weight: 850;
}
/* Jauge d'avancement réelle (colonne « Avancement » des réceptions, 1.19.7) :
   barre bleue qui se remplit selon le vrai pourcentage de lignes validées,
   devient verte pleine à 100 %, pourcentage rappelé en dessous — identique
   à la maquette Réceptions envoyée par l'utilisateur (.sr-progress). */
.ss-progress {
	width: 80px;
	height: 5px;
	border-radius: 99px;
	background: #e8edf3;
	overflow: hidden;
}
.ss-progress span {
	display: block;
	height: 100%;
	border-radius: 99px;
	background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.ss-progress-pct {
	display: block;
	margin-top: 4px;
	color: #6d7b8e;
	font-size: 10px;
}
.ss-location {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #086df0;
	font-weight: 850;
	white-space: nowrap;
}
/* 1.19.14 : repère visuel (maquette Stock) — un point de couleur stable par
   client devant son nom dans le tableau, pour le repérer d'un coup d'œil
   sans lire le texte. */
.ss-client-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 5px;
	border-radius: 50%;
	vertical-align: middle;
}
.ss-status {
	display: inline-flex;
	padding: 5px 8px;
	border-radius: 7px;
	font-size: 9px;
	font-weight: 850;
}
.ss-ok { color: #087837; background: #e6f7ec; }
.ss-low { color: #a65400; background: #fff2df; }
.ss-block { color: #b41118; background: #ffe8e9; }
.ss-table-foot {
	padding: 12px;
	text-align: center;
	border-top: 1px solid var(--line);
}
.ss-table-foot a {
	color: var(--blue);
	font-size: 11px;
	font-weight: 800;
}
.ss-empty {
	padding: 30px;
	text-align: center;
	color: var(--muted);
	font-size: 12px;
}

.ss-quick {
	padding-bottom: 13px;
	align-self: start;
}
.ss-quick-list {
	display: grid;
	gap: 9px;
	padding: 12px;
}
.ss-quick-link {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 49px;
	padding: 10px 13px;
	border-radius: 11px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	box-shadow: 0 7px 18px rgba(15, 42, 76, .12);
	transition: transform .2s, filter .2s;
}
.ss-quick-link:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
	color: #fff;
}
.ss-q-blue { background: linear-gradient(135deg, #1065e8, #178cff); }
.ss-q-cyan { background: linear-gradient(135deg, #049acb, #1cc5ee); }
.ss-q-orange { background: linear-gradient(135deg, #ec6d00, #ff9c0c); }
.ss-q-navy { background: linear-gradient(135deg, #071a34, #113a68); }
.ss-q-red { background: linear-gradient(135deg, #c9141b, #ef353c); }
.ss-qico {
	width: 27px;
	height: 27px;
	display: grid;
	place-items: center;
	font-size: 18px;
}

.ss-lower {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 17px;
	margin-top: 17px;
}
.ss-alert-list, .ss-request-list {
	padding: 3px 15px 12px;
}
.ss-alert, .ss-request {
	display: grid;
	grid-template-columns: 31px 1fr auto;
	gap: 9px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #edf1f5;
}
.ss-alert:last-child, .ss-request:last-child {
	border: 0;
}
.ss-alert-ico, .ss-request-type {
	width: 29px;
	height: 29px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--a-bg);
	color: var(--a);
	font-size: 13px;
}
.ss-alert strong, .ss-request strong {
	display: block;
	font-size: 11px;
}
.ss-alert small, .ss-request small {
	display: block;
	margin-top: 2px;
	color: var(--muted);
	font-size: 9px;
}
.ss-alert time {
	color: #93a0af;
	font-size: 8px;
	white-space: nowrap;
}

.ss-pill {
	display: inline-flex;
	padding: 5px 8px;
	border-radius: 20px;
	background: #eaf2ff;
	color: #1767ae;
	font-size: 9px;
	font-weight: 800;
}
.ss-pill.high { background: #ffe8ea; color: #a60d18; }
.ss-pill.medium { background: #fff4e0; color: #a15c00; }
.ss-pill.low { background: #eef1f6; color: #4b5568; }
.ss-pill.converted { background: #e5f8ed; color: #08793c; }
.ss-pill.rejected, .ss-pill.cancelled { background: #eef1f6; color: #4b5568; }

/*
 * Page Préparation (picking), ajouté en 1.19.2 à partir d'une maquette
 * dédiée : bandeau de commande, avancement réel (statut + lignes prélevées),
 * parcours conseillé (zones réelles des emplacements), état de scan par
 * ligne (aide visuelle côté navigateur, la validation réelle reste la
 * quantité saisie/soumise), outils réels restylés en boutons-icônes, et
 * contrôles obligatoires avant expédition (case à cocher réellement exigée
 * par le serveur, pas seulement décorative).
 */
.ss-order-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
	background: linear-gradient(110deg, var(--navy), #0d3d70);
	color: #fff;
	border-radius: 16px 16px 0 0;
}
.ss-order-icon {
	width: 45px;
	height: 45px;
	flex: 0 0 45px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: rgba(255, 255, 255, .14);
	font-size: 21px;
}
.ss-order-icon svg { width: 22px; height: 22px; display: block; }
/*
 * 1.19.12 : .ss-ico enveloppe les icônes SVG qui remplacent les émojis
 * ☷ / 📷 / 🖶 (support de police inégal selon les systèmes, cf. commentaire
 * sur card_icon() dans class-sodia-stock-preparations.php). Taille par
 * défaut pensée pour un usage en ligne avec du texte (boutons d'action) ;
 * .ss-tool .ss-ico l'agrandit pour les tuiles-outils ci-dessous.
 */
.ss-ico { display: inline-flex; vertical-align: -2px; }
.ss-ico svg { width: 14px; height: 14px; display: block; }
.ss-order-title {
	flex: 1;
	min-width: 0;
}
.ss-order-title h2 {
	margin: 0;
	font-size: 15px;
}
.ss-order-title p {
	margin: 5px 0 0;
	color: #bed2e7;
	font-size: 11px;
}
.ss-order-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}
.ss-order-meta div {
	padding-left: 15px;
	border-left: 1px solid rgba(255, 255, 255, .18);
}
.ss-order-meta small {
	display: block;
	color: #9fbad6;
	font-size: 8px;
	text-transform: uppercase;
	letter-spacing: .4px;
}
.ss-order-meta strong {
	display: block;
	margin-top: 4px;
	font-size: 11px;
}
.ss-progress-wrap {
	padding: 17px 18px;
}
.ss-progress-top {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 800;
}
.ss-track {
	height: 9px;
	border-radius: 99px;
	background: #e9eef4;
	overflow: hidden;
}
.ss-track .ss-fill {
	height: 100%;
	border-radius: 99px;
	background: linear-gradient(90deg, var(--blue), var(--cyan));
	transition: width .5s;
}
.ss-flow {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-top: 16px;
}
.ss-flow-step {
	min-height: 70px;
	padding: 10px 6px;
	border: 1px solid #dde6ef;
	border-radius: 10px;
	background: #fafbfd;
	text-align: center;
	color: #7b899a;
	font-size: 9px;
	font-weight: 800;
}
.ss-flow-step span {
	width: 24px;
	height: 24px;
	display: grid;
	place-items: center;
	margin: 0 auto 6px;
	border-radius: 50%;
	background: #e6ecf3;
	color: #65758a;
	font-size: 11px;
}
.ss-flow-step.done { border-color: #bfe8cf; background: #f1fbf5; color: #087837; }
.ss-flow-step.done span { background: var(--green); color: #fff; }
.ss-flow-step.current { border-color: #83baff; background: #edf5ff; color: #096ddd; box-shadow: 0 0 0 3px rgba(22,119,255,.08); }
.ss-flow-step.current span { background: var(--blue); color: #fff; }
.ss-route {
	display: flex;
	gap: 7px;
	padding: 12px 18px;
	border-top: 1px solid var(--line);
	overflow-x: auto;
}
.ss-route span {
	min-width: max-content;
	padding: 7px 11px;
	border-radius: 8px;
	border: 1px solid #d7e8ff;
	background: #edf5ff;
	color: var(--blue);
	font-size: 10px;
	font-weight: 800;
}
.ss-route span:after {
	content: "→";
	margin-left: 7px;
	color: #9db6d6;
}
.ss-route span:last-child:after {
	content: "";
}
.ss-scan-state {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 7px;
	border-radius: 7px;
	font-size: 9px;
	font-weight: 800;
}
.ss-scan-state.ss-scanned { color: #087837; background: #e6f7ec; }
.ss-scan-state.ss-todo { color: #9a5100; background: #fff0dc; }
.ss-tools {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-top: 14px;
}
.ss-tool {
	min-height: 74px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 7px;
	border: 1px solid #dce5ef;
	border-radius: 12px;
	background: #f8fafc;
	color: #274561;
	font-size: 10px;
	font-weight: 800;
	box-shadow: 0 3px 10px rgba(17, 42, 76, .04);
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.ss-tool .ss-ico { color: var(--blue); }
.ss-tool span {
	font-size: 19px;
}
.ss-tool .ss-ico svg {
	width: 21px;
	height: 21px;
}
.ss-tool:hover {
	border-color: var(--blue);
	background: #f1f7ff;
	box-shadow: 0 6px 16px rgba(22, 119, 255, .12);
	transform: translateY(-1px);
}
.ss-file {
	display: none;
}
/*
 * 1.19.12 : la liste de contrôles obligatoires était une simple succession
 * de lignes séparées par un filet, sans repère visuel individuel — d'où le
 * rendu jugé « grossier » par rapport aux tuiles-outils voisines. Chaque
 * contrôle est désormais une carte à part entière, avec un liseré coloré
 * qui passe au vert dès que la case est cochée (comportement du navigateur
 * uniquement — la validation réelle reste faite par le serveur).
 */
/* .ss-checklist (et non .ss-checks, réutilisé ailleurs pour un simple
   groupe de cases à cocher en ligne, cf. class-sodia-stock-labels.php) :
   classe dédiée pour éviter tout conflit de cascade entre les deux usages. */
.ss-checklist {
	padding: 4px 0 0;
	display: grid;
	gap: 8px;
}
.ss-check {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 12px 13px;
	border: 1px solid #e7ecf2;
	border-radius: 11px;
	background: #fbfcfe;
	transition: border-color .15s ease, background .15s ease;
}
.ss-check:has(input:checked) {
	border-color: #bfe8cf;
	background: #f5fbf7;
}
.ss-check input {
	width: 17px;
	height: 17px;
	margin-top: 1px;
	accent-color: var(--green);
	flex: 0 0 17px;
}
.ss-check input:disabled {
	opacity: .7;
}
.ss-table tbody tr.is-scanned {
	background: #f5fbf7;
}
.ss-check strong {
	display: block;
	font-size: 11px;
}
.ss-check small {
	display: block;
	margin-top: 3px;
	color: var(--muted);
	font-size: 9px;
	line-height: 1.4;
}
.ss-final {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 15px 17px;
	border: 1px solid #bde3ca;
	background: #f2fbf5;
	border-radius: 14px;
	margin-top: 16px;
}
.ss-final-icon {
	width: 39px;
	height: 39px;
	flex: 0 0 39px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--green);
	color: #fff;
	font-size: 18px;
}
.ss-final-copy {
	flex: 1;
}
.ss-final strong {
	display: block;
	color: #0b6f35;
	font-size: 12px;
}
.ss-final small {
	display: block;
	margin-top: 3px;
	color: #548068;
	font-size: 10px;
}
@media (max-width: 700px) {
	.ss-flow { grid-template-columns: repeat(2, 1fr); }
	.ss-order-head { flex-wrap: wrap; }
	.ss-order-meta { width: 100%; }
	.ss-tools { grid-template-columns: 1fr 1fr; }
}

/*
 * Occupation des zones (tableau de bord général) et bandeau de traçabilité,
 * ajoutés en 1.17.0 à partir de données réelles (capacité/zone des
 * emplacements, quantités en stock, derniers mouvements) pour rapprocher
 * le tableau de bord de la maquette visuelle fournie par l'utilisateur.
 */
.ss-zone-body {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 18px;
	padding: 16px;
}
.ss-meter {
	margin-bottom: 11px;
}
.ss-meter:last-child {
	margin-bottom: 0;
}
.ss-meter-label {
	display: flex;
	justify-content: space-between;
	margin-bottom: 5px;
	color: #455468;
	font-size: 10px;
	font-weight: 800;
}
.ss-meter-label small {
	color: var(--muted);
	font-weight: 550;
}
.ss-track {
	height: 8px;
	border-radius: 99px;
	background: #edf1f6;
	overflow: hidden;
}
.ss-fill {
	height: 100%;
	border-radius: 99px;
	background: var(--bar, var(--blue));
}
.ss-map {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
	align-content: start;
}
.ss-bin {
	min-height: 38px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 6px;
	font-size: 9px;
	font-weight: 800;
	text-align: center;
	line-height: 1.3;
	padding: 4px;
}
.ss-bin-ok { border-color: #a9dbc0; background: #eefaf3; color: #087837; }
.ss-bin-warn { border-color: #f4cd9a; background: #fff6ea; color: #a65400; }
.ss-bin-full { border-color: #f0aeb1; background: #fff0f1; color: #b41118; }

.ss-trace {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-top: 17px;
	padding: 14px 18px;
}
.ss-trace-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 14px;
	border-right: 1px solid var(--line);
}
.ss-trace-item:last-child {
	border-right: 0;
}
.ss-trace-ico {
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #f8fafc;
	font-size: 17px;
}
.ss-trace strong {
	display: block;
	font-size: 10px;
}
.ss-trace small {
	display: block;
	margin-top: 2px;
	color: #637186;
	font-size: 9px;
}

/*
 * Page de connexion (/connexion/), ajoutée en 1.18.0 : jusqu'ici cette page
 * n'était pas stylée du tout par le logiciel (elle n'apparaissait pas dans
 * la liste des pages protégées, qui contrôle le chargement de ce fichier) et
 * affichait donc le thème WordPress brut avec son propre menu. Auto-suffisant
 * (couleurs en dur, pas de variables --navy/--blue) car cette page n'est pas
 * enveloppée dans .sodia-shell comme le reste du logiciel.
 */
.ss-auth {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: linear-gradient(160deg, #06162d 0%, #082348 65%, #071a34 100%);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	box-sizing: border-box;
}
.ss-auth * {
	box-sizing: border-box;
}
.ss-auth-card {
	width: 100%;
	max-width: 380px;
	background: #fff;
	border-radius: 18px;
	padding: 34px 30px;
	box-shadow: 0 25px 70px rgba(2, 12, 27, .35);
	text-align: center;
}
.ss-auth-brand {
	margin-bottom: 20px;
}
.ss-auth-brand img {
	max-width: 150px;
	max-height: 74px;
	object-fit: contain;
}
.ss-auth-brand strong {
	font-size: 24px;
	color: #071a34;
	letter-spacing: .3px;
}
.ss-auth-brand strong span {
	color: #1677ff;
}
.ss-auth-card h1 {
	margin: 0 0 6px;
	font-size: 20px;
	color: #071b38;
}
.ss-auth-sub {
	margin: 0 0 22px;
	color: #6f7d90;
	font-size: 12px;
}
.ss-auth-msg {
	color: #28374d;
	font-size: 13px;
	margin-bottom: 16px;
}
.ss-auth-card form#loginform {
	text-align: left;
}
.ss-auth-card .login-username,
.ss-auth-card .login-password {
	margin-bottom: 14px;
}
.ss-auth-card label {
	display: block;
	margin-bottom: 5px;
	color: #455468;
	font-size: 11px;
	font-weight: 700;
}
.ss-auth-card input[type="text"],
.ss-auth-card input[type="password"] {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #dce5f0;
	border-radius: 9px;
	font-size: 13px;
}
.ss-auth-card input[type="text"]:focus,
.ss-auth-card input[type="password"]:focus {
	outline: 0;
	border-color: #1677ff;
	box-shadow: 0 0 0 3px rgba(22, 119, 255, .12);
}
.ss-auth-card .login-remember {
	margin: 4px 0 18px;
}
.ss-auth-card .login-remember label {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	font-weight: 500;
	color: #6f7d90;
}
.ss-auth-card .login-remember input {
	width: auto;
}
.ss-auth-card .login-submit {
	margin: 0;
}
.ss-auth-card .login-submit input[type="submit"] {
	width: 100%;
	padding: 12px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, #1065e8, #178cff);
	color: #fff;
	font-weight: 800;
	font-size: 13px;
	cursor: pointer;
}
.ss-auth-card .login-submit input[type="submit"]:hover {
	filter: brightness(1.05);
}
.ss-auth-card .ss-btn {
	display: inline-block;
	width: 100%;
	padding: 12px;
	border-radius: 10px;
	background: linear-gradient(135deg, #1065e8, #178cff);
	color: #fff;
	font-weight: 800;
	font-size: 13px;
	text-decoration: none;
}
.ss-auth-forgot {
	display: inline-block;
	margin-top: 16px;
	color: #6f7d90;
	font-size: 11px;
	font-weight: 650;
	text-decoration: none;
}
.ss-auth-forgot:hover {
	color: #1677ff;
}

.ss-welcome {
	background: linear-gradient(120deg, var(--navy), var(--navy2));
	color: #fff;
	border-radius: 17px;
	padding: 22px 25px;
	margin-bottom: 17px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.ss-welcome h2 {
	margin: 0 0 6px;
	font-size: 22px;
}
.ss-welcome p {
	margin: 0;
	color: #bdcfe6;
	font-size: 13px;
}
.ss-online {
	background: #20a65a;
	padding: 7px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 800;
	white-space: nowrap;
}
.ss-client-card {
	min-width: 220px;
	padding: 13px 16px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 12px;
	background: rgba(255, 255, 255, .08);
}
.ss-client-card small {
	display: block;
	color: #a8c3df;
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 1px;
}
.ss-client-card strong {
	display: block;
	margin-top: 5px;
	font-size: 14px;
}
.ss-client-card span {
	display: block;
	margin-top: 4px;
	color: #8bdcff;
	font-size: 10px;
}

.sodia-app-message {
	margin: 20px;
	padding: 20px;
	background: #fff1dd;
	border-radius: 10px;
	font-family: Inter, Arial, sans-serif;
}

/* ---- Shared building blocks reused by every module page (toolbar/filters, modal, forms) ---- */
.ss-notice { padding: 13px 16px; background: #e5f8ed; color: #08793c; border-radius: 10px; margin-bottom: 16px; font-size: 13px; }
.ss-notice.error { background: #ffe8ea; color: #a60d18; }
.ss-toolbar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ss-filter-btn { height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 11px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.ss-filter-btn.is-active { border-color: var(--blue); background: #eaf3ff; color: #096de8; }
.ss-filter { height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #f9fbfd; color: #536378; font-size: 12px; }
.ss-toolbar .ss-export { margin-left: auto; color: var(--blue); font-weight: 800; font-size: 11px; text-decoration: none; white-space: nowrap; }
.ss-panel-head .ss-export { color: var(--blue); font-weight: 800; font-size: 12px; text-decoration: none; }

.ss-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.ss-field.full { grid-column: 1 / -1; }
.ss-field label { display: block; font-size: 11px; font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.ss-field input, .ss-field select, .ss-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 11px; background: #fff; font-size: 13px; font-family: inherit; color: var(--ink); }
.ss-btn { border: 0; background: linear-gradient(120deg, var(--red), #b9000b); color: #fff; border-radius: 9px; padding: 12px 17px; font-weight: 800; cursor: pointer; font-size: 13px; text-decoration: none; display: inline-block; }
.ss-btn.secondary { background: #202b3e; }
.ss-btn.ghost { background: #6d7685; }
/* 1.19.10 : la règle .sodia-shell button { color: inherit; } plus haut
   (ajoutée en 1.19.1 pour rendre visible le texte du bouton avatar « Mon
   profil ») a, à cause du sélecteur d'élément « button » en plus de sa
   classe, une spécificité CSS plus forte qu'un simple .ss-btn — elle
   écrasait donc le blanc voulu sur tous les vrais <button class="ss-btn">
   du logiciel (Commencer la réception, Valider, Approuver, Ajouter une
   photo...), remplacé par la couleur d'encre héritée (#12213a, très
   proche du fond bleu marine de .ss-btn.secondary), rendant le texte
   quasi invisible sur les boutons secondaires/ghost. Les liens <a
   class="ss-btn"> n'étaient jamais concernés (la règle ne cible que
   <button>), ce qui explique pourquoi seuls certains boutons semblaient
   touchés. Corrigé en redonnant au blanc une spécificité plus forte,
   ciblée précisément sur les boutons ss-btn. */
.sodia-shell button.ss-btn { color: #fff; }
.ss-lines { grid-column: 1 / -1; }
.ss-line { display: grid; grid-template-columns: 1fr 1.3fr 1fr .8fr .7fr .8fr auto; gap: 6px; margin-bottom: 8px; align-items: center; }
.ss-line input { min-width: 0; }
.ss-line-remove { border: 1px solid var(--line); background: #fff; border-radius: 6px; width: 32px; height: 32px; cursor: pointer; color: #a9121d; font-size: 14px; }
.ss-add-line { border: 1px dashed var(--line); background: #fff; padding: 9px; border-radius: 7px; cursor: pointer; font-size: 12px; color: var(--blue); font-weight: 700; }

/* Détail par palette (réception), ajouté en 1.19.4. */
#srPallets .ss-line { grid-template-columns: 1fr auto; max-width: 360px; }
.ss-pallets { margin: 4px 0 14px; }
.ss-pallets-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ss-pallet-chip { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 8px 12px; }
.ss-pallet-chip span { font-size: 11px; color: var(--muted); }
.ss-pallet-chip strong { font-size: 13px; color: var(--ink); }

.ss-scan { background: var(--surface); padding: 14px; border-radius: 9px; margin: 14px 0; }
.ss-scan label { font-size: 12px; }
.ss-scan input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px; margin-top: 8px; font-size: 13px; }
.ss-item-ok { background: #e9f8ef !important; }
.ss-detail-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.ss-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

.ss-modal { position: fixed; inset: 0; z-index: 400; background: rgba(7, 26, 52, .55); display: none; align-items: center; justify-content: center; padding: 20px; }
.ss-modal.is-open { display: flex; }
.ss-modal-box { background: #fff; border-radius: 16px; max-width: 660px; width: 100%; max-height: 90vh; overflow: auto; padding: 24px; }
.ss-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ss-modal-head h2 { margin: 0; font-size: 19px; color: var(--ink); }
.ss-modal-close { border: 0; background: #f0f3f8; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 16px; color: var(--muted); }

/* Aide guidée client (bouton flottant + panneau), sans IA — 1.14.0. */
.ss-help-fab { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 52px; height: 52px; border-radius: 50%; background: var(--blue); color: #fff; border: none; box-shadow: 0 10px 24px rgba(22, 119, 255, .35); font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; }
.ss-help-fab:hover { background: var(--navy2); }
.ss-help-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ss-help-item:last-child { border-bottom: 0; }
.ss-help-item h4 { margin: 0 0 6px; font-size: 14px; color: var(--navy); }
.ss-help-item p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.ss-help-contact { margin-top: 14px; padding: 12px 14px; background: var(--surface); border-radius: 10px; font-size: 13px; color: var(--ink); line-height: 1.5; }
.ss-chat-log { max-height: 320px; overflow-y: auto; padding: 4px 2px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 10px; }
.ss-chat-msg { max-width: 85%; padding: 10px 13px; border-radius: 12px; font-size: 13px; line-height: 1.5; white-space: pre-wrap; }
.ss-chat-assistant { align-self: flex-start; background: var(--surface); color: var(--ink); border-bottom-left-radius: 4px; }
.ss-chat-user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.ss-chat-error { background: #ffe4e4; color: #b8121d; }
.ss-chat-form { display: flex; gap: 8px; }
.ss-chat-form input[type="text"] { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 13px; }

.ss-pill.assigned, .ss-pill.pending { background: #eaf2ff; color: #1764ab; }
.ss-pill.in_progress { background: #fff1dd; color: #a65d00; }
.ss-pill.completed, .ss-pill.active, .ss-pill.resolved { background: #e5f8ed; color: #08743a; }
.ss-pill.disabled, .ss-pill.cancelled { background: #eceff3; color: #687181; }
.ss-pill.open { background: #ffe4e4; color: #b8121d; }
.ss-pill.conditionnement { background: #fff4e0; color: #a15c00; }
.ss-pill.ready { background: #fff1dd; color: #a65d00; }
.ss-pill.in_transit { background: #e5f2ff; color: #0569c7; }
.ss-pill.delivered { background: #e5f8ed; color: #08793c; }

.ss-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; padding: 18px; }
.ss-product-tile { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; text-decoration: none; color: var(--ink); display: block; transition: transform .15s, box-shadow .15s; }
.ss-product-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(17, 42, 76, .09); }
.ss-product-thumb { width: 100%; height: 120px; background: #eef3f8 center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; }
.ss-product-body { padding: 11px 13px; }
.ss-product-body b { display: block; font-size: 13px; color: var(--ink); }
.ss-product-body small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }

.ss-photo-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; }
.ss-photo-box { width: 100%; height: 220px; background: #eef3f8 center/cover no-repeat; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.ss-gallery { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.ss-gallery img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

.ss-label-sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.ss-label { border: 1px dashed #b7bfcc; border-radius: 9px; padding: 12px; text-align: center; background: #fff; }
.ss-label b { display: block; font-size: 19px; letter-spacing: 1px; margin-bottom: 6px; }
.ss-label small { display: block; margin-top: 4px; color: var(--muted); }
.ss-checks { display: flex; gap: 16px; padding: 6px 0; flex-wrap: wrap; }
.ss-checks label { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; }

.ss-settings-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 17px; align-items: start; }
.ss-tabs { position: sticky; top: 88px; padding: 9px; }
.ss-tab { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: #536378; text-align: left; font-size: 12px; font-weight: 750; cursor: pointer; }
.ss-tab:hover { background: #f2f6fb; color: #173b65; }
.ss-tab.is-active { background: #eaf3ff; color: #086ce8; }
.ss-tab-ico { width: 23px; text-align: center; font-size: 16px; }
.ss-panel { display: none; }
.ss-panel.is-active { display: block; }
.ss-section { margin-bottom: 22px; padding-bottom: 21px; border-bottom: 1px solid #eaf0f6; }
.ss-section:last-child { margin: 0; padding: 0; border: 0; }
.ss-section-title { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; font-size: 13px; color: var(--ink); }
.ss-section-title span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: #edf5ff; color: var(--blue); font-size: 15px; }
.ss-role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.ss-role { padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.ss-role h3 { margin: 0; font-size: 13px; }
.ss-role p { min-height: 36px; margin: 6px 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.ss-role a { color: var(--blue); font-size: 11px; font-weight: 800; }

@media (max-width: 900px) {
	.ss-form-grid { grid-template-columns: 1fr; }
	.ss-field.full, .ss-lines { grid-column: auto; }
	.ss-line { grid-template-columns: 1fr 1fr; }
	.ss-detail-top { display: block; }
	.ss-photo-grid { grid-template-columns: 1fr; }
	.ss-label-sheet { grid-template-columns: repeat(2, 1fr); }
	.ss-settings-layout { grid-template-columns: 1fr; }
	.ss-tabs { position: static; display: flex; overflow-x: auto; gap: 4px; }
	.ss-tab { min-width: max-content; width: auto; }
	.ss-role-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
	.ss-shell { grid-template-columns: 220px minmax(0, 1fr); }
	.ss-sidebar { padding-inline: 10px; }
	.ss-content { padding: 22px 20px; }
	.ss-topbar-inner { padding-inline: 20px; }
	.ss-kpis { grid-template-columns: repeat(2, 1fr); }
	.ss-dashboard { grid-template-columns: minmax(0, 1fr) 260px; }
	.ss-trace { grid-template-columns: repeat(2, 1fr); }
	.ss-trace-item:nth-child(2) { border-right: 0; }
	.ss-trace-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 4px; }
}
@media (max-width: 850px) {
	.ss-shell { display: block; }
	.ss-sidebar {
		position: fixed;
		left: 0;
		top: 0;
		width: 270px;
		height: 100dvh;
		transform: translateX(-105%);
		transition: transform .28s ease;
		box-shadow: 15px 0 40px rgba(0, 0, 0, .25);
	}
	.sodia-shell.ss-menu-open .ss-sidebar { transform: none; }
	.sodia-shell.ss-menu-open .ss-overlay { opacity: 1; visibility: visible; }
	.ss-menu-btn { display: grid; place-items: center; }
	.ss-dashboard { grid-template-columns: 1fr; }
	.ss-quick { order: -1; }
	.ss-quick-list { grid-template-columns: repeat(2, 1fr); }
	.ss-content { padding: 19px 16px 32px; }
	.ss-topbar { height: 64px; }
	.ss-topbar-inner { padding: 0 15px; }
	.ss-user small { display: none; }
	.ss-lower { grid-template-columns: 1fr; }
	.ss-zone-body { grid-template-columns: 1fr; }
	.ss-search { max-width: none; }
}
@media (max-width: 570px) {
	/* La barre de recherche reste visible sur mobile (signalé comme manquante côté
	   compte client) : elle se contente de rétrécir, le titre de page est déjà masqué
	   à 850px donc la place ne manque pas. */
	.ss-search { min-width: 0; }
	.ss-heading h1 { font-size: 22px; }
	.ss-kpis { grid-template-columns: 1fr 1fr; gap: 9px; }
	.ss-kpi { min-height: 100px; padding: 14px; gap: 9px; }
	.ss-kpi-icon { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; font-size: 18px; }
	.ss-kpi-value { font-size: 20px; }
	.ss-quick-list { grid-template-columns: 1fr; }
	.ss-welcome { display: block; }
	.ss-online { display: inline-block; margin-top: 10px; }
	.ss-trace { grid-template-columns: 1fr; }
	.ss-trace-item { border-right: 0 !important; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 6px; }
	.ss-trace-item:last-child { border-bottom: 0; margin-bottom: 0; }
	.ss-map { grid-template-columns: repeat(3, 1fr); }
}

.ss-overlay {
	position: fixed;
	inset: 0;
	z-index: 45;
	background: rgba(3, 15, 31, .55);
	opacity: 0;
	visibility: hidden;
	transition: .25s;
}
