/* Cockpit Marge : onglet Check-ins (04/11/2026, mode Month le 07/11). Tout est scopé sous #tab-checkins. Rendu par checkins.js. */
#tab-checkins { --vert: #1F8A4C; --rouge: #B42318; --jaune-soft2: rgba(242,180,26,.16); font-size: 15px; line-height: 1.45; }
#tab-checkins button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
#tab-checkins button:disabled { cursor: default; opacity: .35; }
#tab-checkins .subnav { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
#tab-checkins .subnav h1 { font: 700 34px/1.05 'Cardo', serif; letter-spacing: -.01em; margin: 0; }
#tab-checkins .wk { display: flex; align-items: center; gap: 8px; }
#tab-checkins .wk b { font: 600 14px 'JetBrains Mono', monospace; }
#tab-checkins .wk > button:not(.lk) { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
#tab-checkins .wk > button:not(.lk):hover:not(:disabled) { border-color: var(--ink); }
#tab-checkins .subnav .r { margin-left: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
#tab-checkins .st { font: 700 11px 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; background: rgba(14,14,12,.06); color: var(--muted); }
#tab-checkins .st.done { background: rgba(31,138,76,.12); color: var(--vert); }
#tab-checkins .saved { font: 500 11.5px 'JetBrains Mono', monospace; color: var(--muted); min-width: 70px; }
#tab-checkins .lk { font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: underline; }
#tab-checkins .lk:hover { color: var(--ink); }
#tab-checkins .mut, #tab-checkins .hint, #tab-checkins .src { color: var(--muted); font-size: 13px; }
#tab-checkins .src { margin: -4px 0 12px; }
#tab-checkins .src a { color: inherit; }
#tab-checkins .ld { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); vertical-align: -1px; }

/* bascule Week | Month | History */
#tab-checkins .views { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; margin-left: auto; }
#tab-checkins .views button { padding: 7px 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
#tab-checkins .views button + button { border-left: 1px solid var(--line); }
#tab-checkins .views button:hover:not(.on) { color: var(--ink); }
#tab-checkins .views button.on { background: var(--jaune-soft2); color: var(--ink); font-weight: 700; }

/* pastilles des semaines, groupées par mois : bande compacte en tête de la page Week, lignes du mode Month */
#tab-checkins .strip { display: flex; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
#tab-checkins .mg { display: flex; flex-direction: column; gap: 2px; }
#tab-checkins .ml { font: 700 10px 'JetBrains Mono', monospace; font-style: normal; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-left: 3px; }
#tab-checkins .mw { display: flex; gap: 6px; flex-wrap: wrap; }
#tab-checkins .pa { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 3px; border-radius: 8px; }
#tab-checkins .pa i { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--c, rgba(14,14,12,.15)); }
#tab-checkins .pa span { font: 500 10px 'JetBrains Mono', monospace; color: var(--muted); }
#tab-checkins .pa.none i { background: none; border: 1.5px dashed rgba(14,14,12,.25); }
#tab-checkins .pa.draft i { background: none; border: 2.5px solid var(--c, rgba(14,14,12,.3)); }
#tab-checkins .pa.on { background: var(--jaune-soft2); }
#tab-checkins .pa.on span { color: var(--ink); font-weight: 700; }
#tab-checkins .pa:hover i { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--c, rgba(14,14,12,.3)); }

/* mode Month : une ligne par mois */
#tab-checkins .months { gap: 0; padding: 6px 8px; }
#tab-checkins .mo { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; column-gap: 12px; padding: 8px 10px; border-radius: 12px; border-bottom: 1px solid rgba(14,14,12,.06); }
#tab-checkins .mo:last-of-type { border-bottom: 0; }
#tab-checkins .mo.cur { background: var(--jaune-soft); }
#tab-checkins .mo .ml { font-size: 12px; padding-left: 0; }
#tab-checkins .mo .pa i { width: 22px; height: 22px; }
#tab-checkins .ms { font: 500 11px 'JetBrains Mono', monospace; color: var(--muted); white-space: nowrap; }
#tab-checkins .months .all { align-self: flex-start; margin: 10px 10px 6px; }
#tab-checkins .legend { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 12px 4px 40px; font-size: 12px; color: var(--muted); }
#tab-checkins .legend span { display: inline-flex; align-items: center; gap: 6px; }
#tab-checkins .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
#tab-checkins .legend i.ring { background: none; border: 2px solid rgba(14,14,12,.3); }
#tab-checkins .legend i.dash { background: none; border: 1.5px dashed rgba(14,14,12,.25); }

/* tuiles */
#tab-checkins .grid { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
#tab-checkins .col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 18px; background: none; padding: 0; border-radius: 0; min-height: 0; }
#tab-checkins .tile { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#tab-checkins .th { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#tab-checkins .th b { font: 700 20px 'Cardo', serif; }
#tab-checkins .th .n { font: 500 11.5px 'JetBrains Mono', monospace; color: var(--muted); }
#tab-checkins input, #tab-checkins textarea { width: 100%; background: var(--off-white); border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; color: inherit; resize: vertical; }
#tab-checkins input:focus, #tab-checkins textarea:focus { outline: none; border-color: var(--jaune); box-shadow: 0 0 0 3px var(--jaune-soft2); background: #fff; }

