/* ERP Maison — module École & trajets (préfixe .ecl-) */

/* ---------- Sous-onglets ---------- */
.ecl-tabs{margin-bottom:16px;}
.ecl-tabs .segmented{display:flex;flex-wrap:nowrap;width:100%;max-width:560px;overflow-x:auto;scrollbar-width:none;}
.ecl-tabs .segmented::-webkit-scrollbar{display:none;}
.ecl-tabs .seg-btn{flex:1 0 auto;padding:8px 10px;min-height:36px;}
.ecl-badge{
  display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:3px;
  border-radius:999px;background:var(--accent);color:#fff;font-size:11px;line-height:1;
}
.ecl-center{text-align:center;margin:-6px 0 12px;}
.ecl-intro{margin:0 0 14px;line-height:1.45;}

/* ---------- Navigation de semaine ---------- */
.ecl-week-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 14px;}
.ecl-week-nav .btn{min-width:44px;min-height:38px;justify-content:center;font-size:18px;}
.ecl-week-label{display:flex;flex-direction:column;align-items:center;text-align:center;}
.ecl-tabs + .ecl-body > .alert{margin-bottom:14px;}

/* ---------- Jours ---------- */
.ecl-days{display:grid;grid-template-columns:repeat(auto-fill, minmax(300px,1fr));gap:12px;margin-bottom:16px;}
.ecl-day{gap:6px;padding:12px;}
.ecl-day.is-today{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft), var(--shadow);}
.ecl-day.is-past{opacity:.7;}
.ecl-day-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:15px;margin-bottom:2px;}
.ecl-day-head b{margin-right:auto;}
.ecl-off{background:var(--muted-bg);border-radius:10px;padding:10px 12px;font-size:14px;color:var(--ink-soft);font-weight:600;}

.ecl-slot{
  display:flex;align-items:flex-start;gap:10px;width:100%;text-align:left;background:var(--field-bg);border:1px solid var(--line);
  border-radius:12px;padding:9px 10px;font-family:inherit;font-size:13.5px;color:var(--ink);cursor:pointer;min-height:44px;
}
button.ecl-slot:hover{border-color:var(--accent);}
.ecl-slot.is-off{cursor:default;background:var(--muted-bg);align-items:center;}
button.ecl-slot.is-off{cursor:pointer;}
.ecl-slot .avatar{margin-top:1px;}
.ecl-slot-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
.ecl-slot-top{display:flex;flex-wrap:wrap;align-items:center;gap:5px;}
.ecl-slot-top .pill{font-size:11px;padding:2px 7px;}
.ecl-slot-name{font-weight:700;font-size:14.5px;margin-right:2px;}
.ecl-slot-off{color:var(--ink-soft);font-size:13px;}
.ecl-slot-line{line-height:1.35;overflow-wrap:anywhere;}
.ecl-slot-line.is-missing{color:var(--danger);background:var(--danger-soft);border-radius:6px;padding:1px 6px;margin-left:-6px;}
.ecl-slot-edit{display:inline-flex;opacity:.45;flex-shrink:0;}
.ecl-due{
  display:block;width:100%;text-align:left;border:none;background:var(--warn-soft);color:#7a5212;border-radius:8px;
  padding:7px 10px;font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;
}

/* ---------- Vacances ---------- */
.ecl-vac{gap:8px;margin-bottom:16px;}
.ecl-vac-title{display:flex;align-items:center;gap:8px;font-weight:700;font-size:15px;}
.ecl-vac-main{display:flex;align-items:center;gap:12px;}
.ecl-count{
  flex-shrink:0;min-width:58px;height:50px;border-radius:12px;background:#e3f3f3;color:#1f6f6f;font-weight:800;font-size:19px;
  display:inline-flex;align-items:center;justify-content:center;padding:0 8px;
}
.ecl-vac-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;font-size:13px;}
.ecl-vac-list li{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:5px;}
.ecl-vac p{margin:0;}

/* ---------- Répartition ---------- */
.ecl-share{display:grid;grid-template-columns:repeat(auto-fill, minmax(120px,1fr));gap:8px;margin-bottom:16px;}
.ecl-share .kpi{padding:9px 12px;}
.ecl-share .k-lbl{text-transform:none;font-size:13px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ecl-share-val{font-weight:700;font-size:15px;margin-top:2px;}

/* ---------- À faire ---------- */
.ecl-todo-bar{margin-bottom:12px;}
.ecl-kpis{grid-template-columns:repeat(auto-fit, minmax(100px,1fr));gap:8px;margin-bottom:6px;}
.ecl-kpis .kpi{padding:9px 12px;}
.ecl-kpis .k-val{font-size:19px;}
.ecl-kpi-danger{border-color:#e8c9c2;background:var(--danger-soft);}
.ecl-kpi-danger .k-val{color:var(--danger);}
.ecl-note{white-space:pre-line;}
.ecl-body .section-title .avatar{vertical-align:middle;}
.ecl-body .list-item .check{width:26px;height:26px;}
.ecl-type-ic{display:inline-flex;vertical-align:-0.15em;color:var(--ink-soft);}

/* ---------- Enfants ---------- */
.ecl-kids{grid-template-columns:repeat(auto-fill, minmax(280px,1fr));}
.ecl-kid .card-head{flex-wrap:wrap;}
.ecl-dl{margin:0;display:flex;flex-direction:column;gap:5px;font-size:13.5px;}
.ecl-dl > div{display:flex;gap:10px;justify-content:space-between;border-bottom:1px dashed var(--line);padding-bottom:4px;}
.ecl-dl > div:last-child{border-bottom:none;}
.ecl-dl dt{color:var(--ink-soft);flex-shrink:0;display:inline-flex;align-items:center;gap:5px;}
.ecl-dl dd{margin:0;text-align:right;font-weight:600;overflow-wrap:anywhere;}
.ecl-kid-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;}
.ecl-kid p{margin:0;}

/* ---------- Formulaires ---------- */
.ecl-form .weekday-picker .wd-btn[data-i="5"], .ecl-form .weekday-picker .wd-btn[data-i="6"]{display:none;}
.ecl-form .wd-btn{min-height:36px;min-width:48px;}
.ecl-person{display:flex;flex-direction:column;gap:6px;}
.ecl-person select, .ecl-person .input{
  width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:10px;font-family:inherit;font-size:15px;color:var(--ink);background:var(--field-bg);
}
.ecl-form-info{background:var(--blue-soft);color:#24506f;border-radius:10px;padding:10px 12px;font-size:13px;line-height:1.45;}

/* ---------- Carte du tableau de bord ---------- */
.ecl-dash{display:flex;flex-direction:column;gap:8px;cursor:pointer;}
.ecl-dash-row{display:flex;align-items:flex-start;gap:9px;font-size:13.5px;line-height:1.4;}
.ecl-dash-txt{min-width:0;}
.ecl-dash-meta{font-size:12px;color:var(--ink-soft);margin-left:4px;}
.ecl-dash-off{background:#e3f3f3;color:#1f6f6f;border-radius:10px;padding:9px 12px;font-weight:700;font-size:14px;}
.ecl-dash-next{margin-top:2px;}
.ecl-dash-due{display:flex;flex-direction:column;gap:3px;background:var(--warn-soft);color:#7a5212;border-radius:10px;padding:8px 11px;font-size:13px;font-weight:600;}
.ecl-red{color:var(--danger);font-weight:700;}

@media (max-width:640px){
  .ecl-days{grid-template-columns:1fr;}
  .ecl-kids{grid-template-columns:1fr;}
}
