/* kexpert-look.css — Kairos Expert · affichage propre, tous écrans (30/11/2026)
   Cartes chiffrées sobres (fond neutre + liseré de couleur), contenu sur toute la largeur,
   chrono qui tient dans sa carte, cartes à la hauteur de leur contenu. */

/* contenu sur toute la largeur : la gouttière des boutons flottants est ramenée à la marge normale */
@media (min-width: 561px) { html[data-kflot-gouttiere] body #main { padding-right: clamp(16px, 3vw, 40px) !important; } }
#main > * { max-width: 1400px; }

/* ---------- cartes chiffrées ---------- */
html body #main .kpis {
  gap: 12px !important; background: transparent !important; border: 0 !important;
  overflow: visible !important; border-radius: 0 !important;
}
html body #main .kpis > .kpi {
  --kacc: #c9a24b;
  background: var(--surface, #fff) !important; background-image: none !important;
  border: 1px solid var(--line, rgba(0,0,0,.08)) !important; border-radius: 16px !important;
  box-shadow: inset 0 3px 0 var(--kacc) !important; padding: 16px 18px !important;
}
html body #main .kpis > .kpi:nth-child(4n+1) { --kacc: #6f9bd8; }
html body #main .kpis > .kpi:nth-child(4n+2) { --kacc: #9fc23a; }
html body #main .kpis > .kpi:nth-child(4n+3) { --kacc: #d98a5f; }
html body #main .kpis > .kpi:nth-child(4n+4) { --kacc: #c9a24b; }
html.dk body #main .kpis > .kpi, html[data-theme="dark"] body #main .kpis > .kpi {
  background: rgba(255,255,255,.035) !important; border-color: rgba(255,255,255,.08) !important;
}
html body #main .kpis > .kpi .v { font-size: clamp(26px, 2.6vw, 34px) !important; line-height: 1.1 !important; }
@media (max-width: 1100px) { html body #main .kpis { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }
@media (max-width: 380px) { html body #main .kpis { grid-template-columns: minmax(0,1fr) !important; } }

/* ---------- Ma journée ---------- */
html body #main .kxq-g { align-items: start !important; }
html body #main .kxq-g > .panel { min-width: 0 !important; }
html body #main .kxq-focus { overflow: hidden; }
html body #main .kxq-cf { display: flex; flex-direction: column; gap: 8px; }
html body #main .kxq-cf select, html body #main .kxq-cf input, html body #main .kxq-cf .btn {
  width: 100% !important; max-width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; margin: 0 !important;
}
html body #main .kxq-ringw { width: min(170px, 60%) !important; height: auto !important; aspect-ratio: 1; margin-left: auto !important; margin-right: auto !important; }
html body #main .kxq-t b { font-size: clamp(26px, 3vw, 32px) !important; }
html body #main .kxq-c { min-height: 34px !important; height: 34px !important; }
html body #main .kxq-week { gap: 8px !important; }
html body #main .kxq-day { min-height: 92px !important; }

/* ---------- panneaux ---------- */
html body #main .panel { border-radius: 16px !important; }
html.dk body #main .panel, html[data-theme="dark"] body #main .panel { border-color: rgba(255,255,255,.08) !important; }

/* pastille du chrono : seulement quand un chrono tourne (le lancement se fait depuis Ma journée, la fiche ou Pilotage) */
#kxch.vide { display: none !important; }

/* iPad portrait et petites fenêtres (600 à 899 px) : la barre du haut sur une seule ligne fine, comme sur grand écran */
@media (min-width: 600px) and (max-width: 899px) {
  html[data-kmenu-disp="barre"] body aside:has(.kmenu) {
    height: auto !important; min-height: 0 !important; max-height: 62px !important; overflow: visible !important;
    flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; align-content: center !important;
    gap: 10px !important; padding: 6px 12px !important;
  }
  html[data-kmenu-disp="barre"] body aside:has(.kmenu) > .brand { order: 1 !important; flex: 0 0 auto !important; margin: 0 !important; }
  html[data-kmenu-disp="barre"] body aside:has(.kmenu) > .brand b { font-size: 15px !important; }
  html[data-kmenu-disp="barre"] body aside:has(.kmenu) > .brand small { display: none !important; }
  html[data-kmenu-disp="barre"] body aside:has(.kmenu) > #entBarSide { order: 2 !important; flex: 0 0 auto !important; margin: 0 !important; }
  html[data-kmenu-disp="barre"] body aside:has(.kmenu) > #entBarSide summary { padding: 5px 10px !important; font-size: 12px !important; }
  html[data-kmenu-disp="barre"] body aside:has(.kmenu) > .kmenu {
    order: 3 !important; flex: 1 1 auto !important; width: auto !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent);
  }
  html[data-kmenu-disp="barre"] body aside:has(.kmenu) > .kmenu > :not(.kmi) { padding: 6px 10px !important; font-size: 13px !important; min-height: 32px !important; }
  html[data-kmenu-disp="barre"] body aside:has(.kmenu) > .sync { order: 4 !important; flex: 0 0 auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; }
  html[data-kmenu-disp="barre"] body aside:has(.kmenu) > .sync #syncTxt { display: none !important; }
  html[data-kmenu-disp="barre"] body aside:has(.kmenu) > .sync::before, html[data-kmenu-disp="barre"] body aside:has(.kmenu) > .sync::after { display: none !important; }
  html[data-kmenu-disp="barre"] body aside:has(.kmenu) > .kmenu > * > .n, html[data-kmenu-disp="barre"] body aside:has(.kmenu) > .kmenu > * > .pill { margin-left: 6px !important; }
}
