/* LFIV - habillage de l'espace agents (/scp). Volontairement leger : on ne touche pas aux ecrans de travail. */
:root { --fr-bleu: #0055A4; --fr-rouge: #EF4135; --lfiv-marine: #2B4368; --lfiv-marine-fonce: #1B2C4A; --lfiv-rouge: #991C15; --lfiv-jaune: #DCC20F; }

/* ---- Page de connexion ---- */
body#loginBody { background: #1B2C4A url(/lfiv/fond-connexion.jpg?v=bbr) center / cover no-repeat fixed; font-family: "Segoe UI", "Noto Sans", Roboto, Arial, sans-serif; }
body#loginBody #brickwall { display: none; }
body#loginBody #loginBox {
  border: 0; border-radius: 18px; background: transparent; width: 420px; margin-left: -210px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35); padding: 22px 30px 26px;
}
body#loginBody #loginBox::after { background: #fff; border: 0; border-radius: 18px; }
body#loginBody form#login { display: flow-root; }
body#loginBody #company { bottom: -52px; width: 420px; margin-left: -210px; }
body#loginBody #loginBox::before { content: ""; display: block; height: 6px; margin: -22px -30px 18px; border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--fr-bleu) 0 33.3%, #fff 33.3% 66.6%, var(--fr-rouge) 66.6% 100%); }
body#loginBody #blur, body#loginBody #background { display: none; }
body#loginBody h1#logo img { max-height: 70px; width: auto; }
body#loginBody #login-message { color: var(--lfiv-marine); font-weight: 600; }
body#loginBody input[type=text], body#loginBody input[type=password] {
  border: 1px solid #CDD5E1; border-radius: 10px; padding: 10px 12px; font-size: 15px; box-shadow: none;
}
body#loginBody input:focus { outline: none; border-color: var(--lfiv-marine); box-shadow: 0 0 0 3px rgba(43,67,104,.18); }
body#loginBody button.submit, body#loginBody .button {
  background: var(--lfiv-marine) !important; border: 0 !important; border-radius: 10px !important; color: #fff !important;
  padding: 9px 20px !important; height: auto !important; line-height: 1.4 !important; font-weight: 600; box-shadow: 0 4px 12px rgba(27,44,74,.25) !important; text-shadow: none !important;
}
body#loginBody button.submit:hover { background: var(--lfiv-marine-fonce) !important; }
body#loginBody #reset-link { color: var(--lfiv-marine); }
body#loginBody #company { color: rgba(255,255,255,.8); }
body#loginBody #poweredBy { opacity: .5; }

