:root {
  --blue: #2f7df6;
  --blue-dark: #1764dc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --soft: #edf2f7;
  --panel: #f2f6fb;
  --field: #ffffff;
  --field-border: #cfd7e3;
  --shadow: 0 10px 24px rgba(15, 23, 42, .07), 0 1px 4px rgba(15, 23, 42, .05);
  --btn-radius: 10px;
  --btn-radius-sm: 8px;
  --btn-toolbar-h: 30px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: #edf2f7;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 12px;
}
button, input, select, textarea { font: inherit; }
svg { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 200;
  width: 278px;
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  background: #fbfcfe;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 4px 8px; }
.brand > div {
  display: grid;
  justify-items: center;
  text-align: center;
}
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 10px rgba(15, 23, 42, .14));
}
.brand strong { display: block; font-size: 15px; line-height: 1.1; }
.brand span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.profile span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.period-badge {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  margin: 0 4px 8px;
  padding: 5px 9px 6px;
  border: 1px solid #dbe4ef;
  border-radius: 9px;
  background: linear-gradient(180deg, #fafcfe 0%, #f3f7fc 100%);
  text-align: center;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.period-badge__kicker {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.15;
}
.period-badge strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
  letter-spacing: 0.01em;
}
.period-badge--switcher {
  gap: 0;
}
.period-badge__select {
  width: 100%;
  margin-top: 2px;
  padding: 3px 22px 3px 6px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 6px center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  color: #0f172a;
  letter-spacing: 0.01em;
  text-align: center;
  cursor: pointer;
  appearance: none;
  font-family: inherit;
  min-height: 0;
}
.period-badge__select:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 4px;
}
.payment-methods-active-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #334155;
  cursor: pointer;
  user-select: none;
}
.payment-methods-active-toggle input {
  margin: 0;
}
.payment-methods-active-toggle--form {
  min-height: 38px;
  padding: 0 2px;
}
.payment-methods-active-field {
  align-self: end;
}
.payment-methods-col-active {
  white-space: nowrap;
}
.nav { display: grid; gap: 3px; overflow-y: auto; padding-right: 3px; }
.nav-link, .nav-group summary {
  min-height: 28px;
  display: flex; align-items: center; gap: 8px;
  color: #111827; text-decoration: none; border-radius: 7px;
  padding: 0 9px; font-size: 11.5px; font-weight: 650;
  cursor: pointer;
}
.nav-group summary { justify-content: space-between; list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary span { display: flex; align-items: center; gap: 8px; }
.nav-group summary::after { content: '›'; color: #94a3b8; transition: transform .15s ease; }
.nav-group[open] summary::after { transform: rotate(90deg); }
.nav-group a {
  min-height: 23px;
  display: flex; align-items: center;
  margin: 1px 0 1px 24px;
  padding: 0 10px;
  border-radius: 6px;
  color: #475569;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
}
.nav a.active { color: #fff; background: var(--blue); box-shadow: 0 8px 18px rgba(47, 125, 246, .18); }
.nav-contract-sub {
  margin-left: 20px;
  min-height: auto;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 550;
  line-height: 1.3;
  white-space: normal;
}
.contract-sub-placeholder .panel {
  margin-top: 0;
}
.nav-link-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  flex-shrink: 0;
  box-sizing: border-box;
}
.nav a.active .nav-link-badge {
  background: #fff;
  color: var(--blue);
}
.nav-link-badge.is-hidden {
  display: none;
}
.profile {
  margin-top: auto;
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px 1fr 24px;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border-radius: 8px;
  background: #f1f3f7;
}
.profile strong { font-size: 12px; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; }
.profile button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }

.main { margin-left: 278px; padding: 24px 18px 36px; background: #edf2f7; min-height: 100vh; min-width: 0; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  margin-bottom: 12px;
  padding: 6px 10px 6px 8px;
  border: 1px solid #dde4ee;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.topbar-start {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  flex: 1;
}
.topbar-titles {
  min-width: 0;
  padding-left: 10px;
  margin-left: 8px;
  border-left: 1px solid #e8edf4;
}
.nav-history {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-shrink: 0;
  padding: 2px;
  border-radius: 7px;
  background: #f1f5f9;
}
.nav-history-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  min-width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}
.nav-history-btn:hover:not(:disabled) {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
.nav-history-btn:disabled {
  opacity: .32;
  cursor: not-allowed;
}
.topbar__crumbs,
.topbar .crumbs {
  margin: 0 0 1px;
  color: #94a3b8;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .01em;
}
.topbar__crumbs span,
.topbar .crumbs span {
  padding: 0 4px;
  opacity: .75;
}
.topbar__title {
  margin: 0;
  color: #1e293b;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.topbar__title-meta {
  margin-left: 6px;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}
.topbar p:not(.topbar__crumbs):not(.crumbs) { margin: 0; }
.panel > p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 6px;
  padding-left: 10px;
  margin-left: auto;
  border-left: 1px solid #e8edf4;
}
.topbar__actions > .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.topbar__actions > .actions.is-hidden,
.topbar__actions > .actions:empty { display: none; }
.topbar__actions:not(:has(> .actions:not(.is-hidden))) {
  display: none;
  border-left: 0;
  padding-left: 0;
}
.topbar .btn-toolbar {
  min-height: var(--btn-toolbar-h);
  padding: 0 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 650;
  gap: 5px;
  box-shadow: none;
}
.topbar .btn-toolbar.btn-primary {
  box-shadow: 0 3px 10px rgba(47, 125, 246, .18);
}
.topbar .btn-toolbar.btn-secondary {
  box-shadow: none;
}
.topbar .btn__icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  font-size: 10px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.list-page-actions,
.roles-page-actions,
.permissions-page-actions,
.personnel-page-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.roles-page-actions .btn-toolbar,
.permissions-page-actions .btn-toolbar,
.personnel-page-actions .btn-toolbar {
  min-width: 0;
}

.users-page-actions {
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}
.users-page-actions .btn-toolbar {
  white-space: nowrap;
}

button {
  border-radius: var(--btn-radius-sm);
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  color: var(--text);
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
button:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
}
.btn__icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.btn-toolbar {
  min-height: var(--btn-toolbar-h);
  padding: 0 14px;
  border-radius: var(--btn-radius);
  font-size: 12px;
  font-weight: 750;
}

.btn-primary,
button.primary {
  color: #fff;
  border-color: var(--blue);
  background: linear-gradient(180deg, #4d92fa 0%, var(--blue) 100%);
  box-shadow: 0 8px 20px rgba(47, 125, 246, .22);
  font-weight: 750;
}
.btn-primary:hover:not(:disabled),
button.primary:hover:not(:disabled) {
  border-color: var(--blue-dark);
  background: linear-gradient(180deg, #5c9bff 0%, var(--blue-dark) 100%);
}
.actions .btn-toolbar.btn-primary .btn__icon {
  color: var(--blue);
  background: rgba(255, 255, 255, .95);
}

.btn-secondary {
  color: #0f172a;
  border-color: #d7e0ec;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .07);
  font-weight: 750;
}
.btn-secondary:hover:not(:disabled) {
  color: var(--blue);
  border-color: #b9d2ff;
  background: #f8fbff;
}
.actions .btn-toolbar.btn-secondary .btn__icon {
  color: #475569;
  background: #eef2f7;
}

.btn-print,
button.print {
  color: #6d28d9;
  border-color: #c4b5fd;
  background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.12);
  font-weight: 750;
}
.btn-print:hover:not(:disabled),
button.print:hover:not(:disabled) {
  color: #5b21b6;
  border-color: #a78bfa;
  background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
}
.actions .btn-toolbar.btn-print .btn__icon,
.student-card-toolbar .btn-print .btn__icon {
  color: #7c3aed;
  background: #ede9fe;
}
.btn-sm.btn-print {
  color: #6d28d9;
  border-color: #c4b5fd;
  background: #f5f3ff;
}

.btn-ghost,
button.ghost {
  color: #334155;
  border-color: #cbd5e1;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
  font-weight: 700;
}
.btn-ghost:hover:not(:disabled),
button.ghost:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #fff;
}
.actions .btn-toolbar.btn-ghost .btn__icon {
  color: #475569;
  background: #eef2f7;
}

.btn-danger,
button.danger {
  color: #fff;
  border-color: #dc2626;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  font-weight: 750;
}
.btn-danger:hover:not(:disabled),
button.danger:hover:not(:disabled) {
  filter: brightness(1.06);
}

.btn-sm {
  min-height: 30px;
  padding: 0 11px;
  border-radius: var(--btn-radius-sm);
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
}
.btn-sm .btn__icon {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  font-size: 10px;
}

.btn-filter-clear {
  align-self: flex-end;
  min-height: 32px;
  padding: 0 11px;
  border-radius: var(--btn-radius-sm);
  border-color: #bfd0e5;
  background: linear-gradient(180deg, #ffffff, #f6f9fd);
  color: #475569;
  font-weight: 750;
  gap: 6px;
}
.btn-filter-clear .btn__icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 10px;
  font-weight: 800;
}
.btn-filter-clear:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
}

.btn-muted-tool {
  min-height: 30px;
  padding: 0 12px;
  border-radius: var(--btn-radius-sm);
  border-color: #bfd0e5;
  color: #1e40af;
  font-size: 12px;
  font-weight: 650;
  background: linear-gradient(180deg, #ffffff, #f3f7fc);
}
.btn-muted-tool:hover:not(:disabled) {
  border-color: var(--blue);
  background: #fff;
}

.export-menu {
  position: relative;
  display: inline-flex;
}
.export-options {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 10;
  display: grid;
  min-width: 112px;
  padding: 6px;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
  gap: 4px;
}
.export-options .btn,
.export-options button {
  display: inline-flex;
  justify-content: flex-start;
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--btn-radius-sm);
  box-shadow: none;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}
.export-options .btn:hover:not(:disabled),
.export-options button:hover:not(:disabled) {
  color: var(--blue);
  background: #eff6ff;
}

button.link { border: 0; min-height: auto; padding: 5px 0 0; background: transparent; color: var(--blue); }

.switch, .check, .field-check { display: flex; align-items: center; gap: 8px; color: #111827; }
.switch input { display: none; }
.switch span { width: 34px; height: 18px; border-radius: 99px; background: #cbd5e1; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); transition: background .15s ease; }
.switch span::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 1px; left: 1px; transition: transform .15s ease; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch b { font: inherit; min-width: 28px; }

.grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: stretch; margin-top: 16px; }
.panel {
  min-height: 0;
  height: 100%;
  padding: 16px;
  border: 1px solid #d9e0ea;
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-head > div { display: flex; align-items: center; gap: 8px; }
.panel-title-block {
  display: grid;
  gap: 4px;
}
.panel-head .panel-desc {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}
.list-section-hint {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.panel h2 { margin: 0; font-size: 15.5px; line-height: 1.15; }
.panel h3 { margin: 14px 0 8px; color: var(--muted); font-size: 11px; font-weight: 600; }
.panel em, .year { font-style: normal; font-size: 11px; background: #f1f2f5; border: 1px solid #dddfe5; border-radius: 7px; padding: 3px 7px; }
.year { color: #fff; background: var(--blue); border-color: var(--blue); }
.mini-icon { color: var(--blue); font-weight: 800; font-size: 11px; }
.record-id {
  min-width: 24px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.record-id-value {
  min-width: 34px;
  padding: 2px 8px;
  border-radius: 7px;
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}
.title-switch {
  margin: 0 0 0 auto;
  font-size: 11.5px;
  font-weight: 650;
}
.student-panel-head-end {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.student-panel .student-panel-head-end .title-switch {
  margin-left: 0;
}

/* Yeni kayıt: üst 3 sütun başlık altı çizgi hizası */
#registrationForm.grid > section.panel:not(.payment-setup-panel):not(.payment-schedule-panel) > .panel-head {
  flex-wrap: wrap;
  align-items: center;
  min-height: 48px;
  box-sizing: border-box;
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}
#registrationForm.grid > .finance-panel > .form-block:first-of-type,
#registrationForm.grid > .student-panel > .form-block:first-of-type {
  margin-top: 10px;
}
#registrationForm.grid > section.panel:not(.payment-setup-panel):not(.payment-schedule-panel) > .tabs {
  margin-top: 12px;
  padding-top: 0;
}
#registrationForm.grid > section.panel > .guardian-form > .form-block.guardian-block {
  border-top: 0;
  margin-top: 10px;
  padding-top: 0;
}
#registrationForm.grid > section.panel > .tabs[aria-label="Veli ve kardeş"] {
  position: relative;
  margin-top: 14px;
}
#registrationForm.grid > section.panel > .tabs[aria-label="Veli ve kardeş"]::before {
  content: '';
  position: absolute;
  left: -16px;
  right: -16px;
  top: -8px;
  border-top: 1px solid #d4dce8;
}

label { display: grid; align-content: start; gap: 5px; margin-top: 9px; font-weight: 650; font-size: 11.5px; }
.label-text { display: inline-flex; align-items: baseline; gap: 3px; }
.req { color: #dc2626; font-weight: 800; }
.form-block {
  margin: 12px -16px 0;
  padding: 12px 16px 0;
  border-top: 1px solid #d4dce8;
}
.form-block:first-of-type { margin-top: 10px; }
.identity-block { padding-bottom: 10px; }
.guardian-block { margin-top: 10px; }
.guardian-address-block { margin-top: 34px; }
.guardian-name-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.guardian-name-row.show-relationship { grid-template-columns: 1fr 1fr; }
.relationship-field { display: none; }
.guardian-name-row.show-relationship .relationship-field { display: grid; }
.sibling-form { display: none; }
.sibling-form.active { display: block; }
.sibling-list { display: grid; gap: 8px; margin-top: 10px; }
.sibling-row {
  display: grid;
  grid-template-columns: minmax(158px, 1.45fr) 52px minmax(158px, 1.45fr) 26px;
  gap: 6px;
  align-items: end;
  padding: 9px;
  border: 1px solid #d4dce8;
  border-radius: 8px;
  background: #fff;
}
.sibling-row label { margin-top: 0; }
.sibling-row input { min-height: 31px; padding-inline: 8px; font-size: 11px; }
.remove-sibling {
  min-height: 31px;
  width: 26px;
  padding: 0;
  border-color: #fecaca;
  color: #dc2626;
  background: #fff5f5;
}
.add-sibling { width: 100%; margin-top: 10px; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; min-height: 33px; border: 1px solid var(--field-border); border-radius: 7px;
  padding: 0 10px; color: #111827; background: var(--field); outline: none;
  font-weight: 400;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03), inset 0 1px 2px rgba(15, 23, 42, .035);
}
input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  box-shadow: none;
  accent-color: var(--blue);
  cursor: pointer;
}
input[type="radio"] { border-radius: 50%; }
input::placeholder, textarea::placeholder { color: #9aa6b5; font-weight: 400; opacity: 1; }
select { font-weight: 400; }
select.placeholder-field,
input[type="date"].placeholder-field,
input.crm-date-input.placeholder-field { color: #9aa6b5; }
select.placeholder-field.has-value,
input[type="date"].placeholder-field.has-value,
input.crm-date-input.placeholder-field.has-value { color: #111827; }
input.crm-date-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
span.crm-date-wrap {
  display: inline-flex;
  align-items: center;
  width: 100%;
  gap: 6px;
}
span.crm-date-wrap > input.crm-date-input {
  flex: 1 1 auto;
  width: 100%;
}
button.crm-date-picker-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  line-height: 1;
}
button.crm-date-picker-btn:hover {
  background: #f3f4f6;
}
input.crm-date-input.invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.2);
}
textarea { min-height: 58px; padding-top: 8px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,125,246,.12); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.school-row { display: grid; grid-template-columns: minmax(96px, .9fr) 74px minmax(130px, 1.45fr); gap: 8px; }
.school-row input { padding-inline: 9px; }
.photo-row { display: grid; grid-template-columns: 86px 1fr; gap: 12px; align-items: center; margin: 14px 0 10px; }
.photo-row strong { display: block; }
.photo > span { display: block; color: var(--muted); margin-top: 4px; }
.photo { width: 86px; aspect-ratio: 3 / 4; position: relative; display: grid; place-items: center; overflow: visible; border: 1px dashed #9dbef8; border-radius: 8px; background: #eef5ff; color: var(--blue); font-size: 11px; font-weight: 800; }
.photo.has-image { border-style: solid; background-position: center; background-size: cover; }
.photo.has-image > span { display: none; }
.photo-action {
  position: absolute;
  width: 24px;
  height: 24px;
  min-height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}
.photo-action.add, .photo-action.replace { right: -7px; bottom: -7px; background: var(--blue); }
.photo-action.remove { right: -7px; top: -7px; display: none; background: #ef4444; }
.photo-action.replace { display: none; }
.photo.has-image .photo-action.add { display: none; }
.photo.has-image .photo-action.replace,
.photo.has-image .photo-action.remove { display: block; }
.photo input { display: none; }
.photo-fields { display: grid; gap: 4px; align-content: center; }
.photo-fields label { margin-top: 0; }
.field-error {
  display: block;
  min-height: 12px;
  color: #dc2626;
  font-size: 10.5px;
  font-weight: 600;
}
input.invalid,
select.invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .1);
}
select:disabled,
input:disabled {
  background: #e5eaf1;
  color: #94a3b8;
  cursor: not-allowed;
}
.disabled-field {
  background: #e5eaf1 !important;
  color: #94a3b8 !important;
  cursor: not-allowed;
}
.radio-row { margin: -6px 0 0; display: flex; justify-content: flex-end; align-items: center; gap: 22px; min-height: 22px; }
.radio-row label { margin: 0; display: flex; align-items: center; gap: 6px; color: #111827; font-weight: 650; }
.wide-check, .free-box { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 500; }
.radio-row input, .wide-check input, .free-box input, .check input, .field-check input, .service input[type="checkbox"] { width: 16px; min-height: 16px; accent-color: var(--blue); }
.tabs {
  margin: 12px 0 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 2px;
  border: 1px solid #cfd9e7;
  border-radius: 9px;
  background: #e8eef6;
}
.tabs button {
  border: 0;
  border-radius: 6px;
  min-height: 24px;
  padding: 0 6px;
  color: #334155;
  background: transparent;
  box-shadow: none;
}
.tabs .sibling-tab { color: #1d5fd1; }
.tabs .selected {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15,23,42,.12);
}
.notice { margin-top: 15px; padding: 11px; border-radius: 8px; background: #eef2f7; display: grid; gap: 6px; }
.notice span { color: var(--muted); }
.free-box { justify-content: flex-start; min-height: 30px; padding: 5px 8px; border: 1px solid #e0e6ef; border-radius: 8px; background: #fff; }
.free-box span { color: var(--muted); font-size: 11px; }
.free-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; max-width: 300px; }
.official-info {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(160px, 1.2fr);
  gap: 6px;
  margin-top: 6px;
  padding: 6px;
  border: 1px dashed #c9d7e8;
  border-radius: 8px;
  background: #f6f9fd;
}
.official-info label { margin-top: 0; }
.official-info input { min-height: 30px; appearance: textfield; }
.official-info input::-webkit-outer-spin-button,
.official-info input::-webkit-inner-spin-button { margin: 0; appearance: none; }
#examScholarshipRate { max-width: 48px; }
.finance-note { min-height: 64px; }
.free-box.disabled-fee {
  background: #eef2f7;
  color: #94a3b8;
}
.free-box.disabled-fee span { color: #94a3b8; }
.money-wrap.disabled-fee input,
.fee-row.disabled-fee select {
  background: #eef2f7;
  color: #94a3b8;
}
.money-wrap.disabled-fee b { color: #94a3b8; }
hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.payment-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.plan { min-width: 68px; }
.payment-plan { display: grid; gap: 8px; }
.payment-setup-panel {
  grid-column: 1 / -1;
  height: auto;
}
.payment-setup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
  margin-top: 10px;
}
.payment-setup-panel .payment-plan,
.payment-setup-panel .bond-row {
  min-height: 0;
}
.payment-setup-panel .payment-plan {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
}
.payment-setup-panel .payment-row {
  display: contents;
}
.payment-extra { grid-template-columns: 1fr .75fr 1fr; }
.payment-extra.installment-only { grid-template-columns: 1fr 1fr; }
.bond-row {
  display: grid;
  grid-template-columns: minmax(150px, .9fr) minmax(250px, 1.5fr) minmax(150px, .9fr);
  gap: 8px;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.bond-row label:first-child,
.bond-row label:nth-child(2),
.bond-row label:nth-child(3) { grid-column: auto; max-width: none; }
.bond-row .disabled-block { opacity: .55; pointer-events: none; }
.bond-row.delivered {
  background: #eefbf3;
  padding: 7px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  box-shadow: inset 3px 0 0 #22c55e;
}
.bond-row.delivered input,
.bond-row.delivered select {
  border-color: #9adeb0;
  background: #f7fff9;
}
.payment-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.payment-summary span {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border: 1px solid #d7e2f0;
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
}
.payment-summary strong { color: #111827; font-weight: 700; }
.disabled-block { opacity: .55; pointer-events: none; }
.is-hidden { display: none !important; }
.service { display: grid; grid-template-columns: 1fr 78px; gap: 8px; align-items: center; padding: 9px 8px; border: 1px solid #e0e6ef; border-radius: 8px; margin-top: 7px; background: #fff; }
.service label { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; }
.finance-block { margin-top: 10px; }
.fee-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  margin-bottom: 8px;
  border: 1px solid #cfd9e7;
  border-radius: 10px;
  background: #e8eef6;
}
.fee-mode label {
  margin: 0;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 7px;
  color: #334155;
  font-weight: 650;
  cursor: pointer;
}
.fee-mode-radio { display: none; }
#feeModeItemized:checked ~ .fee-mode label[for="feeModeItemized"],
#feeModePackage:checked ~ .fee-mode label[for="feeModePackage"] {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15,23,42,.12);
}
.fee-list { display: grid; gap: 7px; }
.package-fee { display: grid; gap: 8px; }
#feeModePackage:checked ~ #itemizedFeeBlock { display: none !important; }
#feeModePackage:checked ~ #packageFeeBlock { display: grid !important; }
#feeModeItemized:checked ~ #packageFeeBlock { display: none !important; }
.fee-row {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) 96px 100px;
  align-items: center;
  gap: 7px;
  margin-top: 0;
}
.fee-row.fee-row-wide-select {
  grid-template-columns: minmax(92px, .8fr) minmax(170px, 1.4fr) 100px;
}
.package-total-row { grid-template-columns: minmax(112px, 1fr) 0 minmax(150px, 190px); }
.included-grid {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(96px, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px dashed #c9d7e8;
  border-radius: 8px;
  background: #f6f9fd;
}
.included-grid label {
  margin: 0;
  min-height: 26px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #334155;
  font-weight: 600;
}
.included-grid input { width: 15px; min-height: 15px; accent-color: var(--blue); }
.included-grid input:focus,
.included-grid input:focus-visible {
  outline: none;
  box-shadow: none;
}
.included-select {
  min-height: 28px;
  padding-inline: 8px 22px;
}
.included-select:disabled {
  background: #eef2f7;
  color: #94a3b8;
  cursor: not-allowed;
}
.fee-name { font-weight: 650; }
.fee-list input,
.fee-list select,
.package-fee input { min-height: 31px; }
.fee-row > select { padding-inline: 8px 22px; }
.fee-row-vat {
  grid-template-columns: minmax(92px, .8fr) auto 100px;
}
.vat-rate-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
}
.fee-row-vat .vat-rate-select {
  flex: 0 0 auto;
  width: 72px;
  max-width: 72px;
  min-height: 31px;
  padding-inline: 8px 22px;
  font-size: 12px;
  font-weight: 600;
}
.vat-effective-label {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.fee-row-vat .money-wrap {
  width: 100%;
  min-width: 0;
}
.fee-row-vat .money-wrap input.fee-input {
  width: 100%;
  min-height: 31px;
  box-sizing: border-box;
}
.fee-row-vat.disabled-fee .vat-rate-select,
.fee-row-vat.disabled-fee .money-wrap input {
  opacity: 0.55;
  pointer-events: none;
}
.money-wrap { position: relative; display: block; }
.money-wrap input { padding-right: 26px; appearance: textfield; }
.money-wrap input::-webkit-outer-spin-button,
.money-wrap input::-webkit-inner-spin-button { margin: 0; appearance: none; }
.money-wrap b {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 12px;
}
.fee-check .fee-name { display: flex; align-items: center; gap: 7px; }
.fee-check .fee-name input[type="checkbox"] { width: 16px; min-height: 16px; accent-color: var(--blue); }
.fee-check small { color: var(--muted); font-weight: 700; }
.money-display {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--field-border);
  border-radius: 7px;
  background: #fff;
}
.money-display strong {
  color: #111827;
  font-size: 12px;
  font-weight: 400;
}
.money-display b { color: #64748b; font-size: 12px; }
.money-display.disabled { background: #eef2f7; color: #94a3b8; }
.money-display.disabled strong,
.money-display.disabled b { color: #94a3b8; }
.total-box { margin-top: 15px; padding: 11px; display: grid; gap: 10px; border: 1px solid #b9d4ff; border-radius: 9px; background: #f0f6ff; }
.total-box span { display: flex; justify-content: space-between; color: var(--muted); }
.total-box strong { color: var(--blue); font-size: 15px; }
.total-box span:last-child {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid #c9dcff;
  color: #111827;
  font-weight: 700;
}
.total-box span:last-child strong { color: #111827; font-size: 19px; font-weight: 800; }
.payment-schedule-panel {
  grid-column: 1 / -1;
  min-height: 0;
}
.student-list-view {
  margin-top: 16px;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.list-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.list-top h2 { margin: 0; font-size: 22px; }
.list-top span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.list-actions { display: flex; gap: 8px; }
.student-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.stat-card {
  min-height: 112px;
  padding: 16px;
  display: grid;
  align-content: space-between;
  border: 1px solid #d9e0ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--blue);
  background: #eaf2ff;
  font-weight: 800;
}
.stat-card small { color: var(--muted); font-size: 12px; }
.stat-card strong { font-size: 25px; line-height: 1; }
.stat-card.total {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}
.stat-card.total .stat-icon { color: #fff; background: rgba(255,255,255,.16); }
.stat-card.total small,
.stat-card.total em { color: rgba(255,255,255,.78); font-style: normal; font-size: 11px; }
.list-filters {
  gap: 8px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #cfd9e8;
  border-radius: 12px;
  background: #f3f7fc;
  box-shadow: var(--shadow);
}
.list-filters label { margin-top: 0; }
#studentListView .student-stats {
  display: block;
  margin-top: 4px;
}
#studentListView .student-stats-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  background: linear-gradient(180deg, #fafcfe 0%, #ffffff 55%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow-x: auto;
  scrollbar-width: thin;
}
#studentListView .student-stat-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
}
#studentListView .student-stat-card--total {
  flex: 0 0 176px;
  min-width: 176px;
  flex-shrink: 0;
  margin-right: 6px;
  align-items: center;
  border-color: rgba(47, 125, 246, 0.28);
  background: linear-gradient(155deg, #eff6ff 0%, #ffffff 72%);
}
#studentListView .student-stat-card__body--total {
  display: grid;
  gap: 2px;
  align-content: center;
  width: 100%;
  min-width: 0;
}
#studentListView .student-stat-card--total .student-stat-card__title--total {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #475569;
  white-space: nowrap;
  overflow: visible;
  text-overflow: unset;
  min-width: auto;
  flex: none;
}
#studentListView .student-stat-card--total .student-stat-card__total {
  font-size: 24px;
  line-height: 1.05;
}
#studentListView .student-stat-card--total .student-stat-card__gender {
  font-size: 9px;
  line-height: 1.25;
  white-space: nowrap;
}
#studentListView .student-stat-card__scope {
  font-size: 8px;
  font-weight: 650;
  color: #94a3b8;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#studentListView .student-stat-card--passive {
  border-color: rgba(244, 63, 94, 0.22);
  background: linear-gradient(155deg, #fff1f2 0%, #ffffff 72%);
}
#studentListView .student-stat-card--passive .student-stat-card__icon {
  color: #be123c;
  background: linear-gradient(145deg, #ffe4e6, #fecdd3);
}
#studentListView .student-stats-empty {
  margin: 0;
  padding: 8px 12px;
  font-size: 11px;
  color: #94a3b8;
  flex: 1 1 auto;
  align-self: center;
}
#studentListView .student-stat-card--inst {
  flex: 0 0 286px;
  min-width: 286px;
  max-width: 286px;
}
#studentListView .student-stat-card--inst .student-stat-card__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
#studentListView .student-stat-card--inst .student-stat-card__icon .overview-card-svg {
  width: 15px;
  height: 15px;
}
#studentListView .student-stat-card__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #475569;
  background: linear-gradient(145deg, #f1f5f9, #e8eef5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
#studentListView .student-stat-card__icon .overview-card-svg {
  width: 17px;
  height: 17px;
}
#studentListView .student-stat-card--total .student-stat-card__icon {
  color: var(--blue);
  background: linear-gradient(145deg, #dbeafe, #bfdbfe);
}
#studentListView .student-stat-card--inst-0 .student-stat-card__icon {
  color: #047857;
  background: linear-gradient(145deg, #d1fae5, #a7f3d0);
}
#studentListView .student-stat-card--inst-1 .student-stat-card__icon {
  color: #6d28d9;
  background: linear-gradient(145deg, #ede9fe, #ddd6fe);
}
#studentListView .student-stat-card--inst-2 .student-stat-card__icon {
  color: #c2410c;
  background: linear-gradient(145deg, #ffedd5, #fed7aa);
}
#studentListView .student-stat-card--inst-3 .student-stat-card__icon {
  color: #0369a1;
  background: linear-gradient(145deg, #e0f2fe, #bae6fd);
}
#studentListView .student-stat-card__body {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}
#studentListView .student-stat-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
#studentListView .student-stat-card__title {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
#studentListView .student-stat-card--inst .student-stat-card__title {
  text-transform: none;
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}
#studentListView .student-stat-card--inst .student-stat-card__total {
  font-size: 18px;
}
#studentListView .student-stat-card--inst .student-stat-card__gender {
  font-size: 9px;
}
#studentListView .student-stat-card__total {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  line-height: 1;
  flex-shrink: 0;
}
#studentListView .student-stat-card__gender {
  font-size: 10px;
  font-weight: 650;
  color: #64748b;
  white-space: nowrap;
}
#studentListView .student-stat-level-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  margin-top: 1px;
}
#studentListView .student-stat-level {
  display: grid;
  gap: 0;
  align-content: center;
  justify-items: center;
  min-height: 36px;
  padding: 2px 1px;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  min-width: 0;
  box-sizing: border-box;
}
#studentListView .student-stat-level--empty {
  opacity: 0.42;
  border-style: dashed;
  background: #fafbfc;
}
#studentListView .student-stat-level--filled {
  border-color: #cbd5e1;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}
