﻿/* Codebil Rehberlik v3 */
:root { --red:#C0141F; --red-d:#8E0E19; --g:#26262B; --s:#5C606B; --line:#E3E5EA; --paper:#F3F4F6; --green:#13804D; --amber:#B45309; --blue:#2563EB; --r:10px; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif; color: var(--g); background: var(--paper); font-size: 15px; }
a { color: var(--red); }
.side { position: fixed; inset: 0 auto 0 0; width: 250px; background: var(--g); color: #fff; overflow-y: auto; z-index: 20; }
.brand { display: flex; gap: 10px; align-items: center; padding: 20px; color: #fff; text-decoration: none; font-weight: 700; line-height: 1.1; }
.brand small { font-weight: 400; opacity: .7; }
.logo { display: grid; place-items: center; width: 40px; height: 44px; background: var(--red); clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); font-size: 20px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: rgba(255,255,255,.8); text-decoration: none; font-size: 14px; }
.side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side nav a.on { background: var(--red); color: #fff; }
.ic { width: 20px; text-align: center; }
.nav-title { padding: 18px 20px 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .5; }
.main { margin-left: 250px; min-height: 100vh; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 18px; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.menu-btn { display: none; border: 0; background: none; font-size: 22px; }
.top-okul { display: flex; gap: 12px; align-items: center; }
.top-donem { flex: 1; font-size: 13px; color: var(--s); }
.top-donem small { margin-left: 4px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.dot-ok { background: var(--green); } .dot-off { background: #aaa; }
.top-user { display: flex; gap: 10px; align-items: center; font-size: 14px; line-height: 1.2; }
.top-user small { color: var(--s); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; }
.okul-menu { position: relative; }
.okul-list { display: none; position: absolute; top: 34px; left: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 10px 30px rgba(0,0,0,.12); min-width: 240px; padding: 6px; }
.okul-menu.open .okul-list { display: block; }
.okul-list a { display: block; padding: 8px 10px; color: var(--g); text-decoration: none; border-radius: 6px; }
.okul-list a.on, .okul-list a:hover { background: var(--paper); }
.content { padding: 24px; flex: 1; }
.foot { padding: 14px 24px; font-size: 12px; color: var(--s); }
h1 { font-size: 24px; margin: 0 0 4px; }
.lead { color: var(--s); margin: 0 0 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 20px; }
.card h2 { font-size: 17px; margin: 0 0 14px; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.stat b { display: block; font-size: 28px; }
.stat span { color: var(--s); font-size: 13px; }
.stat.red b { color: var(--red); } .stat.green b { color: var(--green); } .stat.amber b { color: var(--amber); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th, .t td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.t th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--s); background: var(--paper); }
.t tr:hover td { background: #FAFAFB; }
.table-wrap { overflow-x: auto; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--paper); color: var(--s); white-space: nowrap; }
.b-red { background: #FDE8EA; color: var(--red-d); } .b-green { background: #E3F4EA; color: #0B5C37; } .b-amber { background: #FFF3D6; color: #8A5A00; }
.b-blue { background: #E3F0FF; color: #1D4F91; } .b-gray { background: var(--paper); color: var(--s); }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--g); background: #fff; color: var(--g); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; } .btn-red:hover { background: var(--red-d); }
.btn-sm { padding: 5px 10px; font-size: 13px; } .btn-ghost { border-color: var(--line); }
.btn-danger { border-color: var(--red); color: var(--red); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
.field input[type=text], .field input[type=password], .field input[type=date], .field input[type=time], .field input[type=datetime-local], .field input[type=number], .field select, .field textarea, .inp {
  width: 100%; padding: 9px 11px; border: 1px solid #CFD2D9; border-radius: 8px; font: inherit; background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.hint { font-size: 12px; color: var(--s); margin: 4px 0 0; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > .field { flex: 1; min-width: 160px; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; border: 1px solid; }
.alert-ok { background: #E3F4EA; border-color: #BFE3CF; color: #0B5C37; } .alert-err { background: #FDE8EA; border-color: #F2C4C8; color: var(--red-d); }
.alert-info { background: #E3F0FF; border-color: #BFD5F5; color: #1D4F91; }
.chip { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--g); text-decoration: none; font-size: 14px; }
.tabs a.on { background: var(--g); color: #fff; border-color: var(--g); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--line); margin-left: 8px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.tl-head { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--s); }
.tl-body { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-top: 6px; }
.tl-body h3 { font-size: 15px; margin: 0 0 6px; color: var(--g); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--s); } .kv dd { margin: 0; }
.muted { color: var(--s); }
.empty { text-align: center; color: var(--s); padding: 30px; }
.lock { color: var(--s); font-size: 13px; }
.who { display: flex; flex-wrap: wrap; gap: 8px; }
.who span { padding: 6px 10px; border-radius: 8px; background: var(--paper); font-size: 13px; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .side { transform: translateX(-100%); transition: transform .2s; } .side.open { transform: none; }
  .main { margin-left: 0; } .menu-btn { display: block; } .g2, .g3, .g4 { grid-template-columns: 1fr; } .content { padding: 16px; }
}
@media print { .side, .top, .foot, .no-print { display: none !important; } .main { margin: 0; } .card { border: 0; } }
/* Giriş sayfası */
.login-body { display: grid; place-items: center; min-height: 100vh; background: var(--g); background-image: radial-gradient(ellipse 60% 70% at 20% 30%, rgba(192,20,31,.45), transparent 70%); }
.login-card { width: min(420px, 92vw); background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.login-card h1 { margin-top: 14px; }

.taklit-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 24px; background: #FFF3D6; border-bottom: 2px solid #B45309; color: #6B4300; font-size: 14px; position: sticky; top: 61px; z-index: 9; }
.taklit-bar .btn { border-color: #B45309; color: #6B4300; background: #fff; }

/* ================= Giriş ekranı v4 ================= */
.lg-body { margin: 0; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(380px, 1fr); background: #0F1117; font-family: "Segoe UI", system-ui, sans-serif; }
.lg-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 48px 56px; color: #fff;
  background: radial-gradient(ellipse 70% 60% at 30% 35%, rgba(192,20,31,.55), transparent 70%), radial-gradient(ellipse 60% 50% at 85% 90%, rgba(37,99,235,.25), transparent 70%), linear-gradient(160deg, #1B1D25, #0B0C10); }
.lg-hero::before { content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64l28 16v32M0 80l28-16' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E"); }
.lg-glow { position: absolute; width: 520px; height: 520px; left: 50%; top: 38%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,120,120,.35), transparent 65%); filter: blur(10px); animation: lgPulse 5s ease-in-out infinite; }
.lg-orbit { position: absolute; left: 50%; top: 38%; width: 360px; height: 360px; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(255,255,255,.18); animation: lgSpin 60s linear infinite; }
.lg-orbit::after { content: ""; position: absolute; inset: 60px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.lg-core { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%;
  background: rgba(255,255,255,.95); box-shadow: 0 0 0 12px rgba(255,255,255,.06), 0 20px 60px rgba(192,20,31,.5); animation: lgSpin 60s linear infinite reverse; }
.lg-core img { width: 78px; height: 78px; }
.lg-node { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(15,17,23,.85); border: 1px solid rgba(255,255,255,.25); box-shadow: 0 0 24px rgba(192,20,31,.45); animation: lgSpin 60s linear infinite reverse; }
.lg-node svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.n1 { left: calc(50% - 26px); top: -26px; } .n2 { right: -14px; top: 30%; } .n3 { right: 30px; bottom: 6px; } .n4 { left: 30px; bottom: 6px; } .n5 { left: -14px; top: 30%; }
.lg-copy { position: relative; max-width: 520px; }
.lg-logo-w { height: 64px; width: auto; margin-bottom: 22px; }
.lg-copy h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -.01em; }
.lg-copy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lg-copy li { padding-left: 30px; position: relative; color: rgba(255,255,255,.85); }
.lg-copy li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #C0141F url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E") center/12px no-repeat; }
.lg-foot { position: relative; margin: 34px 0 0; font-size: 12px; color: rgba(255,255,255,.5); }
.lg-side { display: grid; place-items: center; padding: 32px; background: #F4F5F8; }
.lg-card { width: min(420px, 100%); background: #fff; border-radius: 20px; padding: 36px 34px; box-shadow: 0 30px 80px -30px rgba(15,17,23,.35); border: 1px solid #E6E8EE; }
.lg-logo { height: 58px; width: auto; display: block; margin-bottom: 22px; }
.lg-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: #FDE8EA; color: #8E0E19; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lg-badge span { width: 7px; height: 7px; border-radius: 50%; background: #C0141F; }
.lg-card h1 { font-size: 26px; margin: 12px 0 4px; color: #1B1D25; }
.lg-sub { color: #5C606B; margin: 0 0 22px; font-size: 14px; }
.lg-field { display: block; margin-bottom: 16px; }
.lg-label { display: block; font-size: 13px; font-weight: 600; color: #26262B; margin-bottom: 6px; }
.lg-input { position: relative; display: flex; align-items: center; }
.lg-input > svg { position: absolute; left: 13px; width: 18px; height: 18px; fill: none; stroke: #8A8E99; stroke-width: 1.8; }
.lg-input input { width: 100%; padding: 13px 44px 13px 42px; border: 1px solid #D5D8E0; border-radius: 12px; font: inherit; font-size: 15px; background: #FAFBFC; transition: border-color .15s, box-shadow .15s; }
.lg-input input:focus { outline: none; border-color: #C0141F; background: #fff; box-shadow: 0 0 0 4px rgba(192,20,31,.12); }
.lg-eye { position: absolute; right: 8px; border: 0; background: none; padding: 6px; cursor: pointer; }
.lg-eye svg { width: 20px; height: 20px; fill: none; stroke: #8A8E99; stroke-width: 1.8; }
.lg-caps { display: none; margin-top: 6px; font-size: 12px; color: #B45309; }
.lg-check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: #3A3D46; margin: 4px 0 20px; }
.lg-btn { width: 100%; padding: 14px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #D41A27, #9E0F1A); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 12px 24px -10px rgba(192,20,31,.6); transition: transform .15s, box-shadow .15s; }
.lg-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(192,20,31,.7); }
.lg-btn.busy { opacity: .75; pointer-events: none; }
.lg-help { font-size: 13px; color: #5C606B; margin: 18px 0 8px; }
.lg-secure { display: flex; gap: 8px; font-size: 12px; color: #6B6F7A; margin: 0; padding-top: 14px; border-top: 1px solid #ECEEF2; }
.lg-secure svg { flex: 0 0 16px; width: 16px; height: 16px; fill: none; stroke: #13804D; stroke-width: 2; }
.lg-alert { border-radius: 12px; }
@keyframes lgSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.lg-node, .lg-core { animation-name: lgSpinSelf; }
@keyframes lgSpinSelf { to { transform: rotate(-360deg); } }
.lg-core { animation-name: lgSpinCore; }
@keyframes lgSpinCore { to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes lgPulse { 50% { opacity: .65; transform: translate(-50%, -50%) scale(1.06); } }
@media (max-width: 900px) { .lg-body { grid-template-columns: 1fr; } .lg-hero { display: none; } .lg-side { min-height: 100vh; } }
@media (prefers-reduced-motion: reduce) { .lg-orbit, .lg-core, .lg-node, .lg-glow { animation: none; } }
/* Menü markası */
.brand { flex-direction: column; align-items: flex-start; gap: 6px; }
.brand img { height: 40px; width: auto; }
.brand small { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.65); letter-spacing: .04em; }

/* Kullanım açıklaması kutusu */
.help-box { background: #F0F6FF; border: 1px solid #C9DCF5; border-radius: 12px; margin: 0 0 18px; }
.help-box summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 700; color: #1D4F91; }
.help-box summary::-webkit-details-marker { display: none; }
.help-box summary::after { content: "▾"; margin-left: auto; transition: transform .2s; }
.help-box:not([open]) summary::after { transform: rotate(-90deg); }
.help-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #2563EB; color: #fff; font-size: 14px; }
.help-body { padding: 0 18px 14px 50px; color: #26324A; font-size: 14px; line-height: 1.6; }
.help-body p { margin: 0 0 8px; }
.help-body ol { margin: 0 0 8px; padding-left: 18px; }
.help-body ol li { margin-bottom: 4px; }
.help-tips { margin: 6px 0 0; padding: 0; list-style: none; }
.help-tips li { position: relative; padding-left: 22px; margin-bottom: 4px; color: #5C606B; }
.help-tips li::before { content: "💡"; position: absolute; left: 0; font-size: 13px; }
/* Kurulum adımları */
.setup { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 18px; }
.setup li a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--g); background: #fff; }
.setup li a:hover { border-color: var(--red); }
.setup .ok { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; color: #fff; background: #C9CCD3; flex: 0 0 auto; }
.setup .done .ok { background: var(--green); }
.setup .done a { color: var(--s); }
.setup-bar { height: 8px; border-radius: 99px; background: var(--paper); overflow: hidden; margin: 6px 0 14px; }
.setup-bar span { display: block; height: 100%; background: var(--green); }
@media (max-width: 860px) { .setup { grid-template-columns: 1fr; } .help-body { padding-left: 18px; } }

/* ================= 2026-10: okul kimliği, üst simgeler, telefon görünümü ================= */
.okul-logo { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: #fff; padding: 6px; }
.okul-logo img { max-width: 100%; max-height: 100%; height: auto !important; object-fit: contain; }
.okul-ad { font-size: 15px; line-height: 1.25; }
.brand .cb-mini { height: 13px !important; width: auto; vertical-align: -2px; opacity: .8; }
.nav-say { margin-left: auto; font-style: normal; background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.side nav a.on .nav-say { background: #fff; color: var(--red); }
.top-ikon { display: flex; align-items: center; gap: 6px; }
.top-ara input { width: 220px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 13px; background: var(--paper); }
.top-ara input:focus { outline: none; border-color: var(--red); background: #fff; }
.ti { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; text-decoration: none; color: var(--g); font-size: 18px; }
.ti:hover { background: var(--paper); }
.ti em, .ai em { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.side-perde { display: none; }
.alt-menu { display: none; }
.btn { min-height: 38px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--paper); font-size: 12px; font-weight: 600; color: var(--s); }
.list-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-card:last-child { border-bottom: 0; }
.list-card .lc-ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); font-size: 20px; }
.list-card .lc-body { flex: 1; min-width: 0; }
.list-card h3 { margin: 0 0 2px; font-size: 15px; }
.list-card p { margin: 2px 0; color: var(--s); font-size: 13px; }
.list-card.unread h3::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-left: 6px; vertical-align: middle; }
a.list-card { color: inherit; text-decoration: none; }
a.list-card:hover { background: #FAFAFB; }

/* Ders programı */
.prg { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.prg th { font-size: 12px; color: var(--s); font-weight: 700; padding: 6px; text-align: center; }
.prg th.saat { width: 92px; text-align: left; }
.prg td { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; vertical-align: top; height: 62px; font-size: 13px; }
.prg td.bos { background: var(--paper); border-style: dashed; }
.prg td.bugun { box-shadow: inset 0 0 0 2px var(--red); }
.prg td b { display: block; font-size: 13px; }
.prg td small { color: var(--s); display: block; }
.prg td select { width: 100%; font: inherit; font-size: 12px; padding: 4px; border: 1px solid #CFD2D9; border-radius: 6px; }
.prg td input { width: 100%; font: inherit; font-size: 12px; padding: 3px 4px; border: 1px solid #E3E5EA; border-radius: 6px; margin-top: 4px; }
.prg-gun { display: none; }
.prg-gun .gun-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.prg-gun .gun-tabs button { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; font-weight: 600; }
.prg-gun .gun-tabs button.on { background: var(--g); color: #fff; border-color: var(--g); }
.prg-gun ol { list-style: none; margin: 0; padding: 0; }
.prg-gun li { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 8px; }
.prg-gun li .no { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); font-weight: 700; }
.prg-gun li.simdi { border-color: var(--red); box-shadow: 0 0 0 2px rgba(192,20,31,.15); }
.prg-gun li.simdi .no { background: var(--red); color: #fff; }

/* Mesajlar */
.msg-list { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.msg.ben { align-self: flex-end; background: #FDECEE; border-color: #F6CDD1; }
.msg .mh { font-size: 12px; color: var(--s); margin-bottom: 4px; }
.msg .mb { white-space: pre-wrap; word-wrap: break-word; line-height: 1.5; }
.msg .ek { display: inline-flex; gap: 6px; margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(0,0,0,.04); text-decoration: none; font-size: 13px; }
.alici-list { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.alici-list label { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.alici-list label:hover { background: var(--paper); }
.alici-list small { color: var(--s); display: block; }
.sticky-reply { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px; margin: 0 -20px -20px; border-radius: 0 0 var(--r) var(--r); }

/* Yemek listesi ve içerik */
.yemek-gorsel { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; }
.yemek-pdf { width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: 12px; }
.dosya-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dosya { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.dosya h3 { margin: 0; font-size: 15px; }
.dosya .meta { font-size: 12px; color: var(--s); }

/* ŞÖK */
.sok-durum { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.sok-durum a { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: inherit; text-decoration: none; }
.sok-durum a:hover { border-color: var(--red); }
.sok-durum b { display: block; font-size: 16px; margin-bottom: 4px; }
.not-satir { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.not-satir .nh { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--s); }
.tutanak { font-family: "Times New Roman", serif; font-size: 15px; line-height: 1.55; }
.tutanak h2 { text-align: center; font-size: 17px; }
.tutanak table { width: 100%; border-collapse: collapse; }
.tutanak td, .tutanak th { border: 1px solid #999; padding: 6px 8px; vertical-align: top; text-align: left; }

/* Hesaba geçiş */
.gecis-list .list-card { align-items: center; }
.rol-badge { font-size: 11px; }

@media (max-width: 860px) {
  body { font-size: 16px; padding-bottom: 68px; }
  .top { padding: 10px 14px; gap: 10px; }
  .top-donem, .top-user span:not(.avatar), .top-ara { display: none; }
  .top-okul { flex: 1; min-width: 0; } .top-okul strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; display: inline-block; vertical-align: middle; }
  .top-okul .badge { display: none; }
  .side { width: 82vw; max-width: 320px; }
  .side.open ~ .side-perde, .side.open + .main + .side-perde { display: block; position: fixed; inset: 0; background: rgba(15,17,23,.45); z-index: 15; }
  .alt-menu { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
  .alt-menu a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--s); font-size: 11px; font-weight: 600; padding: 4px 0; }
  .alt-menu a.on { color: var(--red); }
  .alt-menu .ai { position: relative; font-size: 20px; line-height: 1.2; }
  .alt-menu .ai em { right: -10px; }
  .card { padding: 16px; border-radius: 14px; }
  h1 { font-size: 21px; }
  .t th, .t td { padding: 9px 6px; }
  .field input, .field select, .field textarea, .inp { font-size: 16px !important; }   /* iPhone büyütmesin */
  .prg-wrap { display: none; } .prg-gun { display: block; }
  .msg { max-width: 92%; }
  .sticky-reply { margin: 0 -16px -16px; }
  .taklit-bar { top: 57px; padding: 8px 14px; font-size: 13px; }
  .row > .field { min-width: 100%; }
}
@media print { .alt-menu, .top-ikon { display: none !important; } body { padding: 0; } .prg-wrap { display: block !important; } .prg-gun { display: none !important; } }
.yalniz-baski { display: none; }
@media print { .yalniz-baski { display: block !important; } .help-box, .taklit-bar { display: none !important; } .content { padding: 0; } }