/* note */
#tab-checkins .sc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
#tab-checkins .sc button { border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 1px; background: #fff; }
#tab-checkins .sc button b { font: 700 22px 'Cardo', serif; }
#tab-checkins .sc button span { font-size: 11.5px; color: var(--muted); }
#tab-checkins .sc button:hover { border-color: var(--c); }
#tab-checkins .sc button.on { background: var(--c); border-color: var(--c); color: #fff; }
#tab-checkins .sc button.on span { color: rgba(255,255,255,.85); }

/* priorités */
#tab-checkins .fo { display: flex; gap: 8px; align-items: center; }
#tab-checkins .seg { display: flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; flex: none; }
#tab-checkins .seg button { width: 34px; height: 38px; font-weight: 700; color: var(--muted); }
#tab-checkins .seg button + button { border-left: 1px solid var(--line); }
#tab-checkins .seg button.on.done { background: var(--vert); color: #fff; }
#tab-checkins .seg button.on.partial { background: #D9A400; color: #fff; }
#tab-checkins .seg button.on.missed { background: var(--rouge); color: #fff; }
#tab-checkins .add { align-self: flex-start; }

/* feux des KR */
#tab-checkins .ob { font: 700 11px 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 6px; }
#tab-checkins .kr { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(14,14,12,.06); }
#tab-checkins .kr:last-child { border-bottom: 0; }
#tab-checkins .kt { flex: 1; min-width: 0; font-size: 14px; }
#tab-checkins .pct { font: 500 11px 'JetBrains Mono', monospace; color: var(--muted); white-space: nowrap; }
#tab-checkins .lights { display: flex; gap: 6px; flex: none; }
#tab-checkins .lights button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--c); opacity: .35; }
#tab-checkins .lights button:hover:not(:disabled) { opacity: .8; }
#tab-checkins .lights button.on { background: var(--c); opacity: 1; }
#tab-checkins .lights button:disabled.on { opacity: 1; }

/* listes */
#tab-checkins .lists { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
#tab-checkins .li.highs { border-top: 4px solid var(--vert); }
#tab-checkins .li.lows { border-top: 4px solid var(--rouge); }
#tab-checkins .li.learnings { border-top: 4px solid var(--jaune); }
#tab-checkins .li.blockers { border-top: 4px solid var(--ink-soft); }
#tab-checkins .other { font-size: 14px; }
#tab-checkins .next input + input { margin-top: -2px; }

#tab-checkins .foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
#tab-checkins .btn { background: var(--ink); color: var(--off-white); border-radius: 12px; padding: 12px 22px; font-weight: 700; }
#tab-checkins .btn:hover:not(:disabled) { background: var(--ink-soft); }
#tab-checkins .btn.ghost { background: none; color: var(--ink); border: 1.5px solid var(--line); }

/* historique */
#tab-checkins .stats { margin-bottom: 16px; color: var(--ink-soft); }
#tab-checkins .frise { margin-bottom: 18px; }
#tab-checkins .fr-wrap { overflow-x: auto; }
#tab-checkins .frise table { border-collapse: collapse; font-size: 13px; }
#tab-checkins .frise th { font: 500 10.5px 'JetBrains Mono', monospace; color: var(--muted); padding: 2px 6px; }
#tab-checkins .frise td { padding: 4px 6px; text-align: center; }
#tab-checkins .frise td.kt { text-align: left; max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tab-checkins .frise i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
#tab-checkins .frise i.no { background: none; border: 1.5px dashed rgba(14,14,12,.2); }
#tab-checkins .hist { gap: 0; padding: 6px 8px; margin-bottom: 40px; }
#tab-checkins .hrow { display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; text-align: left; padding: 10px; border-radius: 12px; }
#tab-checkins .hrow:hover { background: var(--jaune-soft); }
#tab-checkins .hrow .pa { grid-row: span 4; padding: 2px 0; }
#tab-checkins .hw { font-size: 14px; }
#tab-checkins .hw b { font-family: 'JetBrains Mono', monospace; font-size: 13px; }
#tab-checkins .hl { grid-column: 2; font-size: 13px; color: var(--ink-soft); }
#tab-checkins .hl.hi::first-letter { color: var(--vert); font-weight: 700; }
#tab-checkins .hl.lo::first-letter { color: var(--rouge); font-weight: 700; }

/* badge de l'onglet : un point jaune quand le check-in de la semaine attend */
.tabs button .tb#ci-badge { min-width: 8px; width: 8px; height: 8px; padding: 0; font-size: 0; }
.tabs button .tb#ci-badge[hidden] { display: none; }

@media (max-width: 720px) {
  #tab-checkins .grid { flex-direction: column; }
  #tab-checkins .col { width: 100%; flex: none; }
  #tab-checkins .lists { grid-template-columns: 1fr; }
  #tab-checkins .subnav .r { margin-left: 0; width: 100%; }
  #tab-checkins .saved { min-width: 0; }
  #tab-checkins .strip { gap: 10px; }
  #tab-checkins .mo { grid-template-columns: 1fr auto; row-gap: 2px; }
  #tab-checkins .mo .mw { grid-column: 1 / -1; }
  #tab-checkins .sc button span { display: none; }
  #tab-checkins .subnav h1 { font-size: 28px; }
}