#studentListView .student-stat-level__name {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #64748b;
  line-height: 1.1;
  text-align: center;
}
#studentListView .student-stat-level__count {
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  line-height: 1.1;
}
#studentListView .student-stat-level--empty .student-stat-level__count {
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
}
#studentListView .student-stat-level__ge {
  font-size: 6.5px;
  font-weight: 650;
  color: #94a3b8;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
/* Öğrenci listesi filtreleri: geniş ekranda sıkı sıra, daralınca satır kırılımı (16 kolonlu grid yerine) */
.student-list-filters-wrap {
  container-type: inline-size;
  container-name: studentfilters;
  min-width: 0;
}
.contract-archive-result-meta {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}
.list-filters.contract-archive-filters {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.contract-archive-filters-row {
  display: grid;
  gap: 10px 12px;
  align-items: end;
  min-width: 0;
}
.contract-archive-filters-row--primary {
  grid-template-columns: minmax(0, 2.1fr) repeat(4, minmax(0, 1fr));
}
.contract-archive-filters-row--secondary {
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) auto;
}
.contract-archive-filters label {
  margin-top: 0;
  min-width: 0;
  max-width: none;
}
.contract-archive-filters .filter-search,
.contract-archive-filters .filter-sort {
  flex: unset;
  max-width: none;
}
.contract-archive-date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  align-items: end;
  min-width: 0;
}
.contract-archive-date-row label {
  min-width: 0;
}
.contract-archive-filters .filter-buttons {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-bottom: 1px;
}
.contract-archive-filters .filter-buttons .btn-filter-clear {
  white-space: nowrap;
}
@container studentfilters (max-width: 980px) {
  .contract-archive-filters-row--primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contract-archive-filters-row--primary .filter-search {
    grid-column: 1 / -1;
  }
  .contract-archive-filters-row--secondary {
    grid-template-columns: 1fr auto;
  }
  .contract-archive-date-row {
    grid-column: 1 / -1;
  }
}
@container studentfilters (max-width: 560px) {
  .contract-archive-filters-row--primary,
  .contract-archive-filters-row--secondary,
  .contract-archive-date-row {
    grid-template-columns: 1fr;
  }
  .contract-archive-filters-row--primary .filter-search {
    grid-column: auto;
  }
  .contract-archive-filters .filter-buttons {
    justify-content: stretch;
  }
  .contract-archive-filters .filter-buttons .btn-filter-clear {
    width: 100%;
  }
}
.student-list-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  margin-top: 8px;
}
.student-list-filters .filter-search {
  flex: 1 1 280px;
  min-width: min(100%, 200px);
}
.student-list-filters .filter-sort {
  flex: 0 1 240px;
  min-width: min(100%, 180px);
  max-width: 280px;
}
.student-list-filters > label:not(.filter-search):not(.filter-sort) {
  flex: 1 1 140px;
  min-width: 0;
  max-width: 220px;
}
.student-list-filters label:has(#studentFilterInstitution),
.student-list-filters label:has(#studentFilterClass) {
  flex: 1 1 160px;
  max-width: 240px;
}
.student-list-filters label:has(#studentFilterDateFrom),
.student-list-filters label:has(#studentFilterDateTo) {
  flex: 1 1 152px;
  min-width: 132px;
  max-width: 200px;
}
.student-list-filters label:has(#studentFilterStatus) {
  flex: 1 1 128px;
  max-width: 180px;
}
.student-list-filters label:has(#studentRowsPerPage),
.student-list-filters label:has(#studentFilterGender),
.student-list-filters label:has(#studentFilterFee),
.student-list-filters label:has(#studentFilterCapacity) {
  flex: 0 1 104px;
  min-width: 88px;
  max-width: 120px;
}
.student-list-filters label select,
.student-list-filters label input {
  width: 100%;
  min-width: 0;
  font-size: 11px;
}
.student-list-filters .filter-buttons {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.student-list-filters .filter-buttons .btn-filter-clear {
  width: auto;
  white-space: nowrap;
}
@container studentfilters (max-width: 520px) {
  .student-list-filters .filter-search {
    flex-basis: 100%;
    min-width: 0;
    max-width: none;
  }
  .student-list-filters .filter-sort {
    flex: 1 1 100%;
    min-width: 0;
    max-width: none;
  }
  .student-list-filters > label:not(.filter-search):not(.filter-sort) {
    max-width: none;
  }
  .student-list-filters label:has(#studentFilterInstitution),
  .student-list-filters label:has(#studentFilterClass) {
    max-width: none;
  }
}
.view-toggle {
  display: flex;
  gap: 4px;
  align-self: end;
  padding-left: 10px;
  border-left: 1px solid #d4dce8;
}
.view-toggle button {
  min-height: 33px;
  min-width: 34px;
  padding: 0;
}
.view-toggle .selected { color: var(--blue); background: #eff6ff; }
.student-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-top: 1px solid #e3e9f2;
  color: #64748b;
  font-size: 11px;
}
.student-pagination > div {
  display: flex;
  align-items: center;
  gap: 4px;
}
.student-pagination button {
  min-width: 28px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  color: #0f172a;
  background: #fff;
  border-color: #d7e0ec;
  font-size: 11px;
  font-weight: 700;
}
.student-pagination button.selected {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}
.student-pagination button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.pagination-gap {
  padding: 0 4px;
}
#studentListView .student-table-wrap {
  margin-top: 8px;
  border: 1px solid #d9e0ea;
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: visible;
  background: var(--panel);
  box-shadow: var(--shadow);
}
#studentListView .student-table tbody tr {
  position: relative;
}
#studentListView .student-table [data-student-table-column="actions"] {
  overflow: visible;
}
#studentListView .student-table tbody tr.student-row-passive {
  background: #fff1f2;
}
#studentListView .student-table tbody tr.student-row-passive:hover {
  background: #ffe4e6;
}
.student-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  table-layout: auto;
}
.student-table th,
.student-table td {
  padding: 5px 7px;
  border-bottom: 1px solid #e3e9f2;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.student-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #64748b;
  background: #f8fafc;
  font-weight: 800;
  font-size: 10px;
}
.student-table tbody tr:hover { background: #f5f9ff; }
.student-table tbody tr {
  height: 30px;
}
.student-table [data-student-table-column="institution"] { min-width: 92px; }
.student-table [data-student-table-column="className"] { min-width: 58px; }
.student-table [data-student-table-column="name"] { min-width: 150px; }
.student-table [data-student-table-column="phone"],
.student-table [data-student-table-column="motherPhone"],
.student-table [data-student-table-column="fatherPhone"],
.student-table [data-student-table-column="guardianPhone"] { min-width: 86px; }
.student-table [data-student-table-column="guardian"],
.student-table [data-student-table-column="mother"],
.student-table [data-student-table-column="father"] { min-width: 122px; }
.student-table [data-student-table-column="guardianRelation"] { min-width: 60px; }
.student-table [data-student-table-column="address"] {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.student-table [data-student-table-column="row"],
.student-table [data-student-table-column="id"],
.student-table [data-student-table-column="no"] {
  width: 42px;
}
.student-table [data-student-table-column="actions"] {
  width: auto;
  min-width: 152px;
}
#studentListView .student-table [data-student-table-column="actions"] .row-actions {
  flex-wrap: nowrap;
}
.column-menu-head,
.column-menu-cell {
  width: 32px;
  min-width: 32px;
  text-align: center;
}
.column-menu {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}
.columns-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: var(--btn-radius-sm);
  color: #475569;
  background: #fff;
  border: 1px solid #d7e0ec;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .06);
  font-size: 13px;
  font-weight: 700;
}
.columns-button:hover:not(:disabled) {
  color: var(--blue);
  border-color: #9fc3ff;
  background: #eff6ff;
}
.columns-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  display: grid;
  min-width: 158px;
  max-height: 470px;
  overflow-y: auto;
  padding: 8px 7px;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
  gap: 2px;
}
.columns-menu label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  padding: 0 5px;
  border-radius: 6px;
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
}
.columns-menu label:hover {
  background: #f3f7fc;
}
.columns-menu input[type="checkbox"] {
  width: 12px;
  height: 12px;
  min-height: 12px;
  margin: 0;
  accent-color: var(--blue);
}
.is-hidden-column {
  display: none;
}
.student-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.student-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: #eaf2ff;
  font-weight: 800;
}
.student-cell span:last-child {
  display: grid;
  gap: 2px;
}
.student-table small { color: var(--muted); font-size: 11px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
}
.status-pill.active { color: #047857; background: #dff7ea; }
.status-pill.passive { color: #9f1239; background: #ffe4e6; }
.fee-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  font-weight: 700;
}
.fee-pill.paid { color: #166534; background: #dcfce7; }
.fee-pill.free { color: #b45309; background: #fef3c7; }
.row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: nowrap;
}

.user-admin-lock-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 600;
  cursor: help;
}

.row-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid transparent;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.row-actions button svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
.row-actions button:hover {
  filter: brightness(0.97);
}
.row-actions [data-view-student],
.row-actions [data-personnel-view],
.row-actions [data-contract-view],
.row-actions [data-personnel-absence-view],
.row-actions [data-pre-reg-card] {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}
.row-actions [data-edit-student],
.row-actions [data-edit-class],
.row-actions [data-edit-user],
.row-actions [data-edit-ledger],
.row-actions [data-personnel-edit],
.row-actions [data-personnel-absence-edit],
.row-actions [data-cal-edit],
.row-actions [data-lesson-edit],
.row-actions [data-pre-reg-edit],
.row-actions [data-pre-reg-iv-edit],
.row-actions [data-contract-edit],
.row-actions [data-edit-payment-method],
.row-actions [data-canteen-edit] {
  background: #fffbeb;
  border-color: #fde68a;
  color: #d97706;
}
.row-actions [data-delete-student],
.row-actions [data-delete-class],
.row-actions [data-delete-level],
.row-actions [data-delete-institution],
.row-actions [data-delete-role],
.row-actions [data-delete-user],
.row-actions [data-delete-ledger],
.row-actions [data-personnel-delete],
.row-actions [data-personnel-absence-delete],
.row-actions [data-cal-delete],
.row-actions [data-lesson-delete],
.row-actions [data-pre-reg-delete],
.row-actions [data-pre-reg-iv-delete],
.row-actions [data-contract-delete],
.row-actions [data-delete-payment-method],
.row-actions [data-canteen-delete] {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}
.row-actions [data-move-payment-method-up],
.row-actions [data-move-payment-method-down] {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.student-row-context-menu {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}
.row-actions .student-row-context-menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid #d7e0ec;
  border-radius: 6px;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  list-style: none;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.row-actions .student-row-context-menu > summary span {
  display: block;
  transform: translateY(-1px);
}
.student-row-context-menu > summary::-webkit-details-marker {
  display: none;
}
.row-actions .student-row-context-menu[open] > summary,
.row-actions .student-row-context-menu > summary:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #eff6ff;
}
.student-row-context-menu__panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 200px;
  max-height: min(70vh, 420px);
  overflow: auto;
  padding: 6px;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
  gap: 2px;
}
.student-row-context-menu__panel.crm-overlay-floating,
.crm-overlay-floating {
  position: fixed;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 500;
  overflow-y: auto;
}
.student-row-context-menu__heading {
  margin: 6px 8px 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.student-row-context-menu__heading:first-child {
  margin-top: 2px;
}
.student-row-context-menu__panel button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0f172a;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.student-row-context-menu__panel button:hover:not(:disabled) {
  color: var(--blue);
  background: #eff6ff;
}
.student-row-context-menu__panel button.nav-link-disabled {
  opacity: .45;
  cursor: not-allowed;
}

.row-actions [data-collect-student] {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}
.row-actions [data-pre-reg-add],
.row-actions [data-contract-enroll-student] {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}
.contract-archive-status--draft {
  color: #2563eb;
  font-weight: 700;
}
.contract-archive-status--saved {
  color: #059669;
  font-weight: 700;
}
.institutions-view {
  margin-top: 16px;
  height: auto;
}
.institutions-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}
.institutions-split-panel {
  min-width: 0;
}
.institutions-add-grid {
  display: grid;
  gap: 10px;
  max-width: 440px;
}
.institutions-add-grid label {
  margin-top: 0;
}
.institutions-table-wrap {
  border: 1px solid #d9e0ea;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
#institutionsView .student-table tbody tr[data-institution-id] {
  cursor: pointer;
}
#institutionsView .student-table tbody tr[data-institution-id]:hover {
  background: #f8fafc;
}
#institutionsView .student-table tbody tr.institutions-row-selected {
  background: #eff6ff;
}
#institutionsView .student-table tbody tr.institutions-row-selected:hover {
  background: #e8f2fe;
}
#institutionsView .student-table th:last-child,
#institutionsView .student-table td:last-child {
  width: 76px;
  text-align: center;
}
@media (max-width: 900px) {
  .institutions-split {
    grid-template-columns: 1fr;
  }
}
.classes-view {
  margin-top: 16px;
  height: auto;
}
.class-overview {
  margin-bottom: 12px;
}
.class-overview-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #e5eaf2;
  background: linear-gradient(180deg, #fafcfe 0%, #ffffff 48%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 0;
}
.class-overview-intro {
  flex: 0 0 auto;
  padding: 0 10px 0 2px;
  margin-right: 2px;
  border-right: 1px solid #e8eef5;
}
.class-overview-heading {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  white-space: nowrap;
}
.class-overview-lead {
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
}
.class-overview-kpis {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  flex: 0 0 auto;
}
.class-overview-inst-divider {
  flex: 0 0 1px;
  align-self: stretch;
  min-height: 40px;
  margin: 2px 0;
  background: linear-gradient(180deg, transparent 0%, #dce4ee 16%, #dce4ee 84%, transparent 100%);
}
.class-overview-inst-scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 72px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0;
  scrollbar-width: thin;
}
.overview-card {
  box-sizing: border-box;
}
.overview-card--kpi {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  min-height: 0;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: linear-gradient(155deg, #ffffff 0%, #f8fafc 85%);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  flex: 0 1 auto;
  min-width: 132px;
  max-width: 200px;
}
.overview-card--inst {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  min-height: 0;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: linear-gradient(165deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.overview-inst-name {
  font-size: 11px;
  font-weight: 650;
  color: #334155;
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overview-inst-num {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
.overview-card-icon-wrap {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0;
  color: #475569;
  background: linear-gradient(145deg, #f1f5f9, #e8eef5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.overview-card-icon-wrap--xs {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}
.overview-card-svg {
  width: 17px;
  height: 17px;
}
.overview-card-icon-wrap--xs .overview-card-svg {
  width: 13px;
  height: 13px;
}
.overview-card-main {
  display: grid;
  gap: 2px;
  min-width: 0;
  align-content: center;
}
.overview-card-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.15;
}
.overview-card-value {
  margin: 0;
  font-size: 17px;
  font-weight: 820;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
.overview-card-meta {
  font-size: 9.5px;
  line-height: 1.25;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.total-summary .overview-card-icon-wrap {
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
  color: #1d4ed8;
}
.total-summary.overview-card--kpi {
  border-color: rgba(96, 165, 250, 0.38);
  background: linear-gradient(155deg, #ffffff 0%, #f0f7ff 55%, #e8f2fe 100%);
}
.active-summary .overview-card-icon-wrap {
  background: linear-gradient(145deg, #bbf7d0, #ecfdf5);
  color: #047857;
}
.active-summary.overview-card--kpi {
  border-color: rgba(52, 211, 153, 0.42);
  background: linear-gradient(155deg, #ffffff 0%, #f6fdf9 55%, #ecfdf5 100%);
}
.passive-summary .overview-card-icon-wrap {
  background: linear-gradient(145deg, #fecaca, #fff1f2);
  color: #b91c1c;
}
.passive-summary.overview-card--kpi {
  border-color: rgba(248, 113, 113, 0.38);
  background: linear-gradient(155deg, #ffffff 0%, #fff8f8 55%, #fef2f2 100%);
}
.overview-card.institution-summary.school-summary .overview-card-icon-wrap {
  background: linear-gradient(145deg, #fef3c7, #fffbeb);
  color: #b45309;
}
.overview-card.institution-summary.school-summary {
  border-color: rgba(217, 165, 20, 0.35);
}
.overview-card.institution-summary.course-summary .overview-card-icon-wrap {
  background: linear-gradient(145deg, #e9d5ff, #faf5ff);
  color: #7e22ce;
}
.overview-card.institution-summary.course-summary {
  border-color: rgba(185, 148, 244, 0.38);
}
.class-form {
  display: grid;
  grid-template-columns: 1.1fr .9fr .8fr 1fr .8fr .7fr .9fr auto;
  gap: 8px;
  margin-top: 14px;
  align-items: end;
}
.class-form label { margin-top: 0; }
.class-form .wide-check { min-height: 33px; margin-top: 0; }
.lesson-grade-box {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcff;
  padding: 10px 12px;
}
.lesson-grade-box__title {
  display: block;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 8px;
  color: #1f2937;
}
.lesson-grade-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(92px, 1fr));
  gap: 6px 8px;
}
.lesson-grade-grid .check {
  margin-top: 0;
  font-size: 12px;
  font-weight: 600;
}
.lesson-grade-hours-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.lesson-grade-hours-grid label {
  margin-top: 0;
}
.lesson-inst-plan {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  margin-top: 8px;
}
.lesson-inst-plan:first-child {
  margin-top: 0;
}
.lesson-inst-plan__title {
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 8px;
}
/* Sınıf filtreleri: geniş alanda tek satır; içerik alanı daralınca (tam ekran değilken) otomatik 2 satır — container query */
.class-list-filters-wrap {
  container-type: inline-size;
  container-name: classfilters;
  min-width: 0;
}
.list-filters.class-list-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 8px 10px;
  margin-top: 4px;
  padding: 12px 14px;
  overflow: visible;
  min-width: 0;
}
.list-filters.class-list-filters .filter-search {
  flex: 1.35 1 120px;
  min-width: 0;
}
.list-filters.class-list-filters .class-filter-compact {
  flex: 1 1 92px;
  min-width: 0;
  max-width: 200px;
}
.list-filters.class-list-filters .class-filter-narrow {
  flex: 0 1 86px;
  min-width: 0;
}
.list-filters.class-list-filters .class-filter-rows {
  flex: 0 1 74px;
  min-width: 0;
}
.list-filters.class-list-filters > label:not(.filter-search):not(.class-filter-compact):not(.class-filter-narrow):not(.class-filter-rows) {
  flex: 1 1 118px;
  min-width: 0;
}
.list-filters.class-list-filters .class-filter-compact,
.list-filters.class-list-filters .class-filter-narrow,
.list-filters.class-list-filters .class-filter-rows,
.list-filters.class-list-filters > label:not(.filter-search):not(.class-filter-compact):not(.class-filter-narrow):not(.class-filter-rows) {
  min-width: 0;
}
.list-filters.class-list-filters .class-filter-compact select {
  width: 100%;
  min-width: 0;
  font-size: 11px;
}
.list-filters.class-list-filters .class-filter-narrow select {
  width: 100%;
  font-size: 11px;
}
.list-filters.class-list-filters .class-filter-rows select {
  width: 100%;
  font-size: 11px;
}
.list-filters.class-list-filters label { margin-top: 0; }
.list-filters.class-list-filters input[type="date"] {
  width: 100%;
  min-width: 0;
  font-size: 11px;
}
.list-filters.class-list-filters .class-filter-clear-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
}
.list-filters.class-list-filters .class-filter-clear-wrap .btn-filter-clear {
  min-height: 33px;
  white-space: nowrap;
}
@container classfilters (max-width: 1020px) {
  .list-filters.class-list-filters {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px 12px;
    align-items: end;
  }
  .list-filters.class-list-filters > * {
    min-width: 0;
  }
  /* Otomatik yerleştirme bazen 11. öğeyi 3. satıra atıyordu; iki satır sabit */
  .list-filters.class-list-filters > :nth-child(1) {
    grid-column: 1 / span 2;
    grid-row: 1;
    flex: unset;
    max-width: none;
  }
  .list-filters.class-list-filters > :nth-child(2) { grid-column: 3; grid-row: 1; flex: unset; max-width: none; }
  .list-filters.class-list-filters > :nth-child(3) { grid-column: 4; grid-row: 1; flex: unset; max-width: none; }
  .list-filters.class-list-filters > :nth-child(4) { grid-column: 5; grid-row: 1; flex: unset; max-width: none; }
  .list-filters.class-list-filters > :nth-child(5) { grid-column: 6; grid-row: 1; flex: unset; max-width: none; }
  .list-filters.class-list-filters > :nth-child(6) { grid-column: 1; grid-row: 2; flex: unset; max-width: none; }
  .list-filters.class-list-filters > :nth-child(7) { grid-column: 2; grid-row: 2; flex: unset; }
  .list-filters.class-list-filters > :nth-child(8) { grid-column: 3; grid-row: 2; flex: unset; }
  .list-filters.class-list-filters > :nth-child(9) { grid-column: 4; grid-row: 2; flex: unset; }
  .list-filters.class-list-filters > :nth-child(10) { grid-column: 5; grid-row: 2; flex: unset; }
  .list-filters.class-list-filters > :nth-child(11) {
    grid-column: 6;
    grid-row: 2;
    justify-self: stretch;
    flex: unset;
  }
  .list-filters.class-list-filters .class-filter-clear-wrap .btn-filter-clear {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    box-sizing: border-box;
  }
}
/* Eski tarayıcılar: container query yoksa yaklaşık olarak dar pencerede aynı iki satır */
@supports not (container-type: inline-size) {
  @media (max-width: 1180px) {
    .list-filters.class-list-filters {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 10px 12px;
      align-items: end;
    }
    .list-filters.class-list-filters > * {
      min-width: 0;
    }
    .list-filters.class-list-filters > :nth-child(1) {
      grid-column: 1 / span 2;
      grid-row: 1;
      flex: unset;
      max-width: none;
    }
    .list-filters.class-list-filters > :nth-child(2) { grid-column: 3; grid-row: 1; flex: unset; max-width: none; }
    .list-filters.class-list-filters > :nth-child(3) { grid-column: 4; grid-row: 1; flex: unset; max-width: none; }
    .list-filters.class-list-filters > :nth-child(4) { grid-column: 5; grid-row: 1; flex: unset; max-width: none; }
    .list-filters.class-list-filters > :nth-child(5) { grid-column: 6; grid-row: 1; flex: unset; max-width: none; }
    .list-filters.class-list-filters > :nth-child(6) { grid-column: 1; grid-row: 2; flex: unset; max-width: none; }
    .list-filters.class-list-filters > :nth-child(7) { grid-column: 2; grid-row: 2; flex: unset; }
    .list-filters.class-list-filters > :nth-child(8) { grid-column: 3; grid-row: 2; flex: unset; }
    .list-filters.class-list-filters > :nth-child(9) { grid-column: 4; grid-row: 2; flex: unset; }
    .list-filters.class-list-filters > :nth-child(10) { grid-column: 5; grid-row: 2; flex: unset; }
    .list-filters.class-list-filters > :nth-child(11) {
      grid-column: 6;
      grid-row: 2;
      justify-self: stretch;
      flex: unset;
    }
    .list-filters.class-list-filters .class-filter-clear-wrap .btn-filter-clear {
      width: 100%;
      min-width: 0;
      white-space: nowrap;
      box-sizing: border-box;
    }
  }
}
#classesView .class-table-wrap {
  border: 1px solid #d9e0ea;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
#classesView .student-table th:last-child,
#classesView .student-table td:last-child {
  width: 88px;
  text-align: center;
}
#classesView .student-table td:last-child .row-actions button {
  min-width: 30px;
  min-height: 30px;
}
#classesView .student-table tbody tr.class-row-passive {
  opacity: 0.72;
}
#classesView .student-table tbody tr.class-row-passive:hover {
  opacity: 0.88;
}
.personnel-multi-wrap {
  display: grid;
  gap: 6px;
}
.personnel-subhead {
  margin-top: 10px;
}
.personnel-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px 10px;
  align-items: start;
  margin-top: 2px;
}
.personnel-form-grid label,
.personnel-form-grid .personnel-multi-wrap {
  margin-top: 0;
}
.personnel-col-1 { grid-column: 1; grid-row: 1; }
.personnel-col-2 { grid-column: 2; grid-row: 1; }
.personnel-col-3 { grid-column: 3; grid-row: 1; }
.personnel-col-4 { grid-column: 4; grid-row: 1; }
.personnel-col-5 { grid-column: 1; grid-row: 2; }
.personnel-col-6 { grid-column: 2; grid-row: 2; }
.personnel-col-7 { grid-column: 3; grid-row: 2; }
.personnel-col-8 { grid-column: 4; grid-row: 2; }
.personnel-col-9 { grid-column: 1; grid-row: 3; }
.personnel-col-10 { grid-column: 2; grid-row: 3; }
.personnel-col-11 { grid-column: 3; grid-row: 3; }
.personnel-col-12 { grid-column: 4; grid-row: 3; }
.personnel-actions {
  justify-content: flex-end;
  margin-top: 8px;
  margin-bottom: 6px;
}
.personnel-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 12px;
  overflow-x: auto;
  min-height: 0;
}
.personnel-filters .filter-search {
  flex: 1 1 160px;
  min-width: 120px;
}
.personnel-filters .personnel-filter-compact {
  flex: 0 1 118px;
  min-width: 96px;
  max-width: 140px;
}
.personnel-filters .personnel-filter-compact select {
  width: 100%;
  min-width: 0;
  font-size: 11px;
}
.personnel-filters .personnel-filter-status-narrow {
  flex: 0 0 92px;
  min-width: 84px;
  max-width: 100px;
}
.personnel-filters .personnel-filter-status-narrow select {
  width: 100%;
  min-width: 0;
  font-size: 11px;
}
.personnel-filters .personnel-filter-sort {
  flex: 0 1 148px;
  min-width: 126px;
}
.personnel-filters .personnel-filter-sort select {
  width: 100%;
  min-width: 0;
  font-size: 11px;
}
.personnel-filters .personnel-filter-rows {
  flex: 0 0 68px;
  min-width: 62px;
}
.personnel-filters .personnel-filter-rows select {
  width: 100%;
  font-size: 11px;
}
.personnel-filters .personnel-filter-clear-wrap {
  flex: 0 0 auto;
}
.personnel-filters .personnel-filter-clear-wrap .btn-filter-clear {
  width: auto;
}
.list-filters.personnel-absence-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  overflow-x: auto;
  min-height: 0;
}
.list-filters.personnel-absence-filters .filter-search {
  flex: 2 1 240px;
  min-width: 160px;
}
.list-filters.personnel-absence-filters label:not(.filter-search) {
  flex: 0 0 auto;
}
.list-filters.personnel-absence-filters .personnel-absence-filter-status {
  flex: 0 0 88px;
  min-width: 76px;
  max-width: 92px;
}
.list-filters.personnel-absence-filters .personnel-absence-filter-status select {
  width: 100%;
  min-width: 0;
  padding-left: 6px;
  padding-right: 6px;
  font-size: 11px;
}
.list-filters.personnel-absence-filters .filter-sort.personnel-absence-sort-field {
  flex: 0 1 108px;
  min-width: 96px;
}
.list-filters.personnel-absence-filters .filter-sort.personnel-absence-sort-dir {
  flex: 0 1 88px;
  min-width: 78px;
}
.list-filters.personnel-absence-filters .filter-sort.personnel-absence-sort-dir select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.list-filters.personnel-absence-filters .filter-buttons {
  flex: 0 0 auto;
}
.list-filters.personnel-absence-filters input[type="date"] {
  font-size: 11px;
}
.list-filters.personnel-absence-filters .btn-filter-clear {
  width: auto;
}
#personnelAbsenceView .student-table-wrap {
  border: 1px solid #d9e0ea;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
#personnelAbsenceView .student-table th:last-child,
#personnelAbsenceView .student-table td:last-child {
  width: 148px;
  text-align: center;
}
.personnel-absence-report-range {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 16px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed #c5d4e8;
  background: #f8fafc;
}
.personnel-absence-report-range .personnel-absence-report-days {
  display: grid;
  gap: 4px;
  min-width: 120px;
}
.personnel-absence-report-range .personnel-absence-report-days input {
  min-height: 34px;
  max-width: 96px;
}
.personnel-absence-report-range .personnel-absence-report-hint {
  flex: 1 1 220px;
  margin: 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.45;
}
.personnel-absence-report-hint strong {
  font-weight: 700;
  color: #5b21b6;
}
.personnel-absence-calendar-section {
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid #d7e0ec;
  border-radius: 12px;
  background: #fafbfc;
}
.absence-cal-scroll {
  overflow-x: auto;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.absence-cal-table {
  border-collapse: collapse;
  font-size: 8px;
  table-layout: fixed;
  width: 100%;
  max-width: 100%;
}
.absence-cal-col-month {
  width: 9%;
}
.absence-cal-col-day {
  width: 2.935%;
}
.absence-cal-table .absence-cal-corner {
  width: 9%;
  min-width: 0;
  overflow: hidden;
}
.absence-cal-dayhead {
  min-width: 0;
  padding: 3px 0;
  font-weight: 750;
  text-align: center;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e8eef5;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.absence-cal-month {
  padding: 3px 4px 3px 4px;
  text-align: left;
  font-weight: 750;
  white-space: nowrap;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e8eef5;
  font-size: 9px;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
}
.absence-cal-cell {
  height: 20px;
  padding: 0;
  text-align: center;
  vertical-align: middle;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
  cursor: default;
  line-height: 1.05;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.absence-cal-cell[data-absence-cal-date] {
  cursor: pointer;
}
.absence-cal-cell-selected {
  outline: 2px solid var(--blue);
  outline-offset: -1px;
  z-index: 1;
}
.absence-cal-invalid {
  background: #f8fafc;
  color: transparent;
}
.absence-cal-has {
  font-weight: 750;
}
.absence-cal-gec { background: #fef3c7; color: #92400e; }
.absence-cal-izinli { background: #dbeafe; color: #1e40af; }
.absence-cal-raporlu { background: #ede9fe; color: #5b21b6; }
.absence-cal-yok { background: #fee2e2; color: #991b1b; }
.absence-cal-oo { background: #ffedd5; color: #9a3412; }
.absence-cal-os { background: #fce7f3; color: #9f1239; }
.absence-cal-diger { background: #e2e8f0; color: #334155; }
.absence-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  font-size: 10px;
  color: #64748b;
}
.absence-cal-legend li {
  display: flex;
  align-items: center;
  gap: 5px;
}
.absence-cal-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, .08);
}
.personnel-absence-cal-detail {
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed #bfd0e5;
  background: #fff;
  font-size: 12px;
  color: #0f172a;
}
.personnel-absence-cal-detail-placeholder {
  color: #94a3b8;
  font-size: 11px;
}
.personnel-absence-cal-detail-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 6px;
}
.personnel-absence-cal-detail-head strong {
  font-size: 13px;
}
.absence-cal-detail-status {
  font-size: 11px;
  font-weight: 750;
  padding: 2px 8px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1e40af;
}
.personnel-absence-cal-detail-note {
  line-height: 1.45;
  word-break: break-word;
}
.personnel-absence-cal-detail-empty {
  color: #64748b;
  font-size: 11px;
}
.personnel-absence-card-below-cal .personnel-absence-card-person {
  grid-column: 1 / -1;
}
#personnelView .filters {
  margin-top: 4px;
}
#personnelView .personnel-table-wrap {
  border: 1px solid #d9e0ea;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
#personnelView .student-table {
  font-size: 11px;
  table-layout: fixed;
}
#personnelView .student-table th,
#personnelView .student-table td {
  padding: 4px 6px;
  line-height: 1.2;
}
#personnelView .student-table tbody tr {
  height: 24px;
}
#personnelView .student-table tbody tr.personnel-row-passive {
  background: #fff1f2;
}
#personnelView .student-table tbody tr.personnel-row-passive:hover {
  background: #ffe4e6;
}
#personnelView .student-table th:nth-child(1),
#personnelView .student-table td:nth-child(1) { width: 3%; }
#personnelView .student-table th:nth-child(2),
#personnelView .student-table td:nth-child(2) { width: 16%; }
#personnelView .student-table th:nth-child(3),
#personnelView .student-table td:nth-child(3) { width: 11%; }
#personnelView .student-table th:nth-child(4),
#personnelView .student-table td:nth-child(4) { width: 14%; }
#personnelView .student-table th:nth-child(5),
#personnelView .student-table td:nth-child(5) { width: 10%; }
#personnelView .student-table th:nth-child(6),
#personnelView .student-table td:nth-child(6) { width: 8%; }
#personnelView .student-table th:nth-child(7),
#personnelView .student-table td:nth-child(7) { width: 8%; }
#personnelView .student-table th:nth-child(8),
#personnelView .student-table td:nth-child(8),
#personnelView .student-table th:nth-child(9),
#personnelView .student-table td:nth-child(9) { width: 8%; }
#personnelView .student-table th:nth-child(10),
#personnelView .student-table td:nth-child(10) { width: 6%; }
#personnelView .student-table th:nth-child(11),
#personnelView .student-table td:nth-child(11) { width: 8%; }
#personnelView .student-table td:nth-child(11) .row-actions {
  gap: 3px;
}
#personnelView .student-table td:nth-child(11) .row-actions button {
  min-width: 22px;
  min-height: 22px;
  border-radius: 6px;
}
#personnelView .student-table td:nth-child(11) .row-actions button svg {
  width: 11px;
  height: 11px;
}
#personnelView .student-table td.personnel-name-cell,
#personnelView .student-table td.personnel-role-cell,
#personnelView .student-table td.personnel-inst-cell,
#personnelView .student-table td.personnel-branch-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.personnel-multi-dropdown {
  position: relative;
}
.personnel-multi-dropdown summary {
  list-style: none;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid #d7e2f0;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.personnel-multi-dropdown summary::-webkit-details-marker { display: none; }
.personnel-multi-dropdown[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.personnel-multi-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% - 1px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow: auto;
  border: 1px solid #d7e2f0;
  border-top: 0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}
.personnel-multi-panel label {
  display: none;
}
.personnel-inst-option {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  border-radius: 0;
  background: #fff;
  color: #0f172a;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 10px;
  cursor: pointer;
}
.personnel-inst-option:hover {
  background: #f8fbff;
}
.personnel-inst-option.selected {
  background: #eff6ff;
  color: #1d4ed8;
}
.personnel-clear-option {
  color: #64748b;
  font-style: italic;
}
.contract-view {
  display: grid;
  gap: 18px;
  justify-content: stretch;
  width: 100%;
  min-width: 0;
}
.contract-page {
  width: 100%;
  max-width: 210mm;
  min-height: 297mm;
  padding: 10mm;
  background: #fff;
  color: #111827;
  border: 1px solid #d7e2f0;
  box-shadow: var(--shadow);
  font-size: 10.5px;
}
.contract-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.contract-brand img { width: 54px; height: 54px; object-fit: contain; }
.contract-brand strong { display: block; font-size: 26px; font-weight: 900; letter-spacing: .4px; }
.contract-brand span { display: block; font-size: 11px; font-weight: 800; }
.contract-page h2 { text-align: center; margin: 6px 0 8px; font-size: 15px; }
.contract-grid {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 0;
  border: 1px solid #111827;
}
.contract-section { border-right: 1px solid #111827; border-bottom: 1px solid #111827; }
.contract-section b,
.note-title {
  display: block;
  text-align: center;
  background: #0b79bd;
  color: #fff;
  font-size: 11px;
  padding: 3px;
}
.line {
  display: grid;
  grid-template-columns: 145px 1fr;
  min-height: 22px;
  border-top: 1px solid #111827;
}
.line span,
.guardian-contract-row span,
.guardian-contract-head strong {
  padding: 4px 5px;
  font-weight: 800;
  font-style: italic;
}
.line em,
.guardian-contract-row em {
  border-left: 1px solid #111827;
  min-height: 21px;
}
.contract-page input,
.contract-page textarea {
  width: 100%;
  min-width: 0;
  border: 0;
  border-left: 1px solid #111827;
  border-radius: 0;
  background: #fff;
  padding: 3px 5px;
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  min-height: 22px;
}
.contract-page textarea {
  resize: vertical;
  min-height: 50px;
  border-left: 0;
  border-top: 1px solid #111827;
}
.contract-page input[type="checkbox"] {
  width: 12px;
  min-height: 12px;
  padding: 0;
  border: 1px solid #111827;
  vertical-align: middle;
}
.contract-page input[type="file"] {
  display: none;
}
.line.split { grid-template-columns: 70px 1fr 60px 1fr 85px 1fr; }
.contract-photo {
  display: grid;
  place-items: center;
  border-bottom: 1px solid #111827;
  font-weight: 700;
  cursor: pointer;
}
.contract-photo span { color: #64748b; }
.contract-wide {
  grid-column: 1 / -1;
  border-right: 0;
}
.guardian-contract-head,
.guardian-contract-row {
  display: grid;
  grid-template-columns: 145px repeat(3, 1fr);
  min-height: 22px;
  border-top: 1px solid #111827;
}
.guardian-contract-head strong,
.guardian-contract-row em { border-left: 1px solid #111827; }
.guardian-contract-row input { border-left: 1px solid #111827; }
.payment-items { min-height: 345px; }
.payment-plan-print { border-right: 0; min-height: 345px; }
.payment-items,
.payment-plan-print { border-bottom: 0; }
.note-title { background: #a3d977; color: #111827; border-top: 1px solid #111827; }
.note-box { min-height: 92px; border-top: 1px solid #111827; }
.sub-note {
  display: grid;
  border-top: 1px solid #111827;
  background: #fff;
  font-size: 9.5px;
  font-weight: 800;
}
.sub-note textarea { min-height: 44px; }
.service-note {
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  background: #d9f1f7;
}
.service-note > span { font-weight: 600; }
.pay-head,
.pay-rows div {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  min-height: 22px;
  border-top: 1px solid #111827;
}
.pay-head span {
  text-align: center;
  padding: 4px;
  font-weight: 800;
  font-style: italic;
}
.pay-head span + span,
.pay-rows span + span { border-left: 1px solid #111827; }
.pay-head:not(.three) { grid-template-columns: 1fr 1fr; }
.pay-row-two,
.pay-form-rows div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 24px;
  border-top: 1px solid #111827;
}
.pay-form-rows div { grid-template-columns: 80px 1fr 1fr; }
.pay-row-two input + input,
.pay-form-rows input + input { border-left: 1px solid #111827; }
.pay-rows { display: grid; }
.pay-rows::before {
  content: '';
  display: block;
}
.pay-rows {
  background: repeating-linear-gradient(to bottom, transparent 0 21px, #111827 22px),
    repeating-linear-gradient(to right, transparent 0 89px, #111827 90px, transparent 91px 218px, #111827 219px);
  min-height: 264px;
}
.contract-accept { margin: 8px 0 18px; font-weight: 700; }
.signature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  gap: 80px;
  margin-top: 24px;
}
.signature-row b { display: block; margin-top: 28px; }
.signature-row input {
  width: 120px;
  border: 0;
  border-bottom: 1px solid #111827;
  text-align: center;
}
.contract-back h2 { margin-top: 0; }
.contract-intro,
.contract-final {
  margin: 0 0 10px;
  font-size: 8.8px;
  line-height: 1.36;
}
.contract-terms {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 4.8px;
  line-height: 1.31;
  font-size: 7.75px;
}
.contract-terms li { padding-bottom: 3.5px; }
.contract-final {
  margin-top: 10px;
  font-weight: 800;
}
.signature-row.bottom { margin-top: 22px; }
.signature-row.bottom span {
  text-align: center;
  line-height: 1.35;
}
#contractBottomSignerName {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.35;
  color: #0f172a;
}
.clear-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border-color: #cbd5e1;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.clear-filter-btn span {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 6px;
  background: #eef2f7;
}
.occupancy-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 46px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 7px;
}
.occupancy-cell.full {
  color: #047857;
  background: #dff7e8;
  font-weight: 800;
}
.class-main { display: grid; gap: 2px; }
.class-main strong { font-size: 13px; }
.class-main span { color: var(--muted); font-size: 11.5px; }
.class-col { display: grid; gap: 2px; color: #0f172a; font-size: 12px; }
.class-col small { color: var(--muted); font-size: 10.5px; }
.class-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.class-tags b {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 7px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 11px;
}
.schedule-head,
.schedule-row {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) minmax(228px, 1.25fr) minmax(118px, 140px);
  gap: 10px;
  align-items: center;
}
.schedule-balance {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.schedule-balance span {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #d7e2f0;
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-weight: 650;
}
.schedule-balance b { color: var(--blue); }
.schedule-balance strong { color: #111827; margin-left: auto; }
.schedule-balance.ok #balanceStatus {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #15803d;
}
.schedule-balance.ok #balanceStatus b,
.schedule-balance.ok #balanceStatus strong { color: #15803d; }
.schedule-balance.error #balanceStatus {
  border-color: #fecaca;
  background: #fff5f5;
  color: #dc2626;
}
.schedule-balance.error #balanceStatus b,
.schedule-balance.error #balanceStatus strong { color: #dc2626; }
.schedule-head {
  margin-top: 12px;
  padding: 0 10px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  border-bottom: 1px solid #d4dce8;
}
.schedule-list { display: grid; gap: 4px; margin-top: 6px; }
.schedule-row {
  padding: 5px 8px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  background: #fff;
}
.schedule-row.down-payment {
  background: #e8f6df;
  border-color: #c8e7b8;
}
.schedule-name { font-weight: 650; }
.schedule-row input { min-height: 28px; padding-block: 0; }
.schedule-row .money-wrap input { min-height: 28px; }
.schedule-control {
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 5px;
  min-width: 0;
}
.schedule-control.schedule-date-control {
  grid-template-columns: minmax(92px, 1fr) 28px 28px;
}
.schedule-control.schedule-date-control .crm-date-wrap {
  display: contents;
}
.schedule-control.schedule-date-control .crm-date-wrap > input.crm-date-input {
  min-width: 0;
  width: 100%;
  padding-inline: 8px;
  font-size: 12px;
}
.schedule-control.schedule-date-control .crm-date-picker-btn {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  font-size: 13px;
  border-radius: 7px;
}
.schedule-control.schedule-date-control .crm-date-native-picker {
  display: none;
}
.schedule-control button {
  min-height: 28px;
  min-width: 32px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid #d7e0ec;
  color: #475569;
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 700;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.schedule-control button:hover {
  background: #eef4ff;
  border-color: #c5d5ee;
  color: #1e3a8a;
}
.schedule-control button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .2);
  border-color: #93b4e8;
}
.schedule-control button:active {
  transform: translateY(1px);
  background: #e3edff;
}
.schedule-row.down-payment .schedule-control button {
  background: #f4faef;
  border-color: #c8ddb9;
}
.schedule-row.down-payment .schedule-control button:hover {
  background: #e9f5dc;
  border-color: #b4d49f;
  color: #2f5d2f;
}
.schedule-control.amount-control .money-wrap input { width: 100%; }
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  min-width: 260px;
  transform: translateY(80px);
  opacity: 0;
  transition: .2s ease;
  background: #0f172a;
  color: #fff;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .24);
  font-weight: 700;
}
.toast.success {
  color: #065f46;
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.toast.success::before {
  content: '✓';
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 999px;
  color: #fff;
  background: #10b981;
}
.toast.error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}
.toast.error::before {
  content: '!';
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 999px;
  color: #fff;
  background: #dc2626;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.toast-multiline {
  white-space: pre-wrap;
  max-width: min(400px, 92vw);
  font-weight: 600;
  font-size: 13px;
}
.confirm-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .34);
  z-index: 20;
}
.confirm-modal.show { display: grid; }
.confirm-card {
  width: min(420px, 100%);
  padding: 18px;
  border: 1px solid #d9e0ea;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(15, 23, 42, .22);
}
.confirm-card h2 { margin: 0; font-size: 17px; }
.confirm-card p { margin: 9px 0 0; color: var(--muted); line-height: 1.45; }
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.student-card-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding: 22px;
  overflow: auto;
  background: rgba(15, 23, 42, .46);
}
.student-card-modal.show { display: flex; }
.student-card-shell {
  width: min(860px, 100%);
}
.student-card-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 9px 11px;
  border: 1px solid #d7e0ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.student-card-toolbar > div {
  display: flex;
  gap: 7px;
}
.student-card-page {
  width: min(794px, 100%);
  box-sizing: border-box;
  min-height: 1123px;
  margin: 0 auto;
  padding: 30px;
  color: #111827;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}
.sec-event-card-page {
  min-height: 0;
  height: auto;
  padding: 16px 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}
.contract-print-shell {
  width: min(860px, 100%);
}
.contract-print-pages {
  display: grid;
  gap: 18px;
}
.contract-print-sheet {
  width: min(794px, 100%);
  box-sizing: border-box;
  min-height: 1123px;
  margin: 0 auto;
  padding: 14mm 12mm 12mm;
  color: #0f172a;
  background: #fff;
  border: 1px solid #c5d0de;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
  font-size: 10.5px;
  line-height: 1.35;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
}
.contract-print-sheet--front {
  display: flex;
  flex-direction: column;
}

/* —— Ön sayfa v2: banner başlık + 2 sütun ücret/plan —— */
.cps-head--banner {
  display: grid;
  grid-template-columns: minmax(220px, 40%) 1fr minmax(76px, auto);
  align-items: center;
  gap: 14px 20px;
  flex-shrink: 0;
  padding-bottom: 9px;
  margin-bottom: 9px;
  border-bottom: 2px solid #1a2744;
  box-shadow: inset 0 -1px 0 #c9a227;
}
.cps-banner-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
}
/* 2. sayfa (Özel Şartlar) logo */
.cps-logo--contract {
  display: block;
  width: auto;
  max-width: 200px;
  height: auto;
  max-height: 96px;
  min-height: 72px;
  object-fit: contain;
  object-position: left center;
}
/* 1. sayfa — daha büyük logo */
.contract-print-sheet--front .cps-logo--front {
  width: 100%;
  max-width: 280px;
  max-height: 120px;
  min-height: 96px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
.cps-banner-center {
  text-align: center;
  padding: 2px 8px 0;
  min-width: 0;
  transform: translateX(-44px);
}
.cps-banner-center h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.15;
  color: #111827;
  text-transform: uppercase;
}
.cps-banner-sub {
  margin: 4px 0 0;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.3;
  color: #475569;
}
.cps-banner-period {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}
.cps-banner-period span {
  display: inline-block;
  min-width: 72px;
  padding: 4px 10px;
  border: 1px solid #111827;
  background: #fff;
  color: #111827;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.cps-sheet-frame {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cps-sheet-fixed {
  flex: 0 0 auto;
}
.cps-duo-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 10px;
  align-items: stretch;
  min-height: 0;
}
.cps-duo-col--left {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.cps-duo-col--left .cps-panel--fixed {
  margin-bottom: 8px;
}
.cps-duo-col--left .cps-panel--prefs {
  margin-bottom: 0;
}
.cps-duo-col--left.cps-duo-col--fee-detailed .cps-panel--fixed {
  margin-bottom: 6px;
}
.cps-duo-col--left.cps-duo-col--fee-detailed .cps-panel--prefs {
  margin-bottom: 0;
}
.cps-duo-col--left.cps-duo-col--fee-detailed .cps-mini-table th,
.cps-duo-col--left.cps-duo-col--fee-detailed .cps-mini-table td {
  padding: 2px 4px;
  font-size: 8.2px;
  line-height: 1.12;
}
.cps-duo-col--left.cps-duo-col--fee-detailed .cps-prefs--compact p {
  margin: 0 0 2px;
  padding-bottom: 2px;
  font-size: 8px;
  line-height: 1.15;
}
.cps-duo-col--left.cps-duo-col--fee-detailed .cps-prefs--compact span {
  font-size: 7.6px;
}
.cps-duo-col--left.cps-duo-col--fee-detailed .cps-prefs--compact strong {
  font-size: 8.2px;
}
.cps-duo-col--schedule {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  margin-bottom: 0;
}
.cps-sheet-footer {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 8px;
}
.cps-sheet-footer .cps-approval {
  margin: 0 0 6px;
}
.cps-panel {
  margin-bottom: 8px;
}
.cps-panel--fixed {
  flex-shrink: 0;
}
.cps-panel h2 {
  margin: 0 0 5px;
  padding: 4px 9px 4px 7px;
  border-radius: 4px;
  border-left: 3px solid #c9a227;
  background: #1a2744;
  color: #fff;
  font-size: 9.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cps-panel--schedule {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  margin-bottom: 0;
}
.cps-schedule-fill {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-sizing: border-box;
}
.cps-schedule-fill .cps-schedule-table {
  width: 100%;
  border-collapse: collapse;
}
.cps-schedule-fill .cps-schedule-table thead {
  display: table-header-group;
}
.cps-schedule-fill .cps-schedule-table tbody {
  display: table-row-group;
}
.cps-panel--schedule .cps-schedule-table th,
.cps-panel--schedule .cps-schedule-table td {
  font-size: 8.2px;
  line-height: 1.15;
  padding: 2px 4px;
}
.cps-prefs--compact p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 4px;
  padding-bottom: 3px;
  border-bottom: 1px dashed #e2e8f0;
  font-size: 8.5px;
  line-height: 1.25;
}
.cps-prefs--compact p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.cps-prefs--compact span {
  flex-shrink: 0;
  color: #64748b;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.cps-prefs--compact strong {
  text-align: right;
  font-weight: 700;
  color: #0f172a;
}

.contract-print-sheet--front.cps-fit-page {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}
.contract-print-sheet--front[class*="cps-sched"] .cps-logo--front {
  max-height: 120px !important;
  max-width: 280px !important;
  min-height: 96px !important;
}
.contract-print-sheet--front.cps-sched-d1 .cps-panel--schedule .cps-schedule-table th,
.contract-print-sheet--front.cps-sched-d1 .cps-panel--schedule .cps-schedule-table td {
  font-size: 8.8px;
  line-height: 1.2;
  padding: 3px 5px;
}
.contract-print-sheet--front.cps-sched-d2 .cps-panel--schedule .cps-schedule-table th,
.contract-print-sheet--front.cps-sched-d2 .cps-panel--schedule .cps-schedule-table td {
  font-size: 8.2px;
  line-height: 1.15;
  padding: 2px 4px;
}
.contract-print-sheet--front.cps-sched-d3 .cps-panel--schedule .cps-schedule-table th,
.contract-print-sheet--front.cps-sched-d3 .cps-panel--schedule .cps-schedule-table td {
  font-size: 7.6px;
  line-height: 1.12;
  padding: 1px 3px;
}
.contract-print-sheet--front.cps-sched-d4 .cps-panel--schedule .cps-schedule-table th,
.contract-print-sheet--front.cps-sched-d4 .cps-panel--schedule .cps-schedule-table td {
  font-size: 7.1px;
  line-height: 1.1;
  padding: 1px 2px;
}

.cps-front-scale {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.cps-head--front {
  display: grid;
  grid-template-columns: minmax(108px, 124px) 1fr;
  align-items: center;
  gap: 12px 16px;
  flex-shrink: 0;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 2px solid #1a2744;
  box-shadow: inset 0 -1px 0 #c9a227;
}
.cps-logo--front {
  display: block;
  width: 100%;
  max-width: 124px;
  height: auto;
  max-height: 96px;
  min-height: 72px;
  object-fit: contain;
  object-position: left center;
}
.cps-head-main {
  min-width: 0;
}
.cps-head-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.cps-head--front h1 {
  margin: 0;
  font-size: 14.5px;
  letter-spacing: .05em;
  line-height: 1.15;
  color: #1a2744;
  text-transform: uppercase;
}
.cps-period-chip {
  flex-shrink: 0;
  padding: 2px 8px;
  border: 1px solid #c5d0de;
  border-radius: 4px;
  background: #f8fafc;
  color: #1a2744;
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}
.cps-head-sub {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.28;
}
.cps-front-body {
  flex: 0 1 auto;
  min-height: 0;
}
.cps-front-footer {
  flex-shrink: 0;
  margin-top: auto;
}
.cps-block--schedule {
  margin-bottom: 6px;
}
.cps-block--schedule .cps-schedule-table th,
.cps-block--schedule .cps-schedule-table td {
  padding: 3px 5px;
  font-size: 9px;
}
.cps-head {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 3px solid #1a2744;
  box-shadow: inset 0 -1px 0 #c9a227;
}
.cps-head--compact {
  margin-bottom: 10px;
}
.cps-head-top {
  display: flex;
  align-items: center;
  gap: 16px 20px;
}
.cps-logo {
  flex: 0 0 auto;
  display: block;
  width: auto;
  max-width: 46%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  object-position: left center;
}
.cps-logo--compact {
  max-width: 200px;
  max-height: 96px;
  min-height: 72px;
}
.cps-title-block {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}
.cps-title-block h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: .06em;
  text-align: left;
  line-height: 1.2;
  color: #1a2744;
  text-transform: uppercase;
}
.cps-title-block p {
  margin: 5px 0 0;
  text-align: left;
  color: #475569;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.35;
}
.cps-period-badge {
  display: inline-grid;
  gap: 2px;
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid #c5d0de;
  border-left: 3px solid #c9a227;
  border-radius: 6px;
  background: #f8fafc;
  text-align: left;
}
.cps-period-badge span {
  color: #64748b;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cps-period-badge strong {
  color: #1a2744;
  font-size: 12px;
}
.cps-info-table tr.cps-row-highlight th,
.cps-info-table tr.cps-row-highlight td {
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 700;
}
.cps-block {
  margin-bottom: 11px;
}
.cps-block h2 {
  margin: 0 0 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 4px;
  border-left: 3px solid #c9a227;
  background: #1a2744;
  color: #fff;
  font-size: 9.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cps-block--split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 12px;
}
.cps-student-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  align-items: start;
}
.cps-photo {
  width: 78px;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  border: 1px solid #c5d0de;
  border-radius: 6px;
  background: #f8fafc;
  color: #1a2744;
  font-size: 22px;
  font-weight: 800;
}
.cps-info-table,
.cps-guardian-table,
.cps-mini-table {
  width: 100%;
  border-collapse: collapse;
}
.cps-info-table th,
.cps-info-table td,
.cps-guardian-table th,
.cps-guardian-table td,
.cps-mini-table th,
.cps-mini-table td {
  border: 1px solid #94a3b8;
  padding: 4px 6px;
  vertical-align: top;
}
.cps-info-table th,
.cps-guardian-table thead th,
.cps-mini-table thead th {
  background: #eef2f7;
  color: #1a2744;
  font-size: 9px;
  text-align: left;
  font-weight: 700;
}
.cps-guardian-table tbody th {
  width: 92px;
  background: #f8fafc;
  font-size: 9px;
}
.cps-num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cps-down-row td {
  background: #f0fdf4;
}
.cps-total-row td {
  font-weight: 800;
  background: #eef2f7;
  color: #1a2744;
}
.cps-schedule-table--dense th,
.cps-schedule-table--dense td {
  padding: 2px 4px !important;
  font-size: 8px !important;
  line-height: 1.2;
}
.cps-address {
  margin-top: 7px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #f8fafc;
}
.cps-address span {
  display: block;
  color: #64748b;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.cps-address p {
  margin: 3px 0 0;
  font-weight: 600;
}
.cps-fee-summary {
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}
.cps-fee-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.cps-fee-total strong {
  font-size: 14px;
  color: #1d4ed8;
}
.cps-fee-note,
.cps-muted {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 9.5px;
}
.cps-prefs p {
  display: grid;
  gap: 2px;
  margin: 0 0 6px;
  padding-bottom: 5px;
  border-bottom: 1px dashed #e2e8f0;
}
.cps-prefs p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.cps-prefs span {
  color: #64748b;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.cps-approval {
  margin: 8px 0 0;
  padding: 7px 8px;
  border-left: 3px solid #c9a227;
  background: #f8fafc;
  font-size: 9.5px;
  font-weight: 600;
}
.contract-pdf-export-root {
  position: fixed;
  inset: 0;
  z-index: 400000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12px 0;
  overflow: auto;
  background: #fff;
  pointer-events: none;
  opacity: 0.001;
}
.contract-pdf-export-root.is-capturing {
  opacity: 1;
}
.contract-pdf-export-root .contract-print-sheet {
  width: 794px;
  min-height: 0 !important;
  margin: 0 auto;
  border: 0;
  box-shadow: none;
}
body.contract-pdf-capture .contract-pdf-export-root,
body.contract-pdf-capture .contract-pdf-export-root * {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}
#contractPrintPdf[disabled] {
  opacity: 0.65;
  cursor: wait;
}
.cps-signatures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px solid #cbd5e1;
}
.cps-front-footer .cps-approval {
  margin-top: 0;
  margin-bottom: 0;
}
.cps-signatures--back {
  grid-template-columns: 1fr 1fr;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.cps-terms-body .contract-intro {
  margin: 0 0 8px;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.38;
}
.cps-terms-body .contract-terms {
  margin: 0;
  padding-left: 16px;
  font-size: 9.2px;
  line-height: 1.38;
}
.cps-terms-body .contract-terms li {
  margin-bottom: 3px;
}
.cps-terms-body .contract-final {
  margin: 8px 0 0;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.35;
}
.cps-sign-cell {
  text-align: center;
}
.cps-sign-role {
  display: block;
  color: #64748b;
  font-size: 8.5px;
  font-weight: 800;
  text-transform: uppercase;
}
.cps-sign-name,
.cps-sign-date {
  display: block;
  margin-top: 6px;
  min-height: 36px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}
.cps-sign-date {
  padding-top: 10px;
  color: #0f172a;
}
.cps-sign-label {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
}
.cps-footnote {
  margin-top: 10px;
  text-align: center;
  color: #94a3b8;
  font-size: 8.5px;
}

/* Ön yüz A4 sığdırma — ekran önizleme + yazdırma */
.contract-print-sheet--front.cps-fit-page {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.contract-print-sheet--front.cps-fit-page .cps-front-scale {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.contract-print-sheet--front.cps-fit-scaled {
  overflow: hidden;
}
.contract-print-sheet--front.cps-fit-page .cps-block {
  margin-bottom: 9px;
}
.contract-print-sheet--front.cps-fit-t2 .cps-head--front {
  margin-bottom: 6px;
  padding-bottom: 6px;
}
.contract-print-sheet--front.cps-fit-t2 .cps-head--front h1 {
  font-size: 13.5px;
}
.contract-print-sheet--front.cps-fit-t2 .cps-block {
  margin-bottom: 7px;
}
.contract-print-sheet--front.cps-fit-t2 .cps-block h2 {
  margin-bottom: 4px;
  padding: 4px 8px;
  font-size: 9px;
}
.contract-print-sheet--front.cps-fit-t2 .cps-info-table th,
.contract-print-sheet--front.cps-fit-t2 .cps-info-table td,
.contract-print-sheet--front.cps-fit-t2 .cps-guardian-table th,
.contract-print-sheet--front.cps-fit-t2 .cps-guardian-table td,
.contract-print-sheet--front.cps-fit-t2 .cps-mini-table th,
.contract-print-sheet--front.cps-fit-t2 .cps-mini-table td {
  padding: 3px 5px;
  font-size: 9px;
}
.contract-print-sheet--front.cps-fit-t3 .cps-student-row {
  grid-template-columns: 56px 1fr;
  gap: 7px;
}
.contract-print-sheet--front.cps-fit-t3 .cps-photo {
  width: 56px;
  font-size: 17px;
}
.contract-print-sheet--front.cps-fit-t3 .cps-address {
  margin-top: 5px;
  padding: 4px 6px;
}
.contract-print-sheet--front.cps-fit-t3 .cps-block--split {
  gap: 8px;
}
.contract-print-sheet--front.cps-fit-t3 .cps-fee-total strong {
  font-size: 12px;
}
.contract-print-sheet--front.cps-fit-t3 .cps-schedule-table th,
.contract-print-sheet--front.cps-fit-t3 .cps-schedule-table td {
  padding: 2px 4px !important;
  font-size: 8.5px !important;
  line-height: 1.2;
}
.contract-print-sheet--front.cps-fit-t4 .cps-block {
  margin-bottom: 5px;
}
.contract-print-sheet--front.cps-fit-t4 .cps-head--front h1 {
  font-size: 12.5px;
}
.contract-print-sheet--front.cps-fit-t4 .cps-approval {
  padding: 5px 6px;
  font-size: 8.5px;
  line-height: 1.28;
}
.contract-print-sheet--front.cps-fit-t4 .cps-signatures {
  margin-top: 5px;
  padding-top: 5px;
  gap: 8px;
}
.contract-print-sheet--front.cps-fit-t4 .cps-sign-name,
.contract-print-sheet--front.cps-fit-t4 .cps-sign-date {
  min-height: 24px;
  margin-top: 3px;
  font-size: 9.5px;
}
.contract-print-sheet--front.cps-fit-t5 .cps-head--front h1 {
  font-size: 11.5px;
}
.contract-print-sheet--front.cps-fit-t5 .cps-head-sub {
  font-size: 7.5px;
}
.contract-print-sheet--front.cps-fit-t5 .cps-block h2 {
  padding: 3px 6px;
  font-size: 8px;
}
.contract-print-sheet--front.cps-fit-t5 .cps-info-table th,
.contract-print-sheet--front.cps-fit-t5 .cps-info-table td,
.contract-print-sheet--front.cps-fit-t5 .cps-guardian-table th,
.contract-print-sheet--front.cps-fit-t5 .cps-guardian-table td,
.contract-print-sheet--front.cps-fit-t5 .cps-mini-table th,
.contract-print-sheet--front.cps-fit-t5 .cps-mini-table td {
  padding: 2px 4px !important;
  font-size: 8px !important;
  line-height: 1.18;
}
.contract-print-sheet--front.cps-fit-t5 .cps-schedule-table th,
.contract-print-sheet--front.cps-fit-t5 .cps-schedule-table td {
  padding: 1px 3px !important;
  font-size: 7.8px !important;
}
.contract-print-sheet--front.cps-fit-t5 .cps-approval {
  font-size: 8px;
}
.contract-print-sheet--front.cps-fit-t5 .cps-sign-name,
.contract-print-sheet--front.cps-fit-t5 .cps-sign-date {
  min-height: 20px;
  font-size: 9px;
}

.contract-print-sheet--back {
  display: flex;
  flex-direction: column;
}
.cps-back-flow {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cps-back-body {
  flex: 0 1 auto;
  min-height: 0;
}
.cps-back-footer {
  flex-shrink: 0;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 2px solid #cbd5e1;
}
.contract-print-sheet--back.cps-fit-page {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.contract-print-sheet--back.cps-fit-page .cps-back-flow {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.contract-print-sheet--back.cps-back-spread .cps-back-footer {
  margin-top: auto;
}
.contract-print-sheet--back.cps-back-spread .cps-back-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.contract-print-sheet--back.cps-back-spread .cps-terms-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.contract-print-sheet--back.cps-back-spread .cps-terms-body .contract-terms {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  margin: 0;
  padding-left: 16px;
  font-size: 9.2px;
  line-height: 1.38;
}
.contract-print-sheet--back.cps-back-spread .cps-terms-body .contract-terms li {
  margin: 0;
  flex: 0 0 auto;
}
.contract-print-sheet--back.cps-back-spread .cps-terms-body .contract-intro {
  flex-shrink: 0;
  margin: 0 0 8px;
  font-size: 9.5px;
  line-height: 1.38;
}
.contract-print-sheet--back.cps-back-spread .cps-terms-body .contract-final {
  flex-shrink: 0;
  margin: 8px 0 0;
  font-size: 9.5px;
  line-height: 1.35;
  font-weight: 700;
}
.contract-print-sheet--back.cps-back-t2 .cps-terms-body .contract-intro {
  font-size: 9px;
  margin-bottom: 6px;
}
.contract-print-sheet--back.cps-back-t2 .cps-terms-body .contract-terms {
  font-size: 8.8px;
  line-height: 1.34;
  padding-left: 14px;
}
.contract-print-sheet--back.cps-back-t2 .cps-terms-body .contract-final {
  font-size: 9px;
  margin-top: 6px;
}
.contract-print-sheet--back.cps-back-t3 .cps-terms-body .contract-intro {
  font-size: 8.5px;
  line-height: 1.3;
}
.contract-print-sheet--back.cps-back-t3 .cps-terms-body .contract-terms {
  font-size: 8.2px;
  line-height: 1.32;
}
.contract-print-sheet--back.cps-back-t3 .cps-terms-body .contract-final {
  font-size: 8.5px;
}
.contract-print-sheet--back.cps-back-t4 .cps-terms-body .contract-intro,
.contract-print-sheet--back.cps-back-t4 .cps-terms-body .contract-final {
  font-size: 8px;
  line-height: 1.28;
}
.contract-print-sheet--back.cps-back-t4 .cps-terms-body .contract-terms {
  font-size: 7.8px;
  line-height: 1.3;
  padding-left: 12px;
}
.contract-print-sheet--back.cps-back-t4 .cps-back-footer .cps-sign-name,
.contract-print-sheet--back.cps-back-t4 .cps-back-footer .cps-sign-date {
  min-height: 22px;
  font-size: 9px;
}
.contract-print-sheet--back.cps-fit-scaled .cps-back-footer {
  margin-top: 8px;
}
.card-print-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr .8fr;
  align-items: center;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid #1f2937;
}
.card-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.card-brand strong,
.card-title h2 {
  margin: 0;
  font-size: 17px;
}
.card-brand span,
.card-title span,
.card-status span,
.card-total span,
.card-payment-summary span,
.card-info-row span {
  color: #64748b;
  font-size: 10.5px;
}
.card-title { text-align: center; }
.card-status {
  display: grid;
  justify-items: end;
  gap: 4px;
}
.card-status-nums {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.student-record-ref {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}
.student-record-ref__label {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}
.student-record-ref__value {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}
.card-status-nums.student-record-refs {
  justify-content: flex-start;
  gap: 8px 14px;
}
.card-status .student-record-refs {
  justify-content: flex-end;
}
.card-status b {
  font-size: 18px;
  line-height: 1.1;
}
.card-hero {
  display: grid;
  grid-template-columns: 82px 1fr 150px;
  align-items: center;
  gap: 16px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #d7e0ec;
  border-radius: 12px;
  background: #f8fafc;
}
.card-photo {
  width: 72px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 1px dashed #9fb8dc;
  border-radius: 8px;
  color: var(--blue);
  background: #eef6ff;
  font-weight: 800;
}
.card-hero h1 {
  margin: 0;
  font-size: 21px;
}
.card-hero p {
  margin: 6px 0 0;
  color: #475569;
  font-size: 12px;
}
.card-total {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}
.card-total strong {
  color: var(--blue);
  font-size: 18px;
}
.card-total em,
.card-payment-summary em {
  color: #64748b;
  font-size: 10px;
  font-style: normal;
  line-height: 1.35;
}
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.card-section {
  padding: 12px;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
}
.card-section.full {
  margin-top: 12px;
  grid-column: 1 / -1;
}
.personnel-absence-total-badge span {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}
.personnel-absence-total-badge b,
.personnel-absence-total-badge__value {
  line-height: 1.2;
  font-size: 14px;
  white-space: nowrap;
}
.personnel-absence-card-breakdown {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.personnel-absence-card-breakdown__title {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.personnel-absence-status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.personnel-absence-status-summary-empty {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}
.personnel-absence-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 11px;
}
.personnel-absence-status-chip__label {
  font-weight: 600;
  color: #334155;
}
.personnel-absence-status-chip__metric {
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}
.personnel-absence-status-chip--gec { background: #fef3c7; border-color: #fcd34d; }
.personnel-absence-status-chip--gec .personnel-absence-status-chip__metric { color: #92400e; }
.personnel-absence-status-chip--izinli { background: #dbeafe; border-color: #93c5fd; }
.personnel-absence-status-chip--izinli .personnel-absence-status-chip__metric { color: #1e40af; }
.personnel-absence-status-chip--raporlu { background: #ede9fe; border-color: #c4b5fd; }
.personnel-absence-status-chip--raporlu .personnel-absence-status-chip__metric { color: #5b21b6; }
.personnel-absence-status-chip--yok { background: #fee2e2; border-color: #fca5a5; }
.personnel-absence-status-chip--yok .personnel-absence-status-chip__metric { color: #991b1b; }
.personnel-absence-status-chip--oo { background: #ffedd5; border-color: #fdba74; }
.personnel-absence-status-chip--oo .personnel-absence-status-chip__metric { color: #9a3412; }
.personnel-absence-status-chip--os { background: #fce7f3; border-color: #f9a8d4; }
.personnel-absence-status-chip--os .personnel-absence-status-chip__metric { color: #9f1239; }
.personnel-absence-card-hint {
  margin: 0 0 10px;
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.4;
}
.personnel-absence-card-table-wrap {
  overflow: auto;
  max-height: min(420px, 55vh);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.personnel-absence-card-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.personnel-absence-card-table th,
.personnel-absence-card-table td {
  padding: 7px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #edf2f7;
}
.personnel-absence-card-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  font-weight: 750;
}
.personnel-absence-card-table tbody tr:last-child td {
  border-bottom: 0;
}
.personnel-absence-card-table td:last-child {
  word-break: break-word;
}
.card-section h3 {
  margin: 0 0 9px;
  font-size: 13px;
}
.card-info-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid #edf2f7;
}
.card-info-row:first-of-type {
  border-top: 0;
}
.card-info-row strong {
  font-size: 11px;
}
.card-guardian-list {
  display: grid;
  gap: 4px;
}
.card-guardian-group {
  border-top: 1px solid #edf2f7;
}
.card-guardian-group:first-child {
  border-top: 0;
}
.card-info-row.guardian-main {
  border-top: 0;
}
.card-info-row em {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  color: #047857;
  background: #dcfce7;
  font-size: 9px;
  font-style: normal;
}
.card-payment-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.card-payment-summary div {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 9px;
  background: #f8fafc;
}
.card-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
}
.card-mini-table th,
.card-mini-table td {
  padding: 7px 8px;
  border: 1px solid #e2e8f0;
  text-align: left;
}
.card-mini-table th {
  background: #f8fafc;
}
.card-note {
  margin: 0;
  color: #475569;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.modern-contract {
  padding: 20px 22px 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  font-size: 12px;
}
.contract-modern-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.contract-breadcrumb {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}
.contract-breadcrumb span {
  color: #94a3b8;
  padding: 0 6px;
}
.contract-modern-head h2 {
  margin: 7px 0 4px;
  text-align: left;
  font-size: 24px;
  line-height: 1.1;
}
.contract-title-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.contract-head-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}
.contract-modern-head p {
  margin: 0;
  color: #64748b;
  font-size: 12.5px;
}
.contract-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.contract-head-actions .btn {
  min-height: 36px;
}
.modern-contract .photo .photo-action {
  width: 24px;
  height: 24px;
  min-height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  box-shadow: none;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}
.modern-contract .photo .photo-action.add,
.modern-contract .photo .photo-action.replace {
  right: -7px;
  bottom: -7px;
}
.modern-contract .photo .photo-action.remove {
  right: -7px;
  top: -7px;
  background: #ef4444;
}
.modern-contract .photo .photo-action.replace,
.modern-contract .photo .photo-action.remove {
  display: none;
}
.modern-contract .photo.has-image .photo-action.add {
  display: none;
}
.modern-contract .photo.has-image .photo-action.replace,
.modern-contract .photo.has-image .photo-action.remove {
  display: grid;
}
.contract-status-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 15px 18px;
  border: 1px solid #d7e2f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.contract-doc-icon {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
  padding: 6px;
  border-radius: 12px;
  background: #eaf2ff;
}
.contract-status-band strong,
.contract-status-band span {
  display: block;
}
.contract-status-band strong {
  font-size: 13.5px;
}
.contract-status-band span {
  margin-top: 4px;
  color: #64748b;
}
.contract-status-band b {
  color: #2563eb;
}
.contract-save-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-weight: 700;
}
.contract-save-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}
.contract-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  align-items: center;
}
.contract-progress small {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 10px;
  text-align: right;
}
.contract-progress span {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}
.contract-progress em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2f7cf6;
}
.contract-progress b {
  color: #2f7cf6;
  font-size: 11px;
}
.contract-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr);
  gap: 14px;
}
.contract-card {
  padding: 15px;
  border: 1px solid #d7e2f0;
  border-radius: 13px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
}
.contract-card.full-row {
  grid-column: 1 / -1;
}
.contract-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.contract-card-head h3 {
  margin: 0;
  font-size: 13px;
  letter-spacing: .01em;
}
.contract-card-head > span {
  padding: 4px 9px;
  border: 1px solid #d7e2f0;
  border-radius: 8px;
  color: #334155;
  background: #f8fafc;
  font-size: 10.5px;
  font-weight: 800;
}
.contract-card-head label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #64748b;
  font-weight: 800;
}
.contract-card-head.small-head {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}
.contract-card-head.small-head button {
  min-height: 26px;
  padding: 0 8px;
  border: 0;
  color: #2563eb;
  background: #eff6ff;
  box-shadow: none;
  font-size: 10.5px;
}
.modern-contract input,
.modern-contract textarea,
.modern-contract select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid #d3deec;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  color: #0f172a;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
}
.student-entry-card .modern-contract select,
.student-entry-card select {
  padding-right: 30px;
  font-size: 11px;
  font-weight: 800;
}
.student-entry-card select:disabled {
  border-color: #d5dee9;
  background: #e8edf4;
  color: #a8b4c5;
  opacity: 1;
}
.student-entry-card .contract-label-text {
  font-size: 10px;
}
.modern-contract input::placeholder,
.modern-contract textarea::placeholder {
  color: #9aa8bd;
  font-weight: 600;
}
.modern-contract textarea {
  min-height: 58px;
  resize: vertical;
}
.modern-contract input[type="checkbox"] {
  width: 15px;
  min-height: 15px;
  padding: 0;
  border-radius: 4px;
  box-shadow: none;
}
.modern-contract input[type="file"] {
  display: none;
}
.modern-contract label {
  display: grid;
  gap: 5px;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 800;
}
.contract-label-text {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.contract-field--readonly select:disabled {
  opacity: 1;
  color: var(--text, #1e293b);
  background: var(--surface-muted, #f1f5f9);
  cursor: default;
  border-color: var(--border, #e2e8f0);
}
.contract-period-display {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--surface-muted, #f1f5f9);
  font-size: 13px;
  font-weight: 700;
  color: var(--text, #1e293b);
  letter-spacing: 0.01em;
}
.student-entry-modern {
  position: relative;
  display: block;
  padding-right: 0;
}
.student-fields {
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  gap: 12px 14px;
}
.student-fields label {
  grid-column: span 5;
}
.student-fields .wide {
  grid-column: span 12;
}
.student-fields .half {
  grid-column: span 6;
}
.student-fields label:nth-last-child(-n + 6) {
  align-self: end;
}
.student-fields label:nth-last-child(6) {
  grid-column: 1 / span 3;
  margin-top: 4px;
}
.student-fields label:nth-last-child(5) {
  grid-column: span 3;
}
.student-fields label:nth-last-child(4),
.student-fields label:nth-last-child(3) {
  grid-column: span 3;
}
.student-fields label:nth-last-child(2),
.student-fields label:nth-last-child(1) {
  grid-column: span 2;
}
.modern-contract .student-fields .field-error {
  min-height: 0;
  margin-top: -2px;
  line-height: 1.15;
}
.contract-photo-wrap {
  position: absolute;
  top: 2px;
  right: 4px;
  display: grid;
  place-items: center;
  gap: 0;
  min-height: 0;
  text-align: center;
  color: #64748b;
}
.capacity-inline {
  min-height: 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #d3deec;
  border-radius: 8px;
  background: #fff;
}
.capacity-inline span {
  color: #0f172a;
  font-weight: 800;
}
.capacity-inline b {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbeafe;
}
.capacity-inline em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2f7cf6;
}
.contract-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.modern-payment-rows {
  display: grid;
  gap: 7px;
}
.modern-payment-rows div {
  display: grid;
  grid-template-columns: 30px 1fr 1fr;
  gap: 7px;
  align-items: center;
}
.modern-payment-rows b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #2563eb;
  background: #eaf2ff;
  font-size: 11px;
}
.guardian-modern-grid {
  display: grid;
  grid-template-columns: 132px repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}
.guardian-modern-grid > span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
}
.guardian-modern-grid > strong {
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #2563eb;
  background: #eaf2ff;
  font-size: 11px;
}
.guardian-modern-grid > strong:last-of-type {
  color: #334155;
  background: #f1f5f9;
}
.wide-label {
  margin-top: 9px;
}
.fee-modern-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 10px;
}
.money-field {
  text-align: right;
}
.contract-fee-panel {
  background: #f6f9fd;
}
.contract-fee-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid #d3deec;
  border-radius: 10px;
  background: #eaf1f9;
}
.contract-fee-mode button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
}
.contract-fee-mode button.selected {
  color: #0f172a;
  background: #fff;
  box-shadow: 0 1px 5px rgba(15, 23, 42, .09);
}
.contract-fee-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.contract-fee-list {
  display: grid;
  gap: 8px;
}
.contract-fee-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 120px 130px;
  align-items: center;
  gap: 8px;
}
.contract-fee-row > span:first-child {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}
.contract-fee-row em {
  min-height: 1px;
}
.contract-fee-row .money-wrap input {
  min-height: 34px;
  padding-right: 26px;
  text-align: right;
}
.contract-fee-row select {
  min-height: 34px;
  padding-inline: 10px 24px;
}
.contract-fee-row.vat {
  margin-top: 3px;
  padding-top: 8px;
  border-top: 1px solid #dbe4f0;
}
.contract-fee-row.vat label {
  display: inline-flex;
  grid-auto-flow: column;
  align-items: center;
  justify-content: start;
  gap: 8px;
  color: #0f172a;
  font-size: 12px;
}
.contract-fee-side {
  display: block;
}
.total-modern {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #dbe4f0;
}
.total-modern span {
  color: #64748b;
}
.total-modern b,
.total-modern strong {
  font-size: 12px;
}
.total-modern strong {
  margin-top: 2px;
  padding: 10px 12px;
  color: #fff;
  background: #2f7cf6;
}
.total-modern strong:first-of-type {
  border-radius: 9px 0 0 9px;
}
.total-modern strong:last-of-type {
  border-radius: 0 9px 9px 0;
  font-size: 18px;
  text-align: right;
}
.note-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 10px;
  padding: 3px;
  border: 1px solid #d7e2f0;
  border-radius: 9px;
  background: #f1f5f9;
}
.contract-option-box {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 12px 12px 10px;
  border: 1px solid #d7e2f0;
  border-radius: 10px;
  background: #f8fbff;
}
.service-options label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
}
.service-options b {
  color: #0f172a;
  font-size: 13px;
}
.contract-notes-box {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.contract-notes-box b {
  color: #0f172a;
  font-size: 13px;
}
.contract-notes-box textarea {
  min-height: 88px;
  resize: vertical;
}
.contract-payment-schedule-panel .panel-head h2 {
  margin: 0;
  font-size: 13px;
}
.contract-schedule-actions {
  display: inline-flex;
  gap: 6px;
}
.contract-payment-type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px 10px;
  margin-bottom: 12px;
}
.contract-payment-type-grid .money-wrap input {
  min-height: 34px;
  text-align: right;
  padding-right: 26px;
}
.contract-approval-note {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #cbd9ec;
  border-radius: 10px;
  background: #f6f9ff;
  color: #1e3a5f;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}
.signature-modern {
  display: grid;
  grid-template-columns: 1fr .8fr 1fr;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.signature-modern > div {
  display: grid;
  gap: 9px;
  align-content: center;
  min-height: 120px;
  border-right: 1px solid #dbe4f0;
}
.signature-modern > div:last-child {
  border-right: 0;
}
.signature-modern span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
}
.signature-modern em {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px dashed #b8d4ff;
  border-radius: 10px;
  color: #2f7cf6;
  background: #f8fbff;
  font-style: normal;
}
.signature-modern strong {
  color: #2f7cf6;
  font-size: 20px;
}
.contract-signer-box {
  align-content: start !important;
  gap: 10px !important;
}
.contract-signer-box select {
  min-height: 40px;
  border: 1px solid #b8d4ff;
  border-radius: 10px;
  background: #f8fbff;
  color: #0f172a;
  font-weight: 600;
  font-size: 13px;
}
.signature-modern small {
  width: max-content;
  margin: 0 auto;
  padding: 4px 8px;
  border: 1px solid #d7e2f0;
  border-radius: 999px;
  color: #334155;
  background: #fff;
}
.contract-back {
  padding: 10mm 11mm;
  color: #0f172a;
}
.contract-back h2 {
  text-align: center;
  margin: 0 0 7px;
  font-size: 15px;
  letter-spacing: .04em;
  font-weight: 800;
}
.contract-intro {
  margin: 0 0 8px;
  font-size: 9px;
  line-height: 1.4;
  color: #334155;
}
.contract-terms {
  margin: 0;
  padding-left: 16px;
  gap: 4.6px;
  font-size: 8px;
  line-height: 1.33;
  color: #1f2937;
}
.contract-terms li {
  margin: 0;
}
.contract-final {
  margin: 8px 0 0;
  font-size: 8.95px;
  line-height: 1.4;
  color: #0f172a;
}

@page {
  size: A4 portrait;
  margin: 10mm;
}

/* Sözleşme yazdırma — ayrı iframe belgesi (CRM başlığı / URL üst-alt bilgisi yok) */
body.contract-print-standalone {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #0f172a;
}
body.contract-print-standalone .contract-print-pages {
  display: block;
}
body.contract-print-standalone .contract-print-sheet {
  width: 210mm;
  min-height: 0;
  margin: 0 auto;
  padding: 7mm 9mm 6mm;
  border: 0;
  box-shadow: none;
  font-size: 9.5px;
  line-height: 1.3;
  page-break-inside: avoid;
}
body.contract-print-standalone .contract-print-sheet--front {
  page-break-after: always;
}
body.contract-print-standalone .contract-print-sheet--back {
  page-break-before: always;
  page-break-after: auto;
}
body.contract-print-standalone .cps-logo {
  max-height: 88px;
}
body.contract-print-standalone .cps-block {
  margin-bottom: 7px;
}
body.contract-print-standalone .cps-signatures {
  margin-top: 9px;
  padding-top: 7px;
}
body.contract-print-standalone .cps-sign-name,
body.contract-print-standalone .cps-sign-date {
  min-height: 28px;
  margin-top: 4px;
  font-size: 10px;
}
body.contract-print-standalone .cps-approval {
  margin-top: 5px;
  padding: 5px 7px;
  font-size: 8.5px;
  line-height: 1.28;
}

@media print {
  body.contract-print-standalone {
    margin: 0;
    padding: 0;
  }
  body.contract-print-standalone .contract-print-sheet {
    width: 210mm;
    min-height: 0 !important;
    height: auto;
    margin: 0 auto;
    padding: 5mm 7mm 4mm;
    font-size: 9px;
    line-height: 1.28;
    box-shadow: none;
    border: 0;
  }
  body.contract-print-standalone .cps-head {
    margin-bottom: 6px;
    padding-bottom: 5px;
  }
  body.contract-print-standalone .cps-logo {
    max-height: 64px;
  }
  body.contract-print-standalone .cps-title-block h1 {
    font-size: 15px;
  }
  body.contract-print-standalone .cps-period-badge {
    margin-top: 5px;
    padding: 4px 8px;
  }
  body.contract-print-standalone .cps-period-badge strong {
    font-size: 10px;
  }
  body.contract-print-standalone .cps-block {
    margin-bottom: 5px;
  }
  body.contract-print-standalone .cps-block h2 {
    margin-bottom: 3px;
    padding: 2px 6px;
    font-size: 8.5px;
  }
  body.contract-print-standalone .cps-student-row {
    grid-template-columns: 64px 1fr;
    gap: 7px;
  }
  body.contract-print-standalone .cps-photo {
    width: 64px;
    font-size: 18px;
  }
  body.contract-print-standalone .cps-info-table th,
  body.contract-print-standalone .cps-info-table td,
  body.contract-print-standalone .cps-guardian-table th,
  body.contract-print-standalone .cps-guardian-table td,
  body.contract-print-standalone .cps-mini-table th,
  body.contract-print-standalone .cps-mini-table td {
    padding: 2px 4px;
    font-size: 8.5px;
  }
  body.contract-print-standalone .cps-guardian-table tbody th {
    width: 78px;
    font-size: 8px;
  }
  body.contract-print-standalone .cps-address {
    margin-top: 4px;
    padding: 4px 6px;
  }
  body.contract-print-standalone .cps-block--split {
    gap: 8px;
  }
  body.contract-print-standalone .cps-approval {
    margin-top: 4px;
    padding: 4px 6px;
    font-size: 8px;
  }
  body.contract-print-standalone .cps-signatures {
    margin-top: 6px;
    padding-top: 5px;
    gap: 8px;
  }
  body.contract-print-standalone .cps-sign-name,
  body.contract-print-standalone .cps-sign-date {
    min-height: 22px;
    font-size: 9.5px;
  }
  body.contract-print-standalone .cps-terms-body .contract-intro {
    font-size: 8.5px;
    margin-bottom: 5px;
  }
  body.contract-print-standalone .cps-terms-body .contract-terms {
    font-size: 8px;
    padding-left: 14px;
  }
  body.contract-print-standalone .cps-terms-body .contract-terms li {
    margin-bottom: 2px;
  }
  body.contract-print-standalone .cps-terms-body .contract-final {
    margin-top: 6px;
    font-size: 8.5px;
  }
  @page {
    size: A4 portrait;
    margin: 6mm;
  }
}

@media print {
  body * { visibility: hidden; }

  body.contract-print-standalone,
  body.contract-print-standalone * {
    visibility: visible !important;
  }

  body:not(.printing-contract-sheet):not(.printing-collections-card):not(.printing-day-end):not(.printing-sec-event-card):not(.printing-student-list) .contract-view,
  body:not(.printing-contract-sheet):not(.printing-collections-card):not(.printing-day-end):not(.printing-sec-event-card):not(.printing-student-list) .contract-view * {
    visibility: visible;
  }

  body.printing-day-end > :not(#dayEndPrintModal) {
    display: none !important;
  }
  body.printing-day-end * { visibility: hidden; }
  body.printing-day-end #dayEndPrintModal,
  body.printing-day-end #dayEndPrintModal * { visibility: visible; }
  body.printing-day-end #dayEndPrintModal {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }
  body.printing-day-end .day-end-print-page {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6mm 8mm !important;
    box-shadow: none !important;
    page-break-inside: auto !important;
    page-break-after: avoid !important;
    break-after: avoid-page !important;
  }
  body.printing-day-end .day-end-print__cash {
    page-break-inside: avoid;
    break-inside: avoid-page;
  }
  body.printing-day-end .day-end-print__table,
  body.printing-day-end .day-end-print__cash-table {
    font-size: 8px;
  }
  body.printing-day-end .day-end-print__table th,
  body.printing-day-end .day-end-print__table td,
  body.printing-day-end .day-end-print__cash-table th,
  body.printing-day-end .day-end-print__cash-table td {
    padding: 2px 4px;
  }
  body.printing-day-end .day-end-print__table thead {
    display: table-header-group;
  }
  body.printing-day-end .day-end-print__table tbody tr {
    page-break-inside: auto;
    break-inside: auto;
  }

  body.printing-student-list > :not(#studentListPrintModal) {
    display: none !important;
  }
  body.printing-student-list * { visibility: hidden; }
  body.printing-student-list #studentListPrintModal,
  body.printing-student-list #studentListPrintModal * { visibility: visible; }
  body.printing-student-list #studentListPrintModal {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }
  body.printing-student-list .student-list-print-page {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6mm 8mm !important;
    box-shadow: none !important;
    page-break-inside: auto !important;
    page-break-after: avoid !important;
    break-after: avoid-page !important;
  }
  body.printing-student-list .st-list-print__head,
  body.printing-student-list .st-list-print__kpis {
    page-break-inside: avoid;
    break-inside: avoid-page;
  }
  body.printing-student-list .st-list-print__table {
    font-size: 7px;
  }
  body.printing-student-list .st-list-print__table th,
  body.printing-student-list .st-list-print__table td {
    padding: 2px 3px;
  }
  body.printing-student-list .st-list-print__table thead {
    display: table-header-group;
  }
  body.printing-student-list .st-list-print__table tbody tr {
    page-break-inside: auto;
    break-inside: auto;
  }

  body.printing-contract-sheet * { visibility: hidden; }
  body.printing-contract-sheet #contractPrintModal,
  body.printing-contract-sheet #contractPrintModal * { visibility: visible; }
  body.printing-contract-sheet .student-card-modal:not(#contractPrintModal) {
    display: none !important;
  }
  body.printing-contract-sheet #contractPrintModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }
  body.printing-contract-sheet .contract-print-shell {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
  }
  body.printing-contract-sheet .student-card-toolbar {
    display: none !important;
  }
  body.printing-contract-sheet .contract-view,
  body.printing-contract-sheet .app-shell > :not(#contractPrintModal) {
    display: none !important;
  }
  body.printing-contract-sheet #contractPrintModal,
  body.printing-contract-sheet #contractPrintModal * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body.printing-contract-sheet .contract-print-pages {
    display: block !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    page-break-after: avoid !important;
  }
  body.printing-contract-sheet .contract-print-shell {
    page-break-after: avoid !important;
  }
  body.printing-contract-sheet .contract-print-sheet {
    width: 210mm;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    margin: 0 auto;
    padding: 9mm 10mm 8mm;
    border: 0;
    box-shadow: none;
    font-size: 9.5px;
    line-height: 1.32;
    page-break-inside: avoid;
    break-inside: avoid-page;
  }
  body.printing-contract-sheet .contract-print-sheet--front {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    page-break-after: always;
    break-after: page;
    page-break-before: avoid;
    page-break-inside: avoid;
  }
  body.printing-contract-sheet .contract-print-sheet--front.cps-fit-page {
    height: 277mm !important;
    min-height: 277mm !important;
    max-height: 277mm !important;
    overflow: hidden !important;
    padding: 6mm 8mm 5mm;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }
  body.printing-contract-sheet .contract-print-sheet--front .cps-sheet-frame {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  body.printing-contract-sheet .contract-print-sheet--front .cps-duo-grid {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    align-items: stretch !important;
  }
  body.printing-contract-sheet .contract-print-sheet--front .cps-panel--schedule {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
  }
  body.printing-contract-sheet .contract-print-sheet--front .cps-head--banner {
    border-bottom-color: #1a2744 !important;
    box-shadow: inset 0 -1px 0 #c9a227 !important;
  }
  body.printing-contract-sheet .contract-print-sheet--front .cps-logo--front {
    max-height: 120px !important;
    max-width: 280px !important;
    min-height: 96px !important;
    width: 100% !important;
    object-fit: contain !important;
  }
  body.printing-contract-sheet .contract-print-sheet--back .cps-logo {
    max-height: 96px !important;
    max-width: 200px !important;
    min-height: 72px;
    width: auto !important;
    object-fit: contain !important;
  }
  body.printing-contract-sheet .contract-print-sheet--front .cps-sheet-footer {
    page-break-inside: avoid;
    break-inside: avoid-page;
  }
  body.printing-contract-sheet .contract-print-sheet--front .cps-panel h2 {
    border-left: 3px solid #c9a227 !important;
    background: #1a2744 !important;
    color: #fff !important;
  }
  body.printing-contract-sheet .contract-print-sheet--front .cps-approval {
    border-left-color: #c9a227 !important;
    background: #f8fafc !important;
  }
  body.printing-contract-sheet .contract-print-sheet--back {
    display: flex;
    flex-direction: column;
    page-break-before: auto;
    break-before: auto;
    page-break-after: avoid !important;
    break-after: avoid-page !important;
    margin-bottom: 0 !important;
    padding: 7mm 9mm 6mm;
  }
  body.printing-contract-sheet .contract-print-sheet--back.cps-fit-page,
  body.printing-contract-sheet .contract-print-sheet--back.cps-fit-scaled {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    box-sizing: border-box;
  }
  body.printing-contract-sheet .contract-print-sheet--back.cps-back-spread .cps-back-footer {
    margin-top: auto;
    page-break-inside: avoid;
    break-inside: avoid-page;
  }
  body.printing-contract-sheet .contract-print-sheet--back .cps-back-footer {
    page-break-inside: avoid;
    break-inside: avoid-page;
  }
  body.printing-contract-sheet .contract-print-sheet--back .cps-sign-name,
  body.printing-contract-sheet .contract-print-sheet--back .cps-sign-date {
    min-height: 22px;
    font-size: 9px;
  }
  body.printing-contract-sheet .contract-print-sheet--back .cps-head {
    margin-bottom: 4px;
    padding-bottom: 4px;
  }
  body.printing-contract-sheet .contract-print-sheet--back .cps-title-block h1 {
    font-size: 13px;
  }
  body.printing-contract-sheet .contract-print-sheet--back .cps-signatures {
    margin-top: 6px;
    padding-top: 6px;
    gap: 8px;
  }
  body.printing-contract-sheet .contract-print-sheet:last-child {
    page-break-after: avoid !important;
  }
  body.printing-contract-sheet .cps-head {
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom-color: #1a2744 !important;
    box-shadow: inset 0 -1px 0 #c9a227 !important;
  }
  body.printing-contract-sheet .cps-info-table th,
  body.printing-contract-sheet .cps-guardian-table thead th,
  body.printing-contract-sheet .cps-mini-table thead th {
    background: #eef2f7 !important;
    color: #1a2744 !important;
  }
  body.printing-contract-sheet .cps-block h2 {
    border-left: 3px solid #c9a227 !important;
    background: #1a2744 !important;
    color: #fff !important;
  }

  body.contract-pdf-capture #contractPrintModal,
  body.contract-pdf-capture #contractPrintModal * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body.contract-pdf-capture .contract-print-sheet--front.cps-fit-page {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
  }
  body.contract-pdf-capture .contract-print-sheet--front.cps-fit-page .cps-front-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
  }
  body.contract-pdf-capture .contract-print-sheet--front.cps-fit-page .cps-front-footer {
    margin-top: auto;
  }
  body.contract-pdf-capture .cps-block h2 {
    background: #1a2744 !important;
    border-left-color: #c9a227 !important;
    color: #fff !important;
  }
  body.contract-pdf-capture .cps-info-table th,
  body.contract-pdf-capture .cps-guardian-table thead th,
  body.contract-pdf-capture .cps-mini-table thead th {
    background: #eef2f7 !important;
    color: #1a2744 !important;
  }
  body.contract-pdf-capture .cps-photo {
    background: #f8fafc !important;
    border-color: #c5d0de !important;
    color: #1a2744 !important;
  }
  body.contract-pdf-capture .cps-head {
    border-bottom-color: #1a2744 !important;
  }

  body.printing-collections-card * { visibility: hidden; }
  body.printing-collections-card #collectionsPrintModal,
  body.printing-collections-card #collectionsPrintModal * { visibility: visible; }
  body.printing-collections-card .contract-view,
  body.printing-collections-card .student-card-modal:not(#collectionsPrintModal) {
    display: none !important;
  }
  body.printing-collections-card #collectionsPrintModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }

  body.printing-sec-event-card > :not(#secEventCardModal) {
    display: none !important;
  }
  body.printing-sec-event-card * { visibility: hidden; }
  body.printing-sec-event-card #secEventCardModal,
  body.printing-sec-event-card #secEventCardModal * { visibility: visible; }
  body.printing-sec-event-card #secEventCardModal {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }
  body.printing-sec-event-card .student-card-shell {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
  }
  body.printing-sec-event-card .sec-event-card-page {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6mm 8mm !important;
    box-shadow: none !important;
    page-break-inside: auto !important;
    page-break-after: avoid !important;
    break-after: avoid-page !important;
  }
  body.printing-sec-event-card .sec-ev-print__kpis,
  body.printing-sec-event-card .sec-ev-print__summary {
    page-break-inside: avoid;
    break-inside: avoid-page;
  }
  body.printing-sec-event-card .sec-ev-print__table {
    font-size: 8px;
  }
  body.printing-sec-event-card .sec-ev-print__table th,
  body.printing-sec-event-card .sec-ev-print__table td {
    padding: 2px 4px;
  }
  body.printing-sec-event-card .sec-ev-print__table thead {
    display: table-header-group;
  }
  body.printing-sec-event-card .sec-ev-print__table tbody tr {
    page-break-inside: auto;
    break-inside: auto;
  }

  /* Yalnızca açık kart modalı yazdırılır (gizli modallar sayfa üretmesin) */
  .student-card-modal.show,
  .student-card-modal.show * { visibility: visible; }

  .student-card-modal:not(.show) {
    display: none !important;
  }

  body:not(.printing-contract-sheet) .contract-view {
    display: block;
    position: static;
    margin: 0;
  }
  .contract-page {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    padding: 10mm;
    border: 0;
    box-shadow: none;
    page-break-after: always;
  }

  .student-card-modal.show {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }
  .student-card-modal.show .student-card-shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }
  .student-card-modal.show .student-card-toolbar {
    display: none !important;
  }
  .student-card-modal.show .student-card-page,
  .student-card-modal.show .collections-print-page {
    width: 100%;
    max-width: 210mm;
    margin: 0 auto;
    padding: 0;
    border: 0;
    box-shadow: none !important;
    page-break-inside: avoid;
    page-break-after: avoid;
  }
  .student-card-modal.show .student-card-page:not(.collections-print-page):not(.sec-event-card-page):not(.day-end-print-page):not(.student-list-print-page) {
    min-height: 297mm;
    padding: 12mm;
    page-break-after: always;
  }
  .student-card-modal.show .sec-event-card-page {
    min-height: 0 !important;
    height: auto !important;
    padding: 6mm 8mm;
    page-break-inside: avoid;
    page-break-after: avoid;
  }
  .student-card-modal.show .collections-print-page,
  .student-card-modal.show .day-end-print-page,
  .student-card-modal.show .student-list-print-page {
    min-height: 0;
    height: auto;
    padding: 6mm 8mm;
    page-break-inside: avoid;
  }
  .student-card-modal.show .collections-print-page .card-hero,
  .student-card-modal.show .collections-print-page .card-section {
    display: none !important;
  }
  .collections-print-columns {
    page-break-inside: avoid;
  }
  .collections-print-table th,
  .collections-print-table td {
    padding: 1px 2px !important;
    font-size: 7px !important;
  }
  .collections-print-summary > div {
    padding: 4px 6px !important;
  }
  .collections-print-summary strong {
    font-size: 9px !important;
  }
  .personnel-absence-card-table-wrap {
    max-height: none;
    overflow: visible;
  }
  .personnel-absence-card-table th {
    position: static;
  }
  .absence-cal-scroll {
    overflow: visible;
  }
}

@media (max-width: 1280px) {
  .contract-layout {
    grid-template-columns: 1fr;
  }
  .contract-page {
    min-height: auto;
  }
  .student-entry-modern {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
  }
  .contract-photo-wrap {
    position: static;
    top: auto;
    right: auto;
  }
  .student-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .student-fields .wide,
  .student-fields .half {
    grid-column: 1 / -1;
  }
  .student-fields label:nth-last-child(6),
  .student-fields label:nth-last-child(5),
  .student-fields label:nth-last-child(4),
  .student-fields label:nth-last-child(3),
  .student-fields label:nth-last-child(2),
  .student-fields label:nth-last-child(1) {
    grid-column: span 1;
    margin-top: 0;
  }
  .guardian-modern-grid {
    grid-template-columns: 120px repeat(3, minmax(0, 1fr));
  }
  .contract-modern-head {
    flex-wrap: wrap;
  }
  .contract-head-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 1180px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .finance-panel { grid-column: 1 / -1; }
  .payment-setup-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sidebar { position: static; width: auto; min-height: auto; z-index: auto; }
  .main { margin-left: 0; padding: 22px 14px; }
  .topbar { flex-wrap: wrap; align-items: stretch; }
  .topbar__actions { border-left: 0; padding-left: 0; margin-left: 0; width: 100%; }
  .topbar__actions > .actions { flex-wrap: wrap; }
  .grid, .two, .payment-row { grid-template-columns: 1fr; }
  .payment-setup-grid { grid-template-columns: 1fr; }
  .bond-row { grid-template-columns: 1fr; }
  .bond-row label:first-child,
  .bond-row label:nth-child(2),
  .bond-row label:nth-child(3) { grid-column: 1 / -1; max-width: none; }
  .student-entry-modern {
    grid-template-columns: 1fr;
  }
  .contract-photo-wrap {
    justify-self: start;
  }
  .student-fields {
    grid-template-columns: 1fr;
  }
  .student-fields .wide,
  .student-fields .half,
  .student-fields label:nth-last-child(-n + 6) {
    grid-column: 1 / -1;
  }
  .guardian-modern-grid {
    grid-template-columns: 1fr;
  }
  .guardian-modern-grid > span {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
  }
  .guardian-modern-grid > span:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .guardian-modern-grid > strong {
    display: none;
  }
  .contract-fee-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .contract-status-band {
    grid-template-columns: 1fr;
  }
}

/* ——— Yetkiler (rol × işlem) ——— */
.permissions-view .permissions-toolbar-panel {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 6px 8px;
  align-items: end;
}
.permissions-role-field,
.permissions-sim-field {
  display: grid;
  gap: 3px;
  max-width: none;
}
.permissions-role-field {
  grid-column: 1 / span 4;
}
.permissions-select {
  min-height: 30px;
  border-radius: 7px;
  border: 1px solid #c9d7ea;
  padding: 0 8px;
  font-weight: 600;
  font-size: 10px;
  background: #fff;
  color: #0f172a;
}
.permissions-bulk {
  grid-column: 10 / -1;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.permissions-copy-row {
  grid-column: 5 / span 5;
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  align-items: flex-end;
}
.permissions-copy-row .label-text {
  width: auto;
  min-width: 132px;
  font-weight: 700;
  font-size: 10px;
  color: #475569;
  padding-bottom: 8px;
}
.permissions-copy-row #permissionCopyFromSelect {
  flex: 1 1 auto;
}
.permissions-copy-row #permissionCopyApply {
  flex: 0 0 auto;
}
@media (max-width: 1120px) {
  .permissions-role-field { grid-column: 1 / span 6; }
  .permissions-copy-row { grid-column: 7 / span 6; }
  .permissions-bulk { grid-column: 1 / -1; justify-content: flex-start; }
  .permissions-copy-row { flex-wrap: wrap; }
  .permissions-copy-row .label-text { width: 100%; padding-bottom: 0; min-width: 0; }
}
.permissions-matrix-host {
  margin-top: 6px;
  display: grid;
  gap: 4px;
}
.permissions-view .permission-group {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.permissions-view .permission-group-summary {
  font-weight: 700;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  padding: 4px 8px;
  margin: 0;
  background: linear-gradient(180deg, #f1f5f9 0%, #e8eef6 100%);
  border-bottom: 1px solid #dbeafe;
  color: #334155;
}
.permissions-view .permission-group-body {
  padding: 4px 6px 5px;
}
.permission-matrix-wrap {
  overflow: auto;
}
.permissions-view .permission-matrix-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid #e8eef4;
  border-radius: 6px;
  background: #fff;
}
.permissions-view .permission-matrix-table thead th {
  background: #fafbfd;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 2px 3px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
}
.permissions-view .permission-matrix-table th,
.permissions-view .permission-matrix-table td {
  border-bottom: 1px solid #f1f5f9;
  padding: 1px 3px;
  font-size: 9px;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
}
.permissions-view .permission-matrix-table tbody tr {
  height: auto;
}
.permissions-view .permission-matrix-table tbody tr:last-child th,
.permissions-view .permission-matrix-table tbody tr:last-child td {
  border-bottom: 0;
}
.permissions-view .permission-matrix-table tbody th {
  text-align: left;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}
.permissions-view .permission-matrix-cell input {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  accent-color: #2f7cf6;
  outline: none;
  box-shadow: none;
  border: 0;
}
.permissions-view .permission-matrix-cell input:focus,
.permissions-view .permission-matrix-cell input:focus-visible,
.permissions-view .permission-matrix-cell input:active {
  outline: none;
  box-shadow: none;
}
.permissions-view .permission-matrix-cell--empty {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 8px;
}
.permissions-empty {
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}
.nav a.nav-link-hidden,
.nav details.nav-group-hidden {
  display: none !important;
}
button.perm-hidden,
.btn.perm-hidden,
a.perm-hidden {
  display: none !important;
}
.permission-module-row th {
  font-weight: 700;
  color: #0f172a;
}
.permission-module-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1e40af;
  cursor: pointer;
}
.permission-matrix-cell--module {
  background: #eff6ff;
}

