/* Temps & régulation v9 (02/11/2026), interrupteur temps_v9 : Temps passés et Régulation au fil de l'eau.
   Compléments à temps_v8.css (même cadre, classes préfixées t9-), repris de la maquette validée le 02/11/2026. */
#sTimes .tv8{--hb:#0b62c4}
html.theme-dark #sTimes .tv8{--hb:#5aa2ea}

/* barre d'outils commune */
#sTimes .t9-bar{display:flex;align-items:center;gap:8px;margin:-6px 0 18px}
#sTimes .t9-bar .t8-search{flex:1;height:42px}
#sTimes .t9-seg{flex:none;height:42px;align-items:center;padding:4px}
#sTimes .t9-seg button{height:34px;padding:0 14px}
#sTimes .t9-auj{height:42px}
#sTimes .t9-ico{width:42px;height:42px;padding:0}
#sTimes .t8-btn.s.t9-ico{width:32px;height:32px}
#sTimes .t9-bar .t8-btn{height:42px}

/* grille des temps passés */
#sTimes .t9-grid .t8-th{height:46px;column-gap:6px}
#sTimes .t9-grid .t8-tr,#sTimes .t9-grid .t8-tf{column-gap:6px}
#sTimes .t9-grid .t8-tr{height:52px;min-height:52px}
#sTimes .t9-hc{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;line-height:1.2;text-align:center!important}
#sTimes .t9-hc b{font-size:12px;font-weight:800;color:var(--ink)}
#sTimes .t9-hc small{font-size:10.5px;font-weight:600;color:var(--mut)}
#sTimes .t9-hc.we b{color:var(--mut)}
#sTimes .t9-c{display:grid;place-items:center;height:34px;border-radius:8px;font-size:12.5px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap;cursor:pointer;border:1px solid transparent}
#sTimes .t9-c.l1{background:color-mix(in srgb,var(--hb) 7%,transparent)}
#sTimes .t9-c.l2{background:color-mix(in srgb,var(--hb) 13%,transparent)}
#sTimes .t9-c.l3{background:color-mix(in srgb,var(--hb) 21%,transparent)}
#sTimes .t9-c.l4{background:color-mix(in srgb,var(--hb) 31%,transparent)}
#sTimes .t9-c.z{cursor:default;color:var(--mut);font-weight:500}
#sTimes .t9-c.vide{border:1px dashed color-mix(in srgb,var(--mut) 45%,transparent);color:var(--mut)}
#sTimes .t9-c.we.z{background:transparent}
#sTimes .t9-c.on{border:2px solid var(--navy3);box-shadow:0 0 0 2px color-mix(in srgb,var(--navy3) 18%,transparent)}
html.theme-dark #sTimes .t9-c.on{border-color:#7fb0dc}
#sTimes .t9-c.ab .t8-tag{height:22px;font-size:11px;padding:0 7px}
#sTimes .t9-r.sel{background:color-mix(in srgb,var(--navy3) 5%,transparent)}
#sTimes .t9-avz{background:var(--card2)!important;color:var(--mut)!important}
#sTimes .t9-avz svg{width:14px;height:14px}
#sTimes .t9-leg{display:inline-flex;align-items:center;gap:3px;font-size:12px;color:var(--mut);white-space:nowrap}
#sTimes .t9-leg i{display:inline-block;width:16px;height:12px;border-radius:3px}
#sTimes .t9-leg i.l1{background:color-mix(in srgb,var(--hb) 7%,transparent)}
#sTimes .t9-leg i.l2{background:color-mix(in srgb,var(--hb) 13%,transparent)}
#sTimes .t9-leg i.l3{background:color-mix(in srgb,var(--hb) 21%,transparent)}
#sTimes .t9-leg i.l4{background:color-mix(in srgb,var(--hb) 31%,transparent)}
#sTimes .t9-leg span{margin-left:6px}
#sTimes .t9-mois .t9-c{font-size:12px}

