:root {
  --primary: #38aaf5;
  --primary-dark: #1688d6;
  --ink: #213044;
  --muted: #6f7f91;
  --line: #dbeaf5;
  --soft: #f5fbff;
  --white: #fff;
  --danger: #c0392b;
  --shadow: 0 16px 42px rgba(35, 99, 143, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: #f7fbfe;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #eaf7ff, #fff7fb);
}
.auth-card {
  width: min(420px, 100%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 32px;
}
.auth-logo {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 12px;
  background: #e8f6ff;
  color: var(--primary-dark);
  font-weight: 800;
}
.auth-card h1 { margin: 22px 0 8px; font-size: 28px; }
.auth-card p { margin: 0 0 22px; color: var(--muted); }
.auth-help { display: block; margin-top: 18px; color: var(--muted); }
.auth-public-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--primary-dark);
  font-weight: 700;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  transition: grid-template-columns 180ms ease;
}
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  background: #ffffff;
  border-right: 1px solid var(--line);
  padding: 22px;
}
.sidebar::-webkit-scrollbar {
  width: 8px;
}
.sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c9dff0;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}
.brand-text {
  min-width: 0;
}
.brand-text strong,
.brand-text small {
  display: block;
  white-space: nowrap;
}
.sidebar-toggle {
  width: 38px;
  height: 38px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  gap: 4px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f5fbff;
  cursor: pointer;
}
.sidebar-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}
.topbar-menu-button,
.sidebar-backdrop {
  display: none;
}
.topbar-menu-button {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(35, 99, 143, 0.1);
  cursor: pointer;
}
.topbar-menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  font-weight: 900;
}
.brand small, .topbar p, .page-head p, .stat-card span { color: var(--muted); }
.menu { display: grid; gap: 6px; }
.menu-group {
  display: grid;
  gap: 4px;
  border-radius: 12px;
}
.menu a,
.menu button {
  display: flex;
  align-items: center;
  min-height: 42px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #42536a;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}
.menu a:hover,
.menu a.is-active,
.menu button:hover,
.menu button.is-active {
  background: #eaf7ff;
  color: var(--primary-dark);
}
.menu-group > button {
  position: relative;
  padding-right: 30px;
}
.menu-group > button::after {
  content: "";
  position: absolute;
  right: 13px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
}
.menu-group.is-open > button::after {
  transform: rotate(225deg);
  margin-top: 5px;
}
.submenu {
  display: none;
  gap: 3px;
  margin-left: 12px;
  padding: 2px 0 4px 10px;
  border-left: 1px solid #dbeaf5;
}
.menu-group.is-open .submenu { display: grid; }
.submenu a {
  min-height: 34px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  padding: 7px 10px;
}
.submenu a:hover, .submenu a.is-active {
  background: #f1f8ff;
  color: var(--primary-dark);
}
.sidebar-collapsed .app-shell {
  grid-template-columns: 86px 1fr;
}
.sidebar-collapsed .sidebar {
  padding: 18px 14px;
}
.sidebar-collapsed .brand {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.sidebar-collapsed .brand-text {
  display: none;
}
.sidebar-collapsed .sidebar-toggle {
  margin-left: 0;
}
.sidebar-collapsed .menu,
.sidebar-collapsed .menu-group {
  justify-items: center;
}
.sidebar-collapsed .menu a,
.sidebar-collapsed .menu button {
  width: 48px;
  height: 44px;
  justify-content: center;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 0;
}
.sidebar-collapsed .menu a::before,
.sidebar-collapsed .menu button::before {
  content: attr(data-short);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}
.sidebar-collapsed .menu-group > button::after {
  display: none;
}
.sidebar-collapsed .submenu {
  display: none;
}
.capacity-musait {
  background: #e4fff5;
  color: #05855f;
}
.capacity-sinirli {
  background: #fff7df;
  color: #a46300;
}
.capacity-dolu {
  background: #ffe9e5;
  color: #c64633;
}
.main { padding: 24px; min-width: 0; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.topbar p { margin: 0; }
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.page-head h1 { margin: 0 0 6px; font-size: 30px; }
.page-head p { margin: 0; }
.head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.table-search {
  min-width: min(320px, 100%);
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}
.table-search input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--ink);
  background: #fff;
}
.table-link {
  color: var(--primary-dark);
  font-weight: 800;
}
.table-link:hover {
  text-decoration: underline;
}
.group-birthdate-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
}
.group-birthdate-field input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--ink);
}
.group-fit-summary {
  margin: 12px 0;
  color: var(--ink);
  font-weight: 800;
}
.student-profile-hero {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-left: 5px solid #7357ff;
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(35, 99, 143, 0.08);
}
.student-avatar {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #8bd0bd;
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}
.student-profile-hero h1 {
  margin: 0 0 6px;
  font-size: 30px;
}
.student-profile-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
.student-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.student-profile-meta span {
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef7ff;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}
.student-profile-meta span.is-danger,
.status-pill.is-danger {
  background: #fff0f2;
  color: #b22a49;
}
.student-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 18px;
  background: #f1f4f8;
}
.student-tabs a {
  position: relative;
  padding: 14px 18px;
  color: #4b5563;
  font-weight: 800;
}
.student-tabs a.is-active {
  background: var(--primary);
  color: #fff;
}
.student-tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--primary);
}
.theme-form-section {
  display: grid;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.compact-toolbar {
  align-items: center;
  margin-bottom: 0;
}
.compact-toolbar h3 {
  margin: 0;
  font-size: 1rem;
}
.theme-age-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.theme-age-list label,
.theme-record-form .check-list label {
  min-height: 36px;
  align-items: center;
}
.theme-activity-list {
  display: grid;
  gap: 12px;
}
.theme-activity-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}
.theme-activity-fields {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr);
  gap: 14px;
  align-items: end;
}
.theme-activity-row label {
  display: grid;
  gap: 7px;
}
.theme-activity-row label > span {
  display: block;
  font-weight: 800;
  color: #1f2937;
}
.theme-activity-row input,
.theme-activity-row select,
.theme-activity-row textarea {
  width: 100%;
  box-sizing: border-box;
}
.theme-activity-description textarea {
  min-height: 104px;
  resize: vertical;
}
.theme-activity-groups {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.theme-group-preset-select {
  max-width: 430px;
}
.theme-activity-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.theme-group-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px 18px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}
.theme-group-list label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 40px;
  padding: 4px 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}