/* ——— Sistem kayıtları ——— */
.audit-log-view .audit-inline-code {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.audit-log-filters select {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid #c9d7ea;
  padding: 0 10px;
  font-weight: 600;
}
.audit-log-table .audit-summary {
  font-weight: 600;
  color: #0f172a;
}
.audit-log-table .audit-detail {
  margin-top: 4px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
  white-space: pre-wrap;
}
.audit-action-code {
  font-size: 11px;
  background: #f8fafc;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.audit-pagination-inner .audit-page-hint {
  margin-left: 10px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

/* ——— Login ——— */
body.login-active {
  overflow: hidden;
  height: 100vh;
}

body.app-booting .main {
  visibility: hidden;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: #0f172a;
  isolation: isolate;
}

.login-screen.is-hidden {
  display: none !important;
}

.login-screen__ambient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 700px at 12% 18%, rgba(47, 125, 246, 0.35), transparent 55%),
    radial-gradient(900px 540px at 88% 12%, rgba(23, 100, 220, 0.28), transparent 50%),
    radial-gradient(700px 500px at 70% 92%, rgba(100, 168, 255, 0.2), transparent 55%),
    linear-gradient(165deg, #e8effb 0%, #edf2f7 38%, #dce8f9 100%);
  z-index: 0;
}

.login-screen__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, black 20%, transparent 70%);
}

