/* Audit « respect des maquettes » du 28/11/2026, lot 9 (T9, décision 1 d'Eduardo : « oui, tous les accueils ») :
   les accueils du bureau au format V207 (maquettes/V207-iphone-d-abord-2026-11-25.html, écrans 1 et 4) et V226 à l'ordinateur.
   Seule la mise en page change : mêmes chiffres, mêmes boutons, mêmes libellés (.metric-label, .metric-value), même ordre.
   Chargée en dernier : les règles sont ancrées sur #dashboard-view pour passer devant theme.css et design-system.css. */

/* ---- 1. L'en-tête : « Bonjour, … » en grand, « profil · date » dessous, sans surtitre en capitales ni pilule de date ---- */
#dashboard-view .depot-hero { display: block; padding: 0; margin: 0 0 18px; border-bottom: 0; background: none; box-shadow: none; }
#dashboard-view .depot-hero .eyebrow { display: none; }  /* « Accueil … · Bonjour … » : le grand titre le dit déjà */
#dashboard-view .depot-hero .hero-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; max-width: none; }
.content#dashboard-view .depot-hero h2 { flex: 1 0 100%; margin: 0 0 4px; color: var(--navy); font: 700 40px/1.05 var(--police-titre); letter-spacing: -.2px; text-transform: none; overflow-wrap: anywhere; }
#dashboard-view .depot-hero .hero-sub { display: inline; margin: 0; color: var(--muted); font-size: 16px; font-weight: 500; }
#dashboard-view .depot-hero .date-chip { display: inline; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--muted); font-size: 16px; font-weight: 400; }
#dashboard-view .depot-hero .date-chip svg { display: none; }
#dashboard-view .depot-hero .date-chip::before { content: "· "; }
#dashboard-view #current-date { text-transform: lowercase; }  /* « mercredi 18 novembre 2026 », comme dans la phrase */

/* ---- 2. Les chiffres : tuiles pastel, le chiffre en grand en haut à gauche, le libellé dessous, une petite icône à droite ---- */
#dashboard-view #metrics.metric-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 0 0 22px; }
#dashboard-view #metrics .metric[data-couleur] {
  grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "chiffre icone" "corps corps"; align-content: start; align-items: start;
  gap: 6px 8px; min-height: 112px; padding: 16px 16px 14px !important; border-radius: 20px;
}
#dashboard-view #metrics .metric[data-couleur].metric-stock-value { grid-template-areas: "chiffre icone" "corps corps" "note note"; }
#dashboard-view #metrics .metric[data-couleur] .metric-value { justify-self: start; font: 700 44px/1 var(--police-titre); overflow-wrap: anywhere; }
#dashboard-view #metrics .metric[data-couleur].metric-stock-value .metric-value { font-size: 28px; }
#dashboard-view #metrics .metric[data-couleur] .metric-icon { width: 28px; height: 28px; justify-self: end; opacity: .85; }
#dashboard-view #metrics .metric[data-couleur] .metric-icon .ui-icon { width: 22px; height: 22px; }
#dashboard-view #metrics .metric[data-couleur] .metric-label { align-self: start; font-size: 16px; font-weight: 600; line-height: 1.2; overflow-wrap: break-word; hyphens: manual; }  /* vu sur le vrai iPhone (29/11) : « Ce qu’on me de-mande » ne se coupe plus par un tiret */
#dashboard-view #metrics .metric[data-couleur].metric-stock-value .metric-note { font-size: 13px; line-height: 1.3; }

/* ---- 3. « Au comptoir » : les gestes du dépôt en une rangée de petites tuiles, icône de couleur et un mot ---- */
#dashboard-view .quick-movement-actions { margin: 0 0 20px; text-align: left; }
#dashboard-view .quick-movement-actions .quick-movement-label { display: block; margin: 0 0 8px; color: var(--muted); font: 600 13px/1.2 var(--police); letter-spacing: .08em; text-transform: uppercase; }
#dashboard-view .quick-movement-actions > div { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; max-width: 760px; }
#dashboard-view .quick-movement-actions .button.quick-movement-button {
  grid-column: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-width: 0; min-height: 88px; padding: 12px 4px 10px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); color: var(--navy); box-shadow: none; text-align: center;
}
#dashboard-view .quick-movement-actions .button.quick-movement-button:hover { border-color: var(--line-strong); background: var(--surface); }
#dashboard-view .quick-movement-actions .quick-movement-button .qm-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--p-bleu-pale, #e7f1fa); color: var(--p-acier-fonce, #2b5b84); }
#dashboard-view .quick-movement-actions .quick-movement-button .qm-icon svg { width: 24px; height: 24px; stroke: currentColor; }
#dashboard-view .quick-movement-actions [data-quick-movement="return"] .qm-icon { background: #e3f5ea; color: #1d6b3a; }
#dashboard-view .quick-movement-actions [data-quick-movement="inbound"] .qm-icon { background: #fff4d7; color: #7a4f00; }
#dashboard-view .quick-movement-actions [data-quick-movement="deplacer"] .qm-icon { background: #eef0fb; color: #3b4aa8; }
#dashboard-view .quick-movement-actions .quick-movement-button .qm-text { display: grid; justify-items: center; flex: 0 0 auto; min-width: 0; }
#dashboard-view .quick-movement-actions .quick-movement-button .qm-text strong { color: var(--navy); font: 600 15px/1.15 var(--police-titre); overflow-wrap: anywhere; }
#dashboard-view .quick-movement-actions .quick-movement-button .qm-text small,
#dashboard-view .quick-movement-actions .quick-movement-button .qm-chevron { display: none; }
#dashboard-view .quick-movement-actions .delivery-quick { margin-top: 10px; }
/* Sans geste du dépôt (lecture seule : comptabilité, achats, conducteur…), pas de titre « Au comptoir » au-dessus du vide. */
body.depot-readonly #dashboard-view .quick-movement-label, body.depot-readonly #dashboard-view .quick-movement-actions > div { display: none; }