/* détail d'une case */
#sTimes .t9-det .t8-ch{gap:10px}
#sTimes .t9-det .t8-ch .t8-btn.s{flex:none}
#sTimes .t9-dg{display:grid;grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);gap:24px;padding:4px 18px 16px;border-top:1px solid var(--line)}
#sTimes .t9-dg h4{margin:14px 0 8px;font-size:11.5px;font-weight:800;color:var(--mut);letter-spacing:.02em}
#sTimes .t9-dg .t8-kv .w{width:140px}
#sTimes .t9-dg .t8-th,#sTimes .t9-dg .t8-tr{padding:0 4px}
#sTimes .t9-dg .t8-th{height:32px;border-radius:8px;border:0}
#sTimes .t9-dg .t8-tr{height:46px;min-height:46px}
#sTimes .t9-plus{font-size:12px;color:var(--mut);padding-top:6px}

/* régulation : colonne des clients + liste */
#sTimes .t9-g{display:grid;grid-template-columns:248px minmax(0,1fr);gap:16px;align-items:start}
#sTimes .t9-col{padding-bottom:8px}
#sTimes .t9-colh{display:flex;align-items:center;gap:8px;padding:14px 16px 8px}
#sTimes .t9-colh .tt{font-size:15px;font-weight:800;color:var(--ink)}
#sTimes .t9-colh .hint{margin-left:auto;font-size:11.5px;font-weight:700;color:var(--mut)}
#sTimes .t9-colg{font-size:11px;font-weight:800;letter-spacing:.03em;color:var(--mut);padding:12px 16px 6px}
#sTimes .t9-ci{font:inherit;display:flex;align-items:center;gap:10px;width:100%;height:50px;padding:0 12px 0 16px;border:0;border-left:3px solid transparent;background:transparent;text-align:left;cursor:pointer;color:var(--txt)}
#sTimes .t9-ci .tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
#sTimes .t9-ci b{font-size:13px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sTimes .t9-ci small{font-size:11.5px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:4px}
#sTimes .t9-ci small svg{width:11px;height:11px}
#sTimes .t9-ci.on{background:color-mix(in srgb,var(--navy3) 8%,transparent);border-left-color:var(--navy3)}
html.theme-dark #sTimes .t9-ci.on{border-left-color:#7fb0dc}
#sTimes .t9-sq{width:30px;height:24px;border-radius:7px;display:grid;place-items:center;flex:none;background:var(--card2);color:var(--ink);font-size:11.5px;font-weight:800;font-variant-numeric:tabular-nums}
#sTimes .t9-sq.ok{background:color-mix(in srgb,#3f8f5f 13%,transparent);color:#2f7a4c}
#sTimes .t9-sq.ok svg{width:13px;height:13px;stroke-width:3}
html.theme-dark #sTimes .t9-sq.ok{background:rgba(90,180,120,.16);color:#8fd0a5}
#sTimes .t9-plus2{display:flex;align-items:center;gap:8px;height:36px;padding:0 16px;font-size:12.5px;font-weight:700;color:var(--ink)}
#sTimes .t9-plus2 svg{width:14px;height:14px}
#sTimes .t9-cin{font-size:12px;color:var(--mut);line-height:1.45;padding:0 16px 8px}
#sTimes .t9-main{min-width:0}
#sTimes .t9-cli{padding:0}
#sTimes .t9-clh{display:flex;align-items:center;gap:14px;padding:14px 18px}
#sTimes .t9-cn{font-size:17px;font-weight:800;color:var(--ink);white-space:nowrap}
#sTimes .t9-clh .x{font-size:12.5px;color:var(--mut);margin-top:3px;white-space:nowrap}
#sTimes .t9-av2{display:flex;align-items:center;gap:14px;flex:none}
#sTimes .t9-av2 > svg{width:16px;height:16px;color:var(--mut)}
#sTimes .t9-av2 div{display:flex;flex-direction:column;gap:2px;align-items:flex-end}
#sTimes .t9-av2 small{font-size:11.5px;font-weight:700;color:var(--mut);white-space:nowrap}
#sTimes .t9-av2 b{font-size:16px;font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
#sTimes .t9-sug{display:flex;align-items:center;gap:10px;padding:10px 18px;border-top:1px solid var(--line);font-size:12.5px;color:var(--txt);background:color-mix(in srgb,var(--card2) 40%,transparent)}
#sTimes .t9-sug > svg{width:16px;height:16px;color:var(--mut)}
#sTimes .t9-sug > span:not(.sp){min-width:0;line-height:1.4}
#sTimes .t9-sug b{color:var(--ink)}
#sTimes .t9-list .t8-tr{height:56px;min-height:56px}
#sTimes .t9-av24{width:24px;height:24px;font-size:9.5px}
#sTimes .t9-in{display:inline-flex;align-items:center;justify-content:flex-end;width:80px;height:30px;padding:0 9px;border:1px solid var(--line);border-radius:8px;background:var(--card);font-weight:800;color:var(--ink)}
#sTimes .t9-in.vide{color:var(--mut);font-weight:500;justify-content:center}
#sTimes .t9-et{font-size:13px!important}
#sTimes .t9-list .t8-bulk .t8-btn[disabled]{opacity:.5}