.login-screen__corner-brand {
  position: absolute;
  top: clamp(16px, 3vw, 28px);
  right: clamp(16px, 3vw, 32px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  backdrop-filter: blur(14px);
}

.login-screen__corner-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.12));
}

.login-screen__corner-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #0f172a;
}

.login-screen__layout {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1040px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.login-screen__hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(8px, 2vw, 24px);
}

.login-screen__hero-logo {
  display: block;
  width: 100%;
  max-width: min(440px, 100%);
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 42px rgba(15, 23, 42, 0.12));
}

.login-screen__card-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(147, 197, 253, 0.55);
  box-shadow: 0 6px 18px rgba(47, 125, 246, 0.1);
}

.login-screen__card-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(145deg, #4f9dff, var(--blue-dark));
  box-shadow: 0 0 0 4px rgba(47, 125, 246, 0.18);
}

.login-screen__card-wrap {
  perspective: 1200px;
}

.login-screen__card {
  padding: clamp(28px, 4vw, 36px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  backdrop-filter: blur(18px);
  animation: login-card-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes login-card-in {
  from {
    opacity: 0;
    transform: translateY(22px) rotateX(6deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
  }
}

.login-screen__card-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.login-screen__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(47, 125, 246, 0.28));
}

.login-screen__headline {
  margin: 8px 0 0;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.login-screen__form {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.login-screen__field {
  display: grid;
  gap: 6px;
}

.login-screen__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}

.login-screen__field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--field-border);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-screen__field input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.login-screen__field input:hover {
  border-color: #b8c6da;
}

.login-screen__field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 125, 246, 0.18);
}

