/* Öğrenci Kayıt (private/kayit.php) — lisans.css + lgs.css üzerine */

.ky-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid; vertical-align: middle; white-space: nowrap; }
.ky-ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.ky-warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.ky-bad { color: var(--bad); background: var(--bad-bg); border-color: var(--bad-line); }
.ky-off { color: var(--off); background: var(--off-bg); border-color: var(--off-line); }
.hero .ky-pill { font-size: 12px; }

.shell-content .ky-stats, .ky-stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.ky-stat { text-decoration: none; transition: border-color .15s; }
.ky-stat:hover, .ky-stat.on { border-color: var(--brand); }
.ky-stat.on { background: var(--brand-50); }

.ky-bulk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ky-bulk form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.ky-bulk select { padding: 6px 8px; border-radius: 9px; border: 1px solid var(--line); font: inherit; font-size: 12px; }

.ky-form .card { margin-bottom: 16px; }
.ky-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 14px; }
.ky-grid .field { margin: 0; min-width: 0; }
.ky-grid .ky-wide { grid-column: 1 / -1; }
.ky-grid input, .ky-grid select, .ky-grid textarea { width: 100%; box-sizing: border-box; }
.ky-grid textarea { resize: vertical; font: inherit; }
.ky-grid small { display: block; margin-top: 4px; font-size: 11px; }
.ky-guardians { display: grid; gap: 12px; margin-bottom: 12px; }
.ky-guardian { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; margin: 0; }
.ky-guardian legend { padding: 0 6px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.ky-guardian legend label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.ky-guardian legend input { width: auto; margin: 0; }
.ky-actions { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 24px; }

.ky-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 20px; align-items: start; }
.ky-card-grid > .card { min-width: 0; }
.ky-dl { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.ky-dl dt { color: var(--muted); font-weight: 600; }
.ky-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.ky-health { margin: 14px 0 0; }
.ky-g { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.ky-g:last-child { border-bottom: 0; }
.ky-g .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.table .sub { font-size: 11px; color: var(--muted); font-weight: 500; }

.ky-status-edit, .ky-edit { display: inline-block; text-align: left; }
.ky-status-edit summary, .ky-edit summary { list-style: none; cursor: pointer; }
.ky-status-edit summary::-webkit-details-marker, .ky-edit summary::-webkit-details-marker { display: none; }
.ky-status-edit[open], .ky-edit[open] { display: block; margin-top: 6px; }
.ky-status-form, .ky-row-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.ky-status-form select, .ky-status-form input, .ky-row-form input, .ky-row-form select {
    padding: 6px 8px; border-radius: 9px; border: 1px solid var(--line); font: inherit; font-size: 12px; min-width: 0; }
.ky-row-form > input[name="name"] { flex: 1 1 160px; }
.ky-row-form input[type="number"] { width: 70px; }
.ky-add { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; gap: 10px; }
.ky-add .field { margin: 0; min-width: 0; }
.ky-add .field input { width: 100%; box-sizing: border-box; }
.ky-check { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.ky-inline { display: inline; margin: 0; }
.ky-mini { min-width: 0 !important; }
.ky-passive td { opacity: .6; }

@media (max-width: 640px) {
    .shell-content .ky-stats, .ky-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .shell-content .ky-stat { padding: 10px 12px; }
    .shell-content .ky-stat strong { font-size: 18px; margin-top: 2px; }
    .shell-content .ky-stat small { font-size: 10px; }
    .ky-dl { grid-template-columns: 1fr; gap: 0; }
    .ky-dl dd { margin-bottom: 8px; }
    .ky-actions { justify-content: stretch; }
    .ky-actions .btn { flex: 1; }
}

/* Muhasebe (private/muhasebe_view.php) */
.mh-in { color: var(--ok); }
.mh-out { color: var(--bad); }
.strong { font-weight: 700; }
.mh-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 0 18px; padding: 4px; background: var(--line-soft); border-radius: 12px; scrollbar-width: none; }
.mh-tabs a { flex: 0 0 auto; padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; }
.mh-tabs a:hover { color: var(--ink); }
.mh-tabs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .1); }
.mh-subtabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.mh-subtabs a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none; color: var(--ink-soft); background: #fff; }
.mh-subtabs a.on { border-color: var(--brand); color: var(--brand-700); background: var(--brand-50); }
.mh-acc { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; font-size: 13px; }
.mh-acc:last-child { border-bottom: 0; }
.mh-acc:hover strong { color: var(--brand); }
.mh-acc-strip { display: flex; gap: 10px; overflow-x: auto; margin-bottom: 16px; }
.mh-acc-strip a { flex: 0 0 auto; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; font-size: 12px; color: var(--muted); }
.mh-acc-strip a strong { color: var(--ink); font-size: 15px; }
.mh-acc-strip a.on { border-color: var(--brand); background: var(--brand-50); }
.mh-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 10px; }
.mh-sum div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.mh-sum small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mh-sum strong { font-size: 18px; }
.mh-bar { height: 8px; background: var(--line-soft); border-radius: 999px; overflow: hidden; margin: 4px 0 16px; }
.mh-bar span { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.mh-bar span.out { background: var(--bad); }
.mh-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; margin-bottom: 8px; }
.mh-cols > div { min-width: 0; }
.mh-pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.mh-pay .field { margin: 0; min-width: 0; }
.mh-pay input, .mh-pay select { width: 100%; box-sizing: border-box; }
.mh-pay .mh-wide, .mh-pay .btn { grid-column: 1 / -1; }
.mh-contract-form .ky-grid { margin-bottom: 10px; }
.mh-inline { display: flex; gap: 6px; }
.mh-inline input { flex: 1; min-width: 0; }
.mh-inline select { width: 64px !important; flex: 0 0 64px; }
.mh-preview { font-size: 13px; color: var(--ink-soft); margin: 0 0 12px; min-height: 1.2em; }
.mh-more { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.mh-more > summary { cursor: pointer; font-weight: 700; color: var(--brand-700); font-size: 13px; }
details.card.mh-more { border-top: 1px solid var(--line); padding-top: 20px; }
.mh-plan-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.mh-plan-row input { padding: 6px 8px; border-radius: 9px; border: 1px solid var(--line); font: inherit; font-size: 12px; min-width: 0; }
.mh-cancel-contract { display: flex; gap: 6px; margin-top: 14px; }
.mh-cancel-contract input { flex: 1; padding: 6px 8px; border-radius: 9px; border: 1px solid var(--line); font: inherit; font-size: 12px; }
.mh-cancelled td { opacity: .55; text-decoration: line-through; }
.mh-cancelled td:last-child, .mh-cancelled .sub { text-decoration: none; }
.mh-kind { display: flex; gap: 16px; margin-bottom: 12px; font-weight: 700; font-size: 13px; }
.mh-kind label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.mh-kind input { width: auto; margin: 0; }
.mh-txn [hidden], .mh-party-form [hidden] { display: none !important; }
.mh-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 160px; align-items: end; margin-bottom: 16px; }
.mh-col { display: flex; flex-direction: column; align-items: center; height: 100%; }
.mh-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.mh-bars span { width: 40%; max-width: 16px; border-radius: 4px 4px 0 0; min-height: 1px; }
.mh-b-in, .mh-key-in { background: #1baf7a; }
.mh-b-out, .mh-key-out { background: #e5484d; }
.mh-col small { font-size: 10px; color: var(--muted); margin-top: 4px; }
.mh-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; margin: 0 2px 0 8px; }
.mh-cat { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13px; }
.mh-cat .mh-bar { grid-column: 1 / -1; margin: 2px 0 10px; height: 6px; }
.mh-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.mh-cats .ky-row-form { margin: 4px 0; }
.mh-cats .ky-row-form input[name="name"] { flex: 1; }
.ky-stack > .card { margin-bottom: 20px; }
@media (max-width: 640px) {
    .mh-plan-row { grid-template-columns: 1fr 1fr; }
    .mh-plan-row input:first-child { grid-column: 1 / -1; }
    .mh-chart { height: 120px; gap: 3px; }
}
.mh-cols-pay { grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr); }
.mh-contract .ky-mini td, .mh-contract .ky-mini th { padding: 8px; white-space: nowrap; }
@media (max-width: 1100px) { .mh-cols-pay { grid-template-columns: 1fr; } }
