/* ==========================================================================
   GoCardless - prélèvement SEPA
   Style « glassmorphism fluid » : surfaces translucides floutées posées sur un
   dégradé animé. Tout est préfixé .gc- et confiné aux écrans de prélèvement :
   aucun style du CRM n'est surchargé.
   ========================================================================== */

:root {
	--gc-ink:            #2b3350;
	--gc-ink-soft:       #6b7594;
	--gc-ink-faint:      #9aa3bd;

	--gc-blue:           #5b7cfa;
	--gc-blue-deep:      #3448c8;
	--gc-violet:         #8b6ff2;
	--gc-teal:           #2fb8ad;
	--gc-green:          #2fa876;
	--gc-amber:          #e0912a;
	--gc-rose:           #e0567b;

	--gc-surface:        #f4f7fb;
	--gc-glass:          rgba(255, 255, 255, .82);
	--gc-glass-strong:   rgba(255, 255, 255, .96);
	--gc-glass-soft:     rgba(255, 255, 255, .60);
	--gc-stroke:         #e4e9f2;
	--gc-stroke-soft:    #e9edf4;


	--gc-shadow:         0 8px 32px rgba(43, 51, 80, .10), 0 2px 8px rgba(43, 51, 80, .06);
	--gc-shadow-lift:    0 16px 44px rgba(43, 51, 80, .16), 0 4px 12px rgba(43, 51, 80, .08);
	--gc-shadow-inset:   inset 0 1px 0 rgba(255, 255, 255, .65);

	--gc-r-lg:           24px;
	--gc-r-md:           16px;
	--gc-r-sm:           11px;

	--gc-ease:           cubic-bezier(.22, .8, .28, 1);
}

/* --------------------------------------------------------------------------
   1. Panneau : surface neutre. La couleur est reservee aux boutons, pastilles,
   icones et valeurs chiffrees ; le fond reste sobre pour ne pas fatiguer l'oeil
   sur une fiche consultee toute la journee.
   -------------------------------------------------------------------------- */

.gc-panel {
	position: relative;
	border-radius: var(--gc-r-lg);
	border: 1px solid var(--gc-stroke-soft);
	background: var(--gc-surface);
	box-shadow: var(--gc-shadow);
	font-family: "Nunito", "Helvetica Neue", Helvetica, Arial, sans-serif;
	color: var(--gc-ink);
}

.gc-panel--page {
	margin-bottom: 18px;
}

/* Neutralise le liseré pointillé que .form-bordered pose sur les .form-group
   du CRM : le panneau porte deja sa propre bordure. */
.gc-formgroup {
	border-bottom: 0 !important;
	padding-bottom: 15px !important;
}

.gc-inner {
	padding: 22px 24px 24px;
}

/* Panneau repliable : tant que le prelevement n'a pas ete mis en place, seul
   l'en-tete est visible pour ne pas alourdir la fiche. */
.gc-panel--toggle .gc-head {
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
	border-radius: var(--gc-r-sm);
	transition: opacity .25s var(--gc-ease);
}

.gc-panel--toggle .gc-head:hover { opacity: .82; }

.gc-panel--toggle .gc-head:focus-visible {
	outline: 2px solid var(--gc-blue);
	outline-offset: 4px;
}

/* Les commandes de l'en-tete gardent leur propre action : elles ne replient pas */
.gc-panel--toggle .gc-head a { cursor: pointer; }

.gc-panel.is-collapsed .gc-inner { padding-bottom: 22px; }
.gc-panel.is-collapsed .gc-head { margin-bottom: 0; }
.gc-panel.is-collapsed .gc-body { display: none; }

/* Chevron d'etat, pivote selon que la section est ouverte ou repliee */
.gc-chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 12px;
	color: var(--gc-ink-faint);
	border: 1px solid var(--gc-stroke);
	background: var(--gc-glass-strong);
	transform: rotate(180deg);
	transition: transform .3s var(--gc-ease), color .25s var(--gc-ease);
}

.gc-panel.is-collapsed .gc-chevron { transform: rotate(0deg); }
.gc-panel--toggle .gc-head:hover .gc-chevron { color: var(--gc-blue); }

/* --------------------------------------------------------------------------
   2. Surface de verre
   -------------------------------------------------------------------------- */

