@charset "UTF-8";
/* ==========================================================================
   Modern Buttons & UI Controls (Design System 2026)
   ========================================================================== */

.buttonbarcont {
	height: auto;
	margin-top: 10px;
	margin-bottom: 10px;
	position: relative;
}

#graphcont .buttonbarcont {
	width: 100%;
	clear: both;
}

.buttonbarcont::after {
	content: "";
	display: table;
	clear: both;
}

/* Alignement des 3 boutons du visualiseur (gauche, centre, droite) */
.buttonbarcont .tier {
	width: 33.333%;
	float: left;
	box-sizing: border-box;
	display: flex;
}

.buttonbarcont .tier:first-child {
	justify-content: flex-end;
	padding-right: 18px;
}

.buttonbarcont .tier.center {
	justify-content: center;
}

.buttonbarcont .tier:last-child {
	justify-content: flex-start;
	padding-left: 18px;
}

.buttonbarcont .tier .barbutton {
	float: none;
}

/* Bouton de base */
.barbutton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	padding: 8px 16px;
	min-height: 38px;
	cursor: pointer;
	color: #1e293b;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	user-select: none;
	position: relative;
	box-sizing: border-box;
}

.barbutton:hover {
	background: #f8fafc;
	border-color: #94a3b8;
	color: #0f172a;
	transform: translateY(-1px);
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

.barbutton:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.barbutton img,
.barbutton i {
	margin-right: 6px;
}

.emptybutton {
	float: left;
	padding: 10px;
}

.barbutton select {
	margin: 0;
	border: none;
	background: transparent;
	font-weight: inherit;
	cursor: pointer;
}

.titlebutbarcont {
	margin-top: 20px;
	float: right;
}

/* Boutons fins */
.thinbarbutton {
	display: inline-flex;
	align-items: center;
	border: 1px solid #cbd5e1;
	height: 28px;
	border-radius: 6px;
	text-align: center;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	color: #334155;
	padding: 0 12px;
	background: #f8fafc;
	transition: all 0.15s ease;
}

.thinbarbutton:hover {
	background: #f1f5f9;
	color: #1e293b;
	border-color: #94a3b8;
}

.thinbarbutton_icon {
	background-color: #f8fafc;
	color: #3b82f6;
}

/* Boutons isolés */
.butsingle {
	border-radius: 8px;
}

/* Groupes de boutons segmentés */
.butfirst {
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	border-right: none;
}

.butmiddle {
	border-radius: 0;
	border-right: none;
}

.butlast {
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

/* Largeurs fixes (optimisées) */
.barbutton_fixed_150 { width: 150px; }
.barbutton_fixed_130 { width: 130px; }
.barbutton_fixed_200 { width: 200px; }
.barbutton_fixed_100 { width: 100px; }
.barbutton_fixed_75 { width: 75px; }
.barbutton_mobile { max-width: 320px; width: 100%; }

/* Bouton Primaire Bleu / Indigo (Changer d'état, Comparer, Presets) */
.barbutton.bluebutfade,
.bluebutfade {
	background: #2563eb;
	color: #ffffff;
	border: 1px solid #1d4ed8;
	text-shadow: none;
	box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25);
}

.barbutton.bluebutfade:hover,
.bluebutfade:hover {
	background: #1d4ed8;
	border-color: #1e40af;
	color: #ffffff;
	box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
	transform: translateY(-1px);
}

.barbutton.bluebutfade:active,
.bluebutfade:active {
	background: #1e40af;
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

/* Bouton Accent Rouge / Corail (Changer d'état Multi) */
.barbutton.redbutfade,
.redbutfade {
	background: #e11d48;
	color: #ffffff;
	border: 1px solid #be123c;
	text-shadow: none;
	box-shadow: 0 2px 4px rgba(225, 29, 72, 0.25);
}

.barbutton.redbutfade:hover,
.redbutfade:hover {
	background: #be123c;
	border-color: #9f1239;
	color: #ffffff;
	box-shadow: 0 4px 10px rgba(225, 29, 72, 0.35);
	transform: translateY(-1px);
}

.barbutton.redbutfade:active,
.redbutfade:active {
	background: #9f1239;
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(225, 29, 72, 0.2);
}

/* Bouton Secondaire Gris Doux (Passer au repos / Switch to flaccid) */
.barbutton.greybutfade,
.greybutfade {
	background: #f8fafc;
	color: #334155;
	border: 1px solid #cbd5e1;
	text-shadow: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.barbutton.greybutfade:hover,
.greybutfade:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
	color: #0f172a;
	transform: translateY(-1px);
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
}

.barbutton.greybutfade:active,
.greybutfade:active {
	background: #e2e8f0;
	transform: translateY(0);
}

/* Bouton Gris Foncé */
.barbutton.dgreybutfade,
.dgreybutfade {
	background: #e2e8f0;
	color: #1e293b;
	border: 1px solid #cbd5e1;
	text-shadow: none;
}

.barbutton.dgreybutfade:hover,
.dgreybutfade:hover {
	background: #cbd5e1;
	color: #0f172a;
}

/* Bouton Désactivé */
.barbutton.disable,
.disable {
	background: #f1f5f9;
	color: #94a3b8;
	border-color: #e2e8f0;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.barbutton.disable:hover,
.disable:hover {
	background: #f1f5f9;
	color: #94a3b8;
	border-color: #e2e8f0;
	box-shadow: none;
	transform: none;
}

/* Bouton Succès Vert (Enregistrer, Confirmer) */
.barbutton.greenbutfade,
.greenbutfade {
	background: #16a34a;
	color: #ffffff;
	border: 1px solid #15803d;
	text-shadow: none;
	box-shadow: 0 2px 4px rgba(22, 163, 74, 0.25);
}

.barbutton.greenbutfade:hover,
.greenbutfade:hover {
	background: #15803d;
	border-color: #166534;
	color: #ffffff;
	box-shadow: 0 4px 10px rgba(22, 163, 74, 0.35);
	transform: translateY(-1px);
}

.barbutton.greenbutfade:active,
.greenbutfade:active {
	background: #166534;
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(22, 163, 74, 0.2);
}

.butsize {
	background: transparent;
	text-align: left;
	clear: both;
}

/* Actions et statuts du visualiseur */
.sizer-actions-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 15px;
	align-items: center;
}

.save-alert {
	margin-top: 12px;
	padding: 10px 16px;
	border-radius: 6px;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 500;
	transition: all 0.3s ease;
}

.save-alert.success {
	background-color: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.save-alert.error {
	background-color: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}

.save-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 600;
	background-color: #dcfce7;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.save-badge.saving {
	background-color: #fef9c3;
	color: #854d0e;
	border-color: #fef08a;
}