/* Application navigation. This file is screen-only; printed forms stay unchanged. */
:root { --app-sidebar-width: 244px; }
html { scroll-padding-top: 28px; }
body { padding-left: var(--app-sidebar-width); background: #f5f7fb; }
.site-header, .embedded .site-header { position: fixed; inset: 0 auto 0 0; width: var(--app-sidebar-width); height: 100vh; height: 100dvh; display: flex; flex-direction: column; z-index: 50; border-right: 1px solid #dce5ef; border-bottom: 0; box-shadow: 2px 0 18px #173f6a04; overflow-y: auto; }
.site-header .header-inner, .embedded .header-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 25px; width: 100%; min-height: auto; padding: 34px 25px 27px; margin: 0; }
.site-header .brand img { width: 176px; max-width: 100%; height: auto; }
.header-title { border: 0; border-top: 1px solid #e6ebf3; padding: 21px 0 0; width: 100%; }
.header-title span { display: block; margin: 0 0 8px; color: #8090a4; font-size: 9px; font-weight: 600; letter-spacing: 1.25px; }
.header-title strong { display: block; color: #294c74; font-size: 14px; font-weight: 650; line-height: 1.6; }
.app-menu-toggle { display: none; }
.app-navigation { display: flex; flex: 1; flex-direction: column; align-items: stretch; gap: 14px; width: 100%; max-width: none; min-height: auto; margin: 0; padding: 0 17px 24px; border: 0; }
.side-caption { padding: 0 12px; color: #8795a8; font-size: 9px; font-weight: 600; letter-spacing: 1.15px; }
.app-navigation nav { display: flex; flex-direction: column; align-self: auto; gap: 7px; width: 100%; }
.app-navigation nav a { display: flex; align-items: center; gap: 11px; min-height: 52px; padding: 13px 12px; border: 1px solid transparent; border-radius: 10px; color: #657991; font-size: 12px; font-weight: 600; line-height: 1.65; text-decoration: none; }
.app-navigation nav a:hover { background: #f1f5fa; color: #194d87; }
.app-navigation nav a.active { color: #fff; border-color: #194d87; background: #194d87; box-shadow: 0 4px 10px #194d8717; }
.app-navigation nav svg { width: 18px; height: 18px; flex: 0 0 18px; }
.side-meta { margin-top: auto; padding: 27px 10px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
.side-year { color: #7a8ca2; font-size: 11px; line-height: 1.6; margin: 0; }
.side-year strong { color: #3d5e84; font-weight: 650; margin-left: 5px; }
.storage-mode { margin: 0; padding: 7px 9px; max-width: 100%; border-radius: 7px; white-space: normal; font-size: 9px; line-height: 1.6; }
.embed-bar { order: 3; width: 100%; margin: 0; padding: 0 27px 23px; }
.embed-bar strong { display: none; }
.embed-bar a { font-size: 11px; line-height: 1.7; }
#main { max-width: 1500px; padding: 10px 34px 34px; width: 100%; }
.portal-view, .embedded .portal-view { padding-top: 26px; }
.portal-heading { align-items: flex-start; padding: 7px 0 2px; margin-bottom: 27px; }
.portal-heading h1 { font-size: clamp(25px, 2.3vw, 34px); letter-spacing: -.85px; }
.portal-heading .eyebrow { color: #8393a7; font-size: 9px; letter-spacing: 1.2px; }
.portal-heading-actions { padding-top: 13px; }
.portal-heading-actions .button { border-radius: 9px; }
.portal-card { box-shadow: 0 5px 18px #193f6903; }
.stat-card { padding: 24px; border-radius: 14px; }
.stat-card > strong { margin: 12px 0 8px; font-size: 38px; }
.records-card { padding: 23px; }
.record-year-bar { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 23px; }
.record-year-bar h2 { font-size: 18px; color: #294d77; margin: 0 0 6px; font-weight: 650; }
.record-year-bar p { font-size: 11px; color: #71829a; margin: 0; max-width: 65ch; line-height: 1.85; }
.year-select { min-width: 180px; flex: 0 0 180px; }
.year-select label { font-size: 10px; margin-bottom: 6px; }
.year-select select { color: #194d87; font-weight: 600; background: #f2f6fc; border-color: #ccdbee; min-height: 43px; }
.record-filters { padding: 19px; border-color: #e6ecf4; background: #f7f9fc; }
.record-table th { text-transform: none; }
.record-table .record-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; gap: 7px; width: 100%; }
.record-table .record-actions button { font-size: 11px; padding: 8px 9px; }
.record-table .record-actions button[data-record-action='edit'], .record-table .record-actions button[data-record-action='permanent'] { white-space: normal; }
.blank-pdf-panel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin: 30px 0 0; padding: 23px 25px; border: 1px solid #dce5ef; border-radius: 13px; background: #fff; }
.blank-pdf-panel h2 { color: #294d77; font-size: 15px; line-height: 1.6; font-weight: 650; margin: 0 0 5px; }
.blank-pdf-panel p { color: #657b95; font-size: 12px; line-height: 1.8; margin: 0; max-width: 66ch; }
.blank-pdf-panel .button { flex-shrink: 0; }
.site-footer { max-width: 1500px; width: 100%; padding-inline: 34px; margin-inline: auto; }
.document-context { margin-top: 25px; }
.form-sidebar { top: 24px; max-height: calc(100vh - 48px); }
.active-record-bar { margin-top: 25px; }
@media (min-width: 1021px) and (max-width: 1280px) {
  :root { --app-sidebar-width: 220px; }
  .site-header .header-inner { padding-inline: 22px; }
  .app-navigation { padding-inline: 13px; }
  #main { padding-inline: 24px; }
  .dashboard-stats { gap: 12px; }
  .stat-card { padding: 21px 18px; }
  .stat-card > span { font-size: 11px; }
  .portal-heading { flex-wrap: wrap; gap: 9px; }
  .portal-heading-actions { padding-top: 0; }
  .dashboard-filter { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .dashboard-filter .button { grid-column: 1 / -1; justify-self: start; }
  .workspace { grid-template-columns: 210px minmax(0,1fr); gap: 20px; }
  .form-main { padding: 23px; }
  .record-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .record-filters .search-field { grid-column: auto; }
}
@media (max-width: 1020px) {
  html { scroll-padding-top: 95px; }
  body { padding-left: 0; }
  .site-header, .embedded .site-header { position: sticky; inset: auto; top: 0; width: 100%; height: auto; max-height: 90vh; border-right: 0; border-bottom: 1px solid #dce5ef; overflow-y: auto; }
  .site-header .header-inner, .embedded .header-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 24px; }
  .site-header .brand img { width: 150px; }
  .header-title { display: none; }
  .app-menu-toggle { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d9e3ef; background: #fff; border-radius: 8px; padding: 10px 12px; font-size: 12px; color: #3b5f87; }
  .app-navigation { display: none; padding: 3px 24px 21px; }
  .app-navigation.is-open { display: flex; }
  .side-caption { padding: 0; }
  .app-navigation nav { gap: 7px; }
  .app-navigation nav a { min-height: 45px; font-size: 12px; }
  .side-meta { padding: 6px 0 0; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 15px; }
  .side-year { margin-right: auto; }
  .storage-mode { margin: 0; }
  .embedded .embed-bar { padding: 0 24px 13px; }
  #main { padding: 0 24px 28px; }
  .form-sidebar { top: auto; max-height: none; }
  .record-year-bar { gap: 20px; }
}
@media (max-width: 760px) {
  .site-header .header-inner, .embedded .header-inner { padding: 16px 18px; }
  .site-header .brand img { width: 142px; }
  .app-navigation { padding-inline: 18px; }
  #main { padding-inline: 16px; }
  .portal-view, .embedded .portal-view { padding-top: 23px; }
  .portal-heading { display: block; padding: 0; }
  .portal-heading h1 { font-size: 26px; }
  .portal-heading-actions { margin-top: 18px; }
  .stat-card { padding: 19px 16px; }
  .stat-card > strong { font-size: 32px; }
  .records-card { padding: 18px 14px; }
  .record-year-bar { flex-direction: column; align-items: stretch; margin-bottom: 18px; gap: 15px; }
  .record-year-bar h2 { font-size: 17px; }
  .record-year-bar p { font-size: 10px; }
  .year-select { flex-basis: auto; width: 100%; min-width: 0; }
  .year-select select { font-size: 16px; }
  .record-filters { padding: 13px; }
  .site-footer { padding-inline: 18px; }
  .blank-pdf-panel { padding: 19px 17px; margin-top: 23px; }
  .blank-pdf-panel p { font-size: 11px; }
  .blank-pdf-panel .button { width: 100%; justify-content: center; }
}

/* Readable work surfaces and direct access to common tasks. */
body { background: #f5f7fb; font-size: 15px; }
.site-header { background: #fff; }
.header-title span, .side-caption { color: #657c97; font-size: 10px; }
.header-title strong { font-size: 15px; }
.app-navigation nav a { font-size: 13px; min-height: 54px; }
.side-year { font-size: 12px; }
.storage-mode { font-size: 10px; padding: 8px 10px; }
.portal-heading { margin-bottom: 28px; }
.portal-heading .eyebrow { font-size: 10px; color: #5e7796; }
.portal-heading h1 { font-weight: 700; color: #173a64; }
.portal-heading p { font-size: 14px; color: #61768f; }
.button { font-size: 13px; }
.portal-card { border-color: #e0e7f0; border-radius: 15px; box-shadow: 0 4px 16px #173c6504; }
.portal-view label { font-size: 12px; }
.portal-view input, .portal-view select { min-height: 46px; font-size: 14px; }
.dashboard-welcome { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; margin-bottom: 24px; }
.welcome-intro { position: relative; overflow: hidden; padding: 28px 30px; border-radius: 16px; border: 1px solid #d9e5f5; background: #eaf2fd; }
.welcome-intro::after { content: ''; position: absolute; right: -30px; top: -35px; width: 125px; height: 125px; border: 25px solid #dce9fa; border-radius: 50%; pointer-events: none; }
.welcome-date { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; color: #47688f; font-size: 12px; line-height: 1.7; }
.welcome-dot { width: 7px; height: 7px; border-radius: 50%; background: #d5a343; flex-shrink: 0; }
.welcome-intro h2 { position: relative; z-index: 1; max-width: 22ch; color: #194573; font-size: clamp(22px,2vw,28px); font-weight: 650; line-height: 1.4; letter-spacing: -.5px; margin: 18px 0 10px; }
.welcome-intro p { color: #55728f; max-width: 48ch; font-size: 13px; line-height: 1.85; margin: 0; }
.welcome-steps { display: flex; flex-wrap: wrap; gap: 11px 18px; margin-top: 24px; }
.welcome-steps > span { display: inline-flex; align-items: center; gap: 7px; color: #4e6c8d; font-size: 11px; }
.welcome-steps b { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #c9dbef; background: #f7fbff; color: #386391; border-radius: 50%; font-size: 10px; }
.resume-card { display: flex; flex-direction: column; align-items: flex-start; padding: 27px; border: 1px solid #e6dfce; border-radius: 16px; background: #fffdf7; }
.resume-kicker { color: #8a6e35; font-size: 10px; letter-spacing: 1px; font-weight: 650; }
.resume-card h2 { font-size: 19px; color: #294b72; line-height: 1.5; margin: 14px 0 7px; overflow-wrap: anywhere; }
.resume-card p { color: #748096; font-size: 12px; line-height: 1.85; margin: 0 0 20px; }
.resume-card .button { margin-top: auto; min-height: 43px; font-size: 12px; }
.dashboard-filter { padding-block: 21px; }
.dashboard-filter .filter-description { color: #586f89; font-size: 12px; }
.dashboard-stats { gap: 18px; }
.stat-card { min-height: 164px; padding: 23px; border-top-width: 1px; }
.stat-card::after { display: none; }
.stat-card > span { max-width: calc(100% - 30px); font-size: 12px; min-height: 32px; line-height: 1.65; }
.stat-card > strong { font-size: 37px; margin: 8px 0; font-weight: 650; }
.stat-card > small { font-size: 11px; color: #687d95; line-height: 1.6; }
.stat-icon { position: absolute; top: 20px; right: 18px; display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; color: #4877ae; background: #eef4fd; }
.stat-icon svg { width: 19px; height: 19px; }
.stat-draft .stat-icon { color: #a67c26; background: #fff6df; }
.stat-card:last-child .stat-icon { color: #7d6ba5; background: #f3effa; }
.portal-card-heading h2 { font-size: 17px; }
.portal-card-heading p { font-size: 12px; }
.recent-record { padding: 18px 0; }
.recent-student { color: #284f7c; font-size: 14px; font-weight: 600; line-height: 1.65; overflow-wrap: anywhere; }
.recent-record p { font-size: 12px; margin: 5px 0 9px; }
.recent-open { min-height: 39px; padding: 8px 12px; font-size: 12px; flex-shrink: 0; }
.record-badge { font-size: 11px; padding: 5px 9px; }
.record-tabs { gap: 22px; }
.record-tabs button { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; min-height: 21px; padding: 2px 6px; border-radius: 6px; background: #edf1f7; color: #6b8099; font-size: 10px; }
.record-tabs button[aria-pressed='true'] .tab-count { background: #e7f0fc; color: #235e9b; }
.record-year-bar h2 { font-size: 19px; }
.record-year-bar p { font-size: 12px; }
.year-select label { font-size: 11px; }
.record-filters { border-color: #e5ebf3; border-radius: 11px; }
.record-filters label { font-size: 12px; }
.records-summary p { font-size: 14px; }
.records-summary small { font-size: 11px; }
.record-table thead th { background: #f6f8fc; font-size: 12px; padding-block: 16px; }
.record-table td { font-size: 14px; padding-block: 20px; }
.student-identity { display: flex; align-items: flex-start; gap: 12px; }
.student-identity > div { min-width: 0; }
.record-table .student-initials { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; background: #edf3fb; border: 1px solid #e0e9f5; color: #557aa6; font-size: 11px; font-weight: 650; letter-spacing: .2px; }
.record-table .record-student strong { font-size: 14px; }
.record-table .record-actions button { min-height: 41px; }
.portal-empty { padding: 38px 18px; }
.portal-empty h3 { font-size: 16px; }
.portal-empty p { font-size: 13px; }
.document-context { padding-block: 17px; }
.context-label { font-size: 10px; }
.save-status { font-size: 12px; padding: 9px 12px; line-height: 1.5; }
.form-page-tools { display: flex; align-items: center; gap: 18px; min-width: 0; }
.page-jump { display: flex; align-items: center; gap: 8px; min-width: 0; }
.page-jump label { color: #70839c; font-size: 11px; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.page-jump select { width: auto; min-width: 154px; min-height: 41px; padding: 8px 29px 8px 11px; border: 1px solid #cddbed; border-radius: 8px; background: #f6f9fe; color: #365c89; font-size: 12px; text-transform: none; letter-spacing: 0; }
.form-toolbar { gap: 14px; flex-wrap: wrap; align-items: center; }
.form-heading h1 { margin-top: 17px; font-size: 28px; letter-spacing: -.5px; }
.form-guidance { padding-block: 15px; }
.form-main .label-en { font-size: 14px; line-height: 1.65; }
.form-main .label-ms { font-size: 12px; line-height: 1.6; }
.form-sidebar .steps a strong { font-size: 13px; }
.form-sidebar .steps a small { font-size: 11px; }
.form-bottom .button { font-size: 13px; }
.blank-pdf-panel { background: #fcfdff; border-style: dashed; }
.blank-pdf-panel h2 { font-size: 16px; }
@media (max-width: 1280px) and (min-width: 1021px) {
 .dashboard-welcome { grid-template-columns: 1.1fr 1fr; gap: 16px; }
 .welcome-intro { padding: 25px; }
 .welcome-steps { gap: 9px 12px; }
 .resume-card { padding: 24px; }
 .stat-card { padding: 20px 17px; }
 .stat-icon { right: 13px; }
 .page-jump { flex-direction: column; align-items: flex-start; gap: 5px; }
 .form-page-tools { width: 100%; justify-content: space-between; }
}
@media (max-width: 760px) {
 .portal-heading h1 { font-size: 27px; }
 .portal-heading p { font-size: 13px; }
 .dashboard-welcome { grid-template-columns: minmax(0,1fr); gap: 14px; margin-bottom: 20px; }
 .welcome-intro { padding: 23px; }
 .welcome-intro h2 { font-size: 24px; margin-top: 15px; }
 .welcome-intro p { font-size: 13px; }
 .welcome-date { font-size: 11px; }
 .welcome-steps { margin-top: 19px; gap: 9px 14px; }
 .resume-card { padding: 22px; }
 .resume-card h2 { margin-top: 10px; font-size: 18px; }
 .resume-card p { margin-bottom: 15px; }
 .stat-card { padding: 20px 16px; min-height: 160px; }
 .stat-card > span { font-size: 11px; }
 .stat-card > strong { font-size: 32px; }
 .stat-card > small { font-size: 10px; }
 .stat-icon { top: 18px; right: 11px; width: 28px; height: 28px; border-radius: 8px; }
 .stat-icon svg { width: 17px; height: 17px; }
 .record-tabs { gap: 14px; }
 .record-tabs button { font-size: 12px; gap: 6px; }
 .record-year-bar h2 { font-size: 18px; }
 .record-year-bar p { font-size: 11px; }
 .student-identity { gap: 9px; }
 .record-table .student-initials { width: 29px; height: 29px; flex-basis: 29px; font-size: 9px; }
 .record-table .record-student strong { font-size: 13px; }
 .record-table .record-actions button { min-height: 43px; font-size: 12px; }
 .form-page-tools { width: 100%; justify-content: space-between; gap: 10px; }
 .form-page-tools > span { font-size: 10px; }
 .page-jump { align-items: flex-start; flex-direction: column; gap: 5px; }
 .page-jump select { font-size: 16px; min-width: 0; max-width: 190px; min-height: 44px; }
 .form-heading h1 { font-size: 24px; }
 .save-status { font-size: 11px; }
 .recent-open { padding-inline: 10px; font-size: 11px; }
}
@media (max-width: 480px) {
 .record-table .student-initials { display: none; }
 .record-tabs { gap: 11px; }
 .record-tabs button { font-size: 11px; }
 .tab-count { min-width: 19px; padding-inline: 4px; }
 .records-card-toolbar > .button { font-size: 10px; }
}

/* NurKidz sidebar: deep blue surface with a warm active-menu accent. */
.site-header, .embedded .site-header {
  background: linear-gradient(165deg, #1d5189 0%, #173e6c 48%, #102d50 100%);
  border-right-color: #173e6c;
  box-shadow: 4px 0 22px #15395e0d;
  color: #f4f8ff;
}
.site-header .header-inner { gap: 22px; padding-top: 29px; }
.site-header .brand {
  display: block; width: 100%; max-width: 100%; padding: 12px 10px;
  background: #fff; border: 1px solid #e2ebf5; border-radius: 14px;
  box-shadow: 0 5px 15px #081c3426;
}
.site-header .brand img { margin: auto; }
.site-header .header-title { border-top-color: #ffffff29; }
.site-header .header-title span, .site-header .side-caption { color: #c1d4ed; }
.site-header .header-title strong { color: #fff; line-height: 1.7; }
.site-header .app-navigation nav a { color: #d5e3f5; border-color: transparent; }
.site-header .app-navigation nav a:hover { color: #fff; background: #ffffff12; border-color: #ffffff19; }
.site-header .app-navigation nav a.active {
  color: #19456f; background: #fff2d2; border-color: #f2dc9f;
  border-left: 3px solid #e1b44e; padding-left: 10px;
  box-shadow: 0 5px 13px #09213c1f;
}
.site-header .app-navigation nav a.active:hover { background: #fff6e4; }
.site-header a:focus-visible, .site-header button:focus-visible { outline-color: #ffd477; outline-offset: 4px; }
.site-header .side-meta {
  margin-inline: 1px; padding: 17px 13px; gap: 12px;
  background: #ffffff0a; border: 1px solid #ffffff24; border-radius: 12px;
}
.site-header .side-year { color: #c1d4ed; }
.site-header .side-year strong { color: #fff; }
.site-header .storage-mode { background: #fff2d2; color: #76541d; border: 1px solid #f1d99c; }
.site-header .storage-mode.cloud { background: #dbeafe; color: #214f82; border-color: #c5dcfa; }
.site-header .embed-bar a { color: #dbe9fb; }
.site-header .app-menu-toggle { color: #fff; background: #ffffff10; border-color: #ffffff4a; }
.site-header .app-menu-toggle:hover { background: #ffffff20; }
@media (max-width: 1020px) {
  .site-header, .embedded .site-header { border-bottom-color: #173e6c; box-shadow: 0 3px 16px #12355813; }
  .site-header .header-inner, .embedded .header-inner { gap: 16px; padding: 14px 24px; }
  .site-header .brand { width: auto; padding: 9px 11px; border-radius: 11px; flex: 0 1 auto; }
  .site-header .side-meta { margin: 4px 0 0; padding: 12px; gap: 13px; }
}
@media (max-width: 760px) {
  .site-header .header-inner, .embedded .header-inner { padding: 12px 18px; }
  .site-header .brand { padding: 8px 10px; }
}