.gc-card {
	position: relative;
	border-radius: var(--gc-r-md);
	border: 1px solid var(--gc-stroke);
	background: var(--gc-glass);
	box-shadow: var(--gc-shadow), var(--gc-shadow-inset);
	padding: 18px 20px;
	margin-bottom: 14px;
}

.gc-card:last-child { margin-bottom: 0; }

.gc-card--flush { padding: 0; }

.gc-card-title {
	margin: 0 0 14px;
	font-family: "Montserrat", "Nunito", sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .10em;
	text-transform: uppercase;
	color: var(--gc-ink-soft);
	display: flex;
	align-items: center;
	gap: 8px;
}

.gc-card-title .fa { color: var(--gc-blue); font-size: 12px; }

/* --------------------------------------------------------------------------
   3. En-tête
   -------------------------------------------------------------------------- */

.gc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 18px;
}

.gc-head-id {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.gc-mark {
	flex: none;
	display: block;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	box-shadow: 0 6px 16px rgba(43, 51, 80, .18);
}

/* Mot-cle officiel : image detouree, dimensionnee par sa hauteur */
.gc-wordmark {
	display: block;
	height: 26px;
	width: auto;
	max-width: 100%;
}

.gc-wordmark--sm { height: 14px; }

/* Le titre reste un h4 pour la structure : le texte alternatif de l'image porte le nom */
.gc-head-txt h4.gc-head-name {
	margin: 0 0 3px;
	line-height: 0;
}

.gc-head-txt { min-width: 0; }

.gc-head-txt h4 {
	margin: 0;
	font-family: "Montserrat", "Nunito", sans-serif;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--gc-ink);
	line-height: 1.2;
}

.gc-head-txt p {
	margin: 2px 0 0;
	font-size: 12.5px;
	color: var(--gc-ink-soft);
}

.gc-head-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

/* Pastille d'environnement */
.gc-env {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	border: 1px solid var(--gc-stroke);
	background: var(--gc-glass-strong);
}

/* Indicateur du prestataire qui opere les transactions affichees */
.gc-provider {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 28px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--gc-stroke);
	background: var(--gc-glass-strong);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--gc-ink-faint);
}

.gc-env--test { color: var(--gc-amber); }
.gc-env--off  { color: var(--gc-ink-faint); }
.gc-env--live { color: var(--gc-green); }

.gc-env i { font-size: 11px; }

/* --------------------------------------------------------------------------
   4. Parcours du mandat
   -------------------------------------------------------------------------- */

.gc-steps {
	display: flex;
	align-items: flex-start;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	flex-wrap: nowrap;
}

.gc-step {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	text-align: center;
	padding: 0 4px;
}

/* Trait de liaison entre les étapes */
.gc-step::before {
	content: "";
	position: absolute;
	top: 15px;
	left: -50%;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: rgba(120, 140, 190, .22);
	z-index: 0;
}

.gc-step:first-child::before { display: none; }

.gc-step-dot {
	position: relative;
	z-index: 1;
	width: 32px;
	height: 32px;
	margin: 0 auto 8px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: var(--gc-ink-faint);
	border: 1px solid var(--gc-stroke);
	background: var(--gc-glass-strong);
	box-shadow: var(--gc-shadow-inset);
	transition: all .4s var(--gc-ease);
}

.gc-step-label {
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--gc-ink-faint);
	line-height: 1.35;
	transition: color .4s var(--gc-ease);
}

/* Étape franchie */
.gc-step.is-done .gc-step-dot {
	color: #fff;
	border-color: transparent;
	background: linear-gradient(140deg, var(--gc-teal), var(--gc-green));
	box-shadow: 0 6px 16px rgba(47, 168, 118, .34);
}
.gc-step.is-done .gc-step-label { color: var(--gc-ink); }
.gc-step.is-done::before { background: linear-gradient(90deg, var(--gc-teal), var(--gc-green)); }

/* Étape en cours : halo pulsé */
.gc-step.is-current .gc-step-dot {
	color: #fff;
	border-color: transparent;
	background: linear-gradient(140deg, var(--gc-blue), var(--gc-violet));
	box-shadow: 0 6px 18px rgba(91, 124, 250, .42);
	animation: gc-pulse 2.4s ease-in-out infinite;
}
.gc-step.is-current .gc-step-label { color: var(--gc-ink); font-weight: 700; }
.gc-step.is-current::before { background: linear-gradient(90deg, var(--gc-teal), var(--gc-blue)); }

