:root { color-scheme: light; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #222; background: #f7f8fa; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem clamp(1rem, 4vw, 3rem); color: #3f4650; background: #fff; border-bottom: 1px solid #e6e8eb; }
.brand { color: #245d91; font-size: 1.08rem; font-weight: 700; text-decoration: none; }
.brand-school-year { margin-left: .45rem; color: #657384; font-size: .8rem; font-weight: 600; }
.account { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; color: #626a74; font-size: .84rem; }
.account form { margin: 0; }
.account-settings { display: inline-grid; width: 30px; height: 30px; place-items: center; border: 1px solid #d8dfe6; border-radius: 50%; color: #48627b; background: #fff; }
.account-settings:hover { border-color: #79a3c8; color: #245d91; background: #f3f8fc; }
.account-settings svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.account-password-card { width: min(100%, 470px); margin: 2.4rem auto; }
.account-password-card h1 { margin-top: 0; }
.account-password-notice { margin: .7rem 0 1rem; }
.account-password-form { display: grid; gap: .85rem; margin-top: 1rem; }
.account-password-form label { display: grid; gap: .3rem; color: #364152; font-size: .88rem; font-weight: 700; }
.account-password-form input { min-height: 40px; padding: .5rem .65rem; }
.account-password-form .button { justify-self: start; }
.container { width: min(1500px, calc(100% - 2rem)); margin: 1.25rem auto; }
.card { padding: clamp(1.1rem, 3vw, 1.75rem); background: #fff; border: 1px solid #e3e6e9; border-radius: .65rem; box-shadow: 0 .15rem .6rem rgb(31 52 78 / 4%); }
.login-card { width: min(480px, 100%); margin: 4rem auto; }
h1 { margin-top: 0; font-size: clamp(1.55rem, 2.5vw, 2rem); letter-spacing: -.02em; }
label { display: block; margin: .7rem 0 .3rem; color: #666d75; font-size: .74rem; font-weight: 600; }
input, select { width: 100%; padding: .55rem .65rem; border: 1px solid #dedfe2; border-radius: .5rem; background: #fff; font: .86rem system-ui, -apple-system, "Segoe UI", sans-serif; }
textarea { width: 100%; padding: .6rem .65rem; border: 1px solid #dedfe2; border-radius: .5rem; font: .86rem system-ui, -apple-system, "Segoe UI", sans-serif; resize: vertical; }
input:focus, textarea:focus { outline: 3px solid #a9d2ff; border-color: #175b9c; }
.button { display: inline-block; margin-top: 1rem; padding: .58rem .85rem; border: 0; border-radius: .5rem; color: #fff; background: #175b9c; font: .86rem system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 650; cursor: pointer; }
.button:hover { background: #0d477c; }
.button-secondary { margin: 0; border: 1px solid #d9dde2; color: #39414a; background: #fafafa; }
.button-secondary:hover { color: #222; background: #f0f1f2; }
.muted { color: #556477; }
.error { margin: .35rem 0; color: #9c1c1c; font-weight: 650; }
.notice { margin-bottom: 1rem; padding: .8rem 1rem; border-left: .3rem solid #287a45; background: #eaf8ef; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.tile { padding: 1.1rem; border: 1px solid #e0e4e8; border-radius: .65rem; color: #245d91; background: #fff; font-weight: 650; text-decoration: none; box-shadow: 0 .15rem .6rem rgb(31 52 78 / 4%); }
.tile:hover { border-color: #a9bfd5; background: #fcfdff; }
.context-list, .report-list { display: grid; gap: .5rem; }
.context-list div, .report-list div { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid #e3e9f0; }
dt { font-weight: 750; } dd { margin: 0; }
.error-box { margin: 1rem 0; padding: 1rem; border-left: .35rem solid #aa2525; background: #fff0f0; }
.confirm-box { margin-top: 1rem; padding: 1rem; border-left: .35rem solid #287a45; background: #edf9f1; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(100px, 1fr)); gap: .75rem; margin: 1rem 0; }
.summary-grid div { padding: .9rem; border: 1px solid #d7e0ea; border-radius: .5rem; background: #f8fafc; }
.summary-grid strong, .summary-grid span { display: block; }
.summary-grid strong { font-size: 1.4rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th, td { padding: .52rem; border-bottom: 1px solid #f0f1f2; text-align: left; vertical-align: top; }
th { color: #4b525a; background: #fafafa; font-size: .74rem; font-weight: 650; white-space: nowrap; }
.badge { display: inline-block; padding: .2rem .45rem; border: 1px solid currentColor; border-radius: .3rem; font-size: .75rem; font-weight: 800; }
.badge-new { color: #126238; background: #eaf8ef; }
.badge-update { color: #704c00; background: #fff5d8; }
.badge-unchanged { color: #46566a; background: #f1f4f7; }
.badge-error { color: #8a1d1d; background: #ffebeb; }
.row-errors { min-width: 240px; margin: .5rem 0 0; padding-left: 1rem; color: #8a1d1d; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.page-heading .button { flex: none; }
.page-heading-side { display: flex; align-items: flex-end; flex-direction: column; gap: .5rem; }
.eyebrow { color: #4e6278; font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.journal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.journal-card { padding: 1.2rem; border: 1px solid #e0e4e8; border-radius: .7rem; background: #fff; box-shadow: 0 .15rem .6rem rgb(31 52 78 / 4%); }
.journal-card h2 { margin: .5rem 0; }
.journal-card h3 { margin: .5rem 0; font-size: 1.1rem; }
.journal-card-link { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.journal-card[hidden] { display: none; }
.journal-card-link:hover { border-color: #a9bfd5; background: #fcfdff; box-shadow: 0 .25rem .85rem rgb(31 52 78 / 9%); }
.journal-card-link.journal-card-exam-open-state { border-color: #efc8c8; background: #fff8f8; }
.journal-card-link.journal-card-exam-open-state:hover { border-color: #df9c9c; background: #fff2f2; }
.journal-card-link.journal-card-exam-completed-state { border-color: #c6e5d1; background: #f5fcf7; }
.journal-card-link.journal-card-exam-completed-state:hover { border-color: #8cc5a0; background: #edfaf1; }
.journal-card-link:focus-visible { outline: 3px solid #a9d2ff; outline-offset: 2px; }
.journal-card-teacher { display: block; margin-top: .7rem; color: #53657a; font-size: .8rem; }
.additional-schedule-summary { margin-top: 1.1rem; padding-top: .8rem; border-top: 1px solid #e6e9ed; }
.additional-schedule-summary h3, .additional-schedule-planning h3 { margin: 0 0 .35rem; font-size: .94rem; }
.additional-schedule-planning { display: grid; gap: .6rem; margin-top: 1rem; padding: .8rem; border: 1px solid #cfdced; border-radius: .55rem; background: #f5f9ff; }
.additional-schedule-planning .muted { margin: 0; font-size: .78rem; }
.additional-schedule-inputs { display: grid; gap: .55rem; }
.additional-schedule-input-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(110px, .55fr); gap: .55rem; max-width: 380px; }
.additional-schedule-inputs label { margin: 0; }
.additional-schedule-planning .button { width: fit-content; margin: 0; }
.semester-journal-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.semester-journal-column { min-width: 0; }
.semester-journal-heading { display: flex; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: .65rem; }
.semester-journal-heading h2 { margin: 0; color: #3b526a; font-size: 1.05rem; }
.journal-search { width: min(180px, 48%); min-height: 31px; padding: .32rem .5rem; font-size: .8rem; }
.empty-state { text-align: center; }
.filter-bar { display: grid; grid-template-columns: minmax(240px, 2fr) 1fr 1fr auto; gap: .75rem; align-items: end; margin: 1rem 0; padding: .75rem; border: 1px solid #e4e6e8; border-radius: .6rem; background: #fff; }
.filter-bar label { margin-top: 0; }
.filter-actions { display: flex; align-items: center; gap: .75rem; padding-bottom: .1rem; }
.filter-actions .button { margin: 0; }
.text-button { font-weight: 700; white-space: nowrap; }
.table-card, .history-card { margin-top: 1rem; padding: 0; overflow: hidden; }
.table-heading, .history-card h2, .history-card > p { margin: 0; padding: 1rem 1.25rem; }
.table-heading { display: flex; align-items: baseline; justify-content: space-between; }
.table-heading h2 { margin: 0; }
.status, .boolean { display: inline-block; padding: .25rem .45rem; border: 1px solid currentColor; border-radius: .3rem; font-size: .78rem; font-weight: 850; white-space: nowrap; }
.status-active, .boolean-yes { color: #17633a; background: #e9f7ee; }
.status-removed, .boolean-no { color: #8b2424; background: #ffeded; }
.mono { font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }
.accommodations { max-width: 260px; }
.accommodations summary { color: #174f84; cursor: pointer; font-weight: 650; }
.accommodations p { min-width: 220px; margin: .5rem 0 0; }
.empty-cell { padding: 2rem; text-align: center; }
.admin-actions { display: flex; gap: .75rem; margin: -0.25rem 0 1.25rem; }
.admin-actions .tile { padding: .75rem 1rem; }
.admin-page { --admin-accent: #76539a; }
.admin-page .eyebrow { color: var(--admin-accent); }
.admin-page .button { background: var(--admin-accent); }
.admin-page .button:hover { background: #5d3f7c; }
.admin-page .button-light, .admin-page .button-secondary { color: #51396d; background: #faf7fd; border-color: #dacfe5; }
.admin-page .button-light:hover, .admin-page .button-secondary:hover { background: #f0eafa; }
.admin-page .card { border-color: #e4deeb; box-shadow: none; }
.admin-page-heading { margin-bottom: .8rem; }
.admin-page-heading h1 { margin: .28rem 0 .35rem; }
.admin-navigation .tile { color: #5d3f7c; border-color: #e1d8ea; background: #fcfaff; }
.admin-navigation .tile:hover { border-color: #bca9d0; background: #f5effa; }
.admin-year-ribbon { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: 1rem; padding: .65rem .8rem; }
.admin-year-select { display: flex; align-items: center; gap: .55rem; }
.admin-year-select label { margin: 0; white-space: nowrap; }
.admin-year-select select { width: min(260px, 100%); padding-block: .45rem; }
.admin-year-details { border-left: 1px solid #e2dae9; padding-left: .7rem; }
.admin-year-details summary { color: #5d3f7c; cursor: pointer; font-size: .78rem; font-weight: 650; }
.admin-year-create { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: .5rem; align-items: end; margin-top: .55rem; }
.admin-year-create .button { margin: 0; }
.admin-simple-form { grid-template-columns: minmax(180px, 1fr) auto auto; }
.admin-journal-form { grid-template-columns: repeat(4, minmax(120px, 1fr)) auto; }
.organization-minimal { max-width: 1180px; }
.organization-minimal .admin-page-heading { margin-bottom: .7rem; }
.organization-minimal .admin-page-heading h1 { margin-bottom: .1rem; }
.organization-minimal .admin-year-ribbon { justify-content: space-between; gap: .55rem 1rem; border-color: #e5ddea; background: #fcfaff; }
.year-context { display: flex; align-items: baseline; gap: .45rem; color: #5c5465; font-size: .85rem; }
.year-context strong { color: #432d59; font-size: 1.05rem; }
.organization-minimal .admin-year-select { margin-left: auto; }
.organization-minimal .admin-year-details { display: flex; align-items: center; gap: .45rem; padding-left: .7rem; }
.organization-minimal .admin-year-details[open] { width: 100%; padding-top: .55rem; border-top: 1px solid #e7e0ed; border-left: 0; }
.organization-minimal .admin-year-create { display: flex; grid-template-columns: none; margin: 0; }
.organization-minimal .admin-year-create input { width: 130px; }
.field-help { margin: .35rem 0 0; color: #746b7d; font-size: .76rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.organization-list { margin: .7rem 0; padding: .75rem .9rem; box-shadow: none; }
.organization-list-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.organization-list-heading h2 { margin: 0; font-size: 1rem; }
.organization-list-heading .muted { margin: .08rem 0 0; font-size: .8rem; }
.inline-create, .journal-create-line, .assignment-inline { display: flex; align-items: center; gap: .4rem; }
.inline-create input { width: 220px; }
.inline-create select { width: 120px; }
.class-create select { width: 135px; }
.inline-create input, .inline-create select, .journal-create-line input, .journal-create-line select, .assignment-inline select { min-height: 32px; padding: .32rem .5rem; font-size: .84rem; }
.simple-list { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .65rem; }
.simple-list-item { padding: .27rem .55rem; border: 1px solid #e2dae9; border-radius: 999px; background: #fff; color: #453653; font-size: .83rem; }
.organization-remove-details { position: relative; }
.organization-remove-details summary { cursor: pointer; list-style: none; }
.organization-remove-details summary::-webkit-details-marker { display: none; }
.organization-remove-details[open] summary { border-color: #b9a4cc; background: #f7f2fb; }
.organization-remove-details form { position: absolute; z-index: 3; top: calc(100% + .35rem); left: 0; padding: .35rem; border: 1px solid #e2dae9; border-radius: .5rem; background: #fff; box-shadow: 0 .45rem 1rem rgba(44, 31, 60, .12); }
.journals-list { padding-bottom: .25rem; }
.journal-create-line { display: grid; grid-template-columns: 115px minmax(180px, 1fr) 110px 88px auto; gap: .45rem; margin: .75rem 0 .35rem; padding: .65rem 0 .8rem; border-bottom: 1px solid #ebe6ef; }
.journal-rows { margin: 0 -.15rem; }
.journal-row { display: grid; grid-template-columns: minmax(205px, .8fr) minmax(350px, 1.3fr) auto; align-items: center; gap: .7rem; padding: .75rem .15rem; border-bottom: 1px solid #eeeaf1; }
.journal-row[hidden] { display: none; }
.journal-row:last-child { border-bottom: 0; }
.journal-row-title { display: grid; gap: .12rem; }
.journal-row-title strong { color: #39264c; font-size: .93rem; }
.journal-row-title span, .teacher-names { color: #6a6272; font-size: .78rem; }
.journal-teachers { display: grid; grid-template-columns: auto minmax(100px, 1fr) auto; align-items: center; gap: .45rem; }
.row-label { color: #765c91; font-size: .75rem; font-weight: 700; }
.teacher-names { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assignment-inline select { width: 150px; }
.copy-spring-form { margin: 0; white-space: nowrap; }
.button-text { padding: .25rem .1rem; border: 0; background: transparent; color: #694b8a; font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; }
.button-text:hover { background: transparent; color: #412958; }
.copy-year-form { margin: 0; }
.year-copy-actions { display: grid; justify-items: end; gap: .35rem; margin-left: auto; }
.multi-teacher-warning { display: flex; align-items: baseline; gap: .55rem; margin: .7rem 0; padding: .6rem .8rem; border-left-color: #76539a; background: #f8f4fb; color: #4c385f; font-size: .82rem; }
.subject-list { align-items: center; }
.subject-bulk-form { display: grid; gap: .55rem; }
.subject-select { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.subject-choice { cursor: pointer; user-select: none; }
.subject-select:checked + .subject-choice { border-color: #76539a; background: #f3edf9; color: #4a2d67; box-shadow: 0 0 0 2px rgba(118, 83, 154, .12); }
.subject-bulk-actions { display: flex; align-items: center; gap: .45rem; }
.subject-bulk-actions select { min-height: 32px; padding: .32rem .5rem; font-size: .84rem; }
.subject-trash-button { display: inline-grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid #e5b8b8; border-radius: .45rem; color: #ab3434; background: #fffafa; cursor: pointer; }
.subject-trash-button:hover { border-color: #b42318; background: #fff0f0; }
.subject-trash-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.subject-remove-form { margin: 0; }
.user-delete-confirmation { max-width: 700px; }
.user-delete-confirmation h1 { margin-top: .25rem; }
.user-delete-confirmation .warning-box { margin: 1rem 0; }
.user-delete-confirmation .warning-box ul { margin: .45rem 0; padding-left: 1.2rem; }
.user-delete-confirmation-actions { display: flex; align-items: center; gap: .55rem; margin-top: 1rem; }
.user-delete-confirmation-actions form { margin: 0; }
.subject-remove { cursor: pointer; font: inherit; }
.subject-remove:hover { border-color: #a93434; background: #fff4f4; color: #9f2222; }
.journal-create-line { grid-template-columns: 105px 190px 125px 192px 90px 234px auto; }
.journal-create-line .journal-exam-requirement { min-width: 192px; }
.journal-row { grid-template-columns: 240px 250px minmax(400px, 1fr); }
.additional-teachers { color: #6a6272; font-size: .78rem; }
.additional-teachers summary { cursor: pointer; color: #765c91; font-weight: 650; }
.additional-teacher-content { display: grid; gap: .35rem; margin-top: .4rem; }
.journal-row-options { display: flex; align-items: flex-start; gap: .65rem; }
.journal-row-options .additional-teachers { flex: 0 1 auto; }
.exam-requirement-select { flex: 0 0 244px; }
.exam-requirement-select select { width: 100%; }
.journal-row select.field-missing { border-color: #d55656; background: #fff6f6; color: #9d2424; box-shadow: 0 0 0 2px rgba(213, 86, 86, .12); }
.journal-row select.field-missing:focus { border-color: #b93838; box-shadow: 0 0 0 3px rgba(213, 86, 86, .2); }
.journal-delete-button { display: inline-grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 1px solid #e5b8b8; border-radius: .45rem; color: #ab3434; background: #fffafa; cursor: pointer; }
.journal-delete-button:hover { border-color: #b42318; background: #fff0f0; }
.journal-delete-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.journal-teachers { display: block; }
.journal-teachers .assignment-inline { display: block; }
.journal-teachers .assignment-inline select { width: 100%; }
.lead-teacher-select { display: grid; gap: .12rem; }
.lead-teacher-select label { margin: 0; color: #765c91; font-size: .72rem; font-weight: 700; }
.compact-warning { margin: .55rem 0; padding: .55rem .7rem; font-size: .8rem; }
.compact-admin-details, .compact-user-row { margin: .45rem 0; padding: .55rem .7rem; box-shadow: none; }
.compact-admin-details summary, .compact-user-row summary { cursor: pointer; }
.compact-admin-details summary { color: #5d3f7c; font-size: .88rem; font-weight: 750; }
.compact-user-row summary { display: grid; grid-template-columns: minmax(160px, .9fr) 130px minmax(200px, 1.2fr) 85px; gap: .55rem; align-items: center; color: #655d6c; font-size: .82rem; }
.compact-user-row[open] summary { margin-bottom: .55rem; }
.user-name { color: #39264c; font-weight: 750; }
.user-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-state { color: #9c2b2b; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.user-state-active { color: #277653; }
.compact-user-form { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(180px, 1fr) 130px minmax(160px, 1fr) minmax(160px, 1fr) auto auto; gap: .4rem; align-items: center; margin-top: .55rem; }
.compact-user-form input, .compact-user-form select { min-height: 32px; padding: .32rem .48rem; font-size: .82rem; }
.teacher-create-form { grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) minmax(160px, 1fr) minmax(160px, 1fr) auto; }
.managed-journals { display: grid; gap: .15rem; margin: .45rem 0 .1rem; color: #635b6b; font-size: .78rem; }
.managed-journals strong { color: #76539a; font-size: .74rem; }
.compact-check { display: flex; align-items: center; gap: .3rem; white-space: nowrap; color: #5d5566; font-size: .78rem; }
.compact-check input { width: auto; min-height: 0; }
.warning-box { margin: 1rem 0; padding: 1rem; border-left: .35rem solid #b67800; background: #fff7df; }
.admin-form-card { margin: 1rem 0; }
.admin-form-card > summary { cursor: pointer; font-size: 1.05rem; font-weight: 800; }
.admin-form-card[open] > summary { margin-bottom: 1rem; }
.admin-list { display: grid; gap: .25rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 1rem; align-items: end; }
.form-grid label { margin-top: 0; }
.check-label { display: flex; align-items: center; gap: .55rem; min-height: 45px; }
.check-label input { width: auto; }
.admin-section { margin: 1rem 0; }
.admin-section > summary { cursor: pointer; font-size: 1.15rem; font-weight: 850; }
.admin-section[open] > summary { margin-bottom: 1rem; }
.compact-form, .journal-form { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); gap: .65rem; align-items: center; padding: .75rem 0; }
.journal-form { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
.assignment-form { grid-template-columns: repeat(6, minmax(115px, 1fr)); padding-inline: 1.25rem; }
.row-form { border-top: 1px solid #e0e7ef; }
.button-small { margin: 0; padding: .6rem .8rem; }
.journal-view .back-link { margin: 0 0 .7rem; font-size: .82rem; }
.journal-view .page-heading { margin-bottom: .8rem; }
.journal-view .page-heading h1 { margin: .28rem 0 .35rem; }
.journal-view .page-heading .muted { margin: 0; font-size: .82rem; }
.journal-view .eyebrow { color: #757c85; font-size: .7rem; font-weight: 650; }
.journal-tabs { display: flex; align-items: flex-end; gap: .15rem; margin: .55rem 0 .75rem; border-bottom: 1px solid #dfe3e7; }
.journal-tab { display: inline-flex; align-items: baseline; gap: .35rem; padding: .55rem .8rem .5rem; border-bottom: 2px solid transparent; color: #68717a; font-size: .8rem; font-weight: 600; text-decoration: none; }
.journal-tab:hover { color: #245d91; }
.journal-tab-active { border-bottom-color: #245d91; color: #245d91; }
.journal-tab-disabled { color: #a0a5aa; cursor: default; }
.journal-tab-disabled:hover { color: #a0a5aa; }
.journal-tab small { font-size: .62rem; font-weight: 500; }
.journal-filters { grid-template-columns: minmax(180px, 1.1fr) minmax(110px, .7fr) minmax(210px, 1fr); margin: .75rem 0; padding: .75rem; border-color: #e4e6e8; border-radius: .6rem; background: #fff; }
.journal-filters label { color: #666d75; font-size: .74rem; font-weight: 600; }
.journal-filters input, .journal-filters select { padding: .55rem .65rem; border-color: #dedfe2; border-radius: .5rem; font-size: .86rem; }
.journal-filters .button { padding: .57rem .85rem; }
.show-removed { margin: 0; }
.journal-table-card { border-color: #e4e6e8; box-shadow: none; }
.journal-table-card .table-scroll { max-height: calc(100vh - 220px); overflow: auto; }
.journal-table-card .table-heading { padding: .8rem 1rem; }
.journal-table-card .table-heading h2 { font-size: 1.05rem; font-weight: 650; }
.journal-table-card .table-heading span { color: #747b84; font-size: .76rem; }
.journal-table { min-width: 1180px; font-size: .8rem; }
.journal-table th, .journal-table td { padding: .48rem .45rem; vertical-align: middle; border-bottom-color: #f0f1f2; }
.journal-table th { color: #4b525a; background: #fafafa; font-size: .72rem; font-weight: 650; letter-spacing: .01em; }
.journal-table thead th { position: sticky; top: 0; z-index: 3; }
.grades-heading-button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.grades-heading-button:hover { color: #1e5f96; text-decoration: underline; text-underline-offset: 2px; }
.journal-table tbody tr:hover { background: #fcfcfc; }
.journal-table .status { padding: .12rem .3rem; border: 0; font-size: .6rem; font-weight: 600; letter-spacing: .01em; }
.journal-table .boolean { padding: .16rem .38rem; font-size: .66rem; font-weight: 650; }
.sort-link { display: inline-flex; align-items: center; gap: .25rem; color: inherit; text-decoration: none; }
.sort-link:hover { color: #1a73e8; }
.sort-link span { color: #8a9097; font-size: .68rem; }
.grades-heading { text-align: center; }
.nr-column { width: 38px; min-width: 38px; padding-inline: .2rem !important; text-align: center; }
.semester-column { width: 50px; min-width: 50px; padding-inline: .2rem !important; text-align: center; font-size: .75rem; }
.status-column { width: 72px; min-width: 72px; padding-inline: .12rem !important; }
.student-heading, .student-name { width: 196px; min-width: 196px; max-width: 215px; }
.section-column { width: 54px; min-width: 54px; padding-inline: .22rem !important; }
.registration-column { width: 86px; min-width: 86px; padding-inline: .22rem !important; }
.admission-column { width: 96px; min-width: 96px; padding-inline: .28rem !important; }
.journal-table td.grade-cell { position: relative; width: 49px; min-width: 49px; padding-inline: .15rem; text-align: center; }
.grade-input { width: 46px; padding: .32rem .2rem; border-color: #dedfe2; border-radius: .45rem; text-align: center; font-size: .8rem; }
.grade-input.grade-saving { background: #fff8d9; }
.grade-value { font-weight: 750; }
.cell-message { position: absolute; z-index: 5; left: 50%; top: calc(100% - .15rem); width: max-content; max-width: 230px; transform: translateX(-50%); padding: .25rem .45rem; border-radius: .3rem; color: #17633a; background: #e9f7ee; font-size: .72rem; font-weight: 750; box-shadow: 0 .2rem .7rem rgb(0 0 0 / 15%); }
.cell-message:empty { display: none; }
.cell-message-error { color: #8b2424; background: #ffeded; }
.final-grade { width: 52px; min-width: 52px; max-width: 52px; padding: 0 !important; font-weight: 600; }
.final-grade-button { width: 100%; min-height: 2.15rem; padding: .42rem .3rem; border: 0; color: inherit; background: transparent; font: inherit; font-weight: inherit; overflow-wrap: anywhere; text-align: left; cursor: pointer; }
.final-grade-button:hover, .final-grade-button:focus-visible { background: #eef5fb; outline: 1px solid #bfd2e4; outline-offset: -1px; }
.final-grade-start-exam-form { margin: 0; }
.final-grade-start-exam { display: block; width: 100%; min-height: 2.15rem; border: 0; background: transparent; cursor: pointer; }
.final-grade-start-exam:hover, .final-grade-start-exam:focus-visible { background: #eef5fb; outline: 1px dashed #9ab8d5; outline-offset: -1px; }
.accommodation-column { width: 88px; min-width: 88px; padding-inline: .2rem !important; text-align: center; }
.indicator-cell { width: 42px; min-width: 42px; padding-inline: .15rem !important; text-align: center; }
.indicator { width: 1.65rem; height: 1.65rem; padding: 0; border: 1px solid #d7dbe0; border-radius: 50%; color: #69717a; background: #fafafa; font-size: .7rem; font-weight: 650; cursor: pointer; }
.indicator-active { border-color: #7aa7d2; color: #245d91; background: #eef5fb; }
.empty-indicator { display: inline-block; width: 1.65rem; height: 1.65rem; }
.empty-note-button { width: 1.65rem; height: 1.65rem; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.empty-note-button:hover, .empty-note-button:focus-visible { background: #f0f3f6; outline: 1px solid #d7dbe0; }
.removed-row { background: #fffafa; }
.record-dialog { width: min(480px, calc(100% - 2rem)); border: 1px solid #e2e4e7; border-radius: .7rem; padding: 1.1rem; box-shadow: 0 .7rem 2rem rgb(0 0 0 / 16%); }
.record-dialog::backdrop { background: rgb(19 33 50 / 55%); }
.record-dialog p { font-size: .86rem; line-height: 1.45; }
.record-dialog label { color: #666d75; font-size: .74rem; font-weight: 600; }
.record-dialog textarea { border-color: #dedfe2; border-radius: .5rem; font: .86rem system-ui, -apple-system, "Segoe UI", sans-serif; }
.exam-results-dialog { width: min(620px, calc(100% - 2rem)); }
.exam-results-student { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: .65rem 0; }
.exam-results-student span { color: #747b84; font-size: .72rem; }
.exam-results-table { font-size: .78rem; }
.exam-results-table th, .exam-results-table td { padding: .48rem .5rem; border-bottom: 1px solid #eceef0; text-align: left; }
.exam-results-table thead th { color: #666d75; background: #fafafa; font-size: .68rem; font-weight: 650; }
.exam-results-table tbody th { width: 72px; color: #4b525a; font-weight: 650; }
.exam-results-table td:nth-child(2) { width: 82px; }
.exam-results-table td:nth-child(3) { width: 92px; white-space: nowrap; }
.exam-final-summary { display: flex; align-items: baseline; justify-content: flex-end; gap: .65rem; margin: .7rem 0 0 !important; }
.exam-final-summary span { color: #747b84; font-size: .72rem; }
.exam-final-summary strong { min-width: 105px; font-size: .84rem; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dialog-heading h2 { margin: 0; font-size: 1.05rem; font-weight: 650; }
.dialog-heading button { border: 0; color: #6c737b; background: transparent; font-size: 1.45rem; cursor: pointer; }
.button-light { border: 1px solid #d9dde2; color: #39414a; background: #fafafa; }
.button-light:hover { color: #222; background: #f0f1f2; }
.exam-overview { display: flex; align-items: stretch; gap: .65rem; margin: 0; }
.exam-summary-card { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: .7rem; row-gap: .18rem; min-width: 290px; padding: .65rem .8rem; border: 1px solid #e1e4e7; border-radius: .6rem; color: #343a40; background: #fff; text-align: left; cursor: pointer; }
.exam-summary-card:hover { border-color: #a9bfd5; background: #fcfdff; }
.exam-summary-card strong { font-size: .88rem; font-weight: 650; }
.exam-summary-card > span:last-child { grid-column: 1 / -1; color: #6c737b; font-size: .72rem; }
.journal-card-exam-open { display: inline-flex; align-self: flex-start; margin-top: .15rem; padding: .22rem .45rem; border: 1px solid #d14343; border-radius: 999px; color: #a61b1b; background: #fff2f2; font-size: .72rem; font-weight: 700; }
.journal-card-exam-finished { display: inline-flex; align-self: flex-start; margin-top: .15rem; padding: .28rem .55rem; border: 1px solid #64a77a; border-radius: 999px; color: #17693a; background: #effaf2; font-size: .84rem; font-weight: 750; }
.exam-summary-label { color: #245d91; font-size: .68rem; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; }
.plan-exams-button { margin: 0; padding: .62rem .8rem; font-size: .8rem; }
.conduct-exam-button { margin: 0; padding: .62rem .8rem; font-size: .8rem; }
.import-button { margin: 0; }
.exam-dialog { width: min(560px, calc(100% - 2rem)); }
.exam-planning-dialog { width: min(720px, calc(100% - 2rem)); }
.exam-schedule-list, .exam-planning-table { margin-top: .7rem; font-size: .82rem; }
.exam-schedule-list th, .exam-planning-table th { color: #4b525a; background: #fafafa; font-size: .72rem; font-weight: 650; }
.exam-schedule-list td, .exam-planning-table td { padding: .55rem; vertical-align: middle; }
.exam-planning-table input[type="date"] { min-width: 145px; padding: .48rem .55rem; border-color: #dedfe2; border-radius: .45rem; font-size: .82rem; }
.exam-planning-table input[readonly] { color: #6b727a; background: #f4f5f6; cursor: not-allowed; }
.form-help { margin: .7rem 0 0; color: #6c737b; font-size: .74rem; }
.dialog-actions { display: flex; gap: .55rem; margin-top: .8rem; }
.dialog-actions .button { margin: 0; padding: .58rem .8rem; font-size: .8rem; }
.button-danger { color: #fff; background: #a62b2b; }
.button-danger:hover { background: #842020; }
.exam-kind-dialog { width: min(520px, calc(100% - 2rem)); }
.exam-kind-list { display: grid; gap: .55rem; margin-top: .8rem; }
.exam-kind-list form { margin: 0; }
.exam-kind-option { display: flex; align-items: flex-start; flex-direction: column; gap: .18rem; width: 100%; padding: .75rem .85rem; border: 1px solid #dfe3e7; border-radius: .55rem; color: #343a40; background: #fff; text-align: left; cursor: pointer; }
.exam-kind-option:hover:not(:disabled) { border-color: #9eb8d1; background: #fbfdff; }
.exam-kind-option:disabled { color: #8a9097; background: #f7f8f9; cursor: not-allowed; }
.exam-kind-option strong { font-size: .88rem; }
.exam-kind-option span { font-size: .74rem; }
.semester-exam-heading { margin-bottom: .8rem; }
.semester-exam-page > .back-link { margin: 0 0 .55rem; font-size: .82rem; }
.semester-exam-heading h1 { margin: .25rem 0; }
.semester-exam-heading .muted { margin: 0; font-size: .8rem; }
.semester-exam-grid { display: grid; grid-template-columns: minmax(310px, .72fr) minmax(560px, 1.55fr); gap: .8rem; align-items: start; }
.exam-search-card, .exam-student-details, .exam-empty-details { padding: 1rem; box-shadow: none; }
.exam-search-card { position: sticky; top: .8rem; }
.exam-search-fields { display: grid; grid-template-columns: 1.5fr .8fr; gap: .6rem; }
.exam-search-summary { min-height: 1.2rem; margin: .65rem 0 .35rem; color: #747b84; font-size: .74rem; }
.exam-results { max-height: 540px; overflow: auto; border: 1px solid #eceef0; border-radius: .5rem; }
.exam-results th, .exam-results td { padding: .45rem .5rem; vertical-align: middle; }
.exam-results tr.row-selected { background: #eef5fb; }
.exam-student-button { padding: 0; border: 0; color: #245d91; background: transparent; font: inherit; font-weight: 650; text-align: left; cursor: pointer; }
.exam-empty-details h2 { margin: 0 0 .35rem; font-size: 1rem; }
.exam-student-details { padding: 0; overflow: hidden; }
.exam-student-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border-bottom: 1px solid #eceef0; }
.exam-student-heading h2 { margin: .18rem 0 0; font-size: 1.18rem; }
.exam-student-heading dl { display: flex; gap: 1rem; margin: 0; }
.exam-student-heading dl div { min-width: 70px; }
.exam-student-heading dt { color: #747b84; font-size: .68rem; font-weight: 600; }
.exam-student-heading dd { margin-top: .12rem; font-size: .82rem; font-weight: 650; }
.exam-form-section { padding: .85rem 1rem; border-bottom: 1px solid #eceef0; }
.exam-form-section h3 { margin: 0; font-size: .9rem; font-weight: 650; }
.exam-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .7rem; }
.exam-section-heading span { color: #747b84; font-size: .72rem; }
.exam-control-grades { display: flex; gap: .2rem; margin-top: .5rem; }
.exam-control-grades > div { width: 72px; }
.exam-control-grades input { text-align: center; }
.exam-control-grade-missing input { border-color: #db8f8f; background: #fffafa; box-shadow: 0 0 0 2px rgb(219 143 143 / 12%); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.exam-fields-row { display: grid; grid-template-columns: 145px 175px minmax(220px, 1fr); gap: .55rem; align-items: end; margin-top: .45rem; }
.exam-part-locked { background: #fafafa; }
.exam-part-locked input:disabled, .exam-part-locked select:disabled { color: #777; background: #f2f3f4; }
.admission-warning { margin: .55rem 0 0; }
.admission-warning .check-label { min-height: 0; margin-bottom: 0; color: #555; }
.final-grade-field { width: min(260px, 100%); margin-top: .45rem; }
.exam-save-row { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; }
.exam-save-row .button { margin: 0; }
.exam-save-row .muted { font-size: .72rem; }
.finish-exam-dialog { width: min(680px, calc(100% - 2rem)); }
.finish-option-list { display: grid; gap: .65rem; margin-top: .8rem; }
.finish-section-card { padding: .7rem; border: 1px solid #e2e4e7; border-radius: .55rem; }
.finish-section-card h3 { margin: 0 0 .5rem; font-size: .88rem; }
.finish-section-card form { display: inline-block; margin: 0 .35rem .35rem 0; }
.exam-finish-option { display: flex; flex-direction: column; gap: .12rem; min-width: 150px; padding: .55rem .65rem; border: 1px solid #d9dde2; border-radius: .45rem; color: #39414a; background: #fafafa; text-align: left; cursor: pointer; }
.exam-finish-option:hover { border-color: #a9bfd5; background: #fff; }
.exam-finish-option strong { font-size: .78rem; }
.exam-finish-option span { color: #747b84; font-size: .67rem; }
.finish-confirm-dialog { width: min(620px, calc(100% - 2rem)); }
.finish-confirm-dialog [data-finish-examined-list] { max-height: 270px; overflow: auto; padding: .55rem .7rem; border: 1px solid #eceef0; border-radius: .5rem; background: #fafafa; }
.finish-confirm-dialog h3 { margin: .35rem 0; font-size: .82rem; }
.finish-confirm-dialog ul { margin: .25rem 0 .6rem; padding-left: 1.2rem; font-size: .8rem; }
.journal-tabs-line { position: relative; display: flex; align-items: flex-end; gap: .8rem; margin: .55rem 0 .75rem; border-bottom: 1px solid #dfe3e7; }
.journal-tabs-line .journal-tabs { flex: 1; margin: 0; border-bottom: 0; }
.textbook-inline, .textbook-inline-readonly { margin: 0 0 .45rem auto; color: #68717a; font-size: .72rem; white-space: nowrap; }
.textbook-inline summary { cursor: pointer; list-style: none; }
.textbook-inline summary::-webkit-details-marker { display: none; }
.textbook-inline summary::after { content: ' ▾'; color: #8a9097; }
.textbook-inline[open] summary::after { content: ' ▴'; }
.textbook-inline form { position: absolute; z-index: 20; top: calc(100% + .35rem); right: 0; display: grid; grid-template-columns: 90px minmax(230px, 360px); gap: .45rem .6rem; width: min(500px, calc(100vw - 2rem)); padding: .8rem; border: 1px solid #dfe3e7; border-radius: .55rem; background: #fff; box-shadow: 0 .55rem 1.5rem rgb(0 0 0 / 12%); white-space: normal; }
.textbook-inline form label { align-self: center; color: #666d75; font-size: .7rem; font-weight: 600; }
.textbook-inline form input { padding: .44rem .5rem; border-color: #dedfe2; border-radius: .4rem; font-size: .8rem; }
.textbook-inline form .button { grid-column: 2; justify-self: start; margin: 0; padding: .42rem .65rem; font-size: .73rem; }
.consultation-list-card { box-shadow: none; }
.consultation-table { min-width: 820px; font-size: .8rem; }
.consultation-table th, .consultation-table td { padding: .48rem .55rem; vertical-align: middle; border-bottom: 1px solid #eceef0; text-align: left; }
.consultation-table thead th { color: #59616a; background: #fafafa; font-size: .7rem; font-weight: 650; }
.consultation-table th:nth-child(1), .consultation-table td:nth-child(1) { width: 120px; white-space: nowrap; }
.consultation-table th:nth-child(2), .consultation-table td:nth-child(2) { width: 105px; text-align: center; }
.consultation-table th:nth-child(4), .consultation-table td:nth-child(4) { width: 90px; }
.consultation-table th:nth-child(5), .consultation-table td:nth-child(5) { width: 45px; padding-inline: .25rem; text-align: center; }
.consultation-entry-row { background: #fbfcfd; }
.consultation-entry-row input, .consultation-entry-row select { width: 100%; min-height: 34px; padding: .38rem .45rem; border: 1px solid #dadddf; border-radius: .32rem; background: #fff; font-size: .78rem; }
.consultation-entry-row #consultation-hours { text-align: center; }
.inline-add-button { width: 30px; height: 30px; padding: 0; border: 1px solid #2d6da3; border-radius: 50%; color: #fff; background: #2d6da3; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.inline-add-button:hover { background: #245d91; }
.inline-add-button:disabled { border-color: #c9cdd1; background: #c9cdd1; cursor: not-allowed; }
.exam-history-card { box-shadow: none; }
.exam-history-table { min-width: 1480px; font-size: .76rem; }
.exam-history-table th, .exam-history-table td { padding: .48rem .52rem; vertical-align: middle; border-bottom: 1px solid #eceef0; }
.exam-history-table th { font-size: .68rem; }
.exam-history-table td:nth-child(1), .exam-history-table td:nth-child(3), .exam-history-table td:nth-child(4), .exam-history-table td:nth-child(5), .exam-history-table td:nth-child(6), .exam-history-table td:nth-child(7), .exam-history-table td:nth-child(8), .exam-history-table td:nth-child(9), .exam-history-table td:nth-child(10), .exam-history-table td:nth-child(12) { white-space: nowrap; }
.grade-state-fail, .grade-state-fail .final-grade-button { color: #b42318; }
.grade-state-corrected, .grade-state-corrected .final-grade-button { color: #18794e; }
.grade-state-exempt, .grade-state-exempt .final-grade-button { color: #18794e; }
.grade-state-waiting, .grade-state-waiting .final-grade-button { color: #9a6700; }
.button-link-danger { padding: .15rem .2rem; border: 0; background: transparent; color: #b42318; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.button-danger { border-color: #b42318; background: #fff; color: #b42318; }
.button-danger:hover { background: #fff4f2; }
@media (max-width: 850px) { .filter-bar, .compact-form, .journal-form, .assignment-form { grid-template-columns: 1fr 1fr; } .semester-journal-columns { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .semester-exam-grid { grid-template-columns: 1fr; } .exam-search-card { position: static; } }
@media (max-width: 640px) { .site-header, .page-heading { align-items: flex-start; flex-direction: column; } .page-heading-side { width: 100%; align-items: stretch; } .account { align-items: flex-start; flex-direction: column; } .login-card { margin-top: 1rem; } .filter-bar, .form-grid, .compact-form, .journal-form, .assignment-form { grid-template-columns: 1fr; } .summary-grid { grid-template-columns: 1fr 1fr; } .exam-overview { align-items: stretch; flex-direction: column; } .exam-summary-card { min-width: 0; } .exam-search-fields, .exam-fields-row { grid-template-columns: 1fr; } .exam-student-heading { flex-direction: column; } .journal-tabs-line { align-items: stretch; flex-direction: column; gap: 0; } .journal-tabs { overflow-x: auto; } .journal-tab { white-space: nowrap; } .textbook-inline, .textbook-inline-readonly { margin: 0 0 .55rem; white-space: normal; } .textbook-inline form { position: static; grid-template-columns: 1fr; width: 100%; margin-top: .5rem; } .textbook-inline form .button { grid-column: 1; } }
@media (max-width: 640px) { .admin-year-select { align-items: stretch; flex-direction: column; } .admin-year-select select { width: 100%; } .admin-year-create { grid-template-columns: 1fr; } .admin-year-details { width: 100%; border-left: 0; border-top: 1px solid #e2dae9; padding: .55rem 0 0; } }
@media (max-width: 820px) { .organization-minimal .admin-year-select { margin-left: 0; } .organization-list-heading { align-items: flex-start; flex-direction: column; } .journal-create-line, .journal-row { grid-template-columns: 1fr; } .journal-teachers { grid-template-columns: auto minmax(100px, 1fr); } .assignment-inline { grid-column: 1 / -1; } .assignment-inline select { flex: 1; } }
@media (max-width: 980px) { .compact-user-form { grid-template-columns: 1fr 1fr; } .compact-user-row summary { grid-template-columns: 1fr 130px 1fr; } .user-state { grid-column: 2; } }
@media (max-width: 640px) { .organization-minimal .admin-year-details, .inline-create, .journal-create-line, .assignment-inline { align-items: stretch; flex-direction: column; } .organization-minimal .admin-year-create { width: 100%; flex-direction: column; } .organization-minimal .admin-year-create input, .inline-create input, .inline-create select { width: 100%; } .journal-teachers { grid-template-columns: 1fr; } .teacher-names { white-space: normal; } }
@media (max-width: 640px) { .compact-user-row summary, .compact-user-form { grid-template-columns: 1fr; } .user-state { grid-column: auto; } }
