:root {
    --smp-bg: #f4f7fb;
    --smp-surface: #ffffff;
    --smp-text: #172033;
    --smp-muted: #6d778c;
    --smp-border: #e4e9f1;
    --smp-primary: #175cd3;
    --smp-primary-dark: #0f4db5;
    --smp-nav: #111827;
    --smp-nav-muted: #9aa4b5;
    --smp-success: #067647;
    --smp-success-bg: #ecfdf3;
    --smp-danger: #b42318;
    --smp-danger-bg: #fef3f2;
    --smp-info-bg: #eff8ff;
    --smp-shadow: 0 18px 48px rgba(16, 24, 40, .08);
    --smp-radius: 16px;
}


html.smp-standalone { margin-top: 0 !important; padding-top: 0 !important; }
html.smp-standalone #wpadminbar { display: none !important; }

.smp-app-body { margin: 0 !important; background: var(--smp-bg); color: var(--smp-text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.smp-app-body *, .smp-app-body *::before, .smp-app-body *::after { box-sizing: border-box; }
.smp-app-body a { text-decoration: none; }

.smp-login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 46%) 1fr; background: #fff; }
.smp-login-panel { display: flex; align-items: center; justify-content: center; padding: 52px; }
.smp-login-card { width: min(100%, 430px); }
.smp-login-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 38px; }
.smp-login-brand h1 { margin: 0; color: var(--smp-text); font-size: 25px; line-height: 1.2; }
.smp-login-brand p { margin: 5px 0 0; color: var(--smp-muted); font-size: 14px; }
.smp-brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #175cd3, #7f56d9); color: #fff; font-weight: 800; font-size: 22px; box-shadow: 0 10px 24px rgba(23, 92, 211, .25); }
.smp-brand-mark-small { width: 38px; height: 38px; border-radius: 11px; font-size: 17px; flex: 0 0 auto; }
.smp-login-form { display: grid; gap: 10px; }
.smp-login-form label, .smp-field label { font-weight: 650; font-size: 13px; color: #344054; }
.smp-login-form input[type="text"], .smp-login-form input[type="password"], .smp-field input, .smp-field select, .smp-field textarea { width: 100%; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; color: var(--smp-text); padding: 11px 13px; min-height: 44px; font: inherit; outline: none; box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.smp-field textarea { min-height: 110px; resize: vertical; }
.smp-login-form input:focus, .smp-field input:focus, .smp-field select:focus, .smp-field textarea:focus { border-color: #84adff; box-shadow: 0 0 0 4px rgba(23,92,211,.08); }
.smp-checkbox-row { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 500 !important; margin: 4px 0 8px; cursor: pointer; }
.smp-checkbox-row input { width: 17px !important; height: 17px !important; min-height: 0 !important; }
.smp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; border: 0; border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; }
.smp-btn-primary { color: #fff !important; background: var(--smp-primary); }
.smp-btn-primary:hover { background: var(--smp-primary-dark); }
.smp-btn-secondary { color: #344054 !important; background: #fff; border: 1px solid #d0d5dd; }
.smp-btn-block { width: 100%; min-height: 47px; font-size: 14px; }
.smp-forgot-link { display: inline-block; margin-top: 18px; color: var(--smp-primary); font-weight: 650; font-size: 13px; }
.smp-login-art { position: relative; overflow: hidden; min-height: 100vh; display: flex; align-items: flex-end; padding: 70px; color: #fff; background: radial-gradient(circle at 20% 20%, rgba(132,173,255,.35), transparent 34%), radial-gradient(circle at 80% 30%, rgba(183,146,255,.28), transparent 30%), linear-gradient(145deg, #0b1220, #172b4d 55%, #102a56); }
.smp-login-art::before, .smp-login-art::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.smp-login-art::before { width: 620px; height: 620px; top: -170px; right: -180px; }
.smp-login-art::after { width: 360px; height: 360px; top: 80px; right: 70px; }
.smp-login-art-content { position: relative; z-index: 1; max-width: 640px; }
.smp-login-art h2 { margin: 14px 0 16px; font-size: clamp(36px, 4.5vw, 64px); line-height: 1.02; color: #fff; letter-spacing: -.03em; }
.smp-login-art p { max-width: 560px; color: rgba(255,255,255,.75); font-size: 17px; line-height: 1.7; }
.smp-eyebrow { display: inline-block; font-size: 11px; letter-spacing: .12em; font-weight: 800; color: var(--smp-primary); }
.smp-login-art .smp-eyebrow { color: #b2ccff; }

.smp-app-layout { min-height: 100vh; display: grid; grid-template-columns: 262px minmax(0, 1fr); }
.smp-sidebar { position: fixed; inset: 0 auto 0 0; width: 262px; background: var(--smp-nav); color: #fff; padding: 22px 14px; display: flex; flex-direction: column; z-index: 50; }
.smp-sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 21px; border-bottom: 1px solid rgba(255,255,255,.08); }
.smp-sidebar-brand strong { display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: #fff; }
.smp-sidebar-brand span { display: block; margin-top: 3px; color: var(--smp-nav-muted); font-size: 11px; }
.smp-sidebar-nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; padding: 18px 0; }
.smp-nav-item { display: flex; align-items: center; gap: 10px; color: #c4cbd6 !important; padding: 9px 11px; border-radius: 9px; font-size: 13px; font-weight: 600; transition: .15s ease; }
.smp-nav-item:hover { color: #fff !important; background: rgba(255,255,255,.055); }
.smp-nav-item.is-active { color: #fff !important; background: #1f3b6d; box-shadow: inset 3px 0 0 #84adff; }
.smp-nav-icon { width: 21px; text-align: center; font-size: 15px; opacity: .92; }
.smp-sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding: 16px 7px 0; }
.smp-user-mini { display: flex; align-items: center; gap: 9px; min-width: 0; }
.smp-user-mini div { min-width: 0; }
.smp-user-mini strong, .smp-user-mini span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smp-user-mini strong { color: #fff; font-size: 12px; }
.smp-user-mini div span { color: var(--smp-nav-muted); font-size: 10px; margin-top: 2px; }
.smp-avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #344054; color: #fff; font-weight: 800; font-size: 12px; }
.smp-logout-link { display: inline-block; margin-top: 12px; color: #fda29b !important; font-size: 11px; font-weight: 700; }
.smp-main { grid-column: 2; min-width: 0; }
.smp-topbar { height: 68px; position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--smp-border); }
.smp-topbar > div { display: flex; align-items: center; gap: 10px; }
.smp-topbar-school { font-size: 13px; font-weight: 700; color: #344054; }
.smp-topbar-user { font-size: 12px; font-weight: 650; color: #475467; }
.smp-role-pill { background: #eef4ff; color: #3538cd; border-radius: 999px; padding: 5px 8px; font-size: 10px; }
.smp-mobile-menu-button { display: none; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.smp-content { padding: 30px; max-width: 1500px; margin: 0 auto; }
.smp-page-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.smp-page-heading h1 { margin: 5px 0 6px; font-size: 29px; line-height: 1.15; letter-spacing: -.02em; color: var(--smp-text); }
.smp-page-heading p { margin: 0; color: var(--smp-muted); font-size: 13px; }
.smp-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.smp-stat-card { min-height: 155px; padding: 20px; border: 1px solid var(--smp-border); border-radius: var(--smp-radius); background: var(--smp-surface); box-shadow: 0 3px 14px rgba(16,24,40,.03); display: flex; flex-direction: column; }
.smp-stat-card-wide { grid-column: span 2; }
.smp-stat-card > span { color: var(--smp-muted); font-size: 12px; font-weight: 650; }
.smp-stat-card > strong { margin: 12px 0 auto; font-size: 34px; line-height: 1; color: var(--smp-text); }
.smp-stat-card > strong.smp-stat-text { font-size: 22px; }
.smp-stat-card a { margin-top: 15px; color: var(--smp-primary); font-size: 11px; font-weight: 700; }
.smp-stat-card small { margin-top: 8px; color: var(--smp-muted); }
.smp-panel { margin-bottom: 20px; padding: 22px; border: 1px solid var(--smp-border); border-radius: var(--smp-radius); background: var(--smp-surface); box-shadow: 0 3px 14px rgba(16,24,40,.03); }
.smp-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.smp-panel-heading h2 { margin: 0; color: var(--smp-text); font-size: 16px; }
.smp-panel-heading p { margin: 5px 0 0; color: var(--smp-muted); font-size: 11px; }
.smp-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.smp-feature-grid > div { padding: 16px; border: 1px solid var(--smp-border); border-radius: 12px; background: #fafbfc; }
.smp-feature-grid strong, .smp-feature-grid span { display: block; }
.smp-feature-grid strong { color: #344054; font-size: 12px; }
.smp-feature-grid span { color: var(--smp-muted); font-size: 11px; line-height: 1.55; margin-top: 6px; }
.smp-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.smp-field { display: flex; flex-direction: column; gap: 7px; }
.smp-field-span-2 { grid-column: span 2; }
.smp-field-check { justify-content: end; }
.smp-form-actions { display: flex; gap: 10px; padding-top: 3px; }
.smp-filter-bar { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
.smp-filter-bar input[type="search"], .smp-filter-bar select { min-height: 42px; border: 1px solid #d0d5dd; border-radius: 10px; background: #fff; color: var(--smp-text); padding: 9px 12px; font: inherit; outline: none; }
.smp-filter-bar input[type="search"]:focus, .smp-filter-bar select:focus { border-color: #84adff; box-shadow: 0 0 0 4px rgba(23,92,211,.08); }
.smp-filter-grow { flex: 1 1 260px; }
.smp-filter-grow input { width: 100%; }
.smp-code { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 7px; background: #f2f4f7; color: #475467; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 10px; font-weight: 700; }
.smp-table-wrap { overflow-x: auto; border: 1px solid var(--smp-border); border-radius: 12px; }
.smp-table { width: 100%; border-collapse: collapse; min-width: 760px; background: #fff; }
.smp-table th, .smp-table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid #eef1f5; vertical-align: middle; font-size: 11px; }
.smp-table th { color: #667085; background: #f9fafb; font-size: 10px; letter-spacing: .03em; text-transform: uppercase; font-weight: 800; }
.smp-table tbody tr:last-child td { border-bottom: 0; }
.smp-table td { color: #475467; }
.smp-table td strong { color: #344054; }
.smp-actions { display: flex; align-items: center; gap: 10px; }
.smp-actions a, .smp-link-button { color: var(--smp-primary); background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }
.smp-actions form { margin: 0; }
.smp-link-danger { color: var(--smp-danger); }
.smp-empty-cell { text-align: center !important; padding: 28px !important; color: var(--smp-muted) !important; }
.smp-status { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 750; }
.smp-status-active, .smp-status-current { background: var(--smp-success-bg); color: var(--smp-success); }
.smp-status-inactive { background: #f2f4f7; color: #667085; }
.smp-pagination { display: flex; gap: 6px; margin-top: 16px; }
.smp-pagination a { min-width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--smp-border); border-radius: 8px; color: #475467; font-size: 11px; font-weight: 700; background: #fff; }
.smp-pagination a.is-current { border-color: var(--smp-primary); color: #fff; background: var(--smp-primary); }
.smp-alert { padding: 12px 14px; border-radius: 10px; margin: 0 0 17px; font-size: 12px; font-weight: 600; border: 1px solid transparent; }
.smp-alert-success { background: var(--smp-success-bg); color: var(--smp-success); border-color: #abefc6; }
.smp-alert-error { background: var(--smp-danger-bg); color: var(--smp-danger); border-color: #fecdca; }
.smp-alert-info { background: var(--smp-info-bg); color: #175cd3; border-color: #b2ddff; }
.smp-empty-panel { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.smp-empty-panel h2 { margin: 12px 0 6px; font-size: 18px; }
.smp-empty-panel p { max-width: 600px; margin: 0; color: var(--smp-muted); line-height: 1.65; font-size: 12px; }
.smp-empty-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; color: var(--smp-primary); background: #eef4ff; font-size: 24px; }

@media (max-width: 1050px) {
    .smp-login-screen { grid-template-columns: 1fr; }
    .smp-login-art { display: none; }
    .smp-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .smp-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .smp-app-layout { display: block; }
    .smp-sidebar { transform: translateX(-102%); transition: transform .22s ease; box-shadow: 20px 0 50px rgba(16,24,40,.18); }
    .smp-menu-open .smp-sidebar { transform: translateX(0); }
    .smp-main { min-height: 100vh; }
    .smp-mobile-menu-button { display: inline-block; }
    .smp-content { padding: 22px 16px; }
    .smp-topbar { padding: 0 16px; }
}

@media (max-width: 600px) {
    .smp-login-panel { padding: 28px 20px; }
    .smp-login-brand { margin-bottom: 30px; }
    .smp-stat-grid, .smp-feature-grid, .smp-form-grid { grid-template-columns: 1fr; }
    .smp-stat-card-wide, .smp-field-span-2 { grid-column: auto; }
    .smp-topbar-user > span:first-child { display: none; }
    .smp-page-heading h1 { font-size: 25px; }
    .smp-panel { padding: 17px; }
}

/* Phase 3 — People management */
.smp-field small { color: var(--smp-muted); font-size: 10px; line-height: 1.5; }
.smp-multiselect { min-height: 154px !important; padding: 7px !important; }
.smp-multiselect option { padding: 7px 8px; border-radius: 6px; }
.smp-account-box { border: 1px solid #dbe5f5; border-radius: 13px; background: #f8fbff; padding: 16px; display: grid; gap: 14px; }
.smp-account-box-head strong, .smp-account-box-head span { display: block; }
.smp-account-box-head strong { color: #344054; font-size: 12px; }
.smp-account-box-head span { color: var(--smp-muted); font-size: 10px; margin-top: 4px; }
.smp-account-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.smp-account-status { width: fit-content; padding: 7px 10px; border-radius: 8px; background: #ecfdf3; color: #067647; font-size: 10px; font-weight: 750; }
.smp-table-sub { display: block; margin-top: 4px; color: var(--smp-muted); font-size: 9px; font-weight: 500; }

@media (max-width: 600px) {
    .smp-account-grid { grid-template-columns: 1fr; }
}

.smp-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.smp-profile-grid > div { padding: 14px; border: 1px solid var(--smp-border); border-radius: 11px; background: #fafbfc; }
.smp-profile-grid span, .smp-profile-grid strong { display: block; }
.smp-profile-grid span { color: var(--smp-muted); font-size: 10px; font-weight: 650; margin-bottom: 5px; }
.smp-profile-grid strong { color: #344054; font-size: 12px; line-height: 1.55; }
.smp-profile-span { grid-column: span 2; }
.smp-profile-columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.smp-profile-columns > div { padding: 16px; border: 1px solid var(--smp-border); border-radius: 12px; background: #fafbfc; }
.smp-profile-columns h3 { margin: 0 0 10px; font-size: 12px; color: #344054; }
.smp-profile-columns p { margin: 0; color: var(--smp-muted); font-size: 11px; }
.smp-chip-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.smp-chip { display: inline-flex; padding: 6px 8px; border-radius: 8px; background: #eef4ff; color: #3538cd; font-size: 10px; font-weight: 700; }

@media (max-width: 600px) {
    .smp-profile-grid, .smp-profile-columns { grid-template-columns: 1fr; }
    .smp-profile-span { grid-column: auto; }
}

/* Phase 4 — Online admissions */
.smp-page-heading-actions { display: flex; align-items: flex-start; gap: 10px; }
.smp-btn-danger { color: var(--smp-danger) !important; border-color: #fda29b !important; }
.smp-muted-text { color: var(--smp-muted); font-size: 11px; }
.smp-status-pending { background: #fff7ed; color: #b54708; }
.smp-status-under_review { background: #eff8ff; color: #175cd3; }
.smp-status-approved { background: var(--smp-success-bg); color: var(--smp-success); }
.smp-status-rejected { background: var(--smp-danger-bg); color: var(--smp-danger); }
.smp-status-waitlisted { background: #f4f3ff; color: #5925dc; }
.smp-status-converted { background: #ecfdf3; color: #027a48; }
.smp-admissions-table { min-width: 1120px; }
.smp-admission-detail-grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(420px, 1.15fr); gap: 24px; }
.smp-admission-summary { border-right: 1px solid var(--smp-border); padding-right: 24px; }
.smp-admission-summary h3, .smp-admission-documents h3 { margin: 0 0 13px; color: #344054; font-size: 13px; }
.smp-admission-summary h3:not(:first-child) { margin-top: 24px; }
.smp-admission-summary dl { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.smp-admission-summary dl > div { padding: 11px 12px; border: 1px solid var(--smp-border); border-radius: 10px; background: #fafbfc; }
.smp-admission-summary dt { color: var(--smp-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.smp-admission-summary dd { margin: 5px 0 0; color: #344054; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.smp-admission-summary .smp-admission-dl-wide { grid-column: span 2; }
.smp-admission-review-form { margin-bottom: 20px; }
.smp-admission-documents { padding-top: 18px; border-top: 1px solid var(--smp-border); }
.smp-document-list { display: grid; gap: 8px; }
.smp-document-list a { display: flex; justify-content: space-between; gap: 18px; padding: 11px 12px; border: 1px solid var(--smp-border); border-radius: 10px; background: #fafbfc; }
.smp-document-list strong { color: #344054; font-size: 10px; }
.smp-document-list span { color: var(--smp-muted); font-size: 9px; text-align: right; }
.smp-admission-actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--smp-border); }

.smp-admission-body { min-height: 100vh; background: #f5f7fb; }
.smp-admission-public-screen { min-height: 100vh; padding: 42px 18px; }
.smp-admission-public-card { width: min(100%, 980px); margin: 0 auto; padding: 30px; background: #fff; border: 1px solid var(--smp-border); border-radius: 20px; box-shadow: var(--smp-shadow); }
.smp-admission-public-head { display: flex; align-items: flex-start; gap: 16px; padding-bottom: 24px; margin-bottom: 22px; border-bottom: 1px solid var(--smp-border); }
.smp-admission-public-head h1 { margin: 5px 0 7px; color: var(--smp-text); font-size: 27px; line-height: 1.15; }
.smp-admission-public-head p { margin: 0; max-width: 700px; color: var(--smp-muted); font-size: 12px; line-height: 1.65; }
.smp-form-section-title { padding: 8px 0 2px; border-bottom: 1px solid #eef1f5; }
.smp-form-section-title h2 { margin: 0 0 5px; color: #344054; font-size: 15px; }
.smp-form-section-title p { margin: 0 0 7px; color: var(--smp-muted); font-size: 10px; line-height: 1.5; }
.smp-public-admission-form input[type="file"] { padding: 9px; background: #fafbfc; }
.smp-admission-submit { min-width: 210px; min-height: 46px; }
.smp-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.smp-admission-success-box { display: flex; gap: 14px; align-items: flex-start; padding: 17px; margin-bottom: 22px; border: 1px solid #abefc6; border-radius: 13px; background: #ecfdf3; }
.smp-admission-success-box > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #12b76a; color: #fff; font-weight: 800; }
.smp-admission-success-box h2 { margin: 0 0 4px; color: #067647; font-size: 15px; }
.smp-admission-success-box p { margin: 0 0 7px; color: #047857; font-size: 11px; }
.smp-admission-success-box strong { display: inline-block; padding: 5px 8px; border-radius: 7px; background: #fff; color: #05603a; font-size: 12px; letter-spacing: .03em; }

@media (max-width: 900px) {
    .smp-admission-detail-grid { grid-template-columns: 1fr; }
    .smp-admission-summary { border-right: 0; border-bottom: 1px solid var(--smp-border); padding: 0 0 22px; }
}

@media (max-width: 600px) {
    .smp-page-heading { flex-direction: column; }
    .smp-admission-public-screen { padding: 16px 10px; }
    .smp-admission-public-card { padding: 18px; border-radius: 14px; }
    .smp-admission-public-head h1 { font-size: 22px; }
    .smp-admission-summary dl { grid-template-columns: 1fr; }
    .smp-admission-summary .smp-admission-dl-wide { grid-column: auto; }
    .smp-document-list a { flex-direction: column; gap: 5px; }
    .smp-document-list span { text-align: left; }
}

/* Phase 5 — Attendance, routine and homework */
.smp-subnav { display:flex; gap:7px; flex-wrap:wrap; margin:0 0 18px; padding:6px; width:fit-content; border:1px solid var(--smp-border); border-radius:12px; background:#fff; }
.smp-subnav a { padding:8px 12px; border-radius:8px; color:#475467; font-size:11px; font-weight:750; }
.smp-subnav a.is-active { background:#eef4ff; color:var(--smp-primary); }
.smp-attendance-table { min-width:760px; }
.smp-attendance-table input, .smp-attendance-table select { width:100%; min-width:130px; border:1px solid #d0d5dd; border-radius:8px; padding:8px 9px; background:#fff; font:inherit; font-size:11px; }
.smp-attendance-save { margin-top:16px; }
.smp-attendance-present { background:#ecfdf3; color:#067647; }
.smp-attendance-absent { background:#fef3f2; color:#b42318; }
.smp-attendance-late { background:#fff7ed; color:#b54708; }
.smp-attendance-leave { background:#f4f3ff; color:#5925dc; }
.smp-routine-days { display:grid; gap:16px; }
.smp-routine-day { border:1px solid var(--smp-border); border-radius:13px; overflow:hidden; background:#fff; }
.smp-routine-day > h3 { margin:0; padding:12px 15px; background:#f8fafc; border-bottom:1px solid var(--smp-border); font-size:12px; color:#344054; }
.smp-routine-day > .smp-muted-text { padding:0 15px 14px; }
.smp-routine-day .smp-table-wrap { border:0; border-radius:0; }
.smp-homework-detail { border-color:#c7d7fe; }
.smp-homework-instructions { padding:16px; border:1px solid var(--smp-border); border-radius:11px; background:#fafbfc; color:#344054; font-size:12px; line-height:1.75; }
.smp-homework-meta { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin:14px 0 0; color:var(--smp-muted); font-size:10px; font-weight:650; }
.smp-homework-meta a { color:var(--smp-primary); }
.smp-homework-submit-box { display:grid; gap:14px; margin-top:18px; padding-top:18px; border-top:1px solid var(--smp-border); }
.smp-homework-table { min-width:1050px; }
.smp-homework-submission-list { display:grid; gap:13px; }
.smp-submission-card { padding:17px; border:1px solid var(--smp-border); border-radius:12px; background:#fafbfc; }
.smp-submission-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:12px; }
.smp-submission-card-head strong, .smp-submission-card-head span { display:block; }
.smp-submission-card-head strong { color:#344054; font-size:12px; }
.smp-submission-card-head div > span { margin-top:3px; color:var(--smp-muted); font-size:9px; }
.smp-submission-card > p { margin:0 0 12px; color:#475467; font-size:11px; line-height:1.65; }
.smp-review-form { display:grid; grid-template-columns:minmax(0,1fr) 180px auto; gap:10px; align-items:end; margin-top:14px; padding-top:14px; border-top:1px solid var(--smp-border); }
.smp-status-submitted { background:#eff8ff; color:#175cd3; }
.smp-status-late { background:#fff7ed; color:#b54708; }
.smp-status-reviewed { background:#ecfdf3; color:#067647; }

@media (max-width: 800px) {
    .smp-review-form { grid-template-columns:1fr; }
}

@media print {
    .smp-sidebar, .smp-topbar, .smp-no-print, .smp-page-heading-actions, .smp-actions { display:none !important; }
    .smp-app-layout { display:block !important; }
    .smp-main { display:block !important; }
    .smp-content { max-width:none !important; padding:0 !important; }
    .smp-panel { box-shadow:none !important; border:0 !important; padding:0 !important; }
    .smp-print-panel { display:block !important; }
    .smp-routine-day { break-inside:avoid; margin-bottom:12px; }
}

/* Phase 6 — Exams, marks, grades and results */
.smp-exam-table { min-width: 1050px; }
.smp-exam-schedule-table { min-width: 980px; }
.smp-marks-table { min-width: 820px; }
.smp-marks-table input[type="number"], .smp-marks-table input[type="text"] { width:100%; min-width:110px; border:1px solid #d0d5dd; border-radius:8px; padding:8px 9px; background:#fff; font:inherit; font-size:11px; }
.smp-result-table { min-width: 1040px; }
.smp-report-card { border: 1px solid #c7d7fe; }
.smp-report-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:18px; padding-bottom:16px; border-bottom:1px solid var(--smp-border); }
.smp-report-header h2 { margin:5px 0 0; font-size:22px; color:#101828; }
.smp-report-status { padding:8px 12px; border-radius:999px; font-size:11px; font-weight:800; }
.smp-report-status.passed { background:#ecfdf3; color:#067647; }
.smp-report-status.failed { background:#fef3f2; color:#b42318; }
.smp-report-status.pending { background:#f2f4f7; color:#475467; }
.smp-report-meta { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.smp-report-meta > div, .smp-result-summary > div { padding:12px 13px; border:1px solid var(--smp-border); border-radius:10px; background:#fafbfc; }
.smp-report-meta span, .smp-result-summary span { display:block; margin-bottom:4px; color:var(--smp-muted); font-size:9px; font-weight:750; text-transform:uppercase; letter-spacing:.04em; }
.smp-report-meta strong, .smp-result-summary strong { color:#344054; font-size:12px; }
.smp-report-table { min-width:900px; }
.smp-result-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:18px; }
.smp-report-signatures { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; margin-top:44px; padding-top:10px; }
.smp-report-signatures > div { padding-top:9px; border-top:1px solid #98a2b3; text-align:center; }
.smp-report-signatures span { color:#667085; font-size:9px; font-weight:700; }

@media (max-width: 760px) {
    .smp-report-meta, .smp-result-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .smp-report-signatures { grid-template-columns:1fr; gap:34px; }
}

@media print {
    .smp-report-card { border:0 !important; }
    .smp-report-header h2 { font-size:20pt; }
    .smp-report-meta, .smp-result-summary { grid-template-columns:repeat(4,minmax(0,1fr)); }
    .smp-report-signatures { page-break-inside:avoid; }
    .smp-result-table, .smp-report-table, .smp-exam-schedule-table { min-width:0 !important; width:100% !important; font-size:9px !important; }
}

/* Phase 7 — Finance, fees, invoices, payments and expenses */
.smp-finance-table { min-width: 1080px; }
.smp-fee-checkbox-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; padding:12px; border:1px solid var(--smp-border); border-radius:11px; background:#fafbfc; }
.smp-fee-checkbox-list label { display:flex; align-items:flex-start; gap:9px; padding:11px 12px; border:1px solid #e4e7ec; border-radius:9px; background:#fff; cursor:pointer; }
.smp-fee-checkbox-list input { margin-top:2px; }
.smp-fee-checkbox-list strong, .smp-fee-checkbox-list small { display:block; }
.smp-fee-checkbox-list strong { color:#344054; font-size:11px; }
.smp-fee-checkbox-list small { margin-top:3px; color:var(--smp-muted); font-size:9px; }
.smp-status-issued { background:#eff8ff; color:#175cd3; }
.smp-status-part_paid { background:#fff7ed; color:#b54708; }
.smp-status-paid, .smp-status-approved { background:#ecfdf3; color:#067647; }
.smp-status-overdue, .smp-status-rejected, .smp-status-void { background:#fef3f2; color:#b42318; }
.smp-invoice-card, .smp-receipt-card { border-color:#d6e4ff; }
.smp-invoice-header, .smp-receipt-header { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; margin-bottom:18px; padding-bottom:17px; border-bottom:1px solid var(--smp-border); }
.smp-invoice-header h2, .smp-receipt-header h2 { margin:5px 0 5px; color:#101828; font-size:23px; }
.smp-invoice-header p, .smp-receipt-header p { margin:0; color:var(--smp-muted); font-size:10px; }
.smp-invoice-number { min-width:180px; text-align:right; }
.smp-invoice-number > span:first-child { display:block; color:var(--smp-muted); font-size:9px; font-weight:750; text-transform:uppercase; letter-spacing:.04em; }
.smp-invoice-number > strong { display:block; margin:5px 0 9px; color:#101828; font-size:16px; }
.smp-invoice-items { min-width:640px; }
.smp-invoice-totals { width:min(100%,390px); margin:18px 0 0 auto; display:grid; gap:7px; }
.smp-invoice-totals > div { display:flex; justify-content:space-between; gap:18px; padding:8px 10px; border-bottom:1px solid #eef1f5; }
.smp-invoice-totals span { color:#667085; font-size:10px; font-weight:650; }
.smp-invoice-totals strong { color:#344054; font-size:11px; }
.smp-invoice-totals .is-balance { margin-top:4px; padding:12px; border:1px solid #c7d7fe; border-radius:9px; background:#eef4ff; }
.smp-invoice-totals .is-balance span, .smp-invoice-totals .is-balance strong { color:#3538cd; font-weight:800; }
.smp-finance-note { margin-top:16px; padding:13px 14px; border:1px solid var(--smp-border); border-radius:10px; background:#fafbfc; }
.smp-finance-note strong { display:block; color:#344054; font-size:10px; }
.smp-finance-note p { margin:5px 0 0; color:#667085; font-size:10px; line-height:1.65; }
.smp-receipt-amount { margin:22px 0; padding:20px; border:1px solid #abefc6; border-radius:13px; background:#ecfdf3; text-align:center; }
.smp-receipt-amount span, .smp-receipt-amount strong { display:block; }
.smp-receipt-amount span { color:#067647; font-size:10px; font-weight:750; text-transform:uppercase; letter-spacing:.04em; }
.smp-receipt-amount strong { margin-top:5px; color:#05603a; font-size:28px; }
.smp-gateway-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.smp-gateway-card { padding:16px; border:1px solid var(--smp-border); border-radius:12px; background:#fafbfc; }
.smp-gateway-card > div:first-child { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.smp-gateway-card > div:first-child strong, .smp-gateway-card > div:first-child span { display:block; }
.smp-gateway-card > div:first-child strong { color:#344054; font-size:12px; }
.smp-gateway-card > div:first-child span { margin-top:3px; color:var(--smp-muted); font-size:9px; }
.smp-gateway-card > .smp-status { display:inline-flex; margin-top:10px; }
.smp-gateway-card p { margin:12px 0 7px; color:#475467; font-size:10px; line-height:1.6; }
.smp-gateway-card small { color:var(--smp-muted); font-size:9px; }

@media (max-width:760px) {
    .smp-fee-checkbox-list, .smp-gateway-list { grid-template-columns:1fr; }
    .smp-invoice-header, .smp-receipt-header { flex-direction:column; }
    .smp-invoice-number { text-align:left; min-width:0; }
}

@media print {
    .smp-invoice-card, .smp-receipt-card { border:0 !important; }
    .smp-invoice-items { min-width:0 !important; width:100% !important; }
    .smp-invoice-header h2, .smp-receipt-header h2 { font-size:20pt; }
    .smp-invoice-totals { width:45%; }
}

/* Demo data testing tools */
.smp-alert-warning {
    border-color: #f0cf7a;
    background: #fff8e7;
    color: #5f4700;
}
.smp-demo-data-panel {
    margin-top: 24px;
}
.smp-demo-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}
.smp-demo-grid > div {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 10px;
    background: #fafafa;
    text-align: center;
}
.smp-demo-grid strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    margin-bottom: 5px;
}
.smp-demo-grid span {
    display: block;
    font-size: 12px;
    color: #667085;
}
.smp-demo-import-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.smp-demo-credentials {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}
.smp-demo-password {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 14px 0;
    padding: 14px 16px;
    border: 1px dashed #98a2b3;
    border-radius: 12px;
    background: #f8fafc;
}
.smp-demo-password code {
    font-size: 16px;
    font-weight: 700;
    user-select: all;
}
@media (max-width: 980px) {
    .smp-demo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .smp-demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .smp-demo-password { align-items: flex-start; flex-direction: column; }
}