/* Étape en échec */
.gc-step.is-error .gc-step-dot {
	color: #fff;
	border-color: transparent;
	background: linear-gradient(140deg, #f2789b, var(--gc-rose));
	box-shadow: 0 6px 18px rgba(224, 86, 123, .40);
}
.gc-step.is-error .gc-step-label { color: var(--gc-rose); font-weight: 700; }

@keyframes gc-pulse {
	0%, 100% { box-shadow: 0 6px 18px rgba(91, 124, 250, .42), 0 0 0 0 rgba(91, 124, 250, .32); }
	50%      { box-shadow: 0 6px 18px rgba(91, 124, 250, .42), 0 0 0 9px rgba(91, 124, 250, 0); }
}

/* --------------------------------------------------------------------------
   5. Champs de saisie
   -------------------------------------------------------------------------- */

.gc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
	gap: 14px;
}

.gc-field { min-width: 0; }

.gc-label {
	display: block;
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--gc-ink-soft);
}

.gc-input,
select.gc-input {
	display: block;
	width: 100%;
	height: 42px;
	padding: 0 14px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--gc-ink);
	border-radius: var(--gc-r-sm);
	border: 1px solid var(--gc-stroke);
	background: var(--gc-glass-strong);
	box-shadow: var(--gc-shadow-inset);
	transition: border-color .25s var(--gc-ease), box-shadow .25s var(--gc-ease), transform .25s var(--gc-ease);
	-webkit-appearance: none;
	appearance: none;
}

select.gc-input {
	padding-right: 34px;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7594' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
}

.gc-input:focus {
	outline: none;
	border-color: var(--gc-blue);
	box-shadow: var(--gc-shadow-inset), 0 0 0 4px rgba(91, 124, 250, .16);
}

.gc-input::placeholder { color: var(--gc-ink-faint); font-weight: 500; }

.gc-input:disabled,
.gc-input[readonly] { opacity: .62; cursor: not-allowed; }

.gc-input[readonly].gc-input--copy { opacity: 1; cursor: text; font-size: 12.5px; font-weight: 500; }

/* Champ avec suffixe (€) */
.gc-input-wrap { position: relative; }
.gc-input-wrap .gc-input { padding-right: 36px; }
.gc-input-suffix {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 13px;
	font-weight: 700;
	color: var(--gc-ink-faint);
	pointer-events: none;
}

/* Case à cocher */
.gc-check {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 42px;
	padding: 0 14px;
	border-radius: var(--gc-r-sm);
	border: 1px solid var(--gc-stroke);
	background: var(--gc-glass-soft);
	font-size: 13px;
	font-weight: 600;
	color: var(--gc-ink);
	cursor: pointer;
	user-select: none;
	transition: background .25s var(--gc-ease), border-color .25s var(--gc-ease);
	width: 100%;
}

.gc-check:hover { background: var(--gc-glass-strong); border-color: var(--gc-blue); }

/* Repere sur l'onglet Financement : un prelevement attend une action */
.nav-tabs .gc-tab-badge {
	background-color: var(--gc-amber);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .02em;
	padding: 2px 8px;
	border-radius: 999px;
	vertical-align: 1px;
}

/* Envoi de test : signale visuellement qu'on ne cree pas un mandat reel */
.gc-check--test { border-color: rgba(224, 145, 42, .45); color: var(--gc-amber); }
.gc-check--test:hover { border-color: var(--gc-amber); }
.gc-check--test input { accent-color: var(--gc-amber); }
.gc-check input { margin: 0; accent-color: var(--gc-blue); width: 16px; height: 16px; cursor: pointer; }

/* --------------------------------------------------------------------------
   6. Boutons
   -------------------------------------------------------------------------- */

.gc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 16px;
}

.gc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 17px;
	border-radius: var(--gc-r-sm);
	border: 1px solid var(--gc-stroke);
	background: var(--gc-glass-strong);
	box-shadow: var(--gc-shadow), var(--gc-shadow-inset);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	color: var(--gc-ink);
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: transform .28s var(--gc-ease), box-shadow .28s var(--gc-ease), background .28s var(--gc-ease), color .28s var(--gc-ease);
}