/* ================= Espace de travail des agents ================= */
body:not(#loginBody) {
  background: #F3F5F9 !important; color: #1F2A3C;
  font-family: "Segoe UI", "Noto Sans", "Noto Sans Thai", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body:not(#loginBody)::before { content: ""; display: block; height: 5px;
  background: linear-gradient(90deg, var(--fr-bleu) 0 33.3%, #fff 33.3% 66.6%, var(--fr-rouge) 66.6% 100%); }
body:not(#loginBody) #container { width: auto !important; max-width: 1400px; margin: 18px auto 0 !important; background: #fff;
  border: 0 !important; border-radius: 16px; box-shadow: 0 6px 24px rgba(27,44,74,.08); }
body:not(#loginBody) #header { display: flow-root; height: auto !important; padding: 14px 24px !important; background: #fff !important;
  border-bottom: 1px solid #E1E6EE; border-radius: 16px 16px 0 0; }
body:not(#loginBody) #header #logo img { max-height: 48px; width: auto; }
body:not(#loginBody) #header #info { background: #F3F6FB !important; border: 0 !important; border-radius: 999px; padding: 8px 16px !important;
  margin-top: 6px; color: var(--lfiv-marine); font-size: 13.5px; box-shadow: none !important; }
body:not(#loginBody) #header #info a { color: var(--lfiv-marine) !important; font-weight: 600; }
body:not(#loginBody) #header #info a:hover { color: var(--fr-rouge) !important; }

/* onglets principaux */
body:not(#loginBody) #nav { display: flex; gap: 6px; flex-wrap: wrap; height: auto !important; padding: 10px 20px !important; margin: 0 !important;
  background: #fff !important; border: 0 !important; border-bottom: 1px solid #E1E6EE !important; box-shadow: none !important; }
body:not(#loginBody) #nav li { float: none !important; margin: 0 !important; background: none !important; border: 0 !important; height: auto !important; }
body:not(#loginBody) #nav li a { display: inline-block; padding: 8px 18px !important; border-radius: 999px; background: none !important;
  color: var(--lfiv-marine) !important; font-weight: 600; font-size: 14px; height: auto !important; line-height: 1.4 !important; border: 0 !important; }
body:not(#loginBody) #nav li a:hover { background: #EEF2F8 !important; text-decoration: none; }
body:not(#loginBody) #nav li.active a { background: var(--lfiv-marine) !important; color: #fff !important; box-shadow: 0 3px 10px rgba(27,44,74,.25); }

/* sous-navigation (files) */
body:not(#loginBody) #sub_nav { background: #F7F9FC !important; border: 0 !important; border-bottom: 1px solid #E1E6EE !important; padding: 8px 20px !important;
  display: flex; flex-wrap: wrap; gap: 4px; height: auto !important; box-shadow: none !important; }
body:not(#loginBody) #sub_nav > li { float: none !important; background: none !important; border: 0 !important; margin: 0 !important; }
body:not(#loginBody) #nav li, body:not(#loginBody) #nav li.active { box-shadow: none !important; background: none !important; }
body:not(#loginBody) table.list { width: 100% !important; }
body:not(#loginBody) #sub_nav > li > a { border-radius: 10px; padding: 7px 12px 7px 32px !important; background-position: 10px center !important; color: var(--lfiv-marine) !important; font-weight: 600; background-color: transparent !important; }
body:not(#loginBody) #sub_nav > li > a:hover, body:not(#loginBody) #sub_nav > li.active > a { background-color: #E6EEF9 !important; text-decoration: none; }
body:not(#loginBody) #sub_nav > li.active > a { color: var(--fr-bleu) !important; }

/* contenu */
body:not(#loginBody) #content { padding: 18px 24px 26px !important; }
body:not(#loginBody) #content h2, body:not(#loginBody) #content h2 a { color: var(--lfiv-marine-fonce) !important; font-weight: 800; }
body:not(#loginBody) .sticky.bar { background: #fff !important; }
body:not(#loginBody) .sticky.bar.fixed { box-shadow: 0 6px 18px rgba(27,44,74,.12) !important; border-bottom: 1px solid #E1E6EE; }

/* tableaux (files de tickets, listes) */
body:not(#loginBody) table.list { border: 1px solid #E1E6EE !important; border-radius: 12px; border-collapse: separate !important; border-spacing: 0; overflow: hidden; background: #fff; }
body:not(#loginBody) table.list thead th { background: #EEF2F8 !important; background-image: none !important; color: var(--lfiv-marine-fonce) !important;
  border: 0 !important; border-bottom: 1px solid #E1E6EE !important; padding: 10px 8px !important; font-weight: 700; }
body:not(#loginBody) table.list thead th a { color: var(--lfiv-marine-fonce) !important; }
body:not(#loginBody) table.list tbody td { border: 0 !important; border-bottom: 1px solid #EEF1F6 !important; padding: 9px 8px !important; background: #fff !important; }
body:not(#loginBody) table.list tbody tr:nth-child(2n+1) td { background: #FBFCFE !important; }
body:not(#loginBody) table.list tbody tr:hover td { background: #EEF3FA !important; }
body:not(#loginBody) table.list tbody td a { color: var(--lfiv-marine) !important; }
body:not(#loginBody) table.list tfoot td { background: #F7F9FC !important; border: 0 !important; }

/* boutons */
body:not(#loginBody) .action-button, body:not(#loginBody) a.button, body:not(#loginBody) .button {
  border-radius: 10px !important; border: 1px solid #D5DEEA !important; background: #fff !important; background-image: none !important;
  box-shadow: 0 1px 2px rgba(27,44,74,.06) !important; color: var(--lfiv-marine) !important; }
body:not(#loginBody) .action-button:hover, body:not(#loginBody) a.button:hover { background: #EEF2F8 !important; }
body:not(#loginBody) input[type=submit], body:not(#loginBody) button[type=submit], body:not(#loginBody) input.save, body:not(#loginBody) .primary.button {
  background: var(--fr-bleu) !important; background-image: none !important; color: #fff !important; border: 0 !important; border-radius: 10px !important;
  padding: 8px 18px !important; font-weight: 700 !important; box-shadow: 0 3px 10px rgba(0,85,164,.25) !important; text-shadow: none !important; height: auto !important; }
body:not(#loginBody) input[type=submit]:hover, body:not(#loginBody) input.save:hover { background: #00447F !important; }
body:not(#loginBody) input[type=reset], body:not(#loginBody) input[type=button] { border-radius: 10px !important; }

/* champs */
body:not(#loginBody) input[type=text], body:not(#loginBody) input[type=search], body:not(#loginBody) input[type=email], body:not(#loginBody) select, body:not(#loginBody) textarea {
  border: 1px solid #CDD5E1 !important; border-radius: 8px !important; box-shadow: none !important; }
body:not(#loginBody) input:focus, body:not(#loginBody) select:focus, body:not(#loginBody) textarea:focus { outline: none; border-color: var(--lfiv-marine) !important; box-shadow: 0 0 0 3px rgba(43,67,104,.15) !important; }
body:not(#loginBody) #basic-ticket-search, body:not(#loginBody) .search.well { background: #F7F9FC !important; border: 1px solid #E1E6EE !important; border-radius: 12px !important; box-shadow: none !important; }

/* onglets reponse / note */
body:not(#loginBody) ul.tabs { border-bottom: 2px solid #E1E6EE !important; background: none !important; }
body:not(#loginBody) ul.tabs li a { border: 0 !important; border-radius: 10px 10px 0 0 !important; background: #EEF2F8 !important; color: var(--lfiv-marine) !important; font-weight: 600; }
body:not(#loginBody) ul.tabs li.active a { background: var(--lfiv-marine) !important; color: #fff !important; }

/* discussion : demandeur bleu clair, equipe marine, note interne jaune */
body:not(#loginBody) .thread-entry .header { border: 0 !important; border-radius: 12px 12px 0 0 !important; }
body:not(#loginBody) .thread-entry.message .header { background: #E6EEF9 !important; }
body:not(#loginBody) .thread-entry.avatar.message .header:before, body:not(#loginBody) .thread-entry.avatar.message .header:after { border-right-color: #E6EEF9 !important; }
body:not(#loginBody) .thread-entry.response .header { background: var(--lfiv-marine) !important; color: #fff !important; }
body:not(#loginBody) .thread-entry.response .header a, body:not(#loginBody) .thread-entry.response .header b, body:not(#loginBody) .thread-entry.response .header .title { color: #fff !important; }
body:not(#loginBody) .thread-entry.avatar.response .header:before, body:not(#loginBody) .thread-entry.avatar.response .header:after { border-left-color: var(--lfiv-marine) !important; }
body:not(#loginBody) .thread-entry.note .header { background: #FBF3D0 !important; }
body:not(#loginBody) .thread-entry .thread-body { border: 1px solid #E1E6EE !important; border-top: 0 !important; border-radius: 0 0 12px 12px !important; background: #fff !important; }
body:not(#loginBody) .thread-entry > .avatar { border-radius: 50%; overflow: hidden; }

/* pied de page */
body:not(#loginBody) #footer { max-width: 1400px; margin: 14px auto 24px !important; color: #5B6678; font-size: 12px; background: none !important; border: 0 !important; }

/* ================= 28/09 : MODE SIMPLE (lfiv-scp.js ajoute body.lfiv-simple) ================= */
#lfiv-bascule { margin-left: 10px; font-weight: 600; opacity: .75; }
.lfiv-cache { display: none !important; }

/* Liste : cartes a la place du tableau */
body.lfiv-simple table.list.queue.tickets,
body.lfiv-simple #content form[action="tickets.php"] > div:has(#queue-export),
body.lfiv-simple .queue .pull-right.flush-right, body.lfiv-simple #content .pull-right.flush-right:has(.action-button),
body.lfiv-simple a[href*="search"][data-dropdown], body.lfiv-simple .sticky.bar .pull-right.flush-right,
body.lfiv-simple #content form.search a.help-tip, body.lfiv-simple #content .search a[onclick*="advanced"],
body.lfiv-simple #content [data-dropdown="#sort-dropdown"], body.lfiv-simple #customQ_nav .customQ-dropdown,
body.lfiv-simple #sub_nav .icon-sort-down, body.lfiv-simple #ticket-tasks-tab { display: none !important; }
.lfiv-cartes-tickets { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 18px; }
a.lfiv-carte-ticket { display: block; background: #fff; border: 1px solid #E1E6EE; border-left: 5px solid #2B4368; border-radius: 14px;
  padding: 14px 18px; text-decoration: none !important; color: #1F2A3C !important; box-shadow: 0 1px 3px rgba(27,44,74,.06); transition: box-shadow .15s, transform .15s; }
a.lfiv-carte-ticket:hover { box-shadow: 0 6px 20px rgba(27,44,74,.12); transform: translateY(-1px); }
a.lfiv-carte-ticket.urgent { border-left-color: #EF4135; }
.lfiv-ct-haut { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.lfiv-ct-num { font-size: 13px; font-weight: 700; color: #5B6678; }
.lfiv-ct-etat { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.lfiv-ct-etat.libre { background: #FDECEA; color: #B3261E; }
.lfiv-ct-etat.pris { background: #E7F4EC; color: #1E6B3C; }
.lfiv-ct-objet { font-size: 17px; font-weight: 700; color: #1B2C4A; line-height: 1.3; }
.lfiv-ct-meta { font-size: 13.5px; color: #5B6678; margin-top: 4px; }
.lfiv-vide { padding: 30px; text-align: center; color: #5B6678; background: #F7F9FC; border-radius: 14px; font-size: 15px; }

/* Fiche d'une demande */
body.lfiv-simple:not(.lfiv-details) table.ticket_info, body.lfiv-simple:not(.lfiv-details) .tixTitle { display: none !important; }
.lfiv-fiche { background: #fff; border: 1px solid #E1E6EE; border-radius: 16px; padding: 20px 22px; margin: 6px 0 18px; box-shadow: 0 1px 3px rgba(27,44,74,.05); }
.lfiv-fiche-tete { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lfiv-fiche-num { font-size: 13px; font-weight: 700; color: #5B6678; }
#content h1.lfiv-fiche-titre { font-size: 22px; line-height: 1.25; margin: 4px 0 0; color: #1B2C4A; font-weight: 800; }
.lfiv-actions-ticket { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 16px; }
button.lfiv-act { font: inherit; font-size: 16px; font-weight: 700; border: 0; border-radius: 12px; padding: 14px 22px; cursor: pointer; color: #fff;
  min-width: 160px; box-shadow: 0 3px 10px rgba(27,44,74,.18); transition: filter .15s, transform .15s; }
button.lfiv-act:hover { filter: brightness(1.1); transform: translateY(-1px); }
button.lfiv-act.prendre { background: #2B4368; }
button.lfiv-act.repondre { background: #0055A4; }
button.lfiv-act.terminer { background: #2E7D4F; }
dl.lfiv-fiche-infos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 22px; margin: 0; }
dl.lfiv-fiche-infos > div { background: #F5F7FB; border-radius: 10px; padding: 9px 12px; }
dl.lfiv-fiche-infos dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #5B6678; margin: 0; }
dl.lfiv-fiche-infos dd { margin: 2px 0 0; font-size: 15px; color: #1B2C4A; font-weight: 600; word-break: break-word; }
a.lfiv-plus { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 600; }

/* Reponse */
p.lfiv-dest { margin: 4px 0 10px; color: #5B6678; font-size: 14px; }
body.lfiv-simple #reply input[type=submit] { font-size: 16px !important; padding: 13px 28px !important; }

/* ================= Telephone ================= */
@media (max-width: 760px) {
  body:not(#loginBody) #container { width: auto !important; margin: 0 !important; border-radius: 0 !important; }
  body:not(#loginBody) #header { padding: 10px 12px !important; height: auto !important; }
  body:not(#loginBody) #header #logo img { max-height: 38px !important; }
  body:not(#loginBody) #header #info { float: none !important; font-size: 12.5px; padding: 6px 10px !important; margin-top: 6px; }
  body:not(#loginBody) #nav, body:not(#loginBody) #sub_nav { display: flex !important; overflow-x: auto; white-space: nowrap; padding: 6px 8px !important; }
  body:not(#loginBody) #nav li, body:not(#loginBody) #sub_nav > li { float: none !important; flex: none; }
  body:not(#loginBody) #content { padding: 10px 12px !important; width: auto !important; }
  body:not(#loginBody) .sticky.bar .content { width: auto !important; }
  #content table, #content form, .redactor-box { max-width: 100% !important; }
  #content table[width] { width: 100% !important; }
  .lfiv-fiche { padding: 16px; }
  #content h1.lfiv-fiche-titre { font-size: 19px; }
  .lfiv-fiche-tete { flex-direction: column; }
  button.lfiv-act { flex: 1 1 100%; min-width: 0; }
  dl.lfiv-fiche-infos { grid-template-columns: 1fr; }
  #reply table td, #reply table th { display: block; width: auto !important; }
  .thread-entry { margin-left: 0 !important; }
  .thread-entry > .avatar { display: none !important; }
}
/* 28/09 finitions mode simple */
body.lfiv-simple .sticky.bar:not(.stop):not(#response_options) { display: none !important; }
body.lfiv-simple #queue-export, body.lfiv-simple #queue-export + .help-tip, body.lfiv-simple #content .faded.pull-right,
body.lfiv-simple #content a[href="#"][onclick*="search"], body.lfiv-simple #content .search-advanced,
body.lfiv-simple #content form[action="tickets.php"] a:not([href]):not(.button) { display: none !important; }
body.lfiv-simple #content a[href*="advanced"], body.lfiv-simple #content .help-tip { display: none !important; }
@media (max-width: 760px) {
  html, body { overflow-x: hidden; max-width: 100vw; }
  body:not(#loginBody) #sub_nav, body:not(#loginBody) .sticky.bar .content, #ticket_tabs_container, #response_options, #content > div, #content form { width: auto !important; max-width: 100% !important; }
  dl.lfiv-fiche-infos { grid-template-columns: 1fr 1fr; gap: 8px; }
  dl.lfiv-fiche-infos > div:first-child { grid-column: 1 / -1; }
  dl.lfiv-fiche-infos dd { font-size: 14px; }
}
/* Fenetres de confirmation (prendre, terminer) : lisibles sur telephone */
@media (max-width: 760px) {
  .dialog, div.dialog.draggable { position: fixed !important; left: 8px !important; right: 8px !important; top: 60px !important;
    width: auto !important; max-width: none !important; margin: 0 !important; max-height: calc(100vh - 80px); overflow-y: auto; box-sizing: border-box; }
  .dialog textarea, .dialog input[type=text], .dialog select, .dialog .redactor-box { width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
  .dialog .buttons, .dialog p.full-width { display: flex; justify-content: space-between; gap: 10px; }
}
.dialog { border-radius: 14px !important; }
.dialog h3 { color: #1B2C4A !important; }

/* ---- 29/09 : techniciens = connexion Google seule (formulaire mot de passe masque ; secours : /scp/login.php?secours) ---- */
body#loginBody:not(.lfiv-secours) form#login, body#loginBody:not(.lfiv-secours) .or { display: none !important; }
body#loginBody .external-auth { margin-top: 8px; }
body#loginBody a.external-sign-in { display: block; text-decoration: none; }
body#loginBody .external-auth-box { display: flex !important; align-items: center; justify-content: center; gap: 10px; width: auto !important; background: #0055A4 !important; color: #fff !important; border: 0 !important; border-radius: 12px !important; padding: 14px 18px !important; font-weight: 700; font-size: 16px; box-shadow: 0 4px 14px rgba(0,85,164,.25); }
body#loginBody .external-auth-icon, body#loginBody .external-auth-name { float: none !important; width: auto !important; color: #fff !important; border: 0 !important; }
body#loginBody .lfiv-login-aide { color: #5B6678; font-size: 13.5px; text-align: center; margin: 12px 0 0; }

/* ---- 29/09 : espace technicien plus engageant (accueil, compteurs, cartes par service) ---- */
html { background: #F3F5F9 !important; }
body:not(#loginBody) { min-height: 100vh; }
/* sous-menu : une rangee de pastilles propre, sans cadre gris ni decalage */
body:not(#loginBody) #customQ_nav { background: #fff !important; border: 0 !important; border-bottom: 1px solid #E1E6EE !important; width: auto !important; }
body:not(#loginBody) #sub_nav { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px; background: #fff !important; border: 0 !important; padding: 10px 20px !important; width: auto !important; height: auto !important; }
body:not(#loginBody) #sub_nav > li { display: block !important; height: auto !important; line-height: normal !important; position: relative; }
body:not(#loginBody) #sub_nav > li > a { display: inline-flex !important; align-items: center; height: auto !important; line-height: 1.2 !important; margin: 0 !important; padding: 9px 16px 9px 36px !important; border-radius: 999px !important; }
body:not(#loginBody) #sub_nav > li.active > a { background-color: var(--lfiv-marine) !important; color: #fff !important; box-shadow: 0 3px 10px rgba(27,44,74,.2); }
body:not(#loginBody) #sub_nav > li.active > a { background-image: none !important; padding-left: 16px !important; }

/* accueil technicien */
.lfiv-agent-tete { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin: 6px 0 16px; padding: 24px 28px; border-radius: 18px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 160% at 0% 0%, #34507C 0%, #2B4368 45%, #1B2C4A 100%); }
.lfiv-agent-tete::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, #CE1126 0 25%, #002868 25% 75%, #CE1126 75% 100%); }
.lfiv-agent-kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #DCC20F; }
body:not(#loginBody) #content .lfiv-agent-tete h1 { color: #fff !important; font-size: 26px; font-weight: 800; margin: 4px 0 4px; }
.lfiv-agent-salut p { margin: 0; color: #D9E2F0; font-size: 15px; }
.lfiv-agent-compteurs { display: flex; gap: 10px; }
.lfiv-cpt { min-width: 96px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); text-align: center; }
.lfiv-cpt b { display: block; font-size: 28px; line-height: 1.1; font-weight: 800; }
.lfiv-cpt span { font-size: 12.5px; color: #D9E2F0; }
.lfiv-cpt.libre b { color: #FFB4AE; } .lfiv-cpt.pris b { color: #A8E3BF; } .lfiv-cpt.moi b { color: #FFE680; }

/* recherche */
body.lfiv-simple #basic_search.lfiv-recherche { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 0 12px !important; }
body.lfiv-simple #basic_search form .attached.input { display: flex !important; width: 100%; max-width: 560px; border: 1px solid #D5DDE8 !important; border-radius: 12px !important; background: #fff !important; overflow: hidden; box-shadow: 0 2px 8px rgba(27,44,74,.06); }
body.lfiv-simple #basic_search input.basic-search { flex: 1; border: 0 !important; outline: 0 !important; box-shadow: none !important; height: 44px !important; padding: 0 14px !important; font-size: 15px; width: auto !important; }
body.lfiv-simple #basic_search button.attached { border: 0 !important; border-radius: 0 !important; background: var(--lfiv-marine) !important; color: #fff !important; width: 52px; height: 44px !important; margin: 0 !important; box-shadow: none !important; }

/* cartes */
a.lfiv-carte-ticket { display: flex !important; align-items: center; gap: 14px; padding: 14px 16px !important; border-left-width: 6px !important; }
a.lfiv-carte-ticket.svc-info { border-left-color: #2B4368 !important; }
a.lfiv-carte-ticket.svc-maint { border-left-color: #2E7D4F !important; }
a.lfiv-carte-ticket.svc-comm { border-left-color: #991C15 !important; }
a.lfiv-carte-ticket.urgent { border-left-color: #EF4135 !important; background: #FFF8F7 !important; }
.lfiv-ct-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: #2B4368; }
.svc-maint .lfiv-ct-avatar { background: #2E7D4F; } .svc-comm .lfiv-ct-avatar { background: #991C15; }
.lfiv-ct-corps { flex: 1; min-width: 0; }
.lfiv-ct-haut { justify-content: flex-start !important; flex-wrap: wrap; }
.lfiv-ct-svc, .lfiv-ct-msg { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #E8EEF7; color: #2B4368; }
.svc-maint .lfiv-ct-svc { background: #E3F2E9; color: #1F5E3B; } .svc-comm .lfiv-ct-svc { background: #F8E4E2; color: #7A1610; }
.lfiv-ct-msg { background: #F1F3F6; color: #5B6678; font-weight: 600; }
.lfiv-ct-objet { overflow: hidden; text-overflow: ellipsis; }
.lfiv-ct-droite { flex: none; display: flex; align-items: center; gap: 10px; }
.lfiv-ct-fleche { font-size: 26px; color: #9AA8BC; line-height: 1; }
a.lfiv-carte-ticket:hover .lfiv-ct-fleche { color: var(--fr-bleu); }
.lfiv-vide { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 20px !important; background: #F4FAF6 !important; border: 1px dashed #BFE0CB; }
.lfiv-vide svg { width: 48px; height: 48px; color: #2E7D4F; }
.lfiv-vide b { font-size: 18px; color: #1F5E3B; }
body.lfiv-simple #content > div > table + div, body.lfiv-simple .pagination { color: #5B6678; }

/* fiche : fil de discussion plus leger */
body.lfiv-simple .thread-entry > .avatar { display: none !important; }
body.lfiv-simple .thread-entry { margin-right: 0 !important; }
body.lfiv-simple .thread-entry.avatar .header:before, body.lfiv-simple .thread-entry.avatar .header:after { display: none !important; }
body.lfiv-simple .thread-entry .header { padding: 10px 14px !important; }
body.lfiv-simple .thread-event { opacity: .75; font-size: 12.5px; }

@media (max-width: 700px) {
  .lfiv-agent-tete { padding: 18px; }
  body:not(#loginBody) #content .lfiv-agent-tete h1 { font-size: 21px; }
  .lfiv-agent-compteurs { width: 100%; }
  .lfiv-cpt { flex: 1; min-width: 0; padding: 10px 6px; }
  .lfiv-ct-avatar { display: none; }
  a.lfiv-carte-ticket { flex-wrap: wrap; }
  .lfiv-ct-droite { width: 100%; justify-content: space-between; }
}
body:not(#loginBody) #sub_nav > li[style*="display: none"], body:not(#loginBody) #sub_nav > li[style*="display:none"] { display: none !important; }
body.lfiv-simple #basic_search.lfiv-recherche, body.lfiv-simple #basic_search form { height: auto !important; overflow: visible !important; float: none !important; }
body.lfiv-simple #basic_search form .attached.input { height: 46px !important; line-height: normal !important; padding: 0 !important; outline: 0 !important; }
body.lfiv-simple #basic_search form .attached.input.focus, body.lfiv-simple #basic_search form .attached.input:focus-within { border-color: #2B4368 !important; box-shadow: 0 0 0 3px rgba(43,67,104,.15) !important; }
body.lfiv-simple #basic_search input.basic-search { height: 44px !important; line-height: 44px !important; margin: 0 !important; border-radius: 0 !important; background: #fff !important; }
body.lfiv-simple #basic_search button.attached { height: 46px !important; display: grid; place-items: center; }
body.lfiv-simple #basic_search > .pull-right { display: none !important; }
body.lfiv-simple p.lfiv-cloture { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: #E7F4EC; border-left: 4px solid #2E7D4F; color: #1F5E3B; font-size: 14.5px; } body.lfiv-simple p.lfiv-cloture a { color: #1F5E3B; font-weight: 700; margin-left: 6px; }

/* ---- 29/09 : « Nouvelle demande » cote technicien, comme le portail ---- */
body.lfiv-nd .lfiv-cache { display: none !important; }
body.lfiv-nd #content form[action="tickets.php?a=open"] { max-width: 900px; }
body.lfiv-nd #content form[action="tickets.php?a=open"] h2 { font-size: 26px; margin: 0 0 4px; }
.lfiv-nd-intro { color: #5B6678; margin: 0 0 16px; font-size: 15px; }
body.lfiv-nd table.form_table { width: 100% !important; border: 1px solid #E1E6EE !important; border-radius: 16px; border-collapse: separate !important; border-spacing: 0; background: #fff; padding: 8px 18px 14px; box-shadow: 0 6px 24px rgba(27,44,74,.06); }
body.lfiv-nd table.form_table th { background: none !important; border: 0 !important; padding: 16px 0 6px !important; }
body.lfiv-nd table.form_table th em { font-style: normal; font-size: 17px; color: #1B2C4A; border-left: 4px solid #0055A4; padding-left: 10px; display: inline-block; }
body.lfiv-nd table.form_table th em strong { font-weight: 800; }
body.lfiv-nd table.form_table td { border: 0 !important; padding: 6px 4px !important; }
body.lfiv-nd #userRow td:first-child { font-weight: 700; color: #1B2C4A; width: 70px; }
body.lfiv-nd #userRow .select2-container { width: min(460px, 100%) !important; }
body.lfiv-nd #userRow .select2-selection { min-height: 42px !important; border-radius: 10px !important; border-color: #D5DDE8 !important; display: flex; align-items: center; }
body.lfiv-nd #userRow a.inline.button { margin-left: 8px; border-radius: 10px !important; }
/* boutons service / type (memes couleurs que le portail) */
.lfiv-rub-lib { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5B6678; margin: 6px 0 8px; }
.lfiv-rub-services { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
button.lfiv-rub-service { padding: 12px 22px; border-radius: 12px; border: 2px solid #D5DDE8; background: #fff; font-weight: 700; font-size: 15px; cursor: pointer; color: #1B2C4A; }
button.lfiv-rub-service.lfiv-info { color: #1F3A5F; border-color: #C8D3E4; } button.lfiv-rub-service.lfiv-maint { color: #1F5E3B; border-color: #BFE0CB; } button.lfiv-rub-service.lfiv-comm { color: #7A1610; border-color: #EBC4C0; }
button.lfiv-rub-service.actif.lfiv-info { background: #2B4368; color: #fff; border-color: #2B4368; }
button.lfiv-rub-service.actif.lfiv-maint { background: #2E7D4F; color: #fff; border-color: #2E7D4F; }
button.lfiv-rub-service.actif.lfiv-comm { background: #991C15; color: #fff; border-color: #991C15; }
.lfiv-rub-puces { display: flex; flex-wrap: wrap; gap: 8px; }
button.lfiv-rub-puce { padding: 8px 14px; border-radius: 999px; border: 0; background: #E8EEF7; color: #1F3A5F; font-weight: 600; cursor: pointer; }
.lfiv-maint button.lfiv-rub-puce { background: #E3F2E9; color: #1F5E3B; } .lfiv-comm button.lfiv-rub-puce { background: #F8E4E2; color: #7A1610; }
button.lfiv-rub-puce.actif { background: #2B4368; color: #fff; } .lfiv-maint button.lfiv-rub-puce.actif { background: #2E7D4F; } .lfiv-comm button.lfiv-rub-puce.actif { background: #991C15; }
.lfiv-nd-moi { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0; padding: 10px 14px; border-radius: 10px; background: #F3F6FA; font-weight: 600; color: #1B2C4A; cursor: pointer; }
.lfiv-nd-moi input { width: 18px; height: 18px; }
body.lfiv-nd #content form[action="tickets.php?a=open"] input[type=submit] { font-size: 16px !important; padding: 13px 30px !important; }
body.lfiv-nd #dynamic-form .select2-selection { min-height: 42px !important; border-radius: 10px !important; border-color: #D5DDE8 !important; display: flex; align-items: center; }

/* ---- 29/09 : base de connaissances cote technicien ---- */
a.lfiv-kb-ajout { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 12px; background: #DCC20F; color: #1B2C4A !important; font-weight: 800; text-decoration: none !important; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
a.lfiv-kb-ajout:hover { background: #ECD326; }
body.lfiv-simple #kbSearch #basic_search.lfiv-kb-rech { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 0 12px !important; height: auto !important; }
body.lfiv-simple #kbSearch .attached.input { display: flex !important; width: 100%; max-width: 560px; height: 46px !important; padding: 0 !important; border: 1px solid #D5DDE8 !important; border-radius: 12px !important; background: #fff !important; overflow: hidden; box-shadow: 0 2px 8px rgba(27,44,74,.06); }
body.lfiv-simple #kbSearch #query { flex: 1; border: 0 !important; outline: 0 !important; box-shadow: none !important; height: 44px !important; padding: 0 14px !important; font-size: 15px; width: auto !important; margin: 0 !important; border-radius: 0 !important; }
body.lfiv-simple #kbSearch #searchSubmit { border: 0 !important; border-radius: 0 !important; background: #2B4368 !important; color: #fff !important; width: 52px; height: 46px !important; margin: 0 !important; }
body.lfiv-simple #kbSearch .pull-right { display: none !important; }
body.lfiv-kb-form .lfiv-cache { display: none !important; }
body.lfiv-kb-form select[name=category_id], body.lfiv-kb-form select[name=ispublished] { min-height: 40px; border-radius: 10px !important; padding: 6px 10px !important; font-size: 15px; }
body.lfiv-kb-form input[name=question] { min-height: 44px; border-radius: 10px !important; font-size: 17px !important; }
body.lfiv-kb-form input[type=submit][name=submit] { font-size: 16px !important; padding: 13px 30px !important; }
body.lfiv-simple #kbSearch .attached.input, body.lfiv-simple #kbSearch .attached.input.focus { outline: 0 !important; box-shadow: 0 2px 8px rgba(27,44,74,.06) !important; border-color: #D5DDE8 !important; } body.lfiv-simple #kbSearch .attached.input:focus-within { border-color: #2B4368 !important; }

/* ---- 29/09 : « Vue complete » habillee comme la vue simple ---- */
/* sous-menu : fleches de liste deroulante collees au texte */
body:not(#loginBody) #sub_nav i.icon-sort-down { display: none !important; }
body:not(#loginBody) #sub_nav > li > a { gap: 6px; }
/* barres de recherche (tickets, utilisateurs, organisations, base de connaissances) */
body:not(#loginBody) #basic_search { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 0 14px !important; height: auto !important; box-shadow: none !important; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
body:not(#loginBody) #basic_search form { display: flex !important; align-items: center; gap: 10px; float: none !important; height: auto !important; }
body:not(#loginBody) #basic_search .attached.input { display: flex !important; width: 460px; max-width: 100%; height: 44px !important; padding: 0 !important; border: 1px solid #D5DDE8 !important; border-radius: 12px !important; background: #fff !important; overflow: hidden; outline: 0 !important; box-shadow: 0 2px 8px rgba(27,44,74,.06) !important; }
body:not(#loginBody) #basic_search .attached.input:focus-within { border-color: #2B4368 !important; }
body:not(#loginBody) #basic_search .attached.input input[type=text], body:not(#loginBody) #basic_search .attached.input input[type=search] { flex: 1; border: 0 !important; outline: 0 !important; box-shadow: none !important; height: 42px !important; line-height: 42px !important; padding: 0 14px !important; margin: 0 !important; border-radius: 0 !important; font-size: 15px; width: auto !important; background: #fff !important; }
body:not(#loginBody) #basic_search .attached.input button { border: 0 !important; border-radius: 0 !important; background: #2B4368 !important; color: #fff !important; width: 50px; height: 44px !important; margin: 0 !important; box-shadow: none !important; }
body:not(#loginBody) #basic_search > .pull-right { order: 2; margin-left: auto; height: auto !important; }
body:not(#loginBody) #basic_search a[onclick*="search"] { color: #2B4368 !important; font-weight: 600; }
/* en-tete de liste et barre collante */
body:not(#loginBody) .sticky.bar .content { width: auto !important; }
body:not(#loginBody) .sticky.bar.fixed { left: 0; right: 0; padding: 8px 24px !important; border-radius: 0 0 14px 14px; }
body:not(#loginBody) #content h2 { font-size: 22px !important; }
/* fiche d'une demande : toute la largeur, blocs d'infos en cartes */
body:not(#loginBody) table.ticket_info { width: 100% !important; border-collapse: separate !important; border-spacing: 12px 0; margin: 0 -12px 14px !important; }
body:not(#loginBody) table.ticket_info > tbody > tr > td { background: #F7F9FC !important; border: 1px solid #E1E6EE !important; border-radius: 14px; padding: 10px 14px !important; vertical-align: top; }
body:not(#loginBody) table.ticket_info table { background: none !important; }
body:not(#loginBody) table.ticket_info th { color: #5B6678 !important; font-weight: 600 !important; font-size: 13.5px; background: none !important; }
body:not(#loginBody) table.ticket_info td { background: none !important; }
body:not(#loginBody) .tixTitle h3 { font-size: 22px !important; font-weight: 800 !important; color: #1B2C4A !important; margin: 6px 0 12px !important; }
body:not(#loginBody) .thread-entry > .avatar { display: none !important; }
body:not(#loginBody) .thread-entry { margin-right: 0 !important; margin-left: 0 !important; }
body:not(#loginBody) .thread-entry.avatar .header:before, body:not(#loginBody) .thread-entry.avatar .header:after { display: none !important; }
body:not(#loginBody) .thread-event { opacity: .75; font-size: 12.5px; }
body:not(#loginBody) #response_options, body:not(#loginBody) #reply, body:not(#loginBody) #note { border: 1px solid #E1E6EE !important; border-radius: 14px !important; background: #FAFBFD !important; }
/* tableau de bord d'origine : fond blanc, cartes */
body:not(#loginBody) #line-chart-here { background: #fff !important; border: 1px solid #E1E6EE !important; border-radius: 14px; overflow: hidden; }
body:not(#loginBody) #line-chart-here svg text { font-family: "Segoe UI", Roboto, Arial, sans-serif !important; }
body:not(#loginBody) form[action="dashboard.php"], body:not(#loginBody) #content > form:has(input[name=start]) { background: #F7F9FC !important; border: 1px solid #E1E6EE !important; border-radius: 14px !important; padding: 10px 14px !important; }
body:not(#loginBody) table.dashboard-stats { width: 100% !important; border: 1px solid #E1E6EE !important; border-radius: 12px; border-collapse: separate !important; border-spacing: 0; overflow: hidden; }
body:not(#loginBody) table.dashboard-stats th { background: #EEF2F8 !important; color: #1B2C4A !important; padding: 10px !important; }
body:not(#loginBody) table.dashboard-stats td { padding: 9px 10px !important; border: 0 !important; border-top: 1px solid #EEF1F6 !important; background: #fff !important; }
a.lfiv-lien-stats { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 10px 16px; border-radius: 12px; background: #DCC20F; color: #1B2C4A !important; font-weight: 800; text-decoration: none !important; }
/* selection sous les listes */
body:not(#loginBody) table.list tfoot td, body:not(#loginBody) .list tfoot td { color: #5B6678 !important; }
body:not(#loginBody) table.list tbody td .Icon { opacity: .6; }

/* ---- 29/09 : vue complete = meme design que la vue simple (bandeau, en-tete de demande), details d'osTicket en plus ---- */
body:not(#loginBody):not(.lfiv-simple) .lfiv-fiche-infos, body:not(#loginBody):not(.lfiv-simple) a.lfiv-plus, body:not(#loginBody):not(.lfiv-simple) .tixTitle { display: none !important; }
body:not(#loginBody):not(.lfiv-simple) .lfiv-actions-ticket { margin-bottom: 4px; }
table.lfiv-table-riche tbody tr > td:first-child { box-shadow: inset 5px 0 #2B4368; }
table.lfiv-table-riche tbody tr.svc-maint > td:first-child { box-shadow: inset 5px 0 #2E7D4F; }
table.lfiv-table-riche tbody tr.svc-comm > td:first-child { box-shadow: inset 5px 0 #991C15; }
table.lfiv-table-riche tbody td { padding-top: 12px !important; padding-bottom: 12px !important; font-size: 14.5px; }
table.lfiv-table-riche tbody tr:hover td { background: #EEF3FA !important; }

/* ---- 29/09 : en-tete technicien propre : un seul bloc, liseré tricolore integre, plus de traits gris ---- */
body:not(#loginBody)::before { display: none !important; }
body:not(#loginBody) #container { margin-top: 22px !important; }
body:not(#loginBody) #header { display: flex !important; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 28px 10px !important; border: 0 !important; box-shadow: none !important; border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, #0055A4 0 33.3%, #fff 33.3% 66.6%, #EF4135 66.6% 100%) top / 100% 5px no-repeat, #fff !important; }
body:not(#loginBody) #header #logo { float: none !important; height: auto !important; }
body:not(#loginBody) #header #logo img { max-height: 46px; }
body:not(#loginBody) #header #info { float: none !important; margin: 0 !important; padding: 0 !important; background: none !important; }
.lfiv-user { display: flex; align-items: center; gap: 4px; padding: 5px 6px 5px 5px; border-radius: 999px; background: #F3F6FB; }
.lfiv-user-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #2B4368; color: #fff; font-weight: 800; font-size: 14px; }
.lfiv-user-nom { font-weight: 700; color: #1B2C4A; margin: 0 8px 0 4px; font-size: 14px; }
a.lfiv-user-lien { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #2B4368 !important; text-decoration: none !important; }
a.lfiv-user-lien:hover { background: #fff; }
a.lfiv-user-lien.sortie { color: #B3261E !important; }

/* onglets principaux : dans la continuite de l'en-tete, sans trait */
body:not(#loginBody) #nav { padding: 4px 22px 14px !important; border: 0 !important; background: #fff !important; gap: 4px; }
body:not(#loginBody) #nav li a { padding: 9px 18px !important; font-size: 14.5px; }
body:not(#loginBody) #nav li.active a { box-shadow: 0 4px 12px rgba(27,44,74,.22) !important; }

/* sous-onglets : bande claire, onglets soulignes, sans icones ni traits */
body:not(#loginBody) #customQ_nav { background: #F7F9FC !important; border: 0 !important; margin: 0 !important; }
body:not(#loginBody) #sub_nav { background: #F7F9FC !important; border: 0 !important; padding: 0 22px !important; gap: 2px !important; min-height: 0 !important; }
body:not(#loginBody) #sub_nav > li > a, body:not(#loginBody) #sub_nav > li.active > a { background: none !important; background-image: none !important; box-shadow: none !important;
  border-radius: 0 !important; padding: 13px 14px 11px !important; border-bottom: 3px solid transparent !important; color: #5B6678 !important; font-weight: 600; }
body:not(#loginBody) #sub_nav > li > a:hover { color: #1B2C4A !important; border-bottom-color: #C8D3E4 !important; }
body:not(#loginBody) #sub_nav > li.active > a, body:not(#loginBody) #sub_nav > li > a.active { color: #0055A4 !important; border-bottom-color: #0055A4 !important; }
body:not(#loginBody) #sub_nav > li > a i:not(.icon-sort-down) { display: none !important; }
body:not(#loginBody) #content { border-top: 0 !important; padding-top: 20px !important; }
@media (max-width: 700px) {
  body:not(#loginBody) #header { flex-direction: column-reverse; align-items: flex-start; padding: 16px 16px 8px !important; }
  .lfiv-user { flex-wrap: wrap; }
  body:not(#loginBody) #nav, body:not(#loginBody) #sub_nav { padding-left: 10px !important; padding-right: 10px !important; }
}
/* 29/09 : plus aucun trait autour du contenu ; tableau defilant sur telephone */
body:not(#loginBody) #pjax-container, body:not(#loginBody) #content { border: 0 !important; box-shadow: none !important; }
body:not(#loginBody) #footer { border: 0 !important; border-top: 0 !important; padding-top: 6px !important; }
body:not(#loginBody) #container > div { border-left: 0 !important; border-right: 0 !important; }
@media (max-width: 700px) {
  body:not(#loginBody) table.list { display: block !important; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  body:not(#loginBody) #basic_search .attached.input { width: 100% !important; }
}
body:not(#loginBody) table.ticket_info tr.lfiv-cache { display: none !important; }
body:not(#loginBody) p.lfiv-cloture { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; background: #E7F4EC; border-left: 4px solid #2E7D4F; color: #1F5E3B; font-size: 14.5px; } body:not(#loginBody) p.lfiv-cloture a { color: #1F5E3B; font-weight: 700; margin-left: 6px; } body:not(#loginBody) p.lfiv-dest { margin: 8px 0 10px; color: #5B6678; }
