/* SdSchool parent portal: phone first, the SdSchool colours (blue #0a87ff / #0060c8, green #8ed61e), Poppins */
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url(../assets/fonts/poppins/poppins-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url(../assets/fonts/poppins/poppins-500.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-display: swap; src: url(../assets/fonts/poppins/poppins-600.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url(../assets/fonts/poppins/poppins-700.woff2) format('woff2'); }
:root { --blue: #0a87ff; --blue2: #0060c8; --soft: #eaf4ff; --green: #8ed61e; --green-ink: #4f9a0a; --ink: #111318; --muted: #6b7086; --line: #e3e5ef; --page: #f5f6fb; --red: #e5484d; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Poppins', 'Segoe UI', Roboto, sans-serif; color: var(--ink); background: var(--page); font-size: 14px; }
a { color: var(--blue2); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: #fff; border-top: 4px solid var(--green); box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 34px; height: 34px; flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand b { font-size: 14px; color: var(--blue2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { font-size: 11px; color: var(--green-ink); font-weight: 500; }
.signout { font-size: 13px; text-decoration: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); white-space: nowrap; }
.wrap { max-width: 860px; margin: 0 auto; padding: 16px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 20px 16px 28px; }
.foot span { font-size: 11px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; box-shadow: 0 4px 16px rgba(6, 42, 94, .05); }
.card h2 { margin: 0 0 12px; font-size: 16px; }
.card h3 { margin: 14px 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.alert { padding: 10px 12px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
.alert.err { background: #fff1f1; color: #9b1c1f; border: 1px solid #ffd0d1; }
.alert.ok { background: #f1fae4; color: #3d7a07; border: 1px solid #d8efb5; }
.alert.info { background: var(--soft); color: var(--blue2); border: 1px solid #cfe5ff; }
/* sign-in */
.signin { max-width: 380px; margin: 24px auto; }
.signin .logo { display: block; width: 210px; margin: 4px auto 14px; }
.signin h1 { font-size: 20px; margin: 0 0 4px; }
label { display: block; font-size: 12.5px; font-weight: 500; margin: 12px 0 5px; }
input[type=tel], input[type=text] { width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: #fafbff; }
input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10, 135, 255, .13); background: #fff; }
input.code { letter-spacing: 8px; text-align: center; font-size: 22px; font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 16px; padding: 11px; border: 0; border-radius: 10px; font: inherit; font-weight: 600; font-size: 15px; color: #fff; cursor: pointer; background: linear-gradient(135deg, var(--blue), var(--blue2)); box-shadow: 0 6px 14px rgba(10, 135, 255, .3); text-decoration: none; }
.btn:disabled { opacity: .7; }
.btn.light { background: #fff; color: var(--blue2); border: 1px solid var(--line); box-shadow: none; }
.linkbtn { background: none; border: 0; color: var(--blue2); font: inherit; font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline; }
/* children and tabs */
.kids { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; }
.kid { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); }
.kid.on { border-color: var(--blue); background: var(--soft); }
.kid .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--blue2)); color: #fff; font-weight: 600; font-size: 12px; }
.kid b { font-size: 13px; display: block; }
.kid small { font-size: 11px; color: var(--muted); }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; }
.tabs a { flex: none; padding: 8px 14px; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 13px; background: #fff; border: 1px solid var(--line); }
.tabs a.on { color: #fff; background: var(--blue2); border-color: var(--blue2); }
/* figures */
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.fig { border-radius: 12px; padding: 12px 14px; color: #fff; }
.fig small { display: block; font-size: 11.5px; opacity: .9; }
.fig b { display: block; font-size: 19px; margin-top: 2px; }
.fig.blue { background: linear-gradient(135deg, #1a8fff, #0060c8); }
.fig.green { background: linear-gradient(135deg, #8ed61e, #4f9a0a); }
.fig.black { background: linear-gradient(135deg, #2b2e35, #0d0e11); }
.fig.red { background: linear-gradient(135deg, #f0656a, #c62f35); }
.rows { width: 100%; border-collapse: collapse; font-size: 13px; }
.rows th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.rows td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rows .r { text-align: right; white-space: nowrap; }
.rows tfoot td { font-weight: 600; border-bottom: 0; }
.grade { display: inline-block; min-width: 26px; text-align: center; padding: 2px 6px; border-radius: 6px; font-weight: 600; font-size: 12px; background: var(--soft); color: var(--blue2); }
.grade.g-A { background: #e6f6d5; color: #3d7a07; } .grade.g-F { background: #fff1f1; color: #9b1c1f; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 10px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.pill.ok { background: #e6f6d5; color: #3d7a07; } .pill.warn { background: #fff4d6; color: #8a5a00; } .pill.bad { background: #fff1f1; color: #9b1c1f; }
.scroll { overflow-x: auto; }
@media (max-width: 480px) { .kv { grid-template-columns: 105px 1fr; } .wrap { padding: 12px; } }
@media print { .top .signout, .tabs, .kids, .noprint { display: none !important; } body { background: #fff; } .card { box-shadow: none; } }