.theme-group-list input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}
.theme-group-list span {
  display: block;
  min-width: 0;
  color: #172033;
  font-weight: 800;
  line-height: 1.2;
}
.theme-group-list small {
  display: block;
  color: #64748b;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 700;
}
.theme-activity-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}
.theme-activity-actions .btn {
  min-width: 160px;
}
.preset-groups-panel {
  margin-top: 14px;
}
.theme-record-form {
  margin-bottom: 18px;
}
.theme-record-submit {
  display: flex;
  align-items: end;
}
.theme-history-table td,
.theme-history-table th {
  vertical-align: top;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.profile-facts {
  display: grid;
  gap: 12px;
}
.profile-facts div {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.payment-mini-list {
  display: grid;
  gap: 10px;
}
.payment-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid #2f9fe8;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfdff;
}
.payment-mini-row div {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.payment-mini-row strong,
.payment-mini-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.payment-mini-row strong {
  color: var(--ink);
  font-size: 14px;
}
.payment-mini-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.payment-mini-row b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 9px;
  background: #eef7ff;
  color: #1878b9;
  font-size: 12px;
}
.payment-mini-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.payment-mini-actions .btn {
  padding: 7px 10px;
  font-size: 12px;
}
.payment-mini-row.has-debt {
  border-left-color: #ef6351;
}
.payment-mini-row.has-debt b {
  background: #fff0f2;
  color: #b22a49;
}
.payment-mini-row.is-paid {
  border-left-color: #12bda3;
}
.payment-mini-row.is-paid b {
  background: #e7fbf7;
  color: #0d8f79;
}
.debt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-facts strong {
  color: #374151;
}
.profile-facts span {
  color: var(--ink);
  font-weight: 700;
}
.blacklist-panel {
  margin-bottom: 18px;
}
.blacklist-timeline {
  display: grid;
  gap: 10px;
}
.blacklist-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid #94a3b8;
  border-radius: 8px;
  padding: 14px 16px;
  background: #fbfdff;
}
.blacklist-item.is-active {
  border-left-color: #ef6351;
}
.blacklist-item header,
.blacklist-item footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.blacklist-item header strong {
  color: var(--ink);
}
.blacklist-item header span,
.blacklist-item footer span {
  color: var(--muted);
  font-weight: 800;
}
.blacklist-item p {
  margin: 0;
  color: #1f2937;
  line-height: 1.45;
}
.profile-edit-form {
  max-height: min(84vh, 920px);
  overflow: auto;
}
.profile-edit-sections {
  display: grid;
  gap: 20px;
}
.profile-edit-sections section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}
.profile-edit-sections h3 {
  margin: 0 0 14px;
  color: var(--ink);
}
.expense-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.expense-summary article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}
.expense-summary span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}
.expense-summary strong {
  display: block;
  margin-top: 8px;
  color: #213044;
  font-size: 20px;
}
.payment-total-pills {
  align-items: center;
}
.payment-total-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 7px 14px;
  color: #1f2d3d;
  font-weight: 800;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 12px 28px rgba(35, 99, 143, 0.08);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.payment-total-pill.is-day {
  color: #0d8f79;
  background: rgba(231, 251, 247, 0.72);
}
.payment-total-pill.is-week {
  color: #1674bd;
  background: rgba(238, 246, 255, 0.76);
}
.payment-total-pill.is-total {
  color: #b22a49;
  background: rgba(255, 240, 242, 0.78);
}
@media (max-width: 760px) {
  .definition-head .payment-total-pills {
    justify-content: flex-start;
  }
  .payment-total-pill {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 13px;
  }
}
.expense-insights {
  margin: 16px 0;
}
.expense-insight-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 22px 60px rgba(31,55,78,.10);
}
.expense-insight-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.expense-insight-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}
.expense-insight-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 700;
}
.expense-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.expense-kpi-grid article {
  border: 1px solid rgba(204,225,239,.86);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.72);
}
.expense-kpi-grid span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}
.expense-kpi-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 22px;
}
.expense-kpi-grid small {
  display: block;
  margin-top: 6px;
  color: #71839a;
  font-weight: 700;
}
.expense-chart-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}
.expense-donut {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 230px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.82), 0 18px 40px rgba(43,91,124,.14);
}
.expense-donut::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: inherit;
  background: rgba(255,255,255,.92);
  box-shadow: inset 0 0 24px rgba(174,210,232,.34);
}
.expense-donut span,
.expense-donut small {
  position: relative;
  z-index: 1;
}
.expense-donut span {
  color: var(--ink);
  font-size: 34px;
  font-weight: 900;
}
.expense-donut small {
  margin-top: -34px;
  color: var(--muted);
  font-weight: 800;
}
.expense-chart-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.expense-chart-row {
  min-width: 0;
}
.expense-chart-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
}
.expense-chart-row-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.expense-chart-row-head span i {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 99px;
}
.expense-chart-row-head strong {
  white-space: nowrap;
}
.expense-chart-bar {
  height: 9px;
  margin: 7px 0 4px;
  border-radius: 999px;
  background: rgba(218,233,244,.85);
  overflow: hidden;
}
.expense-chart-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.expense-chart-row small {
  color: var(--muted);
  font-weight: 800;
}
.expense-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin: 16px 0 18px;
  padding: 14px;
  border: 1px solid rgba(213,231,243,.82);
  border-radius: 22px;
  background: rgba(255,255,255,.54);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 16px 34px rgba(70,120,150,.08);
}
.expense-filter-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.expense-filter-bar .btn {
  border-radius: 999px;
}
.expense-filter-bar .btn.is-active {
  color: #126ca8;
  background: rgba(213,241,255,.9);
  box-shadow: inset 0 0 0 1px rgba(91,181,235,.4), 0 10px 26px rgba(86,175,228,.12);
}
.expense-filter-bar label {
  display: grid;
  gap: 6px;
  min-width: 170px;
  color: var(--muted);
  font-weight: 800;
}
.expense-filter-bar input {
  min-height: 44px;
  border: 1px solid rgba(202,224,239,.9);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255,255,255,.78);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 14px 30px rgba(80,130,160,.07);
}
.expense-filter-bar input:focus {
  border-color: rgba(78,168,222,.74);
  box-shadow: 0 0 0 4px rgba(107,190,239,.16), inset 0 1px 0 rgba(255,255,255,.9);
}
.expense-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 14px 0;
}
.expense-search {
  display: grid;
  gap: 7px;
  width: min(100%, 430px);
  color: var(--muted);
  font-weight: 800;
}
.expense-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(202,224,239,.9);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255,255,255,.82);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 14px 34px rgba(80,130,160,.08);
  outline: none;
}
.expense-search input:focus {
  border-color: rgba(78,168,222,.74);
  box-shadow: 0 0 0 4px rgba(107,190,239,.16), inset 0 1px 0 rgba(255,255,255,.9);
}
.btn {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 700;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #eef6fc; color: var(--ink); }
.btn-danger { background: #ef6351; color: white; }

@media (max-width: 860px) {
  .expense-filter-bar {
    display: grid;
  }
  .expense-filter-bar label,
  .expense-filter-bar .btn,
  .expense-filter-presets {
    width: 100%;
  }
  .expense-filter-presets .btn {
    flex: 1 1 130px;
  }
  .expense-chart-layout {
    grid-template-columns: 1fr;
  }
}
.btn-danger:hover { background: #d94b3a; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card, .panel-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(35, 99, 143, 0.07);
}
.stat-card { padding: 18px; }
.stat-card strong { display: block; margin-top: 10px; font-size: 34px; }
.birthday-stat-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 184, 77, 0.45);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 245, 224, 0.82)),
    radial-gradient(circle at top right, rgba(255, 206, 94, 0.32), transparent 38%);
}
.birthday-stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-left: 5px solid #ffb547;
}
.birthday-stat-card span { color: #a66a00; }
.birthday-stat-card strong { color: #7b4b00; }
.birthday-stat-card ul {
  position: relative;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.birthday-stat-card li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.birthday-stat-card a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.birthday-stat-card small,
.birthday-stat-card em {
  position: relative;
  color: #7d6a4b;
  font-style: normal;
}
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.panel-grid.single-wide {
  grid-template-columns: 1fr;
}
.panel-card { padding: 20px; }
.panel-card h2 { margin: 0 0 14px; font-size: 20px; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-actions button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  cursor: pointer;
}
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; }
.alert-error { background: #fff0ee; color: var(--danger); border: 1px solid #ffd1cb; }
.record-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  margin: -24px -24px 28px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid #dfe5ec;
}
.record-titlebar h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #4b5563;
}
.breadcrumb {
  color: #8a92a3;
  font-weight: 700;
}
.breadcrumb span {
  padding: 0 10px;
  color: #6b7280;
}
.record-form {
  display: grid;
  gap: 24px;
}
.record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.record-card {
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.05);
  padding: 24px;
}
.record-card h2 {
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 24px;
}
.compact-info {
  margin-bottom: 18px;
  padding: 14px 16px;
}
.compact-info p {
  margin: 8px 0 0;
  line-height: 1.45;
}
.schedule-planner {
  display: grid;
  gap: 10px;
}
.schedule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 14px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid #e3e8ef;
  border-radius: 5px;
  background: #fbfcfe;
}
.schedule-row span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2f343b;
  font-weight: 800;
}
.schedule-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #12bda3;
}
.schedule-row input[type="time"] {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cfd7e2;
  border-radius: 5px;
  padding: 8px 10px;
  color: #2f343b;
  background: #fff;
}
.record-fields {
  display: grid;
  gap: 18px;
}
.record-fields label {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
.record-fields label > span {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: #2f343b;
  font-weight: 800;
}
.record-fields input,
.record-fields select,
.record-fields textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd7e2;
  border-radius: 5px;
  padding: 10px 14px;
  color: #2f343b;
  background: #fff;
}
.record-fields textarea {
  resize: vertical;
}
.record-fields input::placeholder,
.record-fields textarea::placeholder {
  color: #8f96a6;
}
.record-fields input:focus,
.record-fields select:focus,
.record-fields textarea:focus {
  outline: 3px solid rgba(56, 170, 245, 0.15);
  border-color: #8bcdf8;
}
.textarea-row small {
  grid-column: 2;
  color: #8a92a3;
  font-weight: 700;
}
.required-note {
  margin: 24px 0 0;
  color: #8a92a3;
  font-weight: 700;
}
.record-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
}
.compact-actions {
  min-height: auto;
  margin-top: 18px;
}
.duplicate-student-list {
  display: grid;
  gap: 10px;
}
.duplicate-student-item {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  background: #fbfdff;
  color: #172033;
  text-decoration: none;
}
.duplicate-student-item:hover {
  border-color: #8bcdf8;
  background: #f3fbff;
}
.duplicate-student-item span {
  color: #64748b;
  font-weight: 700;
}
.duplicate-student-item em {
  color: var(--primary-dark);
  font-style: normal;
  font-weight: 900;
}
.weekly-program-card {
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(35, 99, 143, 0.05);
}
.weekly-info {
  position: relative;
  margin: 0;
  border-radius: 0;
  border-width: 0 0 1px 5px;
  border-left-color: #4667f2;
  background: #fff;
  color: #252b33;
}
.weekly-info button {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.weekly-program-table-wrap {
  overflow-x: auto;
}
.weekly-program-table {
  min-width: 1080px;
  border-collapse: collapse;
  width: 100%;
}
.weekly-program-table th {
  padding: 14px 18px;
  border-bottom: 1px solid #d5d9df;
  color: #3b414a;
  font-size: 18px;
  font-weight: 600;
  text-align: left;
}
.weekly-sort-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font: inherit;
  text-align: left;
}
.weekly-sort-button::after {
  content: 'A-Z';
  border-radius: 999px;
  background: rgba(224, 244, 255, 0.85);
  color: #257eb8;
  font-size: 11px;
  line-height: 1;
  padding: 5px 7px;
  opacity: 0.55;
}
.weekly-sort-button.is-desc::after {
  content: 'Z-A';
}
.weekly-sort-button.is-active::after {
  opacity: 1;
}
.weekly-program-table td {
  padding: 8px 18px;
  border-bottom: 0;
  background: #f6f6f6;
}
.weekly-program-table tr:nth-child(even) td {
  background: #fff;
}
.weekly-program-table select,
.weekly-program-table input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #aeb4bb;
  border-radius: 3px;
  padding: 8px 12px;
  background: #fff;
  color: #252b33;
  font-size: 18px;
}
.weekly-program-table th:nth-child(1),
.weekly-program-table td:nth-child(1) {
  width: 190px;
}
.weekly-program-table th:nth-child(2),
.weekly-program-table td:nth-child(2),
.weekly-program-table th:nth-child(3),
.weekly-program-table td:nth-child(3) {
  width: 160px;
}
.weekly-program-table th:nth-child(4),
.weekly-program-table td:nth-child(4),
.weekly-program-table th:nth-child(5),
.weekly-program-table td:nth-child(5) {
  width: 260px;
}
.weekly-program-table th:nth-child(6),
.weekly-program-table td:nth-child(6) {
  width: 220px;
}
.weekly-actions {
  display: flex;
  gap: 8px;
}
.weekly-actions button {
  min-height: 34px;
  border: 1px solid #9ca3af;
  border-radius: 4px;
  padding: 0 10px;
  background: #fff;
  color: #1f2f46;
  cursor: pointer;
  font-weight: 600;
}
.weekly-actions button.is-assign {
  color: #0d8f79;
}
.weekly-actions button.is-copy {
  color: #2f9fe8;
}
.weekly-actions button.is-delete {
  color: #d12c24;
}
.weekly-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.group-student-dialog {
  width: min(1040px, calc(100% - 32px));
}
.group-student-assign {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
}
.group-student-assign label {
  display: grid;
  gap: 7px;
  color: #2f343b;
  font-weight: 800;
}
.group-student-assign select {
  min-height: 44px;
  border: 1px solid #cfd7e2;
  border-radius: 5px;
  padding: 9px 12px;
  background: #fff;
}
.group-target-select {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #dce9f5;
  border-radius: 10px;
  background: #fbfdff;
}
.group-target-select > strong {
  color: #1f2f46;
  font-size: 16px;
}
.group-target-select > p {
  margin: 0;
  color: #718096;
  font-weight: 700;
}
.group-target-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}
.group-target-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.group-target-option input {
  margin-top: 3px;
}
.group-target-option span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.group-target-option strong {
  color: #1f2f46;
  font-size: 14px;
}
.group-target-option em {
  color: #718096;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
}
.role-dialog {
  width: min(1040px, calc(100% - 32px));
}
.role-permission-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #dce9f5;
  border-radius: 12px;
  background: #fbfdff;
}
.role-permission-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.role-permission-option input {
  margin-top: 4px;
}
.role-permission-option span {
  display: grid;
  gap: 3px;
}
.role-permission-option strong {
  color: #1f2f46;
  font-size: 14px;
}
.role-permission-option em {
  color: #718096;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
}
.group-student-list {
  display: grid;
  gap: 8px;
  max-height: 340px;
  overflow: auto;
}
.group-student-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #e3e8ef;
  border-radius: 5px;
  background: #fbfcfe;
}
.group-student-item span {
  font-weight: 700;
}
.group-student-item button {
  min-height: 32px;
  border: 1px solid #efb4ad;
  border-radius: 4px;
  padding: 0 10px;
  background: #fff5f4;
  color: #c0392b;
  cursor: pointer;
  font-weight: 700;
}
.group-monthly-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e3e8ef;
}
.group-monthly-head h3 {
  margin: 0 0 4px;
  color: #1f2f46;
  font-size: 20px;
}
.group-monthly-head p {
  margin: 0;
  color: #718096;
}
.group-monthly-head label {
  display: grid;
  gap: 6px;
  min-width: 180px;
  color: #2f343b;
  font-weight: 800;
}
.group-monthly-head input {
  min-height: 42px;
  border: 1px solid #cfd7e2;
  border-radius: 5px;
  padding: 8px 10px;
}
.group-monthly-list {
  max-height: 360px;
  margin-top: 12px;
  overflow: auto;
  border: 1px solid #e3e8ef;
  border-radius: 6px;
}
.group-monthly-list table {
  width: 100%;
  border-collapse: collapse;
}
.group-monthly-list th,
.group-monthly-list td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f6;
  text-align: left;
  white-space: nowrap;
}
.group-monthly-list th {
  color: #718096;
  font-weight: 800;
}
.appointment-dialog.group-vacancy-dialog {
  width: min(1960px, calc(100vw - 20px));
  max-width: none;
}
.group-vacancy-dialog .appointment-dialog-form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  max-width: none;
  max-height: calc(100vh - 48px);
  overflow: hidden;
}
.group-vacancy-dialog .dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dialog-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.dialog-head-actions .btn {
  min-height: 44px;
  padding: 10px 18px;
}
.group-vacancy-print-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3e8ef;
}
.group-vacancy-print {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}
.group-vacancy-print-head h3 {
  margin: 0;
  color: #1f2f46;
  font-size: 22px;
}
.group-vacancy-print-head span {
  color: #718096;
  font-weight: 700;
}
.group-vacancy-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #1f2f46;
  font-weight: 800;
}
.group-vacancy-option input {
  width: 18px;
  height: 18px;
}
.group-vacancy-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #e3e8ef;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}
.group-vacancy-quick,
.group-vacancy-dates {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.group-vacancy-dates label {
  display: grid;
  gap: 5px;
  color: #5f6f85;
  font-weight: 700;
}
.group-vacancy-dates input {
  min-width: 160px;
  padding: 10px 12px;
  border: 1px solid #dbe5f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  color: #1f2f46;
  font: inherit;
}
.group-vacancy-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.group-vacancy-summary article {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(219, 229, 241, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(31, 47, 70, 0.08);
}
.group-vacancy-summary span {
  color: #718096;
  font-size: 12px;
  font-weight: 800;
}
.group-vacancy-summary strong {
  color: #1f2f46;
  font-size: 22px;
  line-height: 1.1;
}
.group-vacancy-summary article.is-overfull strong {
  color: #d34b3f;
}
.group-vacancy-calendar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  align-items: start;
  gap: 10px;
  min-height: 0;
  padding: 2px;
}
.group-vacancy-day {
  min-height: 260px;
  padding: 8px;
  border: 1px solid #dbe5f1;
  border-radius: 6px;
  background: #fbfdff;
}
.group-vacancy-day h4 {
  margin: 0 0 8px;
  color: #1f2f46;
  text-align: center;
  font-size: 14px;
}
.group-vacancy-slot {
  display: grid;
  gap: 3px;
  margin-bottom: 7px;
  padding: 8px;
  border: 1px solid #dbe5f1;
  border-left: 4px solid #18bfa7;
  border-radius: 5px;
  background: #fff;
}
.group-vacancy-slot.is-full {
  border-color: #ffd5d0;
  border-left-color: #f25f4c;
  background: #fff7f6;
}
.group-vacancy-slot.is-overfull {
  border-color: #ffc4bc;
  border-left-color: #e63f2f;
  background: #fff2f0;
}
.group-vacancy-slot.has-last-week-ended {
  border-color: #f3c66b;
  border-left-color: #d99000;
  background: #fffaf0;
}
.group-vacancy-slot strong,
.group-vacancy-slot span,
.group-vacancy-slot b {
  color: #1f2f46;
  font-size: 12px;
}
.group-vacancy-slot span {
  font-weight: 800;
}
.group-vacancy-slot small {
  color: #718096;
  font-weight: 700;
  font-size: 11px;
}
.group-vacancy-slot b {
  color: #0d8f79;
}
.group-vacancy-slot.is-full b {
  color: #d34b3f;
}
.group-vacancy-slot.is-overfull b {
  color: #c93328;
}
.group-vacancy-students {
  display: grid;
  gap: 2px;
  margin: 5px 0 0;
  padding-left: 16px;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}
.group-vacancy-last-week-ended {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  padding: 7px;
  border: 1px solid #f3c66b;
  border-radius: 5px;
  background: #fff3d4;
  color: #7a4d00;
  font-size: 11px;
  font-weight: 800;
}
.group-vacancy-last-week-ended em {
  color: #7a4d00;
  font-style: normal;
}
.group-vacancy-last-week-ended ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding-left: 16px;
}
.group-vacancy-empty {
  padding: 20px 6px;
  color: #8793a6;
  text-align: center;
  font-size: 12px;
}
.appointment-note-list,
.daily-note-list,
.student-note-timeline {
  display: grid;
  gap: 12px;
}
.appointment-note-list article,
.daily-note-card,
.student-note-item {
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  background: #fff;
}
.appointment-note-list article {
  display: grid;
  gap: 8px;
  padding: 12px;
}
.appointment-note-list article div,
.daily-note-card-head,
.student-note-item header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.appointment-note-list strong,
.daily-note-card-head strong,
.student-note-item strong {
  color: #1f2f46;
  font-weight: 900;
}
.appointment-note-list span,
.student-note-item span,
.daily-note-card footer {
  color: #718096;
  font-size: 12px;
  font-weight: 700;
}
.appointment-note-list p,
.daily-note-card p,
.student-note-item p {
  margin: 0;
  color: #334155;
  font-weight: 650;
  line-height: 1.55;
}
.daily-note-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.daily-note-card-head a {
  display: block;
  margin-top: 4px;
  color: #0d8f79;
  font-weight: 900;
  text-decoration: none;
}
.daily-note-card-head > span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  background: #e8f7f5;
  color: #0d8f79;
  font-size: 12px;
  font-weight: 900;
}
.daily-note-card footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid #edf2f7;
}
.student-note-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}
.student-note-item time {
  color: #0d8f79;
  font-size: 13px;
  font-weight: 900;
}
.student-note-item > div {
  display: grid;
  gap: 8px;
}
.student-note-item small {
  color: #718096;
  font-weight: 800;
}
@media (max-width: 760px) {
  .group-vacancy-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .student-note-item {
    grid-template-columns: 1fr;
  }
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.payment-tracking-grid {
  grid-template-columns: minmax(0, 1fr);
}
.report-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.report-summary-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.report-summary-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.report-summary-seven {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.report-card {
  min-height: 124px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 99, 143, 0.06);
}
.report-card span {
  color: #6f7f91;
  font-weight: 800;
}
.report-card strong {
  color: #213044;
  font-size: 26px;
}
.report-card .report-card-period {
  color: #758397;
  font-size: 12px;
  line-height: 1.35;
}
.report-card.accent-red { border-left-color: #ef6351; }
.report-card.accent-green { border-left-color: #12bda3; }
.report-card.accent-dark { border-left-color: #1f2d3d; }
.report-card.accent-purple { border-left-color: #7c5cff; }
.report-card.accent-orange { border-left-color: #f59e0b; }
.report-card.accent-teal { border-left-color: #0f9f8f; }

.finance-analysis-filter {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px 16px;
}
.finance-analysis-filter form,
.finance-view-switch {
  display: flex;
  align-items: end;
  gap: 8px;
}
.finance-analysis-filter label {
  display: grid;
  gap: 6px;
}
.finance-analysis-filter label span {
  color: #6f7f91;
  font-size: 12px;
}
.finance-analysis-filter p {
  justify-self: end;
  margin: 0 0 9px;
  color: #6f7f91;
  font-size: 13px;
}
.finance-analysis-results {
  transition: opacity 0.16s ease;
}
.finance-analysis-results.is-loading {
  opacity: 0.58;
  pointer-events: none;
}
.finance-profit-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.finance-profit-summary .report-card small {
  color: #748397;
  font-size: 12px;
}
.finance-result-card.is-kar { border-left-color: #0f9f8f; }
.finance-result-card.is-zarar { border-left-color: #ef6351; }
.finance-result-card.is-basabas { border-left-color: #7c8797; }
.finance-chart-card,
.finance-detail-card {
  margin-bottom: 16px;
}
.finance-chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #66778c;
  font-size: 13px;
}
.finance-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.finance-chart-legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}
.finance-chart-legend .is-income,
.finance-chart-bar.is-income { background: linear-gradient(180deg, #27c7b1, #0f9f8f); }
.finance-chart-legend .is-expense,
.finance-chart-bar.is-expense { background: linear-gradient(180deg, #ff9b83, #ef6351); }
.finance-chart-scroll {
  overflow-x: auto;
  padding: 14px 4px 2px;
}
.finance-chart {
  min-width: var(--finance-chart-min-width, 900px);
  height: 340px;
  display: grid;
  grid-template-columns: repeat(var(--finance-period-count, 12), minmax(58px, 1fr));
  align-items: end;
  gap: 12px;
  padding: 18px 12px 0;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(to top, rgba(116, 142, 163, 0.12) 1px, transparent 1px);
  background-size: 100% 25%;
}
.finance-chart-column {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 7px;
  text-align: center;
}
.finance-chart-bars {
  min-height: 0;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 5px;
}
.finance-chart-bar {
  width: min(22px, 40%);
  min-height: 0;
  border-radius: 7px 7px 2px 2px;
  box-shadow: 0 5px 14px rgba(38, 68, 91, 0.12);
}
.finance-chart-column > strong {
  min-height: 30px;
  color: #34445a;
  font-size: 11px;
  line-height: 1.25;
}
.finance-chart-column > small {
  font-size: 10px;
  white-space: nowrap;
}
.finance-net-text.is-kar,
.finance-chart-column > small.is-kar { color: #087f70; }
.finance-net-text.is-zarar,
.finance-chart-column > small.is-zarar { color: #cf4939; }
.finance-net-text.is-basabas,
.finance-chart-column > small.is-basabas { color: #718094; }
.finance-detail-table td,
.finance-detail-table th {
  white-space: nowrap;
}
.finance-status {
  display: inline-flex;
  justify-content: center;
  min-width: 70px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
}
.finance-status.is-kar { background: rgba(15, 159, 143, 0.12); color: #087f70; }
.finance-status.is-zarar { background: rgba(239, 99, 81, 0.12); color: #c74636; }
.finance-status.is-basabas { background: rgba(113, 128, 148, 0.12); color: #647388; }
.finance-detail-table tfoot th {
  border-top: 2px solid var(--line);
}

@media (max-width: 980px) {
  .finance-analysis-filter {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .finance-analysis-filter p {
    justify-self: start;
    margin: 0;
  }
  .finance-profit-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .finance-analysis-filter form {
    align-items: stretch;
    flex-direction: column;
  }
  .finance-profit-summary {
    grid-template-columns: 1fr;
  }
  .finance-chart-card .definition-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Genel bakis ozetlerini daha kompakt tutar. */
.dashboard-summary-grid {
  align-items: start;
  gap: 10px;
  margin-bottom: 12px;
}
.dashboard-summary-grid .stat-card {
  padding: 12px 16px;
  border-radius: 16px;
}
.dashboard-summary-grid .stat-card strong {
  margin-top: 4px;
  font-size: 28px;
  line-height: 1.1;
}
.dashboard-summary-grid .birthday-stat-card::before {
  border-left-width: 3px;
}
.dashboard-summary-grid .birthday-stat-card ul {
  gap: 4px;
  margin-top: 6px;
}
.dashboard-summary-grid .birthday-stat-card li {
  gap: 0;
}
.dashboard-finance-summary {
  gap: 10px;
  margin-bottom: 12px;
}
.dashboard-finance-summary .report-card {
  min-height: 82px;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 16px;
}
.dashboard-finance-summary .report-card span {
  font-size: 13px;
}
.dashboard-finance-summary .report-card strong {
  font-size: 21px;
  line-height: 1.2;
}
.dashboard-last-lessons {
  grid-template-columns: minmax(0, 1fr);
}
.dashboard-last-lessons .report-panel {
  min-width: 0;
  width: 100%;
}
.report-panel {
  margin-bottom: 16px;
}
.report-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.report-section-head h2 {
  margin-bottom: 6px;
}
.capacity-week-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
}
.capacity-week-filter label {
  display: grid;
  gap: 4px;
}
.capacity-week-filter label span {
  color: var(--muted);
  font-size: 12px;
}
.capacity-week-filter input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  background: var(--white);
  font: inherit;
}
.capacity-report {
  display: grid;
  gap: 18px;
}
.capacity-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.capacity-metrics article {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}
.capacity-metrics span,
.capacity-calculator label span,
.capacity-result span {
  color: #718096;
  font-weight: 800;
}
.capacity-metrics strong {
  color: #1f2f46;
  font-size: 22px;
}
.capacity-split {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.capacity-calculator {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.capacity-calculator h3 {
  margin: 0;
  color: #1f2f46;
}
.capacity-calculator label {
  display: grid;
  gap: 6px;
}
.capacity-calculator input {
  min-height: 44px;
  border: 1px solid #d4dde8;
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
  font-weight: 700;
}
.capacity-result {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  background: #eef8ff;
}
.capacity-result strong {
  color: #0d76bb;
}
.capacity-calculator small {
  color: #718096;
  font-weight: 700;
  line-height: 1.35;
}
.income-breakdown {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.78);
}
.income-breakdown-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.income-breakdown-head h3 {
  margin: 0 0 6px;
  color: #1f2f46;
  font-size: 20px;
}
.income-formula {
  display: grid;
  gap: 4px;
  min-width: 260px;
  padding: 12px 14px;
  border: 1px solid #dce9f5;
  border-radius: 12px;
  background: #f7fbff;
}
.income-formula span,
.income-breakdown-summary span,
.income-bar-label span,
.income-bar-values span,
.income-bar-values em {
  color: #718096;
  font-weight: 800;
}
.income-formula strong,
.income-formula em {
  color: #1f2f46;
  font-style: normal;
  font-weight: 900;
}
.income-breakdown-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.income-breakdown-summary article {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid #dce9f5;
  border-radius: 12px;
  background: #fbfdff;
}
.income-breakdown-summary strong {
  color: #1f2f46;
  font-size: 18px;
}
.income-breakdown-summary em {
  color: #0f766e;
  font-style: normal;
  font-weight: 900;
}
.income-bars {
  display: grid;
  gap: 10px;
}
.income-bar-row {
  display: grid;
  grid-template-columns: 210px minmax(140px, 1fr) 300px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dce9f5;
  border-radius: 12px;
  background: #fff;
}
.income-bar-label {
  display: grid;
  gap: 4px;
}
.income-bar-label strong {
  color: #1f2f46;
}
.income-bar-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf4fb;
}
.income-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #28a7df, #12bda3);
}
.income-bar-row.is-excluded .income-bar-track i {
  background: linear-gradient(90deg, #aeb9c8, #d4dde8);
}
.income-bar-row.is-excluded {
  background: #f8fafc;
}
.income-bar-values {
  display: grid;
  gap: 3px;
  justify-items: end;
  text-align: right;
}
.income-bar-values em {
  color: #0f766e;
  font-style: normal;
}
.income-bar-row.is-excluded .income-bar-values em {
  color: #8a94a6;
}
.renewal-week-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.renewal-week {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}
.renewal-week h3 {
  margin: 0;
  color: #213044;
  font-size: 16px;
}
.renewal-week small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}
.renewal-total {
  display: block;
  margin-top: 10px;
  color: #0f766e;
  font-size: 14px;
}
.renewal-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.renewal-item {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.renewal-item strong,
.renewal-item span,
.renewal-item em {
  font-size: 13px;
  font-style: normal;
}
.renewal-item strong {
  color: #213044;
}
.renewal-item span,
.renewal-item em {
  color: var(--muted);
  font-weight: 700;
}
.renewal-calendar-panel {
  overflow: hidden;
}
.renewal-range-actions .is-active {
  background: #e8f7f5;
  color: #0f766e;
}
.renewal-custom-range {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 0 0 14px;
}
.renewal-custom-range label {
  display: grid;
  gap: 6px;
}
.renewal-custom-range span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.renewal-custom-range input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}
.renewal-calendar {
  display: grid;
  gap: 14px;
}
.renewal-calendar-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #ccebe6;
  border-radius: 8px;
  background: #f2fbfa;
}
.renewal-calendar-summary span {
  color: var(--muted);
  font-weight: 800;
}
.renewal-calendar-summary strong {
  color: #0f766e;
  font-size: 22px;
}
.renewal-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.renewal-day {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.renewal-day.has-balance {
  border-color: #9bd9cf;
  background: #f7fefd;
}
.renewal-day-head {
  display: grid;
  gap: 6px;
}
.renewal-day-head strong {
  color: #213044;
  font-size: 13px;
}
.renewal-day-head span {
  color: #0f766e;
  font-weight: 900;
}
.renewal-day-list {
  display: grid;
  gap: 8px;
}
.renewal-day-list div,
.renewal-day-list em {
  display: grid;
  gap: 3px;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.renewal-day-list b {
  color: #213044;
}
.renewal-student-link {
  color: inherit;
  text-decoration: none;
}
.renewal-student-link:hover,
.renewal-student-link:focus-visible {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.renewal-day-list i {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  background: #e8f7f5;
  color: #0f766e;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.report-helper {
  margin: -4px 0 14px;
  color: var(--muted);
  font-weight: 600;
}
.institution-founder-fields {
  display: grid;
  gap: 14px;
}
.report-bars {
  display: grid;
  gap: 12px;
}
.report-bar-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 12px;
}
.report-bar-row.wide {
  grid-template-columns: 220px minmax(0, 1fr) 130px 110px;
}
.report-bar-row span,
.report-bar-row strong,
.report-bar-row em {
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}
.report-bar-row div {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef6fc;
}
.report-bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38aaf5, #12bda3);
}
.report-status-list {
  display: grid;
  gap: 10px;
}
.report-status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #e3e8ef;
  border-radius: 6px;
  background: #fbfcfe;
  font-weight: 800;
}
.record-actions .btn-primary {
  background: #12b99a;
}
.record-actions .btn-primary:hover {
  background: #0f9f85;
}
.definition-card {
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  padding: 24px;
}
.definition-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}
.definition-head h2 {
  margin: 0;
  color: #4b5563;
  font-size: 24px;
}
.btn-sky {
  background: #35bdf2;
  color: #fff;
}
.info-box {
  margin: 26px 0;
  padding: 18px 22px;
  border: 1px solid #b9ecfb;
  border-radius: 5px;
  background: #def6fd;
  color: #2d9ed0;
}
.info-box strong {
  display: block;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #b9e5f2;
  font-size: 18px;
}
.info-box p {
  margin: 0;
  font-weight: 600;
}
.package-price-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(52, 152, 219, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
}
.package-price-panel[hidden] {
  display: none;
}
.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.muted-note {
  margin: 0;
  color: #708196;
  font-size: 14px;
  font-weight: 700;
}
.inline-form-panel {
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  background: #fbfdff;
}
.inline-form-panel h3 {
  margin: 0 0 14px;
}
.definition-table {
  margin-top: 24px;
}
.assistant-heading {
  padding: 18px 22px;
  border-radius: 5px;
  background: #f5f7fa;
}
.assistant-heading h2 {
  margin: 0;
  color: #4b5563;
  font-size: 24px;
}
.check-row .check-list {
  display: grid;
  gap: 10px;
  min-height: 44px;
  padding: 12px;
  border: 1px solid #dfe5ec;
  border-radius: 5px;
  background: #fff;
}
.check-row .check-list label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.check-row .check-list input {
  width: auto;
  min-height: auto;
}

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

.form-card,
.nested-card {
  border: 1px solid #dfe7f0;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}

.compact-form {
  margin-top: 14px;
}

.inline-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input {
  min-width: 260px;
}

.truncate-cell {
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-btn {
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  font-weight: 700;
  cursor: pointer;
  color: #1f2d3d;
  background: #eef6ff;
}

.mini-btn.danger {
  color: #ef5b47;
  background: #fff0ed;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
  background: #eef6ff;
  color: #1674bd;
}

.sms-template-dialog {
  max-width: min(1080px, calc(100vw - 40px));
}

.sms-template-dialog .one-column {
  grid-template-columns: 1fr;
}

.sms-char-count {
  justify-self: end;
  color: #8a92a3;
  font-weight: 700;
}

.sms-template-status {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 800;
  white-space: nowrap;
}

.sms-template-status.is-kullanilabilir {
  background: #0fc3a3;
  color: #fff;
}

.sms-template-status.is-incelemede {
  background: #fff3cd;
  color: #8a6200;
}

.sms-template-status.is-reddedildi {
  background: #fff0ed;
  color: #ef5b47;
}

.sms-report-page .definition-head p {
  margin: 6px 0 0;
}

.sms-report-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.sms-report-summary article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid #dfe7f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.sms-report-summary span {
  color: #6f7f94;
  font-weight: 700;
}

.sms-report-summary strong {
  color: #152238;
  font-size: 24px;
}

.sms-report-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 18px 0 8px;
}

.sms-report-toolbar label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.sms-report-table table {
  min-width: 1040px;
}

.sms-reminder-settings {
  margin-bottom: 20px;
}

.sms-reminder-settings .definition-head p {
  margin: 6px 0 0;
}

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #dfe7f0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.checkbox-card input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.profile-sms-report-dialog .appointment-dialog-form {
  width: min(1380px, calc(100vw - 32px));
  max-height: min(86vh, 900px);
  overflow: auto;
}

.profile-sms-report-table {
  width: 100%;
  overflow-x: auto;
}

.profile-sms-report-table table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.profile-sms-report-table th,
.profile-sms-report-table td {
  vertical-align: top;
  overflow-wrap: anywhere;
}

.profile-sms-report-table th:nth-child(1),
.profile-sms-report-table td:nth-child(1) {
  width: 54px;
}

.profile-sms-report-table th:nth-child(2),
.profile-sms-report-table td:nth-child(2) {
  width: 130px;
}

.profile-sms-report-table th:nth-child(3),
.profile-sms-report-table td:nth-child(3) {
  width: 140px;
}

.profile-sms-report-table th:nth-child(4),
.profile-sms-report-table td:nth-child(4) {
  width: 180px;
}

.profile-sms-report-table th:nth-child(6),
.profile-sms-report-table td:nth-child(6) {
  width: 190px;
}

.profile-sms-report-table .sms-report-message {
  width: auto;
  min-width: 0;
  max-width: none;
  white-space: pre-wrap;
}

.sms-report-person {
  min-width: 180px;
}

.sms-report-person strong,
.sms-report-person small,
.sms-report-error,
.sms-report-delivered {
  display: block;
}

.sms-report-person small,
.sms-report-error,
.sms-report-delivered {
  margin-top: 4px;
  color: #758297;
  font-size: 13px;
  font-weight: 700;
}

.sms-report-message {
  min-width: 420px;
  max-width: 640px;
  white-space: pre-line;
  line-height: 1.55;
}

.sms-report-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.sms-report-status.is-bekliyor,
.sms-report-status.is-tekrar_bekliyor,
.sms-report-status.is-isleniyor {
  background: #e8f3ff;
  color: #2b8bd2;
}

.sms-report-status.is-gonderildi {
  background: #eaf8ff;
  color: #1688bf;
}

.sms-report-status.is-teslim_edildi {
  background: #e7fbf5;
  color: #0c9b7b;
}

.sms-report-status.is-basarisiz,
.sms-report-status.is-iptal {
  background: #fff0ed;
  color: #e45745;
}

.sms-report-error {
  color: #e45745;
}

.sms-report-delivered {
  color: #0c9b7b;
}

.sms-report-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}

.sms-report-pagination .mini-btn.is-active {
  color: #fff;
  background: #35a7e8;
}

.sms-report-pagination .mini-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.group-fit-earliest {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.group-fit-earliest > span {
  display: grid;
  gap: 3px;
  min-width: max-content;
}

.group-fit-earliest strong {
  font-weight: 800;
}

.group-fit-earliest small {
  color: var(--muted);
  font-weight: 700;
}

.group-fit-more {
  width: max-content;
  margin-top: 0;
}

.group-fit-dialog {
  max-width: min(900px, calc(100vw - 32px));
}

.group-fit-dialog .appointment-dialog-form {
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
}

.group-fit-detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(245, 251, 255, 0.76);
}

.group-fit-detail-item {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(219, 234, 245, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.group-fit-detail-item strong,
.group-fit-detail-item b {
  font-weight: 800;
}

.group-fit-detail-item span,
.group-fit-detail-item small,
.group-fit-detail-empty {
  color: var(--muted);
  font-weight: 650;
}

.attendance-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.attendance-card {
  width: min(100%, 560px);
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 90px rgba(31, 41, 55, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(26px) saturate(1.08);
  -webkit-backdrop-filter: blur(26px) saturate(1.08);
}

.attendance-brand {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.attendance-brand strong {
  color: #1674bd;
  font-size: 22px;
  font-weight: 900;
}

.attendance-brand span {
  color: var(--muted);
  font-weight: 800;
}

.attendance-hero {
  border-radius: 26px;
  padding: 24px;
  background: rgba(236, 244, 255, 0.86);
  text-align: center;
}

.attendance-hero h1,
.attendance-detail h2,
.attendance-actions h2,
.attendance-notice h1 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
}

.attendance-hero p,
.attendance-actions p,
.attendance-notice p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.55;
}

.attendance-detail,
.attendance-actions {
  display: grid;
  gap: 14px;
}

.attendance-detail {
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
}

.attendance-detail h2 {
  padding: 20px 22px 4px;
  text-align: center;
}

.attendance-detail div {
  display: grid;
  gap: 6px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
}

.attendance-detail span {
  color: var(--muted);
  font-weight: 800;
}

.attendance-detail strong {
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
}

.attendance-actions {
  text-align: center;
}

.attendance-actions form {
  display: grid;
  gap: 10px;
}

.attendance-button {
  min-height: 58px;
  border: 0;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(31, 41, 55, 0.14);
}

.attendance-button.is-join {
  background: linear-gradient(135deg, #10b981, #0fca5b);
}

.attendance-button.is-decline {
  background: linear-gradient(135deg, #ef5b47, #c33154);
}

.attendance-notice,
.attendance-current {
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(239, 246, 255, 0.9);
  color: var(--text);
  font-weight: 800;
}

.attendance-notice.is-error {
  background: rgba(255, 240, 237, 0.92);
  text-align: center;
}

@media (max-width: 900px) {
  .two-column-grid {
    grid-template-columns: 1fr;
  }

  .sms-report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sms-report-toolbar {
    grid-template-columns: 1fr;
  }

  .inline-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .search-input {
    min-width: 0;
    width: 100%;
  }
}

.parent-portal-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(141, 212, 255, 0.42), transparent 32%),
    radial-gradient(circle at 90% 10%, rgba(255, 218, 232, 0.44), transparent 32%),
    linear-gradient(135deg, #eef9ff, #ffffff 48%, #f5fbff);
}

.parent-portal-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.parent-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.parent-brand {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-weight: 800;
}

.parent-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
}

.parent-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.55;
}

.parent-verify-card,
.parent-child-card {
  margin-bottom: 20px;
}

.parent-phone-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.parent-phone-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.parent-phone-form input {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.parent-result-list {
  display: grid;
  gap: 20px;
}

.parent-child-head,
.parent-section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.parent-child-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.parent-child-head h2,
.parent-section-title h3 {
  margin: 0;
}

.parent-child-head p,
.parent-section-title span {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.parent-section-title {
  margin: 24px 0 12px;
}

.parent-child-tabs {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.parent-child-tabs > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.parent-tab-menu {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  padding: 6px;
  border-radius: 18px;
  background: rgba(241, 245, 249, 0.88);
}

.parent-tab-menu label {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 14px;
  color: #475569;
  cursor: pointer;
  font-weight: 900;
}

.parent-child-tabs > input:nth-of-type(1):checked ~ .parent-tab-menu label:nth-child(1),
.parent-child-tabs > input:nth-of-type(2):checked ~ .parent-tab-menu label:nth-child(2) {
  background: #7dd3fc;
  color: #0f172a;
}

.parent-tab-panel {
  display: none;
}

.parent-child-tabs > input:nth-of-type(1):checked ~ .parent-appointments-panel,
.parent-child-tabs > input:nth-of-type(2):checked ~ .parent-activities-panel {
  display: block;
}

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

.parent-activity-item {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.parent-activity-item time,
.parent-activity-item span,
.parent-activity-item small {
  display: block;
  color: #64748b;
  font-weight: 800;
}

.parent-activity-item strong,
.parent-activity-item h4 {
  display: block;
  margin: 4px 0;
  color: #172033;
  font-size: 17px;
  font-weight: 900;
}

.parent-activity-item h4 {
  margin-top: 0;
}

.parent-activity-item p {
  margin: 6px 0 8px;
  color: #334155;
  line-height: 1.55;
}

.parent-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.parent-mini-card,
.parent-empty {
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.66);
}

.parent-mini-card {
  display: grid;
  gap: 9px;
}

.parent-mini-card strong {
  font-size: 18px;
}

.parent-mini-card span,
.parent-mini-card small,
.parent-empty {
  color: var(--muted);
  font-weight: 600;
}

.parent-rights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.parent-rights b {
  border-radius: 999px;
  padding: 7px 10px;
  background: #eef6ff;
  color: #1674bd;
}

.parent-table-wrap table {
  min-width: 720px;
}

.parent-table-wrap {
  padding: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.parent-table-wrap table {
  border-collapse: separate;
  border-spacing: 0 10px;
}

.parent-table-wrap th {
  color: var(--muted);
  font-weight: 800;
}

.parent-table-wrap td {
  border-top: 1px solid rgba(219, 234, 245, 0.8);
  border-bottom: 1px solid rgba(219, 234, 245, 0.8);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 650;
}

.parent-table-wrap td:first-child {
  border-left: 1px solid rgba(219, 234, 245, 0.8);
  border-radius: 16px 0 0 16px;
}

.parent-table-wrap td:last-child {
  border-right: 1px solid rgba(219, 234, 245, 0.8);
  border-radius: 0 16px 16px 0;
}

.parent-table-wrap tr:nth-child(even) td {
  background: rgba(245, 251, 255, 0.86);
}

.parent-status-geldi {
  background: #e8f8f4;
  color: #0b9b82;
}

.parent-status-gelmedi {
  background: #fff0ed;
  color: #ef5b47;
}

.parent-status-planlandi {
  background: #eef6ff;
  color: #1688d6;
}

.parent-status-bekleniyor {
  background: #fff7e6;
  color: #b26a00;
}

.parent-status-kurum_iptali,
.parent-status-iptal {
  background: #f3f4f6;
  color: #64748b;
}

@media (max-width: 760px) {
  .parent-hero,
  .parent-child-head,
  .parent-section-title,
  .parent-phone-form {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .parent-phone-form {
    align-items: stretch;
  }

  .parent-tab-menu {
    width: 100%;
  }

  .parent-tab-menu label {
    flex: 1 1 160px;
  }

  .parent-activity-item {
    grid-template-columns: 1fr;
  }

  .parent-portal-shell {
    width: min(100% - 24px, 1180px);
    padding: 22px 0 34px;
  }

  .parent-hero {
    margin-bottom: 14px;
    align-items: center;
    text-align: center;
  }

  .parent-hero h1 {
    font-size: 32px;
  }

  .parent-hero p {
    max-width: 360px;
    margin: 0 auto;
    font-size: 14px;
  }

  .parent-verify-card,
  .parent-child-card {
    padding: 18px;
    border-radius: 22px;
  }

  .parent-phone-form input,
  .parent-phone-form .btn {
    width: 100%;
  }

  .parent-phone-form label {
    text-align: left;
  }

  .parent-child-head {
    gap: 10px;
    text-align: left;
  }

  .parent-child-head h2 {
    font-size: 24px;
    line-height: 1.15;
  }

  .parent-section-title {
    gap: 4px;
    margin: 20px 0 10px;
  }

  .parent-section-title h3 {
    font-size: 20px;
  }

  .parent-section-title span {
    font-size: 13px;
  }

  .parent-summary-grid {
    grid-template-columns: 1fr;
  }

  .parent-mini-card,
  .parent-empty {
    min-height: auto;
    border-radius: 18px;
    padding: 14px;
  }

  .parent-table-wrap {
    border-radius: 18px;
    overflow: hidden;
    padding: 8px;
  }

  .parent-table-wrap table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
  }

  .parent-table-wrap th,
  .parent-table-wrap td {
    padding: 12px 8px;
    font-size: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .parent-table-wrap th:nth-child(1),
  .parent-table-wrap td:nth-child(1) {
    width: 35%;
  }

  .parent-table-wrap th:nth-child(2),
  .parent-table-wrap td:nth-child(2) {
    width: 15%;
    text-align: center;
  }

  .parent-table-wrap th:nth-child(3),
  .parent-table-wrap td:nth-child(3) {
    width: 28%;
  }

  .parent-table-wrap th:nth-child(4),
  .parent-table-wrap td:nth-child(4) {
    width: 22%;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .parent-portal-shell {
    width: min(100% - 16px, 1180px);
    padding-top: 16px;
  }

  .parent-hero {
    min-height: auto;
    padding-top: 8px;
  }

  .parent-hero h1 {
    font-size: 30px;
    letter-spacing: 0;
  }

  .parent-brand {
    margin-bottom: 8px;
  }

  .parent-hero p {
    max-width: 320px;
    line-height: 1.45;
  }

  .parent-verify-card,
  .parent-child-card {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 14px;
  }

  .parent-child-card {
    width: 100%;
  }

  .parent-phone-form {
    gap: 10px;
  }

  .parent-phone-form input {
    min-height: 50px;
    border-radius: 16px;
  }

  .parent-rights {
    flex-direction: column;
    align-items: flex-start;
  }

  .parent-table-wrap th,
  .parent-table-wrap td {
    padding: 10px 6px;
    font-size: 11px;
  }

  .parent-table-wrap .status-pill {
    min-height: 24px;
    padding: 4px 7px;
    font-size: 10px;
  }
}

@media (max-width: 900px) {
  .theme-activity-fields {
    grid-template-columns: 1fr;
  }

  .theme-activity-group-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .theme-activity-actions {
    justify-content: stretch;
  }

  .theme-activity-actions .btn {
    width: 100%;
  }
}