/* ---- 4. « Mes chantiers » : une ligne par chantier, un point de couleur (rouge : en retard, bleu : en cours), le nom, le chiffre, › ---- */
#dashboard-view .home-chantiers h2 { font-size: 21px; color: var(--navy); }
#dashboard-view .home-liste { border-radius: 20px; }
#dashboard-view .home-site { gap: 12px; min-height: 56px; padding: 8px 14px; }
#dashboard-view .home-pastille { width: 12px; height: 12px; border-radius: 50%; }
#dashboard-view .home-pastille .ui-icon { display: none; }
#dashboard-view .home-pastille-rouge { background: #c0302b; }
#dashboard-view .home-pastille-bleu { background: #2b5b84; }
#dashboard-view .home-site-nom { font-size: 17px; font-weight: 500; line-height: 1.2; }
#dashboard-view .home-site-tous { border-radius: 20px; }

/* ---- 5. Direction : « Mes décisions » et « Argent en jeu » restent, dans la même famille que les tuiles ---- */
#dashboard-view .home-decisions h2, #dashboard-view .home-argent h2 { font: 700 21px/1.2 var(--police-titre); color: var(--navy); }
#dashboard-view .decision-ligne { border-radius: 18px; }
#dashboard-view .argent-carte { min-height: 104px; padding: 14px 16px; border-radius: 20px; }
#dashboard-view .argent-montant { font: 700 30px/1.05 var(--police-titre); color: var(--navy); }
#dashboard-view .argent-titre { font-size: 15px; font-weight: 600; }

/* ---- 6. « À traiter maintenant » : le titre et sa phrase passent au-dessus des pilules quand la place manque (820 px : écrasés à 80 px) ---- */
#dashboard-view > .section-heading { flex-wrap: wrap; row-gap: 12px; }
#dashboard-view > .section-heading > div:first-child { flex: 1 1 260px; min-width: 0; }

/* ---- Le téléphone (V207, écran 1) ---- */
@media (max-width: 700px) {
  .content#dashboard-view .depot-hero h2 { font-size: 34px; }
  #dashboard-view .depot-hero { margin-bottom: 14px; }
  #dashboard-view #metrics.metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
  #dashboard-view #metrics .metric[data-couleur] { min-height: 96px; padding: 12px 10px 10px !important; gap: 4px; border-radius: 18px; }
  #dashboard-view #metrics .metric[data-couleur].metric-stock-value { grid-column: span 2; }  /* le montant tient sur une ligne */
  #dashboard-view #metrics .metric[data-couleur] .metric-value { font-size: 34px; }
  #dashboard-view #metrics .metric[data-couleur].metric-stock-value .metric-value { font-size: 22px; }
  #dashboard-view #metrics .metric[data-couleur] .metric-icon { width: 22px; height: 22px; }
  #dashboard-view #metrics .metric[data-couleur] .metric-icon .ui-icon { width: 18px; height: 18px; }
  #dashboard-view #metrics .metric[data-couleur] .metric-label { font-size: 14px; }
  #dashboard-view .quick-movement-actions > div { gap: 6px; }
  #dashboard-view .quick-movement-actions .button.quick-movement-button { min-height: 80px; padding: 10px 2px 8px; border-radius: 16px; }
  #dashboard-view .quick-movement-actions .quick-movement-button .qm-icon { width: 40px; height: 40px; border-radius: 12px; }
  #dashboard-view .quick-movement-actions .quick-movement-button .qm-text strong { font-size: 13px; }
  #dashboard-view .home-chantiers h2, #dashboard-view .home-decisions h2, #dashboard-view .home-argent h2 { font: 600 13px/1.2 var(--police); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  #dashboard-view .home-decisions h2 .count { letter-spacing: 0; }
  #dashboard-view .argent-montant { font-size: 24px; }
}

@media (max-width: 700px) { #metrics .metric[data-couleur] .metric-label { hyphens: manual; overflow-wrap: break-word; } }
