/* Compléments au thème de l'ancien extranet (frontend-grayscale.css, Bootstrap 3) :
   seulement les structures des nouvelles pages. La version d'avant la reprise du
   thème est dans docs/interne_hors_git/css-nouveau-avant-fusion/. */
/* Police maison : le logo Fidusud (.fb .fa-fidu), déclarée comme dans frontend.css de
   MyFidusud ; avec Font Awesome 4.6.3, elle l'était dans le CSS de Font Awesome. */
@font-face {
  font-family: 'FontFidu';
  src: url('/assets/fonts/fidu-webfont.woff') format('woff'), url('/assets/fonts/fidu-webfont.ttf') format('truetype'), url('/assets/fonts/fidu-webfont.svg#fidu-webfont') format('svg');
  font-weight: normal;
  font-style: normal;
}
.fb {
  display: inline-block;
  font: normal normal normal 14px/1 FontFidu;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.fa-fidu:before {
  content: "\e900";
}
/* Font Awesome 7 donne à toute icône une largeur fixe de 1,25em, centrée ; le
   « &nbsp; » que les gabarits mettent dans l'icône, à la manière de la version 4,
   déborde alors des icônes larges (fa-cogs) et colle le libellé. Largeur
   naturelle comme en version 4, sauf demande explicite (fa-fw). */
.fa:not(.fa-fw):not(.fa-width-fixed) { --fa-width: auto; }

#contenu { min-height: 50vh; padding-bottom: 2rem; }
nav.pagination { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 1rem 0; }
.liste { border-collapse: collapse; width: 100%; }
.liste th, .liste td { border-bottom: 1px solid #ddd; padding: .35rem .5rem; text-align: left; }
.liste .nombre { text-align: right; white-space: nowrap; }
.fdna-chargement { opacity: .5; }
.fdna-erreur { color: #a00; }
.connexion { max-width: 24rem; }
.recherche { display: flex; flex-wrap: wrap; gap: 0 1.5rem; align-items: flex-end; }
.recherche p, .recherche fieldset { margin: .25rem 0; }
.recherche fieldset { border: 0; padding: 0; }
.recherche legend { padding: 0; }
.liste th a { color: inherit; text-decoration: none; }
.liste th.nombre { text-align: right; }
.dossiers tr.dossier { background: #f3f5f8; }
.dossiers tr.creance td { color: #555; }
.deplier { width: 1.6rem; padding: 0; margin-right: .25rem; }
.fiche .client { color: #406F7F; font-weight: bold; }
.totaux { display: flex; flex-wrap: wrap; gap: 2rem; margin: 1rem 0; }
.totaux table { border-collapse: collapse; min-width: 18rem; }
.totaux th { text-align: left; font-weight: normal; padding: .15rem 1rem .15rem 0; }
.totaux td { text-align: right; white-space: nowrap; }
.totaux .total th, .totaux .total td { font-weight: bold; border-top: 1px solid #999; }
.totaux .solde td { color: #a00; }
.onglets { display: flex; gap: 1rem; border-bottom: 1px solid #ccc; padding-bottom: .5rem; margin-top: 1.5rem; }
.bloc { border-bottom: 1px solid #ddd; padding: .35rem 0; }
.bloc summary { cursor: pointer; }
.bloc .numero { display: inline-block; min-width: 2.5rem; color: #777; }
.bloc .adresse { padding-left: 2.8rem; color: #555; }
.bloc .montant { float: right; }
.echeances { display: flex; flex-wrap: wrap; gap: 0 2rem; }
.legende { color: #555; }
.nowrap { white-space: nowrap; }
.date-adresse { color: #777; }
.rapport { border-top: 1px solid #ddd; margin-top: 1rem; }

/* Téléphone (seuil 576px de hide-on-small-screen du thème). Le menu tient sur une
   ligne même en français, aux libellés plus longs ; la liste des dossiers garde
   Dossier, Créance (le nom du débiteur sur la ligne du dossier), Principal et
   Solde, celle des débiteurs Dossier, Débiteur et Adresse, celle des paiements
   Date, Dossier, Montant et Description ; les textes trop longs
   sont coupés d'un « … » plutôt que de déborder de l'écran. */
@media (max-width: 576px) {
  .navbar-tool .container { padding-left: 8px; padding-right: 8px; }
  .navbar-tool .nav > li > a { padding-left: 8px; padding-right: 8px; }
  .dossiers > thead > tr > th, .dossiers > tbody > tr > td,
  .debiteurs > thead > tr > th, .debiteurs > tbody > tr > td,
  .paiements > thead > tr > th, .paiements > tbody > tr > td { padding-left: 4px; padding-right: 4px; }
  .tronque { display: block; max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Date, Dossier et Montant prennent déjà environ 240px. */
  .paiements .tronque { max-width: 25vw; }
}

/* Voile de chargement d'une recherche. La fenêtre de recherche met environ
   350 ms à disparaître (fondu Bootstrap, z-index 1040 et 1050) : sous elle, le
   voile du thème (899) restait caché, et sur téléphone, où la fenêtre couvre
   tout l'écran, une recherche rapide arrivait sans qu'on voie la roue. Ici, au-
   dessus de la fenêtre dès la validation ; fond seul assombri (opacity pâlissait
   aussi la roue) et roue au centre de l'écran quelle que soit sa hauteur. */
#wait-during-download-file { opacity: 1; background: rgba(0, 0, 0, .5); z-index: 1060; }
#wait-during-download-file.actif { display: flex; align-items: center; justify-content: center; }
#wait-during-download-file .loader { margin: 0; }

/* Page de conformité au patron (dev seulement) : un état se lit à sa couleur
   et à son libellé, jamais à la couleur seule. */
.conformite-resume .etat { margin-right: .5em; }
.etat { display: inline-block; padding: 1px 6px; border-radius: 3px; border: 1px solid transparent; }
.etat-suivi { background: #dff0d8; border-color: #b2d8a5; color: #2b542c; }
.etat-exception { background: #fcf8e3; border-color: #f0d98a; color: #6b5200; }
.etat-non-suivi { background: #f2dede; border-color: #e4b9b9; color: #843534; }
.etat-sans-objet, .etat-obsolete { background: #eee; border-color: #ccc; color: #555; }
.etat-perime { background: #fff; border-color: #f0ad4e; color: #8a5a00; }
.etat-presumee { background: #d9edf7; border-color: #a6d0e4; color: #245269; }
.conformite-portee th { background: #f5f5f5; font-weight: normal; font-style: italic; }
.conformite td { vertical-align: top; }

/* Mises en forme autrefois écrites dans les gabarits (attributs style=), que
   la CSP du projet (style-src 'self') refuserait. Un attribut style= l'emporte
   sur toute feuille : ces classes portent !important pour garder le rendu
   même face à une règle plus précise du thème ou de Bootstrap. */
.sans-debord { overflow: hidden !important; }
.sans-gouttiere { padding-left: 0 !important; padding-right: 0 !important; }
.sans-retrait-gauche { padding-left: 0 !important; }
.retrait-gauche-5 { padding-left: 5px !important; }
.retrait-haut-30 { padding-top: 30px !important; }
.marge-haut-50 { margin-top: 50px !important; }
.marge-bas-25 { margin-bottom: 25px !important; }
.pleine-largeur { width: 100% !important; }
.couleur-heritee { color: inherit !important; }
.lien-neutre { color: inherit !important; text-decoration: none !important; }
.texte-90 { font-size: 90% !important; }
.fond-clair { background-color: #F9F9F9 !important; }
.pied-formulaire { margin-top: 10px !important; text-align: center !important; }
/* « min - max », « (aaaa-mm) » à côté d'un libellé de recherche. */
.mention-format { white-space: nowrap !important; font-size: 10px !important; }
/* Origine d'une ligne de la fiche : (F) Fidusud, (C) client. */
.mention-origine { font-size: 7pt !important; padding-left: 1px !important; }
.lien-details { font-weight: 700 !important; color: #406F7F !important; }
/* Une ligne de liste ouvre sa fiche (theme.js). */
tr[data-fiche] { cursor: pointer; }
/* Icône du compte, dans la barre du haut : pastille blanche, survol compris. */
.btn-menu.btn-compte { border-radius: 95px !important; background-color: white !important; color: #406F7F !important; padding-top: 0 !important; padding-bottom: 0 !important; }
/* Bandeau des messages non lus, sous la barre de menu ; theme.js l'affiche
   en fondu quand il y en a (jQuery montre aussi un élément caché par feuille). */
.bandeau-fixe { display: block; position: fixed; top: 96px; z-index: 97; right: 0; left: 0; }
#msgUnread809 { display: none; padding: 5px; float: right; }
#msgUnread809 .texte { margin-left: 10px; margin-right: 10px; }
#msgUnread809 .close { color: rgb(138, 109, 59); }
/* Roue d'attente dans la fenêtre d'une fiche, en attendant son contenu. */
.loader.loader-fenetre { width: 60px; height: 60px; border-width: 8px; margin: 40px auto; }
/* Sans JavaScript, le formulaire du mot de passe s'affiche sous le panneau
   (Bootstrap .hide le cache : même !important, l'identifiant l'emporte). */
@media (scripting: none) {
  #fenetre-conteneur { display: block !important; }
}