.gc-btn:hover,
.gc-btn:focus {
	color: var(--gc-ink);
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: var(--gc-shadow-lift), var(--gc-shadow-inset);
}

.gc-btn:active { transform: translateY(0); }

.gc-btn .fa { font-size: 13px; }

.gc-btn--sm { height: 32px; padding: 0 13px; font-size: 12px; }
.gc-btn--icon { width: 40px; padding: 0; }

/* Bouton principal : dégradé + reflet qui balaie au survol */
.gc-btn--primary {
	position: relative;
	overflow: hidden;
	color: #fff;
	border-color: transparent;
	background: linear-gradient(135deg, var(--gc-blue) 0%, var(--gc-violet) 100%);
	box-shadow: 0 8px 22px rgba(91, 124, 250, .36), inset 0 1px 0 rgba(255, 255, 255, .30);
}
.gc-btn--primary:hover,
.gc-btn--primary:focus {
	color: #fff;
	box-shadow: 0 14px 32px rgba(91, 124, 250, .46), inset 0 1px 0 rgba(255, 255, 255, .30);
}
.gc-btn--primary::after {
	content: "";
	position: absolute;
	top: 0; left: -120%;
	width: 60%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .40), transparent);
	transition: left .7s var(--gc-ease);
}
.gc-btn--primary:hover::after { left: 130%; }

/* Action principale de la marque : jaune GoCardless, texte noir.
   Reserve au declenchement de l'envoi chez le prestataire. */
.gc-btn--brand {
	position: relative;
	overflow: hidden;
	color: #1a1a17;
	border-color: rgba(180, 182, 40, .45);
	background: linear-gradient(135deg, #f6f77a 0%, #f1f252 52%, #dcdd35 100%);
	box-shadow: 0 8px 22px rgba(214, 216, 40, .40), inset 0 1px 0 rgba(255, 255, 255, .55);
}

.gc-btn--brand:hover,
.gc-btn--brand:focus {
	color: #1a1a17;
	background: linear-gradient(135deg, #f9fa92 0%, #f4f560 52%, #e4e53f 100%);
	box-shadow: 0 14px 32px rgba(214, 216, 40, .50), inset 0 1px 0 rgba(255, 255, 255, .55);
}

/* Reflet qui balaie le bouton au survol */
.gc-btn--brand::after {
	content: "";
	position: absolute;
	top: 0; left: -120%;
	width: 60%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .70), transparent);
	transition: left .7s var(--gc-ease);
}

.gc-btn--brand:hover::after { left: 130%; }

.gc-btn--success {
	color: #fff;
	border-color: transparent;
	background: linear-gradient(135deg, var(--gc-teal) 0%, var(--gc-green) 100%);
	box-shadow: 0 8px 22px rgba(47, 168, 118, .32), inset 0 1px 0 rgba(255, 255, 255, .30);
}
.gc-btn--success:hover, .gc-btn--success:focus { color: #fff; }

.gc-btn--warn  { color: var(--gc-amber); }
.gc-btn--warn:hover,  .gc-btn--warn:focus  { color: var(--gc-amber); border-color: rgba(224, 145, 42, .45); }

.gc-btn--danger { color: var(--gc-rose); }
.gc-btn--danger:hover, .gc-btn--danger:focus { color: var(--gc-rose); border-color: rgba(224, 86, 123, .45); }

.gc-btn--ghost { background: var(--gc-glass-soft); color: var(--gc-ink-soft); }
.gc-btn--ghost:hover, .gc-btn--ghost:focus { color: var(--gc-ink); }

.gc-btn.is-disabled,
.gc-btn[disabled] {
	opacity: .45;
	pointer-events: none;
	box-shadow: none;
	transform: none;
}

/* --------------------------------------------------------------------------
   7. Statuts
   -------------------------------------------------------------------------- */

.gc-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
	border: 1px solid transparent;
}

.gc-badge::before {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .45);
}

