.stage-row{cursor:pointer}.stage-open{border:0;background:none;font:inherit;font-weight:600;color:#32573f;text-align:left;padding:0}.stage-open:hover{text-decoration:underline}.stage-open:focus-visible{outline:2px solid #8caa75;outline-offset:5px;border-radius:2px}.instructors-cell{min-width:245px;max-width:340px}.initials-line{display:flex;gap:5px;margin-bottom:6px}.instructor-initial{display:inline-grid;place-items:center;min-width:28px;height:28px;border-radius:50%;font-size:9px;font-weight:650;border:1px solid #dce3d6;background:#eff2e9;color:#8a9680}.instructor-initial.green,.day-state.green{background:#e8f1df;color:#4e7440;border-color:#cdddba}.instructor-initial.amber,.day-state.amber{background:#faf0df;color:#a27c40;border-color:#ead7b8}.instructor-initial.blocked,.day-state.blocked{background:#f4e9e3;color:#a16a54;border-color:#e9d3c5}.availability-line{white-space:normal;line-height:1.6;max-width:320px}.stage-dialog{border:1px solid #d9e1d1;border-radius:13px;padding:0;width:min(1160px,94vw);max-height:88vh;color:#243c34;box-shadow:0 28px 100px #15312633;overflow:auto}.stage-dialog::backdrop{background:#142d2566;backdrop-filter:blur(3px)}.stage-dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:27px 30px 21px;background:#f7f9f2;border-bottom:1px solid #e1e8d9}.stage-dialog-heading h2{font-family:Georgia,serif;font-size:29px;margin:8px 0}.stage-dialog-heading p{font-size:11px;color:#87947c;margin:8px 0 0}.dialog-close{border:0;background:none;font-size:29px;line-height:1;color:#849379;padding:3px 5px}.stage-dialog-body{padding:23px 30px}.detail-notice{font-size:11px;line-height:1.8;color:#87947e;margin-bottom:18px}.availability-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:10px;color:#8c9782;margin-bottom:20px}.availability-legend>span{display:flex;align-items:center;gap:6px}.legend-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#d8dfd0}.legend-dot.green{background:#83a46a}.legend-dot.amber{background:#c9a16a}.legend-dot.blocked{background:#b78b72}.availability-table-wrap{overflow:auto;border:1px solid #e1e7d9;border-radius:7px}.availability-table{font-size:11px}.availability-table th{white-space:nowrap;font-size:9px;padding:13px 15px}.availability-table td{padding:17px 15px;vertical-align:top}.availability-table td:first-child{min-width:160px}.availability-table td:nth-child(2){min-width:200px}.person-label{display:flex;align-items:center;gap:9px}.availability-table .badge{white-space:normal;line-height:1.6;max-width:215px}.availability-table small{white-space:normal;max-width:150px}.day-state{display:inline-block;padding:5px 8px;border:1px solid #e2e7da;border-radius:5px;font-size:9px;white-space:nowrap;background:#f3f5ed;color:#8f9985}.detail-footnote{font-size:10px;color:#919b85;line-height:1.8;margin-top:22px}.stage-dialog-footer{padding:14px 30px;margin:0;text-align:right;border-top:1px solid #e6ecde;background:#fbfcf8}@media(max-width:760px){.stage-dialog{width:96vw;max-height:91vh}.stage-dialog-heading{padding:21px}.stage-dialog-heading h2{font-size:24px}.stage-dialog-body{padding:18px}.stage-dialog-footer{padding:12px 18px}.availability-legend{gap:10px}.instructors-cell{min-width:220px}}
.alias-row{display:grid;grid-template-columns:1fr 1fr 30px;gap:15px;align-items:center}.remove-alias{border:0;background:none;font-size:24px;color:#9ca393}.aliases-summary{cursor:pointer;font-size:17px;margin-bottom:15px}@media(max-width:760px){.alias-row{grid-template-columns:1fr 30px;gap:0 10px}.alias-row label:nth-child(2){grid-column:1}.remove-alias{grid-column:2;grid-row:1/3}}

/* La liste utilise la largeur disponible et replie ses textes avant de défiler. */
.main-area{min-width:0}
.content:has(.stages-table){max-width:none}
.table-card:has(.stages-table){container-type:inline-size;container-name:stage-list;min-width:0}
.stages-table{table-layout:fixed}
.stages-table th,.stages-table td{padding:14px 12px;white-space:normal;overflow-wrap:anywhere;vertical-align:top}
.stages-table th:nth-child(1){width:22%}
.stages-table th:nth-child(2){width:12%}
.stages-table th:nth-child(3){width:30%}
.stages-table th:nth-child(4){width:18%}
.stages-table th:nth-child(5){width:18%}
.stages-table .instructors-cell{min-width:0;max-width:none}
.stages-table .stage-open{max-width:100%;overflow-wrap:anywhere;line-height:1.5}
.stages-table .stage-dates>span{display:block}
.stages-table .badge{max-width:100%;white-space:normal;line-height:1.5}
.stages-table .initials-line{flex-wrap:wrap;gap:4px}
.stages-table .instructor-initial{min-width:24px;height:24px;flex-shrink:0}
.stages-table .availability-line{max-width:none}
@media(min-width:761px) and (max-width:1400px){
  .layout:has(.stages-table) .sidebar{width:200px;padding-left:15px;padding-right:15px}
  .layout:has(.stages-table) .main-area{margin-left:200px;width:calc(100% - 200px)}
  .content:has(.stages-table){padding-left:22px;padding-right:22px}
  .stages-table th,.stages-table td{padding:12px 9px}
}
/* Sur une zone vraiment étroite, chaque stage devient une fiche complète. */
@container stage-list (max-width:700px){
  .table-toolbar{align-items:stretch;flex-direction:column;padding:18px}
  .filters{width:100%;flex-wrap:wrap;min-width:0}
  .filters input,.filters select{max-width:none;min-width:0;flex:1 1 180px}
  .table-scroll{overflow:visible}
  .stages-table,.stages-table tbody{display:block;width:100%}
  .stages-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .stages-table tbody{display:grid;gap:12px;padding:12px;background:#f7f8f3}
  .stages-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}
  .stages-table td{display:block;min-width:0;padding:12px 14px}
  .stages-table td::before{content:attr(data-label);display:block;margin-bottom:7px;font-size:10px;font-weight:600;color:#66775d}
  .stages-table td:first-child,.stages-table .instructors-cell,.stages-table .empty{grid-column:1/-1}
  .stages-table td:first-child{background:#f0f4eb}
  .stages-table td:first-child::before,.stages-table .empty::before{display:none}
  .stages-table .stage-open{font-size:14px}
  .stages-table td:nth-last-child(-n+2){border-bottom:0}
  .stages-table .stage-dates>span{display:inline}
  .table-bottom{padding:14px 18px}
}

.coverage-legend{display:flex;flex-wrap:wrap;gap:8px 18px;margin:10px 0 6px}
.coverage-legend>span{display:flex;align-items:center;gap:6px}
.legend-dot.red{background:#c26856}
.badge.red{background:#f9e5df;color:#9e4938}
.coverage-label{margin:0 0 9px}
.stages-table .coverage-green{--coverage-bg:#f1f7ec;--coverage-line:#7e9f67}
.stages-table .coverage-amber{--coverage-bg:#fff7e9;--coverage-line:#d09b43}
.stages-table .coverage-red{--coverage-bg:#fcf0ed;--coverage-line:#c26856}
.stages-table .stage-row{background:var(--coverage-bg,#fff)}
.stages-table .stage-row td:first-child{background:var(--coverage-bg,#f5f7f0);box-shadow:inset 4px 0 0 var(--coverage-line,#d9dfd4)}
.wa-message{font-size:12px;margin:14px 0}
.wa-account small{display:block;color:var(--muted)}
.wa-qr{text-align:center;margin:20px 0}
.wa-qr img{display:block;max-width:100%;height:auto;margin:0 auto;border:1px solid var(--line);border-radius:8px;background:#fff}
.wa-qr small{display:block;margin-top:8px;font-size:10px;color:var(--muted)}
.wa-steps{padding-left:20px;font-size:12px;color:#66775d;line-height:1.8}
.wa-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.page-heading:has(.source-refresh){align-items:flex-start;flex-wrap:wrap}
.source-refresh{display:flex;gap:12px;flex-wrap:wrap;margin-left:auto;max-width:100%}
.source-refresh-item{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0;max-width:240px}
.source-refresh-item small{font-size:10px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.source-refresh-item .button{white-space:normal;text-align:left}
.source-hint{display:block;font-size:9px;color:var(--muted)}
.google-service-email{overflow-wrap:anywhere}
.google-help{margin:20px 0;font-size:12px;line-height:1.8}
.google-help summary{cursor:pointer;font-weight:600}
.google-help a{text-decoration:underline}
@media(max-width:1150px){.source-refresh{width:100%;margin-left:0}.source-refresh-item{flex:1;max-width:none}}
