/* =====================================================================
   BOOKING — styles de base
   ===================================================================== */

* { box-sizing: border-box; }

body {
	margin: 0;
	background: #f4f5f7;
	color: #1d1f23;
	font-family: "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
}

a { color: inherit; text-decoration: none; }

/* ---------- barre de navigation (affichee immediatement) ---------- */
.bk-nav {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 0 24px;
	height: 56px;
	background: #14161a;
	color: #fff;
}
.bk-nav-logo { display: flex; align-items: center; }
.bk-nav-logo img { height: 30px; width: auto; display: block; }
.bk-nav-liens { display: flex; gap: 18px; flex: 1; }
.bk-nav-liens a { padding: 6px 2px; opacity: .75; border-bottom: 2px solid transparent; }
.bk-nav-liens a:hover { opacity: 1; }
.bk-nav-liens a.actif { opacity: 1; border-bottom-color: #f2b705; }
.bk-nav-user { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.bk-nav-role { font-size: 11px; text-transform: uppercase; color: #f2b705; }
.bk-nav-nom  { font-size: 13px; opacity: .85; }
.bk-nav-deconnexion { margin-left: 18px; font-size: 12px; opacity: .6; cursor: pointer; }
.bk-nav-deconnexion:hover { opacity: 1; }
.bk-nav-espace { font-size: 15px; font-weight: 600; }

/* bandeau : staff consultant un portail client */
.bk-bandeau-staff {
	background: #fdf0d5;
	color: #8a5a00;
	font-size: 13px;
	text-align: center;
	padding: 8px 16px;
	border-bottom: 1px solid #f0e2bf;
}

/* ---------- landing / 404 ---------- */
.bk-landing-body { background: #14161a; }
.bk-landing {
	max-width: 460px;
	margin: 0 auto;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	color: #e6e8ec;
}
.bk-landing-logo { height: 54px; width: auto; margin-bottom: 28px; }
.bk-landing h1 { color: #fff; font-size: 24px; margin: 0 0 14px; }
.bk-landing p { color: #9aa1ac; line-height: 1.6; margin: 0 0 18px; }
.bk-landing-redir { color: #f2b705 !important; font-size: 14px; }
.bk-landing-bouton {
	display: inline-block;
	margin-top: 6px;
	padding: 11px 22px;
	background: #f2b705;
	color: #14161a;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
}
.bk-landing-bouton:hover { background: #ffca2b; }

/* ---------- contenu : fondu (regle UX n°1) ---------- */
.bk-main {
	max-width: 1100px;
	width: 100%;              /* /!\ evite le shrink-wrap quand .bk-main est un flex-item (shell) */
	margin: 0 auto;
	padding: 28px 24px 60px;
	opacity: 0;
	transition: opacity .3s ease;
}
.bk-main.bk-charge { opacity: 1; }


/* =====================================================================
   LAYOUT ADMIN — sidebar gauche + barre du haut (facon Comet)
   ===================================================================== */
body.bk-app { display: flex; min-height: 100vh; }

.bk-sidebar {
	width: 216px;
	flex-shrink: 0;
	background: #fff;
	border-right: 1px solid #eceef1;
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	height: 100vh;
	transition: width .2s ease;
}
.bk-sidebar.reduit { width: 62px; }
.bk-sidebar.reduit .bk-sb-label { display: none; }
.bk-sidebar.reduit .bk-sidebar-nav a,
.bk-sidebar.reduit .bk-sidebar-bas a { justify-content: center; padding-left: 0; padding-right: 0; }

.bk-sidebar-haut { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; border-bottom: 1px solid #eceef1; }
.bk-sidebar-logo { height: 24px; width: auto; }
.bk-sidebar.reduit .bk-sidebar-logo { display: none; }
.bk-sidebar.reduit .bk-sidebar-haut { justify-content: center; }
.bk-burger { width: 34px; height: 34px; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 4px; border-radius: 8px; }
.bk-burger:hover { background: #f4f5f7; }
.bk-burger span { display: block; height: 2px; width: 18px; background: #4b5563; border-radius: 2px; margin: 0 auto; }

.bk-sidebar-nav { flex: 1; padding: 12px 0; display: flex; flex-direction: column; gap: 2px; }
.bk-sidebar-nav a, .bk-sidebar-bas a {
	display: flex; align-items: center; gap: 12px;
	padding: 11px 18px; font-size: 14px; color: #6b7280; cursor: pointer;
	border-right: 2px solid transparent;
}
.bk-sidebar-nav a:hover { background: #f9fafb; color: #1d1f23; }
.bk-sidebar-nav a.actif { background: #f3f4f6; color: #111827; font-weight: 600; border-right-color: #14161a; }
.bk-sb-icone { font-size: 18px; width: 20px; text-align: center; flex-shrink: 0; }
.bk-sb-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 10px; background: #e11d2a; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.bk-sidebar.reduit .bk-sb-badge { display: none; }

/* ---- barre d'actions + vue calendrier (partage client / prestations admin) ---- */
.bk-presta-topactions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bk-vue-toggle { margin-top: 0; }
.bk-vue-toggle .bk-toggle-btn { flex: 0 0 auto; padding: 8px 16px; }
#bk_archives_btn.actif { background: #14161a; color: #fff; border-color: #14161a; }
.bk-f-date { width: auto; }
.bk-f-date-x { cursor: pointer; color: #9aa1ac; font-size: 18px; line-height: 1; padding: 0 2px; text-decoration: none; }
.bk-f-date-x:hover { color: #a3352a; }

.bk-presta-tete-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; flex: 0 0 auto; }
.bk-presta-titre-zone { flex: 1 1 auto; min-width: 0; }
.bk-presta-select { max-width: 150px; }
.bk-icone-btn { padding: 6px 9px; font-size: 14px; line-height: 1; border: 1px solid #e0e2e7; background: #fff; border-radius: 8px; cursor: pointer; text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
.bk-icone-btn:hover { background: #f4f5f7; }
.bk-mini-btn { display: inline-block; padding: 6px 12px; font-size: 13px; font-weight: 600; border-radius: 8px; text-decoration: none; cursor: pointer; }
.bk-btn-vert { border: 1px solid #bfe6c9; background: #eafaf0; color: #1e6b3a; }
.bk-btn-vert:hover { background: #d8f3e2; }
a.bk-bouton-secondaire { text-decoration: none; }
.bk-attente-chiffrage { display: inline-block; font-size: 12px; font-weight: 600; color: #92600b; background: #fff4e0; border-radius: 8px; padding: 6px 12px; }

/* ---- chiffrage : total prestation + bloc prix par mission ---- */
.bk-presta-total { font-size: 13px; color: #37414f; margin-top: 5px; }
.bk-presta-total strong { font-size: 15px; color: #14161a; }

.bk-mlp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed #eceef1; font-size: 13px; color: #37414f; }
.bk-mlp-b { display: inline-flex; flex-direction: column; line-height: 1.25; }
.bk-mlp-lib { font-size: 10px; text-transform: uppercase; letter-spacing: .3px; color: #9aa1ac; }
.bk-mlp-b s { color: #9aa1ac; }
.bk-mlp-fl { color: #cbd0d6; font-weight: 700; align-self: center; }
.bk-mlp-total strong { color: #14161a; font-size: 14px; }

.bk-calendrier { border: 1px solid #e7e9ee; border-radius: 12px; background: #fff; overflow: hidden; }
.bk-cal-tete { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f0f1f4; }
.bk-cal-mois { font-size: 16px; font-weight: 700; color: #14161a; display: flex; align-items: center; gap: 12px; }
.bk-cal-auj { font-size: 12px; font-weight: 600; color: #4b5563; background: #f4f5f7; border: 1px solid #e0e2e7; border-radius: 20px; padding: 3px 12px; cursor: pointer; }
.bk-cal-auj:hover { background: #e9ebef; }
.bk-cal-nav { font-size: 20px; line-height: 1; color: #4b5563; background: #fff; border: 1px solid #e0e2e7; border-radius: 8px; width: 34px; height: 34px; cursor: pointer; }
.bk-cal-nav:hover { background: #f4f5f7; }
.bk-cal-grille { display: grid; grid-template-columns: repeat(7, 1fr); }
.bk-cal-jh { text-align: center; font-size: 12px; font-weight: 600; color: #9aa1ac; padding: 8px 0; border-bottom: 1px solid #f0f1f4; }
.bk-cal-cell { min-height: 96px; border-right: 1px solid #f4f5f7; border-bottom: 1px solid #f4f5f7; padding: 4px 5px 6px; }
.bk-cal-cell:nth-child(7n) { border-right: 0; }
.bk-cal-vide { background: #fafbfc; }
.bk-cal-num { font-size: 12px; color: #6b7280; text-align: right; padding: 2px 4px; }
.bk-cal-auj-num { display: inline-block; float: right; background: #14161a; color: #fff; border-radius: 50%; width: 22px; height: 22px; line-height: 22px; text-align: center; }
.bk-cal-chip { font-size: 11px; line-height: 1.25; border-radius: 6px; padding: 3px 6px; margin-top: 4px; cursor: default; border-left: 3px solid #cbd0d6; background: #f4f5f7; color: #37414f; overflow: hidden; }
.bk-cal-chip .bk-cal-h { font-weight: 700; }
.bk-cal-site { display: block; color: #6b7280; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-cal-chip-a_valider, .bk-cal-chip-propose { background: #fff7e6; border-left-color: #eab308; color: #92600b; }
.bk-cal-chip-valide, .bk-cal-chip-accepte  { background: #eafaf0; border-left-color: #16a34a; color: #1e6b3a; }
.bk-cal-chip-annule, .bk-cal-chip-refuse   { background: #f0f1f4; border-left-color: #cbd0d6; color: #6b7280; }
@media (max-width: 700px) {
	.bk-cal-cell { min-height: 70px; }
	.bk-cal-site { display: none; }
}
.bk-sidebar-bas { border-top: 1px solid #eceef1; padding: 8px 0; }
.bk-sidebar-bas a { color: #9aa1ac; }
.bk-sidebar-bas a:hover { color: #1d1f23; background: #f9fafb; }

.bk-shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.bk-topbar {
	height: 56px;
	background: #fff;
	border-bottom: 1px solid #eceef1;
	display: flex; align-items: center; gap: 16px;
	padding: 0 22px;
	position: sticky; top: 0; z-index: 20;
}
.bk-topbar-titre { flex: 1; font-weight: 700; font-size: 16px; color: #111827; }
.bk-topbar-brand { display: flex; align-items: center; gap: 8px; color: #111827; font-weight: 600; }
.bk-topbar-brand img { height: 22px; width: auto; }
.bk-topbar-user { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.bk-avatar { width: 34px; height: 34px; border-radius: 50%; background: #14161a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.bk-topbar-infos { display: flex; flex-direction: column; line-height: 1.25; }
.bk-topbar-nom { font-size: 13px; font-weight: 600; color: #1d1f23; }
.bk-topbar-mail { font-size: 11px; color: #9aa1ac; }

/* dans le shell, le contenu occupe une large colonne */
.bk-shell .bk-main { max-width: 1340px; }

@media (max-width: 640px) {
	.bk-sidebar { width: 62px; }
	.bk-sidebar .bk-sb-label { display: none; }
	.bk-topbar-brand span, .bk-topbar-infos { display: none; }
}


/* =====================================================================
   CARTES (grille) — ex : les sites
   ===================================================================== */
.bk-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.bk-carte-site { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.07); display: flex; flex-direction: column; }
.bk-carte-photo { height: 150px; background: linear-gradient(135deg, #2b2f36, #14161a); background-size: cover; background-position: center; position: relative; }
.bk-carte-photo-vide { display: flex; align-items: center; justify-content: center; font-size: 40px; opacity: .35; color: #fff; }
.bk-carte-corps { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bk-carte-titre { font-size: 16px; font-weight: 700; color: #111827; }
.bk-carte-adresse { display: flex; gap: 6px; font-size: 13px; color: #6b7280; line-height: 1.4; }
.bk-carte-badges { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.bk-badge-role { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.bk-badge-role .etiq { background: #ede9fe; color: #5b3fa6; border-radius: 5px; padding: 1px 7px; font-weight: 600; font-size: 11px; }
.bk-badge-repas { align-self: flex-start; background: #e6f4ea; color: #1e6b3a; border-radius: 5px; padding: 2px 8px; font-size: 11px; font-weight: 600; }
.bk-badge-repas.non { background: #f0f1f4; color: #9aa1ac; }
.bk-carte-actions { display: flex; gap: 8px; padding: 0 18px 16px; }
.bk-carte-actions button { flex: 1; padding: 8px; border: 1px solid #e0e2e7; background: #fff; border-radius: 8px; cursor: pointer; font-size: 13px; }
.bk-carte-actions button:hover { background: #f4f5f7; }
.bk-carte-actions .bk-btn-modifier { flex: 0 0 44px; }

h1 { font-size: 22px; margin: 0 0 4px; }
.bk-discret { color: #6b7280; margin: 0 0 22px; }

/* texte explicatif sous le titre d'une page (a quoi sert / pour qui) */
.bk-intro { color: #6b7280; font-size: 13px; line-height: 1.5; max-width: 760px; margin: 0 0 22px; }
.bk-intro strong { color: #4b5563; }

.bk-entete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.bk-sous-titre { color: #9aa1ac; font-size: 13px; margin: 2px 0 0; }

/* ---------- boutons ---------- */
.bk-bouton, .bk-bouton-secondaire {
	display: inline-block;
	padding: 9px 16px;
	border: 0;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
}
.bk-bouton { background: #14161a; color: #fff; }
.bk-bouton:hover { background: #2b2f36; }
.bk-bouton-secondaire { background: #e6e8ec; color: #1d1f23; }
.bk-bouton-secondaire:hover { background: #d8dbe1; }
.bk-lien-supprimer { color: #c0392b; cursor: pointer; font-size: 13px; }

/* ---------- tableau ---------- */
.bk-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.bk-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: #6b7280; padding: 12px 14px; background: #fafbfc; border-bottom: 1px solid #e6e8ec; }
.bk-table td { padding: 12px 14px; border-bottom: 1px solid #f0f1f4; }
.bk-table tr:last-child td { border-bottom: 0; }
.bk-table tr:hover td { background: #fbfcfd; }
.bk-col-actions { width: 90px; }
.bk-vide { text-align: center; color: #9aa1ac; padding: 26px; }

/* ---------- cartes / tuiles ---------- */
.bk-carte { background: #fff; border-radius: 8px; padding: 26px; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.bk-carte-centree { max-width: 460px; margin: 40px auto; text-align: center; }
.bk-tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.bk-tuile { display: flex; flex-direction: column; gap: 4px; background: #fff; border-radius: 8px; padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.bk-tuile:hover { box-shadow: 0 3px 10px rgba(0,0,0,.10); }
.bk-tuile-titre { font-weight: 600; }
.bk-tuile-desc { font-size: 12px; color: #6b7280; }
.bk-tuile-inactive { opacity: .5; }

/* ---------- formulaires ---------- */
label { display: block; font-size: 12px; color: #4b5563; margin: 14px 0 5px; }
.bk-obligatoire { color: #c0392b; }
input[type=text], input[type=email], textarea, select {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid #d5d8de;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: #14161a; }

/* regle UX n°2 : champ obligatoire manquant */
.bk-erreur { border-color: #e05a4f !important; background: #fdf3f2 !important; }

.bk-case { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: #1d1f23; }
.bk-case input { width: auto; }
.bk-deux-colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- modale ---------- */
.bk-modale { display: none; position: fixed; inset: 0; background: rgba(15,17,21,.45); z-index: 9999; }
.bk-modale.ouverte { display: flex; align-items: center; justify-content: center; }
.bk-modale-boite { background: #fff; width: 560px; max-width: calc(100% - 32px); max-height: 90vh; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; }
.bk-modale-entete { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #eceef1; font-weight: 600; }
.bk-modale-fermer { border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: #6b7280; }
.bk-modale-corps { padding: 4px 20px 20px; overflow-y: auto; }
.bk-modale-pied { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid #eceef1; background: #fafbfc; }

@media (max-width: 700px) {
	.bk-deux-colonnes { grid-template-columns: 1fr; }
	.bk-nav { gap: 14px; padding: 0 14px; }
}

/* ---- historique (timeline prestation + missions) ---- */
.bk-histo-vide { color: #9aa1ac; font-size: 14px; font-style: italic; padding: 10px 0; }
.bk-histo-liste { display: flex; flex-direction: column; gap: 8px; }
.bk-histo-item { border: 1px solid #eceef1; border-left: 3px solid #cbd0d6; border-radius: 10px; padding: 10px 12px; background: #fff; }
.bk-histo-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bk-histo-action { font-weight: 600; font-size: 14px; color: #1d1f23; }
.bk-histo-date { font-size: 12px; color: #9aa1ac; white-space: nowrap; }
.bk-histo-det { font-size: 13px; color: #4b5563; margin-top: 3px; }
.bk-histo-auteur { font-size: 11px; color: #9aa1ac; margin-top: 4px; }
.bk-histo-prestation_creee { border-left-color: #14161a; }
.bk-histo-statut, .bk-histo-mission_statut { border-left-color: #eab308; }
.bk-histo-devis_genere { border-left-color: #2563eb; }
.bk-histo-technicien_assigne { border-left-color: #16a34a; }
.bk-histo-mission_supprimee, .bk-histo-technicien_retire { border-left-color: #ef4444; }

/* ---- sélecteur de statut prestation (admin) ---- */
.bk-presta-select { font-size: 13px; font-weight: 600; border: 1px solid #d7dbe0; border-radius: 8px; padding: 5px 10px; cursor: pointer; background: #fff; }
.bk-presta-select.bk-pstatut-a_valider { background: #fff4e0; color: #92600b; border-color: #f0d9a8; }
.bk-presta-select.bk-pstatut-valide    { background: #e6f4ea; color: #1e6b3a; border-color: #bfe6c9; }
.bk-presta-select.bk-pstatut-annule    { background: #f0f1f4; color: #6b7280; border-color: #d7dbe0; }

/* ---- modale mission : formulaire + historique (2 colonnes) ---- */
#bk_mission_modale .bk-modale-boite { max-width: 860px; width: 94%; }
.bk-mission-2col { display: flex; gap: 24px; align-items: flex-start; }
.bk-mission-form-col { flex: 1 1 auto; min-width: 0; }
.bk-mission-histo { flex: 0 0 300px; align-self: stretch; border-left: 1px solid #eceef1; padding-left: 20px; }
.bk-mission-histo .bk-section-titre { font-size: 14px; font-weight: 600; color: #1d1f23; margin: 0 0 12px; }
@media (max-width: 760px) {
	.bk-mission-2col { flex-direction: column; }
	.bk-mission-histo { flex: none; width: 100%; border-left: 0; padding-left: 0; border-top: 1px solid #eceef1; padding-top: 14px; }
}

/* ---- avancement du dossier (staffing) sur la carte prestation ---- */
.bk-presta-avance { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.bk-presta-avance-bar { flex: 0 0 140px; height: 7px; background: #eceef1; border-radius: 20px; overflow: hidden; }
.bk-presta-avance-bar span { display: block; height: 100%; background: #eab308; border-radius: 20px; transition: width .3s; }
.bk-presta-avance-bar.complet span { background: #16a34a; }
.bk-presta-avance-txt { font-size: 12px; color: #6b7280; font-weight: 600; }

/* ---- carte prestation admin épurée : barre + lignes mission compactes ---- */
.bk-presta-barre { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px 12px; }
.bk-presta-barre .bk-presta-avance { margin-top: 0; }
.bk-presta-barre .bk-presta-total { margin-top: 0; white-space: nowrap; }

.bk-aml { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-top: 0.5px solid #f0f1f4; }
.bk-aml:first-child { border-top: 0; }
.bk-aml-main { flex: 1 1 auto; min-width: 0; }
.bk-aml-comp { font-size: 14px; font-weight: 600; color: #1d1f23; }
.bk-aml-niv { font-size: 11px; font-weight: 400; color: #6b7280; background: #f4f5f7; border-radius: 20px; padding: 1px 7px; margin-left: 5px; }
.bk-aml-detail { font-size: 12px; color: #6b7280; margin-top: 2px; }
.bk-aml-tech { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; font-size: 13px; }
.bk-aml-ava { width: 22px; height: 22px; border-radius: 50%; background: #e6f1fb; color: #185fa5; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.bk-aml-tnom { color: #1d1f23; }
.bk-aml-assign { color: #9aa1ac; }
.bk-aml-prix { text-align: right; flex: 0 0 auto; min-width: 78px; }
.bk-aml-total { font-size: 14px; font-weight: 600; color: #1d1f23; }
.bk-aml-hint { font-size: 11px; color: #9aa1ac; }
.bk-aml-edit { cursor: pointer; font-size: 15px; flex: 0 0 auto; opacity: .65; }
.bk-aml-edit:hover { opacity: 1; }

.bk-statut { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 20px; padding: 2px 9px; }
.bk-statut-propose { background: #fff4e0; color: #92600b; }
.bk-statut-accepte { background: #e6f4ea; color: #1e6b3a; }
.bk-statut-refuse  { background: #fce8e6; color: #a3352a; }
.bk-statut-annule  { background: #f0f1f4; color: #6b7280; }

@media (max-width: 640px) {
	.bk-aml { flex-wrap: wrap; }
	.bk-aml-tech { order: 3; width: 100%; }
}

/* ---- picker technicien (recherche + liste + ajout non-tech) ---- */
.bk-tech-pick { position: relative; }
.bk-tech-input { width: 100%; padding-right: 58px; }
.bk-tech-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; background: none; cursor: pointer; color: #6b7280; font-size: 13px; border-radius: 6px; }
.bk-tech-toggle:hover { background: #f4f5f7; }
.bk-tech-clear { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #9aa1ac; font-size: 16px; line-height: 1; padding: 2px 4px; }
.bk-tech-clear:hover { color: #a3352a; }
.bk-tech-results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid #e0e2e7; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.08); max-height: 260px; overflow-y: auto; display: none; }
.bk-tech-results.ouvert { display: block; }
.bk-tech-res { padding: 8px 12px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 0.5px solid #f4f5f7; }
.bk-tech-res:first-child { border-top: 0; }
.bk-tech-res:hover { background: #f7fafd; }
.bk-tech-nom { font-size: 14px; color: #1d1f23; }
.bk-tech-tag { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; color: #185fa5; background: #e6f1fb; border-radius: 20px; padding: 2px 8px; }
.bk-tech-vide { padding: 10px 12px; color: #9aa1ac; font-size: 13px; font-style: italic; }
.bk-tech-nontech { flex-direction: column; align-items: stretch; cursor: default; background: #fffdf7; }
.bk-tech-r1 { display: flex; align-items: baseline; gap: 8px; justify-content: space-between; }
.bk-tech-mail { font-size: 11px; color: #9aa1ac; }
.bk-tech-r2 { display: flex; align-items: center; gap: 12px; margin-top: 5px; flex-wrap: wrap; }
.bk-tech-note { font-size: 11px; color: #92600b; }
.bk-tech-act { font-size: 12px; font-weight: 600; color: #185fa5; cursor: pointer; }
.bk-tech-act:hover { text-decoration: underline; }
.bk-tech-act-plus { color: #1e6b3a; }

/* ---- usurpation d'identité (staff -> espace client) ---- */
/* barre fixe en haut : hors du flux flex du shell (sinon elle devient une colonne) */
.bk-usurp-bandeau { position: fixed; top: 0; left: 0; right: 0; z-index: 9500; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; min-height: 38px; padding: 7px 16px; background: #4b2e05; color: #ffe6b0; font-size: 13.5px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.bk-usurp-bandeau strong { color: #fff; }
.bk-usurp-quitter { display: inline-block; padding: 5px 14px; border: 1px solid #ffcf7a; border-radius: 20px; color: #ffe6b0; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.bk-usurp-quitter:hover { background: #ffcf7a; color: #4b2e05; }
/* on décale tout le contenu sous la barre (le shell est en flex, d'où :has) */
body:has(> .bk-usurp-bandeau) { padding-top: 38px; }
body.bk-app:has(> .bk-usurp-bandeau) .bk-sidebar { top: 38px; height: calc(100vh - 38px); }
.bk-usurp-lien { color: #185fa5; cursor: pointer; }
.bk-usurp-lien:hover { text-decoration: underline; }
/* colonne actions de la liste utilisateurs : liens empilés, pas de coupe de mot */
.bk-col-actions { white-space: nowrap; }
.bk-col-actions a { display: block; line-height: 1.7; }

/* ---- header plateforme importé sur l'admin : décaler le shell sous la barre fixe (56px) ---- */
body.bk-mxheader { padding-top: 56px; }
body.bk-mxheader .mx-header-spacer { display: none; }
body.bk-mxheader .bk-sidebar { top: 56px; height: calc(100vh - 56px); }
/* header plateforme actif : on masque la topbar native de booking (admin) */
body.bk-mxheader .bk-topbar { display: none; }
/* header plateforme actif : plus de logo/burger en haut de sidebar (doublon), le menu remonte */
body.bk-mxheader .bk-sidebar-haut { display: none; }