/* fenêtre de régule */
#sTimes .t9-mode{display:flex;align-items:center;gap:10px;padding:2px 22px 16px}
#sTimes .t9-mode .t9-seg{height:38px}
#sTimes .t9-mode .t9-seg button{height:30px}
#sTimes .t9-pin{width:96px;height:38px;font-size:15px}
#sTimes .t9-hint{font-size:12px;color:var(--mut);white-space:nowrap}
#sTimes .t9-dlg .t8-notes{padding-top:16px}
#sTimes .t9-dlg .t8-fm{flex:1}

/* historique */
#sTimes .t9-sub{background:color-mix(in srgb,var(--card2) 35%,transparent);border-top:1px solid var(--line);padding:6px 18px 0 124px}
#sTimes .t9-sub .t8-th{height:32px;border-radius:8px;border:0;padding:0 10px}
#sTimes .t9-sub .t8-tr{height:42px;min-height:42px;padding:0 10px}
#sTimes .t9-subf{display:flex;align-items:center;gap:14px;height:54px;padding:0 10px;font-size:12.5px;border-top:1px solid var(--line)}
#sTimes .tv8 .t9-g .t8-tr .n svg.i,#sTimes .tv8 .t8-wide .t8-tr .n svg.i{width:12px;height:12px;vertical-align:-1px;margin:0 2px;color:var(--mut)}


/* clôture : liste avant de valider */
#sTimes .t9-check .t8-ch{border-bottom:1px solid var(--line)}
#sTimes .t9-ck{display:flex;align-items:center;gap:12px;height:54px;padding:0 18px;border-top:1px solid var(--line)}
#sTimes .t9-ck:first-of-type{border-top:0}
#sTimes .t9-ck .tt{font-size:13.5px;font-weight:700;color:var(--ink);white-space:nowrap}
#sTimes .t9-ck .d{font-size:12.5px;color:var(--mut);white-space:nowrap}
#sTimes .t9-ckb{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;flex:none;border:2px solid color-mix(in srgb,var(--mut) 50%,transparent)}
#sTimes .t9-ckb.ok{background:#3f8f5f;border-color:#3f8f5f;color:#fff}
#sTimes .t9-ckb.ok svg{width:12px;height:12px;stroke-width:3}
#sTimes .t9-ckb.go{border-color:var(--navy3);border-style:dashed}
#sTimes .t9-check .t8-tag.ok,#sTimes .t9-check .t8-go{width:112px;justify-content:center}