.login-screen__forgot-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 2px;
}

.login-screen__forgot {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-screen__forgot:hover {
  color: #1d4ed8;
}

.login-screen__forgot:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
  border-radius: 4px;
}

.login-screen__forgot-hint {
  margin: 0 0 6px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  color: #1e40af;
  text-align: center;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
}

.login-screen__remember {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.login-screen__remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.login-screen__error {
  min-height: 18px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #b91c1c;
}

.login-screen--error .login-screen__field input {
  border-color: rgba(185, 28, 28, 0.45);
}

.login-screen__submit {
  margin-top: 4px;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(165deg, #4f93ff 0%, var(--blue) 42%, var(--blue-dark) 100%);
  box-shadow:
    0 14px 32px rgba(47, 125, 246, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.25) inset;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-screen__submit svg {
  width: 18px;
  height: 18px;
}

.login-screen__submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow:
    0 18px 40px rgba(47, 125, 246, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.login-screen__submit:active {
  transform: translateY(0);
}

.login-screen__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 6px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-screen__divider::before,
.login-screen__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
}

.login-screen__setup-hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
  font-weight: 500;
  text-align: center;
}

.login-screen__setup-btn {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px dashed #93b4e8;
  background: rgba(47, 125, 246, 0.06);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.login-screen__setup-btn:hover {
  background: rgba(47, 125, 246, 0.11);
  border-color: var(--blue);
}

.login-screen__creator-credit {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12px;
  color: #334155;
  font-weight: 600;
  letter-spacing: 0.03em;
}

@keyframes login-shake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-10px); }
  36% { transform: translateX(10px); }
  54% { transform: translateX(-6px); }
  72% { transform: translateX(6px); }
}