.gc-badge--ok      { color: var(--gc-green);     background: rgba(47, 168, 118, .13); border-color: rgba(47, 168, 118, .30); }
.gc-badge--wait    { color: var(--gc-amber);     background: rgba(224, 145, 42, .13); border-color: rgba(224, 145, 42, .30); }
.gc-badge--run     { color: var(--gc-blue-deep); background: rgba(91, 124, 250, .13); border-color: rgba(91, 124, 250, .30); }
.gc-badge--fail    { color: var(--gc-rose);      background: rgba(224, 86, 123, .13); border-color: rgba(224, 86, 123, .30); }
.gc-badge--off     { color: var(--gc-ink-soft);  background: rgba(107, 117, 148, .12); border-color: rgba(107, 117, 148, .26); }
.gc-badge--neutral { color: var(--gc-ink-faint); background: rgba(154, 163, 189, .12); border-color: rgba(154, 163, 189, .26); }

/* Le halo pulse tant que l'on attend une action du client ou de la banque */
.gc-badge--wait::before,
.gc-badge--run::before { animation: gc-blink 2s ease-in-out infinite; }

@keyframes gc-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* --------------------------------------------------------------------------
   8. Bloc d'état (mandat / échéancier / conditions)
   -------------------------------------------------------------------------- */

.gc-state {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}

.gc-state-item { min-width: 0; }

.gc-state-item .gc-label { margin-bottom: 7px; }

.gc-state-val {
	font-size: 16px;
	font-weight: 700;
	color: var(--gc-ink);
	line-height: 1.3;
}

.gc-state-val small {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	font-weight: 600;
	color: var(--gc-ink-soft);
}

/* Références techniques GoCardless */
.gc-refs {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 4px;
}

.gc-ref {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 8px;
	border: 1px solid var(--gc-stroke-soft);
	background: #ffffff;
	font-size: 11px;
	color: var(--gc-ink-soft);
}

.gc-ref b { font-weight: 700; color: var(--gc-ink-faint); text-transform: uppercase; letter-spacing: .05em; font-size: 10px; }
.gc-ref code { font-family: Menlo, Consolas, monospace; font-size: 11px; color: var(--gc-ink); background: none; padding: 0; }

/* --------------------------------------------------------------------------
   9. Lien de signature
   -------------------------------------------------------------------------- */

.gc-linkrow { display: flex; gap: 9px; align-items: stretch; flex-wrap: wrap; }
.gc-linkrow .gc-input { flex: 1 1 260px; }

.gc-hint {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--gc-ink-soft);
	line-height: 1.5;
}

.gc-hint .fa { margin-top: 2px; color: var(--gc-blue); }

/* --------------------------------------------------------------------------
   10. Alertes
   -------------------------------------------------------------------------- */

.gc-alert {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 13px 16px;
	margin-bottom: 14px;
	border-radius: var(--gc-r-md);
	border: 1px solid var(--gc-stroke);
	background: var(--gc-glass);
	box-shadow: var(--gc-shadow-inset);
	font-size: 13px;
	line-height: 1.55;
	color: var(--gc-ink);
}

.gc-alert .fa { flex: none; margin-top: 2px; font-size: 15px; }
.gc-alert code { font-family: Menlo, Consolas, monospace; font-size: 12px; background: rgba(91, 124, 250, .10); color: var(--gc-blue-deep); padding: 1px 6px; border-radius: 5px; }

.gc-alert--info  { border-left: 3px solid var(--gc-blue); }
.gc-alert--info .fa { color: var(--gc-blue); }
.gc-alert--warn  { border-left: 3px solid var(--gc-amber); }
.gc-alert--warn .fa { color: var(--gc-amber); }

/* --------------------------------------------------------------------------
   11. Tableau des transactions
   -------------------------------------------------------------------------- */

.gc-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.gc-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 13px;
	min-width: 640px;
}

.gc-table thead th {
	padding: 11px 14px;
	text-align: left;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--gc-ink-soft);
	background: #f7f9fd;
	border-bottom: 1px solid var(--gc-stroke-soft);
	white-space: nowrap;
}

.gc-table tbody td {
	padding: 11px 14px;
	border-bottom: 1px solid rgba(120, 140, 190, .10);
	color: var(--gc-ink);
	vertical-align: middle;
}

