/* Otoolia — Carnet de l'assistante maternelle (complète sport.css : .sp-*) */
.am-tabs { margin: 4px 0 14px; }
.am-body > .ot-panel, .am-grid > .ot-panel { margin-bottom: var(--ot-space); }
.am-monthbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 8px; }
.am-monthbar h2 { margin: 0; font-size: 1.25rem; min-width: 10ch; text-align: center; }
.am-st { font-size: .82rem; padding: 3px 10px; border-radius: 999px; background: var(--ot-surface-2); border: 1px solid var(--ot-border); color: var(--ot-text-soft); }
.am-st--ok { color: #15803d; border-color: color-mix(in srgb, #16a34a 45%, var(--ot-border)); }
.am-st--dirty { color: #b45309; border-color: color-mix(in srgb, var(--ot-logo-orange) 55%, var(--ot-border)); }
.am-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: var(--ot-brand); }
@media (min-width: 980px) { .sp-main--2.am-grid { grid-template-columns: minmax(0, 1fr); } .am-side.sp-sticky { position: static; } }
@media (min-width: 1240px) { .sp-main--2.am-grid { grid-template-columns: minmax(0, 1fr) 330px; } .am-side.sp-sticky { position: sticky; } }
.am-days td, .am-days th { padding: 3px 5px; }
.am-days .ot-input, .am-days .ot-select { min-height: 32px; padding: 3px 6px; font-size: .86rem; }
.am-days input[type="time"] { width: 86px; }
.am-days .am-n { width: 48px; }
.am-days .am-note { width: 100px; }
.am-days .am-s { width: 150px; }
.am-days tr.am-we td { background: color-mix(in srgb, var(--ot-text) 4%, transparent); }
.am-days tr.am-hol td:first-child { color: #b45309; font-weight: 600; }
.am-days tr.am-off td { color: var(--ot-text-soft); }
.am-days tr.am-todo td:first-child { box-shadow: inset 3px 0 0 var(--ot-logo-orange); }
.am-days tr.am-wk td { background: var(--ot-surface-2); text-align: left; padding: 4px 6px; }
.am-holn { display: block; font-weight: 400; font-size: .72rem; }
.am-res td:last-child { font-weight: 600; }
.am-res small { font-weight: 400; }
.am-rpe { border-left-color: #b45309; }
.am-close { margin-top: var(--ot-space); }
.am-main { background: var(--ot-brand); color: #fff; border-color: var(--ot-brand); }
.am-main:hover { filter: brightness(1.08); }
.am-del { color: #b91c1c; }
.am-ct summary { cursor: pointer; padding: 2px 0; line-height: 1.6; }
.am-ct[open] summary { margin-bottom: 8px; }
.am-ct h3 { margin-top: 14px; }
.am-plan { display: grid; gap: 8px 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.am-pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 64px; gap: 4px; align-items: center; }
.am-pd b { grid-column: 1 / -1; font-size: .82rem; color: var(--ot-text-soft); }
.am-pd .ot-input { min-height: 34px; padding: 3px 6px; font-size: .9rem; width: 100%; min-width: 0; box-sizing: border-box; }
.am-src { white-space: normal !important; font-size: .76rem; color: var(--ot-text-soft); min-width: 220px; }
.am-recap { max-width: 720px; }
.am-recap h2 small { font-weight: 400; font-size: .85rem; }
#sp-printdoc .sp-warn { border-left: 2px solid #b45309; padding: 4px 8px; background: none; }
#sp-printdoc .sp-table { width: 100%; border-collapse: collapse; }
#sp-printdoc .sp-table td { border-bottom: 1px solid #ccc; padding: 3px 6px; }
#sp-printdoc .sp-table td:last-child { text-align: right; }
#sp-printdoc .sp-table tr.is-hl td { font-weight: 700; }
.am-days .am-dur { width: 62px; }
.am-pdur::placeholder, .am-dur::placeholder { color: var(--ot-text-soft); opacity: .7; }
.ot-input.am-bad { border-color: #dc2626; box-shadow: 0 0 0 2px color-mix(in srgb, #dc2626 25%, transparent); }
/* champs alignés par le haut : une aide sous un champ (« libre ; … ») ne décale plus ses voisins */
.am-ct .sp-row { align-items: flex-start; }
.am-ct .sp-f small { line-height: 1.3; max-width: 260px; }
/* récapitulatif : détail des jours */
.am-rdays td:nth-child(2), .am-rdays th:nth-child(2), .am-rdays td:nth-child(5), .am-rdays th:nth-child(5) { text-align: left; }
.am-rdays tr.am-abs td { color: var(--ot-text-soft); }
.am-rdays td:nth-child(2), .am-rdays td:nth-child(5) { white-space: normal; }   /* récapitulatif : le statut et « repas, km » vont à la ligne au lieu de dépasser */
#sp-printdoc .am-rdays { font-size: 9pt; }
#sp-printdoc .am-rdays th { text-align: left; border-bottom: 1px solid #999; padding: 3px 6px; }
#sp-printdoc .am-rdays td:nth-child(5) { text-align: left; }
#sp-printdoc .am-rdays tr.am-abs td { color: #666; }
/* décompte des heures (pour l'assistante maternelle seulement) */
.am-tally { margin-top: 14px; border-top: 1px solid var(--ot-border); padding-top: 10px; }
.am-tally summary { cursor: pointer; line-height: 1.5; }
.am-priv { display: inline-block; font-size: .74rem; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, #7c3aed 12%, transparent); color: #6d28d9; vertical-align: middle; }
.am-tsub { margin: 6px 0; font-size: .84rem; }
.am-ttab tr.am-abs td { color: var(--ot-text-soft); }
/* indemnité de congés payés (mois) et bilan annuel */
.am-icp { margin: 0 0 .8rem; padding: .6rem .7rem; border: 1px dashed var(--ot-border, #cbd5e1); border-radius: 10px; }
.am-icp .sp-f { margin: 0 0 .3rem; }
.am-icp .ot-input { max-width: 10rem; }
.am-icp .sp-note { margin: 0; }
.am-icp .ot-btn { margin-left: .3rem; }
.am-rv h3 { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin-top: 0; }
.am-rv .am-res td:last-child { white-space: nowrap; }
/* lien vers le tutoriel, dans l'outil */
.am-tuto-link { display: inline-flex; align-items: center; gap: .45em; margin: .2em 0 .6em; padding: .5em 1em; border-radius: 999px; font-weight: 700; text-decoration: none;
  background: color-mix(in srgb, var(--ot-brand) 12%, var(--ot-surface)); color: var(--ot-brand); border: 1px solid color-mix(in srgb, var(--ot-brand) 35%, transparent); }
.am-tuto-link:hover { background: var(--ot-brand); color: var(--ot-brand-ink); }
/* Bilan annuel : sous-onglets, avenant, signatures */
.am-rvtabs { margin-bottom: var(--ot-space); }
.am-av { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin: 12px 0 4px; padding-top: 10px; border-top: 1px dashed var(--ot-border); }
.am-av small { flex-basis: 100%; }
.am-sign { margin-top: 14px; font-size: .88rem; color: var(--ot-text-soft); }
.am-n24 { width: 5.5em; padding: 4px 8px; text-align: right; }