.login-screen--shake .login-screen__card {
  animation: login-shake 0.48s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@media (prefers-reduced-motion: reduce) {
  .login-screen__card {
    animation: none;
  }
  .login-screen--shake .login-screen__card {
    animation: none;
  }
  .login-screen__submit:hover {
    transform: none;
  }
}

@media (max-width: 880px) {
  .login-screen__layout {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .login-screen__hero {
    order: 2;
    padding-bottom: 8px;
  }
  .login-screen__hero-logo {
    max-width: min(320px, 88vw);
  }
  .login-screen__card-wrap {
    order: 1;
  }
}

/* —— Takvim (Eğitim Yönetimi) —— */
#calendarView .calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 20px;
  margin-top: 12px;
}
#calendarView .calendar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#calendarView .calendar-month-title {
  margin: 0;
  min-width: 160px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
#calendarView .calendar-view-mode {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.85);
}
#calendarView .calendar-mode-btn {
  margin: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.2;
}
#calendarView .calendar-mode-btn:hover {
  background: rgba(37, 99, 235, 0.06);
}
#calendarView .calendar-mode-btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 1px;
}
#calendarView .calendar-mode-btn.is-active {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(239, 246, 255, 0.96);
  color: #1d4ed8;
}
#calendarView .calendar-layers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.85);
}
#calendarView .calendar-layers-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 4px;
}
#calendarView .calendar-institution-filter {
  min-width: 200px;
  flex: 1;
}

/* Öğretim haftaları (Eğitim Yönetimi) */
.teaching-weeks-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.teaching-weeks-hint.teaching-weeks-hint--warn {
  color: #b45309;
  font-weight: 600;
}
.teaching-weeks-toolbar {
  margin-top: 12px;
}
#teachingWeeksView .teaching-weeks-table {
  table-layout: fixed;
}
#teachingWeeksView .teaching-weeks-col-no {
  width: 52px;
  max-width: 52px;
  padding-left: 8px;
  padding-right: 4px;
  text-align: center;
}
#teachingWeeksView td.teaching-weeks-col-no {
  vertical-align: middle;
}
#teachingWeeksView .tw-week-no {
  box-sizing: border-box;
  width: 100%;
  max-width: 46px;
  margin: 0 auto;
  display: block;
  padding: 4px 4px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
#teachingWeeksView .teaching-weeks-col-actions {
  width: 44px;
  padding-left: 4px;
  padding-right: 4px;
}
#teachingWeeksView .teaching-weeks-del {
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  border-radius: 8px;
}
.annual-plan-hint {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.annual-plan-hint.annual-plan-hint--warn {
  color: #b45309;
  font-weight: 600;
}
.annual-plan-toolbar {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
}
.annual-plan-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}
.annual-plan-toolbar select {
  min-width: 200px;
}
.annual-plan-subheading {
  margin: 20px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.annual-plan-list-wrap {
  margin-bottom: 8px;
}
#annualPlanView .annual-plan-list-actions-col {
  width: 200px;
  white-space: nowrap;
}
#annualPlanView .annual-plan-list-table tr.is-editing td {
  background: rgba(59, 130, 246, 0.08);
}
#annualPlanView .annual-plan-list-table tr.is-editing td:first-child {
  box-shadow: inset 3px 0 0 #3b82f6;
}
#annualPlanView .annual-plan-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.annual-plan-editor-toolbar .annual-plan-title-field {
  flex: 1 1 220px;
  min-width: 200px;
}
.annual-plan-editor-toolbar input[type="text"] {
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
}
.annual-plan-class-block {
  margin-top: 12px;
}
.annual-plan-class-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.45);
}
.annual-plan-class-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}
.annual-plan-class-empty {
  font-size: 13px;
  color: var(--muted);
}
.annual-plan-save-row {
  margin-top: 12px;
}
#annualPlanView .annual-plan-table {
  table-layout: fixed;
}
#annualPlanView .annual-plan-table thead th {
  white-space: normal;
  vertical-align: bottom;
  line-height: 1.28;
}
#annualPlanView .annual-plan-th-main {
  display: block;
  font-weight: 800;
}
#annualPlanView .annual-plan-th-sub {
  display: block;
  margin-top: 2px;
  font-weight: 600;
  font-size: 9px;
  color: #94a3b8;
  line-height: 1.3;
}
#annualPlanView .annual-plan-col-topic {
  min-width: 160px;
}
#annualPlanView .annual-plan-col-hours {
  width: 96px;
}
#annualPlanView .annual-plan-col-actions-head {
  width: 44px;
}
#annualPlanView .annual-plan-col-actions {
  width: 44px;
  text-align: center;
  vertical-align: middle;
}
#annualPlanView .ap-remove-line {
  min-width: 32px;
}
#annualPlanView .ap-week-footer td {
  padding-top: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
#annualPlanView .annual-plan-col-no {
  width: 48px;
  text-align: center;
  font-weight: 600;
}
#annualPlanView .ap-foy {
  width: 100%;
  box-sizing: border-box;
}
#annualPlanView .ap-hours {
  width: 100%;
  max-width: 88px;
  box-sizing: border-box;
}
.pre-reg-count {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85em;
}
.pre-reg-actions-cell {
  white-space: nowrap;
}
#preRegistrationListView .student-table td:last-child .row-actions {
  flex-wrap: nowrap;
}
#preRegistrationListView .student-table td:last-child .row-actions button {
  min-width: 28px;
  min-height: 28px;
}
#preRegistrationListView .student-table td:last-child .row-actions button svg {
  width: 12px;
  height: 12px;
}
#preRegistrationListView .pre-reg-actions-cell {
  min-width: 118px;
}
.pre-reg-card-interviews-section .pre-reg-card-table-wrap {
  overflow-x: auto;
  margin-top: 6px;
}
.pre-reg-card-interviews-table {
  table-layout: fixed;
  min-width: 100%;
}
.pre-reg-card-interviews-table th:nth-child(1),
.pre-reg-card-interviews-table td:nth-child(1) {
  width: 36px;
}
.pre-reg-card-interviews-table th:nth-child(2),
.pre-reg-card-interviews-table td:nth-child(2) {
  width: 92px;
}
.pre-reg-card-interviews-table th:nth-child(3),
.pre-reg-card-interviews-table td:nth-child(3) {
  width: 120px;
}
.pre-reg-card-interviews-table th:nth-child(5),
.pre-reg-card-interviews-table td:nth-child(5) {
  width: 80px;
  min-width: 80px;
}
.pre-reg-card-interviews-table .row-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}
.pre-reg-card-note-cell {
  max-width: 280px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 11px;
  line-height: 1.4;
}
.pre-reg-note-cell {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Ön görüşme formu — kompakt kart */
#preRegistrationFormView.pre-reg-form-sheet {
  display: block;
  padding: 8px 12px 20px;
  background: transparent;
  box-shadow: none;
  border: 0;
}
#preRegistrationFormView .pre-reg-form-wrap {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}
#preRegistrationFormView .pre-reg-form-card {
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
#preRegistrationFormView .pre-reg-form-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
#preRegistrationFormView .pre-reg-institution-top {
  flex: 1;
  min-width: 0;
  max-width: 320px;
  margin: 0;
  gap: 4px;
  font-size: 10.5px;
}
#preRegistrationFormView .pre-reg-institution-top select {
  min-height: 32px;
  font-size: 12px;
}
#preRegistrationFormView .label-hint {
  font-weight: 500;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: 0;
}
#preRegistrationFormView .pre-reg-inhouse-below {
  margin: 2px 0 6px;
  padding-bottom: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#preRegistrationFormView .pre-reg-form-body {
  padding: 10px 14px 12px;
}
#preRegistrationFormView .pre-reg-section-title {
  margin: 10px 0 6px;
  padding: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  border: 0;
}
#preRegistrationFormView .pre-reg-form-body > .pre-reg-section-title:first-child {
  margin-top: 0;
}
#preRegistrationFormView .pre-reg-fields {
  display: grid;
  gap: 6px 10px;
  margin-bottom: 4px;
}
#preRegistrationFormView .pre-reg-fields--2 {
  grid-template-columns: 1fr 1fr;
}
#preRegistrationFormView .pre-reg-fields--3 {
  grid-template-columns: 1fr 1fr 1fr;
}
#preRegistrationFormView .pre-reg-fields--4 {
  grid-template-columns: 1.1fr 0.85fr 1.4fr auto;
  align-items: end;
}
#preRegistrationFormView .pre-reg-span-2 {
  grid-column: span 2;
}
#preRegistrationFormView .pre-reg-full {
  display: grid;
  gap: 4px;
  margin: 0 0 4px;
}
#preRegistrationFormView .pre-reg-inhouse-check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
#preRegistrationFormView .pre-reg-form-body label {
  margin-top: 0;
  gap: 3px;
  font-size: 10.5px;
}
#preRegistrationFormView .pre-reg-form-body input,
#preRegistrationFormView .pre-reg-form-body select,
#preRegistrationFormView .pre-reg-form-body textarea {
  min-height: 30px;
  font-size: 12px;
  padding-inline: 8px;
}
#preRegistrationFormView .pre-reg-notes {
  min-height: 88px;
  resize: vertical;
}
#preRegistrationFormView .pre-reg-family-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 10px;
  margin-bottom: 4px;
}
#preRegistrationFormView .pre-reg-family-col {
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fafbfc;
}
#preRegistrationFormView .pre-reg-family-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
}
#preRegistrationFormView .pre-reg-copy-link {
  border: 0;
  padding: 0;
  min-height: auto;
  background: transparent;
  color: var(--blue);
  font-size: 9.5px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  box-shadow: none;
}
#preRegistrationFormView .pre-reg-copy-link:hover {
  color: #1d4ed8;
  background: transparent;
}
#preRegistrationFormView .pre-reg-form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}
#preRegistrationFormView .pre-reg-prior-panel {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  background: rgba(59, 130, 246, 0.06);
}
@media (max-width: 720px) {
  #preRegistrationFormView .pre-reg-fields--4,
  #preRegistrationFormView .pre-reg-fields--3,
  #preRegistrationFormView .pre-reg-family-cols,
  #preRegistrationFormView .pre-reg-fields--2 {
    grid-template-columns: 1fr;
  }
  #preRegistrationFormView .pre-reg-span-2 {
    grid-column: span 1;
  }
}
.pre-reg-prior-panel {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(59, 130, 246, 0.06);
}
.pre-reg-prior-panel h4 {
  margin: 0 0 8px;
  font-size: 13px;
}
.pre-reg-prior-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.45;
}
.pre-reg-prior-list li {
  margin-bottom: 8px;
}
.pre-reg-card-page .pre-reg-card-head h3 {
  margin: 0 0 6px;
}
.pre-reg-card-item {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}
.pre-reg-card-item-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 6px;
  font-size: 13px;
}
.pre-reg-card-who {
  color: var(--muted);
}
#calendarView .calendar-notes-field {
  grid-column: 1 / -1;
}
#calendarView .class-form {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

#calendarView .calendar-shell {
  --calendar-row-height: 116px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}
#calendarView .calendar-shell--week {
  --calendar-row-height: 128px;
}
#calendarView .calendar-shell--year {
  overflow-x: auto;
}
#calendarView .calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
#calendarView .calendar-wd {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
#calendarView .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: var(--calendar-row-height);
  gap: 6px;
  align-items: stretch;
}
#calendarView .calendar-grid--week {
  grid-auto-rows: var(--calendar-row-height);
}
#calendarView .calendar-cell {
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 5px 6px;
  background: rgba(248, 250, 252, 0.65);
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}
#calendarView .calendar-cell--day {
  align-items: stretch;
}
#calendarView .calendar-cell--pad {
  border-color: transparent;
  background: transparent;
  height: 100%;
  min-height: 0;
}
#calendarView .calendar-cell--weekend {
  background: rgba(241, 245, 249, 0.95);
}
#calendarView .calendar-cell--today {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.12);
  background: rgba(239, 246, 255, 0.92);
}
#calendarView .calendar-day-head {
  flex-shrink: 0;
}
#calendarView .calendar-day-num-btn {
  border: 0;
  background: transparent;
  padding: 2px 4px;
  margin: -2px -4px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 6px;
  line-height: 1.2;
  text-align: left;
  color: var(--ink);
}
#calendarView .calendar-day-num-btn:hover {
  background: rgba(37, 99, 235, 0.08);
}
#calendarView .calendar-day-num-btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 1px;
}
#calendarView .calendar-day-num-btn.calendar-day-num--public {
  color: #dc2626;
}
#calendarView .calendar-day-num-btn.calendar-day-num--religious:not(.calendar-day-num--public) {
  color: #c2410c;
}
#calendarView .calendar-cell--today .calendar-day-num-btn:not(.calendar-day-num--public):not(.calendar-day-num--religious) {
  color: #1d4ed8;
}
#calendarView .calendar-cell--today .calendar-day-num-btn.calendar-day-num--public {
  color: #dc2626;
}

#calendarView .calendar-day-lines {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  margin-top: 1px;
}
#calendarView .calendar-day-line {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  min-height: 15px;
  max-height: 15px;
  font-size: 10px;
  line-height: 1;
  color: #334155;
}
#calendarView .calendar-day-line .calendar-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
}
#calendarView .calendar-dot--academic { background: #2563eb; }
#calendarView .calendar-dot--event { background: #7c3aed; }
#calendarView .calendar-dot--public { background: #dc2626; }
#calendarView .calendar-dot--religious { background: #d97706; }
#calendarView .calendar-dot--default { background: #64748b; }
#calendarView .calendar-day-line-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#calendarView .calendar-day-line--public .calendar-day-line-title { color: #b91c1c; font-weight: 600; }
#calendarView .calendar-day-line--religious .calendar-day-line-title { color: #9a3412; font-weight: 600; }
#calendarView .calendar-day-line--academic .calendar-day-line-title { color: #1e40af; }
#calendarView .calendar-day-line--event .calendar-day-line-title { color: #5b21b6; }
#calendarView .calendar-day-overflow {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Gün detay kartı */
#calendarView .calendar-day-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
#calendarView .calendar-day-modal.is-hidden {
  display: none;
}
#calendarView .calendar-day-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
#calendarView .calendar-day-modal__dialog {
  position: relative;
  width: min(440px, 100%);
  max-height: min(72vh, 560px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow:
    0 22px 48px rgba(15, 23, 42, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
}
#calendarView .calendar-day-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}
#calendarView .calendar-day-modal__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  padding-right: 8px;
}
#calendarView .calendar-day-modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.95);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
#calendarView .calendar-day-modal__close:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}
#calendarView .calendar-day-modal__body {
  padding: 12px 16px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#calendarView .calendar-day-modal-empty {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
#calendarView .calendar-day-modal-item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.65);
}
#calendarView .calendar-day-modal-item__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
#calendarView .calendar-day-modal-item__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
#calendarView .calendar-day-modal-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
#calendarView .calendar-day-modal-notes {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
}
#calendarView .calendar-day-modal-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
#calendarView .calendar-day-modal-pill--public {
  background: rgba(254, 226, 226, 0.95);
  color: #991b1b;
}
#calendarView .calendar-day-modal-pill--religious {
  background: rgba(255, 237, 213, 0.95);
  color: #9a3412;
}
#calendarView .calendar-day-modal-pill--academic {
  background: rgba(219, 234, 254, 0.95);
  color: #1e40af;
}
#calendarView .calendar-day-modal-pill--event {
  background: rgba(237, 233, 254, 0.95);
  color: #5b21b6;
}
#calendarView .calendar-day-modal-pill--default {
  background: rgba(241, 245, 249, 0.95);
  color: #475569;
}
#calendarView .calendar-list-notes {
  max-width: 220px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#calendarView .calendar-subtype-hint {
  color: var(--muted);
  font-weight: 500;
}

#calendarView .calendar-year-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 12px;
}
#calendarView .calendar-mini-month {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
}
#calendarView .calendar-mini-month__title {
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}
#calendarView .calendar-mini-month__wd {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
#calendarView .calendar-mini-month__wd-cell {
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
}
#calendarView .calendar-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 46px;
  gap: 3px;
}
#calendarView .calendar-cell--mini {
  padding: 3px 4px;
  gap: 2px;
}
#calendarView .calendar-cell--mini-pad {
  min-height: 0;
}
#calendarView .calendar-cell--mini .calendar-day-num-btn {
  font-size: 11px;
  padding: 1px 2px;
  margin: -1px -2px;
}
#calendarView .calendar-cell--mini .calendar-day-line {
  min-height: 12px;
  max-height: 12px;
  font-size: 8px;
  gap: 3px;
}
#calendarView .calendar-cell--mini .calendar-day-line .calendar-dot {
  width: 5px;
  height: 5px;
}
#calendarView .calendar-cell--mini .calendar-day-overflow {
  font-size: 8px;
}

#calendarView .student-table .row-actions--calendar {
  gap: 4px;
}

@media (max-width: 720px) {
  #calendarView .calendar-shell {
    --calendar-row-height: 92px;
  }
  #calendarView .calendar-cell {
    padding: 4px;
  }
  #calendarView .calendar-day-line {
    font-size: 9px;
    min-height: 14px;
    max-height: 14px;
  }
}

