:root {
  --color-bg: #e7eef4;
  --color-surface: #ffffff;
  --color-primary: #153f68;
  --color-primary-dark: #0c2239;
  --color-danger: #c6163b;
  --color-warning: #b87521;
  --color-warning-bg: #fff2dd;
  --color-success: #16845e;
  --color-text: #20262e;
  --color-text-muted: #5e6873;
  --color-border: #cbd3dc;
  --radius: 8px;
  --tap-min: 48px;
  --spacing: 16px;
  font-size: 16px;
}

/* Askıya alınan yerel e-Okul veli aktarım eklentisinin eski panelini gizle. */
#methales-eokul-roster-source { display: none !important; }

/* Ders bazli ogretmen degerlendirme cizelgesi */
.course-eval-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; width: 100%; min-width: 0; max-width: 100%; margin: 0 auto; overflow: hidden; }
main:has(.course-eval-page) { min-width: 0; overflow-x: hidden; }
.course-eval-page > *, .course-eval-context > *, .course-eval-matrix-toolbar > * { min-width: 0; max-width: 100%; }
.course-eval-header { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 20px; align-items: end; padding: 18px 4px 10px; border-bottom: 2px solid #173d72; background: transparent; }
.course-eval-header h2 { margin: 4px 0 0; color: #102d58; font-size: 30px; }
.course-eval-header p { margin: 0; color: #526173; line-height: 1.55; }
.course-eval-kicker { color: #1d5c96; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.course-eval-context { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; align-items: start; padding: 14px; border: 1px solid #d7e1e9; border-radius: 6px; background: #fff; }
.course-eval-context:not(.management) .course-eval-control:nth-child(1) { grid-column: span 5; }
.course-eval-context:not(.management) .course-eval-control:nth-child(2) { grid-column: span 2; }
.course-eval-context:not(.management) .course-eval-week-picker { grid-column: span 5; }
.course-eval-context.management .course-eval-control:nth-child(1) { grid-column: span 3; }
.course-eval-context.management .course-eval-control:nth-child(2) { grid-column: span 4; }
.course-eval-context.management .course-eval-control:nth-child(3) { grid-column: span 2; }
.course-eval-context.management .course-eval-week-picker { grid-column: span 3; }
.course-eval-context select, .course-eval-matrix-toolbar input { width: 100%; min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.course-eval-context label, .course-eval-note-grid label, .course-eval-free-fields label, .course-eval-assessment label { display: grid; gap: 6px; font-weight: 700; color: #203650; }
.course-eval-context label, .course-eval-context select, .course-eval-week-picker, .course-eval-matrix-toolbar > label, .course-eval-matrix-toolbar input { margin: 0; }
.course-eval-control, .course-eval-week-picker { grid-template-rows: 20px 48px; align-self: start; }
.course-eval-context select { height: 48px; min-height: 48px; border-color: #cbd5df; background: #fff; }
.course-eval-auto-hint { min-height: 24px; margin: 0; color: #176748; font-size: 11px; font-weight: 700; line-height: 1.2; }
.course-eval-context .course-eval-auto-hint.hidden { display: block; visibility: hidden; }
.course-eval-field-spacer { display: none; }
.course-eval-principle { display: grid; align-content: center; gap: 4px; min-height: 94px; padding: 12px 14px; border-left: 3px solid #2b76b7; background: #f4f8fb; }
.course-eval-principle span { color: #5b6877; font-size: 13px; line-height: 1.35; }
.course-eval-week-picker { display: grid; gap: 6px; color: #203650; font-weight: 700; }
.course-eval-week-picker > div { display: grid; grid-template-columns: 40px 1fr 40px; height: 48px; min-height: 48px; align-items: center; overflow: hidden; border: 1px solid #cbd5df; border-radius: 6px; background: #fff; }
.course-eval-week-picker button { height: 100%; border: 0; background: #edf3f8; color: #173d72; font-size: 23px; cursor: pointer; }
.course-eval-week-picker strong { padding: 0 8px; text-align: center; font-size: 12px; }
.course-eval-recorder, .course-eval-roster { border-radius: 6px; }
.course-eval-summary { min-height: 94px; padding: 14px 16px; border-left: 4px solid #173d72; }
.course-eval-matrix-summary { min-height: 0; border-bottom: 1px solid #dce4eb; background: #fff; }
.course-eval-preview-banner { display: grid; grid-template-columns: 196px minmax(170px, .35fr) minmax(0, 1fr); gap: 14px; align-items: center; min-height: 60px; padding: 10px 14px; border-left: 4px solid #1b6f54; background: #edf7f2; color: #173d72; }
.course-eval-preview-banner span { align-self: stretch; display: grid; place-items: center; padding: 5px 10px; background: #1b6f54; color: #fff; font-size: 11px; font-weight: 800; text-align: center; text-transform: uppercase; }
.course-eval-preview-banner strong { font-size: 15px; }
.course-eval-preview-banner small { color: #526b62; }
.course-eval-summary .course-eval-section-head { margin-bottom: 0; }
.course-eval-summary .course-eval-section-head > div:last-child { display: grid; gap: 3px; text-align: right; color: #1b527f; }
.course-eval-section-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; }
.course-eval-section-head span { color: #55708b; font-size: 13px; font-weight: 700; }
.course-eval-section-head h3 { margin: 1px 0 0; color: #15375f; font-size: 21px; }
.course-eval-section-head small { display: block; margin-top: 4px; color: #65788b; }
.course-eval-section-head > strong { color: #1b527f; }
.course-eval-criterion-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.course-eval-criterion-group { padding: 14px; border: 1px solid #dbe4ec; background: #fff; }
.course-eval-criterion-group h4 { margin: 0 0 10px; font-size: 14px; }
.course-eval-criterion-group.positive h4 { color: #176748; }
.course-eval-criterion-group.development h4 { color: #9a4c25; }
.course-eval-criterion-group > div { display: flex; flex-wrap: wrap; gap: 7px; }
.course-eval-criterion { padding: 8px 10px; border: 1px solid #ccd7e1; border-radius: 4px; background: #f8fafc; color: #263c54; text-align: left; cursor: pointer; }
.course-eval-criterion:hover { border-color: #477aa6; }
.course-eval-criterion.active { border-color: #173d72; background: #173d72; color: #fff; box-shadow: 0 0 0 2px rgba(23,61,114,.12); }
.course-eval-free-toggle { margin-top: 12px; padding: 0; border: 0; background: transparent; color: #195c94; font-weight: 800; cursor: pointer; }
.course-eval-free-fields { display: grid; grid-template-columns: 1fr 200px; gap: 12px; margin-top: 12px; padding: 12px; border-left: 3px solid #477aa6; background: #f7f9fb; }
.course-eval-note-grid { display: grid; grid-template-columns: 180px 1fr; gap: 12px; margin-top: 14px; }
.course-eval-savebar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #dce4eb; }
.course-eval-roster-tools { display: grid; grid-template-columns: 180px minmax(220px, 420px); justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.course-eval-check-all { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.course-eval-student { border-top: 1px solid #e1e7ed; }
.course-eval-student-main { display: grid; grid-template-columns: minmax(220px, 1fr) auto 80px; gap: 14px; align-items: center; min-height: 58px; }
.course-eval-student-main > label { display: flex; gap: 11px; align-items: center; }
.course-eval-student-main > label span { display: grid; }
.course-eval-student-main small { color: #718092; }
.course-eval-counts { display: flex; align-items: center; gap: 8px; }
.course-eval-counts span { min-width: 42px; padding: 4px 7px; border-radius: 3px; text-align: center; font-weight: 800; font-size: 12px; }
.course-eval-counts .positive { color: #176748; background: #e9f5ef; }
.course-eval-counts .development { color: #93441e; background: #fff0e8; }
.course-eval-counts .score { color: #fff; background: #173d72; }
.course-eval-detail-button { border: 0; background: transparent; color: #245f91; font-weight: 800; cursor: pointer; }
.course-eval-student-detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; padding: 14px 12px 18px 34px; background: #f8fafc; border-top: 1px solid #dce5ed; }
.course-eval-history h4, .course-eval-assessment h4 { margin: 0 0 8px; color: #173d72; }
.course-eval-history-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid #dce4eb; }
.course-eval-history-row span { display: grid; gap: 2px; }
.course-eval-history-row small { color: #6c7a89; }
.course-eval-history-row p { margin: 4px 0 0; }
.course-eval-history-row.olumlu strong { color: #176748; }
.course-eval-history-row.gelisim strong { color: #93441e; }
.course-eval-delete { width: 28px; height: 28px; border: 1px solid #d9a99d; border-radius: 50%; background: #fff; color: #a33424; cursor: pointer; }
.course-eval-assessment { display: grid; gap: 10px; padding: 14px; border: 1px solid #d8e1e9; background: #fff; }
.course-eval-assessment p { margin: 0; color: #687687; font-size: 13px; }
.course-eval-assessment textarea { min-height: 82px; resize: vertical; }
.course-eval-free-entry { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(180px, 1fr) 150px minmax(220px, 1.4fr) auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid #d8e1e9; background: #fff; }
.course-eval-free-entry h4 { grid-column: 1 / -1; margin: 0; color: #173d72; }
.course-eval-free-entry label { display: grid; gap: 5px; color: #334b63; font-weight: 700; }
.parent-course-evaluation-card > .muted { margin-top: -4px; }
.parent-course-result, .parent-course-evidence { align-items: flex-start; gap: 14px; }
.parent-course-score { display: grid; place-items: center; min-width: 46px; height: 46px; border-radius: 50%; background: #173d72; color: #fff; font-size: 18px; font-weight: 800; }
.parent-course-evidence > span { padding: 5px 8px; border-radius: 4px; font-size: 12px; font-weight: 800; }
.parent-course-evidence.olumlu > span { color: #176748; background: #e9f5ef; }
.parent-course-evidence.gelisim > span { color: #93441e; background: #fff0e8; }
.parent-course-evidence p, .parent-course-result p { margin: 6px 0 0; }
.course-eval-matrix-card { width: 100%; min-width: 0; max-width: 100%; padding: 0; overflow: hidden; border-radius: 6px; }
.course-eval-matrix-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: end; padding: 12px 14px; border-bottom: 1px solid #dce4eb; background: #fff; }
.course-eval-matrix-toolbar > label { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(170px, .85fr); align-items: center; gap: 12px; min-height: 48px; color: #203650; font-weight: 700; }
.course-eval-matrix-toolbar > label > span { line-height: 1.25; }
.course-eval-matrix-toolbar input { height: 44px; min-height: 44px; background: #fff; }
.course-eval-matrix-toolbar > label input { margin: 0; }
.course-eval-matrix-toolbar input[type="date"] { display: block; box-sizing: border-box; inline-size: 100% !important; width: 100% !important; min-inline-size: 0 !important; min-width: 0 !important; max-inline-size: 100% !important; max-width: 100% !important; }
.course-eval-matrix-toolbar input[type="date"]::-webkit-date-and-time-value { min-width: 0; margin: 0; text-align: center; }
.course-eval-matrix-action { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(170px, .85fr); align-items: center; gap: 12px; min-width: 0; min-height: 48px; }
.course-eval-matrix-action > span { display: grid; gap: 2px; color: #203650; font-size: 12px; font-weight: 700; line-height: 1.15; }
.course-eval-matrix-action > span small { color: #5e6d7c; font-size: 12px; font-weight: 500; }
.course-eval-matrix-savebar { display: flex; align-items: center; min-height: 44px; }
.course-eval-matrix-savebar span { color: #5e6d7c; white-space: nowrap; }
.course-eval-matrix-savebar .app-save-button { box-sizing: border-box; width: 100%; height: 48px; min-height: 48px; padding: 8px 10px; font-size: 14px; white-space: nowrap; }
.course-eval-matrix-mode { justify-self: end; padding: 8px 10px; border-left: 3px solid #173d72; background: #edf3f8; color: #173d72; font-size: 12px; font-weight: 800; }
.course-eval-matrix-legend { display: flex; gap: 6px; padding: 7px 12px; background: #f7f9fb; }
.course-eval-matrix-legend button { min-height: 32px; padding: 5px 9px; border: 1px solid #cbd6e0; border-radius: 4px; background: #fff; color: #607183; font-size: 12px; font-weight: 800; cursor: pointer; }
.course-eval-matrix-legend button::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 2px; }
.course-eval-matrix-legend button[data-matrix-filter="all"]::before { background: #667b90; }
.course-eval-matrix-legend .olumlu::before { background: #269565; }
.course-eval-matrix-legend .gelisim::before { background: #d07846; }
.course-eval-matrix-legend button.active { border-color: #173d72; color: #173d72; box-shadow: inset 0 -2px 0 #173d72; }
.course-eval-matrix-scroll { width: 100%; min-width: 0; max-width: 100%; max-height: min(62vh, 620px); overflow: auto; overscroll-behavior-x: contain; overscroll-behavior-y: auto; scrollbar-gutter: stable; touch-action: pan-x pan-y; }
.course-eval-matrix-table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.course-eval-matrix-table th, .course-eval-matrix-table td { border-right: 1px solid #e0e6ec; border-bottom: 1px solid #e0e6ec; }
.course-eval-matrix-table thead th { position: sticky; top: 0; z-index: 3; width: 80px; min-width: 80px; height: 64px; padding: 5px; background: #f4f7fa; color: #30465d; font-size: 9px; line-height: 1.15; text-align: center; vertical-align: bottom; }
.course-eval-matrix-table thead th.olumlu { border-top: 4px solid #269565; }
.course-eval-matrix-table thead th.gelisim { border-top: 4px solid #d07846; }
.course-eval-matrix-table.show-only-olumlu .gelisim, .course-eval-matrix-table.show-only-gelisim .olumlu { display: none; }
.course-eval-matrix-table .course-eval-matrix-student { position: sticky; left: 0; z-index: 2; width: 204px; min-width: 204px; background: #fff; text-align: left; }
.course-eval-matrix-table thead .course-eval-matrix-student { z-index: 5; padding: 9px; vertical-align: middle; font-size: 12px; }
.course-eval-matrix-row:hover .course-eval-matrix-student { background: #f7fafc; }
.course-eval-matrix-student { height: 50px; padding: 1px 6px 1px 2px; }
.course-eval-student-identity { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 7px; align-items: center; min-width: 0; }
.course-eval-matrix-table .student-photo-course { width: 40px; height: 49px; }
.course-eval-student-copy { display: grid; align-content: center; min-width: 0; }
.course-eval-matrix-student .course-eval-detail-button { display: grid; width: 100%; min-height: 28px !important; padding: 0; line-height: 1.15; text-align: left; }
.course-eval-matrix-student .course-eval-detail-button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #173d72; font-size: 12px; }
.course-eval-matrix-student .course-eval-detail-button small { color: #708091; font-size: 10px; }
.course-eval-matrix-student .course-eval-detail-button.open strong { text-decoration: underline; }
.course-eval-matrix-student .course-eval-counts { margin-top: 2px; gap: 4px; }
.course-eval-matrix-student .course-eval-counts span { min-width: 32px; padding: 1px 4px; font-size: 10px; line-height: 1.1; }
.course-eval-matrix-cell { width: 80px; min-width: 80px; height: 44px; padding: 0; background: #fff; text-align: center; }
.course-eval-matrix-cell label { display: grid; place-items: center; width: 100%; height: 100%; cursor: pointer; }
.course-eval-matrix-cell input { position: absolute; opacity: 0; pointer-events: none; }
.course-eval-matrix-cell input:disabled + span { cursor: default; }
.course-eval-matrix-cell label span { display: grid; place-items: center; width: 25px; height: 25px; border: 2px solid #c7d1db; border-radius: 4px; background: #fff; color: transparent; font-size: 14px; font-weight: 900; transition: background .12s ease, border-color .12s ease, color .12s ease; }
.course-eval-matrix-cell:hover label span { border-color: #66829d; }
.course-eval-matrix-cell.olumlu.selected { background: #eef8f3; }
.course-eval-matrix-cell.gelisim.selected { background: #fff4ed; }
.course-eval-matrix-cell.olumlu.selected label span { border-color: #208458; background: #208458; color: #fff; }
.course-eval-matrix-cell.gelisim.selected label span { border-color: #bd6335; background: #bd6335; color: #fff; }
.course-eval-matrix-detail-row td { padding: 0; background: #f8fafc; }
.course-eval-matrix-detail-row .course-eval-student-detail { border-top: 0; }
.course-eval-mobile-toggle, .course-eval-mobile-hint { display: none; }
@media (min-width: 761px) and (max-width: 980px) {
  .course-eval-context, .course-eval-context.management { grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr); }
  .course-eval-context > * { grid-column: auto !important; }
  .course-eval-principle { grid-column: 1 / -1; min-height: 72px; }
  .course-eval-matrix-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-eval-matrix-action, .course-eval-matrix-mode { justify-self: stretch; }
  .course-eval-matrix-savebar { justify-content: space-between; }
}
@media (min-width: 981px) {
  .course-eval-matrix-scroll { max-height: clamp(680px, 82vh, 960px); }
}
@media (max-width: 760px) {
  .course-eval-page { gap: 8px; width: 100%; min-width: 0; max-width: 100%; margin-left: 0; overflow: hidden; }
  .course-eval-page > *, .course-eval-context > *, .course-eval-section-head > *, .course-eval-matrix-toolbar > * { min-width: 0; max-width: 100%; }
  .course-eval-header, .course-eval-context, .course-eval-criterion-groups, .course-eval-free-fields, .course-eval-note-grid, .course-eval-student-detail { grid-template-columns: 1fr; }
  .course-eval-context.management { grid-template-columns: 1fr; }
  .course-eval-context > * { grid-column: 1 !important; }
  .course-eval-preview-banner { grid-template-columns: 1fr; }
  .course-eval-preview-banner span { grid-row: auto; justify-self: start; place-items: center; }
  .course-eval-header { gap: 5px; padding: 8px 2px; }
  .course-eval-header h2 { font-size: 21px; line-height: 1.15; overflow-wrap: anywhere; }
  .course-eval-header p { font-size: 13px; line-height: 1.4; }
  .course-eval-context { gap: 8px; padding: 9px; }
  .course-eval-control { grid-template-rows: 20px 48px auto; }
  .course-eval-week-picker { grid-template-rows: auto 48px; }
  .course-eval-field-spacer { display: none; }
  .course-eval-context .course-eval-auto-hint.hidden { display: none; }
  .course-eval-context label, .course-eval-context select, .course-eval-matrix-toolbar label, .course-eval-matrix-toolbar input { width: 100%; min-width: 0; max-width: 100%; }
  .course-eval-context select, .course-eval-matrix-toolbar input { min-height: 44px; font-size: 16px; text-overflow: ellipsis; }
  .course-eval-week-picker > div { min-height: 44px; }
  .course-eval-week-picker button { width: 44px; font-size: 25px; }
  .course-eval-principle { padding: 8px 10px; }
  .course-eval-summary { padding: 9px 10px; }
  .course-eval-section-head { align-items: flex-start; }
  .course-eval-section-head h3 { font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
  .course-eval-summary .course-eval-section-head > div:last-child { min-width: 72px; }
  .course-eval-roster-tools { grid-template-columns: 1fr; }
  .course-eval-student-main { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 0; }
  .course-eval-counts { grid-column: 1; padding-left: 28px; }
  .course-eval-detail-button { grid-column: 2; grid-row: 1 / span 2; }
  .course-eval-student-detail { padding-left: 12px; }
  .course-eval-savebar { align-items: stretch; flex-direction: column; }
  .course-eval-matrix-card { overflow: hidden; padding-bottom: 0; border: 0; background: transparent; box-shadow: none; }
  .course-eval-matrix-toolbar { grid-template-columns: 1fr; gap: 8px; padding: 9px; border-top: 0; border-right: 1px solid #dce4eb; border-bottom: 1px solid #dce4eb; border-left: 1px solid #dce4eb; border-radius: 0 0 7px 7px; }
  .course-eval-matrix-toolbar > label, .course-eval-matrix-action { grid-template-columns: minmax(0, 1fr) minmax(0, 148px); gap: 8px; min-width: 0; max-width: 100%; min-height: 48px; overflow: hidden; }
  .course-eval-matrix-toolbar input[type="date"] { -webkit-appearance: none; appearance: none; height: 48px; min-height: 48px; padding: 8px 9px; font-size: 16px; text-align: center; }
  .course-eval-matrix-action, .course-eval-matrix-mode { grid-column: 1 / -1; }
  .course-eval-matrix-mode { justify-self: stretch; min-height: 42px; display: grid; align-items: center; text-align: center; }
  .course-eval-matrix-savebar { position: static; justify-content: space-between; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .course-eval-matrix-savebar span { color: #5e6d7c; }
  .course-eval-matrix-savebar .app-save-button { min-height: 44px; min-width: 0; }
  .course-eval-matrix-legend { position: sticky; top: 0; z-index: 8; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 7px 0; background: var(--color-bg); }
  .course-eval-matrix-legend button { min-height: 42px; padding: 6px 4px; font-size: 12px; }
  .course-eval-mobile-hint { display: grid; gap: 1px; margin: 0 0 6px; padding: 7px 9px; border-left: 3px solid #2b76b7; background: #eef4f9; color: #173d72; }
  .course-eval-mobile-hint span { color: #637486; font-size: 12px; }
  .course-eval-matrix-scroll { max-height: none; overflow: visible; overscroll-behavior: auto; touch-action: auto; }
  .course-eval-matrix-table, .course-eval-matrix-table tbody { display: block; width: 100%; min-width: 0; }
  .course-eval-matrix-table thead { display: none; }
  .course-eval-matrix-row { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 6px; overflow: hidden; border: 1px solid #d6e0e9; border-radius: 7px; background: #fff; box-shadow: 0 2px 7px rgba(20,48,78,.05); }
  .course-eval-matrix-table .course-eval-matrix-student { position: static; grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; width: auto; min-width: 0; height: 52px; min-height: 52px; max-height: 52px; padding: 1px 5px 1px 2px; overflow: hidden; border-right: 0; background: #fff; }
  .course-eval-student-identity { grid-column: 1; grid-row: 1; grid-template-columns: 40px minmax(0, 1fr); gap: 6px; }
  .course-eval-matrix-table .student-photo-course { width: 40px; height: 49px; }
  .course-eval-matrix-student .course-eval-detail-button { min-width: 0; min-height: 26px !important; }
  .course-eval-matrix-student .course-eval-detail-button strong { font-size: 12px; }
  .course-eval-matrix-student .course-eval-detail-button small { font-size: 10px; }
  .course-eval-matrix-student .course-eval-counts { margin: 1px 0 0; padding: 0; gap: 3px; }
  .course-eval-matrix-student .course-eval-counts span { min-width: 29px; padding: 0 3px; font-size: 9px; }
  .course-eval-mobile-toggle { position: relative; grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 72px; height: 40px; min-height: 40px; padding: 3px 16px 3px 5px; border: 1px solid #bfd0df; border-radius: 6px; background: #f4f8fb; color: #174f7e; cursor: pointer; }
  .course-eval-mobile-toggle strong { font-size: 12px; line-height: 1.1; }
  .course-eval-mobile-toggle::after { content: "⌄"; position: absolute; right: 6px; top: 50%; font-size: 15px; line-height: 1; transform: translateY(-50%); }
  .course-eval-mobile-toggle[aria-expanded="true"] { border-color: #173d72; background: #173d72; color: #fff; }
  .course-eval-mobile-toggle[aria-expanded="true"]::after { content: "⌃"; }
  .course-eval-mobile-selection-count { font-size: 10px; font-weight: 700; opacity: .82; }
  .course-eval-matrix-cell { display: none; align-items: center; justify-content: space-between; gap: 7px; width: auto; min-width: 0; height: auto; min-height: 46px; padding: 2px 7px; border-right: 0; text-align: left; }
  .course-eval-matrix-row.mobile-open .course-eval-matrix-cell { display: flex; }
  .course-eval-matrix-cell::before { content: attr(data-label); display: -webkit-box; flex: 1; overflow: hidden; color: #30465d; font-size: 12px; font-weight: 700; line-height: 1.15; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .course-eval-matrix-cell label { flex: 0 0 44px; width: 44px; height: 44px; margin: 0; }
  .course-eval-matrix-cell label span { width: 28px; height: 28px; border-radius: 5px; }
  .course-eval-matrix-cell.olumlu { border-left: 3px solid #269565; }
  .course-eval-matrix-cell.gelisim { border-left: 3px solid #d07846; }
  .course-eval-matrix-detail-row:not(.hidden) { display: block; margin: -6px 0 6px; border: 1px solid #d6e0e9; border-top: 0; }
  .course-eval-matrix-detail-row td { display: block; width: 100%; }
  .course-eval-matrix-detail-row .course-eval-student-detail { padding: 12px; }
  .course-eval-free-entry { grid-template-columns: 1fr; }
  .course-eval-free-entry h4 { grid-column: 1; }
}

@font-face {
  font-family: "Sekuya";
  src: url("/assets/fonts/Sekuya-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  padding-bottom: env(safe-area-inset-bottom);
}

body.menu-open {
  overflow-y: auto;
  overflow-x: hidden;
}

.mobile-viewport-warning {
  --warning-scale: var(--mobile-warning-scale, 2);
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: calc((100vw - 20px) / var(--warning-scale));
  padding: 14px;
  border: 2px solid #d8a421;
  border-radius: 7px;
  background: #fff9df;
  color: #17374c;
  box-shadow: 0 18px 48px rgba(9, 28, 42, .3);
  transform: scale(var(--warning-scale));
  transform-origin: top left;
}
.mobile-viewport-warning strong { display: block; font-size: 1.05rem; }
.mobile-viewport-warning p { margin: 4px 0 0; font-size: .9rem; line-height: 1.35; }
.mobile-viewport-warning-actions { display: flex; gap: 6px; }
.mobile-viewport-warning button { width: auto; min-height: 38px; padding: 7px 10px; border: 1px solid #365b70; background: #0c4968; color: #fff; font-size: .82rem; }
.mobile-viewport-warning button:last-child { background: #fff; color: #29475a; }

#app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #0c4968;
  border-bottom: 1px solid #3d8da2;
  color: #fff;
  padding: 14px var(--spacing);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, .16),
    inset 0 -1px rgba(7, 27, 50, .3),
    0 3px 12px rgba(13, 37, 65, .18);
}

header.app-header h1 {
  font-size: 1.05rem;
  margin: 0;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}
.app-brand-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: .08em;
}
.app-brand-mark {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

header.app-header .user-badge {
  font-size: 0.8rem;
  opacity: 0.9;
  text-align: right;
  max-width: 42%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-print-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid rgba(203, 211, 220, .5);
  border-radius: 7px;
  background: rgba(211, 218, 226, .09);
  color: #fff;
  font-size: .8rem;
}

.teacher-settings-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 7px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.teacher-settings-toggle span {
  font-size: 1.32rem;
  line-height: 1;
}
.teacher-settings-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, .22); }
.header-notification-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 7px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.header-notification-icon { position: relative; width: 19px; height: 20px; overflow: visible; color: transparent; }
.header-notification-icon::before { content: ""; position: absolute; left: 3px; right: 3px; top: 2px; height: 12px; border: 2px solid #fff; border-bottom: 0; border-radius: 9px 9px 4px 4px; }
.header-notification-icon::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 3px; height: 2px; border-radius: 2px; background: #fff; box-shadow: 7px 4px 0 -1px #fff; }
.header-notification-toggle b { position: absolute; top: -5px; right: -5px; display: grid; min-width: 19px; min-height: 19px; place-items: center; padding: 2px 4px; border: 2px solid #0c4968; border-radius: 12px; background: #c6163b; color: #fff; font-size: .6rem; line-height: 1; }
.header-notification-toggle b[hidden] { display: none !important; }
.header-notification-panel { position: absolute; top: calc(100% + 6px); right: var(--spacing); z-index: 45; width: min(390px, calc(100vw - 20px)); max-height: min(520px, calc(100vh - 90px)); overflow-y: auto; border: 1px solid #b9cbd5; border-radius: 7px; background: #f8fbfc; color: #173e56; box-shadow: 0 18px 48px rgba(8, 34, 50, .28); }
.header-notification-panel-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-bottom: 1px solid #d3e0e6; background: #fff; }
.header-notification-panel-head strong { font-size: .85rem; }
.header-notification-panel-head button { width: auto; min-height: 30px; padding: 5px 8px; border: 0; background: transparent; color: #27657f; font-size: .66rem; font-weight: 800; }
.header-notification-list { display: grid; }
.header-notification-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; width: 100%; padding: 11px 12px; border: 0; border-bottom: 1px solid #dce6eb; border-radius: 0; background: #f8fbfc; color: #24485c; text-align: left; }
.header-notification-item:hover, .header-notification-item:focus-visible { background: #eaf3f6; }
.header-notification-item strong, .header-notification-item span, .header-notification-item small { display: block; }
.header-notification-item strong { margin-bottom: 3px; color: #113f58; font-size: .78rem; }
.header-notification-item span { color: #536d7b; font-size: .7rem; line-height: 1.35; }
.header-notification-item small { margin-top: 4px; color: #7a8b94; font-size: .6rem; }
.header-notification-item em { align-self: start; padding: 3px 5px; background: #e4edf2; color: #315f74; font-size: .57rem; font-style: normal; font-weight: 850; text-transform: uppercase; }
.header-notification-item.is-action em { background: #fff0d9; color: #8b540d; }
.header-notification-empty { margin: 0; padding: 20px 14px; color: #687d88; font-size: .75rem; text-align: center; }
.header-notification-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, .22); }
.teacher-shell header.app-header .teacher-settings-toggle { order: 1; }
.teacher-shell header.app-header .app-brand-lockup { order: 2; }
.teacher-shell header.app-header .user-badge { order: 3; margin-left: auto; }
.teacher-shell header.app-header .menu-toggle { order: 4; }

.print-icon {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-toggle {
  width: auto;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(210, 218, 227, .1);
  border: 1px solid rgba(190, 200, 211, .46);
  color: #fff;
  font-size: 0.9rem;
}

.teacher-shell .menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  padding: 0;
  font-size: 1.42rem;
  line-height: 1;
}

.teacher-home {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}
.teacher-home-heading {
  padding: 12px 2px 4px;
  border-bottom: 2px solid #0c4968;
}
.teacher-home-kicker {
  color: #056985;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.teacher-home-heading h2 {
  margin: 5px 0 3px;
  color: #122d42;
  font-size: 1.65rem;
  line-height: 1.08;
}
.teacher-home-heading p {
  margin: 0;
  color: #536575;
  font-size: .9rem;
}
.teacher-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(158px, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(238, 248, 253, .9);
  outline: 1px solid rgba(78, 105, 123, .24);
  outline-offset: -4px;
  border-radius: 10px;
  background-color: rgba(207, 220, 229, .9);
  background-image:
    linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .08) 42%),
    linear-gradient(180deg, rgba(231, 239, 244, .96), rgba(190, 207, 218, .78));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .96),
    inset 0 -1px 0 rgba(55, 76, 90, .16),
    inset 0 0 34px rgba(255, 255, 255, .28),
    0 18px 42px rgba(25, 48, 64, .16);
  backdrop-filter: blur(16px) saturate(.92);
}
.teacher-home-module {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 158px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(232, 246, 252, .78);
  outline: 1px solid color-mix(in srgb, var(--teacher-module-edge, #57b7d0) 72%, #213746);
  outline-offset: -3px;
  border-radius: 9px;
  background-color: var(--teacher-module-tone, #405f70);
  background-color: color-mix(in srgb, var(--teacher-module-tone, #405f70) 96%, transparent);
  background-image:
    linear-gradient(146deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .07) 23%, rgba(255, 255, 255, 0) 43%),
    repeating-linear-gradient(90deg, rgba(3, 20, 31, .075) 0 1px, transparent 1px 21%),
    repeating-linear-gradient(180deg, rgba(3, 20, 31, .065) 0 1px, transparent 1px 36px),
    linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(6, 22, 34, .22));
  color: #fff;
  text-align: center;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .62),
    inset 0 0 0 4px rgba(8, 26, 38, .34),
    inset 0 0 0 5px rgba(255, 255, 255, .13),
    inset 0 -30px 48px rgba(4, 17, 27, .2),
    0 3px 0 rgba(255, 255, 255, .48),
    0 14px 25px rgba(17, 40, 55, .28);
  backdrop-filter: blur(14px) saturate(1.12) brightness(1.02);
  transition: transform .18s ease, filter .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.teacher-home-module::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 7px;
  border: 1px solid rgba(227, 245, 252, .34);
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(4, 19, 30, .3);
  pointer-events: none;
}
.teacher-home-module::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -35%;
  left: 61%;
  width: 18%;
  height: 180%;
  border-right: 1px solid rgba(255, 255, 255, .09);
  border-left: 1px solid rgba(255, 255, 255, .055);
  background: rgba(255, 255, 255, .055);
  transform: rotate(18deg);
  pointer-events: none;
}
.teacher-home-module:hover,
.teacher-home-module:focus-visible {
  border-color: rgba(255, 255, 255, .72);
  transform: translateY(-2px);
  filter: saturate(1.08) brightness(1.03);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .72),
    inset 0 0 0 4px rgba(8, 26, 38, .29),
    inset 0 0 0 5px rgba(255, 255, 255, .18),
    inset 0 -30px 48px rgba(4, 17, 27, .16),
    0 3px 0 rgba(255, 255, 255, .58),
    0 18px 32px rgba(17, 40, 55, .34);
}
.teacher-home-module-title {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}
.teacher-home-module strong {
  display: block;
  width: min(100%, 260px);
  color: #fff;
  font-family: "Segoe UI Variable Display", "Aptos Display", "Segoe UI", Arial, sans-serif;
  font-size: clamp(1.38rem, 2.15vw, 1.78rem);
  font-weight: 680;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgba(17, 31, 40, .18);
}
.teacher-home-module-update-face {
  position: absolute;
  z-index: 3;
  inset: 18px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  color: #fff;
  opacity: 0;
  backface-visibility: hidden;
  transform: rotateX(-90deg);
  transform-style: preserve-3d;
  pointer-events: none;
}
.teacher-home-module-update-face svg { width: 42px; height: 42px; }
.teacher-home-module-update-face span { font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.teacher-home-module-badge {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  background: #c6163b;
  color: #fff;
  font-size: .72rem;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(54, 8, 22, .34), inset 0 1px 0 rgba(255, 255, 255, .38);
}
.teacher-home-module.has-assignments-update .teacher-home-module-title {
  animation: teacher-module-title-flip 5.6s ease-in-out infinite;
}
.teacher-home-module.has-assignments-update .teacher-home-module-update-face {
  animation: teacher-module-update-flip 5.6s ease-in-out infinite;
}
.teacher-home-module-icon {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 4px;
  width: 112px;
  height: 112px;
  color: rgba(225, 246, 253, .15);
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .16)) drop-shadow(0 7px 12px rgba(2, 15, 24, .12));
  transform: rotate(-4deg);
  pointer-events: none;
  transition: color .18s ease, transform .18s ease;
}
.teacher-home-module:hover .teacher-home-module-icon,
.teacher-home-module:focus-visible .teacher-home-module-icon {
  color: rgba(233, 250, 255, .21);
  transform: translate(-2px, -2px) rotate(-4deg) scale(1.025);
}
.teacher-home-module.observation { --teacher-module-tone: #075f7b; --teacher-module-edge: #63cce2; }
.teacher-home-module.duty { --teacher-module-tone: #294f89; --teacher-module-edge: #8baee9; }
.teacher-home-module.activity { --teacher-module-tone: #17664f; --teacher-module-edge: #79c9ad; }
.teacher-home-module.performance { --teacher-module-tone: #3e5687; --teacher-module-edge: #98a9e0; }
.teacher-home-module.assignments { --teacher-module-tone: #70415f; --teacher-module-edge: #d2a0c3; }

@keyframes teacher-module-title-flip {
  0%, 38%, 66%, 100% { opacity: 1; transform: rotateX(0deg); }
  45%, 59% { opacity: 0; transform: rotateX(88deg); }
}
@keyframes teacher-module-update-flip {
  0%, 38%, 66%, 100% { opacity: 0; transform: rotateX(-88deg); }
  45%, 59% { opacity: 1; transform: rotateX(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .teacher-home-module.has-assignments-update .teacher-home-module-title { animation: none; }
  .teacher-home-module.has-assignments-update .teacher-home-module-update-face { display: none; animation: none; }
}

@media (max-width: 820px) {
  .teacher-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.teacher-duties-page { display: grid; gap: 16px; width: 100%; max-width: 760px; margin: 0 auto; }
.teacher-duties-heading { padding: 12px 2px 10px; border-bottom: 2px solid #0c4968; }
.teacher-duties-heading > span { color: #056985; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.teacher-duties-heading h2 { margin: 5px 0 3px; color: #122d42; font-size: 1.75rem; }
.teacher-duties-heading p { margin: 0; color: #586978; font-size: .88rem; }
.teacher-duties-list { display: grid; gap: 10px; }
.teacher-duty-card { display: grid; gap: 7px; padding: 15px 16px; border: 1px solid #c4d1da; border-left: 5px solid #0c4968; border-radius: 7px; background: #fff; }
.teacher-duty-card > span { color: #056985; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.teacher-duty-card h3 { margin: 0; color: #152f43; font-size: 1.08rem; }
.teacher-duty-card p { margin: 0; color: #586978; font-size: .86rem; line-height: 1.42; }
.teacher-duty-card footer { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; padding-top: 8px; border-top: 1px solid #e0e7ec; color: #405466; }
.teacher-duty-card footer strong { font-size: .82rem; }
.teacher-duty-card footer small { font-size: .76rem; }
.teacher-duty-empty { display: grid; gap: 4px; padding: 24px 18px; border: 1px dashed #aebfcb; border-radius: 7px; background: #f4f8fa; color: #536575; text-align: center; }

.teacher-shell nav.tabbar::before {
  content: "Ayarlar ve Araçlar";
  display: block;
  margin: 0 3px 8px;
  padding: 0 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

main {
  flex: 1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: var(--spacing);
  padding-bottom: calc(var(--spacing) + env(safe-area-inset-bottom));
}

.system-footer {
  display: grid;
  gap: 3px;
  width: calc(100% - (2 * var(--spacing)));
  margin: 8px var(--spacing) 0;
  padding: 14px 4px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid #cbd5df;
  color: #687687;
  text-align: center;
}
.system-footer strong {
  color: #173d72;
  font-size: 0.78rem;
  font-weight: 800;
}
.system-footer span {
  font-size: 0.72rem;
  line-height: 1.4;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.notice {
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: var(--spacing);
}

.step-grid,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.step-box,
.stat-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px;
  background: #f8fafc;
}

.step-box ol {
  margin: 8px 0 0 18px;
  padding: 0;
}

.step-box li {
  margin-bottom: 6px;
}

.stat-box .num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.permission-role {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px;
  background: #f8fafc;
}

.permission-role strong,
.permission-role span {
  display: block;
}

.permission-role ul {
  margin: 10px 0 0 18px;
  padding: 0;
  color: var(--color-text);
  font-size: 0.88rem;
}

.permission-role li {
  margin-bottom: 5px;
}

.security-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.security-principles span {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

h2 {
  font-size: 1rem;
  margin: 0 0 10px;
  letter-spacing: 0;
}

label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

input:not([type]),
input[type="text"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="file"],
input[type="number"],
input[type="email"],
input[type="search"],
input[type="time"],
textarea,
select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: var(--tap-min);
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
  margin-bottom: 14px;
}

input:focus, select:focus, button:focus {
  outline: 3px solid rgba(91, 127, 164, .4);
  outline-offset: 1px;
}

button {
  font-size: 1rem;
  font-weight: 600;
  min-height: var(--tap-min);
  padding: 12px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  width: 100%;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: 1px solid #10243a;
  box-shadow: inset 0 0 0 1px rgba(214, 223, 233, .1);
}
.btn-primary:active {
  background: var(--color-primary-dark);
}
.btn-secondary {
  background: #d5e2ec;
  color: #1c3348;
  border: 1px solid #9fb2c2;
}
.btn-danger {
  background: var(--color-danger);
  color: #fff;
  border: 1px solid #97102c;
}
.btn-success {
  background: var(--color-success);
  color: #fff;
  border: 1px solid #0e6547;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-small {
  width: auto;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.82rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.btn-row > button {
  flex: 1;
  min-width: 0;
}

.teacher-guidance {
  margin: 0 0 14px;
  line-height: 1.45;
}
.attendance-session-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}
.attendance-session-tab {
  min-height: 62px;
  padding: 10px;
  text-align: left;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
}
.attendance-session-tab strong,
.attendance-session-tab span { display: block; }
.attendance-session-tab span {
  margin-top: 3px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}
.attendance-session-tab.active {
  border-color: var(--color-primary);
  background: #edf4ff;
  color: var(--color-primary-dark);
}
.teacher-class-summary,
.attendance-ready,
.attendance-complete {
  display: block;
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.teacher-class-summary,
.attendance-ready { color: var(--color-text-muted); }
.attendance-complete {
  padding: 10px 12px;
  border-left: 3px solid var(--color-success);
  background: #edf9f0;
  color: #176b35;
}

.auth-card,
.auth-options-card,
#login-install-guide { width: 100%; max-width: 570px; margin-right: auto; margin-left: auto; }
.auth-card { margin-bottom: 14px; border: 1px solid #afc0ce; box-shadow: 0 14px 34px rgba(13, 31, 48, .11); }
main:has(.auth-card) { background: #dce8f1; }
main:has(.auth-card) input { border-color: #9fb4c5; background: #f8fbfd; }
main:has(.auth-card) input:focus { border-color: #2f648f; background: #fff; }
main:has(.auth-card) h2 { color: #13283d; font-family: inherit; font-size: 1.42rem; }
main:has(.auth-card) .btn-primary { background: #056985; border-color: #034c62; }
main:has(.auth-card) .btn-primary:active { background: #04566d; }
.auth-brand {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 18px 0 16px;
  padding: 18px 18px 20px;
  overflow: hidden;
  max-width: 570px;
  margin-right: auto;
  margin-left: auto;
  border: 1px solid #3d8da2;
  border-bottom: 2px solid #034c62;
  background: #0c4968;
  color: #edf3f8;
  box-shadow: 0 16px 36px rgba(3, 73, 94, .22);
}
.auth-brand::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 0;
  width: 64px;
  height: 5px;
  background: #708d7e;
}
.auth-brand::before {
  content: "OKUL EKOSİSTEMİ";
  position: absolute;
  top: 6px;
  right: 18px;
  color: #b7c4cf;
  font-size: .54rem;
  font-weight: 800;
  letter-spacing: .11em;
  opacity: .68;
}
.methales-logo {
  width: 66px;
  height: 66px;
  filter: drop-shadow(7px 7px 0 rgba(34, 24, 49, .28));
}
.methales-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.auth-brand-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding-left: 15px;
  border-left: 1px solid #647283;
}
.auth-brand h1 {
  margin: 0;
  color: #f2f5f7;
  font-family: "Sekuya", "Segoe UI", sans-serif;
  font-size: clamp(1.62rem, 6vw, 2.18rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: .035em;
  white-space: nowrap;
}
.auth-brand p {
  margin: 0;
  color: #b9c7d3;
  font-size: clamp(.68rem, 3vw, .86rem);
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 1.25;
  white-space: nowrap;
}
.auth-options-card { border: 1px solid #b2c2cf; background: rgba(246, 250, 253, .98); box-shadow: 0 10px 26px rgba(18, 42, 62, .09); }
.auth-options-card h2 { color: #1b3349; font-family: inherit; font-size: 1.12rem; }
.auth-choice {
  width: 100%;
  min-height: 72px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #9eb3c4;
  border-radius: 6px;
  background: #dfebf4;
  color: #1f3041;
  text-align: left;
}
.auth-choice:hover { border-color: #456f91; background: #d1e2ee; }
.auth-choice strong,
.auth-choice span { display: block; }
.auth-choice span {
  margin-top: 5px;
  color: var(--color-text-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}
.activation-steps {
  display: flex;
  gap: 6px;
  margin: 16px 0;
  font-size: 0.78rem;
}
.activation-steps span {
  flex: 1;
  padding: 7px 5px;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-text-muted);
  text-align: center;
}
.activation-steps span.active {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  font-weight: 600;
}

.parent-access-status {
  margin-top: 18px;
  padding: 16px;
  border-left: 4px solid #5d7d6d;
  background: #edf3f0;
}

.parent-access-status strong {
  display: block;
  margin: 3px 0 8px;
  color: #334f42;
  font-size: 1.1rem;
}

.parent-access-heading,
.parent-access-toolbar,
.parent-access-item header,
.parent-access-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.parent-access-heading > p {
  max-width: 560px;
  margin: 0;
  color: #5d6875;
}

.parent-access-toolbar {
  justify-content: flex-start;
  margin-bottom: 14px;
}

.parent-access-toolbar label {
  margin: 0;
  font-weight: 700;
}

.parent-access-toolbar select {
  width: min(320px, 100%);
}

.parent-access-list {
  display: grid;
  gap: 12px;
}

.parent-access-item {
  border-left: 4px solid #a9b2bd;
}

.parent-access-item.status-beklemede { border-left-color: #c78218; }
.parent-access-item.status-onaylandi { border-left-color: #16734c; }
.parent-access-item.status-tamamlandi { border-left-color: #155ea8; }

.parent-access-item h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

.parent-access-reference {
  color: #506070;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.parent-access-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.parent-access-meta span,
.parent-access-matches span {
  display: block;
  padding: 8px 10px;
  background: #f4f6f8;
}

.parent-access-meta strong {
  display: block;
  margin-bottom: 2px;
  font-size: .72rem;
  color: #617080;
}

.parent-access-matches {
  display: grid;
  gap: 5px;
}

.parent-access-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.warning-text { color: #8c3d1d; }

@media (max-width: 720px) {
  .parent-access-heading,
  .parent-access-toolbar,
  .parent-access-item header,
  .parent-access-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .parent-access-meta { grid-template-columns: 1fr; }
}
.auth-back { margin-top: 18px; }

.teacher-level-tabs,
.teacher-sube-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.teacher-level-tab,
.teacher-sube-chip {
  width: auto;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--color-text);
}
.teacher-level-tab.active,
.teacher-sube-chip.active {
  border-color: var(--color-primary);
  background: #edf4ff;
  color: var(--color-primary-dark);
}
.teacher-sube-chip span {
  margin-left: 4px;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}
.teacher-sube-list { margin-top: 12px; }
.teacher-student-list { display: grid; gap: 7px; }
.teacher-student-row {
  width: 100%;
  min-height: 54px;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--color-text);
  text-align: left;
}
.teacher-student-row strong,
.teacher-student-row span { display: block; }
.teacher-student-row span { margin-top: 3px; color: var(--color-text-muted); font-size: 0.84rem; }
.teacher-student-profile-card { margin-top: 14px; }
.selected-student-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.selected-student-alert > span { min-width: 0; }
.compact-control-grid {
  display: grid;
  gap: 9px;
  align-items: end;
}
.compact-control-grid > label {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 0;
  font-size: .76rem;
}
.compact-control-grid :is(input, select, button) { min-height: 38px; margin: 0; }
.discipline-student-controls { grid-template-columns: minmax(260px, 1.25fr) minmax(150px, .72fr) minmax(170px, .82fr); }
.discipline-observation-controls { grid-template-columns: minmax(260px, 1fr) minmax(180px, .42fr); margin-top: 2px; }
.discipline-search-control { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 6px; }
.discipline-search-control > button { width: 100%; padding: 6px 9px; }
.discipline-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
}
.discipline-student-tag {
  width: auto;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #86b8ef;
  border-radius: 5px;
  background: #edf4ff;
  color: var(--color-primary-dark);
  font-size: 0.8rem;
}
.student-pick.selected {
  border-color: var(--color-primary);
  background: #edf4ff;
}
.discipline-status {
  display: inline-block;
  margin: 4px 0 7px;
  padding: 3px 8px;
  border-radius: 5px;
  background: #eef2f5;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.discipline-status.incelemede_k1 { background: #fff4d8; color: #8a5a00; }
.discipline-status.incelemede_k2,
.discipline-status.incelemede_k3 { background: #e9f2ff; color: #155aa8; }
.discipline-status.onaylandi { background: #e5f6ea; color: #176b35; }
.discipline-status.reddedildi { background: #fde8e8; color: var(--color-danger); }
.discipline-status.iade_edildi { background: #fff1df; color: #9a5200; }
.discipline-status.rehberlikte { background: #eeeaf8; color: #5b3f94; }
.discipline-status.acik { background: #fff4d8; color: #8a5a00; }
.discipline-status.izlemede { background: #e9f2ff; color: #155aa8; }
.discipline-status.kapandi { background: #e5f6ea; color: #176b35; }
.discipline-guide-approved {
  display: inline-block;
  margin: 4px 0 0;
  color: #176b35;
  font-size: 0.82rem;
  font-weight: 700;
}
@media (max-width: 720px) {
  .discipline-student-controls,
  .discipline-observation-controls { grid-template-columns: minmax(0, 1fr); gap: 7px; }
}
.discipline-trail {
  margin: 3px 0 7px;
  padding-left: 9px;
  border-left: 2px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}
.discipline-watch-note {
  margin: 4px 0 8px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.guidance-signal-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.guidance-signal-row:last-child {
  border-bottom: 0;
}

.guidance-signal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.guidance-signal-row p {
  margin: 8px 0;
}

.compact-filter-row,
.analytics-filter-grid {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(160px, 2fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.analytics-filter-grid {
  grid-template-columns: repeat(4, minmax(145px, 1fr)) auto auto;
}

.analytics-filter-grid label {
  display: grid;
  gap: 5px;
}

.publication-review-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.publication-review-row:last-child {
  border-bottom: 0;
}

.publication-review-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.publication-source,
.publication-parent-text {
  margin: 10px 0;
  padding: 10px;
  background: var(--color-surface-soft, #f5f7f8);
  border-left: 3px solid #2f7d58;
}

.publication-source p,
.publication-parent-text p {
  margin: 5px 0 0;
}

.discipline-status.yayinlandi { background: #e5f6ea; color: #176b35; }
.discipline-status.beklemede { background: #fff4d8; color: #8a5a00; }
.discipline-status.reddedildi,
.discipline-status.geri_cekildi { background: #f1f2f3; color: #4f5963; }

.discipline-stat-grid {
  margin: 14px 0;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.analytics-grid section h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.analytics-bar-row {
  display: grid;
  grid-template-columns: minmax(105px, 1fr) minmax(80px, 2fr) 34px;
  gap: 8px;
  align-items: center;
  margin: 7px 0;
  font-size: .88rem;
}

.analytics-bar-track {
  height: 8px;
  background: #e6e9eb;
  overflow: hidden;
  border-radius: 4px;
}

.analytics-bar-track i {
  display: block;
  height: 100%;
  background: #2f7d58;
}

.discipline-report-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 12px;
  border-bottom: 2px solid #2f7d58;
}

.discipline-report-header h2 {
  margin: 3px 0 0;
  font-size: 1.35rem;
}

.discipline-report-meta {
  display: grid;
  gap: 3px;
  text-align: right;
  font-size: .84rem;
}

.analytics-report-section {
  margin: 18px 0;
  padding-top: 4px;
}

.analytics-report-section > h3,
.analytics-report-section > summary {
  margin-bottom: 10px;
}

.analytics-interpretations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.analytics-interpretation {
  padding: 12px;
  border-left: 4px solid #5b758d;
  background: #f5f7f8;
}

.analytics-interpretation.positive { border-left-color: #2f7d58; }
.analytics-interpretation.attention { border-left-color: #b87813; }
.analytics-interpretation p { margin: 5px 0 0; line-height: 1.45; }

.analytics-measure-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
}

.analytics-measure-grid > div {
  display: grid;
  gap: 3px;
  padding: 12px;
  background: var(--color-surface, #fff);
}

.analytics-measure-grid strong { font-size: 1.2rem; color: #205d43; }
.analytics-measure-grid span { font-size: .82rem; color: #66717d; }

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
}

.analytics-table th,
.analytics-table td {
  padding: 8px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.analytics-table th {
  background: #eef3f0;
  color: #294d3e;
}

.analytics-event-list article {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.analytics-event-list article p { margin: 6px 0 0; }
.methodology-note { font-size: .86rem; color: #66717d; }
.methodology-note li { margin: 5px 0; }

@media (max-width: 700px) {
  .compact-filter-row,
  .analytics-filter-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .publication-review-head {
    display: grid;
  }

  .discipline-report-header,
  .analytics-interpretations {
    display: grid;
    grid-template-columns: 1fr;
  }

  .discipline-report-meta { text-align: left; }
  .analytics-measure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media print {
  body.printing-discipline-report * {
    visibility: hidden !important;
  }

  body.printing-discipline-report #disc-analytics-body,
  body.printing-discipline-report #disc-analytics-body * {
    visibility: visible !important;
  }

  body.printing-discipline-report #disc-analytics-body {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 12mm;
    background: #fff;
    color: #111;
  }

  body.printing-discipline-report .analytics-report-section,
  body.printing-discipline-report .analytics-grid section,
  body.printing-discipline-report .stat-box {
    break-inside: avoid;
  }

  body.printing-discipline-report .analytics-table {
    font-size: 8pt;
  }
}
.notification-recipients-card h2,
.notification-review-card h2 { font-size: 1.05rem; }
.notification-recipient-section {
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
}
.notification-recipient-section:first-of-type {
  padding-top: 4px;
  border-top: 0;
}
.notification-recipient-section h3 {
  margin: 0 0 9px;
  font-size: 0.95rem;
}
.notification-selected-people,
.notification-preview-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.notification-person-tag,
.notification-preview-channels span {
  width: auto;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  background: #f6f8fb;
  color: var(--color-text);
  font-size: 0.8rem;
}
.notification-person-tag { cursor: pointer; }
.notification-review-message {
  padding: 12px;
  border-left: 3px solid var(--color-primary);
  background: #f6f9ff;
}
.notification-review-message p { margin: 6px 0 0; white-space: pre-wrap; }

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.save-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin: 10px 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #f6f9ff;
}

.save-toolbar .btn-small {
  width: auto;
  min-width: 140px;
  flex: 0 0 auto;
}

/* Uygulama genelindeki kaydetme eylemlerinin ortak canlı metalik yeşil kimliği. */
.app-save-button,
.app-save-button.btn-primary,
.app-save-button.btn-secondary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  min-height: 44px;
  padding: 9px 18px 9px 10px;
  border: 1px solid #0e6547;
  border-radius: 6px;
  background: #16845e;
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.1;
  box-shadow: inset 0 0 0 1px rgba(224, 255, 242, .2), 0 3px 0 #0c5a40;
  transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.app-save-button::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  border-radius: 3px;
  background: #0d6849;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: .86rem;
  font-weight: 800;
}

.app-save-button::after {
  display: none;
}

.app-save-button:hover:not(:disabled) {
  background: #1b956a;
  box-shadow: inset 0 0 0 1px rgba(229, 255, 244, .26), 0 4px 0 #0c5a40;
  transform: translateY(-1px);
}

.app-save-button:focus-visible {
  outline: 3px solid rgba(22, 132, 94, .3);
  outline-offset: 3px;
}

.app-save-button:active:not(:disabled),
.app-save-button.btn-primary:active,
.app-save-button.btn-secondary:active {
  background: #106f4e;
  box-shadow: inset 0 0 0 1px rgba(226, 255, 242, .2), 0 1px 0 #084b35;
  transform: translateY(1px);
}

.app-save-button.btn-small {
  min-height: 38px;
  padding: 6px 13px 6px 7px;
  font-size: .84rem;
}

.app-save-button.btn-small::before {
  width: 23px;
  height: 23px;
  font-size: .76rem;
}

.app-save-button.btn-loading::before {
  display: none;
}

.list-toolbar .app-save-button {
  margin-left: auto;
}

@media (max-width: 720px) {
  .list-toolbar .app-save-button {
    width: 100%;
    margin-left: 0;
  }
}

.double-spinner {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.double-spinner::before,
.double-spinner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: spin-ring 0.75s linear infinite;
}

.double-spinner::after {
  inset: 5px;
  animation-direction: reverse;
  animation-duration: 0.55s;
  opacity: 0.75;
}

@keyframes spin-ring {
  to {
    transform: rotate(360deg);
  }
}

.student-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.student-row:last-child {
  border-bottom: none;
}

.student-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.student-attendance-identity,
.activity-attendance-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.student-attendance-identity { flex: 1 1 auto; }
.activity-attendance-identity { width: 100%; }

.student-list-identity {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.student-list-identity .link-button {
  display: inline;
  text-align: left;
}

.student-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.student-no {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.mark-buttons {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.mark-btn {
  width: auto;
  min-width: 60px;
  min-height: 44px;
  padding: 8px 10px;
  font-size: 0.85rem;
  border-radius: 8px;
  border: 2px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
}
.mark-btn.active-absent {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: #fff;
}
.mark-btn.active-late {
  background: var(--color-warning);
  border-color: var(--color-warning);
  color: #fff;
}
.mark-btn.corrected {
  opacity: 0.5;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  margin-left: 6px;
}
.badge-pending {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}
.badge-corrected {
  background: #e8eaed;
  color: var(--color-text-muted);
}

.badge-error {
  background: #f4dddd;
  color: #8b2626;
  border-color: #dfb8b8;
}

.alert {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  font-size: 0.92rem;
  line-height: 1.4;
}
.alert-message {
  min-width: 0;
  overflow-wrap: anywhere;
}
.alert-close {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: currentColor;
  font: inherit;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.72;
}
.alert-close:hover,
.alert-close:focus-visible {
  background: rgba(0, 0, 0, 0.08);
  opacity: 1;
}
.alert-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border: 1px solid #ffe08a;
}
.alert-error {
  background: #fde8e8;
  color: var(--color-danger);
  border: 1px solid #f5b5b5;
}
.alert-success {
  background: #e6f4ea;
  color: var(--color-success);
  border: 1px solid #b7e1c1;
}
.alert-info {
  background: #e8f0fe;
  color: var(--color-primary-dark);
  border: 1px solid #c6dafc;
}

nav.tabbar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(300px, calc(100vw - 44px));
  background: rgba(27, 30, 35, .97);
  border-right: 1px solid rgba(176, 186, 198, .4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 40;
  padding: calc(66px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 16px 0 36px rgba(4, 8, 13, .24);
  overflow-y: auto;
  transform: translateX(-104%);
  transition: none;
  contain: layout paint;
  scrollbar-color: #596575 transparent;
  scrollbar-width: thin;
  color-scheme: dark;
}
nav.tabbar::-webkit-scrollbar { width: 7px; }
nav.tabbar::-webkit-scrollbar-track { background: #11151c; }
nav.tabbar::-webkit-scrollbar-thumb { border-radius: 7px; background: #596575; }
nav.tabbar::-webkit-scrollbar-thumb:hover { background: #748193; }
nav.tabbar.open {
  transform: translateX(0);
}
nav.tabbar button {
  flex: none;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: .98rem;
  min-height: 46px;
  width: 100%;
  text-align: left;
  padding: 10px 13px;
  border: 1px solid transparent;
}
nav.tabbar button.active {
  color: #fff;
  font-weight: 700;
  background: #25384d;
  border-color: #536a82;
  box-shadow: inset 3px 0 #aeb8c4;
}
nav.tabbar button[data-route-id="davranis"] {
  color: #fff;
  background: rgba(39, 91, 68, .2);
  border-color: rgba(109, 166, 137, .34);
  font-weight: 700;
}
nav.tabbar button[data-route-id="davranis"].active {
  color: #fff;
  background: #1d3c30;
  border-color: #65977f;
  box-shadow: inset 3px 0 #8fc6aa;
}

nav.tabbar button[data-route-id="asistan"] {
  border-left: 3px solid #6fa68c;
}

.nav-module-group {
  flex: none;
  border: 1px solid rgba(162, 174, 188, .22);
  border-radius: 6px;
  background: rgba(235, 239, 244, .025);
  overflow: hidden;
}
.nav-module-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 11px 13px;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: .98rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.nav-module-group > summary::-webkit-details-marker { display: none; }
.nav-module-group.active { border-color: #627489; background: rgba(38, 53, 70, .52); }
.nav-module-group.active > summary { color: #fff; }
.nav-module-group-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
.nav-module-group-icon::before,
.nav-module-group-icon::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 4px;
  width: 10px;
  height: 2px;
  background: currentColor;
}
.nav-module-group-icon::after { transform: rotate(90deg); transition: transform .15s ease; }
.nav-module-group[open] .nav-module-group-icon::after { transform: rotate(0); }
.nav-module-group-items {
  display: grid;
  gap: 2px;
  padding: 0 6px 7px 14px;
  border-top: 1px solid rgba(164, 177, 191, .2);
}
nav.tabbar .nav-module-group-items button {
  min-height: 39px;
  padding: 8px 10px;
  border-radius: 5px;
  font-size: .9rem;
  color: #fff;
}
nav.tabbar .nav-module-group-items button.active { color: #fff; }
nav.tabbar .nav-module-group-items button[data-route-id="davranis"] { color: #fff; }
nav.tabbar .nav-module-group-items button[data-route-id="davranis"].active { color: #fff; }

.assistant-page { max-width: 1080px; margin: 0 auto; display: grid; gap: 14px; }
.assistant-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0 2px; }
.assistant-task-list { display: grid; gap: 10px; }
.assistant-task {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d8e1e6;
  border-left: 4px solid #287a50;
  background: #fff;
  color: #172126;
  text-align: left;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}
.assistant-task.is-high { border-left-color: #b83a3a; }
.assistant-task-count { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #e8f4ed; color: #17613d; font-weight: 700; }
.assistant-task.is-high .assistant-task-count { background: #fbeaea; color: #9b2929; }
.assistant-task-copy { min-width: 0; display: grid; gap: 4px; }
.assistant-task-copy small { color: #59666d; line-height: 1.35; }
.assistant-task-arrow { font-size: 24px; color: #68757b; }
.assistant-principles { margin-top: 4px; }
.assistant-principles p { margin: 8px 0; }
.assistant-ai-panel { margin-top: 18px; }
.assistant-ai-body { display: grid; gap: 12px; padding-top: 12px; }
.assistant-ai-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.assistant-ai-body textarea { width: 100%; resize: vertical; }
.assistant-draft-result { display: grid; gap: 9px; padding: 12px; border: 1px solid #b8d9c7; background: #f5fbf7; border-radius: 6px; }
.assistant-draft-meta { color: #17613d; font-size: 0.86rem; font-weight: 700; }
.assistant-chat-shell {
  border: 1px solid #d9e3ea;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #f7fafc 0%, #ffffff 24%),
    #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 0;
  overflow: hidden;
  min-height: calc(100vh - 220px);
}
.assistant-chat-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: stretch;
  min-height: calc(100vh - 296px);
}
.assistant-chat-sidebar {
  border-right: 1px solid #e8eef3;
  background: linear-gradient(180deg, #fbfcfe 0%, #f5f8fb 100%);
  padding: 18px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.assistant-chat-main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-width: 0;
  min-height: 0;
}
.assistant-chat-header {
  padding: 18px 18px 10px;
  border-bottom: 1px solid #e7edf2;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
}
.assistant-chat-header-copy {
  display: grid;
  gap: 6px;
}
.assistant-chat-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9f7ef;
  color: #17613d;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.assistant-side-section {
  display: grid;
  gap: 10px;
}
.assistant-side-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #60707a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.assistant-side-chip-row {
  gap: 8px;
}
.assistant-side-chip-row .chip {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
}
.assistant-guide-list {
  display: grid;
  gap: 10px;
}
.assistant-guide-card {
  border: 1px solid #dfe7ee;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}
.assistant-guide-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #18252d;
}
.assistant-guide-card p {
  margin: 0;
  color: #60707a;
  font-size: 0.85rem;
  line-height: 1.45;
}
.assistant-chat-thread {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, #f8fbfd 0%, #f4f7fa 100%);
  border-top: 1px solid #edf2f6;
  border-bottom: 1px solid #edf2f6;
  min-height: 320px;
  overflow: auto;
  min-width: 0;
}
.assistant-thread-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #dde6ed;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}
.assistant-thread-intro strong {
  display: block;
  margin-bottom: 4px;
  color: #18252d;
}
.assistant-thread-intro p {
  margin: 0;
  color: #62717a;
  font-size: 0.85rem;
  line-height: 1.45;
}
.assistant-chat-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.assistant-chat-row-user {
  grid-template-columns: minmax(0, 1fr) 40px;
}
.assistant-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.assistant-chat-avatar-assistant {
  background: #dff3e8;
  color: #17613d;
  border: 1px solid #b9ddc7;
}
.assistant-chat-avatar-user {
  background: #dce9ff;
  color: #12447f;
  border: 1px solid #b5cff8;
  order: 2;
}
.assistant-chat-card {
  border-radius: 16px;
  padding: 14px 15px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid #dce5eb;
}
.assistant-chat-card-assistant {
  background: #ffffff;
  color: #172126;
}
.assistant-chat-card-user {
  background: linear-gradient(180deg, #eef5ff 0%, #e6f0ff 100%);
  border-color: #cfe0fb;
  color: #12304d;
}
.assistant-chat-row-user .assistant-chat-card {
  order: 1;
}
.assistant-chat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #60707a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.assistant-chat-meta time {
  font-size: 0.74rem;
  font-weight: 600;
  color: #80909a;
  text-transform: none;
  letter-spacing: 0;
}
.assistant-chat-text {
  margin: 0;
  line-height: 1.55;
  white-space: pre-wrap;
}
.assistant-chat-card .card {
  margin-top: 12px;
  margin-bottom: 0;
  border-radius: 12px;
  background: #f8fbfd;
  border: 1px solid #e0e8ef;
  box-shadow: none;
}
.assistant-chat-card .btn-row {
  margin-top: 12px;
}
.assistant-composer-shell {
  display: grid;
  gap: 8px;
  padding: 16px 18px 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  position: sticky;
  bottom: 0;
  border-top: 1px solid #e5edf3;
}
.assistant-composer-shell textarea {
  width: 100%;
  resize: vertical;
  min-height: 88px;
  max-height: 180px;
  border-radius: 14px;
  border: 1px solid #d4dee6;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.assistant-composer-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.assistant-composer-footer .btn-primary {
  width: auto;
  min-width: 180px;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(26, 95, 180, 0.18);
}
.assistant-example-panel {
  margin-top: 12px;
}
.assistant-example-panel .chip-row {
  padding-top: 10px;
}
.assistant-example-panel .chip {
  background: #fff;
  border: 1px solid #d7e3ea;
}
.ai-message-planner { border-left: 4px solid #287a50; }
.ai-message-planner textarea { width: 100%; resize: vertical; }
.ai-message-options { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.ai-message-action { display: flex; align-items: end; padding-bottom: 1px; }
@media (max-width: 620px) {
  .assistant-summary { grid-template-columns: 1fr; }
  .assistant-task { grid-template-columns: 36px minmax(0, 1fr) 16px; padding: 10px; }
  .assistant-task-count { width: 34px; height: 34px; }
  .assistant-ai-controls { grid-template-columns: 1fr; }
  .ai-message-options { grid-template-columns: 1fr; }
  .ai-message-action button { width: 100%; }
  .assistant-chat-layout { grid-template-columns: 1fr; }
  .assistant-chat-sidebar {
    border-right: none;
    border-bottom: 1px solid #e8eef3;
    padding: 14px;
  }
  .assistant-chat-shell { min-height: auto; }
  .assistant-chat-layout { min-height: auto; }
  .assistant-chat-thread { padding: 12px; min-height: 260px; max-height: none; }
  .assistant-chat-row,
  .assistant-chat-row-user { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; }
  .assistant-chat-avatar,
  .assistant-chat-avatar-user { width: 32px; height: 32px; }
  .assistant-chat-row-user .assistant-chat-avatar-user { order: 0; }
  .assistant-chat-row-user .assistant-chat-card { order: 0; }
  .assistant-composer-footer { grid-template-columns: 1fr; }
  .assistant-composer-footer .btn-primary { width: 100%; min-width: 0; }
  .assistant-chat-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
}

.behavior-module-card {
  border-color: #b7e4c7;
  background: linear-gradient(180deg, #f6fff8 0%, #ffffff 100%);
  box-shadow: 0 8px 18px rgba(23, 107, 58, 0.08);
}

.behavior-module-card h2 {
  color: #0f5132;
}

.behavior-drawer {
  border-color: #c7ead1;
}

.behavior-drawer[open] > summary {
  background: #f0fdf4;
  border-bottom-color: #b7e4c7;
}

.behavior-drawer > summary span {
  color: #0f5132;
}
nav.tabbar > button:last-child {
  margin-top: auto;
  border-top: 1px solid rgba(177, 188, 201, .24);
  color: #dca8ae;
}

body.role-admin nav.tabbar button,
body.role-admin nav.tabbar button.active,
body.role-admin nav.tabbar .nav-module-group > summary,
body.role-admin nav.tabbar .nav-module-group.active > summary,
body.role-admin nav.tabbar .nav-module-group-items button,
body.role-admin nav.tabbar .nav-module-group-items button.active,
body.role-admin nav.tabbar button[data-route-id="davranis"],
body.role-admin nav.tabbar button[data-route-id="davranis"].active,
body.role-admin nav.tabbar > button:last-child {
  color: #c1dd08;
}
.menu-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: min(300px, calc(100vw - 44px));
  z-index: 35;
  background: rgba(5, 8, 12, .42);
}

@media (min-width: 720px) {
  #app {
    max-width: 920px;
  }
}

@media (max-width: 480px) {
  .auth-brand { grid-template-columns: 56px minmax(0, 1fr); gap: 11px; margin-top: 6px; padding: 14px 11px 16px; }
  .methales-logo { width: 56px; height: 56px; filter: drop-shadow(5px 5px 0 rgba(34, 24, 49, .24)); }
  .auth-brand-copy { gap: 4px; padding-left: 10px; }
  .auth-brand h1 { font-size: 1.38rem; }
  .auth-brand p { font-size: .61rem; letter-spacing: .055em; }
  .system-footer { padding-top: 11px; }
}

/* Ortak idareci görev takibi, arşiv raporu ve işlem iletişim penceresi. */
.duty-daily-tracking { margin-top: 18px; border: 1px solid #b9cfde; background: #f7fbfd; }
.duty-daily-tracking > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; border-bottom: 1px solid #cfe0ea; background: #e8f5fa; }
.duty-daily-tracking > header span { display: block; color: #237a9d; font-size: 10px; font-weight: 800; }
.duty-daily-tracking > header h3 { margin: 3px 0 0; color: #123f5d; font-size: 17px; }
.duty-daily-tracking-count { display: flex; align-items: baseline; gap: 6px; color: #49677a; }
.duty-daily-tracking-count b { color: #0c5878; font-size: 20px; }
.duty-daily-tracking-stats { display: flex; gap: 18px; padding: 9px 16px; border-bottom: 1px solid #dbe7ee; color: #5c7180; font-size: 12px; }
.duty-daily-tracking-stats b { color: #123f5d; }
.duty-daily-tracking-list article { display: grid; grid-template-columns: 64px minmax(130px, .85fr) minmax(150px, 1fr) minmax(180px, 1.15fr) minmax(145px, .8fr); gap: 12px; align-items: center; min-height: 76px; padding: 10px 14px; border-bottom: 1px solid #dbe7ee; }
.duty-daily-tracking-list article:last-child { border-bottom: 0; }
.duty-daily-tracking-list article > div { min-width: 0; }
.duty-daily-tracking-list small, .duty-daily-tracking-list span, .duty-daily-tracking-list em { display: block; color: #607889; font-size: 11px; font-style: normal; line-height: 1.35; overflow-wrap: anywhere; }
.duty-daily-tracking-list strong { display: block; color: #173f59; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.duty-daily-hour { text-align: center; }
.duty-daily-hour b { color: #0b5b7d; font-size: 18px; }
.duty-daily-tracking-empty, .duty-report-empty { display: grid; gap: 4px; padding: 18px; color: #657987; }
.duty-daily-tracking-empty strong, .duty-report-empty strong { color: #23485f; }
.duty-report-filters { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)) auto; gap: 12px; align-items: end; padding: 14px; border: 1px solid #d4e0e8; background: #f7fafc; }
.duty-report-filters label { display: grid; gap: 5px; color: #274b62; font-size: 12px; font-weight: 700; }
.duty-report-filters button { min-height: 42px; }
.duty-report-results { margin-top: 12px; }
.duty-report-summary { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid #cbdbe5; background: #fff; }
.duty-report-summary div { padding: 12px; border-right: 1px solid #dbe6ed; }
.duty-report-summary div:last-child { border-right: 0; }
.duty-report-summary b, .duty-report-summary span { display: block; }
.duty-report-summary b { color: #0c5878; font-size: 20px; }
.duty-report-summary span { color: #627785; font-size: 11px; }
.duty-report-days { margin-top: 12px; }
.duty-report-day { border: 1px solid #cbdbe5; background: #fff; }
.duty-report-day + .duty-report-day { margin-top: 8px; }
.duty-report-day > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; cursor: pointer; }
.duty-report-day > summary div { display: grid; gap: 2px; }
.duty-report-day > summary strong { color: #153f59; }
.duty-report-day > summary span, .duty-report-day > summary b { color: #5e7787; font-size: 12px; }
.duty-report-day .table-scroll { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.duty-report-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.duty-report-table th, .duty-report-table td { padding: 10px; border-top: 1px solid #dbe6ed; text-align: left; vertical-align: top; font-size: 12px; }
.duty-report-table th { color: #456274; background: #eff6f9; font-size: 10px; text-transform: uppercase; }
.duty-report-table td strong, .duty-report-table td small { display: block; }
.duty-report-table tr.is-archived { background: #f5f5f5; color: #6c747a; }
.duty-report-open-day { margin: 10px 14px 13px; }
.app-feedback-dialog[hidden] { display: none !important; }
.app-feedback-dialog { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; background: rgba(13, 37, 52, .45); backdrop-filter: blur(2px); }
.app-feedback-panel { width: min(440px, 100%); max-height: min(80vh, 620px); overflow: auto; border: 1px solid #afc4d1; border-top: 5px solid #237a9d; border-radius: 6px; background: #fff; box-shadow: 0 20px 50px rgba(13, 37, 52, .25); }
.app-feedback-panel.is-success { border-top-color: #16845f; }
.app-feedback-panel.is-error { border-top-color: #c9020a; }
.app-feedback-panel.is-warning { border-top-color: #c98a08; }
.app-feedback-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #dbe4ea; }
.app-feedback-panel > header strong { color: #173f59; font-size: 16px; }
.app-feedback-panel > p { margin: 0; padding: 17px 14px 20px; color: #3d5666; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.app-feedback-close { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; padding: 0; border: 1px solid #c7d5de; border-radius: 4px; background: #f5f8fa; color: #294c62; font-size: 24px; line-height: 1; cursor: pointer; }
body.feedback-dialog-open { overflow: hidden; }
.duty-task-action-dialog[hidden] { display: none !important; }
.duty-task-action-dialog { position: fixed; inset: 0; z-index: 1190; display: grid; place-items: center; padding: 18px; background: rgba(13, 37, 52, .54); backdrop-filter: blur(2px); }
.duty-task-action-dialog > section { width: min(520px, 100%); max-height: min(88vh, 650px); overflow: auto; border: 1px solid #afc4d1; border-top: 5px solid #b52832; border-radius: 6px; background: #fff; box-shadow: 0 22px 55px rgba(13, 37, 52, .28); }
.duty-task-action-dialog form > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-bottom: 1px solid #dbe4ea; }
.duty-task-action-dialog form > header div { display: grid; gap: 2px; }
.duty-task-action-dialog form > header span { color: #8f3037; font-size: 10px; font-weight: 900; }
.duty-task-action-dialog form > header strong { color: #173f59; font-size: 18px; }
.duty-task-dialog-close[aria-label] { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; padding: 0; border: 1px solid #c7d5de; background: #f5f8fa; color: #294c62; font-size: 24px; line-height: 1; cursor: pointer; }
.duty-task-action-dialog form > p { margin: 0; padding: 14px 16px 6px; color: #405c6d; font-size: 13px; font-weight: 750; }
.duty-task-action-dialog form > label { display: grid; gap: 6px; margin: 0; padding: 10px 16px 6px; }
.duty-task-action-dialog form > label span { color: #284e64; font-size: 12px; font-weight: 900; }
.duty-task-action-dialog textarea { box-sizing: border-box; width: 100%; min-width: 0; resize: vertical; font: inherit; font-size: 16px; line-height: 1.45; }
.duty-task-action-dialog form > small { display: block; padding: 4px 16px 14px; color: #687a86; font-size: 11.5px; line-height: 1.45; }
.duty-task-action-dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid #e1e8ed; }
.duty-task-action-dialog footer button { min-height: 40px; }
body.duty-task-dialog-open { overflow: hidden; }

@media (max-width: 760px) {
  .duty-daily-tracking-list article { grid-template-columns: 48px 1fr; gap: 9px 12px; padding: 12px; }
  .duty-daily-hour { grid-row: 1 / span 2; }
  .duty-daily-tracking-list article > div:nth-child(n+4) { grid-column: 2; }
  .duty-report-filters { grid-template-columns: 1fr 1fr; }
  .duty-report-filters label:nth-child(3), .duty-report-filters button { grid-column: 1 / -1; }
  .duty-report-summary { grid-template-columns: repeat(2, 1fr); }
  .duty-report-summary div { border-bottom: 1px solid #dbe6ed; }
  .duty-report-summary div:nth-child(even) { border-right: 0; }
  .duty-report-summary div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .app-feedback-dialog { padding: 14px; }
  .duty-task-action-dialog { align-items: end; padding: 10px; }
  .duty-task-action-dialog > section { max-height: 90vh; }
  .duty-task-action-dialog footer { align-items: stretch; flex-direction: column-reverse; }
  .duty-task-action-dialog footer button { width: 100%; }
}

table.simple-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
table.simple-table th, table.simple-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--color-border);
}

.muted {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #ccc;
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.copy-box {
  width: 100%;
  min-height: 140px;
  font-family: monospace;
  font-size: 0.85rem;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  white-space: pre;
  overflow-x: auto;
}

.section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  margin: 18px 0 8px;
}

.announcement-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #d7e3f5;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 1px 2px rgba(26, 95, 180, 0.08);
}

.announcement-hero h2 {
  margin-bottom: 4px;
}

.ghost-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid #bfd4f2;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--color-primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.announcement-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  gap: 12px;
  align-items: stretch;
}

.announcement-compose {
  margin-bottom: 0;
}

.announcement-textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  margin-bottom: 10px;
}

.announcement-actions {
  display: flex;
  gap: 10px;
}

.announcement-actions > button {
  flex: 1;
}

.announcement-ghost {
  border: 1px solid #d7e3f5;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 12px;
  box-shadow: 0 1px 2px rgba(26, 95, 180, 0.08);
}

.ghost-phone {
  border: 1px solid #dfe7f2;
  border-radius: 18px;
  background: #f1f4f8;
  padding: 12px;
  min-height: 100%;
}

.ghost-phone-bar {
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: #c8d1dc;
  margin: 0 auto 14px;
}

.ghost-notification {
  border: 1px solid #dde5ef;
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 18px rgba(32, 33, 36, 0.06);
}

.ghost-app-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: 0.74rem;
  margin-bottom: 7px;
}

.ghost-app-row span:last-child {
  margin-left: auto;
}

.ghost-app-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-primary);
}

.ghost-notification strong {
  display: block;
  font-size: 0.95rem;
  line-height: 1.25;
  margin-bottom: 5px;
}

.ghost-notification p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.ghost-meta {
  margin-top: 12px;
}

#an-ghost-channels,
.ghost-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#an-ghost-channels span,
.ghost-counts span {
  border: 1px solid #d7e3f5;
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary-dark);
  padding: 4px 8px;
  font-size: 0.76rem;
  font-weight: 650;
}

#an-ghost-targets {
  margin: 10px 0;
  color: var(--color-text-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.announcement-panel-stack {
  margin-top: 12px;
}

.announcement-drawer {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  margin-bottom: 10px;
  overflow: hidden;
}

.announcement-drawer > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.announcement-drawer > summary::-webkit-details-marker {
  display: none;
}

.announcement-drawer > summary span {
  font-weight: 750;
}

.announcement-drawer > summary small {
  color: var(--color-text-muted);
  font-size: 0.76rem;
}

.announcement-drawer[open] > summary {
  border-bottom: 1px solid var(--color-border);
  background: #f8fafc;
}

.announcement-drawer > :not(summary) {
  margin-left: 12px;
  margin-right: 12px;
}

.announcement-option-grid,
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
}

.announcement-option-grid.compact {
  padding-bottom: 8px;
}

.choice-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--color-text);
  font-size: 0.86rem;
  font-weight: 650;
}

.announcement-people-list {
  max-height: 280px;
  overflow: auto;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 760px) {
  .announcement-workbench {
    grid-template-columns: 1fr;
  }
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.85rem;
  background: #fff;
}
.chip.selected {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.drawer-panel {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0;
  background: #fff;
}

.drawer-panel > summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 38px;
  display: flex;
  align-items: center;
}

.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.check-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.9rem;
}

.check-chip.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.profile-assignment-panel {
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #f8fafc;
}

.profile-sube-controls {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-top: 8px;
}

.profile-sube-controls select {
  margin: 0;
  min-width: 0;
}

.profile-sube-controls button {
  width: auto;
  white-space: nowrap;
}

.profile-sube-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  min-height: 28px;
}

.profile-sube-remove {
  width: auto;
  border-radius: 999px;
}

.profile-sube-hidden {
  display: none;
}

.profile-assignment-drawer {
  margin-top: 8px;
  border-top: 1px solid var(--color-border);
  padding-top: 8px;
}

.profile-assignment-drawer > summary {
  cursor: pointer;
  font-weight: 700;
}

.profile-assignment-drawer > summary small {
  color: var(--color-text-muted);
  font-weight: 500;
  margin-left: 6px;
}

.list-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  gap: 8px;
}

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  margin: 6px 0 8px;
  background: #f8fafc;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  border-bottom: 1px solid var(--color-border);
}

.list-toolbar .btn-danger {
  width: auto;
  margin-left: auto;
}

.smart-user-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  min-height: 66px;
  padding: 8px 4px;
  border-bottom-color: #d7e0e7;
  transition: background-color 150ms ease;
}

.smart-user-row:hover {
  background: #f6f9fb;
}

.row-check {
  flex: 0 0 auto;
  padding-top: 3px;
}

.row-check input {
  width: 15px;
  height: 15px;
  margin: 0;
}

.row-main {
  flex: 1 1 220px;
  min-width: 0;
}

.row-actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 5px;
  max-width: none;
}

.row-actions > .smart-user-action {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 6px;
}

.smart-user-action svg {
  width: 16px;
  height: 16px;
}

.smart-user-title-line,
.smart-user-status-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.smart-user-title-line {
  gap: 5px;
  min-height: 20px;
}

.smart-user-title-line .link-button {
  font-size: 0.91rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.smart-user-title-line > span,
.smart-user-scope,
.smart-user-phone {
  color: #687987;
  font-size: 0.72rem;
  line-height: 1.25;
}

.smart-user-status-line {
  gap: 4px;
  min-height: 18px;
  margin-top: 1px;
}

.smart-user-status-line .badge,
.smart-user-status-line .badge-corrected,
.smart-user-status-line .badge-pending {
  min-height: 17px;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.64rem;
  line-height: 1.25;
}

.smart-user-scope {
  margin-top: 3px;
}

.teacher-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 3px 0 1px;
}

.teacher-detail-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  max-width: 100%;
  padding: 2px 6px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: #fbfcfd;
  color: var(--color-text-muted);
  font-size: 0.68rem;
  line-height: 1.2;
}

.class-assignment-row {
  align-items: stretch;
}

.class-assignment-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 6px 10px;
  flex: 1 1 460px;
}

.class-assignment-controls label {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.class-assignment-controls select {
  margin: 0;
  min-width: 0;
}

.class-assignment-controls option:disabled {
  color: var(--color-text-muted);
  background: #f3f4f6;
}

.class-guide-hint {
  grid-column: 1;
  margin-top: -2px;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.compact-textarea {
  width: 100%;
  min-height: 70px;
  resize: vertical;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px;
  font: inherit;
}

.link-button {
  display: inline;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  text-align: left;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.link-button:active {
  color: var(--color-primary-dark);
}

@media (max-width: 560px) {
  .profile-sube-controls {
    grid-template-columns: 1fr;
  }

  .profile-sube-controls button {
    width: 100%;
  }

  .class-assignment-controls {
    grid-template-columns: 1fr;
    flex-basis: 100%;
  }

  .smart-user-row {
    grid-template-columns: 16px minmax(0, 1fr) 66px;
    gap: 6px;
    min-height: 0;
    padding: 8px 2px;
  }
  .row-actions {
    display: grid;
    grid-template-columns: repeat(2, 30px);
    grid-column: 3;
    grid-row: 1;
    justify-content: end;
    gap: 4px;
    padding: 0;
  }
  .row-actions > .smart-user-action {
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
  }
}

.inline-profile {
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--color-border);
}

.inline-profile .card {
  margin: 0;
  border-left: 3px solid var(--color-primary);
  box-shadow: none;
}

.profile-card {
  padding: 9px 10px;
  border: 1px solid #cbd6df;
  background: #f8fafc;
}

.profile-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #d8e1e7;
}

.profile-card-heading h2 { margin: 0; }
.profile-card-heading > span { color: #647786; font-size: .7rem; font-weight: 750; }

.profile-card-core-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.15fr) minmax(150px, .8fr) minmax(180px, 1fr);
  gap: 6px 10px;
  margin-top: 8px;
}

.profile-card-core-grid > label,
.profile-card-branch,
.profile-card-branch > label { min-width: 0; margin: 0; }

.profile-card-branch > label { display: block; }

.profile-card-core-grid input[type="text"],
.profile-card-core-grid input[type="tel"],
.profile-card-core-grid select { width: 100%; margin: 2px 0 0; }

.profile-card h2 {
  color: #1c2d3e;
  font-family: inherit;
  font-size: 0.96rem;
  margin-bottom: 6px;
}

.profile-card label {
  margin-bottom: 3px;
  font-size: 0.75rem;
}

.profile-card input[type="text"],
.profile-card input[type="tel"],
.profile-card input[type="password"],
.profile-card select {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 0.84rem;
  margin-bottom: 7px;
  border-color: #bdcad5;
  background: #f4f8fb;
}

.profile-card .compact-textarea {
  min-height: 48px;
  padding: 6px 8px;
  font-size: 0.84rem;
}

.profile-card .section-title {
  margin: 9px 0 4px;
}

.profile-compact-drawer {
  margin: 6px 0 0;
  padding: 0;
  border: 1px solid #d2dde4;
  border-radius: 5px;
  background: #fff;
}

.profile-compact-drawer > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 6px 9px;
  cursor: pointer;
  color: #183a50;
  font-size: .78rem;
  font-weight: 750;
  list-style-position: inside;
}

.profile-compact-drawer > summary small { margin-left: auto; color: #70818d; font-size: .68rem; font-weight: 550; }
.profile-compact-drawer-body { padding: 7px 9px 9px; border-top: 1px solid #e0e7eb; }
.profile-compact-drawer-body > .muted:first-child { margin: 0 0 6px; font-size: .72rem; }

.profile-card-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 7px;
  border: 1px solid #d8e1e7;
  background: #d8e1e7;
}

.profile-card-meta-grid p { display: grid; gap: 2px; margin: 0; padding: 6px 8px; background: #f7f9fb; }
.profile-card-meta-grid strong { color: #315064; font-size: .68rem; text-transform: uppercase; }
.profile-card-meta-grid span { color: #647786; font-size: .7rem; line-height: 1.3; }

.profile-card .btn-row {
  justify-content: flex-end;
  gap: 6px;
  margin-top: 7px;
  flex-wrap: wrap;
}

.profile-card > .btn-row > button,
.profile-card .btn-row > .btn-small {
  flex: 0 0 auto;
  width: auto;
  min-height: 34px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.profile-card #sp-teacher-fields > .duty-check-option { min-height: 30px; margin: 2px 0; font-size: .72rem; }

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.summary-cell {
  background: #f4f5f7;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}
.summary-cell .num {
  font-size: 1.4rem;
  font-weight: 700;
}
.summary-cell .label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.schedule-filter-grid,
.schedule-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.badge-success {
  background: #e2f1e7;
  color: #25643a;
}

.badge-warning {
  background: #fff1d6;
  color: #7a5113;
}

.schedule-engine-panel > summary {
  color: #5e481e;
  border-left: 4px solid #b8812d;
}

.schedule-engine-import-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px) minmax(260px, 1.4fr);
  gap: 12px;
  align-items: end;
}

.schedule-engine-file input {
  min-height: 46px;
}

.schedule-engine-workspace {
  display: grid;
  grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.schedule-engine-runs {
  display: grid;
  gap: 6px;
  max-height: 680px;
  overflow: auto;
}

.schedule-engine-run {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 68px;
  padding: 10px 12px;
  text-align: left;
  color: var(--color-text);
  background: #f7f8fa;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.schedule-engine-run:hover,
.schedule-engine-run.active {
  background: #fff8e9;
  border-color: #c99748;
}

.schedule-engine-run span {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.schedule-engine-run .badge {
  margin-left: 0;
}

.schedule-engine-detail {
  min-width: 0;
}

.schedule-engine-heading,
.schedule-engine-candidate-head,
.schedule-engine-publication {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.schedule-engine-heading h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.schedule-engine-heading p {
  margin: 0;
}

.schedule-engine-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.schedule-engine-metrics > div {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
}

.schedule-engine-metrics strong {
  font-size: 1.1rem;
}

.schedule-engine-metrics span,
.schedule-engine-candidate-head span,
.schedule-engine-publication span {
  font-size: 0.75rem;
}

.schedule-engine-map-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.2fr);
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

.schedule-engine-map-row > div {
  display: grid;
  gap: 2px;
}

.schedule-engine-solve {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 220px) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  margin: 12px 0;
  background: #f7f8fa;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.schedule-engine-solve button {
  width: auto;
}

.schedule-engine-candidates {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.schedule-engine-candidate {
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
}

.schedule-engine-candidate-head > div {
  display: grid;
  gap: 3px;
}

.schedule-engine-score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 10px 0;
  padding: 7px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.schedule-engine-score span,
.schedule-engine-preview-summary {
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.schedule-engine-candidate-preview {
  margin-top: 10px;
}

.schedule-engine-preview-summary {
  margin-bottom: 6px;
}

.schedule-engine-publication {
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  background: #eef6f0;
  border: 1px solid #bcd8c4;
  border-radius: 6px;
}

.schedule-engine-publication > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.schedule-engine-publication span {
  overflow-wrap: anywhere;
}

.schedule-engine-warning-list {
  max-height: 240px;
  margin: 0;
  overflow: auto;
}

.schedule-engine-empty {
  padding: 14px;
  border: 1px dashed var(--color-border);
  border-radius: 6px;
}

.schedule-commit-options {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 10px;
  margin: 10px 0;
  background: #f8fafc;
}

.schedule-commit-options label {
  margin-top: 6px;
}

.schedule-table td,
.schedule-table th {
  vertical-align: middle;
}

.schedule-result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 10px;
  color: var(--color-text-muted);
}

.schedule-result-groups {
  display: grid;
  gap: 8px;
}

.schedule-result-group {
  margin: 0;
}

.schedule-weekly-scroll {
  max-width: 100%;
}

.schedule-weekly-table {
  table-layout: fixed;
  min-width: 820px;
}

.schedule-weekly-table th,
.schedule-weekly-table td {
  width: 150px;
  min-width: 150px;
  padding: 8px;
  vertical-align: top;
}

.schedule-weekly-table .schedule-hour-col,
.schedule-weekly-table tbody th {
  width: 58px;
  min-width: 58px;
  text-align: center;
}

.schedule-cell-entry {
  display: grid;
  gap: 3px;
  padding: 7px 0;
  border-bottom: 1px solid var(--color-border);
}

.schedule-cell-entry:last-child {
  border-bottom: 0;
}

.schedule-cell-entry strong {
  font-size: 0.8rem;
  line-height: 1.25;
}

.schedule-cell-entry span {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  line-height: 1.25;
}

.class-module-filters {
  margin: 12px 0;
}

@media (max-width: 720px) {
  .schedule-engine-import-grid,
  .schedule-engine-workspace,
  .schedule-engine-solve,
  .schedule-engine-map-row {
    grid-template-columns: 1fr;
  }

  .schedule-engine-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-engine-runs {
    max-height: 220px;
  }

  .schedule-engine-solve button,
  .schedule-engine-publication button {
    width: 100%;
  }

  .schedule-engine-publication {
    align-items: stretch;
    flex-direction: column;
  }

  .schedule-result-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Teacher opening profile: restrained editorial layout. */
.teacher-editorial-page {
  --editorial-ink: #101114;
  --editorial-paper: #ffffff;
  --editorial-red: #d32632;
  --editorial-blue: #2457d6;
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #d7d9de;
  border-radius: 6px;
  background: var(--editorial-paper);
  color: var(--editorial-ink);
}

.teacher-editorial-cover {
  padding: 22px 28px 32px;
  border-bottom: 1px solid var(--editorial-ink);
  background: var(--editorial-paper);
}

.teacher-editorial-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 11px;
  border-bottom: 4px solid var(--editorial-ink);
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.teacher-editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 38px;
  align-items: end;
  padding-top: 32px;
}

.teacher-editorial-title-block {
  min-width: 0;
}

.teacher-editorial-kicker,
.teacher-editorial-duty-type {
  display: inline-block;
  padding: 5px 8px;
  background: var(--editorial-red);
  color: #fff;
  text-transform: uppercase;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.teacher-editorial-title-block h1 {
  max-width: 900px;
  margin: 14px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  font-weight: 500;
  line-height: .98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.teacher-editorial-title-block p {
  max-width: 650px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.teacher-editorial-index {
  display: grid;
  align-content: end;
  min-height: 190px;
  padding: 15px 0 2px 20px;
  border-left: 1px solid var(--editorial-ink);
}

.teacher-editorial-issue {
  color: var(--editorial-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  line-height: .9;
}

.teacher-editorial-index strong {
  margin-top: 16px;
  text-transform: uppercase;
  font-size: .82rem;
}

.teacher-editorial-index small {
  margin-top: 6px;
  color: #5e6168;
}

.teacher-editorial-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--editorial-ink);
  color: #fff;
}

.teacher-editorial-metrics > div {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 132px;
  padding: 19px 22px;
  border-right: 1px solid #42444a;
}

.teacher-editorial-metrics > div:last-child {
  border-right: 0;
}

.teacher-editorial-metrics span {
  color: #bfc2c8;
  text-transform: uppercase;
  font-size: .69rem;
  font-weight: 700;
}

.teacher-editorial-metrics strong {
  margin: 8px 0 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
}

.teacher-editorial-metrics small {
  color: #e3e4e7;
  overflow-wrap: anywhere;
}

.teacher-editorial-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  border-bottom: 1px solid var(--editorial-ink);
}

.teacher-editorial-program,
.teacher-editorial-notification {
  min-width: 0;
  padding: 28px;
}

.teacher-editorial-notification {
  border-left: 1px solid var(--editorial-ink);
  background: #f1f4fb;
}

.editorial-section-label {
  display: flex;
  align-items: baseline;
  gap: 13px;
}

.editorial-section-label span {
  color: var(--editorial-red);
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 800;
}

.editorial-section-label strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.teacher-editorial-facts {
  display: grid;
  gap: 0;
  margin: 22px 0 0;
}

.teacher-editorial-facts > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid #d7d9de;
}

.teacher-editorial-facts dt {
  color: #62656c;
  font-size: .78rem;
  text-transform: uppercase;
}

.teacher-editorial-facts dd {
  margin: 0;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.teacher-editorial-notification .card {
  margin: 18px 0 0;
  border: 0;
  border-top: 4px solid var(--editorial-blue);
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.teacher-editorial-duties {
  padding: 34px 28px 40px;
}

.teacher-editorial-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.teacher-editorial-section-head p {
  max-width: 380px;
  margin: 0;
  color: #62656c;
  text-align: right;
}

.teacher-editorial-duty-list {
  display: grid;
  border-top: 5px solid var(--editorial-ink);
}

.teacher-editorial-duty {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(150px, 220px);
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid #bfc2c8;
}

.teacher-editorial-duty-no {
  color: var(--editorial-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  line-height: 1;
}

.teacher-editorial-duty-copy h2 {
  margin: 8px 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0;
}

.teacher-editorial-duty-copy p {
  max-width: 720px;
  margin: 0;
  line-height: 1.5;
}

.teacher-editorial-duty-context {
  display: grid;
  gap: 7px;
  padding-left: 16px;
  border-left: 1px solid #bfc2c8;
  text-align: right;
}

.teacher-editorial-duty-context span,
.teacher-editorial-duty-context small {
  color: #62656c;
}

.teacher-editorial-empty {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px 24px;
  padding: 28px 0;
}

.teacher-editorial-empty span {
  grid-row: span 2;
  color: var(--editorial-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
}

.teacher-editorial-empty p {
  margin: 0;
  color: #62656c;
}

/* Öğretmen profili: görev panosunu tekrar etmeden günlük çalışma bilgisi sunar. */
.teacher-workspace-profile { display: grid; gap: 0; width: min(1180px, 100%); margin: 0 auto; overflow: hidden; border: 1px solid #b8c8d3; border-radius: 8px; background: #f4f7f9; box-shadow: 0 18px 42px rgba(21, 48, 65, .12); }
.teacher-workspace-profile > *, .teacher-profile-header > *, .teacher-profile-panel, .teacher-schedule-toolbar > *, .teacher-profile-schedule-list, .teacher-profile-schedule-list article { min-width: 0; max-width: 100%; box-sizing: border-box; }
.teacher-profile-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 26px 30px 22px; border-bottom: 1px solid rgba(255, 255, 255, .22); background: #0c4968; color: #fff; }
.teacher-profile-header span:first-child { color: #a9d2e3; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.teacher-profile-header h1 { margin: 5px 0 4px; overflow-wrap: break-word; color: #fff; font-size: clamp(1.75rem, 3.5vw, 2.75rem); line-height: 1.04; }
.teacher-profile-header p { margin: 0; overflow-wrap: break-word; color: #d7e7ee; }
.teacher-profile-state { padding: 7px 11px; border: 1px solid rgba(255, 255, 255, .38); border-radius: 999px; background: rgba(255, 255, 255, .11); color: #fff !important; font-size: .75rem !important; }
.teacher-profile-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid #b9c8d2; background: #e8eef2; }
.teacher-profile-tabs button { min-width: 0; min-height: 48px; padding: 10px 14px; overflow-wrap: anywhere; border: 0; border-right: 1px solid #c2cfd7; border-radius: 0; background: transparent; color: #405a6b; font-weight: 750; }
.teacher-profile-tabs button:last-child { border-right: 0; }
.teacher-profile-tabs button.is-active { background: #fff; color: #0c4968; box-shadow: inset 0 -3px 0 #1685a9; }
.teacher-profile-panel { padding: 24px; }
.teacher-profile-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #c8d4dc; background: #fff; }
.teacher-profile-metrics > div { display: grid; gap: 3px; min-width: 0; padding: 16px 18px; border-right: 1px solid #d7e0e5; }
.teacher-profile-metrics > div:last-child { border-right: 0; }
.teacher-profile-metrics span { color: #637785; font-size: .69rem; font-weight: 800; text-transform: uppercase; }
.teacher-profile-metrics strong { color: #102f46; font-size: 1.75rem; line-height: 1; }
.teacher-profile-metrics small { color: #6b7d89; }
.teacher-profile-overview-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 16px; margin-top: 16px; }
.teacher-profile-today, .teacher-profile-facts-card { min-width: 0; padding: 20px; border: 1px solid #c8d4dc; background: #fff; }
.teacher-profile-section-title span, .teacher-schedule-toolbar > div > span { color: #1685a9; font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.teacher-profile-section-title h2, .teacher-schedule-toolbar h2 { margin: 4px 0 0; color: #15374e; font-size: 1.35rem; }
.teacher-profile-today-list { display: grid; margin-top: 14px; border-top: 1px solid #d6e0e6; }
.teacher-profile-today-list > div { display: grid; grid-template-columns: 42px 70px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 42px; border-bottom: 1px solid #e1e7eb; }
.teacher-profile-today-list > div > span { color: #1685a9; font-weight: 850; }
.teacher-profile-today-list small { color: #647886; overflow-wrap: anywhere; }
.teacher-profile-facts-card dl { display: grid; margin: 14px 0 0; }
.teacher-profile-facts-card dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid #dfe6ea; }
.teacher-profile-facts-card dt { color: #6b7d89; font-size: .76rem; text-transform: uppercase; }
.teacher-profile-facts-card dd { margin: 0; color: #243f51; font-weight: 650; overflow-wrap: anywhere; }
.teacher-profile-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
.teacher-profile-shortcuts button { box-sizing: border-box; width: 100%; min-width: 0; min-height: 48px; border: 1px solid #9fb4c1; background: #eaf1f4; color: #16465f; font-weight: 750; }
.teacher-schedule-toolbar { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.teacher-schedule-settings { position: relative; min-width: 210px; border: 1px solid #b8c8d3; background: #fff; }
.teacher-schedule-settings summary { padding: 10px 12px; cursor: pointer; color: #204c65; font-weight: 800; }
.teacher-schedule-settings[open] { padding-bottom: 10px; }
.teacher-schedule-settings label { display: flex; align-items: center; gap: 8px; padding: 6px 12px; margin: 0; color: #435e6e; font-size: .82rem; }
.teacher-schedule-settings input { width: auto; margin: 0; }
.teacher-schedule-settings small { display: block; padding: 7px 12px 0; color: #71838f; }
.teacher-schedule-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 20px; border: 1px solid #b9c8d2; }
.teacher-schedule-days button { min-height: 44px; padding: 8px; border: 0; border-right: 1px solid #c9d4db; border-radius: 0; background: #eef3f5; color: #4d6574; font-weight: 750; }
.teacher-schedule-days button:last-child { border-right: 0; }
.teacher-schedule-days button.is-active { background: #0c4968; color: #fff; }
.teacher-profile-schedule-list { display: grid; gap: 8px; margin-top: 12px; }
.teacher-profile-schedule-list article { display: grid; grid-template-columns: 100px 90px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 62px; padding: 10px 14px; border: 1px solid #cbd7de; border-left: 4px solid #1685a9; background: #fff; }
.teacher-profile-schedule-list article > span { color: #536b79; font-size: .78rem; font-weight: 750; text-transform: uppercase; }
.teacher-profile-schedule-list article strong { color: #14394f; }
.teacher-profile-schedule-list article small { color: #5e7482; }
.teacher-profile-schedule-list.is-compact article { min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.teacher-profile-panel[data-profile-panel="notifications"] { max-width: 700px; }
.teacher-profile-panel[data-profile-panel="notifications"] #teacher-profile-push .card { margin-top: 16px; border-radius: 4px; box-shadow: none; }

@media (max-width: 780px) {
  .teacher-profile-header { align-items: start; padding: 20px 18px; }
  .teacher-profile-panel { padding: 14px; }
  .teacher-profile-tabs button { min-height: 46px; padding: 8px 5px; font-size: .78rem; }
  .teacher-profile-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teacher-profile-metrics > div:nth-child(2) { border-right: 0; }
  .teacher-profile-metrics > div:nth-child(-n+2) { border-bottom: 1px solid #d7e0e5; }
  .teacher-profile-overview-grid { grid-template-columns: minmax(0, 1fr); }
  .teacher-profile-shortcuts { grid-template-columns: minmax(0, 1fr); }
  .teacher-schedule-toolbar { display: grid; }
  .teacher-schedule-settings { width: 100%; min-width: 0; }
  .teacher-schedule-days { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; grid-template-columns: repeat(5, minmax(88px, 1fr)); }
  .teacher-profile-schedule-list article, .teacher-profile-schedule-list.is-compact article { grid-template-columns: 72px 64px minmax(0, 1fr); gap: 8px; min-height: 48px; padding: 7px 9px; }
  .teacher-profile-facts-card dl > div { grid-template-columns: 96px minmax(0, 1fr); }
  .teacher-editorial-cover {
    padding: 18px 18px 24px;
  }

  .teacher-editorial-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 24px;
  }

  .teacher-editorial-title-block h1 {
    font-size: 2.6rem;
    line-height: 1.02;
  }

  .teacher-editorial-index {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 4px 14px;
    min-height: 0;
    padding: 14px 0 0;
    border-top: 1px solid var(--editorial-ink);
    border-left: 0;
  }

  .teacher-editorial-issue {
    grid-row: span 2;
    font-size: 3.4rem;
  }

  .teacher-editorial-index strong {
    margin-top: 4px;
  }

  .teacher-editorial-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-editorial-metrics > div {
    min-height: 112px;
    padding: 16px 18px;
    border-bottom: 1px solid #42444a;
  }

  .teacher-editorial-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .teacher-editorial-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .teacher-editorial-program,
  .teacher-editorial-notification,
  .teacher-editorial-duties {
    padding: 24px 18px;
  }

  .teacher-editorial-notification {
    border-top: 1px solid var(--editorial-ink);
    border-left: 0;
  }

  .teacher-editorial-facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }

  .teacher-editorial-section-head {
    display: grid;
    gap: 10px;
  }

  .teacher-editorial-section-head p {
    text-align: left;
  }

  .teacher-editorial-duty {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
  }

  .teacher-editorial-duty-no {
    font-size: 1.65rem;
  }

  .teacher-editorial-duty-context {
    grid-column: 2;
    padding: 10px 0 0;
    border-top: 1px solid #d7d9de;
    border-left: 0;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .teacher-profile-header { flex-direction: column; gap: 10px; }
  .teacher-profile-state { align-self: flex-start; }
  .teacher-schedule-days { grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; }
  .teacher-schedule-days button { min-width: 0; padding: 6px 2px; font-size: 0; }
  .teacher-schedule-days button::after { font-size: .72rem; }
  .teacher-schedule-days button:nth-child(1)::after { content: "Pzt"; }
  .teacher-schedule-days button:nth-child(2)::after { content: "Sal"; }
  .teacher-schedule-days button:nth-child(3)::after { content: "Çar"; }
  .teacher-schedule-days button:nth-child(4)::after { content: "Per"; }
  .teacher-schedule-days button:nth-child(5)::after { content: "Cum"; }
}

.import-validation {
  margin: 14px 0;
}

.class-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.class-chip-list span {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 7px 9px;
  background: #fff;
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

.mini-trend {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 108px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.mini-trend-day {
  display: grid;
  grid-template-rows: 78px auto;
  align-items: end;
  justify-items: center;
  min-width: 34px;
  color: var(--color-text-muted);
  font-size: 0.74rem;
}

.mini-trend-day span {
  display: block;
  width: 18px;
  border-radius: 6px 6px 2px 2px;
  background: var(--color-primary);
}

.student-pick-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 14px;
}

.student-pick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  min-height: 64px;
  overflow: hidden;
  padding: 0 9px 0 0;
  color: var(--color-text);
}

.student-pick-copy { flex: 1 1 auto; min-width: 0; }

.student-photo {
  position: relative;
  display: grid !important;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 50px;
  overflow: hidden;
  border: 1px solid #cbd6e0;
  border-radius: 5px;
  background: #edf2f6;
  color: #35546f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.student-photo img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.student-photo-fallback { position: absolute; inset: 0; z-index: 1; display: grid !important; place-items: center; }
.student-photo.image-error img { display: none; }
.student-photo.is-clickable { cursor: zoom-in; box-shadow: 0 1px 3px rgba(20, 48, 78, .12); }
.student-photo.is-clickable:focus-visible { outline: 3px solid rgba(38, 111, 174, .35); outline-offset: 2px; }
.student-photo-course { width: 46px; height: 56px; border-radius: 4px; }
.student-photo-list { width: 42px; height: 52px; }
.student-photo-admin { width: 36px; height: 45px; }
.student-photo-attendance { width: 42px; height: 52px; }
.student-photo-file { width: 56px; height: 70px; font-size: 14px; }
.student-file-identity { display: flex; align-items: center; gap: 13px; margin-bottom: 12px; }
.student-file-identity h2, .student-file-identity p { margin: 0; }

.student-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 24, 42, .82);
  backdrop-filter: blur(3px);
}
.student-photo-lightbox.hidden { display: none; }
.student-photo-lightbox figure { margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 7px; background: #fff; box-shadow: 0 24px 64px rgba(0,0,0,.38); }
.student-photo-lightbox figure img { display: block; width: min(360px, 82vw); max-height: 70vh; object-fit: contain; background: #edf1f4; }
.student-photo-lightbox figcaption { display: grid; gap: 2px; padding: 12px 14px; color: #15375f; }
.student-photo-lightbox figcaption span { color: #6b7b8a; font-size: 12px; }
.student-photo-lightbox-close { position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(10,30,52,.72); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

.record-center-header { border: 1px solid #d6dbe1; border-top: 3px solid #27384b; box-shadow: 0 8px 24px rgba(24, 31, 40, .06); }
.record-center-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 13px; }
.record-center-heading h2 { margin: 3px 0 0; color: #18212c; font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; }
.record-center-heading p { max-width: 520px; margin: 0; color: #647687; font-size: .85rem; text-align: right; }
.record-center-kicker { color: #526578; font-size: .68rem; font-weight: 900; }
.record-center-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 4px;
}
.record-center-sections .chip { width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid #cfd5dc; border-radius: 5px; background: #f5f6f7; color: #303943; }
.record-center-sections .chip:hover { border-color: #8d9aaa; background: #eceff2; }
.record-center-sections .chip.selected { border-color: #273b52; background: #1a2b40; color: #fff; box-shadow: inset 3px 0 #aeb8c4; }
.record-center-context { padding-top: 14px; padding-bottom: 14px; }
#record-center-photo-workspace .student-photo-manager-hero { margin-top: 0; }

.student-photo-manager-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 14px;
  padding: 24px 28px;
  border-left: 4px solid #7e8fa1;
  background: #f1f3f5;
}
.student-photo-manager-hero > div:first-child > span { color: #526578; font-size: .72rem; font-weight: 800; letter-spacing: 0; }
.student-photo-manager-hero h2 { margin: 4px 0 6px; color: #182433; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3vw, 2.55rem); line-height: 1.05; }
.student-photo-manager-hero p { max-width: 760px; margin: 0; color: #5d6d7c; }
.student-photo-manager-summary { display: grid; grid-template-columns: repeat(3, minmax(92px, 1fr)); gap: 1px; border: 1px solid #d8e2e7; background: #d8e2e7; }
.student-photo-manager-summary div { display: grid; gap: 2px; min-width: 105px; padding: 13px 15px; background: #fff; }
.student-photo-manager-summary strong { color: #103965; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; }
.student-photo-manager-summary span { color: #657482; font-size: .75rem; }
.student-photo-manager-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 14px; }
.student-photo-dropzone { display: grid; justify-items: center; gap: 5px; padding: 24px; border: 1px dashed #84a8ba; background: #f7fafb; color: #173d66; cursor: pointer; text-align: center; }
.student-photo-dropzone:hover { border-color: #18834b; background: #f2f9f5; }
.student-photo-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.student-photo-drop-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #e2f1e8; color: #087d40; font-size: 1.7rem; }
.student-photo-dropzone small { color: #687b88; }
.student-photo-preview-button { margin-top: 14px; }
.student-photo-guidance ol { display: grid; gap: 10px; margin: 12px 0 16px; padding-left: 22px; color: #344f67; }
.student-photo-catalog-card { margin-top: 14px; }
.student-photo-catalog-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.student-photo-catalog-head p { margin: 5px 0 0; }
.student-photo-filters { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(150px, .75fr) minmax(170px, .8fr) auto; gap: 9px; margin: 16px 0 12px; }
.student-photo-filters input, .student-photo-filters select { margin: 0; }
.student-photo-list-count { margin-bottom: 8px; color: #687b88; font-size: .78rem; }
.student-photo-empty-state { display: grid; justify-items: start; gap: 5px; padding: 20px; border-left: 4px solid #7d9bad; background: #f4f7f8; color: #173d66; }
.student-photo-empty-state span { color: #687b88; font-size: .82rem; }
.student-photo-admin-list { display: grid; gap: 5px; }
.student-photo-admin-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 76px; padding: 5px 8px 5px 5px; border: 1px solid #dce4e9; border-left: 3px solid #8ba6b8; background: #fff; }
.student-photo-admin-copy { display: grid; min-width: 0; gap: 2px; }
.student-photo-admin-copy strong { overflow: hidden; color: #123b66; text-overflow: ellipsis; white-space: nowrap; }
.student-photo-admin-copy span { color: #627482; font-size: .8rem; }
.student-photo-admin-copy small { width: max-content; font-size: .72rem; font-weight: 700; }
.photo-ready { color: #087d40; }
.photo-missing { color: #a44135; }
.student-photo-admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.student-photo-single-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.student-photo-preview-card { margin-top: 14px; border-top: 4px solid #18834b; }
.student-photo-preview-head, .student-photo-preview-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.student-photo-preview-head p { margin: 5px 0 0; color: #5f7180; }
.student-photo-preview-list { display: grid; gap: 6px; margin-top: 15px; }
.student-photo-preview-row { display: grid; grid-template-columns: 28px 66px minmax(180px, 1fr) minmax(260px, .85fr); align-items: center; gap: 10px; padding: 7px; border: 1px solid #dce4e8; background: #fff; }
.student-photo-preview-row.matched { border-left: 4px solid #18834b; }
.student-photo-preview-row.needs-match { border-left: 4px solid #c88b19; background: #fffaf0; }
.student-photo-preview-row > img { width: 58px; height: 72px; object-fit: cover; border: 1px solid #d8e1e6; }
.student-photo-preview-check { display: grid; place-items: center; }
.student-photo-preview-check input { width: 20px; height: 20px; margin: 0; }
.student-photo-preview-copy { display: grid; gap: 3px; min-width: 0; }
.student-photo-preview-copy strong { color: #123b66; }
.student-photo-preview-copy span, .student-photo-preview-copy small { color: #667986; font-size: .77rem; }
.student-photo-match-tools { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.student-photo-match-tools input { margin: 0; min-width: 0; }
.student-photo-match-results { position: absolute; z-index: 6; top: calc(100% + 4px); right: 0; left: 0; display: grid; max-height: 220px; overflow: auto; border: 1px solid #bfcdd6; background: #fff; box-shadow: 0 10px 24px rgba(18, 50, 80, .16); }
.student-photo-match-results:empty { display: none; }
.student-photo-match-choice { display: grid; gap: 2px; padding: 8px 10px; border: 0; border-bottom: 1px solid #e1e7eb; border-radius: 0; background: #fff; color: #173d66; text-align: left; }
.student-photo-match-choice:hover { background: #eef6f1; }
.student-photo-match-choice span { color: #687b88; font-size: .74rem; }
.student-photo-preview-footer { margin-top: 15px; padding-top: 12px; border-top: 1px solid #dce4e8; }
.student-photo-preview-footer span { color: #637482; font-size: .8rem; }
.student-photo-history-card { margin-top: 14px; }
.student-photo-history-card summary { color: #173d66; font-weight: 800; cursor: pointer; }
.student-photo-history-list { display: grid; gap: 2px; margin-top: 12px; }
.student-photo-history-list article { display: flex; justify-content: space-between; gap: 14px; padding: 8px 2px; border-bottom: 1px solid #e2e8eb; }
.student-photo-history-list article div { display: grid; gap: 2px; }
.student-photo-history-list span, .student-photo-history-list small { color: #687b88; font-size: .75rem; }

@media (max-width: 800px) {
  .record-center-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .record-center-heading p { text-align: left; }
  .record-center-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .student-photo-manager-hero { grid-template-columns: 1fr; padding: 20px; }
  .student-photo-manager-summary { width: 100%; }
  .student-photo-manager-summary div { min-width: 0; padding: 10px; }
  .student-photo-manager-grid { grid-template-columns: 1fr; }
  .student-photo-filters { grid-template-columns: 1fr 1fr; }
  .student-photo-filters input { grid-column: 1 / -1; }
  .student-photo-admin-row { grid-template-columns: 56px minmax(0, 1fr); }
  .student-photo-admin-actions { grid-column: 1 / -1; justify-content: flex-start; padding-left: 68px; }
  .student-photo-preview-row { grid-template-columns: 24px 58px minmax(0, 1fr); }
  .student-photo-preview-row > img { width: 52px; height: 65px; }
  .student-photo-match-tools { grid-column: 2 / -1; }
  .student-photo-preview-footer { align-items: stretch; flex-direction: column; }
}

@media (max-width: 500px) {
  .student-photo-manager-summary span { font-size: .66rem; }
  .student-photo-manager-summary strong { font-size: 1.2rem; }
  .student-photo-filters { grid-template-columns: 1fr; }
  .student-photo-filters input { grid-column: auto; }
  .student-photo-admin-actions { padding-left: 0; }
  .student-photo-admin-actions .btn-small, .student-photo-admin-actions label { flex: 1 1 auto; text-align: center; }
  .student-photo-preview-row { grid-template-columns: 24px 52px minmax(0, 1fr); }
  .student-photo-match-tools { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .student-photo { width: 38px; height: 48px; }
  .student-photo-course { width: 46px; height: 56px; }
  .student-photo-lightbox { padding: 16px; }
  .student-photo-lightbox figure img { width: min(330px, 86vw); max-height: 72vh; }
}

.student-pick .student-photo-pick {
  align-self: stretch;
  width: 52px;
  height: auto;
  min-height: 62px;
  border-width: 0 1px 0 0;
  border-radius: 7px 0 0 7px;
  box-shadow: none;
}

.teacher-student-row.student-list-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 2px 9px 2px 2px;
  overflow: hidden;
}

.teacher-student-row .student-photo { margin-top: 0; }

.activity-student-copy {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.activity-student-copy strong,
.activity-student-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .student-pick { gap: 7px; padding-right: 6px; }
  .student-pick .student-photo-pick { width: 50px; }
}

.student-pick.selected {
  border-color: #287a4b;
  background: #eef8f0;
  box-shadow: inset 4px 0 0 #287a4b;
}

.student-pick strong,
.student-pick span,
.student-pick small {
  display: block;
}

.student-pick span {
  min-width: 0;
}

.student-pick small {
  color: var(--color-text-muted);
  font-size: 0.86rem;
  margin-top: 2px;
}

.student-pick-status {
  flex: 0 0 auto;
  min-width: 86px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--color-text-muted);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.student-pick.selected .student-pick-status {
  background: #287a4b;
  color: #fff;
}

@media (max-width: 480px) {
  .student-pick-status { min-width: 72px; padding: 5px 6px; font-size: .71rem; }
}
.teacher-profile-page {
  display: grid;
  gap: 16px;
}

.teacher-profile-stats {
  margin: 0;
}

.profile-info-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--color-border);
  background: var(--color-border);
  overflow: hidden;
  border-radius: 6px;
}

.profile-info-band > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  background: var(--color-surface);
}

.profile-info-band strong {
  overflow-wrap: anywhere;
}

.teacher-duty-section {
  display: grid;
  gap: 10px;
}

.teacher-duty-list {
  display: grid;
  gap: 8px;
}

.teacher-duty-item {
  padding: 14px;
  border: 1px solid var(--color-border);
  border-left: 4px solid #287a4b;
  border-radius: 6px;
  background: var(--color-surface);
}

.teacher-duty-heading,
.teacher-duty-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.teacher-duty-heading h3 {
  margin: 7px 0 0;
  font-size: 1rem;
}

.teacher-duty-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--color-text-muted);
  font-size: .9rem;
}

.teacher-duty-item p {
  margin: 10px 0 0;
}

.teacher-duty-composer {
  margin-top: 6px;
}

.teacher-duty-composer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.teacher-duty-composer-heading p {
  max-width: 720px;
  margin: 5px 0 0;
}

.teacher-duty-composer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-bottom: 12px;
}

@media (max-width: 720px) {
  .profile-card-core-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-card-branch { grid-column: 1 / -1; }
  .profile-card > .btn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-card > .btn-row > button { width: 100%; min-width: 0; }
}

@media (max-width: 480px) {
  .profile-card { padding: 8px; }
  .profile-card-core-grid,
  .profile-card-meta-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-card-branch { grid-column: auto; }
  .profile-compact-drawer > summary { min-height: 32px; padding: 5px 7px; }
  .profile-compact-drawer > summary small { max-width: 45%; text-align: right; }
}

.teacher-duty-composer-grid label {
  display: grid;
  align-content: start;
  gap: 6px;
  margin: 0;
}

.teacher-duty-composer-grid select,
.teacher-duty-composer-grid input {
  width: 100%;
}

.teacher-duty-composer-actions {
  justify-content: flex-end;
  margin-top: 12px;
}

@media (max-width: 700px) {
  .teacher-duty-composer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .teacher-duty-composer-actions .app-save-button {
    width: 100%;
  }
}

.student-panel-tabs {
  margin-top: 14px;
}

.activity-workspace { display: grid; gap: 14px; }
.activity-workspace-header { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 4px 2px 10px; border-bottom: 1px solid #bfcbd7; }
.activity-workspace-header h2 { margin: 2px 0 3px; color: #103f5c; font-size: 2rem; letter-spacing: 0; }
.activity-record-panel-head p { margin: 0; color: #657687; font-size: .84rem; }
.activity-workspace-kicker, .activity-composer-head > div > span, .activity-record-panel-head > div > span { color: #147598; font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.activity-workspace-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 5px; border: 1px solid #ccd7e1; background: #eef3f6; }
.activity-workspace-tab { display: grid; gap: 2px; min-height: 54px; padding: 9px 13px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #52677a; text-align: left; }
.activity-workspace-tab span { font-size: .9rem; font-weight: 800; }
.activity-workspace-tab small { color: inherit; font-size: .7rem; opacity: .82; }
.activity-workspace-tab.active { border-color: #174e6c; background: #0c4968; color: #fff; box-shadow: 0 7px 16px rgba(12, 73, 104, .14); }
.activity-workspace-tab-create.active { border-color: #166948; background: #16734f; }
.activity-composer-panel, .activity-record-panel { min-width: 0; }
.activity-composer-panel[hidden], .activity-record-panel[hidden] { display: none !important; }
.activity-composer-head, .activity-record-panel-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 8px 2px 9px; }
.activity-composer-head h3, .activity-record-panel-head h3 { margin: 2px 0; color: #173f58; font-size: 1.15rem; }
.activity-form-compact { gap: 6px; }
.activity-essential-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; width: 100%; }
.activity-essential-grid > div { display: grid; min-width: 0; }
.activity-essential-grid input, .activity-essential-grid select { width: 100%; }
.activity-schedule-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.activity-time-grid { grid-template-columns: repeat(2, minmax(0, 220px)); }
.activity-form-actions { display: flex; justify-content: flex-end; padding-top: 5px; }
.activity-form-actions .app-save-button { width: auto; min-width: 190px; }
.activity-detail-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid #ccd7e1; background: #ccd7e1; gap: 1px; }
.activity-detail-fact { display: grid; align-content: start; gap: 5px; min-width: 0; min-height: 68px; padding: 11px 12px; background: #fff; }
.activity-detail-fact > span { color: #6c7d8c; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.activity-detail-fact strong { color: #173f58; font-size: .84rem; line-height: 1.35; overflow-wrap: anywhere; }
.activity-detail-fact i { color: #2a7695; font-style: normal; font-weight: 500; }
.activity-detail-team strong { font-size: .78rem; }
.activity-review-note { display: grid; gap: 3px; padding: 9px 11px; border-left: 3px solid #bf7620; background: #fff8eb; color: #634819; }
.activity-review-note strong, .activity-review-note span { font-size: .78rem; }
.activity-admin-drawer { margin: 0; }
.activity-admin-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 10px !important; }
.activity-admin-action-block { display: grid; gap: 7px; min-width: 0; }
.activity-admin-action-block textarea { min-height: 54px; margin: 0; }
.activity-admin-action-block .btn-row { margin: 0; }
.activity-admin-action-block > .btn-small { width: auto; }
.activity-record .activity-record-main { position: relative; display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 2fr) minmax(90px, 1fr); align-items: center; min-height: 52px; padding: 9px 12px; text-align: center; }
.activity-record .activity-record-main > strong { grid-column: 2; color: #103f5c; font-size: 1.08rem; line-height: 1.2; }
.activity-record .activity-record-main > .badge { grid-column: 3; justify-self: end; }
.activity-session-history-list { display: grid; gap: 1px; padding: 0 !important; background: #d7e0e8; }
.activity-session-history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; background: #fff; }
.activity-session-history-row strong, .activity-session-history-row span { display: block; }
.activity-session-history-row strong { color: #24495f; font-size: .78rem; }
.activity-session-history-row span { margin-top: 2px; color: #72818e; font-size: .7rem; }
.activity-session-history-row .btn-small { width: auto; }
.activity-reactivate-panel { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #b9d3c6; background: #f2faf6; }
.activity-reactivate-panel strong, .activity-reactivate-panel span { display: block; }
.activity-reactivate-panel strong { color: #24583f; font-size: .84rem; }
.activity-reactivate-panel span { margin-top: 2px; color: #5d796b; font-size: .72rem; }
.activity-reactivate-panel .btn-small { width: auto; }
.activity-reactivate-actions { display: grid; grid-template-columns: 150px auto; gap: 7px; align-items: end; }
.activity-reactivate-actions label { display: grid; gap: 3px; color: #567064; font-size: .7rem; font-weight: 800; }
.activity-reactivate-actions input { min-height: 36px; margin: 0; }
.activity-form-section { border: 1px solid #ccd7e1; background: #fff; }
.activity-form-section > summary { display: grid; grid-template-columns: 30px minmax(150px, .55fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 46px; padding: 7px 11px; color: #173f58; cursor: pointer; list-style: none; }
.activity-form-section > summary::-webkit-details-marker { display: none; }
.activity-form-section > summary::after { content: "+"; grid-column: 4; color: #276983; font-size: 1.15rem; font-weight: 400; }
.activity-form-section[open] > summary::after { content: "−"; }
.activity-form-section > summary > span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #9eb8c7; color: #1b6e8e; font-size: .68rem; font-weight: 850; }
.activity-form-section > summary strong { font-size: .87rem; }
.activity-form-section > summary small { color: #758593; font-size: .73rem; }
.activity-form-section-body { display: grid; gap: 10px; padding: 11px; border-top: 1px solid #dce4ea; background: #f9fbfc; }
.activity-form-section-body label { margin-bottom: 4px; font-size: .76rem; }
.activity-form-section-body input, .activity-form-section-body select, .activity-form-section-body textarea { margin-bottom: 0; min-height: 38px; }
.activity-student-filter-grid { display: grid; grid-template-columns: minmax(130px, .35fr) minmax(140px, .4fr) minmax(260px, 1fr); gap: 9px; align-items: end; }
.activity-student-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.activity-student-search .btn-secondary { width: auto; min-width: 64px; }

.activity-module-card,
.activity-form,
.activity-record-list,
.activity-detail-panel {
  display: grid;
  gap: 12px;
}

.activity-teacher-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #f8fafc;
}

.activity-teacher-selected,
.activity-teacher-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.activity-teacher-selected strong,
.activity-teacher-selected span {
  display: block;
}

.activity-teacher-selected .btn-small {
  width: auto;
  flex: 0 0 auto;
}

.compact-note {
  margin: 0;
}

.activity-teacher-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.activity-teacher-chip {
  width: auto;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #b7d2bd;
  border-radius: 999px;
  background: #edf8ef;
  color: #21452b;
  text-align: left;
}

.activity-teacher-chip strong,
.activity-teacher-chip span {
  display: inline;
  font-size: 0.84rem;
}

.activity-teacher-chip span {
  color: #3d6747;
  margin-left: 5px;
}

.activity-teacher-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, .45fr);
}

.activity-teacher-tools input,
.activity-teacher-tools select {
  margin-bottom: 0;
}

.activity-teacher-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-height: 206px;
  overflow: auto;
  padding: 2px;
}

.activity-teacher-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  text-align: left;
}

.activity-teacher-card.selected {
  border-color: #287a4b;
  background: #f0f8f2;
}

.activity-teacher-card strong,
.activity-teacher-card small {
  display: block;
  overflow-wrap: anywhere;
}

.activity-teacher-card small {
  margin-top: 1px;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.activity-teacher-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--color-primary-dark);
  font-weight: 800;
}

.activity-teacher-card.selected .activity-teacher-mark {
  background: #287a4b;
  color: #fff;
}

.activity-selection-summary,
.activity-record-main,
.activity-record-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.activity-record {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  overflow: hidden;
}

.activity-record-main {
  width: 100%;
  border: 0;
  background: #fff;
  color: var(--color-text);
  padding: 10px 12px 7px;
  text-align: left;
}

.activity-record-main strong,
.activity-record-main small {
  display: block;
}

.activity-record-main small,
.activity-record-meta {
  color: var(--color-text-muted);
  font-size: .86rem;
}

.activity-record-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 0 12px 9px;
}

.activity-record-detail {
  padding: 0 12px 12px;
}

.activity-record-view-tabs {
  display: flex;
  gap: 4px;
  margin: 12px 0 14px;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #f3f5f8;
}

.activity-record-view-tab {
  width: auto;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--color-text-muted);
  font-size: .86rem;
}

.activity-record-view-tab.active {
  border-color: #173892;
  background: #2f5bff;
  color: #fff;
}

.activity-record-status {
  font-weight: 700;
}

.activity-record-status.status-tamamlandi { color: #176b35; }
.activity-record-status.status-iptal { color: #8a5a00; }

.activity-report-drawer {
  border-color: #b9c8d8;
  background: #fbfcfe;
}

.activity-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.activity-report-config {
  display: grid;
  grid-template-columns: minmax(180px, 320px) minmax(0, 1fr);
  align-items: end;
  gap: 6px 14px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #d6dee7;
  border-radius: 6px;
  background: #f6f8fb;
}

.activity-report-config label {
  grid-column: 1;
  margin: 0;
}

.activity-report-config select {
  grid-column: 1;
  margin: 0;
}

.activity-report-config p {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.activity-report-actions .btn-small {
  flex: 1 1 160px;
}

.activity-report-slot {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.activity-report-slot.activity-report-preparing {
  position: fixed;
  left: -220vw;
  top: 0;
  width: 210mm;
  margin: 0;
  pointer-events: none;
}

.activity-report-document {
  position: relative;
  isolation: isolate;
  overflow-x: auto;
  padding: 18px;
  border: 1px solid #cdd5df;
  border-radius: 6px;
  background: #fff;
  color: #17212b;
}

.activity-report-document > :not(.activity-report-stationery) {
  position: relative;
  z-index: 1;
}

.activity-report-stationery {
  display: none;
  pointer-events: none;
}

.activity-report-stationery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.activity-report-letterhead {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) 98px;
  align-items: center;
  gap: 16px;
  margin-bottom: 15px;
  padding: 2px 0 13px;
  border-bottom: 2px solid #173d6d;
  text-align: center;
}

.activity-letterhead-logo,
.activity-letterhead-balance {
  width: 98px;
  height: 92px;
}

.activity-letterhead-logo {
  display: grid;
  place-items: center;
}

.activity-letterhead-logo img {
  display: block;
  width: 92px;
  height: 86px;
  object-fit: contain;
}

.activity-letterhead-identity span,
.activity-letterhead-identity small,
.activity-letterhead-contact span {
  display: block;
}

.activity-letterhead-identity span {
  color: #334e6c;
  font-size: .72rem;
  font-weight: 800;
}

.activity-letterhead-identity h1 {
  margin: 4px 0;
  color: #102a4e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.activity-letterhead-identity small,
.activity-letterhead-contact {
  color: #647180;
  font-size: .72rem;
}

.activity-letterhead-contact {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: -5px;
}


.activity-report-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid #193f74;
}

.activity-report-heading h2 {
  margin: 4px 0;
  color: #102a4e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.activity-report-heading p,
.activity-report-heading-meta small {
  margin: 0;
  color: #566271;
}

.activity-report-kicker {
  color: #31557d;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.activity-report-heading-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 140px;
  text-align: right;
}

.activity-report-metrics,
.activity-report-outcomes {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 7px;
  margin: 9px 0 12px;
}

.activity-report-outcomes {
  grid-template-columns: repeat(5, minmax(88px, 1fr));
}

.activity-report-metrics div,
.activity-report-outcomes div {
  padding: 6px 9px;
  border: 1px solid #dce3ea;
  border-radius: 4px;
  background: #f7f9fb;
}

.activity-report-metrics strong,
.activity-report-metrics span,
.activity-report-outcomes strong,
.activity-report-outcomes span {
  display: block;
}

.activity-report-metrics strong,
.activity-report-outcomes strong {
  color: #173d6d;
  font-size: 1rem;
  line-height: 1.1;
}

.activity-report-metrics span,
.activity-report-outcomes span {
  margin-top: 1px;
  color: #617080;
  font-size: .69rem;
  line-height: 1.2;
}

.activity-report-section {
  margin-top: 18px;
}

.activity-report-section h3 {
  margin: 0 0 9px;
  padding-bottom: 5px;
  border-bottom: 1px solid #d9e0e8;
  color: #173d6d;
  font-size: .95rem;
}

.activity-report-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0 18px;
  margin: 0;
}

.activity-report-facts div {
  display: grid;
  grid-template-columns: minmax(80px, .7fr) minmax(0, 1.3fr);
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #edf0f3;
}

.activity-report-facts dt {
  color: #667383;
  font-size: .78rem;
  font-weight: 700;
}

.activity-report-facts dd {
  margin: 0;
  font-size: .84rem;
}

.activity-report-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: .8rem;
}

.activity-report-table th,
.activity-report-table td {
  padding: 7px 8px;
  border: 1px solid #dde3e9;
  text-align: left;
  vertical-align: top;
}

.activity-report-table th {
  background: #edf2f7;
  color: #263b52;
}

.activity-report-table td small {
  display: block;
  margin-top: 2px;
  color: #687585;
}

.activity-report-note,
.activity-report-warning {
  padding: 9px 10px;
  border-left: 3px solid #315f95;
  background: #f4f7fb;
  font-size: .82rem;
}

.activity-report-warning {
  border-left-color: #a66b00;
  background: #fff8e8;
  color: #714b08;
}

.activity-report-contact-item {
  display: grid;
  gap: 2px;
}

.activity-report-contact-item strong {
  color: #263b43;
  font-size: .72rem;
}

.activity-report-closing {
  margin-top: 22px;
  padding: 12px;
  border: 1px solid #c7d1dc;
  border-radius: 5px;
  background: #fbfcfe;
  break-inside: avoid;
}

.activity-report-closing-text {
  padding: 0 2px 10px;
  border-bottom: 1px solid #d9e0e8;
}

.activity-report-closing-text strong,
.activity-report-closing-text small {
  display: block;
}

.activity-report-closing-text strong {
  color: #173d6d;
  font-size: .88rem;
}

.activity-report-closing-text p {
  margin: 6px 0;
  color: #334252;
  font-size: .82rem;
  line-height: 1.45;
}

.activity-report-closing-text small {
  color: #687585;
  font-size: .72rem;
}

.activity-report-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 14px;
  break-inside: avoid;
}

.activity-report-signatures-single {
  grid-template-columns: minmax(240px, 48%);
  justify-content: end;
}

.activity-signature-block {
  min-height: 138px;
  padding: 12px 14px;
  border: 1px solid #c8d1dc;
  border-radius: 5px;
  text-align: center;
}

.activity-signature-block > span,
.activity-signature-block > strong,
.activity-signature-block > small {
  display: block;
}

.activity-signature-block > span {
  margin-bottom: 9px;
  color: #365573;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.activity-signature-block > strong {
  min-height: 20px;
  color: #172f4b;
  font-size: .9rem;
}

.activity-signature-block > small {
  margin-top: 3px;
  color: #647180;
}

.activity-signature-line {
  width: 72%;
  margin: 48px auto 0;
  padding-top: 5px;
  border-top: 1px solid #778493;
  color: #647180;
  font-size: .72rem;
}

.activity-signature-approval {
  border-color: #9eb2c9;
  background: #fbfcfe;
}

#app-print-root {
  display: none;
}

.print-document-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 8mm;
  padding-bottom: 4mm;
  border-bottom: 2px solid #173d6d;
}

.print-document-logo-slot,
.print-document-logo {
  width: 18mm;
  height: 18mm;
}

.print-document-logo {
  object-fit: contain;
}

.print-document-identity {
  min-width: 0;
}

.print-school-name {
  display: block;
  margin-top: 1mm;
  color: #102a4e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13pt;
  font-weight: 600;
}

.print-document-header h1 {
  margin: 2mm 0 0;
  color: #102a4e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18pt;
  font-weight: 600;
}

.print-document-header p {
  margin: 1mm 0 0;
  color: #4d5966;
  font-size: 9pt;
}

.print-institution {
  color: #31557d;
  font-size: 6.8pt;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  text-transform: uppercase;
}

.print-document-meta {
  max-width: 70mm;
  color: #5f6975;
  font-size: 8pt;
  text-align: right;
  white-space: pre-line;
}

.institution-settings-panel {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #bfcddd;
  border-top: 4px solid #173d6d;
  border-radius: 6px;
  background: #f8fafc;
}

.institution-settings-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.institution-settings-heading h3 {
  margin: 3px 0 4px;
  color: #102a4e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.institution-settings-heading p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: .84rem;
}

.institution-settings-kicker {
  color: #31557d;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.institution-settings-layout {
  display: grid;
  grid-template-columns: minmax(170px, .42fr) minmax(0, 1.58fr);
  gap: 18px;
}

.institution-logo-manager {
  padding: 12px;
  border-right: 1px solid #d7dee7;
}

.institution-logo-preview {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 174px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px dashed #aab9c9;
  border-radius: 6px;
  background: #fff;
  color: #607080;
  font-size: .78rem;
  text-align: center;
}

.institution-logo-preview img {
  width: 116px;
  height: 116px;
  object-fit: contain;
}

.institution-logo-placeholder {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid #8fa4ba;
  border-radius: 50%;
  color: #31557d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.institution-logo-upload {
  display: block;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 6px;
  background: #173d6d;
  color: #fff;
  text-align: center;
  cursor: pointer;
}

.institution-logo-manager input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.institution-logo-manager .btn-small {
  width: 100%;
}

.institution-profile-fields input,
.institution-profile-fields textarea {
  width: 100%;
  margin-bottom: 12px;
}

.institution-active-year {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 12px;
  padding: 9px 12px;
  border: 1px solid #c7d3df;
  border-radius: 6px;
  background: #edf3f8;
  color: #173d6d;
  font-weight: 800;
}

.education-year-settings {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #c5d2df;
  border-left: 4px solid #198754;
  border-radius: 6px;
  background: #fff;
}

.education-year-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.education-year-heading h3 {
  margin: 3px 0 4px;
  color: #102a4e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.education-year-heading p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: .84rem;
}

.education-year-current {
  display: grid;
  min-width: 150px;
  padding: 10px 14px;
  border: 1px solid #a9c9b8;
  border-radius: 6px;
  background: #f0f8f4;
  color: #145c3a;
  text-align: right;
}

.education-year-current span {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.education-year-current strong { font-size: 1.05rem; }

.education-year-readiness {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.education-year-readiness > div {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #d5dee7;
  border-radius: 6px;
  background: #f7fafc;
}

.education-year-readiness span,
.education-year-readiness small { color: var(--color-text-muted); font-size: .72rem; }
.education-year-readiness strong { color: #113b61; font-size: 1rem; }

.education-year-warnings {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 9px 12px;
  border-left: 3px solid #b87913;
  background: #fff8e9;
  color: #79520e;
  font-size: .78rem;
  font-weight: 700;
}

.institution-year-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.institution-year-link-row .institution-active-year { flex: 1; }

.education-year-switcher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #b7cbe0;
  border-radius: 6px;
  background: #f3f7fb;
}

.education-year-switcher > div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.education-year-switcher label { margin-top: 0; }
.education-year-switcher select { width: 100%; margin: 4px 0; }
.education-year-switcher small { display: block; color: var(--color-text-muted); font-size: .75rem; }

.education-year-step {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: #0c4968;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
}

.education-year-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #d5dee7;
  border-bottom: 0;
  background: #f8fafc;
}

.education-year-list-heading > div,
.education-year-new-panel summary > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.education-year-list-heading small { color: var(--color-text-muted); }

.education-year-create {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-top: 1px solid #e0e6ec;
  border-bottom: 1px solid #e0e6ec;
  background: #f8fafc;
}

.education-year-create input { width: 100%; margin: 0; }
.education-year-create-action { padding-bottom: 1px; }
.education-year-note { grid-column: 1 / -1; }
.education-year-carry {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 11px 12px;
  border: 1px solid #d5dee7;
  border-radius: 6px;
  background: #fff;
}
.education-year-carry > div { display: grid; flex: 1 1 280px; gap: 2px; }
.education-year-carry > div span,
.education-year-carry > small { color: var(--color-text-muted); font-size: .74rem; }
.education-year-carry label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .78rem; }
.education-year-carry label input { width: auto; }
.education-year-carry > small { flex-basis: 100%; }

.education-year-new-panel { margin-top: 12px; border: 1px solid #d5dee7; border-radius: 6px; overflow: hidden; }
.education-year-new-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  color: #173d6d;
  font-weight: 800;
  cursor: pointer;
  background: #f8fafc;
}

.education-year-new-panel summary small { color: var(--color-text-muted); font-weight: 600; }

.education-year-list { border: 1px solid #d5dee7; }
.education-year-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-bottom: 1px solid #edf0f3;
}

.education-year-row.is-active {
  border-left: 4px solid #198754;
  background: #f4faf7;
}

.education-year-row > div { display: grid; gap: 2px; }
.education-year-row span,
.education-year-row small { color: var(--color-text-muted); }
.education-year-row .education-year-counts {
  color: #31557d;
  font-size: .76rem;
  font-weight: 700;
}

.education-year-row-title { display: flex; align-items: center; gap: 8px; }
.education-year-row-title strong { color: #102a4e; font-size: 1rem; }
.education-year-status,
.education-year-active-mark {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 800;
}
.education-year-status.aktif,
.education-year-active-mark { background: #dff3e8; color: #126139; }
.education-year-status.arsiv { background: #e9eef4; color: #4c6178; }
.education-year-empty { margin: 0; padding: 14px; }
.education-year-activate-after {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #b7cbe0;
  background: #eef5fb;
}
.education-year-activate-after input { width: auto; }

@media (max-width: 760px) {
  .education-year-heading { display: grid; }
  .education-year-current { text-align: left; }
  .education-year-switcher { grid-template-columns: minmax(0, 1fr); }
  .education-year-switcher .app-save-button { width: 100%; }
  .education-year-create { grid-template-columns: 1fr 1fr; }
  .education-year-create > * { min-width: 0; }
  .education-year-create-action,
  .education-year-note { grid-column: 1 / -1; }
  .education-year-create-action .app-save-button { width: 100%; }
  .education-year-row { align-items: stretch; flex-direction: column; }
  .education-year-readiness { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .education-year-settings { padding: 10px; }
  .institution-year-link-row { align-items: stretch; flex-direction: column; }
  .education-year-switcher > div { grid-template-columns: 28px minmax(0, 1fr); }
  .education-year-list-heading { align-items: flex-start; flex-direction: column; }
  .education-year-create { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .education-year-create > *,
  .education-year-create-action,
  .education-year-note { grid-column: 1; }
  .schedule-filter-grid + .btn-row { display: grid; grid-template-columns: minmax(0, 1fr); }
  .schedule-filter-grid + .btn-row > button { width: 100%; }
  header.app-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 38px 38px;
    gap: 7px;
    padding: 8px 10px 6px;
  }
  header.app-header h1 {
    justify-content: center;
    font-size: .88rem;
  }
  header.app-header .menu-toggle { grid-column: 1; grid-row: 1; }
  header.app-header .app-brand-lockup { grid-column: 2; grid-row: 1; }
  header.app-header .header-print-button { grid-column: 3; grid-row: 1; }
  header.app-header .teacher-settings-toggle { grid-column: 3; grid-row: 1; }
  header.app-header .header-notification-toggle { grid-column: 4; grid-row: 1; }
  .teacher-shell header.app-header .teacher-settings-toggle { grid-column: 1; grid-row: 1; }
  .teacher-shell header.app-header .header-notification-toggle { grid-column: 3; grid-row: 1; }
  .teacher-shell header.app-header .menu-toggle { grid-column: 4; grid-row: 1; }
  .teacher-shell header.app-header .user-badge { margin-left: 0; }
  header.app-header .user-badge {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
    padding-top: 4px;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, .18);
    font-size: .68rem;
    text-align: center;
  }
  .app-brand-lockup { gap: 6px; letter-spacing: .055em; }
  .app-brand-mark { flex-basis: 38px; width: 38px; height: 38px; font-size: 13px; }
  .teacher-home { gap: 13px; }
  .teacher-home-heading { padding-top: 6px; }
  .teacher-home-heading h2 { font-size: 1.42rem; }
  .teacher-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(126px, 1fr);
    gap: 8px;
    padding: 8px;
  }
  .teacher-home-module {
    min-height: 126px;
    padding: 14px;
  }
  .teacher-home-module-icon {
    right: 8px;
    bottom: 3px;
    width: 84px;
    height: 84px;
  }
  .teacher-home-module strong { font-size: 1.28rem; }
}

@media (max-width: 390px) {
  .teacher-home-grid { grid-template-columns: minmax(0, 1fr); }
  .teacher-home-module { min-height: 112px; }
}

@media (max-width: 620px) {
  .header-print-label { display: none; }
  .header-print-button { width: 38px; padding: 7px; }
  .activity-report-heading { display: grid; }
  .activity-report-heading-meta { justify-items: start; text-align: left; }
  .activity-report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-report-outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-report-facts { grid-template-columns: 1fr; }
  .activity-report-config,
  .activity-report-signatures { grid-template-columns: 1fr; }
  .activity-report-config label,
  .activity-report-config select,
  .activity-report-config p { grid-column: 1; grid-row: auto; }
  .activity-report-letterhead { grid-template-columns: 54px minmax(0, 1fr) 54px; }
  .activity-letterhead-logo,
  .activity-letterhead-balance { width: 54px; height: 54px; }
  .activity-letterhead-logo img { width: 52px; height: 52px; }
  .activity-letterhead-identity h1 { font-size: 1rem; }
  .institution-settings-heading { display: grid; }
  .institution-settings-heading .btn-small { width: 100%; }
  .institution-settings-layout { grid-template-columns: 1fr; }
  .institution-logo-manager { border-right: 0; border-bottom: 1px solid #d7dee7; }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 12mm 5mm;
  }

  body.printing-app-section {
    background: #fff !important;
  }

  body.printing-app-section > *:not(#app-print-root) {
    display: none !important;
  }

  body.printing-app-section #app-print-root {
    display: block !important;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #111;
    font-family: Arial, sans-serif;
    font-size: 9pt;
  }

  body.printing-app-section #app-print-root .card,
  body.printing-app-section #app-print-root .activity-record,
  body.printing-app-section #app-print-root .activity-report-document {
    overflow: visible;
    margin: 0 0 5mm;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  body.printing-app-section #app-print-root .activity-report-stationery {
    display: block;
    position: fixed;
    z-index: 0;
    top: -12mm;
    left: -12mm;
    width: 210mm;
    height: 297mm;
    max-width: none;
  }

  body.printing-app-section #app-print-root .activity-report-document {
    background: transparent;
  }

  body.printing-app-section #app-print-root .activity-report-stationery-contact {
    position: absolute;
    right: 8mm;
    bottom: 7mm;
    left: 22.5mm;
    display: grid;
    grid-template-columns: 49mm 40mm 51mm minmax(0, 1fr);
    align-items: start;
    gap: 0;
    height: 14mm;
    color: #26353c;
    font-size: 7pt;
    line-height: 1.2;
    pointer-events: none;
  }

  body.printing-app-section #app-print-root .activity-report-contact-item {
    align-content: start;
    min-width: 0;
    padding: 1.2mm 2mm 0 0;
  }

  body.printing-app-section #app-print-root .activity-report-contact-item strong {
    font-size: 7.4pt;
  }

  body.printing-app-section #app-print-root .activity-report-contact-item span {
    overflow-wrap: anywhere;
  }

  body.printing-app-section #app-print-root table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
  }

  body.printing-app-section #app-print-root thead {
    display: table-header-group;
  }

  body.printing-app-section #app-print-root tr,
  body.printing-app-section #app-print-root .activity-report-closing,
  body.printing-app-section #app-print-root .activity-report-signatures,
  body.printing-app-section #app-print-root .teacher-student-row,
  body.printing-app-section #app-print-root .stat-box {
    break-inside: avoid;
  }

  body.printing-app-section #app-print-root .activity-report-section h3 {
    break-after: avoid;
  }

  body.printing-app-section #app-print-root .activity-report-letterhead,
  body.printing-app-section #app-print-root .activity-report-heading,
  body.printing-app-section #app-print-root .activity-report-metrics {
    break-inside: avoid;
  }

  body.printing-app-section #app-print-root .activity-report-section {
    margin-top: 2.7mm;
  }

  body.printing-app-section #app-print-root .activity-report-section h3 {
    margin-bottom: 1.4mm;
    padding-bottom: 1mm;
    font-size: 10pt;
  }

  body.printing-app-section #app-print-root .activity-report-letterhead {
    grid-template-columns: 20mm minmax(0, 1fr) 20mm;
    gap: 3mm;
    margin-bottom: 2.5mm;
    padding: 0 0 2.5mm;
  }

  body.printing-app-section #app-print-root .activity-letterhead-logo,
  body.printing-app-section #app-print-root .activity-letterhead-balance {
    width: 20mm;
    height: 20mm;
  }

  body.printing-app-section #app-print-root .activity-letterhead-logo img {
    width: 19mm;
    height: 19mm;
  }

  body.printing-app-section #app-print-root .activity-letterhead-identity h1 {
    font-size: 15pt;
  }

  body.printing-app-section #app-print-root .activity-letterhead-contact {
    margin-top: -1mm;
    font-size: 6.5pt;
  }

  body.printing-app-section #app-print-root .activity-report-heading {
    gap: 4mm;
    padding-bottom: 2.2mm;
  }

  body.printing-app-section #app-print-root .activity-report-table {
    font-size: 7.5pt;
  }

  body.printing-app-section #app-print-root .activity-report-table th,
  body.printing-app-section #app-print-root .activity-report-table td {
    padding: 1mm 1.5mm;
  }

  body.printing-app-section #app-print-root .activity-report-closing.has-signature {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(55mm, .75fr);
    gap: 4mm;
    min-height: 25mm;
    margin-top: 3mm;
    padding: 2.5mm;
  }

  body.printing-app-section #app-print-root .activity-report-closing.no-signature {
    min-height: 0;
    margin-top: 5mm;
  }

  body.printing-app-section #app-print-root .activity-report-heading h2 {
    font-size: 13pt;
  }

  body.printing-app-section #app-print-root .activity-report-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5mm;
    margin: 1.8mm 0 2.2mm;
  }

  body.printing-app-section #app-print-root .activity-report-metrics div {
    padding: 1mm 1.8mm;
  }

  body.printing-app-section #app-print-root .activity-report-facts div {
    padding: 1.25mm 0;
  }

  body.printing-app-section #app-print-root .activity-report-note,
  body.printing-app-section #app-print-root .activity-report-warning {
    margin: 2mm 0 0;
    padding: 1.5mm 2mm;
  }

  body.printing-app-section #app-print-root .activity-report-closing.has-signature .activity-report-closing-text {
    padding: 1mm 3mm 1mm 0;
    border-right: 1px solid #d9e0e8;
    border-bottom: 0;
  }

  body.printing-app-section #app-print-root .activity-report-closing.has-signature .activity-report-signatures {
    display: block;
    margin: 0;
  }

  body.printing-app-section #app-print-root .activity-report-closing.has-signature .activity-signature-block {
    min-height: 23mm;
    padding: 2mm 3mm;
  }

  body.printing-app-section #app-print-root .activity-report-closing.has-signature .activity-signature-block > span {
    margin-bottom: 1.5mm;
    font-size: 7pt;
  }

  body.printing-app-section #app-print-root .activity-report-closing.has-signature .activity-signature-line {
    margin-top: 6mm;
  }

  body.printing-app-section #app-print-root .activity-report-outcomes {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body.printing-app-section #app-print-root a {
    color: inherit;
    text-decoration: none;
  }
}

.activity-archive-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 11px 12px;
  border-left: 4px solid #2f5bff;
  background: #f2f5ff;
}

.activity-archive-note span {
  color: var(--color-text-muted);
  font-size: .84rem;
  text-align: right;
}

.activity-delete-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #e8aaa5;
  border-left: 4px solid var(--color-danger);
  border-radius: 6px;
  background: #fff8f7;
}

.activity-delete-panel p {
  margin: 4px 0 0;
  color: #7c3833;
  font-size: .82rem;
}

.activity-delete-panel .btn-danger {
  width: auto;
  flex: 0 0 auto;
}

.activity-weekdays,
.activity-attendance-row {
  display: grid;
  gap: 8px;
}

.activity-weekdays {
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}

.activity-session-create,
.activity-session-list,
.activity-attendance-list {
  display: grid;
  gap: 10px;
}

.activity-attendance-workspace { display: grid; gap: 9px; padding-top: 4px; overflow-anchor: none; }
.activity-attendance-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 8px 2px 7px; border-bottom: 1px solid #c9d5de; }
.activity-attendance-heading span { color: #28718d; font-size: .65rem; font-weight: 850; text-transform: uppercase; }
.activity-attendance-heading h4 { margin: 2px 0 0; color: #143f58; font-size: 1rem; }
.activity-attendance-heading small { color: #647786; font-size: .7rem; }
.activity-calendar-drawer { margin: 0; border: 1px solid #c9020a; background: #fff; }
.activity-calendar-drawer > summary,
.activity-calendar-drawer[open] > summary { min-height: 42px; padding: 7px 10px; background: #c9020a; color: #fff; }
.activity-calendar-drawer > summary span { color: #fff; font-size: .82rem; }
.activity-calendar-drawer > summary small { color: #fff; font-size: .66rem; }
.activity-calendar-compact { display: grid; gap: 7px; padding: 7px; border-top: 1px solid #dbe4e9; background: #f6f9fa; }
.activity-calendar-period { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; align-items: start; }
.activity-calendar-period > strong { padding: 7px 2px; color: #214e66; font-size: .7rem; line-height: 1.25; text-transform: capitalize; }
.activity-calendar-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 5px; }
.activity-calendar-date { position: relative; display: grid; place-items: center; min-height: 55px; padding: 4px 3px; border: 1px solid #b9c9d3; background: #edf3f6; color: #466474; text-align: center; }
.activity-calendar-date small { font-size: .55rem; font-weight: 800; line-height: 1; text-transform: capitalize; }
.activity-calendar-date b { font-size: .9rem; line-height: 1.1; }
.activity-calendar-date em { font-size: .53rem; font-style: normal; font-weight: 750; line-height: 1; }
.activity-calendar-date.is-complete { border-color: #d84c12; background: #fc611b; color: #fcd11b; }
.activity-calendar-date.is-missing { border-color: #d2777e; background: #f9e4e6; color: #9b2632; }
.activity-calendar-date.is-upcoming { border-color: #aebfca; background: #edf3f6; color: #416275; }
.activity-calendar-date.is-cancelled { border-color: #8c99a2; background: #e7ebee; color: #52616a; }
.activity-calendar-date.is-extra::after { content: "+"; position: absolute; top: 2px; right: 4px; color: #864d75; font-size: .65rem; font-weight: 900; }
.activity-calendar-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 2px 0 0 100px; color: #667783; font-size: .62rem; }
.activity-calendar-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 4px; border: 1px solid #a9bfd0; vertical-align: 0; }
.activity-calendar-legend .complete::before { border-color: #d84c12; background: #fc611b; }
.activity-calendar-legend .missing::before { border-color: #d2777e; background: #f9e4e6; }
.activity-calendar-legend .upcoming::before { border-color: #aebfca; background: #edf3f6; }
.activity-calendar-legend .cancelled::before { border-color: #8c99a2; background: #e7ebee; }
.activity-calendar-legend .extra::before { border-color: #b787a0; background: #f8edf3; }
.activity-week-drawers { display: grid; gap: 6px; }
.activity-week-drawer { margin: 0; border: 1px solid #c9d6df; background: #fff; }
.activity-week-drawer > summary { min-height: 48px; padding: 8px 10px; }
.activity-week-drawer > summary span { display: grid; gap: 1px; color: #153f58; font-size: .84rem; }
.activity-week-drawer > summary span b { color: #628092; font-size: .66rem; font-weight: 650; text-transform: capitalize; }
.activity-week-drawer > summary small { font-size: .67rem; }
.activity-week-days { display: grid; gap: 6px; padding: 7px; border-top: 1px solid #dbe3e9; background: #f5f8fa; }
.activity-week-day { display: grid; gap: 6px; padding: 7px; border-left: 3px solid #4f819b; background: #fff; }
.activity-week-day.is-extra { border-left-color: #9a5277; }
.activity-week-day > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.activity-week-day > header strong, .activity-week-day > header span { display: block; text-transform: capitalize; }
.activity-week-day > header strong { color: #16445e; font-size: .8rem; }
.activity-week-day > header span { margin-top: 1px; color: #72808c; font-size: .66rem; }
.activity-week-day > header em { padding: 3px 5px; background: #edf3f6; color: #42687c; font-size: .62rem; font-style: normal; font-weight: 800; }
.activity-week-day.is-extra > header em { background: #f8edf3; color: #814462; }
.activity-week-day > .activity-planned-session-create { justify-self: start; width: auto; min-height: 34px; }
.activity-session-drawer { margin: 0; border: 1px solid #d4dfe6; }
.activity-session-drawer > summary { min-height: 40px; padding: 6px 8px; }
.activity-session-drawer.is-complete > summary { border-left: 3px solid #24825c; background: #f0f8f4; }
.activity-session-drawer.is-open > summary { border-left: 3px solid #c48a28; background: #fff8eb; }
.activity-session-drawer.is-cancelled > summary { border-left: 3px solid #7b8790; background: #eef1f3; }
.activity-session-drawer.is-locked > summary { border-left: 3px solid #5e7482; background: #f1f5f7; }
.activity-session-drawer > summary span { color: #214e64; font-size: .76rem; }
.activity-session-drawer > summary small { font-size: .66rem; }
.activity-session-locked { display: grid; gap: 3px; padding: 11px; border-top: 1px solid #d7dfe4; background: #f7f9fa; color: #596871; }
.activity-session-locked strong { color: #344c59; font-size: .78rem; }
.activity-session-locked span { font-size: .7rem; }
.activity-session-drawer.is-locked > .activity-session-cancel { width: auto; margin: 0 10px 10px; }
.activity-attendance-window-note { display: inline-block; padding: 7px 2px; font-size: .7rem; }
.activity-attendance-intro { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px; background: #f3f7f9; }
.activity-attendance-intro strong, .activity-attendance-intro span { display: block; }
.activity-attendance-intro strong { color: #176344; font-size: .72rem; }
.activity-attendance-intro span { margin-top: 1px; color: #6d7d88; font-size: .64rem; }
.activity-attendance-intro .btn-small { width: auto; min-height: 32px; }
.activity-extra-day-drawer { margin: 0; border: 1px solid #ccb6c2; background: #fff; }
.activity-extra-day-form { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(110px, .6fr) minmax(110px, .6fr) auto; gap: 7px; align-items: end; padding: 8px; border-top: 1px solid #e1d4db; background: #fbf7f9; }
.activity-extra-day-form label { display: grid; gap: 3px; margin: 0; color: #664456; font-size: .68rem; font-weight: 800; }
.activity-extra-day-form input { min-height: 36px; margin: 0; }
.activity-extra-day-form .btn-small { width: auto; min-height: 36px; }
.activity-lifecycle-panel { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr); gap: 10px; align-items: end; padding: 9px 10px; border: 1px solid #cbd7df; background: #f7fafb; }
.activity-lifecycle-panel > div > strong, .activity-lifecycle-panel > div > span { display: block; }
.activity-lifecycle-panel > div > strong { color: #244d62; font-size: .78rem; }
.activity-lifecycle-panel > div > span { margin-top: 2px; color: #6b7b86; font-size: .66rem; }
.activity-lifecycle-actions { display: grid; grid-template-columns: 150px auto auto auto; gap: 6px; align-items: end; justify-content: end; }
.activity-lifecycle-actions label { display: grid; gap: 3px; margin: 0; color: #60737f; font-size: .66rem; font-weight: 800; }
.activity-lifecycle-actions input { min-height: 34px; margin: 0; }
.activity-lifecycle-actions .btn-small { width: auto; min-height: 34px; }

.activity-attendance-row {
  grid-template-columns: minmax(170px, 1fr) minmax(300px, 1.3fr) minmax(120px, .7fr);
  align-items: center;
  padding: 5px 8px 5px 4px;
  border: 1px solid var(--color-border);
  border-left: 4px solid #24935f;
  border-radius: 8px;
  background: #fff;
  transition: border-color .16s ease, background-color .16s ease;
}

.activity-attendance-row strong,
.activity-attendance-row span {
  display: block;
}

.activity-attendance-row.is-gelmedi {
  border-left-color: #c53a31;
  background: #fffafa;
}

.activity-attendance-row.is-izinli {
  border-left-color: #bd7a08;
  background: #fffdf7;
}

.activity-attendance-row.is-gec {
  border-left-color: #2d71b8;
  background: #fafdff;
}

.activity-attendance-default {
  color: #166b45;
  font-size: .86rem;
  font-weight: 700;
}

.activity-attendance-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #dde3e7;
  border-radius: 8px;
  background: #f4f6f7;
}

.activity-attendance-option {
  min-width: 0;
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: normal;
}

.activity-attendance-option.status-katildi { color: #17704a; }
.activity-attendance-option.status-gelmedi { color: #a72b24; }
.activity-attendance-option.status-izinli { color: #8a5b08; }
.activity-attendance-option.status-gec { color: #245f9f; }

.activity-attendance-option.status-katildi.is-selected {
  border-color: #86c9a8;
  background: #e5f6ed;
  color: #105d3d;
}

.activity-attendance-option.status-gelmedi.is-selected {
  border-color: #e7a5a0;
  background: #fdecea;
  color: #92241e;
}

.activity-attendance-option.status-izinli.is-selected {
  border-color: #e2c16f;
  background: #fff4d4;
  color: #714905;
}

.activity-attendance-option.status-gec.is-selected {
  border-color: #9dc3ea;
  background: #eaf4ff;
  color: #1e548c;
}

.activity-attendance-option:focus-visible {
  outline: 2px solid #1f6ea9;
  outline-offset: 1px;
}

.teacher-student-row.static {
  cursor: default;
}

.mini-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 999px;
  vertical-align: -2px;
  animation: spin .7s linear infinite;
}

@media (max-width: 720px) {
  .activity-workspace { gap: 10px; }
  .activity-workspace-header { padding-bottom: 8px; }
  .activity-workspace-header h2 { font-size: 1.6rem; }
  .activity-workspace-tabs { gap: 4px; padding: 4px; }
  .activity-workspace-tab { min-height: 50px; padding: 7px 8px; text-align: center; }
  .activity-workspace-tab span { font-size: .78rem; }
  .activity-workspace-tab small { display: none; }
  .activity-composer-head { padding-top: 4px; }
  .activity-form-section > summary { grid-template-columns: 26px minmax(0, 1fr) auto; min-height: 44px; padding: 6px 8px; }
  .activity-form-section > summary small { display: none; }
  .activity-form-section > summary::after { grid-column: 3; }
  .activity-form-section-body { padding: 8px; }
  .activity-schedule-grid, .activity-student-filter-grid { grid-template-columns: minmax(0, 1fr); }
  .activity-time-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-form-actions .app-save-button { width: 100%; }
  .activity-teacher-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 190px; }
  .activity-detail-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-detail-team { min-height: 58px; }
  .activity-admin-actions { grid-template-columns: minmax(0, 1fr); }
  .activity-admin-action-block > .btn-small { width: 100%; }
  .activity-record-main { gap: 7px; padding: 9px 10px 6px; }
  .activity-record .activity-record-main { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .activity-record .activity-record-main > strong, .activity-record .activity-record-main > .badge { grid-column: 1; justify-self: center; }
  .activity-record .activity-record-main > strong { font-size: 1rem; }
  .activity-record-main .badge { flex: 0 0 auto; font-size: .65rem; }
  .activity-record-meta { gap: 7px 10px; padding: 0 10px 8px; font-size: .72rem; }
  .profile-info-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-duty-heading {
    align-items: flex-start;
  }

  .activity-selection-summary,
  .activity-record-main {
    align-items: flex-start;
  }

  .activity-attendance-row {
    grid-template-columns: 1fr;
  }

  .activity-attendance-heading { align-items: start; }
  .activity-attendance-heading small { max-width: 42%; text-align: right; }
  .activity-calendar-period { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .activity-calendar-period > strong { padding: 2px 1px; }
  .activity-calendar-dates { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 4px; }
  .activity-calendar-date { min-height: 51px; }
  .activity-calendar-legend { padding-left: 1px; }
  .activity-week-drawer > summary { align-items: center; }
  .activity-week-drawer > summary small { max-width: 45%; text-align: right; }
  .activity-week-days { padding: 5px; }
  .activity-week-day { padding: 6px; }
  .activity-attendance-intro { align-items: stretch; flex-direction: column; }
  .activity-attendance-intro .btn-small { width: 100%; }
  .activity-extra-day-form, .activity-lifecycle-panel, .activity-lifecycle-actions { grid-template-columns: minmax(0, 1fr); }
  .activity-lifecycle-actions { justify-content: stretch; }
  .activity-lifecycle-actions .btn-small { width: 100%; }
  .activity-reactivate-panel, .activity-reactivate-actions { align-items: stretch; grid-template-columns: minmax(0, 1fr); flex-direction: column; }
  .activity-reactivate-actions .btn-small { width: 100%; }

  .activity-delete-panel,
  .activity-archive-note {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-delete-panel .btn-danger {
    width: 100%;
  }

  .activity-archive-note span {
    text-align: left;
  }

  .activity-attendance-status {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .activity-attendance-option { min-height: 38px; padding: 4px 2px; font-size: .68rem; line-height: 1.05; }
  .activity-attendance-note { min-height: 36px; margin: 0; }

  .activity-teacher-selected,
  .activity-teacher-tools {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .activity-teacher-selected .btn-small {
    width: 100%;
  }

  .save-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .save-toolbar .btn-small {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .activity-teacher-list { grid-template-columns: minmax(0, 1fr); }
  .activity-time-grid { grid-template-columns: minmax(0, 1fr); }
  .activity-detail-overview { grid-template-columns: minmax(0, 1fr); }
  .activity-detail-team { grid-column: auto; }
  .activity-session-history-row, .activity-reactivate-panel { align-items: stretch; flex-direction: column; }
  .activity-session-history-row .btn-small, .activity-reactivate-panel .btn-small { width: 100%; }
  .activity-calendar-drawer > summary { align-items: center; }
  .activity-calendar-drawer > summary small { max-width: 48%; text-align: right; }
}

/* Nöbet programı: yoğun idari akışı mobilde de taranabilir tutar. */
.duty-page { max-width: 1180px; margin: 0 auto; padding: 18px; color: #16243a; }
.duty-module-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 22px 0 18px; border-bottom: 2px solid #173f72; }
.duty-module-header h2 { margin: 3px 0 4px; font-size: 30px; letter-spacing: 0; color: #102f58; }
.duty-module-header p { margin: 0; color: #607087; }
.duty-kicker { color: #3378b8; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.duty-date-control { min-width: 185px; margin: 0; font-size: 12px; font-weight: 800; color: #53657a; }
.duty-date-control input { margin-top: 6px; background: #fff; }
.duty-drawer { border: 0; border-bottom: 1px solid #cdd8e5; background: transparent; }
.duty-drawer > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; cursor: pointer; list-style: none; }
.duty-drawer > summary::-webkit-details-marker { display: none; }
.duty-drawer > summary span { font-size: 18px; font-weight: 800; color: #153d6c; }
.duty-drawer > summary small { color: #728196; text-align: right; }
.duty-drawer > summary::after { content: "+"; width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: transparent; box-shadow: none; color: #1b588f; font-family: Arial, sans-serif; font-size: 20px; font-weight: 400; line-height: 1; flex: 0 0 28px; }
.duty-drawer[open] > summary::after { content: "−"; }
.duty-drawer-content { padding: 2px 4px 22px; }
.duty-form-grid { display: grid; grid-template-columns: minmax(230px, 2fr) minmax(180px, .7fr); gap: 12px; align-items: end; padding: 16px; background: #f2f6fa; border-left: 4px solid #2d72ad; }
.duty-form-grid label, .duty-setup-panel label { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.duty-form-grid input, .duty-form-grid select, .duty-setup-panel input, .duty-setup-panel select { width: 100%; min-width: 0; min-height: 44px; margin: 0; }
.duty-form-wide { grid-column: 1 / -1; }
.duty-form-submit { grid-column: 1 / -1; justify-self: start; }
.duty-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.duty-correction-reason { padding: 11px; border-left: 3px solid #c78019; background: #fff8e9; }
.duty-correction-reason[hidden],
.duty-absence-archive-confirm[hidden],
.duty-absence-history-list[hidden] { display: none !important; }

.duty-absence-schedule-preview { margin-top: 9px; border-top: 1px solid #d5e0e9; padding-top: 8px; }
.duty-absence-schedule-preview > .muted { margin: 0; }
.duty-absence-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.duty-absence-preview-head strong { color: #173f72; font-size: .82rem; }
.duty-absence-preview-head span { color: #6a7b8b; font-size: .72rem; }
.duty-absence-preview-teacher { display: grid; grid-template-columns: minmax(155px, .45fr) minmax(0, 1.55fr); gap: 9px; padding: 7px 8px; border: 1px solid #d8e2ea; border-left: 3px solid #2f7d58; background: #fff; }
.duty-absence-preview-teacher + .duty-absence-preview-teacher { margin-top: 5px; }
.duty-absence-preview-teacher.has-no-lessons { border-left-color: #c78019; background: #fff9ed; }
.duty-absence-preview-teacher > div:first-child { display: grid; gap: 2px; align-content: start; }
.duty-absence-preview-teacher small { color: #6a7b8b; }
.duty-absence-preview-lessons { display: flex; flex-wrap: wrap; gap: 4px; }
.duty-absence-preview-lessons span { padding: 3px 6px; border: 1px solid #d7e2ea; border-radius: 4px; background: #f6f9fb; color: #3f5668; font-size: .72rem; }

@media (max-width: 640px) {
  .duty-absence-preview-head { align-items: flex-start; flex-direction: column; gap: 2px; }
  .duty-absence-preview-teacher { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

.student-sync-status { margin-top: 14px; padding: 14px; border-left: 4px solid #208654; background: #f1f8f4; }
.student-sync-status.is-due { border-left-color: #c77c16; background: #fff8e9; }
.student-sync-status > div strong, .student-sync-status > div span { display: block; }
.student-sync-status > div strong { color: #173f72; }
.student-sync-status > div span { margin-top: 4px; color: #65768a; font-size: 12px; }
.student-sync-status details { margin-top: 10px; border-top: 1px solid #d2dfd8; }
.student-sync-status summary { padding: 10px 0 4px; cursor: pointer; color: #315b4b; font-weight: 700; }
.student-sync-inbox > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.student-sync-inbox > summary span { display: grid; min-width: 24px; min-height: 24px; place-items: center; border-radius: 50%; background: #dfeae4; }
.student-sync-inbox-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #d8e3dd; }
.student-sync-inbox-row > div:first-child { min-width: 0; }
.student-sync-inbox-row strong, .student-sync-inbox-row span, .student-sync-inbox-row small { display: block; overflow-wrap: anywhere; }
.student-sync-inbox-row small { margin-top: 4px; color: #a14444; }
.student-sync-inbox-row .btn-row { margin: 0; flex-wrap: nowrap; }
@media (max-width: 560px) {
  .student-sync-inbox-row { grid-template-columns: minmax(0, 1fr); }
  .student-sync-inbox-row .btn-row { justify-content: flex-start; }
}
.student-history-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end; margin-bottom: 14px; padding: 18px 4px 12px; border-bottom: 2px solid #173d72; }
.student-history-hero > div:first-child > span, .student-history-detail-head > div > span { color: #277456; font-size: 11px; font-weight: 850; letter-spacing: .1em; }
.student-history-hero h2 { margin: 4px 0; color: #123765; font-size: 28px; }
.student-history-hero p { margin: 0; color: #617083; }
.student-history-metrics { display: flex; gap: 8px; }
.student-history-metrics > div { min-width: 92px; padding: 10px 12px; border: 1px solid #d7dfe6; background: #fff; text-align: center; }
.student-history-metrics strong, .student-history-metrics span { display: block; }
.student-history-metrics strong { color: #173d72; font-size: 20px; }
.student-history-metrics span { margin-top: 2px; color: #697788; font-size: 11px; }
.student-history-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 14px; align-items: start; }
.student-history-runs, .student-archive-panel { min-width: 0; }
.student-history-run, .student-archive-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid #e0e5e9; }
.student-history-run > div:first-child, .student-archive-list article > div { min-width: 0; }
.student-history-run strong, .student-history-run span, .student-history-run small, .student-archive-list strong, .student-archive-list span { display: block; overflow-wrap: anywhere; }
.student-history-run strong, .student-archive-list strong { color: #173d72; }
.student-history-run span, .student-archive-list span { margin-top: 3px; color: #627286; font-size: 12px; }
.student-history-run small { margin-top: 5px; color: #536a60; }
.student-history-run .btn-row { flex-wrap: nowrap; }
.student-archive-search, .student-history-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.student-archive-search input, .student-history-filters input, .student-history-filters select { margin: 0; }
.student-archive-search button, .student-history-filters button { width: auto; }
.student-history-detail-card { margin-top: 14px; border-top: 4px solid #277456; }
.student-history-detail-head { display: flex; justify-content: space-between; gap: 14px; align-items: start; }
.student-history-detail-head h2 { margin: 4px 0; color: #173d72; font-size: 20px; }
.student-history-detail-head p { margin: 0 0 12px; color: #66778a; }
.student-history-filters { grid-template-columns: minmax(180px, 1fr) 130px 170px auto; margin: 12px 0; }
.student-history-items {
  max-height: min(64vh, 680px);
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding-right: 4px;
  border-top: 1px solid #dce3e8;
}
.student-history-items article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 52px; padding: 8px 4px; border-bottom: 1px solid #e4e9ed; }
.student-history-items article > strong, .student-history-items article > div strong { color: #173d72; }
.student-history-items article span { display: block; margin-top: 2px; color: #687789; font-size: 12px; }
.student-history-items article p { margin: 0; color: #4e6072; white-space: nowrap; }
.student-history-items article p b { padding: 0 7px; color: #277456; }
.student-history-items .change-arsiv { border-left: 3px solid #b35b48; padding-left: 9px; }
.student-history-items .change-sube_degisti { border-left: 3px solid #2877aa; padding-left: 9px; }
.student-history-items .change-ekleme, .student-history-items .change-yeniden_aktif { border-left: 3px solid #2b8a61; padding-left: 9px; }
@media (max-width: 760px) {
  .student-history-hero, .student-history-grid { grid-template-columns: minmax(0, 1fr); }
  .student-history-hero { gap: 10px; padding-top: 8px; }
  .student-history-hero h2 { font-size: 23px; }
  .student-history-metrics { display: grid; grid-template-columns: 1fr 1fr; }
  .student-history-metrics > div { min-width: 0; }
  .student-history-run, .student-archive-list article { grid-template-columns: minmax(0, 1fr); }
  .student-history-run .btn-row { flex-wrap: wrap; justify-content: flex-start; }
  .student-history-filters { grid-template-columns: minmax(0, 1fr); }
  .student-history-filters button { width: 100%; }
  .student-history-items article { grid-template-columns: minmax(0, 1fr); }
  .student-history-items article p { white-space: normal; }
  .student-history-items { max-height: 56vh; }
}
.student-sync-policy-settings { margin: 20px 0; padding: 18px; border: 1px solid #cbd9e7; border-left: 4px solid #173f72; background: #f8fbfd; }
.student-sync-policy-settings h3 { margin: 4px 0 6px; }
.student-sync-policy-controls { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(160px, 220px) auto; gap: 14px; align-items: end; margin-top: 16px; }
.student-sync-policy-controls .toggle-row { align-self: center; }
.student-sync-policy-note { margin-top: 12px; color: #4d6378; font-size: 13px; }
.schedule-version-list { display: grid; gap: 8px; }
.schedule-version-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #d8e1ea; border-left: 4px solid #8797aa; background: #fff; }
.schedule-version-row.is-active { border-left-color: #208654; background: #f5fbf7; }
.schedule-version-main strong, .schedule-version-main span, .schedule-version-main small { display: block; }
.schedule-version-main span { margin-top: 3px; color: #52677d; }
.schedule-version-main small { margin-top: 2px; color: #7a8998; }
.schedule-version-actions { margin: 0; flex-wrap: nowrap; }
@media (max-width: 760px) {
  .student-sync-policy-controls, .schedule-version-row { grid-template-columns: 1fr; }
  .schedule-version-actions { justify-content: flex-start; }
}
.student-sync-history-row { display: grid; grid-template-columns: minmax(160px, .35fr) minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid #dce6e0; }
.student-sync-history-row span { color: #66778a; font-size: 12px; }
.student-sync-confirm { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border-left: 4px solid #c77c16; background: #fff8e9; color: #604612; }
.student-sync-confirm[hidden] { display: none !important; }
.student-sync-confirm input { flex: 0 0 auto; width: auto; margin: 2px 0 0; }
.duty-absence-picker { padding: 12px; background: #fff; border: 1px solid #cfdae6; }
.duty-absence-picker-head { display: flex; justify-content: space-between; gap: 14px; align-items: end; }
.duty-absence-picker-head label { flex: 1; }
.duty-absence-picker-head strong { padding-bottom: 12px; color: #174f82; white-space: nowrap; }
.duty-absence-picker-actions { display: flex; gap: 7px; margin: 9px 0; }
.duty-absence-teacher-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; padding-right: 4px; }
.duty-absence-teacher-option { display: grid; grid-template-columns: minmax(0, 1fr) 104px; align-items: center; gap: 7px; min-width: 0; padding: 7px 8px; border: 1px solid #d8e1ea; background: #f9fbfd; }
.duty-absence-teacher-option.is-selected { border-color: #2474ad; background: #e7f3fb; color: #123f68; }
.duty-absence-teacher-select { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; min-width: 0; margin: 0; cursor: pointer; }
.duty-absence-teacher-option input { margin: 0 !important; }
.duty-absence-teacher-select input[type="checkbox"] {
  flex: 0 0 18px;
  box-sizing: border-box;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  accent-color: #2474ad;
}
.duty-absence-teacher-option span, .duty-absence-teacher-option strong, .duty-absence-teacher-option small { display: block; min-width: 0; }
.duty-absence-teacher-option strong, .duty-absence-teacher-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duty-absence-teacher-option small { margin-top: 2px; color: #6d7b8d; }
.duty-absence-type-input { width: 100% !important; min-width: 0; min-height: 34px !important; padding: 5px 25px 5px 7px; border-color: #c4d1dc; background-color: #fff; font-size: 12px; }
.duty-setup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.duty-setup-panel { padding: 16px 0; border-top: 1px solid #d7e1eb; }
.duty-setup-panel h3 { margin: 0 0 14px; color: #234c79; font-size: 16px; }
.duty-current-plan { grid-column: 1 / -1; }
.duty-class-picker { margin: 14px 0; border: 1px solid #ccd8e5; }
.duty-class-picker summary { padding: 12px; cursor: pointer; color: #234f7b; font-weight: 700; }
#duty-area-classes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; padding: 0 12px 12px; }
.duty-class-option { display: flex; align-items: center; gap: 7px; padding: 7px; margin: 0; border: 1px solid #d7e0e9; background: #fff; }
.duty-class-option input { width: auto; margin: 0; }
.duty-task-list, .duty-admin-list { margin-top: 16px; border-top: 1px solid #d4deea; }
.teacher-duty-calendar { margin-top: 16px; overflow: hidden; border: 1px solid rgba(169, 207, 223, .42); border-radius: 8px; background: #0c4968; color: #fff; box-shadow: 0 16px 34px rgba(16, 54, 78, .18); }
.teacher-duty-calendar-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 17px 18px 14px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.teacher-duty-calendar-head span { color: #9fd2e3; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.teacher-duty-calendar-head h3 { margin: 3px 0 0; color: #fff; font-size: 20px; }
.teacher-duty-calendar-head small { color: #c7e0e9; }
.teacher-duty-calendar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.teacher-duty-calendar-day { position: relative; display: grid; align-content: start; gap: 5px; min-height: 88px; padding: 13px 15px; border-right: 1px solid rgba(255, 255, 255, .14); background: rgba(4, 33, 51, .16); }
.teacher-duty-calendar-day:last-child { border-right: 0; }
.teacher-duty-calendar-day > span { color: #a8c9d7; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.teacher-duty-calendar-day > div { display: grid; gap: 3px; }
.teacher-duty-calendar-day strong, .teacher-duty-calendar-day small { display: block; }
.teacher-duty-calendar-day strong { color: #fff; font-size: .95rem; font-weight: 850; line-height: 1.25; }
.teacher-duty-calendar-day small { color: #b9d2dc; font-size: .74rem; }
.teacher-duty-calendar-grid.is-single .teacher-duty-calendar-day { grid-template-columns: minmax(105px, .32fr) minmax(0, 1fr); align-content: center; align-items: center; min-height: 76px; }
.teacher-duty-calendar-grid.is-single .teacher-duty-calendar-day > span { font-size: 12px; }
.teacher-duty-calendar-empty { display: grid; gap: 3px; padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(4, 33, 51, .12); }
.teacher-duty-calendar-empty strong { color: #fff; font-size: .9rem; }
.teacher-duty-calendar-empty span { color: #b9d2dc; font-size: .75rem; }
.teacher-duty-calendar-day.has-duty::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 7px; height: 7px; border-radius: 50%; background: #54d3a1; box-shadow: 0 0 0 4px rgba(84, 211, 161, .12); }
.teacher-duty-calendar-day.is-selected { background: rgba(39, 139, 177, .34); box-shadow: inset 0 -3px 0 #6ed1ed; }
.teacher-duty-agenda { margin-top: 12px; border: 1px solid #c9d8e2; border-left: 4px solid #1685a9; background: #f7fafc; }
.teacher-duty-agenda-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #d7e2e9; }
.teacher-duty-agenda-head span { color: #3378b8; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.teacher-duty-agenda-head h3 { margin: 2px 0 0; color: #173f58; font-size: .96rem; }
.teacher-duty-agenda-head > strong { display: grid; place-items: center; min-width: 25px; height: 25px; border-radius: 50%; background: #0c4968; color: #fff; font-size: .72rem; }
.teacher-duty-agenda-list { display: grid; }
.teacher-duty-agenda-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 8px 11px; border: 0; border-bottom: 1px solid #dfe8ed; border-radius: 0; background: #fff; color: #24485c; text-align: left; }
.teacher-duty-agenda-row:last-child { border-bottom: 0; }
.teacher-duty-agenda-row:hover, .teacher-duty-agenda-row:focus-visible { background: #eef6f8; }
.teacher-duty-agenda-date { color: #176788; font-size: .72rem; font-weight: 850; }
.teacher-duty-agenda-main { display: grid; min-width: 0; gap: 2px; }
.teacher-duty-agenda-main strong { overflow: hidden; color: #173f58; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.teacher-duty-agenda-main small { overflow: hidden; color: #667d8a; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.duty-teacher-day-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 20px; padding-bottom: 8px; border-bottom: 1px solid #c8d6e1; }
.duty-teacher-day-heading span { color: #3378b8; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.duty-teacher-day-heading strong { color: #29485f; font-size: .9rem; text-transform: capitalize; }
.teacher-duty-day-summary { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 12px; padding: 13px 15px; border-left: 4px solid #1685a9; background: #e8f1f4; color: #244b61; }
.teacher-duty-day-summary > span { color: #637b89; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.teacher-duty-day-summary small { color: #607887; }
.duty-absence-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 18px; padding-bottom: 8px; border-bottom: 1px solid #cad7e4; }
.duty-absence-section-head h3 { margin: 0; color: #173f72; font-size: 16px; }
.duty-absence-section-head span { color: #6b7b8e; font-size: 12px; }
.duty-absence-record { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 8px; border-bottom: 1px solid #dbe3ec; border-left: 3px solid #2f76ae; }
.duty-absence-record.is-archived { opacity: .76; border-left-color: #8a97a5; }
.duty-absence-record-main strong, .duty-absence-record-main span, .duty-absence-record-main small { display: block; }
.duty-absence-record-main span, .duty-absence-record-main small { margin-top: 3px; color: #68788b; font-size: 12px; }
.duty-absence-record-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.duty-absence-record-drawer { margin-top: 12px; border: 1px solid #c9d8e3; background: #fff; }
.duty-absence-record-drawer > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 9px 12px; cursor: pointer; list-style: none; }
.duty-absence-record-drawer > summary::-webkit-details-marker { display: none; }
.duty-absence-record-drawer > summary::after { content: "+"; display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border: 0; background: transparent; box-shadow: none; color: #27617f; font-family: Arial, sans-serif; font-size: 20px; font-weight: 400; line-height: 1; }
.duty-absence-record-drawer[open] > summary::after { content: "−"; }
.duty-absence-record-drawer > summary div { min-width: 0; }
.duty-absence-record-drawer > summary strong, .duty-absence-record-drawer > summary span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duty-absence-record-drawer > summary strong { color: #173f59; font-size: 14px; }
.duty-absence-record-drawer > summary span { margin-top: 2px; color: #687d8b; font-size: 11px; }
.duty-absence-record-drawer > summary b { margin-left: auto; color: #487087; font-size: 12px; white-space: nowrap; }
.duty-absence-record-drawer-body { border-top: 1px solid #dbe5eb; }
.duty-absence-record-drawer .duty-absence-archive { margin: 0 10px 10px; }
.duty-absence-archive-confirm, .duty-absence-history-list { grid-column: 1 / -1; padding: 12px; background: #f5f7f9; border-top: 1px solid #d6e0e9; }
.duty-absence-archive-confirm label { display: grid; grid-template-columns: minmax(160px, .45fr) minmax(240px, 1fr); align-items: center; gap: 10px; margin: 0; color: #465b72; font-weight: 700; }
.duty-absence-archive-confirm input { width: 100%; margin: 0; }
.duty-absence-archive-confirm > div { display: flex; justify-content: flex-end; gap: 7px; margin-top: 9px; }
.duty-absence-archive { margin-top: 10px; border-top: 1px solid #cbd7e4; }
.duty-absence-archive > summary { padding: 12px 4px; cursor: pointer; color: #5c6e82; font-weight: 700; }
.duty-absence-archive > summary span { display: inline-grid; min-width: 22px; min-height: 22px; place-items: center; margin-left: 5px; background: #e8eef4; color: #395b7c; font-size: 11px; }
.duty-absence-history-list > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid #dce4ec; }
.duty-absence-history-list span { color: #65768a; font-size: 12px; }
.duty-absence-empty { margin: 0; padding: 16px 8px; color: #67788a; }
.duty-task-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 15px; padding: 17px 4px; border-bottom: 1px solid #d8e2ec; border-left: 4px solid #3478b1; }
.duty-task-row.is-complete, .duty-admin-row.is-complete { border-left-color: #1f8a55; }
.duty-task-row.is-warning, .duty-admin-row.is-warning { border-left-color: #d59025; }
.duty-task-row.is-muted, .duty-admin-row.is-muted { opacity: .62; border-left-color: #8895a4; }
.duty-task-time { text-align: center; color: #245789; }
.duty-task-time strong { display: block; font-size: 28px; }
.duty-task-time span { font-size: 12px; }
.duty-task-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.duty-task-main p { margin: 6px 0 12px; color: #627186; }
.duty-status { display: inline-flex; padding: 4px 8px; background: #e9f1f8; color: #245c8e; font-size: 11px; font-weight: 800; white-space: nowrap; }
.duty-task-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.duty-admin-row { display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(260px, .8fr); gap: 14px; align-items: center; padding: 14px 10px; border-bottom: 1px solid #d7e1eb; border-left: 4px solid #3478b1; }
.duty-admin-row > div:first-child span, .duty-mini-row span { display: block; margin-top: 4px; color: #6c7a8d; font-size: 12px; }
.duty-distribution-panel { margin-top: 18px; overflow: hidden; border: 1px solid #ccd8e3; background: #fff; }
.duty-distribution-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 14px 16px 11px; border-bottom: 1px solid #d8e1e9; background: #fff; }
.duty-distribution-heading span { color: #247093; font-size: 10px; font-weight: 850; letter-spacing: 1px; }
.duty-distribution-heading h3 { margin: 3px 0 0; color: #153e5d; font-size: 18px; font-weight: 850; }
.duty-distribution-heading > strong { color: #0c4968; font-size: 14px; font-weight: 850; }
.duty-approval-block { margin-top: 10px; border-top: 1px solid #c8d6df; background: #fff; }
.duty-distribution-table-wrap { width: 100%; overflow-x: hidden; }
.duty-distribution-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13.5px; font-weight: 750; line-height: 1.35; }
.duty-distribution-table th { padding: 10px 8px; background: #eef3f6; color: #38566b; font-size: 11.5px; font-weight: 900; line-height: 1.2; text-align: left; text-transform: uppercase; white-space: normal; }
.duty-distribution-table td { overflow-wrap: anywhere; padding: 12px 8px; border-top: 1px solid rgba(18, 145, 192, .22); background: rgba(18, 145, 192, .09); color: #173d57; vertical-align: middle; }
.duty-distribution-table tbody tr:nth-child(even) td { background: rgba(18, 145, 192, .13); }
.duty-distribution-table td strong { font-weight: 900; }
.duty-distribution-table td small { display: block; margin-top: 3px; color: #536f80; font-size: 11.5px; font-weight: 700; line-height: 1.3; }
.duty-distribution-table th:nth-child(1) { width: 6%; }
.duty-distribution-table th:nth-child(2) { width: 11%; }
.duty-distribution-table th:nth-child(3) { width: 12%; }
.duty-distribution-table th:nth-child(4) { width: 11%; }
.duty-distribution-table th:nth-child(5) { width: 22%; }
.duty-distribution-table th:nth-child(6) { width: 14%; }
.duty-distribution-table th:nth-child(7) { width: 24%; }
.duty-distribution-table tr.is-warning td:first-child { box-shadow: inset 3px 0 #d59025; }
.duty-distribution-table tr.is-complete td:first-child { box-shadow: inset 3px 0 #1f8a55; }
.duty-distribution-table .duty-reassign { min-width: 0; }
.duty-distribution-table .duty-reassign select { width: 100%; min-width: 0; min-height: 35px; font-size: 12px; font-weight: 750; }
.duty-distribution-table .duty-status { max-width: 100%; justify-content: center; padding: 5px 7px; line-height: 1.2; text-align: center; white-space: normal; }
.duty-plan-statebar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 15px; padding: 11px 16px; border-bottom: 1px solid #d8e1e9; background: #f6f9fb; color: #536a7c; font-size: 12px; }
.duty-plan-statebar span { white-space: nowrap; }
.duty-plan-statebar b { color: #123f5d; font-size: 15px; }
.duty-plan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.duty-plan-actions button { min-height: 38px; }
.duty-plan-approved-state { display: inline-flex; min-height: 38px; align-items: center; padding: 7px 11px; border: 1px solid #9bcfb3; background: #e5f5ec; color: #176943; font-size: 12px; font-weight: 900; white-space: nowrap; }
.duty-print-approver { display: grid; gap: 3px; min-width: 220px; margin: 0; }
.duty-print-approver span { color: #536a7c; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.duty-print-approver select { min-height: 38px; margin: 0; font-size: 12px; font-weight: 750; }
.duty-plan-warning { margin: 0; padding: 9px 16px; border-bottom: 1px solid #efd49f; background: #fff8e9; color: #74551f; font-size: 12px; }
.duty-print-only, .duty-print-approval { display: none; }
.duty-automation-empty { display: grid; gap: 5px; padding: 18px 16px; color: #5c6e7c; }
.duty-automation-empty.is-warning { border-left: 4px solid #c88322; background: #fff8e9; color: #684d20; }
.duty-automation-empty small { color: #7c6a49; }
.duty-reassign { display: grid; gap: 5px; align-items: stretch; }
.duty-reassign select { margin: 0; min-width: 0; }
.duty-reassign button { width: 100%; min-height: 34px; white-space: normal; font-weight: 800; }
.duty-candidate-drawer { border-bottom: 1px solid #d8e1e9; background: #fff; }
.duty-candidate-drawer > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 15px; color: #173f56; font-size: 13px; font-weight: 850; cursor: pointer; }
.duty-candidate-drawer > summary b { color: #585407; font-size: 12px; }
.duty-candidate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 12px 12px; }
.duty-candidate-card { min-width: 0; border: 1px solid #d5e0e8; background: #f8fafc; }
.duty-candidate-card header { display: flex; align-items: start; justify-content: space-between; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #dfe7ed; }
.duty-candidate-card header strong, .duty-candidate-card header small { display: block; }
.duty-candidate-card header strong { color: #143f58; font-size: 13px; font-weight: 900; }
.duty-candidate-card header small { margin-top: 2px; color: #66747c; font-size: 11px; }
.duty-candidate-card header > span { color: #595406; font-size: 11px; font-weight: 850; text-align: right; }
.duty-candidate-lessons { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 10px; }
.duty-candidate-lessons span { display: inline-flex; gap: 5px; padding: 5px 7px; background: #eaf3f8; color: #354952; font-size: 11px; font-weight: 700; }
.duty-candidate-lessons em, .duty-candidate-empty { margin: 0; color: #24704b; font-size: 12px; font-style: normal; font-weight: 800; }
.duty-task-list-panel { margin-top: 8px; overflow: hidden; border: 1px solid #c9d5cd; background: #f6f9fb; }
.duty-task-list-heading { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 14px; border-left: 5px solid #5d798a; background: #1d7ca5; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); color: #fff; }
.duty-task-list-heading strong { font-size: 14px; font-weight: 900; }
.duty-task-list-heading b { padding: 4px 8px; border: 1px solid rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .12); color: #fff; font-size: 12px; font-weight: 900; white-space: nowrap; }
.duty-task-bulk-actions, .duty-task-group-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 14px; padding: 8px 12px; border-bottom: 1px solid #d5e1e8; background: #edf4f7; color: #496575; font-size: 11.5px; }
.duty-task-bulk-actions label, .duty-task-row-actions label { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto 0 0; color: #234c64; font-weight: 850; cursor: pointer; }
.duty-task-bulk-actions input, .duty-task-row-actions input { box-sizing: border-box; width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: #1d7ca5; }
.duty-task-bulk-actions > strong { min-width: 90px; color: #31576c; font-size: 11.5px; text-align: right; }
.duty-task-group-actions { justify-content: space-between; padding: 7px 12px; background: #f7fafb; }
.duty-task-group-actions button { min-height: 32px; }
.duty-task-groups { display: grid; gap: 7px; padding: 10px; background: #f6f9fb; font-family: "Pliant", "Segoe UI", sans-serif; }
.duty-task-groups :is(select, button) { font-family: inherit; }
.duty-task-group { overflow: hidden; border: 1px solid #cbdbe5; background: #fff; }
.duty-task-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 54px; padding: 9px 12px; border-left: 4px solid #1291c0; color: #173d57; cursor: pointer; }
.duty-task-group > summary::marker { color: #1291c0; }
.duty-task-group > summary div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 10px; min-width: 0; }
.duty-task-group > summary strong { font-size: 14px; font-weight: 900; }
.duty-task-group > summary span { color: #637887; font-size: 12px; font-weight: 700; }
.duty-task-group > summary small { color: #215a78; font-size: 11px; font-weight: 850; text-align: right; }
.duty-task-group[open] > summary { border-bottom: 1px solid #cbdbe5; background: rgba(18, 145, 192, .06); }
.duty-group-table { font-size: 14px; line-height: 1.38; }
.duty-group-table th { padding: 11px 12px; color: #244c65; font-size: 11px; letter-spacing: .03em; vertical-align: middle; }
.duty-group-table td { box-sizing: border-box; padding: 14px 12px; vertical-align: middle; }
.duty-group-table tbody tr { min-height: 96px; }
.duty-group-table td:not(:last-child) { border-right: 1px solid rgba(18, 145, 192, .1); }
.duty-group-table th:nth-child(1) { width: 8%; }
.duty-group-table th:nth-child(2) { width: 25%; }
.duty-group-table th:nth-child(3) { width: 23%; }
.duty-group-table th:nth-child(4) { width: 17%; }
.duty-group-table th:nth-child(5) { width: 27%; }
.duty-cell-stack { display: flex; min-width: 0; min-height: 68px; flex-direction: column; justify-content: center; }
.duty-group-table td[data-label="Boş sınıf / ders / konum"] .duty-cell-stack > strong { width: 100%; color: #123f5d; font-size: 20px; font-weight: 800; line-height: 1.2; text-align: center; }
.duty-group-table td[data-label="Görevlendirilen"] .duty-cell-stack > strong { color: #123f5d; font-size: 18px; font-weight: 800; line-height: 1.2; }
.duty-class-location { display: block; margin-top: 5px; color: #1c506d; font-size: 11.5px; font-weight: 850; }
.duty-class-location::before { content: "Konum: "; color: #6b7e8c; font-weight: 700; }
.duty-group-table td[data-label="Ders uygunluğu"] { padding-left: 10px; padding-right: 10px; text-align: center; }
.duty-group-table .duty-status { min-height: 38px; align-items: center; font-size: 11.5px; }
.duty-availability { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; padding: 5px 8px; border: 1px solid transparent; font-size: 11.5px; font-weight: 900; line-height: 1.2; text-align: center; }
.duty-availability.is-available { border-color: #9bcfb3; background: #e5f5ec; color: #176943; }
.duty-availability.is-conflict { border-color: #e3a4a9; background: #fff0f1; color: #a4232f; }
.duty-availability.is-pending { border-color: #d9c18b; background: #fff8e6; color: #755718; }
.duty-group-table .duty-reassign { min-height: 68px; justify-content: center; }
.duty-group-table .duty-reassign select { min-height: 40px; padding-left: 10px; padding-right: 30px; color: #123f5d; font-size: 12.5px; font-weight: 850; text-overflow: clip; }
.duty-group-table .duty-reassign button { min-height: 38px; }
.duty-task-row-actions { display: flex; align-items: center; gap: 8px; }
.duty-task-row-actions button { width: auto; min-height: 30px !important; margin-left: auto; padding: 5px 8px; border: 0; background: transparent; color: #a32631; font-size: 11px; font-weight: 900; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.duty-task-row-actions button:hover { background: #fff0f1; }
.duty-task-locked { margin: 0 !important; padding: 8px; background: #edf1f3; color: #667680 !important; text-align: center; }
.duty-hour-value { display: grid; min-height: 68px; align-content: center; justify-items: center; color: #123f5d; line-height: 1; text-align: center; }
.duty-hour-value b { font-family: "Pliant", "Segoe UI", sans-serif; font-size: 20px; font-weight: 800; }
.duty-hour-value small { margin-top: 3px !important; color: #4d7186 !important; font-size: 10px !important; font-weight: 850 !important; text-transform: uppercase; }
.duty-report-preparing { position: fixed; left: -10000px; top: 0; width: 210mm; min-height: 297mm; pointer-events: none; }
.duty-official-report .activity-report-institution-meta { width: 63mm; font-size: 6.3pt; line-height: 1.2; }
.duty-official-report .activity-report-institution-meta small { display: inline; color: #6a6a6a; font-size: 6.1pt; font-weight: 500; text-transform: lowercase; }
.duty-official-report .activity-report-code { padding-right: 65mm; }
.duty-official-report .activity-report-institution + .activity-report-heading { margin-top: 3mm; }
.duty-official-report .activity-report-heading { align-items: center; }
.duty-official-report .activity-report-heading h1 { font-size: 22pt; }
.duty-official-report-date { min-width: 54mm; }
.duty-official-report-date small { display: grid; gap: .8mm; padding: 1.7mm 0; border-top: .65pt solid #162f53; border-bottom: .45pt solid #dfe3e8; text-align: right; }
.duty-official-report-date span { color: #446689; font-size: 6.2pt; font-weight: 800; letter-spacing: .18em; }
.duty-official-report-date strong { color: #162f53; font-family: "Bodoni Moda", Didot, "Bodoni MT", serif; font-size: 11.5pt; font-weight: 700; line-height: 1.1; }
.duty-official-report-metrics { grid-template-columns: .85fr .75fr 1.4fr; margin-top: 2.2mm; }
.duty-official-report-metrics > div { padding-top: 1.25mm; padding-bottom: 1.15mm; }
.duty-official-report-metrics > div:last-child strong { font-size: 14pt; white-space: nowrap; }
.duty-official-report .activity-report-section { margin-top: 2.2mm; }
.duty-official-report .activity-report-section h3 { margin-bottom: .8mm; font-size: 10.5pt; }
.duty-official-report .activity-report-table th { padding: .75mm 1.05mm; font-size: 6.8pt; line-height: 1.1; }
.duty-official-report .activity-report-table td { padding: .62mm 1.05mm; font-size: 7.15pt; line-height: 1.12; vertical-align: middle; }
.duty-official-report .activity-report-table td small { margin-top: .25mm; font-size: 6.2pt; line-height: 1.08; }
.duty-official-report .activity-report-closing.has-signature { grid-template-columns: minmax(0, 1fr) 58mm; gap: 4mm; margin-top: 2.2mm; }
.duty-official-report .activity-report-closing-text { padding: 1.5mm 2mm; }
.duty-official-report .activity-report-closing-text p { margin-bottom: .8mm; font-size: 7.4pt; line-height: 1.25; }
.duty-official-report .activity-report-closing-text small { padding-top: .8mm; font-size: 6.7pt; }
.duty-official-report .activity-signature-block { padding: 1.5mm 2mm 1.2mm; }
.duty-official-report .activity-signature-block > span { font-size: 6.7pt; }
.duty-official-report .activity-signature-block > strong { margin-top: 1mm; font-size: 11pt; }
.duty-official-report .activity-signature-block > small { margin-top: .4mm; font-size: 7pt; }
.duty-official-report .activity-signature-line { margin-top: 4mm; padding-top: .8mm; font-size: 6.7pt; }
.duty-official-report-table th:nth-child(1) { width: 6%; }
.duty-official-report-table th:nth-child(2) { width: 18%; }
.duty-official-report-table th:nth-child(3) { width: 20%; }
.duty-official-report-table th:nth-child(4) { width: 14%; }
.duty-official-report-table th:nth-child(5) { width: 25%; }
.duty-official-report-table th:nth-child(6) { width: 17%; }
@media (max-width: 1100px) {
  .duty-plan-statebar { align-items: stretch; gap: 7px 12px; padding: 10px; }
  .duty-plan-actions { width: 100%; margin-left: 0; }
  .duty-plan-actions button { flex: 1 1 190px; }
  .duty-print-approver { flex: 1 1 250px; }
  .duty-distribution-table thead { display: none; }
  .duty-distribution-table, .duty-distribution-table tbody { display: block; width: 100%; }
  .duty-distribution-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; padding: 8px 10px; border-top: 1px solid rgba(139, 132, 8, .3); }
  .duty-distribution-table td { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 8px; width: 100%; padding: 5px 7px; border: 0; }
  .duty-group-table td { align-items: center; text-align: left; }
  .duty-hour-value { min-height: 0; justify-items: start; text-align: left; }
  .duty-cell-stack, .duty-group-table .duty-reassign { min-height: 0; }
  .duty-distribution-table td::before { content: attr(data-label); color: #70808c; font-size: 10px; font-weight: 800; text-transform: uppercase; }
  .duty-distribution-table td[data-label="İşlem"] { grid-column: 1 / -1; }
  .duty-distribution-table td[data-label="İşlem"] .duty-reassign { grid-template-columns: minmax(0, 1fr) minmax(150px, .34fr); width: 100%; }
  .duty-distribution-table tr.is-warning td:first-child, .duty-distribution-table tr.is-complete td:first-child { box-shadow: none; }
  .duty-distribution-table .duty-reassign { min-width: 0; }
  .duty-distribution-table .duty-reassign select { min-width: 0; width: 100%; }
}
@media (max-width: 620px) {
  .duty-candidate-grid, .duty-distribution-table tr { grid-template-columns: minmax(0, 1fr); }
  .duty-distribution-table td { grid-template-columns: 94px minmax(0, 1fr); }
  .duty-distribution-table td[data-label="İşlem"] .duty-reassign { grid-template-columns: minmax(0, 1fr); }
  .duty-candidate-drawer > summary { align-items: flex-start; }
  .duty-task-group > summary { align-items: flex-start; }
  .duty-task-group > summary small { max-width: 120px; }
  .duty-print-approver { width: 100%; }
  .duty-task-bulk-actions { align-items: stretch; }
  .duty-task-bulk-actions > strong { order: 3; width: 100%; text-align: left; }
  .duty-task-bulk-actions button { flex: 1 1 auto; }
  .duty-task-group-actions { align-items: stretch; flex-direction: column; }
}

@media print {
  #app-print-root.duty-assignment-print .duty-task-draft { display: none !important; }
  #app-print-root.duty-assignment-print .duty-print-only { display: table-cell !important; min-width: 34mm; }
  #app-print-root.duty-assignment-print .duty-print-approval { display: grid !important; grid-template-columns: 1fr; justify-items: end; gap: 14mm; margin-top: 14mm; padding-right: 15mm; break-inside: avoid; }
  #app-print-root.duty-assignment-print .duty-print-approval span { font-size: 9pt; font-weight: 700; }
  #app-print-root.duty-assignment-print .duty-print-approval strong { font-size: 8pt; font-weight: 500; }
  #app-print-root.duty-assignment-print .duty-plan-statebar,
  #app-print-root.duty-assignment-print .duty-plan-warning { display: none !important; }
  #app-print-root.duty-assignment-print .duty-distribution-panel { overflow: visible; border: 0; background: #fff; }
  #app-print-root.duty-assignment-print .duty-distribution-heading { display: none !important; }
  #app-print-root.duty-assignment-print .duty-distribution-table-wrap { overflow: visible; }
  #app-print-root.duty-assignment-print .duty-distribution-table { display: table; table-layout: fixed; font-size: 9pt; line-height: 1.3; }
  #app-print-root.duty-assignment-print .duty-distribution-table thead { display: table-header-group; }
  #app-print-root.duty-assignment-print .duty-distribution-table tbody { display: table-row-group; }
  #app-print-root.duty-assignment-print .duty-distribution-table tr { display: table-row; padding: 0; border: 0; break-inside: avoid; }
  #app-print-root.duty-assignment-print .duty-distribution-table th,
  #app-print-root.duty-assignment-print .duty-distribution-table td { display: table-cell; width: auto; background: #fff; color: #173d57; }
  #app-print-root.duty-assignment-print .duty-distribution-table td::before { display: none; content: none; }
  #app-print-root.duty-assignment-print .duty-distribution-table th,
  #app-print-root.duty-assignment-print .duty-distribution-table td { padding: 2.2mm 1.8mm; }
}
.duty-mini-row { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid #dbe3ec; }
.duty-mini-row span { text-align: right; }
.duty-area-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #dbe3ec; }
.duty-area-row > div:first-child { min-width: 0; }
.duty-area-row strong, .duty-area-row span, .duty-area-row small { display: block; }
.duty-area-row span, .duty-area-row small { margin-top: 4px; color: #6c7a8d; font-size: 12px; }
.duty-area-row-actions, .duty-area-form-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.duty-area-row.is-archived { opacity: .72; }
.duty-archived-areas { margin-top: 16px; border-top: 1px solid #ccd8e5; }
.duty-archived-areas summary { padding: 13px 0; cursor: pointer; color: #5f7185; font-weight: 700; }
.duty-weekday-group { padding: 10px 0 4px; border-bottom: 1px solid #dbe3ec; }
.duty-weekday-group:last-child { border-bottom: 0; }
.duty-weekday-group h4 { margin: 0 0 4px; color: #173f72; font-size: 14px; }
.duty-weekday-group .duty-mini-row { align-items: center; }
.duty-weekday-group .duty-mini-row > div { min-width: 0; }
.duty-lesson-times-panel { padding: 16px; background: #f2f6fa; border-left: 4px solid #2d72ad; }
.duty-form-note { margin: 0 0 14px; color: #5c6d80; font-size: 13px; }
.duty-lesson-times-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.duty-lesson-times-grid label { display: flex; flex-direction: column; gap: 5px; margin: 0; color: #40566e; font-size: 12px; font-weight: 700; }
.duty-lesson-times-grid input { width: 100%; min-width: 0; margin: 0; }
.duty-rotation-panel { padding: 17px; background: #f2f6fa; border-left: 4px solid #215b91; }
.duty-building-planner { margin-bottom: 18px; border: 1px solid #cbd7e3; background: #f7f9fb; }
.duty-building-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 18px 20px 14px; border-bottom: 1px solid #d6e0e9; }
.duty-building-head > div:first-child span { color: #19708e; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; }
.duty-building-head h3 { margin: 4px 0 3px; color: #123f5d; font-size: 22px; }
.duty-building-head p { margin: 0; color: #617285; font-size: 13px; }
#duty-building-summary { display: flex; gap: 14px; align-items: center; color: #5d6f80; font-size: 11px; white-space: nowrap; }
#duty-building-summary strong { color: #0c4968; font-size: 18px; }
.duty-building-map { padding: 12px 20px 18px; }
.duty-building-floor { display: grid; grid-template-columns: 112px minmax(0, 1fr); border-bottom: 1px solid #dbe3eb; }
.duty-building-floor:last-child { border-bottom: 0; }
.duty-building-floor-label { display: flex; flex-direction: column; justify-content: center; padding: 11px 12px 11px 0; color: #184e69; border-right: 2px solid #236d89; }
.duty-building-floor-label span { font-weight: 800; }
.duty-building-floor-label small { margin-top: 3px; color: #7a8998; }
.duty-building-floor-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 9px 0 9px 12px; }
.duty-building-area { position: relative; min-width: 0; padding: 10px 11px; overflow: hidden; border: 1px solid #cdd9e4; background: #fff; box-shadow: 0 3px 10px rgba(22, 55, 76, .05); }
.duty-building-area::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #2f819e; }
.duty-building-area[data-difficulty="4"]::before, .duty-building-area[data-difficulty="5"]::before, .duty-building-area[data-difficulty="6"]::before { background: #b48b31; }
.duty-building-area[data-difficulty="7"]::before, .duty-building-area[data-difficulty="8"]::before, .duty-building-area[data-difficulty="9"]::before, .duty-building-area[data-difficulty="10"]::before { background: #b64a58; }
.duty-building-area strong, .duty-building-area span { display: block; }
.duty-building-area strong { color: #173f58; font-size: 12px; }
.duty-building-area span { margin-top: 3px; color: #758494; font-size: 10px; }
.duty-building-class-chips { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 7px; }
.duty-building-class-chips small { padding: 2px 5px; color: #315b70; background: #eaf1f5; font-size: 9px; }
.duty-planning-flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid #d3dee7; background: #edf3f6; }
.duty-planning-flow li { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 10px 12px; border-right: 1px solid #d3dee7; color: #52687a; font-size: 10px; }
.duty-planning-flow li:last-child { border-right: 0; }
.duty-planning-flow strong { display: grid; place-items: center; width: 21px; height: 21px; flex: 0 0 21px; color: #fff; background: #0c4968; font-size: 10px; }
.duty-plan-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 10px 12px; border-left: 3px solid #16845d; background: #edf8f4; color: #365f54; font-size: 11px; }
.duty-plan-context.is-simulation { border-left-color: #ba841f; background: #fff8e8; color: #6e551f; }
.duty-simulation-note { margin: 12px 0 0; padding: 10px 12px; color: #72551b; background: #fff7e5; border: 1px solid #ead7ad; font-size: 12px; }
.duty-rotation-heading h3 { margin: 0; color: #173f72; }
.duty-rotation-heading p { margin: 5px 0 0; color: #5f7185; }
.duty-rotation-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; margin-top: 16px; }
.duty-rotation-controls label { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.duty-rotation-controls select { min-height: 44px; margin: 0; }
.duty-check-option { flex-direction: row !important; align-items: center; min-height: 44px; }
.duty-check-option input { width: auto; margin: 0; }
.duty-rotation-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.duty-rotation-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; border-top: 1px solid #cbd8e5; border-bottom: 1px solid #cbd8e5; }
.duty-rotation-summary div { padding: 12px; border-right: 1px solid #d4dfea; }
.duty-rotation-summary div:last-child { border-right: 0; }
.duty-rotation-summary strong, .duty-rotation-summary span { display: block; }
.duty-rotation-summary strong { color: #174f82; font-size: 22px; }
.duty-rotation-summary span { color: #68798b; font-size: 11px; }
.duty-rotation-warnings { margin-top: 12px; padding: 8px 12px; border-left: 3px solid #c98518; background: #fff8e9; color: #775111; }
.duty-rotation-warnings p { margin: 4px 0; }
.duty-rotation-sample { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 12px; background: #d8e2ec; }
.duty-rotation-sample > div { display: grid; gap: 3px; padding: 10px; background: #fff; }
.duty-rotation-sample span, .duty-rotation-sample small { color: #68798b; font-size: 11px; }
.duty-empty { display: flex; flex-direction: column; gap: 6px; padding: 28px 4px; color: #647388; }
.duty-empty strong { color: #274d75; }

@media (max-width: 760px) {
  .duty-page { padding: 12px; }
  .duty-module-header { align-items: stretch; flex-direction: column; gap: 12px; }
  .duty-module-header h2 { font-size: 25px; }
  .duty-date-control { min-width: 0; }
  .teacher-duty-calendar-grid { overflow: visible; grid-template-columns: minmax(0, 1fr); }
  .teacher-duty-calendar-day, .teacher-duty-calendar-grid.is-single .teacher-duty-calendar-day { grid-template-columns: 88px minmax(0, 1fr); min-height: 70px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .teacher-duty-calendar-day:last-child { border-bottom: 0; }
  .teacher-duty-agenda-row { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; }
  .teacher-duty-agenda-row > .duty-status { grid-column: 2; justify-self: start; }
  .teacher-duty-day-summary { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .duty-teacher-day-heading { align-items: start; flex-direction: column; gap: 3px; }
  .duty-drawer > summary { align-items: flex-start; }
  .duty-drawer > summary small { display: none; }
  .duty-form-grid, .duty-setup-grid { grid-template-columns: 1fr; }
  .duty-form-wide, .duty-form-submit, .duty-current-plan { grid-column: 1; }
  .duty-form-actions, .duty-absence-record-actions { align-items: stretch; flex-direction: column; }
  .duty-form-actions button, .duty-absence-record-actions button { width: 100%; }
  #duty-absence-form .duty-form-actions, .duty-absence-record-drawer .duty-absence-record-actions { flex-direction: row; }
  #duty-absence-form .duty-form-actions button, .duty-absence-record-drawer .duty-absence-record-actions button { width: auto; }
  #duty-absence-form .duty-form-actions button[type="submit"], .duty-absence-record-drawer .duty-absence-record-actions button { flex: 1 1 0; }
  #duty-area-classes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .duty-task-row { grid-template-columns: 52px minmax(0, 1fr); }
  .duty-task-title { align-items: flex-start; flex-direction: column; }
  .duty-admin-row { grid-template-columns: 1fr; }
  .duty-absence-record { grid-template-columns: 1fr; }
  .duty-absence-archive-confirm, .duty-absence-history-list { grid-column: 1; }
  .duty-absence-archive-confirm label, .duty-absence-history-list > div { grid-template-columns: 1fr; }
  .duty-reassign { align-items: stretch; flex-direction: column; }
  .duty-reassign select { min-width: 0; width: 100%; }
  .duty-area-row { align-items: stretch; flex-direction: column; }
  .duty-absence-picker-head { align-items: stretch; flex-direction: column; }
  .duty-absence-picker-head strong { padding-bottom: 0; }
  .duty-absence-teacher-list { grid-template-columns: 1fr; max-height: 320px; }
  .duty-absence-teacher-option { grid-template-columns: minmax(0, 1fr) 124px; gap: 8px; padding: 8px; }
  .duty-absence-type-input { min-height: 38px !important; font-size: 13px; }
  .duty-lesson-times-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .duty-rotation-controls, .duty-rotation-sample { grid-template-columns: 1fr; }
  .duty-rotation-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duty-rotation-summary div:nth-child(2) { border-right: 0; }
  .duty-building-head { align-items: stretch; flex-direction: column; gap: 10px; padding: 15px; }
  #duty-building-summary { flex-wrap: wrap; white-space: normal; }
  .duty-building-map { padding: 8px 14px 14px; }
  .duty-building-floor { grid-template-columns: 82px minmax(0, 1fr); }
  .duty-building-floor-areas { grid-template-columns: 1fr; }
  .duty-planning-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duty-planning-flow li { border-bottom: 1px solid #d3dee7; }
  .duty-plan-context { align-items: flex-start; flex-direction: column; }
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/BodoniModa-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("/assets/fonts/BodoniModa-Italic-Variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
}

/* Antetli faaliyet raporu: kurumsal ciddiyet ile moda editoryali ritmini birleştirir. */
.activity-report-document {
  --report-navy: #162f53;
  --report-blue: #446689;
  --report-line: #dfe3e8;
  --report-muted: #6a6a6a;
  overflow-x: auto;
  padding: 12px;
  background: #e9ecef;
}

.activity-report-source {
  position: absolute;
  left: -10000px;
  top: 0;
  width: 174mm;
  visibility: hidden;
  pointer-events: none;
}

.activity-report-pages {
  display: grid;
  justify-content: center;
  gap: 8mm;
  min-width: 210mm;
}

.activity-report-page {
  position: relative;
  width: 210mm;
  height: 297mm;
  overflow: hidden;
  background: #fff url("/assets/activity-report-stationery-white-v2.png") center / 210mm 297mm no-repeat;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  color: #2b2b2b;
  font-family: "Segoe UI", "Noto Sans", Arial, Helvetica, sans-serif;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.activity-report-page-body {
  position: absolute;
  left: 18mm;
  right: 18mm;
  top: 7.5mm;
  bottom: 22.5mm;
  overflow: hidden;
}

.activity-report-block {
  margin-top: 3.2mm;
}

.activity-report-page-body > .activity-report-block:first-child {
  margin-top: 0;
}

.activity-report-institution {
  position: relative;
  display: grid;
  grid-template-columns: 36mm minmax(0, 1fr);
  align-items: end;
  min-height: 35mm;
  gap: 5mm;
  padding-bottom: 2.8mm;
  border-bottom: .45pt solid var(--report-navy);
  text-align: left;
}

.activity-report-institution-logo,
.activity-report-institution-balance {
  width: 36mm;
  height: 35mm;
}

.activity-report-institution-logo {
  display: grid;
  place-items: end start;
}

.activity-report-institution-logo img {
  display: block;
  width: 34mm;
  height: 34mm;
  object-fit: contain;
}

.activity-report-institution-copy {
  min-width: 0;
  padding-bottom: 1.2mm;
}

.activity-report-institution-balance { display: none; }

.activity-report-institution-meta {
  position: absolute;
  right: 0;
  bottom: 2.8mm;
  display: grid;
  gap: .45mm;
  width: 49mm;
  color: var(--report-muted);
  font-size: 6.8pt;
  line-height: 1.25;
  text-align: right;
}

.activity-report-continuation-logo {
  display: grid;
  place-items: center;
  width: 34mm;
  height: 34mm;
}

.activity-report-continuation-logo img {
  display: block;
  width: 33mm;
  height: 33mm;
  object-fit: contain;
}

.activity-report-ministry {
  color: var(--report-navy);
  font-size: 7.2pt;
  font-weight: 700;
  letter-spacing: .16em;
}

.activity-report-school {
  margin-top: .9mm;
  color: var(--report-navy);
  font-family: "Bodoni Moda", Didot, "Bodoni MT", serif;
  font-size: 24pt;
  font-weight: 560;
  line-height: 1;
  letter-spacing: 0;
}

.activity-report-location {
  margin-top: .7mm;
  color: var(--report-blue);
  font-size: 6.9pt;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.activity-report-code {
  margin-top: .9mm;
  color: var(--report-muted);
  font-size: 7pt;
  padding-right: 51mm;
}

.activity-report-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8mm;
  padding: 0;
  border: 0;
}

.activity-report-institution + .activity-report-heading {
  margin-top: 4.4mm;
}

.activity-report-heading h1 {
  margin: .7mm 0 0;
  color: var(--report-navy);
  font-family: "Bodoni Moda", Didot, "Bodoni MT", serif;
  font-size: 24pt;
  font-weight: 560;
  line-height: 1;
  letter-spacing: 0;
}

.activity-report-heading p {
  margin-top: 1mm;
  color: var(--report-muted);
  font-family: "Bodoni Moda", Didot, "Bodoni MT", serif;
  font-size: 10.5pt;
  font-style: italic;
}

.activity-report-kicker {
  color: var(--report-blue);
  font-size: 6.8pt;
  font-weight: 700;
  letter-spacing: .22em;
}

.activity-report-heading-meta {
  min-width: 50mm;
  gap: 1mm;
  color: var(--report-muted);
  align-items: end;
  font-size: 7.2pt;
  line-height: 1.45;
}

.activity-report-heading-meta small {
  display: block;
  color: inherit;
  font-size: inherit;
  text-align: right;
}

.activity-report-heading-meta .badge {
  justify-self: end;
  padding: 1mm 0;
  border: 0;
  border-top: .45pt solid currentColor;
  border-bottom: .45pt solid currentColor;
  border-radius: 0;
  background: transparent;
  font-size: 6.7pt;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.activity-report-metrics,
.activity-report-outcomes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 0;
  border-top: .65pt solid var(--report-navy);
  border-bottom: .4pt solid var(--report-line);
}

.activity-report-outcomes { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.activity-report-metrics > div,
.activity-report-outcomes > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2mm;
  min-width: 0;
  padding: 1.7mm 2.2mm 1.5mm;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.activity-report-metrics > div:not(:last-child),
.activity-report-outcomes > div:not(:last-child) {
  border-right: .35pt solid var(--report-line);
}

.activity-report-metrics strong,
.activity-report-outcomes strong {
  color: var(--report-navy);
  font-family: "Bodoni Moda", Didot, "Bodoni MT", serif;
  order: 2;
  font-size: 15.5pt;
  font-weight: 580;
  line-height: 1;
}

.activity-report-metrics span,
.activity-report-outcomes span {
  order: 1;
  margin-top: 0;
  color: var(--report-muted);
  font-size: 7.4pt;
  line-height: 1.15;
}

.activity-report-metrics > div:last-child strong {
  font-size: 13.5pt;
}

.activity-report-section h3,
.activity-report-closing h3 {
  margin: 0 0 1.4mm;
  padding: 0;
  border: 0;
  color: var(--report-navy);
  font-family: "Bodoni Moda", Didot, "Bodoni MT", serif;
  font-size: 12pt;
  font-weight: 560;
  line-height: 1.05;
}

.activity-report-section h3.continued::after {
  content: " (devam)";
  color: var(--report-muted);
  font-size: 8.5pt;
  font-weight: 400;
}

.activity-report-info,
.activity-report-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 9.5pt;
}

.activity-report-info th,
.activity-report-info td {
  padding: 1.25mm 1.8mm;
  border: 0;
  border-bottom: .5pt solid var(--report-line);
  text-align: left;
  vertical-align: top;
}

.activity-report-info th {
  width: 22%;
  color: var(--report-navy);
  font-weight: 700;
}

.activity-report-info td {
  width: 28%;
}

.activity-report-table th,
.activity-report-table td {
  padding: 1.15mm 1.8mm;
  border: 0;
  border-bottom: .4pt solid var(--report-line);
  font-size: 9pt;
  text-align: left;
  vertical-align: top;
}

.activity-report-table th {
  padding: 1.25mm 1.8mm;
  border-top: .5pt solid var(--report-line);
  border-bottom: .5pt solid var(--report-line);
  background: rgba(242, 244, 246, .72);
  color: var(--report-navy);
  font-size: 8pt;
}

.activity-report-note,
.activity-report-warning {
  margin: 1.8mm 0 0;
  padding: 1.5mm 0 1.5mm 3mm;
  border: 0;
  border-left: 2pt solid var(--report-blue);
  background: rgba(255, 255, 255, .75);
  font-size: 9.5pt;
  line-height: 1.4;
}

.activity-report-closing {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.activity-report-closing.has-signature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66mm;
  align-items: start;
  gap: 5mm;
}

.activity-report-closing.has-signature .activity-report-signatures-single {
  display: block;
  margin: 0;
}

.activity-report-closing-text {
  padding: 2.5mm 3mm;
  border: 0;
  border-top: .7pt solid var(--report-navy);
  border-bottom: .4pt solid var(--report-line);
  border-radius: 0;
  background: transparent;
}

.activity-report-closing-text p {
  margin: 0 0 1.4mm;
  font-size: 9pt;
  line-height: 1.4;
}

.activity-report-closing-text small {
  padding-top: 1.4mm;
  border-top: .5pt solid var(--report-line);
  color: var(--report-muted);
  font-size: 8pt;
}

.activity-report-signatures-single {
  display: grid;
  grid-template-columns: 66mm;
  justify-content: end;
  margin-top: 3mm;
}

.activity-signature-block {
  min-height: 0;
  padding: 2.5mm 3mm 2mm;
  border: 0;
  border-top: .7pt solid var(--report-navy);
  border-bottom: .4pt solid var(--report-line);
  border-radius: 0;
}

.activity-signature-block > span {
  color: var(--report-blue);
  font-size: 8pt;
  letter-spacing: .12em;
}

.activity-signature-block > strong {
  margin-top: 2mm;
  color: var(--report-navy);
  font-family: "Bodoni Moda", Didot, "Bodoni MT", serif;
  font-size: 14pt;
  font-weight: 600;
}

.activity-signature-block > small {
  margin-top: .8mm;
  color: var(--report-muted);
  font-size: 8.5pt;
}

.activity-signature-line {
  margin: 7mm 4mm 0;
  padding-top: 1.5mm;
  border-top: .5pt solid #b9c1c9;
  color: var(--report-muted);
  font-size: 8pt;
}

.activity-report-footer {
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  bottom: 2.5mm;
  height: 10.5mm;
  overflow: hidden;
  color: var(--report-muted);
  font-size: 7pt;
  line-height: 1.32;
  break-inside: avoid;
  page-break-inside: avoid;
}

.activity-report-footer > div {
  position: absolute;
  top: 0;
  display: grid;
  align-content: start;
  transform: none;
}

.activity-report-footer b {
  color: #444;
  font-weight: 700;
}

.activity-report-footer-address { left: 21.9mm; width: 33mm; }
.activity-report-footer-phone { left: 70.7mm; width: 26mm; }
.activity-report-footer-email { left: 111.4mm; width: 39mm; }
.activity-report-footer-web { left: 165.2mm; width: 41mm; }

.activity-report-page-number {
  position: absolute;
  right: 18mm;
  top: auto;
  bottom: 15mm;
  color: var(--report-muted);
  font-size: 7.5pt;
}

@media print {
  @page { size: A4; margin: 0; }

  body.printing-app-section #app-print-root.activity-report-print-root {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-document {
    overflow: visible;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
  }

  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-pages {
    display: block;
    min-width: 0;
  }

  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-page {
    width: 210mm;
    height: 295mm;
    margin: 0;
    overflow: hidden;
    background-size: 210mm 295mm;
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
    break-after: auto;
    page-break-after: auto;
  }

  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-page + .activity-report-page {
    break-before: page;
    page-break-before: always;
  }

  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-block {
    margin-top: 3.2mm;
  }

  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-section {
    margin-top: 3.2mm;
  }

  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-section h3 {
    margin-bottom: 1.4mm;
    padding: 0;
    border: 0;
    font-size: 12pt;
  }

  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-metrics,
  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-outcomes {
    display: grid;
    gap: 0;
    margin: 3.2mm 0 0;
    border-top: .65pt solid var(--report-navy);
    border-bottom: .4pt solid var(--report-line);
  }

  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-outcomes {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-metrics > div,
  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-outcomes > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2mm;
    padding: 1.7mm 2.2mm 1.5mm;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-metrics > div:not(:last-child),
  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-outcomes > div:not(:last-child) {
    border-right: .35pt solid var(--report-line);
  }

  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-table th,
  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-table td {
    padding: 1.15mm 1.8mm;
  }

  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-note,
  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-warning {
    margin: 1.8mm 0 0;
    padding: 1.5mm 0 1.5mm 3mm;
  }

  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-closing.has-signature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 66mm;
    gap: 5mm;
    min-height: 0;
    margin-top: 3.2mm;
    padding: 0;
    border: 0;
    background: transparent;
  }

  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-closing.has-signature .activity-report-closing-text {
    padding: 2.5mm 3mm;
    border: 0;
    border-top: .7pt solid var(--report-navy);
    border-bottom: .4pt solid var(--report-line);
  }

  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-closing.has-signature .activity-report-signatures {
    margin: 0;
  }

  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-closing.has-signature .activity-signature-block {
    min-height: 0;
    padding: 2.5mm 3mm 2mm;
    border: 0;
    border-top: .7pt solid var(--report-navy);
    border-bottom: .4pt solid var(--report-line);
    border-radius: 0;
  }

  body.printing-app-section #app-print-root.activity-report-print-root .activity-report-closing.has-signature .activity-signature-line {
    margin-top: 7mm;
  }

body.printing-app-section #app-print-root.activity-report-print-root .activity-report-source {
    display: none;
  }
}

@media print {
  body.printing-app-section #app-print-root.duty-official-report-print-root .duty-official-report .duty-official-report-metrics {
    grid-template-columns: .85fr .75fr 1.4fr;
    margin-top: 2.2mm;
  }
  body.printing-app-section #app-print-root.duty-official-report-print-root .duty-official-report .duty-official-report-metrics > div {
    padding: 1.25mm 2mm 1.15mm;
  }
  body.printing-app-section #app-print-root.duty-official-report-print-root .duty-official-report .activity-report-section {
    margin-top: 2.2mm;
  }
  body.printing-app-section #app-print-root.duty-official-report-print-root .duty-official-report .activity-report-section h3 {
    margin-bottom: .8mm;
    font-size: 10.5pt;
  }
  body.printing-app-section #app-print-root.duty-official-report-print-root .duty-official-report .activity-report-table th {
    padding: .75mm 1.05mm;
    font-size: 6.8pt;
    line-height: 1.1;
  }
  body.printing-app-section #app-print-root.duty-official-report-print-root .duty-official-report .activity-report-table td {
    padding: .62mm 1.05mm;
    font-size: 7.15pt;
    line-height: 1.12;
    vertical-align: middle;
  }
  body.printing-app-section #app-print-root.duty-official-report-print-root .duty-official-report .activity-report-closing.has-signature {
    grid-template-columns: minmax(0, 1fr) 58mm;
    gap: 4mm;
    margin-top: 2.2mm;
  }
  body.printing-app-section #app-print-root.duty-official-report-print-root .duty-official-report .activity-report-closing.has-signature .activity-report-closing-text {
    padding: 1.5mm 2mm;
  }
  body.printing-app-section #app-print-root.duty-official-report-print-root .duty-official-report .activity-report-closing.has-signature .activity-signature-block {
    padding: 1.5mm 2mm 1.2mm;
  }
  body.printing-app-section #app-print-root.duty-official-report-print-root .duty-official-report .activity-report-closing.has-signature .activity-signature-line {
    margin-top: 4mm;
  }
}

/* Admin kullanım analizi: yoğun bilgiyi sakin ve taranabilir tutar. */
.usage-analytics-page { max-width: 1280px; margin: 0 auto; padding: 4px 0 28px; }
.usage-analytics-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 8px 2px 18px; border-bottom: 2px solid #173f73; }
.usage-analytics-heading h2 { margin: 3px 0 4px; color: #102f5d; font-size: 30px; }
.usage-analytics-heading p { max-width: 720px; margin: 0; color: #5b6878; }
.usage-filterbar { display: grid; grid-template-columns: 150px 190px minmax(220px, 1fr) auto; align-items: end; gap: 12px; padding: 18px 0; }
.usage-filterbar label { margin: 0; }
.usage-filterbar select, .usage-filterbar input { width: 100%; min-height: 42px; margin-top: 5px; }
.usage-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #d8e0e8; border-bottom: 1px solid #d8e0e8; }
.usage-summary-grid article { display: grid; gap: 4px; min-width: 0; padding: 18px 20px; border-right: 1px solid #d8e0e8; background: #fff; }
.usage-summary-grid article:last-child { border-right: 0; }
.usage-summary-grid strong { color: #123d70; font-size: 28px; line-height: 1; }
.usage-summary-grid span { color: #5e6d7d; font-size: 13px; }
.usage-summary-grid .attention strong { color: #9a5b13; }
.usage-insight-grid { display: grid; grid-template-columns: minmax(420px, 1.2fr) minmax(320px, .8fr); gap: 28px; padding: 26px 0; }
.usage-insight-grid section { min-width: 0; }
.usage-insight-grid h3, .usage-user-heading h3 { margin: 0 0 14px; color: #17365f; font-size: 17px; }
.usage-bar-row { display: grid; grid-template-columns: minmax(120px, 190px) 1fr 42px; align-items: center; gap: 10px; min-height: 30px; font-size: 13px; }
.usage-bar-row > i { overflow: hidden; height: 8px; background: #e4eaf0; }
.usage-bar-row > i > b { display: block; height: 100%; background: #16815f; }
.usage-bar-row > strong { text-align: right; color: #17365f; }
.usage-daily-chart > div { display: flex; align-items: end; gap: 3px; height: 176px; padding: 10px 2px 24px; border-bottom: 1px solid #ccd6df; }
.usage-daily-chart i { position: relative; flex: 1; min-width: 3px; background: #2c6da4; }
.usage-daily-chart i b { position: absolute; top: calc(100% + 6px); left: 0; color: #6d7885; font-size: 9px; font-style: normal; font-weight: 500; white-space: nowrap; }
.usage-user-section { padding-top: 4px; }
.usage-user-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.usage-user-heading h3 { margin-bottom: 0; }
.usage-user-heading span { color: #687585; font-size: 12px; }
.usage-user-table { min-width: 1040px; }
.usage-user-table th { white-space: nowrap; }
.usage-user-table td { padding-top: 10px; padding-bottom: 10px; font-size: 13px; vertical-align: middle; }
.usage-user-table td:first-child strong, .usage-user-table td:first-child small { display: block; }
.usage-user-table td:first-child small { margin-top: 2px; color: #74808d; }
.usage-status { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-left: 3px solid #8090a0; background: #edf1f4; color: #43505e; font-size: 11px; font-weight: 700; white-space: nowrap; }
.usage-status.online { border-color: #16815f; background: #e4f4ed; color: #0e684a; }
.usage-status.never { border-color: #c07b25; background: #fff1df; color: #845016; }
.usage-status.inactive { border-color: #8c98a4; color: #68727c; }
.usage-privacy-note { margin: 16px 0 0; padding-left: 12px; border-left: 2px solid #7393b4; color: #667585; font-size: 12px; }

@media (max-width: 820px) {
  .usage-analytics-heading { align-items: flex-start; }
  .usage-analytics-heading h2 { font-size: 25px; }
  .usage-filterbar { grid-template-columns: 1fr 1fr; }
  .usage-search { grid-column: 1 / -1; }
  .usage-summary-grid { grid-template-columns: 1fr 1fr; }
  .usage-summary-grid article:nth-child(2) { border-right: 0; }
  .usage-summary-grid article:nth-child(-n+2) { border-bottom: 1px solid #d8e0e8; }
  .usage-insight-grid { grid-template-columns: 1fr; gap: 24px; }
}

.parent-code-activation-form {
  padding: 16px;
  border: 1px solid #bac9d5;
  background: #eef4f8;
  border-radius: 6px;
}

.parent-access-fallback {
  margin-top: 16px;
  border-top: 1px solid #d8e0e6;
  padding-top: 12px;
}

.parent-access-fallback summary {
  cursor: pointer;
  color: #2a435b;
  font-weight: 700;
}

.parent-access-fallback-body { padding-top: 14px; }

.parent-code-heading {
  align-items: end;
  border-bottom: 2px solid #173d68;
}

.parent-code-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.parent-code-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.parent-code-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin: 14px 0;
  border: 1px solid #d7e0e7;
  background: #d7e0e7;
}

.parent-code-summary span {
  flex: 1 1 150px;
  padding: 10px 12px;
  background: #fff;
  color: #526373;
}

.parent-code-summary strong {
  color: #123b68;
  margin-right: 5px;
}

.parent-code-list {
  border: 1px solid #d7e0e7;
  background: #fff;
}

.parent-code-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(190px, .8fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 74px;
  padding: 10px 14px;
  border-bottom: 1px solid #e1e7eb;
}

.parent-code-row:last-child { border-bottom: 0; }
.parent-code-row.status-kullanildi,
.parent-code-row.status-aktif_hesap { border-left: 4px solid #1d8b57; }
.parent-code-row.status-hazir { border-left: 4px solid #d79b22; }
.parent-code-row.status-iptal { border-left: 4px solid #9aa7b2; }

.parent-code-person,
.parent-code-state {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.parent-code-person small,
.parent-code-state small {
  color: #657584;
  overflow-wrap: anywhere;
}

.parent-code-secret {
  width: fit-content;
  padding: 6px 10px;
  border: 1px dashed #1b6b48;
  color: #12543a;
  background: #edf9f3;
  font-size: 17px;
  letter-spacing: 0;
}

.parent-code-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

@media (max-width: 720px) {
  .parent-code-controls,
  .parent-code-row { grid-template-columns: 1fr; }
  .parent-code-control-actions,
  .parent-code-actions { justify-content: stretch; }
  .parent-code-control-actions button,
  .parent-code-actions button { flex: 1; }
  .parent-code-row { gap: 9px; min-height: 0; }
}

@media print {
  .parent-code-controls,
  .parent-code-actions,
  #parent-code-alert { display: none !important; }
  .parent-code-row:not(:has(.parent-code-secret)) { display: none; }
  .parent-code-list { border: 0; }
  .parent-code-row { grid-template-columns: 1.4fr 1fr; break-inside: avoid; }
}

/* Yönetim ekranları için ortak kompakt mizanpaj katmanı. */
@media screen {
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) main {
    --admin-panel-gap: 8px;
    --admin-control-height: 38px;
    padding: 12px;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .card {
    margin-bottom: var(--admin-panel-gap);
    padding: 10px;
    border: 1px solid #d5dee5;
    border-radius: 6px;
    box-shadow: 0 1px 1px rgba(18, 42, 58, .035);
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .card > h2:first-child {
    margin-bottom: 7px;
    color: #18384d;
    font-size: .96rem;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .notice,
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .step-box,
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .stat-box,
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .permission-role,
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .profile-assignment-panel,
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .activity-teacher-picker {
    padding: 8px 9px;
    border-radius: 5px;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) :is(.step-grid, .stat-grid, .summary-grid, .permission-grid, .grid-2, .grid-3, .form-grid, .schedule-filter-grid, .schedule-map-grid) {
    gap: var(--admin-panel-gap);
    margin-top: 8px;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .summary-cell {
    padding: 7px 8px;
    border-radius: 5px;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .summary-cell .num,
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .stat-box .num {
    font-size: 1.18rem;
    line-height: 1.05;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .section-title {
    margin: 10px 0 5px;
    font-size: .72rem;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) label {
    margin-bottom: 3px;
    font-size: .78rem;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) :is(
    input[type="text"], input[type="tel"], input[type="password"], input[type="date"],
    input[type="file"], input[type="number"], input[type="email"], input[type="search"],
    input[type="time"], select
  ) {
    min-height: var(--admin-control-height);
    margin-bottom: 8px;
    padding: 7px 9px;
    border-radius: 5px;
    font-size: .86rem;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) textarea {
    min-height: 72px;
    margin-bottom: 8px;
    padding: 8px 9px;
    border-radius: 5px;
    font-size: .86rem;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) button:not(.teacher-home-module) {
    min-height: var(--admin-control-height);
    padding: 7px 12px;
    border-radius: 5px;
    font-size: .86rem;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .btn-small {
    min-height: 32px;
    padding: 5px 9px;
    font-size: .76rem;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .btn-row,
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .check-grid,
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .chip-row,
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .announcement-option-grid {
    gap: 6px;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .drawer-panel {
    margin: 7px 0;
    padding: 0 8px 7px;
    border-radius: 5px;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .drawer-panel > summary {
    min-height: 36px;
    font-size: .8rem;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .drawer-content {
    padding-top: 7px;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .announcement-hero {
    gap: 9px;
    margin-bottom: 8px;
    padding: 9px 10px;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .announcement-panel-stack { margin-top: 8px; }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .announcement-drawer { margin-bottom: 6px; }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .announcement-drawer > summary {
    min-height: 38px;
    padding: 7px 9px;
  }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .announcement-drawer > :not(summary) {
    margin-right: 9px;
    margin-left: 9px;
  }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .choice-chip,
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .check-chip {
    min-height: 32px;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: .78rem;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .save-toolbar {
    gap: 8px;
    margin: 7px 0 9px;
    padding: 7px 9px;
    border-radius: 5px;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) table.simple-table {
    font-size: .8rem;
  }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) table.simple-table :is(th, td) {
    padding: 6px 5px;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .activity-module-card,
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) :is(.activity-form, .activity-record-list, .activity-detail-panel) {
    gap: 8px;
  }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .activity-teacher-tools {
    gap: 8px;
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .duty-page {
    padding: 10px;
  }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .duty-module-header {
    gap: 14px;
    padding: 11px 0 10px;
  }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .duty-module-header h2 {
    margin: 2px 0;
    font-size: 23px;
  }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .duty-drawer > summary {
    gap: 10px;
    padding: 10px 2px 10px 3px;
  }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .duty-drawer:not(.duty-absence-entry-drawer) {
    border-right: 1px solid transparent;
    border-left: 1px solid transparent;
  }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .duty-drawer > summary span { font-size: 15px; }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .duty-drawer > summary::after {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    font-size: 16px;
  }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .duty-drawer-content {
    padding: 2px 3px 11px;
  }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .duty-form-grid {
    gap: 8px;
    padding: 9px;
    border-left-width: 3px;
  }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) :is(.duty-form-grid, .duty-setup-panel) :is(input, select) {
    min-height: var(--admin-control-height);
  }

  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .parent-code-activation-form { padding: 9px; }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .parent-code-controls { gap: 9px; }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .parent-code-summary { margin: 8px 0; }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .parent-code-summary span { padding: 7px 9px; }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .parent-code-row {
    gap: 9px;
    min-height: 58px;
    padding: 7px 9px;
  }
}

@media screen and (max-width: 720px) {
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) main {
    --admin-panel-gap: 6px;
    --admin-control-height: 44px;
    padding: 7px;
  }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .card { padding: 8px; }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) button:not(.teacher-home-module) { min-height: 44px; }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .btn-small { min-height: 38px; }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .duty-page { padding: 4px; }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .duty-module-header { align-items: stretch; padding-top: 6px; }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .duty-module-header h2 { font-size: 21px; }
}

/* Executive workspaces keep related administrative actions in one compact view. */
.management-hub {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 1280px;
  min-width: 0;
  margin: 0 auto;
}

.management-hub-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 2px 12px;
  border-bottom: 2px solid #174e6c;
}

.management-hub-header span {
  color: #267ca1;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.management-hub-header h2 {
  margin: 3px 0 0;
  color: #103b63;
  font-size: 1.55rem;
  line-height: 1.15;
}

.management-hub-header p {
  max-width: 610px;
  margin: 0;
  color: #5c6f82;
  font-size: .88rem;
  line-height: 1.45;
  text-align: right;
}

.management-hub-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 1px;
  min-width: 0;
  padding: 1px;
  border: 1px solid #cbd6df;
  background: #cbd6df;
}

.management-hub-tabs button {
  min-width: 0;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #24475f;
  font: inherit;
  font-size: .84rem;
  font-weight: 750;
  line-height: 1.2;
}

.management-hub-tabs button:hover { background: #edf5f8; }
.management-hub-tabs button.active {
  background: #174e6c;
  color: #fff;
}

.management-hub-content { min-width: 0; }

@media (max-width: 720px) {
  .management-hub-header {
    display: grid;
    gap: 6px;
    padding-top: 2px;
  }

  .management-hub-header h2 { font-size: 1.3rem; }
  .management-hub-header p {
    max-width: none;
    font-size: .8rem;
    text-align: left;
  }

  .management-hub-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Kayıt ve Kullanıcılar: öğretmen, idare ve veli panellerinde ortak kompakt filtre standardı. */
.smart-user-filter-grid {
  grid-template-columns: minmax(220px, 1.25fr) minmax(170px, .9fr) minmax(150px, .72fr) auto;
  margin-top: 8px;
}
.smart-user-duty-filter-grid {
  grid-template-columns: minmax(210px, .8fr) minmax(260px, 1.2fr);
}
.smart-user-filter-grid :is(input, select, button),
.smart-user-duty-filter-grid :is(input, select, button) { margin: 0; }
.smart-user-filter-submit { align-self: end; width: auto; min-width: 92px; }

@media (max-width: 720px) {
  .smart-user-filter-grid,
  .smart-user-duty-filter-grid { grid-template-columns: minmax(0, 1fr); }
  .smart-user-filter-submit { width: 100%; }
}

/* Mobil form güvenliği: iOS yerel alan genişliğini ve odak yakınlaştırmasını sınırlar. */
@media screen and (max-width: 720px) {
  body :is(
    input:not([type]), input[type="text"], input[type="tel"], input[type="password"], input[type="date"],
    input[type="file"], input[type="number"], input[type="email"], input[type="search"],
    input[type="time"], textarea, select
  ) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 16px !important;
  }

  body :is(input[type="date"], input[type="time"]) {
    display: block;
    inline-size: 100% !important;
    min-inline-size: 0 !important;
    max-inline-size: 100% !important;
    overflow: hidden;
  }

  body :is(input[type="date"], input[type="time"])::-webkit-date-and-time-value,
  body :is(input[type="date"], input[type="time"])::-webkit-datetime-edit {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    margin: 0;
  }

  .behavior-drawer,
  #discipline-create,
  #discipline-create > *,
  .discipline-observation-controls,
  .discipline-observation-controls > *,
  .activity-workspace,
  .activity-composer-panel,
  .activity-form,
  .activity-form-section,
  .activity-form-section-body,
  .activity-form-section-body > *,
  .activity-schedule-grid,
  .activity-schedule-grid > *,
  .activity-time-grid,
  .activity-time-grid > * {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
  }

  .behavior-drawer,
  #discipline-create,
  .activity-form-section,
  .activity-form-section-body {
    overflow: hidden;
  }
}

/* Safari iOS, date/time alanlarına içerikten türeyen ek bir minimum genişlik verir. */
@supports (-webkit-touch-callout: none) {
  @media screen and (max-width: 720px) {
    body :is(input[type="date"], input[type="time"]) {
      -webkit-appearance: none;
      appearance: none;
      min-height: 48px;
      padding: 9px 10px;
      text-align: center;
    }

    body :is(input[type="date"], input[type="time"])::-webkit-date-and-time-value {
      width: 100%;
      text-align: center;
    }
  }
}

/* Şube performansı: değerlendirme ve gelişim raporu görünümleri. */
.course-eval-view-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 10px;
  border: 1px solid #c9d5de;
  background: #c9d5de;
}
.course-eval-view-tabs button {
  min-height: 40px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #234c68;
  font-weight: 800;
}
.course-eval-view-tabs button.active { background: #174e6c; color: #fff; }
.course-report-controls { display: grid; gap: 10px; padding: 12px; }
.course-report-control-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(125px, 1fr));
  gap: 8px;
  align-items: end;
}
.course-report-control-grid label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #24455e;
  font-size: .75rem;
  font-weight: 800;
}
.course-report-control-grid :is(input, select) { width: 100%; min-width: 0; margin: 0; }
.course-report-class-picker,
.course-report-drawer { border: 1px solid #ced9e2; background: #fff; }
.course-report-class-picker summary,
.course-report-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  color: #174663;
  font-weight: 800;
  cursor: pointer;
}
.course-report-class-picker > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 6px;
  padding: 9px;
  border-top: 1px solid #dde5eb;
}
.course-report-class-picker label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 7px;
  border: 1px solid #d9e2e8;
  background: #f8fafb;
  font-weight: 750;
}
.course-report-class-picker input { width: auto; margin: 0; }
.course-report-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 3px 10px;
  border-bottom: 2px solid #174e6c;
}
.course-report-heading span { color: #277ca0; font-size: .68rem; font-weight: 900; }
.course-report-heading h2 { margin: 3px 0 0; color: #113b59; font-size: 1.35rem; }
.course-report-heading p { margin: 0; color: #607181; text-align: right; line-height: 1.5; }
.course-report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid #d3dde5;
  background: #d3dde5;
}
.course-report-metrics div { min-width: 0; padding: 12px; background: #fff; }
.course-report-metrics strong { display: block; color: #164c6b; font-size: 1.25rem; }
.course-report-metrics span { color: #6a7884; font-size: .74rem; }
.course-report-overview-grid {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr);
  gap: 10px;
  margin: 10px 0;
}
.course-report-overview-grid article { min-width: 0; padding: 12px; }
.course-report-overview-grid h3,
.course-report-drawer-body h3 { margin: 0 0 9px; color: #193f5a; font-size: .9rem; }
.course-report-overview-grid p { margin: 5px 0; color: #536675; line-height: 1.45; }
.course-report-direction { display: flex; height: 18px; overflow: hidden; background: #e8eef2; }
.course-report-direction i { display: block; background: #24976b; }
.course-report-direction b { display: block; background: #d27b45; }
.course-report-overview-grid article > div:last-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: #566978;
  font-size: .76rem;
}
.course-report-drawer { margin-top: 8px; }
.course-report-drawer[open] > summary { background: #edf5f8; }
.course-report-drawer-body { min-width: 0; padding: 10px; border-top: 1px solid #d7e1e8; }
.course-report-drawer .table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}
.course-report-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.course-report-bar-row {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) minmax(120px, 2fr) 40px;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
}
.course-report-bar-row > span { overflow: hidden; color: #42596a; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.course-report-bar-row > div { height: 12px; overflow: hidden; background: #e7edf1; }
.course-report-bar-row i { display: block; height: 100%; background: #277ca0; }
.course-report-bar-row i.olumlu { background: #24976b; }
.course-report-bar-row i.gelisim { background: #d27b45; }
.course-report-bar-row b { color: #284b63; font-size: .76rem; text-align: right; }
.course-report-timeline { max-height: 300px; overflow: auto; }

@media (max-width: 900px) {
  .course-report-control-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .course-report-control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-report-heading { display: grid; align-items: start; }
  .course-report-heading p { text-align: left; }
  .course-report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-report-overview-grid,
  .course-report-split { grid-template-columns: minmax(0, 1fr); }
  .course-report-drawer-body { overflow: hidden; }
}

@media (max-width: 480px) {
  .course-report-control-grid { grid-template-columns: minmax(0, 1fr); }
  .course-report-bar-row { grid-template-columns: minmax(88px, .8fr) minmax(80px, 1.4fr) 32px; }
  .course-report-heading h2 { font-size: 1.15rem; }
}

@font-face {
  font-family: "Arimo";
  src: url("/assets/fonts/Arimo-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Geomini";
  src: url("/assets/fonts/Geomini-Bold-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geomini";
  src: url("/assets/fonts/Geomini-Bold-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Pliant";
  src: url("/assets/fonts/Pliant-Variable-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Pliant";
  src: url("/assets/fonts/Pliant-Variable-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Nöbet yönetimi: belirgin tarih odağı ve sade rol görünümü. */
body:is(.role-admin, .role-mudur, .role-mudur-yrd) .duty-date-control {
  min-width: 210px;
  padding: 8px 9px 9px;
  border: 1px solid #9db8ca;
  border-bottom: 3px solid #668da7;
  border-radius: 6px;
  background: #edf6fb;
  box-shadow: 0 5px 0 rgba(42, 82, 108, .17), 0 9px 18px rgba(37, 72, 96, .12);
  color: #244c66;
  font-size: 11px;
  letter-spacing: 0;
}
body:is(.role-admin, .role-mudur, .role-mudur-yrd) .duty-date-control input {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 56px;
  margin: 0;
  border: 2px solid #82a9c0;
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 -3px 0 rgba(52, 91, 116, .11);
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.duty-date-control-label { display: block; }
.duty-date-field { position: relative; display: block; margin-top: 6px; }
.duty-date-display {
  position: absolute;
  z-index: 2;
  inset: 0 38px 0 10px;
  display: grid;
  place-items: center;
  color: #123f5d;
  font-family: "Geomini", "Arial", sans-serif;
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
}
.duty-date-field input::-webkit-calendar-picker-indicator {
  position: relative;
  z-index: 3;
  opacity: 1;
  cursor: pointer;
}
.duty-absence-entry-drawer { margin-bottom: 3px; border: 1px solid #c8d8e3; background: #f8fbfd; }
.duty-absence-entry-drawer > summary {
  padding-left: 11px !important;
  padding-right: 2px !important;
}
.duty-absence-entry-drawer > summary span { color: #15506f !important; }
.duty-candidate-drawer { border: 1px solid #4c6676; background: #fff; }
.duty-candidate-drawer > summary {
  min-height: 48px;
  padding: 11px 15px;
  background: #5d798a;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-shadow: none;
}
.duty-candidate-drawer > summary b { padding: 4px 8px; border: 1px solid rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .14); color: #fff; font-size: 14px; font-weight: 900; white-space: nowrap; }
.duty-candidate-drawer[open] > summary { border-bottom: 1px solid #4c6676; }
.duty-candidate-drawer .duty-candidate-grid { background: #fff; }
.duty-daily-tracking {
  margin: 9px 0 5px;
  overflow: hidden;
  border: 1px solid #142f70;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 5px rgba(15, 36, 87, .18);
}
.duty-daily-tracking > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 7px 2px 7px 11px;
  background: #1c3f8f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), inset 0 -2px 0 rgba(7, 24, 66, .24);
  cursor: pointer;
  list-style: none;
}
.duty-daily-tracking > summary::-webkit-details-marker { display: none; }
.duty-daily-tracking > summary::after { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border: 0; background: transparent; box-shadow: none; color: #fff; font-family: Arial, sans-serif; font-size: 18px; font-weight: 400; line-height: 1; }
.duty-daily-tracking[open] > summary::after { content: "−"; }
.duty-daily-tracking > summary > div:first-child { min-width: 0; }
.duty-daily-tracking > summary > div:first-child span { display: block; color: rgba(255, 255, 255, .82); font-size: 9px; font-weight: 900; }
.duty-daily-tracking > summary > div:first-child strong { display: block; margin-top: 1px; color: #fff; font-size: 14px; }
.duty-daily-tracking-count { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 3px 5px; margin-left: auto; text-align: right; }
.duty-daily-tracking-count b { color: #fff; font-size: 15px; }
.duty-daily-tracking-count span { padding: 3px 6px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 10px; font-weight: 800; white-space: nowrap; }
.duty-daily-tracking-count em { padding: 3px 6px; font-size: 9px; font-style: normal; font-weight: 900; white-space: nowrap; }
.duty-daily-tracking-count em.is-ready { background: rgba(226, 243, 233, .92); color: #176943; }
.duty-daily-tracking-count em.is-missing { background: rgba(255, 240, 216, .94); color: #835c17; }
.duty-daily-tracking-count small { grid-column: 1 / -1; color: rgba(255, 255, 255, .82); font-size: 9px; }
.duty-daily-tracking-body { border-top: 1px solid #142f70; }
.duty-daily-summary-table-wrap { width: 100%; overflow-x: auto; }
.duty-daily-summary-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 11px; }
.duty-daily-summary-table th { padding: 6px 8px; background: #f3f8fa; color: #5c7382; font-size: 9px; font-weight: 900; text-align: left; text-transform: uppercase; }
.duty-daily-summary-table th:nth-child(1) { width: 13%; }
.duty-daily-summary-table th:nth-child(2) { width: 12%; }
.duty-daily-summary-table th:nth-child(3) { width: 43%; }
.duty-daily-summary-table th:nth-child(4) { width: 32%; }
.duty-daily-summary-table td { min-width: 0; padding: 6px 8px; border-top: 1px solid #e0e9ee; color: #536b79; vertical-align: middle; }
.duty-daily-summary-table td:first-child { white-space: nowrap; }
.duty-daily-summary-table td:first-child b { margin-right: 5px; color: #123f5d; font-size: 13px; }
.duty-daily-summary-table td:first-child span { color: #1f5c78; font-weight: 900; }
.duty-daily-summary-table abbr { color: #31596f; font-weight: 900; text-decoration: none; }
.duty-daily-summary-table td:nth-child(3) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duty-daily-summary-table td:nth-child(3) span { color: #647986; }
.duty-daily-summary-table td:nth-child(3) i { margin: 0 6px; color: #70a0b5; font-style: normal; }
.duty-daily-summary-table td:nth-child(3) strong { color: #153f59; }
.duty-daily-summary-table td:last-child { display: flex; align-items: center; gap: 6px; }
.duty-daily-summary-table td:last-child .duty-availability { min-height: 24px; padding: 3px 6px; font-size: 9px; white-space: nowrap; }
.duty-daily-summary-table td:last-child small { overflow: hidden; color: #617885; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.duty-daily-tracking.has-unassigned { border-left: 4px solid #c88a24; }
.duty-daily-tracking.has-drafts { border-left: 4px solid #317ca2; }
.duty-daily-tracking.has-approved { border-left: 4px solid #24965f; }
.duty-daily-tracking.is-empty { border-left: 4px solid #9aabb5; }

@media (max-width: 760px) {
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .duty-date-control { width: 100%; min-width: 0; box-sizing: border-box; }
  body:is(.role-admin, .role-mudur, .role-mudur-yrd) .duty-date-control input { width: 100%; min-width: 0; }
  .duty-date-display { font-size: 18px; }
  .duty-candidate-drawer > summary { align-items: center; font-size: 14px; }
  .duty-daily-tracking > summary { align-items: center; }
  .duty-daily-tracking-count { gap: 3px; }
  .duty-daily-tracking-count span { padding: 3px 4px; }
  .duty-daily-tracking-count small { display: none; }
}

@media (max-width: 620px) {
  header.app-header .header-print-button {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0 !important;
  }
  header.app-header .print-icon {
    flex: 0 0 21px;
    width: 21px;
    min-width: 21px;
    height: 21px;
  }
}
