.roster-toolbar { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px; padding:16px 0; }
.roster-toolbar p { margin:0; color:#34566e; }.roster-toolbar strong { font-size:26px; color:#07517f; margin-right:8px; }
.roster button,.roster-dialog button { font:inherit; min-height:40px; padding:8px 14px; border:1px solid #b5d0e3; border-radius:6px; background:#fff; color:#005f9d; cursor:pointer; }
.roster button:focus-visible,.roster-dialog button:focus-visible,.roster-scroll:focus-visible { outline:3px solid #00b0f0; outline-offset:3px; }
.roster button:disabled,.roster-dialog button:disabled { opacity:.65; cursor:default; }
.roster-scroll { overflow-x:auto; border:1px solid #c8dce9; border-radius:10px; background:#fff; }
.roster-table { width:100%; border-collapse:collapse; min-width:850px; font-size:14px; text-align:left; }
.roster-table th { color:#174d70; background:#eaf5fc; font-weight:600; padding:15px 14px; white-space:nowrap; border-bottom:1px solid #c5dce9; }
.roster-table td { padding:16px 14px; border-bottom:1px solid #e0ebf2; vertical-align:middle; }.roster-table tr:last-child td { border:0; }.roster-table tr:hover td { background:#f8fcff; }
.roster-table th:nth-child(3) { width:26%; }.roster-table th:nth-child(4) { width:24%; }
.roster .roster-name { border:0; background:none; padding:0; color:#006cae; text-align:left; text-decoration:underline; text-decoration-color:#b1d5eb; text-underline-offset:4px; line-height:1.6; }
.roster-course-date { display:block; color:#153f5d; font-size:14px; font-weight:500; }.roster-table small { display:block; margin-top:5px; color:#5e788a; font-size:12px; line-height:1.5; }
.roster-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }.roster-actions button { white-space:nowrap; font-size:13px; }
.roster-actions [data-roster-accept] { color:#0b664d; background:#ebf8f1; border-color:#b1d8c8; }
.roster .roster-delete,.roster-dialog .roster-delete { color:#a12f3f; border-color:#dfb8bf; background:#fff7f8; }
.roster-message { margin:0 0 15px; padding:12px; border:1px solid #bddacb; border-radius:6px; background:#effaf4; color:#16563d; line-height:1.6; }.roster-message[hidden] { display:none; }
.roster-message button { margin-left:10px; }.roster-dialog { width:min(640px,calc(100vw - 32px)); max-height:90dvh; overflow:auto; padding:24px; border:1px solid #bcd7e8; border-radius:12px; color:#123f5e; background:#fff; box-sizing:border-box; box-shadow:0 20px 60px #00365b33; }
.roster-dialog::backdrop { background:#042d4c99; }.roster-dialog header { display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid #dfebf2; padding-bottom:14px; }
.roster-dialog h2 { font-size:20px; margin:0; }.roster-dialog h3 { color:#0068a9; font-size:21px; margin:20px 0; overflow-wrap:anywhere; }
.roster-dialog dl { display:grid; gap:0; margin:0 0 22px; }.roster-dialog dl>div { display:grid; grid-template-columns:170px minmax(0,1fr); gap:12px; padding:13px 0; border-bottom:1px solid #e5edf3; }
.roster-dialog dt { color:#5a7487; font-size:13px; }.roster-dialog dd { margin:0; line-height:1.6; overflow-wrap:anywhere; font-size:14px; }.roster-dialog [data-roster-error] { color:#a12f3f; }
@media(max-width:600px) { .roster-dialog { padding:18px; }.roster-dialog dl>div { grid-template-columns:1fr; gap:5px; }.roster-toolbar strong { font-size:22px; } }
.roster-group { margin:0 0 24px; border:1px solid #c8dce9; border-radius:10px; background:#fff; overflow:hidden; }
.roster-group-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 22px; border-bottom:1px solid #c8dce9; background:linear-gradient(100deg,#eaf5fc,#f7fbff); }
.roster-group-heading span { display:block; font-size:12px; color:#54758c; margin-bottom:6px; }
.roster-group-heading h2 { margin:0; color:#005f9d; font-size:22px; line-height:1.35; font-weight:600; }
.roster-group-heading p { margin:6px 0 0; color:#496c83; font-size:13px; line-height:1.5; }
.roster-group-count { flex:none; font-size:12px; font-weight:500; color:#1e628c; background:#fff; border:1px solid #c4ddeb; border-radius:20px; padding:7px 12px; }
.roster-group .roster-scroll { border:0; border-radius:0; }
.roster-group .roster-table { min-width:1200px; }
.roster-group .roster-table th:nth-child(3) { width:14%; }.roster-group .roster-table th:nth-child(4) { width:18%; }.roster-group .roster-table th:nth-child(5) { width:13%; }
.roster-workplace,.roster-position { line-height:1.65; overflow-wrap:anywhere; color:#35576e; }
.roster-group .roster-table td { font-size:13px; }
@media(max-width:600px) { .roster-group-heading { padding:16px; flex-wrap:wrap; gap:12px; }.roster-group-heading h2 { font-size:19px; } }
.registration-roster-screen > .registration-heading { width:fit-content; max-width:100%; padding:14px 22px; margin-bottom:12px; min-height:0; box-sizing:border-box; }
.registration-roster-screen > .registration-heading h1 { margin:0; font-size:28px; line-height:1.3; }
@media(max-width:600px) { .registration-roster-screen > .registration-heading { padding:12px 16px; }.registration-roster-screen > .registration-heading h1 { font-size:23px; } }
.roster-full-name { color:#234d69; font-size:13px; font-weight:500; line-height:1.65; }

.roster-email { min-width:150px; overflow-wrap:anywhere; color:#35576e; line-height:1.6; }
.roster-phone { min-width:125px; white-space:nowrap; color:#35576e; font-variant-numeric:tabular-nums; }

/* Give the private roster more room while keeping controls on one line. */
.main-content:has(.registration-roster-screen) { padding-inline:clamp(16px,2vw,36px); }
#lesson-content:has(.registration-roster-screen) { max-width:1600px; }
.registration-roster-screen { width:100%; max-width:none; }
.roster-table .roster-actions { flex-wrap:nowrap; }
.roster-table .registration-status { display:inline-block; white-space:nowrap; margin-top:0; }
.roster-table td:nth-last-child(-n+2) { white-space:nowrap; }
.roster-group .roster-table { min-width:1340px; }

.roster-email { white-space:nowrap; overflow-wrap:normal; }
.roster-email-line { display:block; width:clamp(170px,13vw,220px); height:21px; line-height:21px; white-space:nowrap; overflow:hidden; }
