:root {
    --ink: #172923;
    --muted: #78877f;
    --green: #1d5b45;
    --green-dark: #154634;
    --mint: #e8f3ed;
    --line: #e8ece8;
    --paper: #fff;
    --canvas: #f5f7f4;
    --amber: #db9952;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 340px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.topbar {
    height: 72px;
    padding: 0 max(calc((100vw - 1440px) / 2), 5.3%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; font: 800 17px "Segoe UI", Arial, sans-serif; letter-spacing: .03em; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; background: var(--green); color: #fff; font: 800 17px "Segoe UI", Arial, sans-serif; }
.brand small { display: block; margin-top: 1px; color: var(--muted); font: 500 10px "Segoe UI", Arial, sans-serif; letter-spacing: .02em; }
.topbar-note { color: #859189; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.container { width: min(1440px, 89.4%); margin: 0 auto; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 38px 0 25px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Segoe UI", Arial, sans-serif; }
h1 { margin-bottom: 5px; font-size: clamp(26px, 3vw, 35px); letter-spacing: -.045em; }
.muted { margin: 0; color: var(--muted); font-size: 13px; }
.eyebrow { margin-bottom: 8px; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.eyebrow span { padding: 0 4px; color: var(--amber); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 41px; padding: 0 17px; border: 0; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 700; transition: background .18s, transform .18s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: var(--green-dark); }
.button-light { border: 1px solid #dfe7e0; background: #fff; color: var(--green); }
.button-wide { width: 100%; margin-top: 5px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.summary-card { min-height: 102px; display: flex; align-items: center; gap: 15px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.summary-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--mint); color: var(--green); font-size: 10px; font-weight: 700; }
.summary-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.summary-card strong { display: block; font: 800 22px "Segoe UI", Arial, sans-serif; letter-spacing: -.04em; }
.summary-card small { color: #9aa59f; font-size: 10px; }
.weight-card strong { font-size: 20px; }
.weight-card i { color: #a4b0a8; font: normal 12px "DM Sans", sans-serif; }
.content-grid { display: grid; grid-template-columns: minmax(345px, .82fr) minmax(520px, 1.5fr); align-items: start; gap: 17px; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.form-panel { padding: 21px 22px 22px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; }
.panel-heading .eyebrow { margin-bottom: 4px; }
.panel-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.035em; }
.text-link { color: var(--green); font-size: 11px; font-weight: 700; }
.student-fields { display: grid; grid-template-columns: 1.3fr .8fr; gap: 10px; padding: 14px; border-radius: 9px; background: #f7f9f7; }
.student-fields label { display: grid; gap: 6px; color: #67766e; font-size: 10px; font-weight: 600; }
.student-fields label:first-child { grid-column: span 2; }
.student-fields input { width: 100%; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid #e3e9e4; border-radius: 6px; outline: none; background: white; color: var(--ink); font-size: 11px; }
.student-fields input:focus, .score-row input:focus { border-color: #8eb6a1; box-shadow: 0 0 0 3px #e9f4ed; }
.score-group { margin-top: 20px; }
.group-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.group-number { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--mint); color: var(--green); font-size: 9px; font-weight: 700; }
.group-heading h3 { margin: 0 0 2px; font-size: 12px; }
.group-heading span { color: var(--muted); font-size: 9px; }
.score-rows { border-top: 1px solid var(--line); }
.score-row { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); color: #35433b; font-size: 10px; line-height: 1.4; }
.score-row > span { max-width: 80%; }
.score-row small { display: block; margin-top: 2px; color: #9aa59f; font-size: 9px; }
.score-row input { width: 74px; height: 32px; flex: 0 0 auto; padding: 0 6px; border: 1px solid #e3e9e4; border-radius: 6px; outline: none; color: var(--ink); text-align: center; font-size: 11px; }
.form-hint { margin: 13px 0 11px; color: var(--muted); font-size: 10px; }
.results-panel { min-height: 310px; }
.results-panel > .panel-heading { padding: 20px 21px 16px; }
.result-count { padding: 5px 9px; border-radius: 20px; background: #f0f5f1; color: #718078; font-size: 10px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead { background: #f8faf8; }
th { padding: 11px 9px; color: #8a968e; font-size: 8px; font-weight: 700; letter-spacing: .08em; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 21px; }
td { padding: 13px 9px; border-bottom: 1px solid #edf0ed; font-size: 10px; white-space: nowrap; }
td strong { display: block; font-size: 11px; font-weight: 700; }
.table-sub { display: block; margin-top: 4px; color: #97a29a; font-size: 9px; }
.final-score { padding: 5px 7px; border-radius: 6px; background: var(--mint); color: var(--green); font-size: 11px; font-weight: 700; }
.actions { display: flex; align-items: center; gap: 4px; padding-right: 14px; }
.actions form { display: inline-flex; margin: 0; }
.action-link { min-width: 30px; height: 29px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 9px; border: 0; border-radius: 4px; background: #6c757d; color: #fff; cursor: pointer; font: 600 10px "Segoe UI", Arial, sans-serif; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .15s; }
.action-link:hover { filter: brightness(.92); box-shadow: 0 2px 5px #00000020; transform: translateY(-1px); }
.action-link span { font-size: 12px; }
.report-action { background: #007bff; color: #fff; }
.view-action { background: #138496; color: #fff; }
.edit-action { background: #ffc107; color: #212529; }
.delete-link { background: #dc3545; color: #fff; }
.delete-link:hover { background: #bd2130; color: #fff; }
.formula-note { display: flex; align-items: center; gap: 11px; margin: 16px 20px 20px; padding: 12px; border-radius: 8px; background: #f6f8f6; }
.formula-note > span { color: var(--green); font: italic 700 17px Georgia, serif; }
.formula-note p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.formula-note strong { color: #34443b; font-size: 10px; }
.empty-state { padding: 53px 25px; text-align: center; }
.empty-icon { color: #b7cfc0; font-size: 27px; }
.empty-state h3 { margin: 9px 0 5px; font-size: 14px; }
.empty-state p { max-width: 250px; margin: auto; color: var(--muted); font-size: 10px; line-height: 1.6; }
.notice { margin-bottom: 16px; padding: 11px 14px; border-radius: 8px; font-size: 11px; }
.notice-success { border: 1px solid #d2e8d8; background: #edf8ef; color: #28603f; }
.notice-error { border: 1px solid #f1d7d4; background: #fff1ef; color: #98453d; }
footer { padding: 22px 0 27px; color: #a0aaa3; text-align: center; font-size: 9px; }
footer span { padding: 0 5px; color: var(--amber); }

.print-page { background: #f2f4f1; }
.print-sheet { max-width: 950px; margin: 30px auto; padding: 42px 48px; background: white; }
.print-actions { display: flex; justify-content: space-between; margin-bottom: 35px; }
.print-heading { padding-bottom: 20px; border-bottom: 3px solid #009fe3; text-align: center; color: #000; }
.print-school-logo { display: block; width: min(250px, 70%); height: auto; margin: 0 auto 15px; }
.print-heading > p { margin-bottom: 5px; color: #000; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.print-heading h1 { color: #000; font-size: 24px; }
.print-student { display: flex; justify-content: center; gap: 55px; margin-top: 20px; text-align: left; }
.print-student span { font-size: 12px; font-weight: 600; }
.print-student small { display: block; margin-bottom: 5px; color: #000; font-size: 8px; letter-spacing: .1em; }
.print-table { margin-top: 24px; }
.print-table th, .print-table td { padding: 9px 10px; border: 1px solid #dfe5df; font-size: 10px; white-space: normal; }
.print-table th { background: #35c9f4; color: #000; }
.print-table .print-section td { color: #000; font-weight: 800; }
.print-table .print-section-pengetahuan td { background: #69e58f; }
.print-table .print-section-sikap td { background: #ffd84d; }
.print-table .print-section-keterampilan td { background: #c99aff; }
.print-table .print-subtotal td { background: #b7eeff; color: #000; font-weight: 800; }
.print-table .print-total td { background: #ff9f43; color: #000; font-size: 12px; font-weight: 800; }
.print-formula { margin-top: 18px; color: #000; font-size: 10px; }
.signature { display: flex; justify-content: flex-end; margin-top: 55px; text-align: center; font-size: 10px; }
.signature-space { height: 70px; }
.signature strong { font-size: 10px; }

@media (max-width: 1050px) {
    .content-grid { grid-template-columns: minmax(300px, .9fr) minmax(0, 1.2fr); }
    .container { width: 92%; }
}
@media (max-width: 760px) {
    .topbar { height: 62px; padding: 0 4%; }
    .topbar-note { display: none; }
    .container { width: 92%; }
    .page-heading { align-items: start; padding: 28px 0 18px; }
    .summary-grid { grid-template-columns: 1fr; gap: 9px; }
    .summary-card { min-height: 78px; padding: 13px 15px; }
    .content-grid { grid-template-columns: 1fr; }
    .results-panel { grid-row: 1; }
    .form-panel { grid-row: 2; }
    .print-sheet { margin: 0; padding: 22px 15px; }
    .print-actions { margin-bottom: 22px; }
    .print-student { justify-content: space-between; gap: 12px; }
}
@media print {
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    .print-page { background: white; }
    .print-sheet { max-width: none; margin: 0; padding: 0; }
    .print-actions { display: none; }
    .print-school-logo { width: 220px; margin-bottom: 10px; }
    .print-table th, .print-table td { padding: 7px; font-size: 9px; }
    .signature { break-inside: avoid; }
}

.report-page { min-height: 100vh; padding: 28px 16px; background: #edf1ed; color: #000; font-family: "Segoe UI", Arial, sans-serif; }
.report-sheet { width: min(850px, 100%); min-height: 1040px; margin: 0 auto; padding: 38px 44px 28px; background: #fff; box-shadow: 0 5px 25px #19372616; }
.report-actions { display: flex; justify-content: space-between; margin-bottom: 25px; }
.report-header { display: grid; justify-items: center; gap: 5px; padding: 0 0 13px; border-bottom: 3px double #315c43; text-align: center; }
.report-school-logo { display: block; width: min(230px, 70%); height: auto; margin-bottom: 3px; }
.report-kicker { margin: 0 0 3px; color: #000; font-size: 9px; font-weight: 700; letter-spacing: .17em; }
.report-title { display: grid; justify-items: center; }
.report-header h1 { margin: 0; color: #000; font-size: 22px; letter-spacing: .035em; }
.report-subtitle { margin: 5px 0 0; color: #000; font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.report-identity { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 19px 0 22px; padding: 12px 15px; border: 2px solid #16b8e9; border-radius: 4px; background: #e8faff; }
.report-identity > div { min-height: 37px; display: grid; grid-template-columns: 145px 1fr; align-items: center; gap: 8px; border-bottom: 1px dotted #e1e7e1; }
.report-identity > div:nth-last-child(-n+2) { border-bottom: 0; }
.report-identity span { color: #000; font-size: 9px; font-weight: 600; }
.report-identity strong { color: #000; font-size: 10px; font-weight: 750; }
.report-section { margin-top: 20px; }
.report-section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.report-section-heading > span { width: 27px; height: 27px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #ffe066; color: #000; font-size: 9px; font-weight: 800; }
.report-section-heading h2, .report-note h2 { margin: 0 0 2px; color: #000; font-size: 12px; }
.report-section-heading p { margin: 0; color: #000; font-size: 8px; }
.report-summary, .report-detail { width: 100%; border-collapse: collapse; table-layout: fixed; }
.report-summary th, .report-summary td, .report-detail th, .report-detail td { padding: 7px 8px; border: 1px solid #dfe6df; font-size: 9px; text-align: center; white-space: normal; }
.report-summary th { background: #55d5f5; color: #000; font-size: 7px; letter-spacing: .04em; line-height: 1.5; }
.report-summary th:first-child, .report-summary td:first-child { width: 34%; text-align: left; }
.report-summary td { height: 38px; }
.report-summary td strong { font-size: 9px; }
.report-summary .report-final { background: #69e58f; color: #000; font-size: 14px; font-weight: 800; }
.report-detail-section { margin-top: 21px; }
.report-detail { table-layout: auto; }
.report-detail th, .report-detail td { padding: 5px 7px; font-size: 8px; line-height: 1.3; }
.report-detail th { background: #55d5f5; color: #000; font-size: 7px; letter-spacing: .05em; }
.report-detail th:first-child, .report-detail td:first-child { width: 7%; text-align: center; }
.report-detail th:nth-child(2) { width: 59%; text-align: left; }
.report-detail th:nth-child(n+3), .report-detail td:nth-child(n+3) { width: 11%; text-align: center; white-space: nowrap; }
.report-detail td:nth-child(2) { text-align: left; }
.report-detail .report-group td { padding: 6px 8px; color: #000; font-size: 8px; font-weight: 800; }
.report-group-pengetahuan td { background: #69e58f; }
.report-group-sikap td { background: #ffd84d; }
.report-group-keterampilan td { background: #c99aff; }
.report-group td span { margin-left: 8px; color: #000; font-size: 7px; font-weight: 600; }
.report-detail .report-subtotal td { background: #b7eeff; color: #000; font-weight: 800; }
.report-detail .report-total td { background: #ff9f43; color: #000; font-weight: 800; }
.report-note { margin-top: 17px; }
.report-note h2 { margin-bottom: 7px; }
.report-note-lines { height: 20px; border-bottom: 1px dotted #cfd8cf; }
.report-signatures { display: flex; justify-content: space-between; margin-top: 21px; text-align: center; }
.report-signatures > div { width: 210px; font-size: 9px; }
.report-signatures p { min-height: 12px; margin: 0 0 4px; }
.report-parent-signature div { height: 63px; }
.report-teacher-signature div { height: 37px; }
.report-signatures strong, .report-signatures small { display: block; font-size: 9px; }
.report-signatures small { margin-top: 3px; font-size: 8px; }
.report-footer { margin-top: 16px; padding-top: 8px; border-top: 1px solid #e4e9e4; color: #9aa49c; text-align: center; font-size: 7px; letter-spacing: .03em; }
.report-footer span { color: #57745e; }

.topbar-links { display: flex; align-items: center; gap: 18px; color: #64736a; font-size: 11px; }
.topbar-links a:hover { color: var(--green); }
.topbar-links span { padding-left: 16px; border-left: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.student-fields select, .master-fields select {
    width: 100%; min-width: 0; height: 36px; padding: 0 9px;
    border: 1px solid #e3e9e4; border-radius: 6px; outline: none;
    background: white; color: var(--ink); font-size: 11px;
}
.student-fields select:focus, .master-fields select:focus { border-color: #8eb6a1; box-shadow: 0 0 0 3px #e9f4ed; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.notice a { text-decoration: underline; font-weight: 700; }

.admin-body { min-height: 100vh; background: #f4f6f9; color: #343a40; font-family: "Segoe UI", Arial, sans-serif; }
.admin-topbar { height: 56px; position: fixed; z-index: 20; inset: 0 0 auto; display: flex; align-items: center; padding: 0 20px; background: #fff; box-shadow: 0 1px 3px #00000012; }
.admin-brand { width: 250px; display: flex; align-items: center; gap: 9px; color: #244934; font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.admin-brand span { padding: 3px 6px; border-radius: 3px; background: #e8f3ec; color: #32674d; font-size: 8px; letter-spacing: .08em; }
.sidebar-toggle { padding: 8px; border: 0; background: transparent; color: #66736b; cursor: pointer; font-size: 17px; }
.admin-user { margin-left: auto; display: flex; align-items: center; gap: 9px; color: #555f58; font-size: 12px; }
.admin-user a { margin-left: 9px; color: #68756c; }
.user-avatar { width: 30px; height: 30px; display: inline-grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e2eee6; color: #276141; font-size: 12px; font-weight: 700; }
.admin-sidebar { position: fixed; z-index: 15; inset: 56px auto 0 0; width: 250px; overflow-y: auto; padding: 14px 8px; background: #263b32; color: #d3ddd7; }
.sidebar-user { display: flex; align-items: center; gap: 11px; padding: 9px 10px 17px; border-bottom: 1px solid #ffffff20; }
.sidebar-user .user-avatar { background: #f1f5f2; color: #2b5940; }
.sidebar-user strong, .sidebar-user small { display: block; }
.sidebar-user strong { color: #fff; font-size: 12px; font-weight: 600; }
.sidebar-user small { margin-top: 4px; color: #a7b6ac; font-size: 10px; }
.nav-caption { margin: 20px 10px 7px; color: #92a499; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.side-link { min-height: 37px; display: flex; align-items: center; gap: 11px; margin: 2px 0; padding: 0 11px; border-radius: 4px; color: #cbd6cf; font-size: 12px; }
.side-link > span { width: 16px; color: #a8c3b0; text-align: center; font-size: 14px; }
.side-link:hover, .side-link.active { background: #3b594a; color: white; }
.side-link.active { box-shadow: inset 3px 0 #83c39a; }
.admin-main { min-height: 100vh; margin-left: 250px; padding: 86px 28px 35px; }
.admin-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.admin-page-heading .eyebrow { margin-bottom: 4px; }
.admin-page-heading h1 { margin: 0 0 5px; font-size: 25px; letter-spacing: -.025em; }
.admin-page-heading .muted { font-size: 12px; }
.admin-page-heading .button { min-height: 37px; font-size: 11px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 19px; }
.admin-stat { min-height: 105px; display: flex; align-items: center; gap: 13px; padding: 15px; border-radius: 4px; background: white; box-shadow: 0 1px 2px #00000012; }
.stat-symbol { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 4px; font-size: 19px; }
.stat-symbol.green { background: #e3f2e8; color: #318353; }
.stat-symbol.blue { background: #e3eff8; color: #3979a6; }
.stat-symbol.orange { background: #fbefdf; color: #bb792c; }
.stat-symbol.purple { background: #eee9f8; color: #795aa7; }
.admin-stat small, .admin-stat strong, .admin-stat div > span { display: block; }
.admin-stat small { color: #88938c; font-size: 8px; font-weight: 700; letter-spacing: .07em; }
.admin-stat strong { margin: 4px 0 2px; color: #303b34; font-size: 21px; }
.admin-stat strong.stat-year { font-size: 16px; }
.admin-stat div > span { color: #96a099; font-size: 9px; }
.admin-panel { overflow: hidden; border-radius: 4px; background: white; box-shadow: 0 1px 2px #00000012; }
.admin-panel-heading { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 17px; border-bottom: 1px solid #edf0ed; }
.admin-panel-heading h2 { margin: 0 0 4px; color: #38433c; font-size: 14px; font-weight: 600; }
.admin-panel-heading p { margin: 0; color: #939d96; font-size: 10px; }
.admin-panel .table-wrap { padding-bottom: 2px; }
.admin-panel th { background: #fafbfa; font-size: 8px; }
.admin-panel td { height: 47px; font-size: 10px; }
.admin-empty { padding: 34px 18px; color: #7d8b81; font-size: 12px; }
.admin-empty a { color: #286449; font-weight: 600; }
.master-layout { display: grid; grid-template-columns: minmax(230px, .75fr) minmax(0, 1.65fr); align-items: start; gap: 15px; }
.master-fields { display: grid; gap: 14px; padding: 17px; }
.master-fields > label:not(.checkbox-label) { display: grid; gap: 6px; color: #5d6861; font-size: 10px; font-weight: 600; }
.master-fields input:not([type=checkbox]) { height: 36px; width: 100%; padding: 0 9px; border: 1px solid #dfe5e0; border-radius: 4px; outline: none; font-size: 11px; }
.master-fields input:focus { border-color: #7fa98d; box-shadow: 0 0 0 2px #e9f3ec; }
.master-fields select { height: 36px; border-radius: 4px; }
.master-fields .button { min-height: 36px; border-radius: 4px; font-size: 11px; }
.optional { color: #9aa39c; font-size: 9px; font-weight: 400; }
.checkbox-label { display: flex; align-items: center; gap: 7px; color: #536057; font-size: 10px; }
.field-help { margin: -5px 0 0; color: #a15a4f; font-size: 10px; line-height: 1.5; }
.cancel-edit { color: #6d7b71; text-align: center; font-size: 10px; }
.active-pill, .inactive-pill { padding: 4px 8px; border-radius: 12px; background: #e7f4eb; color: #32754a; font-size: 9px; }
.inactive-pill { background: #f0f1f0; color: #7e8780; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: radial-gradient(ellipse at 20% 5%, #e9f1ea, transparent 40%), #f4f6f4; }
.login-card { width: min(390px, 100%); padding: 32px; border: 1px solid #e8ece8; border-radius: 10px; background: #fff; box-shadow: 0 15px 40px #183a2812; }
.login-school-logo { display: block; width: min(100%, 320px); height: auto; margin: 0 auto 20px; }
.login-brand { margin-bottom: 27px; }
.login-card .eyebrow { margin-bottom: 7px; }
.login-card h1 { margin-bottom: 6px; font-size: 25px; }
.login-card > .muted { font-size: 11px; }
.login-form { display: grid; gap: 14px; margin-top: 23px; }
.login-form label { display: grid; gap: 6px; color: #546159; font-size: 10px; font-weight: 600; }
.login-form input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #dfe6e0; border-radius: 6px; outline: none; }
.login-form input:focus { border-color: #80ae90; box-shadow: 0 0 0 3px #e9f4ed; }
.login-form .button { min-height: 41px; margin-top: 4px; }
.login-hint { margin: 18px 0 0; color: #88938c; text-align: center; font-size: 10px; }
.login-hint strong { color: #46604f; }

@media (max-width: 960px) {
    .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .master-layout { grid-template-columns: 1fr; }
    .topbar-links { gap: 10px; }
}
@media (max-width: 700px) {
    .admin-brand { width: auto; }
    .admin-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .sidebar-open .admin-sidebar { transform: translateX(0); }
    .admin-main { margin-left: 0; padding: 78px 13px 28px; }
    .admin-user { font-size: 0; }
    .admin-user a { font-size: 11px; }
    .admin-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .admin-stat { min-height: 85px; gap: 8px; padding: 10px; }
    .stat-symbol { width: 34px; height: 34px; font-size: 15px; }
    .admin-stat strong { font-size: 18px; }
    .admin-stat strong.stat-year { font-size: 13px; }
    .admin-page-heading h1 { font-size: 22px; }
    .topbar-links { display: none; }
}
@media (max-width: 600px) {
    .report-page { padding: 0; }
    .report-sheet { min-height: 100vh; padding: 20px 14px; }
    .report-school-logo { width: min(195px, 80%); }
    .report-header h1 { font-size: 16px; }
    .report-identity { grid-template-columns: 1fr; gap: 0; padding: 8px 10px; }
    .report-identity > div:nth-last-child(2) { border-bottom: 1px dotted #e1e7e1; }
    .report-identity > div { grid-template-columns: 125px 1fr; }
    .report-summary th, .report-summary td, .report-detail th, .report-detail td { padding: 5px 4px; font-size: 7px; }
    .report-detail th:nth-child(2) { width: 50%; }
    .report-detail th:nth-child(n+3), .report-detail td:nth-child(n+3) { width: 13%; }
}
@media print {
    @page { size: A4 portrait; margin: 12mm; }
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    .report-page { min-height: 0; padding: 0; background: white; }
    .report-sheet { width: auto; min-height: 0; margin: 0; padding: 0; box-shadow: none; }
    .report-actions { display: none; }
    .report-header { padding-bottom: 10px; }
    .report-school-logo { width: 185px; }
    .report-header h1 { font-size: 18px; }
    .report-identity { margin: 12px 0 14px; padding: 7px 12px; }
    .report-identity > div { min-height: 30px; grid-template-columns: 125px 1fr; }
    .report-section { margin-top: 13px; }
    .report-detail-section { margin-top: 14px; }
    .report-detail th, .report-detail td { padding: 4px 6px; font-size: 7.5px; }
    .report-note { margin-top: 12px; }
    .report-note-lines { height: 16px; }
    .report-signatures { margin-top: 14px; }
    .report-parent-signature div { height: 48px; }
    .report-teacher-signature div { height: 25px; }
    .report-footer { margin-top: 10px; }
}

.admin-body { background: #f4f6f9; color: #343a40; }
.admin-topbar { height: 57px; border-bottom: 1px solid #dee2e6; box-shadow: 0 1px 3px #00000012; }
.admin-brand { color: #343a40; font-size: 18px; font-weight: 600; }
.admin-brand span { border-radius: 2px; background: #e9ecef; color: #495057; }
.admin-sidebar { background: #343a40; }
.sidebar-user { border-color: #ffffff1a; }
.sidebar-user .user-avatar { background: #6c757d; color: #fff; }
.nav-caption { color: #adb5bd; }
.side-link { min-height: 39px; color: #c2c7d0; }
.side-link > span { color: #adb5bd; }
.side-link:hover, .side-link.active { background: #007bff; color: #fff; }
.side-link.active { box-shadow: none; }
.admin-main { padding: 82px 28px 36px; }
.admin-page-heading { margin-bottom: 23px; }
.admin-page-heading h1 { color: #343a40; font-size: 27px; font-weight: 500; letter-spacing: -.025em; }
.admin-page-heading .eyebrow { color: #6c757d; font-size: 9px; }
.admin-body .button { min-height: 38px; border-radius: 3px; }
.admin-body .button-primary { background: #007bff; }
.admin-body .button-primary:hover { background: #0069d9; }
.admin-body .admin-stat { border-radius: 3px; box-shadow: 0 1px 3px #0000001a; }
.admin-body .stat-symbol { border-radius: 3px; }
.admin-body .admin-stat:nth-child(1) { border-left: 4px solid #00a843; background: #64e68e; }
.admin-body .admin-stat:nth-child(2) { border-left: 4px solid #008fc4; background: #55d5f5; }
.admin-body .admin-stat:nth-child(3) { border-left: 4px solid #d99a00; background: #ffdc52; }
.admin-body .admin-stat:nth-child(4) { border-left: 4px solid #7135bd; background: #c99aff; }
.admin-body .admin-stat small,
.admin-body .admin-stat strong,
.admin-body .admin-stat div > span { color: #000; }
.admin-body .admin-stat:nth-child(1) .stat-symbol { background: #38ce69; color: #000; }
.admin-body .admin-stat:nth-child(2) .stat-symbol { background: #25c2e9; color: #000; }
.admin-body .admin-stat:nth-child(3) .stat-symbol { background: #ffc629; color: #000; }
.admin-body .admin-stat:nth-child(4) .stat-symbol { background: #b778f2; color: #000; }
.admin-body .admin-panel, .admin-body .panel { border: 0; border-radius: 3px; box-shadow: 0 1px 3px #0000001a; }
.admin-body .admin-panel-heading { min-height: 62px; }
.admin-body .panel-heading { padding: 18px 20px 14px; border-bottom: 1px solid #edf0f2; }
.admin-body .panel-heading .eyebrow { color: #6c757d; }
.admin-body .panel-heading h2 { color: #343a40; font-size: 16px; font-weight: 600; }
.admin-body .form-panel { padding: 0 20px 20px; }
.admin-body .results-panel { min-height: 0; }
.admin-body .results-panel > .panel-heading { padding: 18px 20px 14px; }
.admin-body .student-fields { border-radius: 3px; background: #f8f9fa; }
.admin-body .student-fields label, .admin-body .master-fields > label:not(.checkbox-label) { color: #495057; font-size: 11px; }
.admin-body .student-fields input, .admin-body .student-fields select,
.admin-body .score-row input, .admin-body .master-fields input:not([type=checkbox]),
.admin-body .master-fields select { border-radius: 3px; }
.admin-body .score-group { margin-top: 17px; }
.admin-body .group-number { border-radius: 3px; background: #e9ecef; color: #495057; }
.admin-body .score-row { font-size: 11px; }
.admin-body .score-row small { color: #6c757d; }
.admin-body th { background: #f8f9fa; color: #6c757d; font-size: 9px; }
.admin-body td { color: #495057; font-size: 11px; }
.admin-body td strong { color: #343a40; font-size: 12px; }
.admin-body .final-score { border-radius: 3px; background: #e8f4ec; color: #287344; }
.admin-body .formula-note { border-radius: 3px; background: #f8f9fa; }
.admin-body .notice { border-radius: 3px; }

@media (max-width: 1100px) {
    .admin-body .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .admin-main { padding: 78px 13px 28px; }
    .admin-page-heading { align-items: flex-start; }
    .admin-page-heading .button { min-height: 34px; padding: 0 10px; font-size: 10px; }
    .admin-body .form-panel { padding: 0 14px 16px; }
    .admin-body .results-panel > .panel-heading { padding-right: 14px; padding-left: 14px; }
}