.gc-table tbody tr { transition: background .25s var(--gc-ease); }
.gc-table tbody tr:hover { background: #f7f9fd; }
.gc-table tbody tr:last-child td { border-bottom: none; }

.gc-table .gc-num { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gc-table .gc-muted { color: var(--gc-ink-faint); }
.gc-table .gc-detail { font-size: 12px; color: var(--gc-ink-soft); line-height: 1.45; }

/* Ligne impayée : liseré rose à gauche */
.gc-table tbody tr.is-impaye { background: rgba(224, 86, 123, .06); }
.gc-table tbody tr.is-impaye:hover { background: rgba(224, 86, 123, .11); }
.gc-table tbody tr.is-impaye td:first-child { box-shadow: inset 3px 0 0 var(--gc-rose); }

.gc-type {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 7px;
	font-size: 11px;
	font-weight: 700;
	background: rgba(91, 124, 250, .10);
	color: var(--gc-blue-deep);
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   12. État vide
   -------------------------------------------------------------------------- */

.gc-empty {
	text-align: center;
	padding: 34px 20px;
	color: var(--gc-ink-soft);
}

.gc-empty-mark {
	width: 54px;
	height: 54px;
	margin: 0 auto 14px;
	border-radius: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: var(--gc-blue);
	border: 1px solid var(--gc-stroke);
	background: var(--gc-glass-strong);
	box-shadow: var(--gc-shadow-inset);
}

.gc-empty h5 {
	margin: 0 0 6px;
	font-family: "Montserrat", "Nunito", sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: var(--gc-ink);
}

.gc-empty p { margin: 0 auto; max-width: 460px; font-size: 13px; line-height: 1.6; }

/* --------------------------------------------------------------------------
   13. Tuiles de synthèse (page de suivi)
   -------------------------------------------------------------------------- */

.gc-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 14px;
	margin-bottom: 16px;
}

.gc-stat {
	position: relative;
	overflow: hidden;
	padding: 18px 20px;
	border-radius: var(--gc-r-md);
	border: 1px solid var(--gc-stroke);
	background: var(--gc-glass);
	box-shadow: var(--gc-shadow), var(--gc-shadow-inset);
	transition: transform .3s var(--gc-ease), box-shadow .3s var(--gc-ease);
}

.gc-stat:hover { transform: translateY(-3px); box-shadow: var(--gc-shadow-lift), var(--gc-shadow-inset); }

.gc-stat-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.gc-stat-lab {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--gc-ink-soft);
}

.gc-stat-ico {
	width: 34px;
	height: 34px;
	border-radius: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	color: #fff;
}

.gc-stat--total .gc-stat-ico { background: linear-gradient(140deg, var(--gc-blue), var(--gc-violet)); box-shadow: 0 6px 16px rgba(91, 124, 250, .34); }
.gc-stat--ok    .gc-stat-ico { background: linear-gradient(140deg, var(--gc-teal), var(--gc-green)); box-shadow: 0 6px 16px rgba(47, 168, 118, .32); }
.gc-stat--wait  .gc-stat-ico { background: linear-gradient(140deg, #f5bd64, var(--gc-amber)); box-shadow: 0 6px 16px rgba(224, 145, 42, .30); }
.gc-stat--ko    .gc-stat-ico { background: linear-gradient(140deg, #f2789b, var(--gc-rose)); box-shadow: 0 6px 16px rgba(224, 86, 123, .32); }

.gc-stat-val {
	font-family: "Montserrat", "Nunito", sans-serif;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.02em;
	color: var(--gc-ink);
	font-variant-numeric: tabular-nums;
}

.gc-stat--ok   .gc-stat-val { color: var(--gc-green); }
.gc-stat--wait .gc-stat-val { color: var(--gc-amber); }
.gc-stat--ko   .gc-stat-val { color: var(--gc-rose); }

.gc-stat-sub { margin-top: 4px; font-size: 12px; color: var(--gc-ink-soft); }

/* --------------------------------------------------------------------------
   14. Grille JDGrid habillée en verre
   La grille garde sa mécanique (tri, filtres, export) : on n'habille que les
   cellules rendues par les callbacks on_display de JDGridManager.
   -------------------------------------------------------------------------- */

.gc-gridwrap { padding: 8px; }
.gc-gridwrap .jdgridbox,
.gc-gridwrap .jdgridbox table { background: transparent; }

.gc-gridwrap .jdgridtb > thead > tr > th {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--gc-ink-soft);
	background: #f7f9fd;
	border-color: var(--gc-stroke-soft);
}

.gc-gridwrap .jdgridtb > tbody > tr > td {
	border-color: rgba(120, 140, 190, .10);
	vertical-align: middle;
	color: var(--gc-ink);
}

.gc-gridwrap .jdgridtb > tbody > tr:hover > td { background: #f7f9fd; }

/* Cellules rendues par JDGridManager */
.gc-cell-client {
	display: block;
	padding: 6px 10px;
	border-radius: 9px;
	border: 1px solid var(--gc-stroke-soft);
	background: #ffffff;
	color: var(--gc-ink);
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	transition: background .25s var(--gc-ease), border-color .25s var(--gc-ease);
}

.gc-cell-client:hover,
.gc-cell-client:focus {
	text-decoration: none;
	color: var(--gc-blue-deep);
	background: #f2f6ff;
	border-color: rgba(91, 124, 250, .35);
}

.gc-cell-muted { color: var(--gc-ink-faint); }
.gc-cell-cause { font-size: 12px; color: var(--gc-rose); font-weight: 600; }

/* Zone de suivi juste reconstruite par l'AJAX : halo bref pour situer le changement */
.gc-refreshed > .gc-card {
	animation: gc-flash 1.1s var(--gc-ease);
}

@keyframes gc-flash {
	0%   { box-shadow: 0 0 0 0 rgba(91, 124, 250, .40), var(--gc-shadow), var(--gc-shadow-inset); }
	100% { box-shadow: 0 0 0 10px rgba(91, 124, 250, 0), var(--gc-shadow), var(--gc-shadow-inset); }
}

/* --------------------------------------------------------------------------
   15. Entrée de navigation dans la sidebar
   La sidebar du CRM est bleu nuit (#394263) : le picto jaune y ressort tel quel,
   le mot-clé utilise sa variante claire. On reprend la mécanique d'opacité des
   autres icônes de nav (atténuées au repos, pleines au survol et sur l'actif).
   -------------------------------------------------------------------------- */

.sidebar-nav a > .gc-nav-icon {
	height: 14px;
	opacity: .75;
	background: url('/crm/img/gocardless_picto.png') center center no-repeat;
	background-size: contain;
	vertical-align: -2px;
}

.sidebar-nav a:hover > .gc-nav-icon,
.sidebar-nav a.active > .gc-nav-icon,
.sidebar-nav li.active > a > .gc-nav-icon { opacity: 1; }

.gc-nav-wordmark {
	height: 10px;
	width: auto;
	vertical-align: baseline;
	opacity: .85;
	transition: opacity .2s ease-out;
}

.sidebar-nav a:hover .gc-nav-wordmark,
.sidebar-nav a.active .gc-nav-wordmark,
.sidebar-nav li.active > a .gc-nav-wordmark { opacity: 1; }

/* --------------------------------------------------------------------------
   16. Adaptations écran / accessibilité
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
	.gc-inner { padding: 18px 16px 20px; }
	.gc-steps { flex-wrap: wrap; gap: 14px 0; }
	.gc-step { flex: 1 1 50%; }
	.gc-step::before { display: none; }
}

@media (max-width: 600px) {
	.gc-head { flex-direction: column; align-items: flex-start; }
	.gc-head-actions { width: 100%; }
	.gc-btn { flex: 1 1 auto; }
	.gc-stat-val { font-size: 22px; }
	.gc-step { flex: 1 1 100%; display: flex; align-items: center; gap: 11px; text-align: left; }
	.gc-step-dot { margin: 0; }
}

/* Mouvement réduit : on coupe halos, pulsations et reflets */
@media (prefers-reduced-motion: reduce) {
	.gc-step.is-current .gc-step-dot,
	.gc-refreshed > .gc-card,
	.gc-badge::before { animation: none !important; }

	.gc-btn, .gc-stat, .gc-input, .gc-table tbody tr { transition: none !important; }
	.gc-btn:hover, .gc-stat:hover { transform: none; }
	.gc-btn--primary::after,
	.gc-btn--brand::after { display: none; }
	.gc-chevron { transition: none; }
}

/* Impression : le verre devient du papier */
@media print {
	.gc-panel { background: #fff; box-shadow: none; }
	.gc-actions { display: none !important; }
}