/* ——— Tahsilatlar / Cari kart ——— */
.collections-view { display: grid; gap: 10px; }
.collections-view .panel {
  height: auto;
  min-height: 0;
  padding: 12px 14px;
}
.collections-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 8px 12px;
}
.collections-search-label { flex: 1 1 320px; min-width: 200px; margin-top: 0; }
.collections-search-wrap { position: relative; }
.collections-search-label .label-text { margin-top: 0; }
.collections-student-search {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  background: #fff;
}
.collections-dashboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.collections-top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.collections-top-grid .collections-student-block,
.collections-top-grid .collections-finance-block {
  padding: 8px 10px;
  min-height: 0;
}
#collectionsStudentCard.collections-student-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 6px;
  align-content: start;
}
#collectionsStudentCard > .collections-student-detail__head {
  grid-column: 1 / -1;
}
#collectionsStudentCard > .collections-student-detail__facts {
  grid-column: 1;
  margin-bottom: 0;
}
#collectionsStudentCard > .collections-family {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}
.collections-student-block {
  background: linear-gradient(135deg, #f8fbff 0%, #fff 55%);
  border-color: #c7d9f5;
}
.collections-finance-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}
.collections-finance-block .panel-head--compact {
  margin-bottom: 6px;
}
.collections-student-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.collections-student-detail__title strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  color: #0f172a;
}
.collections-student-detail__meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 10px 14px;
  margin-top: 4px;
  min-width: 0;
}
.collections-student-detail__meta .card-status-nums {
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 10px 14px;
}
.collections-student-detail__meta .student-record-ref {
  display: inline-flex;
}
.collections-student-detail__meta .student-record-ref__label,
.collections-student-detail__meta .student-record-ref__value {
  display: inline;
  font-size: 11px;
}
.collections-student-detail__school {
  color: #64748b;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.collections-student-detail__head .btn-sm {
  min-height: 26px;
  padding: 0 8px;
  font-size: 10px;
  white-space: nowrap;
}
.collections-student-detail__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
  margin: 0 0 6px;
  padding: 0;
}
.collections-student-detail__facts > div {
  margin: 0;
  min-width: 0;
}
.collections-student-detail__facts dt {
  margin: 0 0 2px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.collections-student-detail__facts dd {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
  word-break: break-word;
}
.collections-student-detail__address {
  grid-column: 1 / -1;
}
.collections-student-detail__address dd {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.collections-family__label {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.collections-family__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.collections-family__row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 8px;
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  min-width: 0;
  min-height: 0;
}
.collections-family__row--primary {
  border-color: #bfdbfe;
  background: #f8fbff;
}
.collections-family__role {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  color: #3b82f6;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.collections-family__veli {
  padding: 1px 5px;
  border-radius: 4px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.collections-family__hint {
  color: #64748b;
  font-size: 8px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.collections-family__name {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
  color: #1e293b;
  word-break: break-word;
  min-width: 0;
}
.collections-family__phone {
  color: #0f766e;
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}
.collections-family__phone--empty {
  color: #94a3b8;
}
.collections-family__phone:hover { text-decoration: underline; }
.panel-head--finance {
  align-items: center;
}
.collections-role-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
}
.collections-role-badge[data-role="debtor"] { background: #fee2e2; color: #b91c1c; }
.collections-role-badge[data-role="creditor"] { background: #d1fae5; color: #047857; }
.collections-role-badge[data-role="settled"] { background: #f1f5f9; color: #64748b; }
.collections-finance-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  flex: 1;
  min-height: 0;
  align-content: stretch;
}
.collections-finance-metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid #e8ecf2;
  background: #fff;
  min-width: 0;
  min-height: 42px;
}
.collections-finance-metric span {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}
.collections-finance-metric strong {
  font-size: 15px;
  line-height: 1.15;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  white-space: nowrap;
}
.collections-finance-metric--paid strong { color: #059669; }
.collections-finance-metric--balance {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fffbfb 0%, #fff 100%);
}
.collections-finance-metric--balance strong { color: #dc2626; }
.collections-finance-metric--balance strong[data-sign="credit"] { color: #059669; }
.collections-finance-metric--balance strong[data-sign="zero"] { color: #64748b; }
.collections-tables-grid .collections-table {
  table-layout: fixed;
  width: 100%;
}
.collections-tables-grid .collections-table th,
.collections-tables-grid .collections-table td {
  padding: 5px 7px;
  font-size: 10px;
  line-height: 1.2;
  height: 30px;
  max-height: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.collections-tables-grid .collections-table tbody tr {
  height: 30px;
}
.collections-plan-table th:nth-child(1),
.collections-plan-table td:nth-child(1),
.collections-ledger-table th:nth-child(1),
.collections-ledger-table td:nth-child(1) { width: 4%; }
.collections-plan-table th:nth-child(2),
.collections-plan-table td:nth-child(2),
.collections-ledger-table th:nth-child(2),
.collections-ledger-table td:nth-child(2) { width: 20%; }
.collections-plan-table th:nth-child(3),
.collections-plan-table td:nth-child(3),
.collections-ledger-table th:nth-child(3),
.collections-ledger-table td:nth-child(3) { width: 14%; }
.collections-plan-table th:nth-child(4),
.collections-plan-table td:nth-child(4),
.collections-ledger-table th:nth-child(4),
.collections-ledger-table td:nth-child(4) { width: 14%; }
.collections-plan-table th:nth-child(5),
.collections-plan-table td:nth-child(5),
.collections-ledger-table th:nth-child(5),
.collections-ledger-table td:nth-child(5) { width: 14%; }
.collections-plan-table th:nth-child(6),
.collections-plan-table td:nth-child(6),
.collections-ledger-table th:nth-child(6),
.collections-ledger-table td:nth-child(6) { width: 18%; }
.collections-plan-table th:nth-child(7),
.collections-plan-table td:nth-child(7),
.collections-ledger-table th:nth-child(7),
.collections-ledger-table td:nth-child(7) { width: 16%; }
.collections-ledger-table td.collections-ledger-actions {
  overflow: visible;
  text-align: right;
}
.collections-ledger-table td.collections-ledger-actions .row-actions {
  justify-content: flex-end;
}
.collections-ledger-row { display: table-row; }
.collections-tables-grid .status-pill {
  min-height: 18px;
  padding: 0 6px;
  font-size: 10px;
  line-height: 1;
}
#collectionsView .collections-form-panel--primary .panel-desc {
  color: #64748b;
}
.collections-print-page {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 9px;
  line-height: 1.25;
  color: #0f172a;
}
.collections-print-head {
  margin-bottom: 2px;
  padding-bottom: 6px;
}
.collections-print-head .card-title h2 {
  font-size: 13px;
}
.collections-print-head .card-brand img {
  height: 22px;
}
.collections-print-student {
  margin: 0;
  padding: 6px 8px;
  border: 1px solid #d7e0ec;
  border-radius: 6px;
  background: #f8fafc;
}
.collections-print-student__line {
  margin: 0 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
  font-size: 9px;
}
.collections-print-student__line strong {
  font-size: 11px;
}
.collections-print-student__line span {
  color: #475569;
}
.collections-print-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: start;
}
.collections-print-col__title {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  color: #0f172a;
}
.collections-print-col__title em {
  font-style: normal;
  font-weight: 500;
  color: #64748b;
  font-size: 8px;
}
.collections-print-col__meta {
  margin: 0 0 3px;
  font-size: 8px;
  color: #475569;
}
.collections-print-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 8px;
}
.collections-print-table th,
.collections-print-table td {
  padding: 2px 3px;
  border: 1px solid #d7e0ec;
  vertical-align: top;
  word-break: break-word;
}
.collections-print-table th {
  background: #eef2f7;
  font-weight: 600;
  font-size: 7.5px;
}
.collections-print-table td.num,
.collections-print-table th.num {
  text-align: right;
  white-space: nowrap;
}
.collections-print-table--guardian td:first-child {
  width: 22%;
}
.collections-print-table tfoot td {
  font-weight: 700;
  background: #f1f5f9;
}
.collections-print-summary-wrap {
  margin-top: 2px;
}
.collections-print-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.collections-print-summary > div {
  padding: 6px 8px;
  border: 1px solid #d7e0ec;
  border-radius: 6px;
  background: #fff;
  text-align: center;
}
.collections-print-summary span {
  display: block;
  margin-bottom: 2px;
  font-size: 7.5px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.collections-print-summary strong {
  display: block;
  font-size: 11px;
  line-height: 1.2;
}
.collections-print-summary em {
  display: block;
  margin-top: 2px;
  font-size: 7px;
  font-style: normal;
  color: #64748b;
}
.collections-print-summary__paid {
  color: #15803d;
}
.collections-print-summary__balance {
  color: #b45309;
}
.collections-print-page--compact {
  font-size: 8px;
  gap: 6px;
}
.collections-print-page--compact .collections-print-table {
  font-size: 7.5px;
}
.collections-print-page--compact .collections-print-table th,
.collections-print-page--compact .collections-print-table td {
  padding: 1px 2px;
}
.collections-print-page--dense {
  font-size: 7.5px;
  gap: 4px;
}
.collections-print-page--dense .collections-print-student {
  padding: 4px 6px;
}
.collections-print-page--dense .collections-print-summary strong {
  font-size: 10px;
}
.collections-print-footer {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #d7e0ec;
  color: #64748b;
  font-size: 7px;
  text-align: right;
}
.card-mini-table tfoot td {
  font-weight: 700;
  background: #f8fafc;
}
.panel-head--compact {
  margin-bottom: 8px;
  gap: 8px;
}
.panel-head--compact h2 { margin: 0; font-size: 14px; }
.panel-head--compact .panel-desc { font-size: 11px; }
.collections-form { margin-top: 0; }
.collections-form-grid--toolbar {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
  align-items: end;
}
.collections-form-grid--toolbar label { margin-top: 0; gap: 3px; }
.collections-form-grid--toolbar .label-text { font-size: 10px; }
.collections-form-grid--toolbar input,
.collections-form-grid--toolbar select {
  min-height: 32px;
  font-size: 12px;
}
.collections-form-note { grid-column: span 2; }
.collections-form-submit {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.collections-form-submit .btn { width: 100%; min-height: 32px; white-space: nowrap; }
.collections-tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-height: 0;
}
.collections-scroll-table {
  overflow: visible;
}
.collections-plan-panel { border: 1px solid #bfdbfe; }
.collections-plan-panel,
.collections-history-panel {
  display: flex;
  flex-direction: column;
}
.collections-plan-panel .collections-scroll-table,
.collections-history-panel .collections-scroll-table {
  flex: none;
  min-height: 0;
  max-height: none;
}
.crm-quick-search-results,
.collections-search-results {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.crm-quick-search-item,
.collections-search-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.crm-quick-search-item:hover,
.collections-search-item:hover { background: #f0f6ff; }
.crm-quick-search-item__text {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.crm-quick-search-empty,
.collections-search-empty {
  padding: 10px;
  color: var(--muted);
  font-size: 11px;
}
.collections-empty {
  padding: 14px;
  color: var(--muted);
  text-align: center;
}
.collections-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.collections-form-span { grid-column: 1 / -1; }
.collections-form-actions { margin-top: 12px; }
.collections-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.collections-kpi {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.collections-kpi span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.collections-kpi strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}
.collections-kpi--balance strong[data-sign="debit"] { color: #dc2626; }
.collections-kpi--balance strong[data-sign="credit"] { color: #059669; }
#collectionsBalanceRole[data-role="debtor"] { color: #dc2626; }
#collectionsBalanceRole[data-role="creditor"] { color: #059669; }
#collectionsBalanceRole[data-role="settled"] { color: #64748b; }
.collections-table .num { text-align: right; white-space: nowrap; }
.plan-row--paid { background: #f0fdf4; }
.plan-row--partial { background: #fffbeb; }
.plan-row--open { background: #fff; }
.plan-row--current {
  background: #fef2f2 !important;
  box-shadow: inset 3px 0 0 #ef4444;
}
.collections-plan-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 11px;
  color: var(--muted);
}
.collections-plan-summary strong { color: var(--text); }
@media (max-width: 1200px) {
  .collections-top-grid { grid-template-columns: 1fr; }
  .collections-form-grid--toolbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .collections-form-note { grid-column: span 2; }
  .collections-form-submit { grid-column: span 2; }
}
@media (max-width: 900px) {
  .collections-tables-grid { grid-template-columns: 1fr; }
  .collections-form-grid--toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collections-form-note,
  .collections-form-submit { grid-column: 1 / -1; }
  .collections-family__row { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .collections-student-detail__facts { grid-template-columns: 1fr 1fr; }
  .collections-student-detail__address { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .collections-form-grid--toolbar { grid-template-columns: 1fr; }
}
.muted-text { color: #94a3b8; font-size: 11px; }
.status-pill.partial {
  color: #b45309;
  background: #fef3c7;
}
.ledger-type--collection { color: #059669; font-weight: 650; }
.ledger-type--charge { color: #b45309; font-weight: 650; }
.collections-payments-panel .panel-head {
  align-items: flex-start;
  justify-content: space-between;
}
.collections-payments-total {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
}
.payment-row--cancelled {
  opacity: .72;
  background: #fef2f2;
}
.payment-row--cancelled .num {
  text-decoration: line-through;
  color: #94a3b8;
}
#collectionsView tr.payment-row { display: table-row; }
.link-btn--danger { color: #dc2626; }
.link-btn--danger:hover { color: #b91c1c; }
.link-btn {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  padding: 0;
}
/* Finansal Durum rapor ekranı */
.fin-status-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fin-status-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 14px;
}
.fin-status-toolbar__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
}
.fin-status-toolbar__filters label {
  display: grid;
  gap: 4px;
  min-width: 140px;
}
.fin-status-toolbar__filters select,
.fin-status-toolbar__filters input[type="date"] {
  min-height: 34px;
}
.fin-status-toolbar__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 1px;
}
.fin-status-toolbar__period {
  margin: 0;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
.fin-status-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.fin-status-kpi {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e8ecf2;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  min-height: 108px;
}
.fin-status-kpi header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fin-status-kpi header span {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fin-status-kpi header small {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
}
.fin-status-kpi > strong {
  font-size: 22px;
  line-height: 1.1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
.fin-status-kpi--success {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}
.fin-status-kpi--success > strong { color: #047857; }
.fin-status-kpi--warning {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}
.fin-status-kpi--warning > strong { color: #b45309; }
.fin-status-kpi--danger {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
}
.fin-status-kpi--danger > strong { color: #b91c1c; }
.fin-status-kpi__methods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.fin-status-kpi__methods li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: #64748b;
}
.fin-status-kpi__methods strong {
  color: #0f766e;
  font-weight: 700;
}
.fin-status-grid,
.fin-status-bottom-grid {
  display: grid;
  gap: 12px;
}
.fin-status-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
}
.fin-status-bottom-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}
.fin-status-panel { padding: 12px 14px 14px; }
.fin-status-chart {
  min-height: 220px;
  padding: 8px 4px 4px;
}
.fin-status-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 10px;
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}
.fin-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 5px;
  vertical-align: middle;
}
.fin-status-dot--charge { background: #6366f1; }
.fin-status-dot--collect { background: #10b981; }
.fin-status-dot--overdue { background: #ef4444; }
.fin-status-chart-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 170px;
}
.fin-status-chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.fin-status-chart-col__bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: 140px;
}
.fin-status-bar {
  display: block;
  width: 8px;
  border-radius: 4px 4px 2px 2px;
  min-height: 4px;
}
.fin-status-bar--charge { background: linear-gradient(180deg, #818cf8, #4f46e5); }
.fin-status-bar--collect { background: linear-gradient(180deg, #34d399, #059669); }
.fin-status-bar--overdue { background: linear-gradient(180deg, #f87171, #dc2626); }
.fin-status-chart-col small {
  font-size: 9px;
  color: #64748b;
  font-weight: 600;
  text-align: center;
}
.fin-status-mix {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.fin-status-mix-row__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}
.fin-status-mix-row__head strong {
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}
.fin-status-mix-track {
  height: 8px;
  border-radius: 999px;
  background: #eef2f7;
  overflow: hidden;
  margin-top: 4px;
}
.fin-status-mix-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #2563eb);
}
.fin-status-mix-row small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: #94a3b8;
}
.fin-status-table th,
.fin-status-table td {
  font-size: 11px;
}
.fin-status-table th:first-child,
.fin-status-table td:first-child,
.fin-status-table th[scope="row"] {
  text-align: left;
  font-weight: 650;
}
.fin-status-table--compact td,
.fin-status-table--compact th { padding-top: 6px; padding-bottom: 6px; }
.fin-status-cell--danger {
  color: #b91c1c;
  font-weight: 700;
}
.fin-status-table-empty {
  text-align: center;
  color: #94a3b8;
  padding: 18px 8px !important;
}
.fin-status-insights__body {
  font-size: 12px;
  color: #475569;
  line-height: 1.55;
}
.fin-status-insights__body ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.fin-status-insights__body strong { color: #0f172a; }
.fin-status-inline-link {
  border: 0;
  background: none;
  color: #2563eb;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.fin-status-empty {
  margin: 0;
  padding: 20px 8px;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
}
.secretariat-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
  margin-top: 16px;
}
.secretariat-body {
  min-height: 280px;
}
.secretariat-daily {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.secretariat-empty {
  margin: 48px auto 24px;
  max-width: 420px;
  padding: 28px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.secretariat-empty__icon {
  display: block;
  font-size: 36px;
  line-height: 1;
  margin-bottom: 12px;
}
.secretariat-empty h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}
.secretariat-empty p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}
.student-edit-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6fc 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
}
.student-edit-ribbon.is-hidden {
  display: none;
}
.student-edit-ribbon__identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.student-edit-ribbon__identity strong {
  font-size: 15px;
  font-weight: 750;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.student-edit-ribbon__identity span {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.student-edit-ribbon__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.student-edit-ribbon__actions .btn-toolbar {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  gap: 5px;
}
.student-edit-ribbon__actions .btn__icon {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  font-size: 10px;
}
.student-edit-ribbon-menu {
  position: relative;
}
.student-edit-ribbon-menu:not([open]) .student-edit-ribbon-menu__panel {
  display: none !important;
}
.student-edit-ribbon-menu > summary {
  list-style: none;
  cursor: pointer;
}
.student-edit-ribbon-menu > summary::-webkit-details-marker {
  display: none;
}
.student-edit-ribbon-menu[open] > summary {
  border-color: var(--blue);
  color: var(--blue);
  background: #eff6ff;
}
.student-edit-ribbon-menu__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 210px;
  padding: 6px;
  border: 1px solid #d7e0ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .14);
  gap: 2px;
}
.student-edit-ribbon-menu__panel button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #0f172a;
  font-size: 11px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.student-edit-ribbon-menu__panel button:hover:not(:disabled) {
  color: var(--blue);
  background: #eff6ff;
}
.student-edit-ribbon-menu__panel button.nav-link-disabled {
  opacity: .45;
  cursor: not-allowed;
}
@media (max-width: 900px) {
  .student-edit-ribbon {
    flex-direction: column;
    align-items: stretch;
  }
  .student-edit-ribbon__actions {
    justify-content: flex-start;
  }
}

.guidance-view,
.bursluluk-view,
.central-exams-view,
.communication-view,
.exam-management-view {
  display: block;
  min-height: 200px;
}
.guidance-body,
.bursluluk-body,
.central-exams-body,
.communication-body,
.exam-management-body {
  padding: 0 4px 12px;
}

.secretariat-empty__hint {
  margin-top: 14px !important;
  font-size: 11px !important;
  color: #94a3b8 !important;
}
.secretariat-daily-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
}
.secretariat-daily-search {
  flex: 1 1 180px;
  min-width: 140px;
}
.secretariat-daily-period {
  margin: 10px 0 0;
  font-size: 12px;
  color: #64748b;
}
.secretariat-daily-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.secretariat-kpi {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
}
.secretariat-kpi__label {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 4px;
}
.secretariat-kpi strong {
  font-size: 22px;
  color: #0f172a;
}
.secretariat-kpi--open strong { color: #b45309; }
.secretariat-kpi--done strong { color: #15803d; }
.secretariat-kpi--overdue strong { color: #b91c1c; }
.secretariat-daily-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.secretariat-daily-list-panel.panel {
  height: auto;
  min-height: 280px;
  padding: 0;
  overflow: visible;
}
.secretariat-daily-list-panel .panel-head {
  padding: 12px 14px 0;
}
.secretariat-daily-list-panel .secretariat-daily-table-wrap {
  margin: 10px 14px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: auto;
  max-height: min(52vh, 520px);
  background: #fff;
}
.secretariat-daily-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.secretariat-daily-table th,
.secretariat-daily-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
}
.secretariat-daily-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.secretariat-daily-table tbody tr:hover {
  background: #f8fbff;
}
.secretariat-daily-empty-cell {
  padding: 28px 12px !important;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}
.secretariat-daily-aside {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
.secretariat-daily-table td {
  font-size: 12px;
}
.secretariat-daily-row__sub,
.secretariat-daily-row__note {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.secretariat-daily-row__overdue {
  display: block;
  font-size: 10px;
  color: #b91c1c;
}
.secretariat-daily-row--overdue td {
  background: #fff7ed;
}
.secretariat-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  background: #e2e8f0;
  color: #334155;
}
.secretariat-badge--overdue {
  background: #fee2e2;
  color: #991b1b;
}
.secretariat-pri {
  font-size: 11px;
  font-weight: 600;
}
.secretariat-pri--urgent { color: #b91c1c; }
.secretariat-pri--low { color: #64748b; }
.secretariat-daily-empty {
  display: none;
}
.secretariat-daily-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 14px 14px;
}
.secretariat-daily-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.secretariat-daily-form__actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.secretariat-suggestions {
  list-style: none;
  margin: 0;
  padding: 8px 14px 14px;
}
.secretariat-suggestion {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.secretariat-suggestion:last-child { border-bottom: 0; }
.secretariat-suggestion__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: #64748b;
}
.secretariat-suggestion__main strong {
  font-size: 12px;
  color: #0f172a;
}
.secretariat-suggestions-empty {
  margin: 0;
  padding: 12px 14px;
  font-size: 11px;
  color: #94a3b8;
}
@media (max-width: 1100px) {
  .secretariat-daily-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .secretariat-daily-kpis { grid-template-columns: 1fr; }
  .secretariat-daily-form__row { grid-template-columns: 1fr; }
}
.sec-events-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
}
.sec-events-search { flex: 1 1 200px; min-width: 160px; }
.sec-events-kpis,
.sec-events-detail-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.sec-events-list-panel.panel,
.sec-events-participants-panel.panel {
  height: auto;
  padding: 0;
}
.sec-events-list-panel .panel-head { padding: 12px 14px 0; }
.sec-events-table-wrap {
  margin: 10px 14px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: auto;
  max-height: min(50vh, 480px);
  background: #fff;
}
.sec-events-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.sec-events-table th,
.sec-events-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
}
.sec-events-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}
.sec-events-row:hover td { background: #fafbfc; }
.sec-events-col-no {
  width: 40px;
  text-align: center;
  color: #64748b;
  font-weight: 700;
  font-size: 11px;
}
.sec-events-col-actions {
  width: 118px;
  text-align: center;
  white-space: nowrap;
}
.sec-events-col-actions .row-actions {
  justify-content: center;
}
.row-actions [data-sec-events-card] {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}
.row-actions [data-sec-events-edit] {
  background: #fffbeb;
  border-color: #fde68a;
  color: #d97706;
}
.row-actions [data-sec-events-delete] {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}
.row-actions [data-sec-ev-p-add-pay] {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}
.row-actions [data-sec-ev-p-edit],
.row-actions [data-sec-ev-pay-edit] {
  background: #fffbeb;
  border-color: #fde68a;
  color: #d97706;
}
.row-actions [data-sec-ev-p-delete],
.row-actions [data-sec-ev-pay-delete] {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}
.sec-events-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.sec-events-detail-head h2 { margin: 0; font-size: 16px; }
.sec-events-detail-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.sec-events-detail-kpis--compact {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  overflow-x: auto;
}
.sec-events-detail-kpis--compact .secretariat-kpi {
  flex: 0 0 auto;
  padding: 8px 12px;
  min-width: 100px;
  max-width: 160px;
}
.sec-events-detail-kpis--compact .secretariat-kpi strong {
  font-size: 15px;
}
.sec-events-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
}
.sec-events-panel-compact.panel {
  padding: 0;
}
.sec-events-panel-compact .panel-head--compact {
  padding: 8px 10px 0;
}
.sec-events-panel-compact .panel-head--compact h2 {
  font-size: 13px;
}
.sec-events-form--compact {
  padding: 0 10px 10px;
}
.sec-events-form--compact .label-text {
  font-size: 10px;
  margin-bottom: 2px;
}
.sec-events-form--compact input,
.sec-events-form--compact select,
.sec-events-form--compact textarea,
.sec-events-form--compact .personnel-multi-dropdown summary {
  min-height: 32px;
  padding: 5px 8px;
  font-size: 12px;
}
.sec-events-compact-grid--event {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1.25fr) minmax(160px, 1.1fr) auto;
  grid-template-rows: auto auto;
  gap: 8px 12px;
  align-items: end;
}
.sec-events-compact-grid--event > label,
.sec-events-compact-grid--event > .sec-ev-f-inst,
.sec-events-compact-grid--event > .sec-ev-f-paid {
  min-width: 0;
  margin: 0;
}
.sec-events-compact-grid--event .sec-ev-f-title { grid-column: 1; grid-row: 1; }
.sec-events-compact-grid--event .sec-ev-f-inst { grid-column: 2; grid-row: 1; }
.sec-events-compact-grid--event .sec-ev-f-date { grid-column: 3; grid-row: 1; }
.sec-events-compact-grid--event .sec-ev-f-paid {
  grid-column: 1;
  grid-row: 2;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
}
.sec-events-compact-grid--event .sec-ev-f-paid #secEvFeeWrap {
  width: 88px;
  min-width: 88px;
  max-width: 88px;
  margin: 0;
  flex-shrink: 0;
}
.sec-events-compact-grid--event .sec-events-paid-switch,
.sec-events-compact-grid--event .sec-events-family-switch {
  flex-shrink: 0;
  margin-bottom: 1px;
}
.sec-events-col-guardians {
  width: 72px;
  text-align: center;
  white-space: nowrap;
}
.sec-events-col-guardians.is-hidden { display: none; }
.sec-events-headcount-hint {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: #64748b;
}
.sec-ev-f-guardians.is-hidden { display: none; }
.sec-events-compact-grid--event .sec-ev-f-status { grid-column: 2; grid-row: 2; }
.sec-events-compact-grid--event .sec-ev-f-desc {
  grid-column: 3;
  grid-row: 2;
  min-width: 0;
}
.sec-events-compact-grid--event .sec-ev-f-save {
  grid-column: 4;
  grid-row: 2;
  justify-self: end;
  align-self: end;
  white-space: nowrap;
  margin: 0;
}
.sec-events-form--compact .personnel-multi-dropdown {
  width: 100%;
}
.sec-events-form--compact .personnel-multi-dropdown summary {
  width: 100%;
}
.sec-events-paid-switch {
  padding-bottom: 1px;
}
.secretariat-kpi__hint {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.25;
}
.sec-events-compact-grid--participant {
  display: grid;
  grid-template-columns: minmax(160px, 2fr) 64px 64px 80px 116px minmax(80px, 1fr) auto;
  gap: 6px 8px;
  align-items: end;
}
.sec-events-compact-grid--participant.sec-events-compact-grid--participant--family {
  grid-template-columns: minmax(160px, 2fr) 64px 64px 52px 80px 116px minmax(80px, 1fr) auto;
}
.sec-events-paid-switch {
  margin: 0;
  align-self: flex-end;
  flex-shrink: 0;
}
.sec-events-student-search.collections-search-wrap {
  position: relative;
  display: grid;
  gap: 2px;
  min-width: 0;
}
.sec-events-student-search input[readonly],
.sec-events-form--compact input[readonly] {
  background: #f8fafc;
  color: #475569;
}
.sec-events-form__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: flex-end;
}
.sec-ev-f-pactions { white-space: nowrap; }
.sec-events-compact-grid--participant .sec-ev-f-pactions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}
.sec-events-participants-panel .sec-events-table-wrap {
  margin: 6px 10px 10px;
  max-height: min(36vh, 340px);
}
.sec-events-table--participants th,
.sec-events-table--participants td {
  padding: 6px 8px;
  font-size: 11px;
}
.sec-events-table--participants th:last-child,
.sec-events-table--participants td:last-child {
  width: 72px;
  text-align: center;
}
.sec-events-col-pay { min-width: 108px; }
.sec-events-pay-cell {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.sec-events-pay-amount {
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}
.sec-events-pay-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.sec-events-pay-badge--full {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.sec-events-pay-badge--short {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}
.sec-events-pay-badge--none {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.sec-events-pay-badge--over {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.sec-events-pay-gap {
  font-weight: 600;
  opacity: 0.9;
}
.sec-events-part-row--short td { background: #fffdf5; }
.sec-events-part-row--short:hover td { background: #fffbeb; }
.sec-events-part-row--none td { background: #fffafa; }
.sec-events-part-row--none:hover td { background: #fef2f2; }
.sec-events-part-row--over td { background: #f8fbff; }
.sec-ev-f-hint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: #0369a1;
}
.sec-ev-pay-hint {
  padding: 6px 8px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.sec-events-history-btn {
  font-size: 10px;
  padding: 3px 8px;
  min-height: 24px;
}
.sec-events-pay-history-row td {
  padding: 0 8px 8px !important;
  background: #f8fafc;
  border-bottom: 1px solid #e8ecf2;
}
.sec-events-pay-history {
  margin: 4px 0 2px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.sec-events-pay-history__head {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}
.sec-events-pay-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.sec-events-pay-history-table th,
.sec-events-pay-history-table td {
  padding: 5px 8px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
}
.sec-events-pay-history-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #64748b;
}
@media (max-width: 1100px) {
  .sec-events-compact-grid--event {
    grid-template-columns: 1fr 1fr auto;
  }
  .sec-events-compact-grid--event .sec-ev-f-title { grid-column: 1 / 3; grid-row: 1; }
  .sec-events-compact-grid--event .sec-ev-f-inst { grid-column: 1; grid-row: 2; }
  .sec-events-compact-grid--event .sec-ev-f-date { grid-column: 2; grid-row: 2; }
  .sec-events-compact-grid--event .sec-ev-f-paid { grid-column: 1; grid-row: 3; }
  .sec-events-compact-grid--event .sec-ev-f-status { grid-column: 2; grid-row: 3; }
  .sec-events-compact-grid--event .sec-ev-f-desc { grid-column: 1 / 3; grid-row: 4; }
  .sec-events-compact-grid--event .sec-ev-f-save { grid-column: 3; grid-row: 4; justify-self: end; }
  .sec-events-compact-grid--participant {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  .sec-events-compact-grid--participant .sec-ev-f-search { grid-column: 1 / 5; }
  .sec-events-compact-grid--participant .sec-ev-f-pactions {
    grid-column: 1 / 5;
    justify-content: flex-end;
  }
}
.sec-event-card-page .sec-event-card-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.sec-ev-print {
  color: #0f172a;
  font-size: 10px;
  line-height: 1.35;
}
.sec-ev-print__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid #cbd5e1;
}
.sec-ev-print__title-block h1 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}
.sec-ev-print__meta,
.sec-ev-print__desc {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 9px;
}
.sec-ev-print__brand {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}
.sec-ev-print__kpis {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 8px;
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}
.sec-ev-print-kpi {
  font-size: 9px;
  color: #475569;
  white-space: nowrap;
}
.sec-ev-print-kpi b {
  color: #0f172a;
  font-size: 10px;
}
.sec-ev-print__summary,
.sec-ev-print__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}
.sec-ev-print__summary {
  margin-bottom: 8px;
}
.sec-ev-print__summary th,
.sec-ev-print__summary td,
.sec-ev-print__table th,
.sec-ev-print__table td {
  padding: 3px 5px;
  border: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}
.sec-ev-print__summary th,
.sec-ev-print__table th {
  background: #f1f5f9;
  font-size: 8px;
  font-weight: 700;
  color: #475569;
}
.sec-ev-print__table .num { text-align: right; white-space: nowrap; }
.sec-ev-print__table tfoot td {
  background: #f8fafc;
  font-weight: 700;
}
.sec-ev-print__foot-stat {
  font-size: 8px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}
.sec-ev-print__foot-stat strong {
  color: #0f172a;
  font-size: 9px;
}
.sec-ev-print__empty {
  text-align: center;
  color: #94a3b8;
  padding: 10px !important;
}
.day-end-print {
  color: #0f172a;
  font-size: 10px;
  line-height: 1.35;
}
.day-end-print__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid #cbd5e1;
}
.day-end-print__title-block h1 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}
.day-end-print__meta {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 9px;
}
.day-end-print__brand {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}
.day-end-print__table,
.day-end-print__cash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}
.day-end-print__table {
  margin-bottom: 10px;
}
.day-end-print__table th,
.day-end-print__table td,
.day-end-print__cash-table th,
.day-end-print__cash-table td {
  padding: 3px 5px;
  border: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}
.day-end-print__table th,
.day-end-print__cash-table th {
  background: #f1f5f9;
  font-size: 8px;
  font-weight: 700;
  color: #475569;
}
.day-end-print__table .num,
.day-end-print__cash-table .num {
  text-align: right;
  white-space: nowrap;
}
.day-end-print__table tfoot td,
.day-end-print__cash-table tfoot td {
  background: #f8fafc;
  font-weight: 700;
}
.day-end-print__empty {
  text-align: center;
  color: #94a3b8;
  padding: 10px !important;
}
.day-end-print__cash {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #cbd5e1;
}
.day-end-print__cash h2 {
  margin: 0 0 6px;
  font-size: 11px;
  line-height: 1.2;
}
.day-end-print__cash h2 small {
  font-size: 9px;
  font-weight: 600;
  color: #64748b;
}
.day-end-print__cash-table {
  max-width: 320px;
}
.day-end-print-page .day-end-print {
  padding: 4px 2px 8px;
}
.st-list-print {
  color: #0f172a;
  font-size: 10px;
  line-height: 1.35;
}
.st-list-print__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid #cbd5e1;
}
.st-list-print__title-block h1 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}
.st-list-print__meta {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 9px;
}
.st-list-print__brand {
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}
.st-list-print__kpis {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 8px;
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}
.st-list-print-kpi {
  font-size: 9px;
  color: #475569;
  white-space: nowrap;
}
.st-list-print-kpi b {
  color: #0f172a;
  font-size: 10px;
}
.st-list-print__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8px;
}
.st-list-print__table th,
.st-list-print__table td {
  padding: 3px 4px;
  border: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}
.st-list-print__table th {
  background: #f1f5f9;
  font-size: 7px;
  font-weight: 700;
  color: #475569;
}
.st-list-print__table .num {
  text-align: right;
  white-space: nowrap;
}
.st-list-print__table tfoot td {
  background: #f8fafc;
  font-weight: 700;
}
.st-list-print__empty {
  text-align: center;
  color: #94a3b8;
  padding: 10px !important;
}
.student-list-print-page .st-list-print {
  padding: 4px 2px 8px;
}
.sec-event-card-page .sec-ev-print {
  padding: 4px 2px 8px;
}
.sec-event-card-kpi-val {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}
.sec-event-card-desc {
  margin: 6px 0 0;
  font-size: 12px;
  color: #64748b;
}
.sec-event-card-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.sec-event-card-table th,
.sec-event-card-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: top;
}
.sec-event-card-table th {
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
}
.sec-event-card-table .num { text-align: right; white-space: nowrap; }
.sec-event-card-table tfoot td {
  background: #f8fafc;
  font-weight: 700;
}
.sec-event-card-branch__meta {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}
.sec-event-card-class {
  margin-top: 10px;
}
.sec-event-card-class h4 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.sec-event-card-class h4 span {
  font-weight: 600;
  color: #64748b;
}
.sec-event-card-empty {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
}
.sec-event-card-detail-wrap .card-section {
  max-height: min(52vh, 520px);
  overflow: auto;
}
body.printing-sec-event-card > :not(#secEventCardModal) {
  display: none !important;
}
body.printing-sec-event-card * { visibility: hidden; }
body.printing-sec-event-card #secEventCardModal,
body.printing-sec-event-card #secEventCardModal * { visibility: visible; }
body.printing-sec-event-card #secEventCardModal {
  position: static !important;
  inset: auto !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  background: #fff;
}
body.printing-sec-event-card #secEventCardModal .student-card-toolbar {
  display: none !important;
}
body.printing-sec-event-card .sec-event-card-page {
  width: 100%;
  max-width: none;
  min-height: 0 !important;
  height: auto !important;
  margin: 0;
  padding: 8mm 10mm 10mm;
  box-shadow: none;
}
@media (max-width: 900px) {
  .sec-events-kpis,
  .sec-events-detail-kpis:not(.sec-events-detail-kpis--compact) { grid-template-columns: 1fr; }
  .sec-events-detail-kpis--compact {
    flex-wrap: wrap;
    overflow-x: visible;
  }
  .sec-events-compact-grid--event,
  .sec-events-compact-grid--participant {
    grid-template-columns: 1fr 1fr;
  }
  .sec-events-compact-grid--event .sec-ev-f-title,
  .sec-events-compact-grid--event .sec-ev-f-inst,
  .sec-events-compact-grid--participant .sec-ev-f-search {
    grid-column: 1 / -1;
  }
  .sec-events-compact-grid--event {
    grid-template-columns: 1fr 1fr;
  }
  .sec-events-compact-grid--event .sec-ev-f-title,
  .sec-events-compact-grid--event .sec-ev-f-inst,
  .sec-events-compact-grid--event .sec-ev-f-date,
  .sec-events-compact-grid--event .sec-ev-f-paid,
  .sec-events-compact-grid--event .sec-ev-f-status,
  .sec-events-compact-grid--event .sec-ev-f-desc,
  .sec-events-compact-grid--event .sec-ev-f-save {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .sec-events-compact-grid--event .sec-ev-f-save,
  .sec-events-compact-grid--participant .sec-ev-f-pactions {
    justify-self: end;
  }
}
@media (max-width: 1180px) {
  .fin-status-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fin-status-grid,
  .fin-status-bottom-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fin-status-kpis { grid-template-columns: 1fr; }
  .fin-status-toolbar__filters label { min-width: 100%; }
}
.fin-status-panel--class-matrix {
  padding: 12px 14px 14px;
}
.fin-status-panel-head--class {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
}
.fin-status-class-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 11px;
  color: #64748b;
}
.fin-status-class-summary strong {
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.fin-status-matrix-layout-hint {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}
.fin-status-matrix-wrap {
  overflow: auto;
  max-height: min(62vh, 520px);
  border: 1px solid #e8ecf2;
  border-radius: 10px;
  position: relative;
  scrollbar-gutter: stable;
}
.fin-status-matrix-wrap--transposed {
  max-height: min(70vh, 640px);
}
.fin-status-table--matrix {
  min-width: max(100%, 720px);
  table-layout: auto;
}
.fin-status-matrix-wrap--transposed .fin-status-table--matrix {
  min-width: max(100%, 560px);
}
.fin-status-table--matrix th,
.fin-status-table--matrix td {
  white-space: nowrap;
  font-size: 10px;
  padding: 6px 8px;
}
.fin-status-matrix-sticky {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 1px 0 0 #e8ecf2;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fin-status-table--matrix thead .fin-status-matrix-sticky {
  background: #f8fafc;
  z-index: 3;
}
.fin-status-matrix-foot .fin-status-matrix-sticky {
  background: #f1f5f9;
}
.fin-status-matrix-month {
  text-align: right;
  min-width: 58px;
  font-variant-numeric: tabular-nums;
}
.fin-status-matrix-month--head span {
  display: inline-block;
  max-width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 9px;
  line-height: 1;
  padding: 2px 0;
}
.fin-status-matrix-wrap--wide .fin-status-matrix-month--head {
  height: 52px;
  vertical-align: bottom;
  padding-bottom: 4px;
}
.fin-status-matrix-grade-col {
  text-align: right;
  min-width: 64px;
  max-width: 88px;
  font-variant-numeric: tabular-nums;
}
.fin-status-matrix-grade-col span {
  display: inline-block;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fin-status-matrix-sticky-right {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fff;
  box-shadow: -1px 0 0 #e8ecf2;
}
.fin-status-table--matrix thead .fin-status-matrix-sticky-right {
  background: #f8fafc;
  z-index: 3;
}
.fin-status-matrix-foot .fin-status-matrix-sticky-right {
  background: #f1f5f9;
}
.fin-status-matrix-month--zero {
  color: #cbd5e1;
}
.fin-status-matrix-avg,
.fin-status-matrix-total {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.fin-status-matrix-avg {
  color: #0369a1;
  background: #f0f9ff;
}
.fin-status-matrix-total {
  color: #0f172a;
  background: #f8fafc;
}
.fin-status-matrix-foot th,
.fin-status-matrix-foot td {
  background: #f1f5f9;
  border-top: 2px solid #dbe3ee;
  font-weight: 700;
}

/* Gün Sonu (kasa raporu) */
.day-end-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.day-end-toolbar {
  padding: 12px 14px;
}
.day-end-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
}
.day-end-toolbar__row label {
  display: grid;
  gap: 4px;
  min-width: 130px;
}
.day-end-search {
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 280px;
}
.day-end-toolbar__row select,
.day-end-toolbar__row input[type="date"],
.day-end-toolbar__row input[type="search"] {
  min-height: 34px;
}
.day-end-toolbar__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-bottom: 1px;
}
.day-end-period {
  margin: 10px 0 0;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}
.day-end-hero {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 16px 20px;
  align-items: stretch;
  padding: 12px 14px 14px;
}
.day-end-hero__total {
  display: flex;
  min-height: 100%;
}
.day-end-hero__total .day-end-stat {
  flex: 1;
}
.day-end-hero__payments {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding-left: 16px;
  border-left: 1px solid #e8ecf2;
}
.day-end-hero__payments-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  letter-spacing: -0.01em;
}
.day-end-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e8ecf2;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.day-end-stat--primary {
  border-color: #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #fff 100%);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}
.day-end-stat--primary strong {
  color: #1d4ed8;
  font-size: 26px;
}
.day-end-stat span {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.day-end-stat strong {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.day-end-stat small {
  font-size: 10px;
  color: #94a3b8;
}
.day-end-panel { padding: 12px 14px 14px; }
.day-end-gauges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  padding: 0;
  justify-content: flex-start;
  align-content: flex-start;
}
.day-end-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 108px;
  text-align: center;
}
.day-end-gauge__ring {
  --pct: 0;
  --ring-color: #2563eb;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(
    var(--ring-color) 0deg,
    var(--ring-color) calc(var(--pct) * 3.6deg),
    #e2e8f0 calc(var(--pct) * 3.6deg),
    #e2e8f0 360deg
  );
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.day-end-gauge--idle .day-end-gauge__ring {
  --ring-color: #94a3b8;
  background: conic-gradient(
    #e2e8f0 0deg,
    #e2e8f0 360deg
  );
}
.day-end-gauge--active .day-end-gauge__ring {
  --ring-color: #2563eb;
}
.day-end-gauge__ring::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.day-end-gauge__value {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  max-width: 62px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.day-end-gauge--idle .day-end-gauge__value {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}
.day-end-gauge strong {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}
.day-end-gauge small {
  font-size: 10px;
  color: #64748b;
  line-height: 1.3;
}
.day-end-empty {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}
.day-end-table-wrap {
  max-height: min(58vh, 560px);
}
.day-end-table th.day-end-col--account,
.day-end-table td.day-end-col--account {
  min-width: 168px;
  width: 20%;
}
.day-end-table .day-end-account-name {
  display: block;
  line-height: 1.35;
}
.day-end-table th.day-end-col--invoice,
.day-end-table td.day-end-col--invoice {
  min-width: 148px;
  width: 16%;
}
.day-end-invoice-no {
  display: block;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}
.day-end-invoice-caption {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  line-height: 1.35;
}
.day-end-table th.day-end-col--action,
.day-end-table td.day-end-col--action {
  width: 52px;
  text-align: center;
  vertical-align: middle;
}
.day-end-table td.day-end-col--action .row-actions {
  justify-content: center;
}
.day-end-table .day-end-amount {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}
.day-end-table-empty {
  text-align: center;
  color: #94a3b8;
  padding: 24px !important;
}
@media (max-width: 900px) {
  .day-end-hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .day-end-hero__payments {
    padding-left: 0;
    border-left: none;
    padding-top: 12px;
    border-top: 1px solid #e8ecf2;
  }
}

/* Kantin */
.canteen-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.canteen-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.canteen-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e8ecf2;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  min-width: 0;
}
.canteen-kpi__label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.canteen-kpi strong {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.canteen-kpi--net strong { color: #15803d; }
.canteen-kpi small {
  font-size: 9px;
  color: #94a3b8;
  font-weight: 600;
  line-height: 1.25;
}
.canteen-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: flex-end;
}
.canteen-toolbar__actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.canteen-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
/* Form / tahsilat giriş blokları — CRM mavisiyle uyumlu vurgu */
#canteenView .canteen-form-panel,
#collectionsView .collections-form-panel.collections-form-panel--primary {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 40%, #eef4ff 100%);
  border: 1px solid #c8d8f0;
  border-left: 4px solid var(--blue);
  box-shadow:
    0 2px 8px rgba(47, 125, 246, 0.1),
    inset 0 -10px 22px rgba(47, 125, 246, 0.06);
}
#canteenView .canteen-form-panel .panel-head--compact,
#collectionsView .collections-form-panel.collections-form-panel--primary .panel-head--compact {
  border-bottom: 1px solid rgba(47, 125, 246, 0.14);
  margin-bottom: 2px;
  padding-bottom: 8px;
}
#canteenView .canteen-form-panel .panel-head--compact h2,
#collectionsView .collections-form-panel.collections-form-panel--primary .panel-head--compact h2 {
  color: #1e40af;
}
.canteen-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
  padding: 0 10px 10px;
  align-items: end;
}
.canteen-form-desc { grid-column: 1 / 3; }
.canteen-form-actions {
  grid-column: 3;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.canteen-inst-summary { padding: 0 10px 10px; }
.canteen-summary-table { font-size: 11px; }
.canteen-list-panel .student-table-wrap { margin: 0 10px 10px; }
.canteen-type-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}
.canteen-type--income { background: #ecfdf5; color: #047857; }
.canteen-type--expense { background: #fef2f2; color: #b91c1c; }
.canteen-amount { font-weight: 700; white-space: nowrap; }
.canteen-col-actions { width: 72px; text-align: right; }
#canteenView .canteen-table td:last-child { white-space: nowrap; }
.canteen-empty { margin: 0; padding: 8px 10px; color: #94a3b8; font-size: 12px; }
@media (max-width: 1000px) {
  .canteen-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .canteen-layout { grid-template-columns: 1fr; }
  .canteen-form-grid { grid-template-columns: 1fr 1fr; }
  .canteen-form-desc { grid-column: 1 / -1; }
  .canteen-form-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .canteen-kpis { grid-template-columns: 1fr; }
}

/* Kıyafet satış */
.clothing-sales-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.clothing-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.clothing-kpi {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.clothing-kpi__label {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 4px;
}
.clothing-kpi strong { font-size: 18px; color: #0f172a; }
.clothing-kpi--total strong { color: #1d4ed8; }
.clothing-kpi--cash strong { color: #15803d; }
.clothing-kpi small { display: block; margin-top: 4px; font-size: 10px; color: #94a3b8; }
.clothing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
#clothingSalesView .clothing-form-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 40%, #eef4ff 100%);
  border: 1px solid #c8d8f0;
  border-left: 4px solid var(--blue);
  box-shadow:
    0 2px 8px rgba(47, 125, 246, 0.1),
    inset 0 -10px 22px rgba(47, 125, 246, 0.06);
}
#clothingSalesView .clothing-form-panel .panel-head--compact {
  border-bottom: 1px solid rgba(47, 125, 246, 0.14);
  margin-bottom: 2px;
  padding-bottom: 8px;
}
#clothingSalesView .clothing-form-panel .panel-head--compact h2 { color: #1e40af; }
.clothing-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 10px;
  padding: 0 10px 10px;
}
.clothing-student-search { grid-column: span 2; }
.clothing-form-note { grid-column: span 2; }
.clothing-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.clothing-product-summary { padding: 0 10px 10px; }
.clothing-summary-table { font-size: 11px; }
.clothing-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: flex-end;
}
.clothing-toolbar__actions { display: flex; gap: 8px; }
.clothing-list-panel .student-table-wrap { margin: 0 10px 10px; }
.clothing-amount { font-weight: 700; white-space: nowrap; }
.clothing-col-actions { width: 72px; text-align: right; }
#clothingSalesView .clothing-table td:last-child { white-space: nowrap; }
.clothing-empty,
.clothing-table-empty {
  margin: 0;
  padding: 8px 10px;
  color: #94a3b8;
  font-size: 12px;
}
@media (max-width: 1100px) {
  .clothing-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clothing-student-search { grid-column: span 2; }
  .clothing-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .clothing-kpis { grid-template-columns: 1fr; }
}

/* Gün sonu nakit kasa */
.day-end-cash-panel--compact {
  margin-top: 0;
  padding: 8px 12px 10px;
}
.day-end-cash-panel--compact .panel-head--compact {
  margin-bottom: 6px;
  padding-bottom: 0;
}
.day-end-cash-compact {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.day-end-cash-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.day-end-cash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
  line-height: 1.3;
}
.day-end-cash-row:last-child {
  border-bottom: none;
}
.day-end-cash-row--in { background: #fafffe; }
.day-end-cash-row--out { background: #fffafa; }
.day-end-cash-row__label {
  font-weight: 600;
  color: #334155;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.day-end-cash-row__amt {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.day-end-cash-row--out .day-end-cash-row__amt { color: #b91c1c; }
.day-end-cash-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  background: #ecfdf5;
  border-top: 2px solid #86efac;
}
.day-end-cash-summary__meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.day-end-cash-summary__meta span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #166534;
  letter-spacing: 0.03em;
}
.day-end-cash-summary__meta small {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}
.day-end-cash-summary__value {
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 800;
  color: #15803d;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

/* Yemek planı */
#secretariatMealPlanView .secretariat-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.meal-plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.meal-plan-toolbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}
.meal-plan-toolbar__row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}
.meal-plan-search {
  flex: 1 1 180px;
  min-width: 160px;
}
.meal-plan-toolbar__hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.45;
}
.meal-plan-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 10px;
  align-items: start;
}
.meal-plan-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 280px);
  overflow: auto;
  padding: 0 10px 10px;
}
.meal-plan-list-empty {
  margin: 0;
  padding: 12px 10px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}
.meal-plan-card {
  position: relative;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.meal-plan-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.meal-plan-card.is-active {
  border-color: #93c5fd;
  background: #f8fbff;
  box-shadow: 0 0 0 1px #bfdbfe;
}
.meal-plan-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.meal-plan-card__head strong {
  font-size: 13px;
  color: #0f172a;
  line-height: 1.35;
}
.meal-plan-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.meal-plan-badge--live {
  background: #ecfdf5;
  color: #047857;
}
.meal-plan-badge--draft {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.meal-plan-card__meta,
.meal-plan-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 11px;
  color: #64748b;
}
.meal-plan-card__foot {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
}
.meal-plan-card__actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
}
.meal-plan-card:hover .meal-plan-card__actions,
.meal-plan-card.is-active .meal-plan-card__actions {
  opacity: 1;
}
.meal-plan-card__actions button {
  width: 28px;
  height: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.meal-plan-viewer-panel .panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.meal-plan-viewer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.meal-plan-viewer {
  min-height: 420px;
  margin: 0 10px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}
.meal-plan-viewer-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}
.meal-plan-pdf-frame {
  width: 100%;
  min-height: 420px;
  height: calc(100vh - 320px);
  border: 0;
  background: #fff;
}
.meal-plan-form {
  padding: 0 10px 10px;
}
.meal-plan-form-empty {
  margin: 0;
  padding: 8px 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}
.meal-plan-form-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.meal-plan-form-fields label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.meal-plan-form-fields textarea,
.meal-plan-form-fields input[type="text"],
.meal-plan-form-fields input[type="month"],
.meal-plan-form-fields select,
.meal-plan-form-fields input[type="file"] {
  width: 100%;
}
.meal-plan-file-meta {
  font-size: 10px;
  color: #64748b;
  line-height: 1.4;
}
.meal-plan-publish {
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  user-select: none;
}
.meal-plan-publish input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
}
.meal-plan-form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.meal-plan-tips {
  margin: 12px 10px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
}
.meal-plan-tips h3 {
  margin: 0 0 8px;
  font-size: 12px;
  color: #475569;
}
.meal-plan-tips ul {
  margin: 0;
  padding-left: 18px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.5;
}
@media (max-width: 1100px) {
  .meal-plan-grid {
    grid-template-columns: 1fr 1fr;
  }
  .meal-plan-aside {
    grid-column: 1 / -1;
  }
}
@media (max-width: 760px) {
  .meal-plan-grid {
    grid-template-columns: 1fr;
  }
  .meal-plan-list {
    max-height: none;
  }
  .meal-plan-pdf-frame {
    height: 480px;
  }
}

.login-screen__field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background-color: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  font-size: 14px;
}

.period-readonly-banner {
  margin: 0;
  padding: 10px 16px;
  background: #fff7ed;
  border-bottom: 1px solid #fdba74;
  color: #9a3412;
  font-size: 13px;
  font-weight: 600;
}

body.period-readonly .btn-primary:not(#loginSubmitBtn),
body.period-readonly .btn-danger,
body.period-readonly [data-perm-action="manage"],
body.period-readonly [data-perm-action="save"],
body.period-readonly [data-perm-action="delete"],
body.period-readonly [data-perm-action="collect"] {
  pointer-events: none;
  opacity: 0.45;
}

.periods-settings-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.periods-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 10px 10px;
}
.periods-form-grid .periods-note {
  grid-column: 1 / -1;
}
.periods-form-grid .periods-check {
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.periods-form-grid .periods-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
}
.periods-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.periods-setup-help {
  margin-top: 0;
  padding: 12px 14px;
  font-size: 12px;
  color: #475569;
  line-height: 1.55;
}
.periods-setup-help h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #0f172a;
}
.periods-setup-help ol {
  margin: 0;
  padding-left: 18px;
}
.periods-setup-help code {
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  background: #f1f5f9;
}
.periods-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.periods-code {
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.periods-flag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  margin-right: 4px;
}
.periods-flag--default { background: #dbeafe; color: #1d4ed8; }
.periods-flag--readonly { background: #f1f5f9; color: #64748b; }
.periods-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.periods-status--ok { background: #ecfdf5; color: #047857; }
.periods-status--empty { background: #fef9c3; color: #a16207; }
.periods-status--error { background: #fef2f2; color: #b91c1c; }
.periods-status--unknown { background: #f1f5f9; color: #94a3b8; }
.periods-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.periods-empty {
  text-align: center;
  color: #94a3b8;
  padding: 12px;
}
@media (max-width: 760px) {
  .periods-form-grid { grid-template-columns: 1fr; }
}
