/* =====================================================================
   EGM GESTION — Charte de l'application (assets/css/egm.css)
   Reprise de docs/maquettes/egm-app.css (référence), puis compléments.
   Charger APRÈS bootstrap.min.css.
   ===================================================================== */
:root {
  --egm-violet: #36195B; --egm-violet-700: #2A1247; --egm-violet-500: #5B3A8C;
  --egm-lilas: #B98AE0; --egm-lilas-100: #F1E8FA;
  --egm-jaune: #F5C400; --egm-jaune-600: #D9AD00; --egm-jaune-100: #FFF6CC;
  --egm-fond: #F6F5FA; --egm-carte: #FFFFFF; --egm-texte: #1E1B2E; --egm-texte-doux: #6B6880; --egm-bordure: #E6E3EF;
  --egm-succes: #1E9E6A; --egm-info: #2F80ED; --egm-alerte: #F2994A; --egm-danger: #E04F5F; --egm-gris: #9A97A8;
  --egm-grad-1: linear-gradient(135deg, #36195B 0%, #7A4BB0 100%);
  --egm-grad-2: linear-gradient(135deg, #7A4BB0 0%, #B98AE0 100%);
  --egm-grad-3: linear-gradient(135deg, #F5C400 0%, #FFB547 100%);
  --egm-grad-4: linear-gradient(135deg, #2A1247 0%, #36195B 100%);
  --egm-grad-menu: linear-gradient(135deg, #36195B 0%, #B98AE0 100%);
  --egm-rayon: 12px; --egm-rayon-sm: 8px;
  --egm-ombre: 0 2px 12px rgba(54,25,91,.08); --egm-ombre-forte: 0 8px 24px rgba(54,25,91,.14);
  --egm-menu-largeur: 260px; --egm-barre-hauteur: 64px;

  --bs-primary: #36195B; --bs-primary-rgb: 54,25,91;
  --bs-warning: #F5C400; --bs-warning-rgb: 245,196,0;
  --bs-body-bg: #F6F5FA; --bs-body-color: #1E1B2E;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-font-size: .875rem; --bs-border-color: #E6E3EF; --bs-border-radius: 8px;
}

body { background: var(--egm-fond); color: var(--egm-texte); font-family: var(--bs-body-font-family); font-size: 14px; }
h1, h2, h3, h4, h5, .titre-page, .titre-carte, .kpi-valeur { font-family: 'Poppins', 'Inter', sans-serif; }
.nombre { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doux { color: var(--egm-texte-doux); }
:focus-visible { outline: 3px solid var(--egm-lilas); outline-offset: 2px; }

/* ---------- Menu latéral ---------- */
.egm-menu {
  position: fixed; inset: 0 auto 0 0; width: var(--egm-menu-largeur); background: #fff;
  border-right: 1px solid var(--egm-bordure); display: flex; flex-direction: column; z-index: 1030;
}
.egm-menu-logo {
  height: 72px; background: var(--egm-grad-menu); display: flex; align-items: center; gap: 10px; padding: 0 18px; color: #fff;
}
.egm-menu-logo .pastille-logo { background: #fff; border-radius: 10px; padding: 4px 6px; display: flex; }
.egm-menu-logo img { height: 36px; }
.egm-menu-logo .nom { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px; line-height: 1.1; }
.egm-menu-logo .nom small { display: block; font-weight: 400; font-size: 11px; opacity: .85; }
.egm-menu nav { overflow-y: auto; padding: 10px 10px 16px; flex: 1; }
.egm-menu .rubrique { font-size: 10.5px; font-weight: 600; letter-spacing: 1.2px; color: var(--egm-gris); text-transform: uppercase; margin: 16px 12px 6px; }
.egm-menu a.lien {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--egm-rayon-sm);
  color: var(--egm-texte); text-decoration: none; font-size: 13.5px; position: relative;
}
.egm-menu a.lien i { font-size: 17px; color: var(--egm-texte-doux); width: 20px; text-align: center; }
.egm-menu a.lien:hover { background: var(--egm-fond); }
.egm-menu a.lien.actif { background: var(--egm-lilas-100); color: var(--egm-violet); font-weight: 600; }
.egm-menu a.lien.actif i { color: var(--egm-violet); }
.egm-menu a.lien.actif::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--egm-jaune); }
.egm-menu .compteur { margin-left: auto; background: var(--egm-jaune); color: var(--egm-violet); font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 7px; }

/* ---------- Zone principale ---------- */
.egm-principal { margin-left: var(--egm-menu-largeur); min-height: 100vh; }
.egm-barre {
  height: var(--egm-barre-hauteur); background: #fff; border-bottom: 1px solid var(--egm-bordure);
  display: flex; align-items: center; gap: 14px; padding: 0 24px; position: sticky; top: 0; z-index: 1020;
}
.egm-barre .agence { border: 1px solid var(--egm-bordure); border-radius: 20px; padding: 6px 14px; font-weight: 600; font-size: 13px; color: var(--egm-violet); background: #fff; }
.egm-recherche { flex: 1; max-width: 480px; position: relative; }
.egm-recherche input { width: 100%; border: 1px solid var(--egm-bordure); background: var(--egm-fond); border-radius: 20px; padding: 8px 14px 8px 38px; font-size: 13px; }
.egm-recherche i { position: absolute; left: 14px; top: 9px; color: var(--egm-gris); }
.egm-barre .icone { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--egm-texte-doux); font-size: 18px; }
.egm-barre .icone .point { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--egm-danger); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.egm-barre .profil { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.egm-barre .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--egm-lilas-100); color: var(--egm-violet); display: grid; place-items: center; font-weight: 700; }
.egm-contenu { padding: 24px; }
.titre-page { font-size: 22px; font-weight: 600; margin: 0; color: var(--egm-texte); }
.fil { font-size: 12px; color: var(--egm-texte-doux); }

/* ---------- Cartes ---------- */
.carte { background: var(--egm-carte); border-radius: var(--egm-rayon); box-shadow: var(--egm-ombre); padding: 20px; height: 100%; }
.titre-carte { font-size: 16px; font-weight: 600; margin: 0; }
.sous-titre-carte { font-size: 12px; color: var(--egm-texte-doux); }

.kpi { border-radius: var(--egm-rayon); padding: 18px 20px; color: #fff; position: relative; overflow: hidden; height: 128px; box-shadow: var(--egm-ombre); text-decoration: none; display: block; }
.kpi:hover { box-shadow: var(--egm-ombre-forte); transform: translateY(-1px); color: #fff; }
.kpi.k1 { background: var(--egm-grad-1); } .kpi.k2 { background: var(--egm-grad-2); }
.kpi.k3 { background: var(--egm-grad-3); color: var(--egm-violet); } .kpi.k4 { background: var(--egm-grad-4); }
.kpi .kpi-libelle { font-size: 13px; opacity: .9; font-weight: 500; }
.kpi .kpi-valeur { font-size: 26px; font-weight: 700; margin-top: 6px; letter-spacing: .3px; }
.kpi .kpi-valeur small { font-size: 13px; font-weight: 500; opacity: .85; }
.kpi .kpi-tendance { font-size: 12px; opacity: .9; margin-top: 4px; }
.kpi .kpi-icone { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 20px; }
.kpi.k3 .kpi-icone { background: rgba(54,25,91,.12); }
.kpi::after { content: ''; position: absolute; right: -30px; bottom: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.08); }

/* ---------- Boutons ---------- */
.btn-egm { background: var(--egm-jaune); color: var(--egm-violet); font-weight: 700; border: none; border-radius: var(--egm-rayon-sm); padding: 8px 16px; }
.btn-egm:hover { background: var(--egm-jaune-600); color: var(--egm-violet); }
.btn-egm-contour { border: 1.5px solid var(--egm-violet); color: var(--egm-violet); background: #fff; font-weight: 600; border-radius: var(--egm-rayon-sm); padding: 7px 14px; }
.btn-egm-contour:hover { background: var(--egm-lilas-100); color: var(--egm-violet); }
.btn-whatsapp { background: #25D366; color: #fff; font-weight: 600; border: none; border-radius: var(--egm-rayon-sm); }
.btn-whatsapp:hover { background: #1EBE5A; color: #fff; }
.onglets-periode { display: inline-flex; background: var(--egm-fond); border-radius: 20px; padding: 3px; }
.onglets-periode button { border: none; background: none; font-size: 12px; padding: 5px 12px; border-radius: 16px; color: var(--egm-texte-doux); font-weight: 500; }
.onglets-periode button.actif { background: #fff; color: var(--egm-violet); font-weight: 600; box-shadow: 0 1px 4px rgba(54,25,91,.12); }

/* ---------- Badges de statut ---------- */
.statut { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 12px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.statut-brouillon { background: #EEEDF2; color: #6B6880; }
.statut-valide { background: var(--egm-lilas-100); color: var(--egm-violet); }
.statut-envoye { background: #E3EEFD; color: #1F63C6; }
.statut-accepte, .statut-paye, .statut-recu, .statut-termine, .statut-disponible { background: #E1F5EC; color: #167A52; }
.statut-partiel, .statut-recu-ecart, .statut-entretien { background: #FDEBDD; color: #B8641F; }
.statut-retard, .statut-refuse, .statut-panne { background: #FCE3E6; color: #B42A3A; }
.statut-transit, .statut-attente { background: var(--egm-jaune-100); color: var(--egm-violet); }
.statut-annule { background: #FCE3E6; color: #B42A3A; text-decoration: line-through; }
.statut-location { background: var(--egm-violet); color: #fff; }

/* ---------- Tableaux ---------- */
.table-egm { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table-egm thead th { background: var(--egm-violet); color: #fff; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; padding: 11px 12px; border: none; }
.table-egm thead th:first-child { border-top-left-radius: 8px; } .table-egm thead th:last-child { border-top-right-radius: 8px; }
.table-egm tbody td { padding: 11px 12px; border-bottom: 1px solid var(--egm-bordure); vertical-align: middle; }
.table-egm tbody tr:nth-child(even) td { background: #FBFAFD; }
.table-egm tbody tr:hover td { background: var(--egm-lilas-100); }
.table-egm .numero { font-weight: 600; color: var(--egm-violet); text-decoration: none; }

/* ---------- Activité récente ---------- */
.frise-activite { list-style: none; padding: 0; margin: 0; position: relative; }
.frise-activite::before { content: ''; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 2px; background: var(--egm-bordure); }
.frise-activite li { display: flex; gap: 12px; padding: 9px 0; position: relative; }
.frise-activite .pastille { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 15px; flex-shrink: 0; z-index: 1; }
.frise-activite .quand { font-size: 11.5px; color: var(--egm-texte-doux); }
.frise-activite .quoi { font-weight: 600; font-size: 13.5px; }
.frise-activite .detail { font-size: 12.5px; color: var(--egm-texte-doux); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .egm-menu { transform: translateX(-100%); transition: transform .2s; }
  .egm-menu.ouvert { transform: none; box-shadow: var(--egm-ombre-forte); }
  .egm-principal { margin-left: 0; }
  .egm-barre .agence, .egm-barre .profil span { display: none; }
}
@media (max-width: 767.98px) {
  .egm-contenu { padding: 14px; }
  .kpi { height: 112px; padding: 14px; } .kpi .kpi-valeur { font-size: 20px; } .kpi .kpi-icone { width: 34px; height: 34px; font-size: 16px; }
  .table-egm.cartes-mobile thead { display: none; }
  .table-egm.cartes-mobile tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 4px; border-bottom: 1px solid var(--egm-bordure); }
  .table-egm.cartes-mobile tbody td { border: none; padding: 0; background: none !important; }
  .table-egm.cartes-mobile td[data-col="date"] { display: none; }
  /* Rapports (T-35) : une carte par ligne, chaque valeur précédée du libellé de sa colonne. */
  .table-egm.rapport-mobile thead { display: none; }
  .table-egm.rapport-mobile tr { display: block; padding: 10px 4px; border-bottom: 1px solid var(--egm-bordure); }
  .table-egm.rapport-mobile td { display: flex; justify-content: space-between; gap: 12px; border: none; padding: 2px 0; text-align: right; background: none !important; white-space: normal !important; }
  .table-egm.rapport-mobile td::before { content: attr(data-label); color: var(--egm-texte-doux); font-weight: 400; text-align: left; flex-shrink: 0; max-width: 50%; }
  .table-egm.rapport-mobile td:empty { display: none; }
  .table-egm.rapport-mobile tfoot tr { border-bottom: none; }
  .barre-actions-mobile { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; padding: 10px 14px; box-shadow: 0 -4px 16px rgba(54,25,91,.12); z-index: 1025; display: flex; gap: 10px; }
  .barre-actions-mobile .btn { flex: 1; min-height: 48px; }
}

/* =====================================================================
   COMPLÉMENTS DE L'APPLICATION (non présents dans la maquette)
   ===================================================================== */

/* ---------- Menu : agence sur mobile, pied, voile ---------- */
.egm-menu .menu-agence { display: none; margin: 12px 12px 0; }
.egm-menu .menu-pied { border-top: 1px solid var(--egm-bordure); padding: 8px 10px; }
.egm-voile { display: none; }
@media (max-width: 991.98px) {
  .egm-menu .menu-agence { display: block; }
  .egm-voile.visible { display: block; position: fixed; inset: 0; background: rgba(30, 27, 46, .45); z-index: 1029; }
  body.menu-ouvert { overflow: hidden; }
  .egm-barre .profil span.avatar { display: grid; }   /* la maquette masquait aussi l'avatar : menu profil inaccessible */
}

/* ---------- Barre du haut : boutons-icônes, menus déroulants ---------- */
.egm-barre .icone { border: none; background: none; text-decoration: none; }
.egm-barre .icone:hover, .egm-barre .profil:hover { background: var(--egm-lilas-100); color: var(--egm-violet); }
.egm-barre .profil { border: none; background: none; border-radius: 20px; padding: 3px 8px 3px 3px; color: var(--egm-texte); text-align: left; }
.egm-barre .profil small { font-size: 11px; }
.egm-barre .agence { cursor: pointer; }
.egm-barre .dropdown-menu { border: 1px solid var(--egm-bordure); border-radius: var(--egm-rayon-sm); box-shadow: var(--egm-ombre-forte); font-size: 13.5px; }
.egm-barre .dropdown-item { padding: 8px 16px; }
.egm-barre .dropdown-item:active { background: var(--egm-violet); }
.egm-barre .icone .point.jaune { background: var(--egm-jaune); color: var(--egm-violet); }
.btn-installer { display: none; }
.btn-installer.visible { display: inline-flex; }
@media (max-width: 575.98px) {
  .egm-barre { gap: 6px; padding: 0 10px; }
  .egm-recherche input { padding-left: 34px; }
}

/* Numéros par agence plus longs (FAC-SIK-2026-0012) : jamais coupés */
.table-egm .numero { white-space: nowrap; }

/* ---------- Badges complémentaires (UX § 4.4) ---------- */
.statut-expire, .statut-non-paye { background: #E2E0E8; color: #3F3B52; }
.statut-demande, .statut-reserve { background: var(--egm-lilas-100); color: var(--egm-violet-500); }
.statut-hors-service { background: #EEEDF2; color: #6B6880; }

/* ---------- Boutons : danger, icône, chargement ---------- */
.btn-egm-danger { border: 1.5px solid var(--egm-danger); color: var(--egm-danger); background: #fff; font-weight: 600; border-radius: var(--egm-rayon-sm); }
.btn-egm-danger:hover { background: var(--egm-danger); color: #fff; }
.btn-icone { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; border: none; background: none; border-radius: var(--egm-rayon-sm); color: var(--egm-texte-doux); }
.btn-icone:hover { background: var(--egm-lilas-100); color: var(--egm-violet); }
.btn.en-cours { pointer-events: none; opacity: .75; }

/* ---------- Formulaires ---------- */
.form-label { font-weight: 500; font-size: 13px; margin-bottom: 4px; }
.form-label.requis::after { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--egm-jaune); margin-left: 6px; vertical-align: middle; }
.form-control:focus, .form-select:focus { border-color: var(--egm-lilas); box-shadow: 0 0 0 3px rgba(185, 138, 224, .35); }
@media (max-width: 575.98px) {
  .form-control, .form-select, .btn-egm, .btn-egm-contour, .btn-whatsapp { min-height: 48px; }
}

/* ---------- Toasts (messages flash, 5 s) ---------- */
.egm-toasts { position: fixed; top: calc(var(--egm-barre-hauteur) + 10px); right: 16px; z-index: 1090; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.egm-toast { min-width: 260px; max-width: 380px; background: #fff; border-radius: var(--egm-rayon-sm); box-shadow: var(--egm-ombre-forte); border-left: 5px solid var(--egm-info); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; animation: egm-entree .2s ease-out; }
.egm-toast.success { border-left-color: var(--egm-succes); } .egm-toast.success i { color: var(--egm-succes); }
.egm-toast.danger { border-left-color: var(--egm-danger); } .egm-toast.danger i { color: var(--egm-danger); }
.egm-toast.warning { border-left-color: var(--egm-alerte); } .egm-toast.warning i { color: var(--egm-alerte); }
.egm-toast.info i { color: var(--egm-info); }
.egm-toast .fermer { margin-left: auto; border: none; background: none; color: var(--egm-gris); padding: 0 2px; }
@keyframes egm-entree { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Boîte de confirmation ---------- */
.modal-content { border: none; border-radius: var(--egm-rayon); box-shadow: var(--egm-ombre-forte); }
.modal-title { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 17px; }

/* ---------- État vide ---------- */
.etat-vide { text-align: center; padding: 40px 16px; color: var(--egm-texte-doux); }
.etat-vide i { font-size: 40px; color: var(--egm-lilas); display: block; margin-bottom: 8px; }

/* ---------- Graphiques ---------- */
.zone-graphique { position: relative; height: 230px; }
.zone-anneau { position: relative; height: 170px; }

/* ---------- Mobile : place pour la barre d'actions fixe ---------- */
@media (max-width: 767.98px) {
  body.avec-barre-actions .egm-contenu { padding-bottom: 84px; }
}
@media (min-width: 768px) {
  .barre-actions-mobile { display: none; }
}

/* ---------- Menu réduit aux icônes (ordinateur, préférence en cookie) ---------- */
.egm-menu, .egm-principal { transition: width .2s ease, margin-left .2s ease; }
.btn-reduire i { transition: transform .2s; }
@media (min-width: 992px) {
  body.menu-reduit { --egm-menu-largeur: 76px; }
  body.menu-reduit .btn-reduire i { transform: scaleX(-1); }
  body.menu-reduit .egm-menu-logo { padding: 0; justify-content: center; }
  body.menu-reduit .egm-menu-logo .nom,
  body.menu-reduit .egm-menu .rubrique,
  body.menu-reduit .egm-menu a.lien .texte { display: none; }
  body.menu-reduit .egm-menu nav { padding: 10px 8px; overflow-x: hidden; }
  body.menu-reduit .egm-menu nav .rubrique + a.lien,
  body.menu-reduit .egm-menu .menu-pied { border-top: 1px solid var(--egm-bordure); }
  body.menu-reduit .egm-menu nav .rubrique + a.lien { margin-top: 8px; padding-top: 12px; }
  body.menu-reduit .egm-menu a.lien { justify-content: center; padding: 10px 0; }
  body.menu-reduit .egm-menu a.lien i { font-size: 19px; }
  body.menu-reduit .egm-menu a.lien.actif::before { left: -8px; }
  body.menu-reduit .egm-menu .compteur { position: absolute; top: 2px; right: 6px; padding: 0 5px; font-size: 10px; }
}

/* ---------- Champs mot de passe : œil, alerte majuscules, solidité ---------- */
.champ-mdp { position: relative; }
.champ-mdp .form-control { padding-right: 46px; }
.champ-mdp .voir-mdp { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px;
  border: none; background: none; color: var(--egm-texte-doux); border-radius: var(--egm-rayon-sm); display: grid; place-items: center; }
.champ-mdp .voir-mdp:hover { color: var(--egm-violet); background: var(--egm-lilas-100); }
.alerte-maj { display: none; font-size: 12px; color: #B8641F; margin-top: 4px; }
.alerte-maj.visible { display: block; }
.force-mdp { height: 6px; border-radius: 3px; background: var(--egm-bordure); overflow: hidden; margin-top: 8px; }
.force-mdp span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.regles-mdp { list-style: none; padding: 0; margin: 8px 0 0; font-size: 12.5px; color: var(--egm-texte-doux); }
.regles-mdp li::before { content: '\F28A'; font-family: 'bootstrap-icons'; margin-right: 6px; color: var(--egm-gris); }
.regles-mdp li.ok { color: var(--egm-succes); }
.regles-mdp li.ok::before { content: '\F26A'; color: var(--egm-succes); }

/* ---------- Écrans de connexion (UX § 5.2) ---------- */
body.page-auth { min-height: 100vh; background: var(--egm-grad-menu); display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.carte-auth { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; box-shadow: 0 16px 48px rgba(30, 10, 60, .28); padding: 32px 28px; }
.carte-auth .logo { display: block; height: 64px; margin: 0 auto 12px; }
.carte-auth h1 { font-size: 21px; font-weight: 600; text-align: center; margin: 0 0 4px; color: var(--egm-violet); }
.carte-auth .sous-titre { text-align: center; color: var(--egm-texte-doux); font-size: 13px; margin-bottom: 24px; }
.carte-auth .form-control { min-height: 46px; }
.carte-auth .btn-egm { width: 100%; min-height: 48px; font-size: 15px; }
.carte-auth .lien-doux { color: var(--egm-violet-500); font-size: 13px; text-decoration: none; }
.carte-auth .lien-doux:hover { text-decoration: underline; }
.pied-auth { text-align: center; color: rgba(255, 255, 255, .85); font-size: 12px; margin-top: 16px; }
.pied-auth a { color: #fff; }
@media (max-width: 575.98px) { .carte-auth { padding: 28px 20px; } }

/* ---------- Listes : avatar, pagination, filtres ---------- */
.avatar-liste { width: 36px; height: 36px; border-radius: 50%; background: var(--egm-lilas-100); color: var(--egm-violet);
  display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.avatar-liste.grand { width: 64px; height: 64px; font-size: 22px; }
.pagination-egm .page-link { color: var(--egm-violet); border-color: var(--egm-bordure); min-width: 34px; text-align: center; }
.pagination-egm .page-item.active .page-link { background: var(--egm-violet); border-color: var(--egm-violet); color: #fff; }
.pagination-egm .page-link:focus { box-shadow: 0 0 0 3px rgba(185, 138, 224, .35); }
.carte .egm-recherche input { background: #fff; padding-top: 7px; padding-bottom: 7px; }
.carte .egm-recherche i { top: 8px; }

/* ---------- Fiches : listes de définitions, cartes latérales ---------- */
.fiche-dl { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 8px 16px; margin: 0; font-size: 13.5px; }
.fiche-dl dt { color: var(--egm-texte-doux); font-weight: 500; }
.fiche-dl dd { margin: 0; word-break: break-word; }
.mdp-provisoire { font-family: 'Consolas', 'Courier New', monospace; font-size: 20px; font-weight: 700; letter-spacing: 2px;
  background: var(--egm-jaune-100); color: var(--egm-violet); border-radius: var(--egm-rayon-sm); padding: 8px 14px; display: inline-block; }
.frise-journal { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.frise-journal li { padding: 8px 0; border-bottom: 1px solid var(--egm-bordure); }
.frise-journal li:last-child { border-bottom: none; }

/* ---------- Rôles et matrice des droits ---------- */
.lien-role { display: block; padding: 10px 12px; border-radius: var(--egm-rayon-sm); color: var(--egm-texte); text-decoration: none; position: relative; }
.lien-role:hover { background: var(--egm-fond); }
.lien-role.actif { background: var(--egm-lilas-100); color: var(--egm-violet); }
.lien-role.actif::before { content: ''; position: absolute; left: -8px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--egm-jaune); }
.matrice-droits tbody th { font-weight: 600; font-size: 13px; white-space: nowrap; padding: 10px 12px; border-bottom: 1px solid var(--egm-bordure); background: inherit; }
.matrice-droits tbody tr:nth-child(even) th { background: #FBFAFD; }
.matrice-droits .form-check-input { width: 1.2em; height: 1.2em; cursor: pointer; }
.matrice-droits .form-check-input:checked { background-color: var(--egm-violet); border-color: var(--egm-violet); }
.matrice-droits thead th:first-child, .matrice-droits tbody th { position: sticky; left: 0; z-index: 1; }
.matrice-droits tbody th { background: #fff; }
.btn-colonne { border: none; background: none; color: #fff; font: inherit; text-transform: inherit; letter-spacing: inherit; padding: 0; border-bottom: 1px dashed rgba(255,255,255,.5); }
.btn-colonne:hover:not(:disabled) { border-bottom-style: solid; }
.btn-puce { font-size: 12px; padding: 3px 10px; border-radius: 14px; border: 1px solid var(--egm-bordure); color: var(--egm-texte-doux); background: #fff; }
.btn-check:checked + .btn-puce { background: var(--egm-violet); border-color: var(--egm-violet); color: #fff; }
.btn-check:focus-visible + .btn-puce { outline: 3px solid var(--egm-lilas); }
.btn-check:disabled + .btn-puce { opacity: .75; }
.barre-enregistrer { position: sticky; bottom: 0; background: linear-gradient(to top, var(--egm-fond) 70%, transparent); padding: 14px 0 6px; z-index: 5; }

/* ---------- Paramètres : tuiles ---------- */
.rubrique-parametres { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--egm-gris); margin: 0 0 10px; }
.tuile-parametre { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: var(--egm-rayon); box-shadow: var(--egm-ombre);
  padding: 16px; height: 100%; color: var(--egm-texte); text-decoration: none; border: 1px solid transparent; transition: box-shadow .15s, transform .15s, border-color .15s; }
a.tuile-parametre:hover { box-shadow: var(--egm-ombre-forte); transform: translateY(-1px); border-color: var(--egm-lilas); color: var(--egm-texte); }
.tuile-parametre .icone { width: 44px; height: 44px; border-radius: 12px; background: var(--egm-lilas-100); color: var(--egm-violet); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.tuile-parametre .titre { display: block; font-weight: 600; font-size: 14.5px; }
.tuile-parametre .description { display: block; font-size: 12.5px; color: var(--egm-texte-doux); }
.tuile-parametre.bientot { opacity: .6; box-shadow: none; border: 1px dashed var(--egm-bordure); background: transparent; }
.matrice-droits .col-particuliers { min-width: 340px; }
.matrice-droits .btn-puce { white-space: nowrap; }
/* Rôles : barre horizontale (la matrice garde toute la largeur) */
.barre-roles { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.barre-roles .lien-role { background: #fff; box-shadow: var(--egm-ombre); flex-shrink: 0; border: 1px solid transparent; }
.barre-roles .lien-role.actif { border-color: var(--egm-lilas); }
.barre-roles .lien-role.actif::before { left: 10px; right: 10px; top: auto; bottom: -1px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }

/* Cases à cocher et interrupteurs aux couleurs EGM (Bootstrap les met en bleu) */
.form-check-input:checked { background-color: var(--egm-violet); border-color: var(--egm-violet); }
.form-check-input:indeterminate { background-color: var(--egm-lilas); border-color: var(--egm-lilas); }
.form-check-input:focus { border-color: var(--egm-lilas); box-shadow: 0 0 0 3px rgba(185, 138, 224, .35); }
.form-switch .form-check-input:focus:not(:checked) { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23B98AE0'/%3e%3c/svg%3e"); }

/* Boutons-cases (agences autorisées…) : l'état coché doit se voir */
.btn-check:checked + .btn-egm-contour { background: var(--egm-violet); border-color: var(--egm-violet); color: #fff; }
.btn-check:checked + .btn-egm-contour::after { content: '\F633'; font-family: 'bootstrap-icons'; margin-left: 6px; }
.btn-check:focus-visible + .btn-egm-contour { outline: 3px solid var(--egm-lilas); outline-offset: 2px; }
@media (max-width: 575.98px) {
  .egm-barre .btn-installer.visible { width: 38px; height: 38px; min-height: 38px; padding: 0; justify-content: center; align-items: center; }
  .btn-installer i { margin: 0 !important; }
}

/* ---------- Onglets (notifications, validations, listes) ---------- */
.nav-egm .nav-link { color: var(--egm-texte-doux); font-weight: 500; border-radius: 20px; padding: 6px 14px; }
.nav-egm .nav-link:hover { color: var(--egm-violet); background: var(--egm-lilas-100); }
.nav-egm .nav-link.active { background: var(--egm-violet); color: #fff; }
.nav-egm .badge { background: var(--egm-jaune); color: var(--egm-violet); font-size: 11px; }
.nav-egm .nav-link:not(.active) .badge { background: var(--egm-lilas-100); }
.nav-tabs .badge { background: var(--egm-lilas-100); color: var(--egm-violet); font-size: 11px; }
.nav-tabs .nav-link.active .badge { background: var(--egm-jaune); color: var(--egm-violet); }
.nav-tabs.overflow-auto { overflow-x: auto !important; overflow-y: hidden !important; }   /* onglets défilants sans flèches verticales */

/* ---------- Notifications ---------- */
.liste-notifications { list-style: none; padding: 0; margin: 0; }
.liste-notifications li { border-bottom: 1px solid var(--egm-bordure); }
.liste-notifications li:last-child { border-bottom: none; }
.liste-notifications .notification { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; border: none; background: none; padding: 12px 8px; border-radius: var(--egm-rayon-sm); color: var(--egm-texte); }
.liste-notifications .notification:hover { background: var(--egm-fond); }
.liste-notifications .pastille { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.liste-notifications li.non-lue .notification { background: var(--egm-lilas-100); }
.liste-notifications li.non-lue .fw-semibold::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--egm-jaune); margin-right: 6px; vertical-align: middle; }

/* ---------- Tom Select aux couleurs EGM ---------- */
.ts-wrapper.form-select, .ts-wrapper.form-control { padding: 0; }
.ts-control { border-color: var(--egm-bordure); border-radius: var(--bs-border-radius); min-height: 38px; }
.ts-wrapper.focus .ts-control { border-color: var(--egm-lilas); box-shadow: 0 0 0 3px rgba(185, 138, 224, .35); }
.ts-dropdown { border-color: var(--egm-bordure); border-radius: var(--egm-rayon-sm); box-shadow: var(--egm-ombre-forte); }
.ts-dropdown .active { background: var(--egm-lilas-100); color: var(--egm-violet); }
.ts-dropdown .create strong { color: var(--egm-violet); }
@media (max-width: 575.98px) { .ts-control { min-height: 48px; } }

/* ---------- Paramètres : logo, tableaux de saisie, journal ---------- */
.apercu-logo { background: repeating-conic-gradient(#F1EFF6 0% 25%, #fff 0% 50%) 50% / 16px 16px; border: 1px solid var(--egm-bordure);
  border-radius: var(--egm-rayon); padding: 16px; display: grid; place-items: center; min-height: 130px; }
.apercu-logo img { max-height: 110px; max-width: 100%; object-fit: contain; }
.tableau-saisie thead th { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--egm-texte-doux); border-bottom-color: var(--egm-bordure); }
.tableau-saisie td { border-bottom-color: var(--egm-bordure); }
.tableau-saisie .poignee { cursor: grab; color: var(--egm-gris); text-align: center; }
.tableau-saisie .poignee:active { cursor: grabbing; }
.ligne-fantome { opacity: .45; background: var(--egm-lilas-100); }
.detail-journal { background: var(--egm-fond); border-radius: var(--egm-rayon-sm); padding: 12px; font-size: 12px; white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; }

/* ---------- Barre de progression de navigation ---------- */
.egm-progression { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 2000; pointer-events: none;
  background: linear-gradient(90deg, var(--egm-jaune), var(--egm-lilas)); box-shadow: 0 0 8px rgba(245, 196, 0, .6); opacity: 0; }
.egm-progression.actif { opacity: 1; animation: egm-progression 8s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes egm-progression { 0% { width: 0; } 20% { width: 45%; } 100% { width: 90%; } }
@media (prefers-reduced-motion: reduce) { .egm-progression.actif { animation-duration: .01s; width: 90%; } }

/* ---------- Flèche de retour (un niveau au-dessus) ---------- */
.btn-retour { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0;
  background: #fff; border: 1px solid var(--egm-bordure); color: var(--egm-violet); text-decoration: none; box-shadow: var(--egm-ombre); }
.btn-retour:hover { background: var(--egm-lilas-100); border-color: var(--egm-lilas); color: var(--egm-violet); }

/* Élément actif des menus déroulants (sélecteur d'agence) aux couleurs EGM */
.dropdown-item.active, .dropdown-item:active { background: var(--egm-lilas-100); color: var(--egm-violet); font-weight: 600; }
.dropdown-item.active small, .dropdown-item:active small { color: var(--egm-violet-500) !important; }

/* ---------- Mini-indicateurs des fiches (situation d'un client) ---------- */
.mini-kpi { background: var(--egm-fond); border-radius: var(--egm-rayon-sm); padding: 10px 14px; height: 100%; }
.mini-kpi span { display: block; font-size: 12px; color: var(--egm-texte-doux); }
.mini-kpi strong { display: block; font-family: 'Poppins', sans-serif; font-size: 17px; color: var(--egm-violet); font-variant-numeric: tabular-nums; }
.mini-kpi small { color: var(--egm-danger); font-size: 11.5px; }
.mini-kpi.alerte { background: #FCE3E6; }
.mini-kpi.alerte strong { color: #B42A3A; }
/* Groupes des listes (ex. pays par continent) : en-têtes comme les rubriques du menu */
.ts-dropdown .optgroup-header { font-size: 10.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--egm-gris);
  background: #FBFAFD; padding: 8px 12px 4px; border-top: 1px solid var(--egm-bordure); }
.ts-dropdown .optgroup:first-child .optgroup-header { border-top: none; }

/* ---------- Fiche article ---------- */
.photo-article { width: 96px; height: 96px; border-radius: var(--egm-rayon); background: var(--egm-fond); border: 1px solid var(--egm-bordure);
  display: grid; place-items: center; overflow: hidden; flex-shrink: 0; color: var(--egm-lilas); font-size: 36px; }
.photo-article img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.ajout-en-ligne { background: var(--egm-fond); border-radius: var(--egm-rayon-sm); padding: 12px 8px 14px; margin-left: 0; margin-right: 0; }

/* ---------- Assistant d'import (4 étapes) ---------- */
.etapes { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: etape; }
.etapes li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--egm-rayon-sm); background: #fff;
  box-shadow: var(--egm-ombre); font-size: 13px; color: var(--egm-texte-doux); min-width: 0; }
.etapes li::before { counter-increment: etape; content: counter(etape); width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 600; background: var(--egm-fond); color: var(--egm-texte-doux); }
.etapes li.faite::before { content: '\2713'; background: var(--egm-lilas-100); color: var(--egm-violet); }
.etapes li.active { color: var(--egm-violet); font-weight: 600; }
.etapes li.active::before { background: var(--egm-violet); color: #fff; }
.etapes li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 575.98px) { .etapes li:not(.active) span { display: none; } .etapes li:not(.active) { flex: 0 0 auto; } .etapes-dossier { flex-wrap: wrap; } .etapes-dossier li.active { flex-basis: 100%; order: -1; } }
.choix-carte { display: block; cursor: pointer; height: 100%; }
.choix-carte input { position: absolute; opacity: 0; }
.choix-carte .tuile-parametre { height: 100%; border: 2px solid transparent; }
.choix-carte input:checked + .tuile-parametre { border-color: var(--egm-violet); background: var(--egm-lilas-100); }
.choix-carte input:focus-visible + .tuile-parametre { outline: 3px solid var(--egm-jaune); }
.ligne-import-rejet { background: #FDF1F3; }
.ligne-import-avert { background: #FFF8E1; }
.echantillon { font-size: 12px; color: var(--egm-texte-doux); max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Comptage d'inventaire (mobile d'abord, boutons 48 px) ---------- */
tr.comptee td:first-child { box-shadow: inset 3px 0 0 #1E9E6A; }
.en-envoi { opacity: .6; }
.comptage { max-width: 720px; margin: 0 auto; }
.comptage-entete { position: sticky; top: 64px; z-index: 5; background: var(--egm-fond); padding: 8px 0 4px; }
.comptage-entete .btn { min-height: 44px; }
.comptage-emplacement { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--egm-violet); margin: 16px 0 6px; }
.comptage-ligne { background: #fff; border-radius: var(--egm-rayon-sm); box-shadow: var(--egm-ombre); padding: 10px 12px; margin-bottom: 8px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; border-left: 4px solid transparent; }
.comptage-ligne.comptee { border-left-color: #1E9E6A; }
.comptage-ok { display: none; }
.comptage-ligne.comptee .comptage-ok { display: inline-block; }
.comptage-article { flex: 1 1 200px; min-width: 0; }
.comptage-saisie { display: flex; align-items: center; gap: 6px; }
.comptage-saisie .btn { width: 48px; height: 48px; padding: 0; font-size: 20px; }
.comptage-saisie input { width: 92px; height: 48px; font-size: 20px; font-weight: 600; }
.comptage-unite { min-width: 26px; }
.comptage-ajout { margin: 20px 0 8px; }
@media print { .no-print { display: none !important; } }
body > .ts-dropdown { z-index: 1080; }

/* ---------- Documents : grille de lignes, totaux, fil des documents liés (UX § 4.6, § 4.7) ---------- */
.grille-doc td { vertical-align: top; }
.grille-doc .poignee { cursor: grab; color: var(--egm-gris); padding-top: 14px; }
.grille-doc .col-article { min-width: 300px; }
.grille-doc .col-unite span { display: inline-block; padding-top: 8px; color: var(--egm-texte-doux); }
.grille-doc .col-montant { padding-top: 14px; white-space: nowrap; }
/* Article choisi : sa désignation passe à la ligne plutôt que d'écraser les colonnes Qté, Unité et P.U. */
.grille-doc .col-article .ts-control .item { white-space: normal; }
.grille-doc select[data-conditionnement] { min-width: 140px; }   /* F-ART-07 : « Rouleau 50 m » lisible */
.grille-doc tr.ligne-section td { background: var(--egm-lilas-100); }
.grille-doc tr.ligne-commentaire textarea { font-style: italic; }
.grille-doc .ligne-info { line-height: 1.5; }
.grille-doc-conteneur { overflow: visible; }
.ligne-fantome { opacity: .4; background: var(--egm-lilas-100); }
.totaux-doc td { padding: 4px 0; }
.totaux-doc td:first-child { color: var(--egm-texte-doux); }
.totaux-doc tr.net-a-payer td { background: var(--egm-jaune); color: var(--egm-violet); font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 17px; padding: 10px 12px; }
.totaux-doc tr.net-a-payer td:first-child { border-radius: var(--egm-rayon-sm) 0 0 var(--egm-rayon-sm); color: var(--egm-violet); }
.totaux-doc tr.net-a-payer td:last-child { border-radius: 0 var(--egm-rayon-sm) var(--egm-rayon-sm) 0; }
.fil-documents { list-style: none; padding: 0; margin: 0; }
.fil-documents li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 8px 0 8px 18px; border-left: 2px solid var(--egm-lilas); position: relative; }
.fil-documents li::before { content: ''; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--egm-lilas); }
.fil-documents li.courant::before { background: var(--egm-violet); }
@media (max-width: 767.98px) {
  /* Mobile : chaque ligne devient une carte */
  .grille-doc thead { display: none; }
  .grille-doc, .grille-doc tbody, .grille-doc tr, .grille-doc td { display: block; width: 100%; }
  .grille-doc tr { background: #fff; border: 1px solid var(--egm-bordure); border-radius: var(--egm-rayon-sm); margin-bottom: 10px; padding: 8px; position: relative; }
  .grille-doc td { border: 0 !important; padding: 4px 0 !important; }
  .grille-doc .poignee { position: absolute; left: 6px; top: 6px; width: auto; }
  .grille-doc td.col-article { padding-left: 22px !important; min-width: 0; }
  .grille-doc td.col-qte, .grille-doc td.col-prix, .grille-doc td.col-remise { display: inline-block; width: 32%; }
  .grille-doc td.col-unite { display: inline-block; width: auto; }
  .grille-doc td.col-montant { text-align: right; font-size: 16px; }
  .grille-doc td:last-child { position: absolute; right: 6px; top: 6px; width: auto; }
}
@media (max-width: 767.98px) {
  .grille-doc tr > td:nth-child(2) { padding-right: 44px !important; }   /* place pour la croix de suppression */
}
.grille-doc .ts-wrapper { width: 100%; }
@media (max-width: 767.98px) {
  .grille-doc td.col-unite input { width: 64px; }
  .grille-doc td.col-qte, .grille-doc td.col-prix, .grille-doc td.col-remise { vertical-align: top; }
}
/* Bon de livraison : pas de prix à l'écran (ils viennent de la commande), observations par ligne */
.grille-bl .col-prix, .grille-bl .col-remise, .grille-bl .col-montant { display: none !important; }
/* Signature du réceptionnaire (écran terrain, mobile d'abord) */
.btn-terrain { min-height: 48px; font-size: 15px; }
.cadre-signature { border: 2px dashed var(--egm-lilas); border-radius: 10px; background: #fff; touch-action: none; }
.cadre-signature canvas { display: block; width: 100%; height: 220px; }
.vignette-etat { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--egm-bordure); background: #fff; }
.signature-bl { max-width: 260px; max-height: 120px; border: 1px solid var(--egm-gris-200, #e5e1ec); border-radius: 8px; background: #fff; }

/* Menu de la cloche (F-SOC-09) */
.menu-notifications { width: min(360px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; }
.menu-notifications .notification { white-space: normal; border-left: 3px solid transparent; }
.menu-notifications .notification.non-lue { background: var(--egm-lilas-100); border-left-color: var(--egm-violet); }

/* ---------- Bon de transfert : écart de réception surligné (UX § 5) ---------- */
.ligne-ecart, tr.ligne-ecart td { background-color: #FDECEE; }

/* ---------- Marge d'un document de vente (objectif O4), réservée aux coûts ---------- */
.marge-doc { border: 1px dashed var(--egm-lilas); border-radius: var(--egm-rayon-sm); padding: 10px 12px; background: #FBF8FE; }

/* ---------- Planning de location (F-LOC-02) : engins × jours, barres par contrat ---------- */
.planning-grille { overflow-x: auto; border: 1px solid var(--egm-bordure); border-radius: var(--egm-rayon-sm); }
.planning { border-collapse: collapse; font-size: 12px; min-width: 100%; }
.planning th, .planning td { border-right: 1px solid var(--egm-bordure); border-bottom: 1px solid var(--egm-bordure); text-align: center; min-width: 30px; height: 46px; padding: 0; }
.planning thead th { background: #fff; position: sticky; top: 0; z-index: 2; font-weight: 600; padding: 4px 0; }
.planning .planning-engin { position: sticky; left: 0; z-index: 3; background: #fff; text-align: left; padding: 4px 10px; min-width: 150px; }
.planning .we { background: #FAF8FC; }
.planning .auj { box-shadow: inset 0 0 0 2px var(--egm-jaune); }
.planning .jour-libre { display: block; width: 100%; height: 100%; }
.planning .jour-libre:hover { background: var(--egm-lilas-100); }
.planning .barre-cellule { padding: 4px 2px; }
.barre-contrat { display: block; height: 32px; line-height: 32px; border-radius: 16px; padding: 0 10px; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; text-decoration: none; text-align: left; }
.barre-contrat:hover { color: #fff; filter: brightness(1.1); }
.barre-brouillon { background: #9A97A8; } .barre-reserve { background: var(--egm-lilas); } .barre-en_cours { background: var(--egm-violet); }
.barre-termine, .barre-cloture { background: #5B8C6A; }
.legende { display: inline-block; width: 22px; height: 10px; border-radius: 5px; margin-right: 6px; vertical-align: middle; }
