/* Console Datto RMM : disposition et couleurs relevées sur la console réelle en anglais (interfaces/datto-rmm/en-*.jpg)
   et sur appareils layout.png (barre #199ED9, recherche #0F5F82, élément actif #ECECEC, point en ligne #14C266). */

.dr {
  --dr-bleu: #199ed9;
  --dr-bleu-fonce: #0f5f82;
  --dr-lien: #199ed9;
  --dr-fond: #f6f7f8;
  --dr-bordure: #e3e7eb;
  --dr-texte: #1f2a35;
  --dr-doux: #8a939d;
  --dr-vert: #14c266;
  --dr-rouge: #e53935;
  --dr-orange: #f68d2e;
  --dr-turquoise: #4ecbc4;
  font-family: Roboto, "Segoe UI", system-ui, Arial, sans-serif;
  font-size: 14px;
  color: var(--dr-texte);
  background: var(--dr-fond);
  min-height: calc(100vh - 32px);
}
.dr a { color: var(--dr-lien); text-decoration: none; }
.dr button { font-family: inherit; font-size: inherit; }
.dr .ico { width: 20px; height: 20px; }
.dr-gris { color: var(--dr-doux); }
.dr-lien { color: var(--dr-lien) !important; cursor: pointer; }
.dr-lien.majuscules { text-transform: uppercase; font-weight: 500; }

