/* Shining Speaking Stars Portal — clean, light, card-based look.
   Plain CSS only, no build step. Colours are generic neutrals;
   no third-party logo, text, image, or brand asset is copied here. */
*{box-sizing:border-box}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;margin:0;color:#111827;background:#f6f7f9;line-height:1.6}
.wrap{max-width:1080px;margin:0 auto;padding:0 20px}
.top{background:#ffffff;color:#111827;padding:16px 0;border-bottom:1px solid #e5e7eb}
.top a{color:#111827;text-decoration:none}
.top a:hover{text-decoration:underline}
.brand{font-weight:800;font-size:20px;letter-spacing:-0.02em;color:#111827}
.top nav{margin-top:10px;display:flex;gap:16px;flex-wrap:wrap;align-items:center}
.top nav a{color:#4b5563;font-weight:600}
.top nav a:hover{color:#111827}
.who{color:#6b7280;font-weight:500}
main{padding:32px 20px 56px}
h1{font-size:30px;line-height:1.2;letter-spacing:-0.02em;margin:0 0 8px;color:#111827}
h2{font-size:20px;line-height:1.3;letter-spacing:-0.01em;margin:24px 0 8px;color:#111827}
h3{font-size:17px;margin:20px 0 6px;color:#111827}
p{margin:8px 0}
.card{background:#ffffff;border:1px solid #e5e7eb;border-radius:16px;padding:24px;margin:16px 0;box-shadow:0 1px 3px rgba(17,24,39,0.06),0 8px 24px rgba(17,24,39,0.04)}
.card h2:first-child{margin-top:0}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.badge{display:inline-block;background:#f3f4f6;color:#374151;border:1px solid #e5e7eb;border-radius:999px;padding:3px 11px;font-size:13px;font-weight:600}
.badge.full{background:#fee2e2;color:#991b1b;border-color:#fecaca}
.badge.ok{background:#e6f4ea;color:#137333;border-color:#bbf7d0}
.flash{background:#fffbeb;border:1px solid #fde68a;color:#92400e;padding:12px 14px;border-radius:12px;margin:16px 0}
label{display:block;margin:12px 0 4px;font-weight:600;color:#111827}
input,select,textarea{width:100%;padding:11px 12px;border:1px solid #d1d5db;border-radius:12px;font-size:16px;background:#ffffff;color:#111827}
input:focus,select:focus,textarea:focus{outline:none;border-color:#111827;box-shadow:0 0 0 3px rgba(17,24,39,0.10)}
button,.btn{background:#111827;color:#ffffff;border:0;padding:11px 18px;border-radius:12px;cursor:pointer;font-size:16px;font-weight:600;text-decoration:none;display:inline-block}
button:hover,.btn:hover{background:#1f2937}
button.secondary{background:#ffffff;color:#111827;border:1px solid #d1d5db}
.btn.small,button.small{padding:7px 12px;font-size:14px;border-radius:10px}
.google-btn{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;background:#ffffff;color:#1f2937;border:1px solid #e5e7eb;border-radius:999px;padding:12px 20px;font-weight:500;font-size:17px;text-decoration:none;box-shadow:0 1px 3px rgba(0,0,0,0.12),0 1px 2px rgba(0,0,0,0.08)}
.google-btn:hover{background:#f9fafb;box-shadow:0 2px 6px rgba(0,0,0,0.14)}
.google-mark{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:0 0 24px}
.google-mark svg{display:block;width:24px;height:24px;max-width:24px;max-height:24px}
.google-btn svg{width:24px;height:24px;max-width:24px;max-height:24px;flex:0 0 24px}
.or-divider{display:flex;align-items:center;gap:12px;color:#6b7280;font-size:14px;font-weight:600;margin:18px 0}
.or-divider::before,.or-divider::after{content:"";flex:1;height:1px;background:#e5e7eb}
table{width:100%;border-collapse:collapse;background:#ffffff}
th,td{border:1px solid #e5e7eb;padding:10px 12px;text-align:left;vertical-align:top}
th{background:#f9fafb;color:#374151;font-size:14px}
tr:hover td{background:#f9fafb}
/* Coach-table fix — kept intact: wide tables scroll sideways instead of squeezing the last column. */
.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:8px}
.tablewrap table{min-width:980px}
.tablewrap th,.tablewrap td{white-space:nowrap}
.tablewrap td:last-child{white-space:normal;min-width:300px}
.tablewrap td:last-child form{margin:6px 0}
.tablewrap td:last-child form.inline{display:flex;gap:6px;align-items:center}
.tablewrap td:last-child form.inline select{flex:1;min-width:160px;width:auto}
.tablewrap td:last-child input{width:100%}

/* Roster only: fixed row height, and the table actually fits the page.
   Previous attempt failed because table-layout:auto lets cells expand
   past their max-width, so the total still exceeded the page width and
   the last column ran off-screen. Fixed layout enforces the widths
   below, so ellipsis/wrapping now works as intended.
   Columns after combining Location + Time zone: Child, Grade, Level,
   Location / Time zone, Parent, Email / Phone, Promote / Feedback.
   Row height is set by the last column (two short form rows), other
   cells are at most two lines, so no row grows taller than that. */
.tablewrap.roster{overflow-x:auto}
.tablewrap.roster table{min-width:0;width:100%;table-layout:fixed;font-size:14px;line-height:1.4}
.tablewrap.roster th{font-size:13px;padding:8px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tablewrap.roster td{padding:8px 10px;vertical-align:middle}
.tablewrap.roster th:nth-child(1),.tablewrap.roster td:nth-child(1){width:14%}
.tablewrap.roster th:nth-child(2),.tablewrap.roster td:nth-child(2){width:11%}
.tablewrap.roster th:nth-child(3),.tablewrap.roster td:nth-child(3){width:13%}
.tablewrap.roster th:nth-child(4),.tablewrap.roster td:nth-child(4){width:12%}
.tablewrap.roster th:nth-child(5),.tablewrap.roster td:nth-child(5){width:11%}
.tablewrap.roster th:nth-child(6),.tablewrap.roster td:nth-child(6){width:18%}
.tablewrap.roster th:nth-child(7),.tablewrap.roster td:nth-child(7){width:216px;min-width:216px;max-width:216px;padding:8px 6px}
.tablewrap.roster td:nth-child(1),.tablewrap.roster td:nth-child(2),.tablewrap.roster td:nth-child(5){white-space:normal;overflow-wrap:anywhere}
/* Up to two lines, then ellipsis. The clamp lives on an inner span so the
   table cell itself stays a table cell and the fixed column widths hold;
   the full value is still on the td title attribute for hover. */
.tablewrap.roster .clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;line-height:1.4}
.tablewrap.roster td:nth-child(3),.tablewrap.roster td:nth-child(4),.tablewrap.roster td:nth-child(6){white-space:normal;overflow-wrap:anywhere}
.tablewrap.roster td:nth-child(6) .nowrap{white-space:nowrap}
.tablewrap.roster th:nth-child(4){white-space:normal;overflow-wrap:anywhere;line-height:1.3}
.tablewrap.roster td:last-child{white-space:normal;overflow:visible;text-overflow:clip}
.tablewrap.roster td:last-child form{margin:4px 0;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tablewrap.roster td:last-child form.inline select{flex:0 0 120px;min-width:0;width:120px}
.tablewrap.roster td:last-child select{font-size:12px;padding:6px 7px}
.tablewrap.roster td:last-child input{flex:0 0 120px;min-width:0;width:120px;font-size:12px;padding:6px 7px}
.tablewrap.roster td:last-child button{flex:0 0 78px;width:78px;padding:6px 8px;font-size:12px;white-space:nowrap;text-align:center;overflow:hidden}
@media(max-width:640px){
  /* On a phone the fixed widths would squeeze the first columns to
     unreadable slivers, so revert to the scrolling table there. */
  .tablewrap.roster table{min-width:900px;table-layout:auto}
}
.muted{color:#6b7280;font-size:14px}
.foot{color:#6b7280;font-size:13px;padding-bottom:32px}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}
.tabs a{background:#ffffff;border:1px solid #e5e7eb;border-radius:999px;padding:7px 14px;text-decoration:none;color:#374151;font-weight:600}
.tabs a:hover{border-color:#9ca3af}
.tabs a.active{background:#111827;color:#ffffff;border-color:#111827}
form.inline{display:inline}
form.inline select{width:auto}
@media(max-width:640px){
  h1{font-size:26px}
  .wrap{padding:0 14px}
  main{padding:24px 14px 40px}
  .card{padding:18px}
  .top nav{gap:12px}
}

/* Payments by Level & Time — collapsible class groups, no JavaScript.
   Green = every registered student in the group is Paid.
   Amber = at least one student is still Pending. Text status is always
   shown alongside the colour, so colour is never the only signal. */
details.pay-all,details.pay-pending{border-radius:16px;padding:18px 24px;margin:16px 0}
details.pay-all{background:#dcfce7;border:1px solid #86efac}
details.pay-pending{background:#fef3c7;border:1px solid #fcd34d}
details.pay-all summary,details.pay-pending summary{cursor:pointer;font-weight:700;color:#111827}
details.pay-all summary::marker,details.pay-pending summary::marker{color:#374151}
td.pay-status-paid{background:#dcfce7}
td.pay-status-pending{background:#fef3c7}
tr:hover td.pay-status-paid{background:#bbf7d0}
tr:hover td.pay-status-pending{background:#fde68a}