/* compléments de l'écran réel */
#sTimes .t9-bar.t8-bar{position:relative}
#sTimes .t9-per{height:42px}
#sTimes button.t9-c{font:inherit;width:100%;padding:0;font-size:12.5px;font-weight:700;color:var(--ink)}
#sTimes button.t9-c:hover{border-color:color-mix(in srgb,var(--navy3) 45%,transparent)}
#sTimes .t9-avc{border-radius:8px;background:var(--card2);color:var(--ink)}
#sTimes .t9-cta{display:flex;justify-content:flex-start;margin:-4px 0 16px}
#sTimes .t9-nr{font-size:11.5px;font-weight:600;color:var(--mut);white-space:nowrap}
#sTimes button.t9-in{font:inherit;font-size:13px;cursor:pointer;font-variant-numeric:tabular-nums}
#sTimes button.t9-in:hover{border-color:var(--navy3)}
#sTimes .t9-in.ro{background:transparent;border-color:transparent}
#sTimes label.t9-in.on{gap:4px;padding:0 6px 0 8px;border-color:var(--navy3);box-shadow:0 0 0 3px color-mix(in srgb,var(--navy3) 14%,transparent)}
#sTimes label.t9-in.on input{width:44px;border:0;outline:0;background:transparent;font:inherit;font-weight:800;color:var(--ink);text-align:right;padding:0}
#sTimes label.t9-in.on small{font-size:11px;font-weight:600;color:var(--mut)}
#sTimes .t9-pin input{width:52px;border:0;outline:0;background:transparent;font:inherit;font-weight:800;color:var(--ink);text-align:right;padding:0}
#sTimes .t8-ddw .t8-menu.t9-menu{right:0;left:auto;width:260px;max-height:340px;overflow:auto;padding:6px}
#sTimes .t8-menu.t9-menu button{flex-direction:row;font:inherit;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;height:34px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--txt);font-size:13px;cursor:pointer}
#sTimes .t8-menu.t9-menu button b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sTimes .t8-menu.t9-menu button span{color:var(--mut);font-size:11.5px;font-variant-numeric:tabular-nums}
#sTimes .t8-menu.t9-menu button.on{background:color-mix(in srgb,var(--navy3) 11%,transparent);color:var(--ink)}
#sTimes .t9-list .t8-ch .t8-ddw{position:relative}
#sTimes .t9-tokp{height:30px}
#sTimes .t9-ann .t,#sTimes .t9-ann .n{color:var(--mut)!important;text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--mut) 60%,transparent)}
#sTimes .t9-lien{font:inherit;border:0;background:transparent;padding:0;color:var(--mut);font-size:12.5px;cursor:pointer;text-decoration:underline}
#sTimes .t9-sub .t8-load.in{padding:12px 0}
#sTimes .t9-sug .t8-btn{flex:none}
#sTimes .t9-check .t8-go{width:112px}
#sTimes .t9-g .t8-go,#sTimes .t9-check ~ .t8-card .t8-go{width:112px}

/* écrans étroits (téléphone du Desk ouvert, téléphone) */
@container tv8 (max-width:1060px){
  #sTimes .t8-tabs{overflow-x:auto;overscroll-behavior-x:contain}
  #sTimes .t8-tab{padding:0 10px;gap:7px}
  #sTimes .t8-tab svg{display:none}
  #sTimes .t9-bar{flex-wrap:wrap;row-gap:8px}
  #sTimes .t9-bar .t8-search{flex:1 1 100%}
  #sTimes .t9-g{grid-template-columns:minmax(0,1fr)}
  #sTimes .t9-col{max-height:300px;overflow-y:auto;overscroll-behavior:contain}
  #sTimes .t9-clh{flex-wrap:wrap;row-gap:10px}
  #sTimes .t9-dg{grid-template-columns:minmax(0,1fr)}
  #sTimes .t9-check .t9-ck .d{display:none}
}
@container tv8 (max-width:640px){
  #sTimes .t9-bar > .sp{display:none}
  #sTimes .t9-seg{height:38px}
  #sTimes .t9-seg button{height:30px;padding:0 9px;font-size:12px}
  #sTimes .t9-bar .t8-perw,#sTimes .t9-bar .t9-per{flex:1 1 100%;justify-content:space-between}
  #sTimes .t9-bar .t8-btn:not(.t9-ico){flex:1 1 auto}
  #sTimes .t9-av2{flex-wrap:wrap;gap:10px}
  #sTimes .t9-sug{flex-wrap:wrap}
  #sTimes .t9-list .t8-bulk{flex-wrap:wrap}
  #sTimes .t9-leg{display:none}
}
#sTimes .t9-chips{align-items:center}
#sTimes .t9-selnon{font-weight:700;color:var(--ink);text-decoration:none;white-space:nowrap}
#sTimes .t9-selnon:hover{text-decoration:underline}
