/* Suivi des terrains et comptes d'entreprise (src/entreprise.js) : un volet à droite au bureau, une feuille au téléphone */
.ent { position: fixed; z-index: 48; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); display: flex; flex-direction: column; background: var(--surface-panneau, var(--surface)); color: var(--encre); box-shadow: -1px 0 0 var(--filet), -12px 0 36px rgba(0, 0, 0, 0.22); font-size: var(--t-13); }
.ent[hidden] { display: none; }
.ent-tete { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--filet); }
.ent-tete b { flex: 1; font-size: var(--t-17); font-weight: 600; }
.ent-tete small { color: var(--encre-3); }
.ent-x { flex: none; width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: var(--r-bouton); background: none; color: var(--attenue); font: inherit; font-size: var(--t-17); line-height: 1; cursor: pointer; }
.ent-x:hover { background: var(--actif); color: var(--encre); }
.ent-sous-tete { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--filet); }
.ent-nom-ent, .ent-choix { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ent-choix { height: 30px; border: 0; border-radius: var(--r-bouton); background: var(--survol); color: var(--encre); font: inherit; font-weight: 600; }
.ent-onglets { display: flex; gap: 2px; padding: 2px; border-radius: var(--r-bouton); background: var(--survol); }
.ent-onglets button { height: 26px; padding: 0 10px; border: 0; border-radius: var(--r-pastille); background: none; color: var(--encre-2); font: inherit; font-size: var(--t-13); cursor: pointer; }
.ent-onglets button[aria-selected="true"] { background: var(--actif); color: var(--encre); font-weight: 600; }
.ent-corps { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px calc(env(safe-area-inset-bottom) + 20px); display: grid; align-content: start; gap: 10px; }
.ent-msg { margin: 0; padding: 8px 10px; border-radius: var(--r-bouton); background: var(--survol); box-shadow: inset 0 0 0 1px var(--filet-2); }
.ent-aide, .ent-vide, .ent-sous, .ent-meta { margin: 0; color: var(--encre-3); font-size: var(--t-13); line-height: 1.5; }
.ent-titre-bloc { margin: 4px 0 0; font-size: var(--t-12); font-weight: 600; color: var(--encre-3); letter-spacing: 0.02em; }
.ent-lien { justify-self: start; padding: 0; border: 0; background: none; color: var(--encre-2); font: inherit; font-size: var(--t-13); text-decoration: underline; cursor: pointer; }
.ent-liste, .ent-terrains, .ent-membres { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ent-projet { display: flex; align-items: stretch; gap: 6px; }
.ent-projet-bouton { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 10px 12px; border: 0; border-radius: var(--r-moyen); background: var(--survol); box-shadow: inset 0 0 0 1px var(--filet-2); color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.ent-projet-bouton:hover { background: var(--actif); }
.ent-projet-nom { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ent-projet-bouton small { color: var(--encre-3); font-size: var(--t-12); }
.ent-archive { opacity: 0.6; }
.ent-ajouter { flex: none; padding: 0 12px; border: 0; border-radius: var(--r-moyen); background: var(--encre); color: var(--surface); font: inherit; font-size: var(--t-13); font-weight: 600; cursor: pointer; }
.ent-bandeau { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--r-moyen); box-shadow: inset 0 0 0 1.5px var(--encre); }
.ent-bandeau small { color: var(--encre-3); }
.ent-bandeau label, .ent-nouveau label, .ent-reglages label { display: grid; gap: 4px; color: var(--encre-3); font-size: var(--t-12); }
.ent select, .ent input:not([type="checkbox"]), .ent textarea { box-sizing: border-box; width: 100%; min-height: 36px; padding: 6px 10px; border: 0; border-radius: var(--r-bouton); background: var(--survol); box-shadow: inset 0 0 0 1px var(--filet-2); color: var(--encre); font: inherit; font-size: 1rem; }
.ent .ent-choix { width: auto; }
.ent textarea { resize: vertical; font-size: var(--t-13); line-height: 1.45; }
.ent-nouveau, .ent-reglages form { display: grid; gap: 8px; padding-top: 6px; }
.ent-nom-projet { margin: 0; font-size: 1rem; font-weight: 600; }
.ent-terrain { display: grid; gap: 6px; padding: 10px 12px; border-radius: var(--r-moyen); box-shadow: inset 0 0 0 1px var(--filet-2); }
.ent-terrain-tete { display: flex; align-items: center; gap: 6px; }
.ent-voir { flex: 1; min-width: 0; display: grid; gap: 1px; padding: 0; border: 0; background: none; color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.ent-voir small { color: var(--encre-3); font-size: var(--t-12); }
.ent-statut { font-size: var(--t-13) !important; min-height: 32px !important; }
.ent-meta { font-size: var(--t-12); }
.ent-membres li { display: flex; align-items: center; gap: 8px; padding: 6px 0; box-shadow: 0 1px 0 var(--filet); }
.ent-membres li > span { flex: 1 1 auto; min-width: 7ch; overflow-wrap: anywhere; line-height: 1.25; }  /* le nom passe à la ligne au lieu d'être coupé */
.ent-membres li > select.ent-membres-role, .ent-membres li > select[data-ent-champ="role"] { flex: 0 0 120px; width: 120px; min-height: 30px; font-size: var(--t-13); }  /* sans largeur fixe, le menu mangeait la place du nom (Henri, 02/11/2026 : « je ne vois pas les noms ») */
.ent-reglages { border-top: 1px solid var(--filet); padding-top: 8px; }
.ent-reglages summary { cursor: pointer; font-weight: 600; }
.ent-reglages fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 4px; }
.ent-reglages legend { padding: 0; color: var(--encre-3); font-size: var(--t-12); }
.ent-case { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; color: var(--encre) !important; font-size: var(--t-13) !important; }
.ent-case input { width: auto; min-height: 0; }
.ent-ligne-actions { display: flex; gap: 8px; margin-top: 10px; }
.ent-danger { color: #C8423A !important; }
.ent-suivre { display: inline-flex; align-items: center; gap: 7px; height: 34px; margin: 4px 0 8px; padding: 0 12px; border: 0; border-radius: var(--r-bouton); background: var(--survol); box-shadow: inset 0 0 0 1px var(--filet-2); color: var(--encre); font: inherit; font-size: var(--t-13); font-weight: 600; cursor: pointer; }
.ent-suivre svg { width: 16px; height: 16px; }
.ent-suivre:hover { background: var(--actif); }
@media (max-width: 899px) {
  .ent { top: auto; width: 100vw; height: 82vh; border-radius: 16px 16px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35); }
}

.ent-etude { display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--r-moyen); box-shadow: inset 0 0 0 1px var(--filet-2); }
.ent-etude small { color: var(--encre-3); font-size: var(--t-12); }
.ent-liens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ent-liens .bouton { min-height: 30px; padding: 0 10px; font-size: var(--t-13); text-decoration: none; }
/* Accès aux outils de l'agence, par membre (onglet Équipe de 91STUDIO) */
.ent-acces { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ent-acces li { display: flex; align-items: center; gap: 8px; padding: 6px 0; box-shadow: 0 1px 0 var(--filet); }
.ent-acces li > span { flex: 1; min-width: 0; }
.ent-acces fieldset { flex: 1; min-width: 0; margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px 12px; }
.ent-acces legend { padding: 0 0 4px; font-weight: 600; font-size: var(--t-13); }
.ent-acces .ent-case { min-height: 32px; }
@media (max-width: 899px) { .ent-acces .ent-case { min-height: 44px; } }
/* 91S-877 (23/10/2026) : toute la ligne de la case se clique, l'état de l'enregistrement suit le nom du membre, un refus
   s'écrit sous ses cases */
.ent-acces .ent-case { cursor: pointer; user-select: none; -webkit-user-select: none; }
.ent-etat-droit { margin-left: 8px; color: var(--encre-3); font-size: var(--t-12); font-weight: 400; }
.ent-refus-droit { grid-column: 1 / -1; }
