/* URG360 Alpha 1.15 — icônes homogènes du dashboard. */

#dashboardView [data-u360-dashboard-icon]{
  position:relative;
  font-size:0!important;
  line-height:0!important;
}
#dashboardView [data-u360-dashboard-icon]::before{
  content:"";
  width:24px;
  height:24px;
  display:block;
  background-color:currentColor;
  -webkit-mask-image:var(--u360-dashboard-icon);
  mask-image:var(--u360-dashboard-icon);
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-position:center;
  mask-position:center;
  -webkit-mask-size:24px 24px;
  mask-size:24px 24px;
}
#dashboardView .module-icon[data-u360-dashboard-icon]>.urg-ui-icon,
#dashboardView .shortcut-grid [data-u360-dashboard-icon]>.urg-ui-icon{display:none!important}
#dashboardView .shortcut-grid [data-u360-dashboard-icon]{
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  color:#0867f2;
}
#dashboardView .shortcut-grid [data-u360-dashboard-icon]::before{width:23px;height:23px;-webkit-mask-size:23px 23px;mask-size:23px 23px}

/* Gestion administrative */
#dashboardView [data-u360-dashboard-icon="administrative"]{
  --u360-dashboard-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3Cpath d='M9 3v3h6V3M8 11h8M8 15h5'/%3E%3C/svg%3E");
}

/* Urgences */
#dashboardView [data-u360-dashboard-icon="emergency"]{
  --u360-dashboard-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='4'/%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E");
}

/* UHCD */
#dashboardView [data-u360-dashboard-icon="bed"]{
  --u360-dashboard-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 18V8M3 14h18v4M7 14v-3h5a3 3 0 0 1 3 3M3 18v2M21 18v2'/%3E%3C/svg%3E");
}

/* Hospitalisation */
#dashboardView [data-u360-dashboard-icon="hospital"]{
  --u360-dashboard-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4h10v17M15 8h4v13M8 8h4M8 12h4M8 16h4M9 21v-3h2v3'/%3E%3C/svg%3E");
}

/* Fiches & ordonnances */
#dashboardView [data-u360-dashboard-icon="file-medical"]{
  --u360-dashboard-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h9l4 4v16H6zM15 2v5h4'/%3E%3Cpath d='M12 11v6M9 14h6'/%3E%3C/svg%3E");
}

/* Protocoles */
#dashboardView [data-u360-dashboard-icon="book-check"]{
  --u360-dashboard-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5a3 3 0 0 1 3-3h5v18H6a3 3 0 0 0-3 3zM21 5a3 3 0 0 0-3-3h-5v18h5a3 3 0 0 1 3 3z'/%3E%3Cpath d='m15.5 9 1.5 1.5 3-3'/%3E%3C/svg%3E");
}

/* SAUV */
#dashboardView [data-u360-dashboard-icon="shield-plus"]{
  --u360-dashboard-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 20 6v5c0 5-3.4 8.5-8 10-4.6-1.5-8-5-8-10V6z'/%3E%3Cpath d='M12 8v7M8.5 11.5h7'/%3E%3C/svg%3E");
}

/* Checklist */
#dashboardView [data-u360-dashboard-icon="checklist"]{
  --u360-dashboard-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 2 2 3-3M11 7h9M4 12l2 2 3-3M11 13h9M4 18l2 2 3-3M11 19h9'/%3E%3C/svg%3E");
}

/* ACR */
#dashboardView [data-u360-dashboard-icon="heart-pulse"]{
  --u360-dashboard-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1.1-1.1a5.5 5.5 0 0 0-7.8 7.8L12 21l4.2-4.1'/%3E%3Cpath d='M3 14h4l2-4 3 7 2-4h7'/%3E%3C/svg%3E");
}

/* Prescription & traçabilité */
#dashboardView [data-u360-dashboard-icon="pill"]{
  --u360-dashboard-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8.5 4.5 11 11a4 4 0 0 1-5.7 5.7l-11-11a4 4 0 0 1 5.7-5.7Z'/%3E%3Cpath d='m7 14 7-7'/%3E%3C/svg%3E");
}

/* Consultations */
#dashboardView [data-u360-dashboard-icon="calendar-medical"]{
  --u360-dashboard-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18M12 13v5M9.5 15.5h5'/%3E%3C/svg%3E");
}