/* --- La barre du haut --- */
.dr-top { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 12px 0 14px; background: var(--dr-bleu); color: #fff; }
.dr-logo { display: flex; width: 214px; }
.dr-logo img { display: block; }
.dr-portee { display: flex; align-items: center; gap: 10px; width: 200px; height: 32px; padding: 0 10px; background: var(--dr-bleu-fonce); border: 0; border-radius: 2px; color: #fff; cursor: pointer; }
.dr-portee span { flex: 1; text-align: left; }
.dr-portee .ico { width: 16px; height: 16px; }
.dr-recherche { flex: 0 1 498px; display: flex; align-items: center; height: 32px; padding: 0 10px; background: var(--dr-bleu-fonce); border-radius: 2px; color: #cfe7f3; }
.dr-recherche input { flex: 1; background: none; border: 0; color: #fff; font: inherit; outline: none; }
.dr-recherche input::placeholder { color: #b9d9e8; }
.dr-icones { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.dr-icones button { position: relative; display: flex; align-items: center; gap: 6px; background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; }
.dr-icones .ico { width: 24px; height: 24px; }
.dr-icones .avec-point::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #e5484d; }
.dr-moi span { color: #dff1fa; }

/* --- Le menu de gauche --- */
.dr-corps { display: flex; align-items: flex-start; }
.dr-menu { position: relative; width: 240px; flex: none; min-height: calc(100vh - 88px); background: #fff; border-right: 1px solid var(--dr-bordure); padding-bottom: 20px; }
.dr-menu-replier { position: absolute; right: -11px; top: 34px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--dr-bordure); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1; color: #3c4652; padding: 0; }
.dr-menu-replier .ico { width: 14px; height: 14px; }
.dr-menu-groupe { display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 14px; background: none; border: 0; color: #8a939d; text-align: left; cursor: pointer; }
.dr-menu-groupe.ouvert { color: #8a939d; cursor: default; }
.dr-menu-groupe span { flex: 1; color: #3c4652; }
.dr-menu-groupe .ico { width: 16px; height: 16px; color: #3c4652; }
.dr-menu-item { display: flex; align-items: center; gap: 6px; height: 28px; color: #2b3440 !important; }
.dr-menu-item.n1 { padding-left: 40px; }
.dr-menu-item.n2 { padding-left: 63px; }
.dr-menu-item.site { height: auto; min-height: 28px; padding: 5px 10px 5px 40px; align-items: flex-start; line-height: 1.3; }
.dr-menu-item.site .dr-triangle { margin-top: 2px; }
.dr-menu-item:hover { background: #f3f5f7; }
.dr-menu-item.actif { background: #ececec; box-shadow: inset 4px 0 0 var(--dr-bleu); font-weight: 500; }
.dr-menu-item.avec-icone .ico { width: 16px; height: 16px; }
.dr-triangle { font-size: 10px; color: #3c4652; margin-right: 4px; }

/* --- Le contenu --- */
.dr-principal { flex: 1; min-width: 0; padding: 12px 10px 30px; }
.dr-fil { color: var(--dr-doux); font-size: 14px; margin-bottom: 8px; }
.dr-titre-page { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dr-titre-page h1, .dr-appareil-entete h1 { margin: 0; font-size: 26px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.dr-boutons { display: flex; gap: 6px; flex-wrap: wrap; }
.dr-bouton { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; background: var(--dr-bleu); color: #fff !important; border: 1px solid var(--dr-bleu); border-radius: 2px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.dr-bouton:hover { background: #148cc2; }
.dr-bouton.inactif, .dr-bouton:disabled { background: #f2f4f6; border-color: #dfe3e7; color: #b5bcc4 !important; cursor: default; }
.dr-bouton.carre { width: 26px; height: 26px; padding: 0; justify-content: center; }
.dr-bouton.contour { background: #fff; color: #2b3440 !important; border-color: #b9c2cb; }
.dr-bouton .ico { width: 16px; height: 16px; }
.dr-bouton.petit { height: 26px; padding: 0 8px; }
.dr-acces { background: #d8f0fb; color: var(--dr-bleu); border-radius: 10px; padding: 1px 8px; font-size: 12px; }
.dr-separateur { width: 1px; height: 18px; background: rgba(255,255,255,.5); margin: 0 4px; }

.dr-tuiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.dr-tuile { display: flex; align-items: center; justify-content: space-between; height: 42px; padding: 0 12px 0 20px; background: #fff; border: 1px solid var(--dr-bordure); border-top: 3px solid var(--dr-bleu); border-radius: 3px; color: var(--dr-doux); cursor: pointer; }
.dr-tuile span { flex: 1; text-align: center; }
.dr-tuile strong { color: var(--dr-turquoise); font-size: 17px; font-weight: 500; }
.dr-tuile.seule { justify-content: center; }

.dr-carte { background: #fff; border: 1px solid var(--dr-bordure); border-radius: 3px; padding: 10px; }
.dr-carte-entete { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.dr-carte-entete h2 { margin: 0; font-size: 18px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.dr-compte { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--dr-bleu); color: #fff; font-size: 12px; font-weight: 500; }
.dr-compte.rouge { background: #d32f2f; }
.dr-compte.texte { border-radius: 4px; }
.dr-outils-droite { display: flex; align-items: center; gap: 6px; }
.dr-select { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; height: 30px; padding: 0 10px; background: #fff; border: 1px solid #d6dbe0; border-radius: 2px; color: var(--dr-texte); cursor: pointer; }
.dr-select.large { min-width: 200px; }
.dr-select .ico { width: 16px; height: 16px; }
.dr-select-fige { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 168px; height: 32px; padding: 0 10px; border: 1px solid #d6dbe0; border-radius: 2px; color: var(--dr-texte); }
.dr-select-fige.large { width: 100%; }
.dr-select-fige .ico { width: 16px; height: 16px; }
.dr-carre { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #d6dbe0; border-radius: 2px; cursor: pointer; color: #3c4652; }
.dr-carre .ico, .dr-icone .ico { width: 18px; height: 18px; }
.dr-icone { background: none; border: 0; padding: 4px; color: #3c4652; cursor: pointer; display: inline-flex; }
.dr-barre-actions { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.dr-filtre { font-weight: 500; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dr-etiquette { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; background: #f1f3f5; border-radius: 2px; font-weight: 400; }
.dr-etiquette .ico { width: 12px; height: 12px; }
.dr-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin: 6px 0; color: #b5bcc4; }
.dr-page { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: var(--dr-bleu); color: #fff; border-radius: 2px; }
.dr-page-fleche .ico { width: 16px; height: 16px; }

.dr-tableau-conteneur { overflow-x: auto; }
.dr-tableau { width: 100%; border-collapse: collapse; }
.dr-tableau th { text-align: left; font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--dr-bordure); white-space: nowrap; }
.dr-tableau td { padding: 7px 8px; border-bottom: 1px solid #f0f2f4; white-space: nowrap; }
.dr-tableau tbody tr:hover td, .dr-tableau tr.choisi td { background: #e8f4fb; }
.dr-tableau.simple td { white-space: normal; }
.dr-tableau.logiciels td { color: var(--dr-doux); padding: 5px 8px; }
.dr-tableau.logiciels tbody tr:nth-child(odd) td { background: #f7f8fa; }
.dr-tableau.logiciels td:last-child, .dr-tableau.logiciels th:last-child { width: 220px; }
.dr-tri { display: inline-flex; flex-direction: column; vertical-align: middle; color: #b5bcc4; }
.dr-tri .ico { width: 11px; height: 7px; stroke-width: 2.5; }
.dr-filtre-icone .ico { width: 14px; height: 14px; color: var(--dr-doux); float: right; }
.dr-point { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid #c9ced5; background: #fff; flex: none; }
.dr-point.en-ligne { background: var(--dr-vert); border-color: var(--dr-vert); }
.dr-action { text-align: right; }

.dr-pill { display: inline-block; padding: 3px 12px; border-radius: 14px; font-size: 13px; font-weight: 500; color: #fff; white-space: nowrap; }
.dr-pill.vert { background: var(--dr-vert); }
.dr-pill.orange { background: var(--dr-orange); color: #2b1a0b; }
.dr-pill.rouge { background: #d32f2f; }
.dr-pill.gris { background: #e3e6ea; color: #3c4652; }
.dr-priorite { display: inline-block; padding: 3px 12px; border-radius: 14px; font-weight: 500; font-size: 13px; }
.dr-priorite.moderate { background: #f5c400; color: #2b2300; }
.dr-priorite.high { background: var(--dr-orange); color: #fff; }
.dr-priorite.critical { background: var(--dr-rouge); color: #fff; }
.dr-priorite.low { background: #29b6f6; color: #fff; }
.dr-aucun { text-align: center; color: var(--dr-doux); padding: 12px; margin: 0; }

/* --- La page d'un appareil --- */
.dr-kebab-ligne { display: flex; justify-content: flex-end; margin-top: -26px; }
.dr-appareil-entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 10px; }
.dr-appareil-entete h1 .dr-point { width: 15px; height: 15px; }
.dr-os { width: 20px !important; height: 20px !important; color: #2b3440; }
.dr-cadenas { width: 22px !important; height: 22px !important; color: #2b3440; }
.dr-appareil-corps { display: flex; gap: 10px; align-items: flex-start; }
.dr-sections { position: sticky; top: 8px; width: 240px; flex: none; background: #fff; border: 1px solid var(--dr-bordure); border-radius: 3px; padding: 4px 0; }
.dr-section-lien { display: flex; align-items: center; justify-content: space-between; height: 29px; padding: 0 12px; color: var(--dr-doux) !important; }
.dr-section-lien:hover { color: var(--dr-texte) !important; }
.dr-section-lien.actif { background: #dcebf6; color: var(--dr-texte) !important; }
.dr-colonne { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.dr-section { scroll-margin-top: 10px; }
.dr-resume { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 6px; }
.dr-champ { display: grid; grid-template-columns: 190px 1fr; align-items: center; gap: 6px; min-height: 26px; padding: 2px 0; }
.dr-champ-libelle { font-weight: 600; }
.dr-champ-valeur { color: var(--dr-doux); font-size: 13.5px; }
.dr-champ-saisie { display: block; height: 32px; border: 1px solid #d6dbe0; border-radius: 2px; max-width: 168px; }
.dr-boutons-section { display: flex; gap: 6px; margin-bottom: 8px; }

.dr-moniteurs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dr-moniteur { position: relative; min-height: 88px; padding: 8px 6px; border: 1px solid #6cc98b; background: #8ee0a8; color: #1d2b22; }
.dr-moniteur.alerte { background: #ec9a9a; border: 2px solid var(--dr-rouge); }
.dr-moniteur.nodata { background: #e3e3e3; border-color: #d3d3d3; }
.dr-moniteur-titre { font-size: 13px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 20px; }
.dr-moniteur-valeur { font-weight: 600; margin: 4px 0; }
.dr-moniteur-temps { font-size: 13px; opacity: .8; }
.dr-cloche { position: absolute; top: 0; right: 0; width: 20px; height: 20px; background: var(--dr-rouge); color: #fff; display: flex; align-items: center; justify-content: center; }
.dr-cloche .ico { width: 14px; height: 14px; }
.dr-vues { display: inline-flex; border: 1px solid #d6dbe0; border-radius: 2px; }
.dr-vues button { background: #fff; border: 0; border-left: 1px solid #d6dbe0; padding: 4px 6px; cursor: pointer; display: flex; color: #3c4652; }
.dr-vues button:first-child { border-left: 0; }
.dr-vues button.actif { background: #dcebf6; color: var(--dr-bleu); }
.dr-vues .ico { width: 18px; height: 18px; }

.dr-disques { list-style: none; margin: 0; padding: 0; }
.dr-disques li { display: grid; grid-template-columns: 110px 186px 1fr; gap: 12px; align-items: start; padding: 10px 6px; border-bottom: 1px solid var(--dr-bordure); }
.dr-disques li:last-child { border-bottom: 0; }
.dr-disque-lettre, .dr-disque-type { font-weight: 600; font-size: 13px; }
.dr-disque-titre { font-weight: 600; font-size: 13px; }
.dr-barre { height: 15px; background: #e3e6ea; margin: 4px 0; }
.dr-barre span { display: block; height: 100%; background: var(--dr-vert); transition: width 1.2s ease; }
.dr-barre span.plein { background: var(--dr-rouge); }
.dr-disque-chiffres { display: flex; gap: 14px; font-size: 13px; font-weight: 500; }
.dr-disque-chiffres .dr-droite { margin-left: auto; }

.dr-chronologie { list-style: none; margin: 10px 0 0; padding: 0; position: relative; }
.dr-chronologie::before { content: ""; position: absolute; left: 186px; top: 0; bottom: 0; width: 2px; background: #e3e6ea; }
.dr-chronologie li { position: relative; display: grid; grid-template-columns: 150px 72px 1fr; align-items: start; margin-bottom: 16px; }
.dr-quand { color: var(--dr-doux); padding-top: 8px; }
.dr-rond { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; background: #e3e6ea; display: flex; align-items: center; justify-content: center; color: #5f6b78; }
.dr-activite { background: #eceef1; border: 1px solid #dfe3e7; padding: 8px 10px; }
.dr-activite.alerte { border-color: #e77; }
.dr-activite.en-cours { border-color: var(--dr-bleu); }
.dr-activite strong { display: block; margin-bottom: 4px; }
.dr-activite-date { color: #b5bcc4; font-size: 13px; margin-top: 4px; }
.dr-progression { height: 4px; background: #d6e9f4; overflow: hidden; margin-top: 6px; }
.dr-progression span { display: block; width: 40%; height: 100%; background: var(--dr-bleu); animation: dr-defile 1.2s linear infinite; }
@keyframes dr-defile { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* --- Quick Job --- */
.dr-superposition { position: fixed; inset: 0; z-index: 20; min-height: 0; background: transparent; }
.dr-voile { position: absolute; inset: 0; background: rgba(20, 30, 40, .45); }
.dr-panneau { position: absolute; top: 0; right: 0; bottom: 0; width: 420px; background: #fff; display: flex; flex-direction: column; box-shadow: -4px 0 16px rgba(0,0,0,.15); }
.dr-panneau header { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px; }
.dr-panneau h2 { margin: 0; font-size: 16px; font-weight: 600; }
.dr-panneau-recherche { display: flex; align-items: center; gap: 6px; padding: 0 10px 10px; }
.dr-panneau-recherche input { flex: 1; height: 34px; padding: 0 10px; border: 1px solid #b9c2cb; border-radius: 2px; font: inherit; }
.dr-composants { list-style: none; margin: 0; padding: 0 10px; overflow-y: auto; flex: 1; }
.dr-composants li { display: grid; grid-template-columns: 52px 1fr 80px; gap: 8px; align-items: center; padding: 8px 0; }
.dr-composants p { margin: 2px 0 0; line-height: 1.45; color: #2b3440; }
.dr-composant-nom { color: var(--dr-doux); font-size: 13px; }
.dr-composant-icone { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 4px; background: linear-gradient(135deg, #5f7387, #3d4d5c); color: #fff; font-weight: 700; font-size: 15px; }
.dr-composant-icone.maison { background: linear-gradient(135deg, #2bb3ea, #137fb0); }
.dr-bouton-blanc { height: 32px; background: #fff; border: 1px solid #c9d0d7; border-radius: 2px; color: #2b3440; font-weight: 500; cursor: pointer; }
.dr-bouton-blanc.choisi { background: #f2f4f6; }
.dr-fenetre { position: absolute; top: 66px; left: 50%; transform: translateX(-58%); width: min(740px, 70vw); max-height: calc(100vh - 140px); display: flex; flex-direction: column; background: #fff; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.dr-fenetre header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 10px; }
.dr-fenetre h2 { margin: 0; font-size: 18px; font-weight: 600; }
.dr-fenetre-corps { padding: 0 24px; overflow-y: auto; }
.dr-pointille { border-bottom: 1px dashed var(--dr-doux); color: var(--dr-texte); }
.dr-fenetre-composant { display: grid; grid-template-columns: 56px 1fr; gap: 12px; }
.dr-fenetre-composant h3 { margin: 4px 0; font-size: 16px; font-weight: 600; }
.dr-avis { display: flex; gap: 12px; padding: 14px 16px; background: #dcebf6; border-left: 4px solid var(--dr-bleu); margin: 12px 0; }
.dr-avis > .ico { color: var(--dr-bleu); flex: none; }
.dr-avis .ico { width: 18px; height: 18px; vertical-align: middle; }
.dr-fenetre h4 { margin: 14px 0 8px; font-size: 15px; }
.dr-variable-case { display: flex; align-items: center; gap: 8px; }
.dr-variable h5 { margin: 12px 0 4px; font-size: 15px; }
.dr-variable p, .dr-fenetre-composant p { margin: 4px 0 8px; }
.dr-fenetre footer { display: flex; justify-content: flex-end; align-items: center; gap: 18px; padding: 14px 24px 18px; }
.dr-lien-bouton { background: none; border: 0; color: #2b3440; cursor: pointer; font-weight: 500; }