/* Gestion lits */
#dashboardView [data-u360-dashboard-icon="bed-grid"]{
  --u360-dashboard-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='7' height='7' rx='1'/%3E%3Crect x='14' y='4' width='7' height='7' rx='1'/%3E%3Crect x='3' y='15' width='7' height='5' rx='1'/%3E%3Crect x='14' y='15' width='7' height='5' rx='1'/%3E%3C/svg%3E");
}

/* Statistiques */
#dashboardView [data-u360-dashboard-icon="chart"]{
  --u360-dashboard-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E");
}

/* Raccourci nouvelle fiche */
#dashboardView [data-u360-dashboard-icon="file-plus"]{
  --u360-dashboard-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h9l4 4v16H6zM15 2v5h4'/%3E%3Cpath d='M12 11v6M9 14h6'/%3E%3C/svg%3E");
}

/* LRM DEV — même pictogramme sur la carte et dans les raccourcis. */
#dashboardView [data-u360-dashboard-icon="headset"]{
  --u360-dashboard-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v-3a8 8 0 0 1 16 0v3'/%3E%3Crect x='2' y='13' width='4' height='7' rx='2'/%3E%3Crect x='18' y='13' width='4' height='7' rx='2'/%3E%3Cpath d='M20 20a3 3 0 0 1-3 3h-4'/%3E%3C/svg%3E");
}

/* Favoris */
#dashboardView [data-u360-dashboard-icon="star"]{
  --u360-dashboard-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.7 5.5 6.1.9-4.4 4.3 1 6.1-5.4-2.9-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z'/%3E%3C/svg%3E");
}

/* Accueil compact — écrans de service, 1680 × 1050 à 100 %. */
@media screen {
  #dashboardView .dashboard-welcome{margin-bottom:16px;gap:12px}
  #dashboardView .dashboard-welcome h2{font-size:27px}
  #dashboardView .dashboard-welcome p.muted{font-size:14px}
  #dashboardView .dashboard-main-grid{grid-template-columns:minmax(0,1fr) 280px;gap:18px}
  #dashboardView .dashboard-primary{min-width:0}
  #dashboardView .dashboard-section-head{margin-bottom:10px}
  #dashboardView .module-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  #dashboardView .module-card{min-height:156px;padding:14px;border-radius:13px!important;min-width:0}
  #dashboardView .module-card-top{min-height:32px}
  #dashboardView .module-icon{width:34px;height:34px;border-radius:9px}
  #dashboardView .module-card h4{font-size:16px;margin:10px 0 5px;line-height:1.25}
  #dashboardView .module-card p{font-size:12px;line-height:1.4;margin-bottom:10px}
  #dashboardView .module-status.active{display:none}
  #dashboardView .module-lrm-dev .module-status{display:inline-flex}
  #dashboardView .module-open,
  #dashboardView .module-quick{min-height:34px;padding:7px 10px;font-size:12px;line-height:1.3;border-radius:8px}
  #dashboardView .module-open{background:#edf4ff;color:#0752ae;border-color:#c4d6ef}
  #dashboardView .module-open:hover{background:#dae9ff;border-color:#7a9fcf}
  #dashboardView .module-critical .module-open{background:#fff0ef;color:#b21e26;border-color:#edbec2}
  #dashboardView .module-card-actions{flex-wrap:wrap;gap:6px}
  #dashboardView .module-card-actions .module-open{flex:1 1 100px}
  #dashboardView .dashboard-widgets{grid-template-columns:1fr;gap:12px}
  #dashboardView .dashboard-widget{padding:14px;border-radius:13px!important}
  #dashboardView .shortcut-grid button{min-height:58px;font-size:12px;gap:5px;padding:8px}
  #dashboardView .widget-head{margin-bottom:10px}
  #dashboardView .info-line small{font-size:11px;line-height:1.4}
  #dashboardView button:focus-visible{outline:3px solid #0867f2;outline-offset:3px}
}
@media screen and (max-width:1399px){
  #dashboardView .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #dashboardView .dashboard-main-grid{grid-template-columns:minmax(0,1fr) 260px}
}
@media screen and (max-width:1100px){
  #dashboardView .dashboard-main-grid{grid-template-columns:1fr}
  #dashboardView .dashboard-widgets{grid-template-columns:repeat(2,minmax(0,1fr))}
  #dashboardView .info-widget{grid-column:1/-1}
}
@media screen and (max-width:600px){
  #dashboardView .module-grid,#dashboardView .dashboard-widgets{grid-template-columns:1fr}
  #dashboardView .module-card{min-height:0}
}
