/* ==========================================================================
   Şahin Portal teması — docs/tasarim/anasayfa-telefon.html
   VNL Theme (Bootstrap 5.3) üzerine yüklenir; uygulama açık modda çalışır.
   ========================================================================== */

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/jakarta/latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/jakarta/latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Token'lar ---------- */
:root,
[data-bs-theme="light"] {
    --s-navy-900: #0F1E3D;
    --s-ink: #13213F;
    --s-navy-700: #172B55;
    --s-navy-600: #22396B;
    --s-navy-500: #2C4683;
    --s-yellow: #F6B92B;
    --s-yellow-600: #E5A512;
    --s-yellow-soft: #FFF3D1;
    --s-bg: #EDF1F7;
    --s-surface: #FFFFFF;
    --s-surface-2: #F1F4F9;
    --s-border: #DCE3EE;
    --s-divider: #EEF1F6;
    --s-muted: #4A5878;
    --s-muted-2: #5F6C88;
    --s-faint: #9AA7C0;
    --s-side-text: #E3E8F2;
    --s-side-sub: #AEB9D1;
    --s-red: #BE2731;
    --s-red-soft: #FCE6E7;
    --s-amber: #B4530A;
    --s-amber-soft: #FDEEDC;
    --s-blue: #1F64C8;
    --s-blue-soft: #E4EDFB;
    --s-green: #157347;
    --s-green-soft: #DFF3E8;
    --s-navy-soft: #E8ECF5;
    --s-avatar-soft: #DDE5F3;
    --s-radius-card: 20px;
    --s-radius: 12px;
    --s-shadow-pop: 0 12px 32px rgba(15, 30, 61, .16);
    --s-side-width: 256px;

    /* Bootstrap / VNL token'ları — bileşenler (form, tablo, modal, VNL Table) aynı dili konuşsun */
    --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-font-size: .9375rem;
    --bs-body-color: var(--s-ink);
    --bs-body-color-rgb: 19, 33, 63;
    --bs-body-bg: var(--s-bg);
    --bs-body-bg-rgb: 237, 241, 247;
    --bs-emphasis-color: var(--s-navy-900);
    --bs-secondary-color: var(--s-muted);
    --bs-tertiary-color: var(--s-faint);
    --bs-secondary-bg: var(--s-surface-2);
    --bs-tertiary-bg: #F7F9FC;
    --bs-border-color: var(--s-border);
    --bs-border-radius: 12px;
    --bs-border-radius-sm: 8px;
    --bs-border-radius-lg: 16px;
    --bs-primary: var(--s-navy-700);
    --bs-primary-rgb: 23, 43, 85;
    --bs-primary-text-emphasis: var(--s-navy-900);
    --bs-primary-bg-subtle: var(--s-navy-soft);
    --bs-primary-border-subtle: #C5CFE2;
    --bs-warning: var(--s-yellow);
    --bs-warning-rgb: 246, 185, 43;
    --bs-danger: var(--s-red);
    --bs-danger-rgb: 190, 39, 49;
    --bs-link-color: var(--s-navy-600);
    --bs-link-color-rgb: 34, 57, 107;
    --bs-link-hover-color: var(--s-navy-900);
    --bs-focus-ring-color: rgba(246, 185, 43, .45);
    --vnl-surface: var(--s-surface);
    --vnl-surface-raised: var(--s-surface);
}

html, body {
    background: var(--s-bg);
}

body {
    font-family: var(--bs-body-font-family);
    color: var(--s-ink);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--s-navy-600);
}

:focus-visible {
    outline: 3px solid rgba(246, 185, 43, .7);
    outline-offset: 2px;
}

.visually-hidden-s {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ==========================================================================
   Uygulama iskeleti
   ========================================================================== */
.s-app {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.s-side {
    flex: 0 0 var(--s-side-width);
    width: var(--s-side-width);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: var(--s-navy-900);
    color: #fff;
    padding: 20px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    z-index: 20;
}

.s-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 4px;
    color: #fff;
    text-decoration: none;
}

.s-brand:hover { color: #fff; }

.s-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--s-yellow);
    color: var(--s-navy-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
}

.s-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.s-brand-text b { font-size: 15px; font-weight: 700; }
.s-brand-text small { font-size: 12px; color: var(--s-side-sub); font-weight: 500; }

.s-side-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.s-menu-toggle {
    display: none;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: var(--s-side-text);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    align-items: center;
    gap: 6px;
}

.s-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.s-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, .06);
    color: var(--s-side-text);
    transition: background-color .15s;
}

.s-nav a:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.s-nav a[aria-current="page"] {
    background: var(--s-yellow);
    color: var(--s-navy-900);
    font-weight: 800;
}

.s-nav .s-count {
    margin-left: auto;
}

.s-side-foot {
    margin-top: auto;
    font-size: 12px;
    color: var(--s-side-sub);
    padding: 0 4px;
}

.s-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ---------- Üst bar ---------- */
.s-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 18px clamp(16px, 3vw, 36px);
    background: var(--s-surface);
    border-bottom: 1px solid var(--s-border);
}

.s-header-title {
    flex: 999 1 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.s-header-title h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--s-ink);
}

.s-header-title p {
    margin: 0;
    font-size: 14px;
    color: var(--s-muted);
    font-weight: 500;
}

/* Anasayfa: başlık yerine tarih (bildirim düğmesinin solunda) — gün numarası lacivert karede, yanında gün adı ve ay/yıl */
.s-header.is-compact { padding-block: 10px; }
/* Başlık gizli: araç satırı tüm genişliği alır; tarih solda, kalan araçlar sağda */
.s-header.is-compact .s-header-tools { flex: 1 1 auto; }
.s-header-tools .s-header-date { margin-right: auto; }
.s-content.is-compact { padding-top: 16px; }
.s-header-date { display: inline-flex; align-items: center; gap: 7px; }
.s-header-date-day {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--s-navy-600);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -.02em;
    box-shadow: inset 0 -2px 0 var(--s-yellow);
}
.s-header-date-text { display: flex; flex-direction: column; line-height: 1.15; }
.s-header-date-text strong { font-size: 12px; font-weight: 800; color: var(--s-ink); }
.s-header-date-text small { font-size: 11px; font-weight: 500; color: var(--s-muted); }

.s-crumbs {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--s-muted);
    margin: 0 0 2px;
    padding: 0;
    list-style: none;
}

.s-crumbs a { color: var(--s-muted); text-decoration: none; }
.s-crumbs a:hover { color: var(--s-ink); }

.s-header-tools {
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

@media (min-width: 992px) {
    .s-header { flex-wrap: nowrap; }
    .s-header-title { flex: 1 1 auto; }
    .s-header-tools { flex: 0 1 auto; flex-wrap: nowrap; }
    .s-search { flex: 0 1 300px; }
    .s-profile-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

.s-search {
    position: relative;
    flex: 1 1 220px;
    max-width: 340px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--s-surface-2);
    border: 1px solid var(--s-border);
    color: var(--s-muted-2);
}

.s-search:focus-within {
    border-color: var(--s-navy-500);
    background: #fff;
}

.s-search input {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    color: var(--s-ink);
    outline: none;
}

.s-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: 50px;
    z-index: 40;
    max-height: 70vh;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--s-border);
    border-radius: 14px;
    box-shadow: var(--s-shadow-pop);
    padding: 6px;
    display: none;
}

.s-search-results.show { display: block; }

.s-search-group {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--s-faint);
    padding: 10px 10px 4px;
}

.s-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--s-ink);
    font-size: 14px;
    font-weight: 600;
}

.s-search-item small { display: block; color: var(--s-muted); font-weight: 500; font-size: 12px; }
.s-search-item:hover, .s-search-item.active { background: var(--s-surface-2); color: var(--s-ink); }
.s-search-empty { padding: 14px 10px; color: var(--s-muted); font-size: 14px; }

/* ---------- Butonlar ---------- */
.s-btn {
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s, border-color .15s, box-shadow .15s;
}

.s-btn-accent { background: var(--s-yellow); color: var(--s-navy-900); }
.s-btn-accent:hover { background: var(--s-yellow-600); color: var(--s-navy-900); }
.s-btn-primary { background: var(--s-navy-700); color: #fff; }
.s-btn-primary:hover { background: var(--s-navy-900); color: #fff; }
.s-btn-ghost { background: #fff; color: var(--s-navy-700); border: 1px solid var(--s-border); font-weight: 700; }
.s-btn-ghost:hover { background: var(--s-surface-2); color: var(--s-ink); }
.s-btn-danger { background: var(--s-red); color: #fff; }
.s-btn-sm { height: 36px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.s-btn:disabled { opacity: .55; cursor: not-allowed; }

.s-icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--s-border);
    background: #fff;
    color: var(--s-navy-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
}

.s-icon-btn:hover { background: var(--s-surface-2); color: var(--s-ink); }

.s-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--s-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.s-badge-accent { background: var(--s-yellow); color: var(--s-navy-900); }
.s-badge-muted { background: var(--s-surface-2); color: var(--s-muted); }

.s-icon-btn .s-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
}

.s-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--s-navy-600);
    font-size: 13px;
    font-weight: 700;
    background: transparent;
    border: 0;
    padding: 0 4px;
    cursor: pointer;
    font-family: inherit;
}

.s-link:hover { color: var(--s-navy-900); text-decoration: underline; }

/* ---------- Profil menüsü ---------- */
.s-profile { position: relative; }

.s-profile-btn {
    height: 44px;
    padding: 0 10px 0 4px;
    border-radius: 22px;
    border: 1px solid var(--s-border);
    background: #fff;
    color: var(--s-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.s-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--s-navy-500);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    overflow: hidden;
}

.s-avatar img { width: 100%; height: 100%; object-fit: cover; }
.s-avatar-lg { width: 40px; height: 40px; font-size: 13px; }
.s-avatar-soft { background: var(--s-avatar-soft); color: var(--s-navy-700); }
.s-avatar.is-zoom { cursor: zoom-in; }
.s-avatar.is-zoom:hover { box-shadow: 0 0 0 3px var(--s-avatar-soft); }

/* Öğrenci form raporu: hızlı tarih */
.sr-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sr-quick-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--s-muted); margin-right: 4px; }
.sr-quick-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--s-border); background: var(--s-surface); color: var(--s-ink); font-size: 13px; font-weight: 700; text-decoration: none; }
.sr-quick-btn:hover { border-color: var(--s-navy-500); color: var(--s-navy-500); }
.sr-quick-btn.is-on { background: var(--s-navy-700); border-color: var(--s-navy-700); color: #fff; }

/* Servis kartı (öğrenci/personel kartı): sabah ve akşam aynı araçsa tek kart */
.sv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.sv-cards:has(> .sv-card:only-child) { grid-template-columns: minmax(0, 640px); }
.sv-card { border: 1px solid var(--s-border); border-radius: 16px; overflow: hidden; background: var(--s-surface); display: flex; flex-direction: column; }
.sv-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, var(--s-navy-700), var(--s-navy-500)); color: #fff; }
.sv-bus { width: 44px; height: 44px; border-radius: 12px; background: var(--s-yellow); color: var(--s-navy-900); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sv-id { min-width: 0; flex: 1; }
.sv-title { font-weight: 800; font-size: 16px; line-height: 1.2; }
.sv-plate { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 6px; background: #fff; color: var(--s-ink); font: 700 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; border-left: 6px solid #1F4FB4; }
.sv-tag { font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; white-space: nowrap; }
.sv-legs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; padding: 14px 16px; }
.sv-leg { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--s-amber-soft); }
.sv-leg.is-pm { background: var(--s-navy-soft); }
.sv-leg-type { width: 56px; flex-shrink: 0; text-align: center; font-size: 12px; font-weight: 800; padding: 4px 0; border-radius: 8px; background: var(--s-surface); color: var(--s-amber); }
.sv-leg.is-pm .sv-leg-type { color: var(--s-navy-600); }
.sv-leg-body { display: flex; flex-direction: column; min-width: 0; }
.sv-leg-body b { font-size: 14px; color: var(--s-ink); }
.sv-leg-body small { font-size: 12.5px; color: var(--s-muted); font-weight: 600; }
.sv-crew { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 20px; padding: 12px 16px; background: var(--s-surface-2); border-top: 1px solid var(--s-divider); margin-top: auto; }
.sv-person { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sv-person-body { display: flex; flex-direction: column; min-width: 0; }
.sv-person-body small { font-size: 11px; font-weight: 700; color: var(--s-muted-2); text-transform: uppercase; letter-spacing: .04em; }
.sv-person-body b { font-size: 14px; color: var(--s-ink); }
.sv-call { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--s-green-soft); color: var(--s-green); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.sv-call:hover { filter: brightness(.96); }

/* Fotoğrafı büyük göster (sahinPhoto) */
.s-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 18, 34, .82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    cursor: zoom-out;
}
.s-lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: default; max-width: 100%; }
.s-lightbox img { max-width: min(92vw, 720px); max-height: 80vh; min-width: 160px; object-fit: contain; border-radius: 12px; background: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .4); }
.s-lightbox figcaption { color: #fff; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.s-lightbox figcaption small { opacity: .75; min-height: 1em; }
.s-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.s-lightbox-close:hover, .s-lightbox-close:focus-visible { background: rgba(255, 255, 255, .3); }
/* Yanıt görselleri galerisi (sahinGallery): daha geniş, önceki/sonraki okları */
.s-lightbox.is-gallery img { max-width: min(94vw, 1200px); max-height: 82vh; }
.s-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, .15); color: #fff;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.s-lightbox-nav:hover, .s-lightbox-nav:focus-visible { background: rgba(255, 255, 255, .3); }
.s-lightbox-nav.is-prev { left: 14px; }
.s-lightbox-nav.is-next { right: 14px; }
.s-lightbox-open { color: #fff; font-size: 13px; font-weight: 600; opacity: .85; text-decoration: underline; }
.s-lightbox-open:hover { opacity: 1; color: #fff; }
.s-file-thumb { cursor: zoom-in; }
.s-file-thumb.is-broken { cursor: default; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; font-weight: 600; color: var(--s-muted); text-decoration: none; }
.s-file-thumb.is-broken::after { content: "Görsel yok"; }
@media (max-width: 575.98px) { .s-lightbox-nav { width: 40px; height: 40px; top: auto; bottom: 18px; transform: none; } }

.s-pop {
    position: absolute;
    right: 0;
    top: 52px;
    z-index: 50;
    width: 260px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--s-border);
    border-radius: 14px;
    box-shadow: var(--s-shadow-pop);
    display: none;
    flex-direction: column;
}

.s-pop.show { display: flex; }

.s-pop-head {
    padding: 10px 12px 12px;
    border-bottom: 1px solid var(--s-divider);
    margin-bottom: 4px;
}

.s-pop-head b { display: block; font-size: 14px; }
.s-pop-head small { color: var(--s-muted); font-size: 12px; font-weight: 500; }

.s-pop-item {
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--s-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
}

.s-pop-item:hover { background: var(--s-surface-2); color: var(--s-ink); }
.s-pop-item.is-danger { color: var(--s-red); }
.s-pop-sep { border-top: 1px solid var(--s-divider); margin: 4px 0; }

/* ---------- İçerik ---------- */
.s-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 1640px;   /* geniş ekranda satırlar aşırı uzamasın; kalan boşluk iki yana eşit */
    margin-inline: auto;
    padding: 28px clamp(16px, 3vw, 36px) 48px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.s-content.is-wide { max-width: none; }

.s-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.s-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--s-ink);
}

.s-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.s-card {
    min-width: 0;
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius-card);
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.s-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.s-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--s-ink);
}

.s-card-sub { margin: 0; color: var(--s-muted); font-size: 13px; font-weight: 500; }

.s-grow-2 { flex: 2 1 460px; }
.s-grow-1 { flex: 1 1 300px; }
.s-half { flex: 1 1 400px; }

/* ---------- Sizi bekleyenler ---------- */
.s-pending {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 16px;
}

.s-pending-card {
    text-decoration: none;
    color: var(--s-ink);
    background: #fff;
    border: 1px solid var(--s-border);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.s-pending-card:hover {
    color: var(--s-ink);
    border-color: #C5CFE2;
    box-shadow: 0 6px 18px rgba(15, 30, 61, .07);
}

.s-pending-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.s-pending-body b { font-size: 15px; font-weight: 700; }
.s-pending-body b span { font-size: 22px; font-weight: 800; }
.s-pending-body small { font-size: 13px; color: var(--s-muted); font-weight: 500; }
.s-pending-card > svg { color: var(--s-faint); flex-shrink: 0; margin-top: 2px; }
.s-pending-card.is-done { opacity: .75; }

/* Form raporları listesi: aktif (dönemi açık) formlar belirgin, kapanmışlar sönük */
.rp-title { display: flex; align-items: center; gap: 8px; }
.rp-title span { font-size: 13px; font-weight: 700; color: var(--s-muted); background: var(--s-surface-2); border-radius: 10px; padding: 1px 8px; }
.rp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--s-green); box-shadow: 0 0 0 3px var(--s-green-soft); flex-shrink: 0; display: inline-block; }
.rp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.rp-card {
    display: flex; flex-direction: column; gap: 8px; min-width: 0;
    padding: 16px 20px 16px 22px; border-radius: 18px;
    background: var(--s-surface); border: 1px solid var(--s-border);
    color: var(--s-ink); text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.rp-card:hover { color: var(--s-ink); border-color: #C5CFE2; box-shadow: 0 8px 22px rgba(15, 30, 61, .08); transform: translateY(-1px); }
.rp-card:focus-visible { outline: 3px solid var(--s-yellow); outline-offset: 2px; }
.rp-card.is-live { box-shadow: inset 4px 0 0 var(--s-green); }
.rp-card.is-live:hover { box-shadow: inset 4px 0 0 var(--s-green), 0 8px 22px rgba(15, 30, 61, .08); }
.rp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rp-top .s-chip { height: 24px; font-size: 12px; }
.rp-top .rp-kind { margin-left: auto; }
.rp-top .rp-watch-chip { gap: 4px; padding: 0 8px; }
/* İzle düğmesi: izlenirken mavi dolgulu */
.rp-watch.is-on { background: var(--s-blue-soft); color: var(--s-blue); border-color: var(--s-blue); }
.rp-kind { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--s-muted); }
.rp-name { font-size: 16px; font-weight: 800; line-height: 1.35; overflow-wrap: break-word; }
.rp-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--s-muted); }
.rp-foot {
    margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--s-border);
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px;
}
.rp-nums { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.rp-nums b { font-size: 22px; font-weight: 800; line-height: 1; }
.rp-nums small { font-size: 13px; font-weight: 600; color: var(--s-muted); }
.rp-foot .s-progress { grid-column: 1 / -1; grid-row: 2; height: 6px; }
.rp-go { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--s-navy-500); white-space: nowrap; }
.rp-card:hover .rp-go svg { transform: translateX(2px); }
.rp-go svg { transition: transform .15s; }
.rp-card.is-closed { background: var(--s-surface-2); border-color: transparent; }
.rp-card.is-closed .rp-name { color: #44506A; }
.rp-card.is-closed .rp-top .s-chip { background: var(--s-surface); }
.rp-card.is-closed .rp-foot { border-top-color: #D9DFEA; }

/* ---------- Takip ettiğiniz raporlar (anasayfa) ---------- */
.hr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.hr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px 14px;
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: 18px;
    color: var(--s-ink);
    text-decoration: none;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.hr-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--tone, var(--s-navy-500)); }
.hr-card:hover { color: var(--s-ink); border-color: #C5CFE2; box-shadow: 0 8px 22px rgba(15, 30, 61, .08); transform: translateY(-1px); }
.hr-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hr-kind, .hr-due { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.hr-kind { color: var(--s-muted-2); text-transform: uppercase; }
.hr-due { padding: 3px 8px; border-radius: 999px; background: var(--s-surface-2); color: var(--s-muted); }
.hr-due.is-soon { background: var(--s-red-soft); color: var(--s-red); }
/* İzlenen form: yalnız göz simgesi, türün yanında */
.hr-watch { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: auto; border-radius: 50%; background: var(--s-blue-soft); color: var(--s-blue); }
.hr-title { font-size: 15.5px; font-weight: 800; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 575.98px) { .hr-title { min-height: 0; } }
.hr-metric { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hr-big { font-size: 28px; font-weight: 800; line-height: 1; color: var(--tone, var(--s-navy-700)); letter-spacing: -.02em; }
.hr-card.tone-navy .hr-big { color: var(--s-navy-700); }
.hr-of { font-size: 13px; color: var(--s-muted); font-weight: 600; }
.hr-of b { color: var(--s-ink); }
.hr-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--s-divider); font-size: 12.5px; font-weight: 600; color: var(--s-muted); }
.hr-foot > svg:last-child { color: var(--s-faint); }

/* Renk tonları: ikon kutusu + vurgu sayısı */
.s-tile {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tone-amber { --tone: var(--s-amber); --tone-soft: var(--s-amber-soft); }
.tone-red { --tone: var(--s-red); --tone-soft: var(--s-red-soft); }
.tone-navy { --tone: var(--s-navy-700); --tone-soft: var(--s-navy-soft); }
.tone-blue { --tone: var(--s-blue); --tone-soft: var(--s-blue-soft); }
.tone-green { --tone: var(--s-green); --tone-soft: var(--s-green-soft); }
.tone-yellow { --tone: var(--s-navy-900); --tone-soft: var(--s-yellow-soft); }
.tone-muted { --tone: var(--s-navy-700); --tone-soft: var(--s-surface-2); }

[class*="tone-"] .s-tile,
.s-tile[class*="tone-"] { background: var(--tone-soft); color: var(--tone); }
[class*="tone-"] .s-tone-text { color: var(--tone); }

/* ---------- Kısayollar ---------- */
.s-shortcuts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 14px 8px;
}

.s-shortcut {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 6px 2px;
    border-radius: 14px;
    color: var(--s-ink);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    background: transparent;
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.s-shortcut:hover { color: var(--s-ink); }
.s-shortcut:hover .s-shortcut-icon { background: var(--s-navy-soft); }

.s-shortcut-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--s-surface-2);
    color: var(--s-navy-700);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s;
}

/* Kısayol renkleri (Shortcut::COLORS) */
.s-shortcut-icon.sc-accent { background: var(--s-yellow); color: var(--s-navy-900); }
.s-shortcut:hover .s-shortcut-icon.sc-accent { background: var(--s-yellow-600); }
.s-shortcut-icon.sc-navy { background: var(--s-navy-700); color: #fff; }
.s-shortcut:hover .s-shortcut-icon.sc-navy { background: var(--s-navy-900); }
.s-shortcut-icon.sc-blue { background: var(--s-blue-soft); color: var(--s-blue); }
.s-shortcut-icon.sc-green { background: var(--s-green-soft); color: var(--s-green); }
.s-shortcut-icon.sc-amber { background: var(--s-amber-soft); color: var(--s-amber); }
.s-shortcut-icon.sc-red { background: var(--s-red-soft); color: var(--s-red); }
.s-shortcut:hover .s-shortcut-icon:is(.sc-blue, .sc-green, .sc-amber, .sc-red) { filter: brightness(.96); }
.sc-colors { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-colors label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; font-size: 11px; color: var(--s-muted); }
.sc-colors input { position: absolute; opacity: 0; }
.sc-colors .s-shortcut-icon { width: 36px; height: 36px; border-radius: 11px; border: 2px solid transparent; }
.sc-colors input:checked + .s-shortcut-icon { border-color: var(--s-navy-500); box-shadow: 0 0 0 2px var(--s-navy-soft); }
.sc-colors input:focus-visible + .s-shortcut-icon { outline: 3px solid var(--s-yellow); }
.s-shortcut.is-add { color: var(--s-muted); }
.s-shortcut.is-add .s-shortcut-icon { background: transparent; border: 1.5px dashed var(--s-faint); color: var(--s-muted); }

/* ---------- Listeler ---------- */
.s-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.s-list > li {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    align-items: flex-start;
}

.s-list > li + li { border-top: 1px solid var(--s-divider); }
.s-list.is-center > li { align-items: center; }
.s-list > li > a.s-list-link { display: contents; color: inherit; text-decoration: none; }

.s-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.s-list-title { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--s-ink); }
.s-list-title.is-read { font-weight: 500; }
.s-list-meta { font-size: 12px; color: var(--s-muted); font-weight: 500; }
.s-list-text { font-size: 13px; line-height: 1.45; color: var(--s-muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* Satır düğmeleri: telefonda başlığın altına, tam satıra iner (başlığı ezmesin) */
@media (max-width: 575.98px) {
    .s-list > li:has(> .s-list-actions) { flex-wrap: wrap; }
    .s-list > li > .s-list-actions { flex-basis: 100%; justify-content: flex-start !important; padding-left: 50px; }
}
.s-list-row { display: flex; justify-content: space-between; gap: 8px; }
.s-list-time { font-size: 12px; color: var(--s-muted); font-weight: 600; flex-shrink: 0; }

.s-round {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--tone-soft, var(--s-navy-soft));
    color: var(--tone, var(--s-navy-700));
}

.s-dot {
    width: 9px;
    height: 9px;
    border-radius: 5px;
    background: var(--s-blue);
    margin-top: 6px;
    flex-shrink: 0;
}

.s-date {
    width: 50px;
    height: 54px;
    border-radius: 12px;
    background: var(--s-surface-2);
    color: var(--s-navy-900);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.s-date b { font-size: 18px; font-weight: 800; line-height: 1; }
.s-date small { font-size: 11px; font-weight: 700; }
.s-date.is-today { background: var(--s-yellow-soft); }

.s-empty {
    padding: 22px 8px;
    text-align: center;
    color: var(--s-muted);
    font-size: 14px;
    font-weight: 500;
}

/* ---------- Form öğeleri (Bootstrap üzerine) ---------- */
.form-control,
.form-select {
    min-height: 44px;
    border-radius: 12px;
    border-color: var(--s-border);
    background-color: #fff;
    font-size: 14px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--s-navy-500);
    box-shadow: 0 0 0 3px rgba(44, 70, 131, .14);
}

.form-label { font-size: 13px; font-weight: 700; color: var(--s-ink); margin-bottom: 6px; }
.form-text { color: var(--s-muted); }
.form-check-input:checked { background-color: var(--s-navy-700); border-color: var(--s-navy-700); }

.btn { border-radius: 12px; font-weight: 700; }
.btn-primary { --bs-btn-bg: var(--s-navy-700); --bs-btn-border-color: var(--s-navy-700); --bs-btn-hover-bg: var(--s-navy-900); --bs-btn-hover-border-color: var(--s-navy-900); --bs-btn-active-bg: var(--s-navy-900); }
.btn-warning { --bs-btn-bg: var(--s-yellow); --bs-btn-border-color: var(--s-yellow); --bs-btn-color: var(--s-navy-900); --bs-btn-hover-bg: var(--s-yellow-600); --bs-btn-hover-border-color: var(--s-yellow-600); --bs-btn-hover-color: var(--s-navy-900); }

.card {
    --bs-card-border-color: var(--s-border);
    --bs-card-border-radius: var(--s-radius-card);
    --bs-card-bg: #fff;
    box-shadow: none;
}

.modal-content { border-radius: 20px; border: 0; box-shadow: 0 24px 60px rgba(15, 30, 61, .25); }
.modal-header, .modal-footer { border-color: var(--s-divider); }
.modal-title { font-weight: 800; }

.table { --bs-table-bg: transparent; --bs-table-border-color: var(--s-divider); font-size: 14px; }
.table > thead th { font-size: 12px; font-weight: 700; color: var(--s-muted); text-transform: none; background: var(--s-surface-2); border-bottom: 0; }
.table > thead th:first-child { border-radius: 10px 0 0 10px; }
.table > thead th:last-child { border-radius: 0 10px 10px 0; }

/* Durum çipleri */
.s-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 700;
    background: var(--tone-soft, var(--s-surface-2));
    color: var(--tone, var(--s-muted));
    white-space: nowrap;
}

/* Sekmeler / segment */
.s-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 4px;
    background: var(--s-surface-2);
    border-radius: 14px;
    width: fit-content;
    max-width: 100%;
}

.s-tabs a, .s-tabs button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--s-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.s-tabs [aria-current="page"], .s-tabs .active {
    background: #fff;
    color: var(--s-ink);
    box-shadow: 0 1px 3px rgba(15, 30, 61, .1);
}

/* Bölüm gezintisi (alt çizgili; sayfa içi s-tabs süzgeçlerinden ayrı dursun) */
.s-subnav { display: flex; gap: 4px; border-bottom: 1px solid var(--s-border); overflow-x: auto; scrollbar-width: none; margin-bottom: -8px; }
.s-subnav::-webkit-scrollbar { display: none; }
.s-subnav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px 12px;
    margin-bottom: -1px;
    border-bottom: 3px solid transparent;
    color: var(--s-muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.s-subnav a:hover { color: var(--s-ink); }
.s-subnav a[aria-current="page"] { color: var(--s-ink); border-bottom-color: var(--s-yellow); }
.s-subnav a[aria-current="page"] svg { color: var(--s-navy-500); }

/* İlerleme çubuğu */
.s-progress { height: 8px; border-radius: 4px; background: var(--s-surface-2); overflow: hidden; }
.s-progress > span { display: block; height: 100%; border-radius: 4px; background: var(--tone, var(--s-navy-700)); }

/* Toast */
.s-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 2000;
    background: var(--s-navy-900);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--s-shadow-pop);
}

/* Giriş ekranı */
.s-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: radial-gradient(1200px 600px at 10% -10%, #1d3263 0, transparent 60%), var(--s-navy-900);
}

.s-auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 24px;
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.s-auth-card h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.s-auth-card p { margin: 0; color: var(--s-muted); font-size: 14px; }

.s-profile-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 60px;
    padding: 10px 14px;
    border: 1px solid var(--s-border);
    border-radius: 14px;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.s-profile-choice:hover { border-color: var(--s-navy-500); background: var(--s-surface-2); }

/* ==========================================================================
   Telefon / tablet: sol menü üstte, modül ızgarası
   ========================================================================== */
@media (max-width: 991.98px) {
    .s-app { flex-direction: column; }

    .s-side {
        position: static;
        width: 100%;
        height: auto;
        flex: none;
        padding: 16px 16px 20px;
        gap: 16px;
        overflow: visible;
    }

    .s-side-foot { display: none; }
    .s-menu-toggle { display: inline-flex; }

    .s-nav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .s-nav a { overflow: hidden; text-overflow: ellipsis; }

    /* İç sayfalarda menü varsayılan kapalı; anasayfada açık */
    /* Telefonda modül menüsü her sayfada kapalı gelir, "Menü" ile açılır */
    .s-nav { display: none; }
    .s-side.is-open .s-nav { display: block; }
    .s-side.is-open .s-menu-toggle .s-chevron { transform: rotate(180deg); }
    .s-menu-toggle .s-chevron { transition: transform .15s; }

    /* Telefonda tek satır: başlık solda, zil ve profil sağda aynı hizada. Araç kutusu açılır
       (display: contents), çocukları başlıkla aynı satırın öğesi olur; arama ve ERP düğmeleri alt satıra iner. */
    .s-header { padding: 12px 16px; gap: 10px 8px; flex-wrap: wrap; }
    .s-header-title { flex: 1 1 0; }
    .s-header-title h1 { font-size: 20px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .s-header-title p { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .s-crumbs { font-size: 12px; }
    .s-header-tools { display: contents; }
    .s-header-tools > .s-btn { order: 98; }
    .s-search { max-width: none; flex-basis: 100%; order: 99; }
    .s-header .s-icon-btn { width: 40px; height: 40px; border-color: transparent; background: transparent; flex: 0 0 auto; }
    .s-header .s-icon-btn:hover { background: var(--s-surface-2); }
    .s-header .s-profile { flex: 0 0 auto; }
    .s-header .s-profile-btn { height: 40px; padding: 0; border: 0; background: transparent; gap: 0; }
    .s-header .s-profile-btn .s-profile-name,
    .s-header .s-profile-btn > svg { display: none; }
    .s-content { padding: 20px 16px 40px; gap: 22px; }
    .s-card { padding: 16px 16px 18px; }
}

@media (max-width: 420px) {
    .s-profile-btn .s-profile-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .s-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ==========================================================================
   Form doldurma
   ========================================================================== */
.ff {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.ff:has(> .ff-main:only-child) { grid-template-columns: minmax(0, 860px); }

.ff-people {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow: hidden;
    padding: 14px;
}

.ff-people .s-search { flex: 0 0 auto; }   /* dikey sütunda flex-basis yüksekliğe dönüşmesin */
.ff-people .s-tabs { width: auto; overflow-x: auto; flex-wrap: nowrap; }
.ff-people .s-tabs button { white-space: nowrap; min-height: 32px; padding: 0 10px; }

.ff-list {
    list-style: none;
    margin: 0 -6px;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.ff-room {
    padding: 10px 10px 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--s-faint);
}

.ff-person {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 6px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--s-ink);
    text-align: left;
    cursor: pointer;
}

.ff-person:hover { background: var(--s-surface-2); }
.ff-person.is-active { background: var(--s-yellow-soft); }
.ff-person .ff-state { color: var(--s-faint); display: flex; }
.ff-person.is-done .ff-state { color: var(--s-green); }
.ff-person.is-done .ff-name { color: var(--s-muted); font-weight: 500; }
.ff-name small { display: block; font-size: 12px; color: var(--s-muted); font-weight: 500; }

/* Değerlendirilen kişi kaydırırken üstte sabit kalır (kartın iç boşluğunu örter) */
.ff-head:not(:empty) { position: sticky; top: 0; z-index: 6; margin: -18px -20px 0; padding: 14px 20px 0; background: var(--s-surface); border-radius: var(--s-radius-card) var(--s-radius-card) 0 0; }
.ff-who { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--s-divider); }
.ff-who b { display: block; font-size: 17px; font-weight: 800; }
.ff-who small { color: var(--s-muted); font-size: 13px; font-weight: 500; }

#ff-form { display: flex; flex-direction: column; gap: 18px; }

.ff-q { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid transparent; }
.ff-q:hover { background: #FAFBFD; }
.ff-q.is-missing { border-color: var(--s-red); background: var(--s-red-soft); }
.ff-q-title { font-size: 15px; font-weight: 700; line-height: 1.45; white-space: pre-line; }
.ff-req { color: var(--s-red); }
.ff-q-img { max-width: 100%; max-height: 320px; border-radius: 12px; object-fit: contain; align-self: flex-start; }

/* Form içi bölüm başlığı: açık lacivert zemin, solda lacivert çizgi */
.ff-heading {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--s-navy-soft);
    border-left: 4px solid var(--s-navy-600);
    color: var(--s-navy-900);
    white-space: pre-line;
}

/* Yanıt dosyaları: görsel küçük önizleme, diğerleri ataçlı bağlantı (sahin_file_links / sahinFiles) */
.s-files { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; white-space: normal; }
.s-file-thumb { display: block; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; border: 1px solid var(--s-border); background: var(--s-surface-2); flex: 0 0 auto; }
.s-file-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s; }
.s-file-thumb:hover img { transform: scale(1.04); }
.s-file-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 13px; color: var(--s-blue); text-decoration: none; overflow-wrap: anywhere; }
.s-file-link:hover { text-decoration: underline; }
td .s-file-thumb { width: 56px; height: 56px; border-radius: 8px; }

/* Form açıklaması: sarı bilgi kutusu (dikkat çeker, gölge/animasyon yok) */
.ff-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 18px;
    border-radius: var(--s-radius-card);
    background: var(--s-yellow-soft);
    border: 1px solid #F3DC9A;
    border-left: 4px solid var(--s-yellow-600);
    color: var(--s-navy-900);
}
.ff-note > svg { flex: 0 0 auto; margin-top: 1px; color: #B07A00; }
.ff-note > div { min-width: 0; }
.ff-note b { display: block; font-size: 13px; font-weight: 800; color: #8A5F00; margin-bottom: 2px; }
.ff-note p { margin: 0; font-size: 14.5px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }

.ff-choices { display: flex; flex-direction: column; gap: 6px; }

.ff-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--s-border);
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.ff-choice:hover { border-color: #C5CFE2; }
.ff-choice:has(input:checked) { border-color: var(--s-navy-700); background: var(--s-navy-soft); font-weight: 700; }
.ff-choice .form-check-input { margin: 0; flex-shrink: 0; }

.ff-scale { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ff-scale small { color: var(--s-muted); font-size: 12px; font-weight: 600; max-width: 160px; }
.ff-scale-items { display: flex; gap: 6px; flex-wrap: wrap; }
.ff-scale-item input { position: absolute; opacity: 0; }
.ff-scale-item span {
    width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--s-border);
    display: flex; align-items: center; justify-content: center; font-weight: 800; cursor: pointer;
}
.ff-scale-item input:checked + span { background: var(--s-navy-700); color: #fff; border-color: var(--s-navy-700); }
.ff-scale-item input:focus-visible + span { outline: 3px solid rgba(246, 185, 43, .7); }

.ff-grid th, .ff-grid td { text-align: center; vertical-align: middle; }
.ff-grid tbody th { text-align: left; font-weight: 600; min-width: 180px; }
.ff-grid .form-check-input { width: 1.3em; height: 1.3em; }

/* Kaydet düğmeleri formun sonunda (kaydırırken üstte yüzmez) */
.ff-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 16px 0 2px;
    border-top: 1px solid var(--s-divider);
}

/* Cihaza kaydedilmiş taslak: geri yüklenen alanlar ve uyarı şeridi */
.ff-q.is-draft { border-color: var(--s-yellow); background: var(--s-yellow-soft); }
.ff-draft-bar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; justify-content: space-between; margin: 4px 0 8px; padding: 10px 14px; border-radius: 12px; background: var(--s-yellow-soft); border: 1px solid var(--s-yellow); color: var(--s-ink); font-size: 14px; line-height: 1.45; }
.ff-draft-bar .s-btn { background: #fff; }
.ff-actions .ff-clear { margin-right: auto; color: var(--s-muted); }
.ff-actions .ff-clear.is-confirm { color: var(--s-red); border-color: var(--s-red); }

/* Teşekkür ekranı */
.ff.is-thanks { grid-template-columns: minmax(0, 1fr); }
.ff-thanks { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 40px 16px 32px; }
.ff-thanks-ico { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--s-green-soft); color: var(--s-green); animation: ff-pop .35s ease-out; }
.ff-thanks h2 { margin: 6px 0 0; font-size: 24px; font-weight: 800; color: var(--s-ink); }
.ff-thanks p { margin: 0; max-width: 460px; color: var(--s-muted); font-size: 15px; white-space: pre-line; }
.ff-thanks-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.ff-thanks-actions:empty { display: none; }
@keyframes ff-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ff-thanks-ico { animation: none; } }

@media (max-width: 991.98px) {
    .ff { grid-template-columns: minmax(0, 1fr); }
    .ff-people { position: static; max-height: 46vh; }
    .ff-head:not(:empty) { margin: -16px -16px 0; padding: 10px 16px 0; }
    .ff-head .ff-who { padding-bottom: 10px; }
    .ff-actions .s-btn { flex: 1; }
    .ff-actions .ff-clear { order: 3; flex-basis: 100%; margin: 0; }
}

/* ==========================================================================
   Takvim
   ========================================================================== */
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.cal-nav, .cal-actions { display: flex; align-items: center; gap: 8px; }
.cal-title { margin: 0 0 0 6px; font-size: 20px; font-weight: 800; color: var(--s-ink); white-space: nowrap; }
.cal-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cal-filter { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid var(--s-border); background: #fff; font-size: 13px; font-weight: 700; color: var(--s-muted); cursor: pointer; user-select: none; }
.cal-filter input { position: absolute; opacity: 0; pointer-events: none; }
.cal-filter:has(input:focus-visible) { outline: 2px solid var(--s-navy-500); outline-offset: 2px; }
.cal-filter.is-on { background: var(--tone-soft); border-color: var(--tone); color: var(--tone); }
.cal-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tone); }
.cal-as { width: auto; max-width: 260px; min-height: 34px; border-radius: 17px; }

.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--s-divider); border-radius: 14px; overflow: hidden; }
.cal-dow { background: var(--s-surface-2); font-size: 12px; font-weight: 800; color: var(--s-muted); padding: 8px 10px; }
.cal-day { background: #fff; min-height: 118px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; cursor: pointer; transition: background .12s; }
.cal-day:hover { background: #FBFCFE; }
.cal-day.is-weekend { background: #FAFBFD; }
.cal-day.is-holiday { background: #FFF6F6; }
.cal-day.is-out { background: #F6F8FB; }
.cal-day.is-out .cal-num, .cal-day.is-out .cal-ev { opacity: .55; }
.cal-num { font-size: 13px; font-weight: 700; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.cal-day.is-today .cal-num { background: var(--s-yellow); color: var(--s-navy-900); }
.cal-sp { display: block; font-size: 10.5px; font-weight: 700; color: var(--tone); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev { display: block; font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 6px; background: var(--tone-soft); color: var(--tone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; border-left: 3px solid var(--tone); }
.cal-ev:hover { color: var(--tone); filter: brightness(.96); text-decoration: none; }
.cal-ev b { font-weight: 800; }
.cal-ev small { display: block; font-size: 11px; font-weight: 500; color: var(--s-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.is-cont { border-left-style: dashed; opacity: .8; }
.cal-ev.is-cancel { background: transparent; text-decoration: line-through; border: 1px dashed var(--tone); }
.cal-ev[draggable="true"] { cursor: grab; }
.cal-ev.is-dragging { opacity: .4; }
.cal-ev.is-extra { display: none; }
.cal-day.is-expanded .cal-ev.is-extra { display: block; }
.cal-more { border: 0; background: none; text-align: left; font-size: 11px; color: var(--s-muted); font-weight: 700; padding: 0 6px; cursor: pointer; }
.cal-more:hover { color: var(--s-ink); text-decoration: underline; }
.cal-dots { display: none; }
.is-drop { box-shadow: inset 0 0 0 2px var(--s-green) !important; background: var(--s-green-soft) !important; }

.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.cal-wday { background: #fff; border: 1px solid var(--s-border); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-height: 240px; min-width: 0; }
.cal-wday.is-today { border-color: var(--s-yellow); box-shadow: 0 0 0 2px var(--s-yellow-soft); }
.cal-wday.is-holiday { background: #FFF6F6; }
.cal-wday-head { display: flex; align-items: baseline; gap: 6px; color: var(--s-muted); font-size: 12px; font-weight: 700; }
.cal-wday-head b { font-size: 20px; color: var(--s-ink); }
.cal-wday .cal-ev { white-space: normal; padding: 6px 8px; }
.cal-wempty { color: var(--s-faint); font-size: 13px; }

.cal-agenda { display: none; gap: 0; }
.cal-agenda.is-list { display: flex; }
.cal-aday { display: flex; gap: 14px; padding: 10px 0; scroll-margin-top: 80px; }
.cal-aday + .cal-aday { border-top: 1px solid var(--s-divider); }
.cal-aday-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.cal-aday .cal-ev { white-space: normal; padding: 7px 10px; font-size: 13px; }
.cal-aday .cal-sp { font-size: 12px; white-space: normal; }
.cal-aday.is-holiday .s-date { background: var(--s-red-soft); color: var(--s-red); }

.cal-fab { display: none; }
.cal-sheet { border: 0; width: min(480px, 94vw); max-height: 92vh; overflow-y: auto; box-shadow: var(--s-shadow-pop); }
.cal-qa-time { display: flex; align-items: center; gap: 6px; }
.cal-qa-time input[type="date"] { flex: 1.4; }
.cal-qa-time input[type="time"] { flex: 1; min-width: 0; }

@media (max-width: 991.98px) {
    .cal-week { grid-template-columns: minmax(0, 1fr); }
    .cal-wday { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .cal-wday-head { width: 100%; }
    .cal-wday .cal-ev { flex: 1 1 100%; }
}

@media (max-width: 767.98px) {
    .cal-title { font-size: 17px; }
    .cal-actions .s-btn, .cal-actions .s-icon-btn[href^="/takvim/yazdir"] { display: none; }
    .cal-toolbar .s-tabs { order: 3; }
    .cal-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
    .cal-filter { flex-shrink: 0; }
    .cal-month { padding: 8px; }
    .cal-day { min-height: 52px; padding: 4px 2px; align-items: center; }
    .cal-day .cal-ev, .cal-day .cal-sp, .cal-day .cal-more { display: none !important; }
    .cal-dots { display: flex; gap: 2px; }
    .cal-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--tone); }
    .cal-day.is-holiday .cal-num { color: var(--s-red); }
    .cal-dow { padding: 6px 2px; text-align: center; font-size: 11px; }
    .cal-agenda { display: flex; }
    .cal-fab { display: flex; position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 58px; height: 58px; border-radius: 50%; border: 0;
        align-items: center; justify-content: center; background: var(--s-yellow); color: var(--s-navy-900); box-shadow: var(--s-shadow-pop); z-index: 50; }
    dialog.cal-sheet[open] { inset: auto 0 0 0; margin: 0; width: 100%; max-width: 100%; border-radius: 22px 22px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* Etkinlik kartı */
.ev-head { border-top: 5px solid var(--tone); }
.ev-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ev-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--s-ink); }
.ev-facts svg { color: var(--s-muted); flex-shrink: 0; margin-top: 1px; }
.ev-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--s-ink); }
.ev-goals { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ev-score { border: 1px solid var(--s-divider); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ev-score-head { display: flex; align-items: center; gap: 12px; }
.ev-score-head small { display: block; color: var(--s-muted); font-size: 12px; }
.ev-score-num { white-space: nowrap; font-size: 28px; font-weight: 800; color: var(--s-navy-700); line-height: 1; }
.ev-score-num small { font-size: 13px; color: var(--s-muted); }
.ev-goal-score { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13px; padding-top: 6px; border-top: 1px dashed var(--s-divider); }
.ev-goal-score small { grid-column: 1 / -1; color: var(--s-muted); }
.ev-rating { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-rating label { position: relative; cursor: pointer; }
.ev-rating input { position: absolute; opacity: 0; }
.ev-rating span { display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--s-border); font-weight: 800; color: var(--s-muted); }
.ev-rating input:checked + span { background: var(--s-yellow); border-color: var(--s-yellow-600); color: var(--s-navy-900); }
.ev-rating input:focus-visible + span { outline: 2px solid var(--s-navy-500); }

/* Etkinlik formu */
.ev-form { display: flex; flex-direction: column; gap: 14px; max-width: 920px; }
.ev-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ev-dt { display: flex; gap: 6px; }
.ev-dt input[type="date"] { flex: 1.3; }
.ev-dt input[type="time"] { flex: 1; min-width: 0; }
.ev-swatches { display: flex; gap: 8px; }
.ev-swatches label, .ev-radio-tabs label { position: relative; cursor: pointer; }
.ev-swatches input, .ev-radio-tabs input { position: absolute; opacity: 0; }
.ev-sw { display: flex; width: 32px; height: 32px; border-radius: 50%; background: var(--tone); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--s-border); align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--s-muted); }
.ev-sw.is-auto { background: var(--s-surface-2); }
.ev-swatches input:checked + .ev-sw { box-shadow: 0 0 0 2px var(--s-navy-700); }
.ev-swatches input:focus-visible + .ev-sw { outline: 2px solid var(--s-navy-500); outline-offset: 2px; }
.ev-radio-tabs span { min-height: 34px; padding: 0 12px; border-radius: 10px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; color: var(--s-muted); }
.ev-radio-tabs input:checked + span { background: #fff; color: var(--s-ink); box-shadow: 0 1px 3px rgba(15, 30, 61, .1); }
.ev-radio-tabs input:focus-visible + span { outline: 2px solid var(--s-navy-500); }
.ev-sec > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; min-height: 32px; }
.ev-sec > summary::-webkit-details-marker { display: none; }
.ev-sec > summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--s-muted); border-bottom: 2px solid var(--s-muted); transform: rotate(45deg); transition: transform .15s; flex-shrink: 0; }
.ev-sec[open] > summary::after { transform: rotate(-135deg); }
.ev-sec:not([open]) { gap: 0; }
.ev-sec > :not(summary) + :not(summary) { margin-top: 14px; }
.ev-sec > summary + * { margin-top: 10px; }
.ev-sum { font-size: 13px; font-weight: 600; color: var(--s-muted); }
.ev-picked { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.ev-options { display: flex; flex-direction: column; max-height: 260px; overflow-y: auto; border: 1px solid var(--s-border); border-radius: 12px; margin-top: 6px; padding: 4px; }
.ev-options[hidden], .ev-picked .s-chip[hidden] { display: none; }
.ev-opt { border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--s-ink); }
.ev-opt:hover, .ev-opt:focus-visible { background: var(--s-surface-2); }
.ev-opt.is-on { color: var(--s-green); font-weight: 700; }
.ev-rooms { display: flex; flex-direction: column; gap: 12px; max-height: 340px; overflow-y: auto; }
.ev-room-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.ev-room { position: relative; cursor: pointer; }
.ev-room input { position: absolute; opacity: 0; }
.ev-room span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 16px; border: 1px solid var(--s-border); font-size: 12.5px; font-weight: 700; color: var(--s-muted); background: #fff; }
.ev-room input:checked + span { background: var(--s-navy-700); border-color: var(--s-navy-700); color: #fff; }
.ev-room input:focus-visible + span { outline: 2px solid var(--s-navy-500); outline-offset: 1px; }
.ev-goal { display: flex; gap: 6px; align-items: center; }
.ev-goal .form-select { width: 84px; flex-shrink: 0; }
.ev-goal .s-icon-btn { flex-shrink: 0; width: 40px; height: 40px; }
.s-list li.is-removed { opacity: .45; text-decoration: line-through; }
.ev-bar { position: sticky; bottom: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(255, 255, 255, .96);
    border: 1px solid var(--s-border); border-radius: 18px; box-shadow: 0 -6px 24px rgba(15, 30, 61, .08); }

@media (max-width: 575.98px) {
    .ev-cols { grid-template-columns: minmax(0, 1fr); }
    .ev-bar { border-radius: 18px 18px 0 0; margin: 0 -16px; }
    .ev-bar .s-btn { flex: 1; }
}

/* ==========================================================================
   Form oluşturucu
   ========================================================================== */
.fb { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.fb-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fb-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding-bottom: 8px; }
.fb-q { gap: 10px; }
.fb-q-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fb-q-head .s-icon-btn { width: 36px; height: 36px; border-radius: 10px; }
.fb-opts { display: flex; flex-direction: column; gap: 6px; }
.fb-opts .s-icon-btn { width: 44px; flex-shrink: 0; }
.fb-row { display: flex; gap: 6px; align-items: center; }
.fb-row .form-control { min-width: 0; }
.fb-row .s-icon-btn { flex-shrink: 0; width: 40px; height: 40px; }
.fb-rooms { display: flex; flex-direction: column; gap: 10px; max-height: 280px; overflow-y: auto; }
.fb-room-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.fb-room-list .s-chip { cursor: pointer; height: 28px; }
.fb-save { display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 1199.98px) {
    .fb { grid-template-columns: minmax(0, 1fr); }
    .fb-side { position: static; max-height: none; }
}

.ff-people > :not(.ff-list) { flex-shrink: 0; }

/* ==========================================================================
   Şahin Bilgi Sistemi (K12NET) — anasayfada kısayolların üstünde ayrı kart
   ========================================================================== */
.s-k12 {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    border-radius: var(--s-radius-card);
    text-decoration: none;
    color: #fff;
    background:
        radial-gradient(420px 220px at 100% 0%, rgba(246, 185, 43, .28), transparent 70%),
        radial-gradient(360px 200px at 0% 100%, rgba(31, 100, 200, .35), transparent 70%),
        linear-gradient(120deg, var(--s-navy-900) 0%, #1b3466 100%);
    box-shadow: 0 10px 28px rgba(15, 30, 61, .22);
    transition: transform .15s, box-shadow .15s;
}

.s-k12::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 28px solid rgba(255, 255, 255, .05);
    pointer-events: none;
}

.s-k12:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 34px rgba(15, 30, 61, .28); }
.s-k12:focus-visible { outline: 3px solid var(--s-yellow); outline-offset: 3px; }

.s-k12-mark {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--s-yellow);
    color: var(--s-navy-900);
    box-shadow: 0 6px 16px rgba(246, 185, 43, .35);
}

.s-k12-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; position: relative; z-index: 1; }
.s-k12-kicker { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--s-yellow); }
.s-k12-body b { font-size: 21px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.s-k12-body small { font-size: 13px; font-weight: 500; color: var(--s-side-sub); }

.s-k12-go {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: 12px;
    background: #fff;
    color: var(--s-navy-900);
    font-size: 14px;
    font-weight: 800;
}

.s-k12:hover .s-k12-go { background: var(--s-yellow); }

@media (max-width: 575.98px) {
    .s-k12 { padding: 18px; gap: 14px; flex-wrap: wrap; }
    .s-k12-mark { width: 50px; height: 50px; border-radius: 15px; }
    .s-k12-body b { font-size: 18px; }
    .s-k12-go { width: 100%; justify-content: center; }
}

/* ---------- Logo (main'deki sahin_logo.png: açık zemin için; lacivert menüde beyaz plaka üzerinde) ---------- */
.s-brand-plate {
    background: #fff;
    border-radius: 14px;
    padding: 8px 12px;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.s-brand-plate .s-logo { display: block; width: 100%; max-width: 196px; height: auto; }
.s-auth-logo { display: flex; justify-content: center; }
.s-auth-logo .s-logo { width: 220px; max-width: 80%; height: auto; }

@media (max-width: 991.98px) {
    .s-brand-plate { padding: 6px 10px; border-radius: 12px; }
    .s-brand-plate .s-logo { width: auto; height: 40px; max-width: none; }
}

/* Çip içindeki kaldır düğmesi */
.s-chip-x {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 15px;
    line-height: 1;
    padding: 0 0 0 4px;
    cursor: pointer;
    opacity: .6;
}
.s-chip-x:hover { opacity: 1; color: var(--s-red); }
dialog::backdrop { background: rgba(15, 30, 61, .45); }
dialog:not([open]) { display: none !important; }
dialog[open] { position: fixed; inset: 0; margin: auto; height: fit-content; }

/* ==========================================================================
   Ders programı ve vekalet
   ========================================================================== */
.tt-scroll { overflow-x: auto; }
.tt-grid { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; min-width: 760px; }
.tt-grid th { font-size: 12px; font-weight: 800; color: var(--s-muted); text-align: center; padding: 4px; }
.tt-grid thead th b { display: block; color: var(--s-ink); font-size: 13px; }
.tt-grid thead th small { font-weight: 600; font-size: 11px; }
.tt-grid tbody th { width: 46px; text-align: left; }
.tt-grid td { background: var(--s-surface-2); border-radius: 10px; height: 54px; padding: 3px; vertical-align: top; }
.tt-grid td[data-mark] { cursor: pointer; }
.tt-grid td[data-mark]:not([data-manual]):hover { background: var(--s-yellow-soft); }
.tt-grid .is-break { background: transparent; width: 54px; }
.tt-grid thead th.is-break { width: 54px; }
.tt-grid tr.is-today th:first-child { color: var(--s-navy-900); }
.tt-grid tr.is-today td { box-shadow: inset 0 0 0 1px var(--s-yellow); }
.tt-grid td.is-now, .tt-grid thead th.is-now { box-shadow: inset 0 0 0 2px var(--s-yellow-600) !important; }
.tt-cell { display: flex; flex-direction: column; background: var(--s-blue-soft); color: var(--s-blue); border-radius: 8px; padding: 4px 6px; height: 100%; min-width: 0; }
.tt-cell + .tt-cell { margin-top: 2px; }
.tt-cell b { font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-cell small { font-size: 11px; color: var(--s-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-cell.is-gozetmen { background: var(--s-amber-soft); color: var(--s-amber); }
.tt-cell.is-nobet { background: var(--s-green-soft); color: var(--s-green); }
.tt-cell.is-diger { background: var(--s-navy-soft); color: var(--s-navy-700); }
.tt-days { display: none; }
.tt-day > summary { cursor: pointer; font-weight: 800; padding: 10px 0; list-style: none; display: flex; gap: 8px; align-items: center; }
.tt-day > summary::-webkit-details-marker { display: none; }
.tt-day + .tt-day { border-top: 1px solid var(--s-divider); }
.tt-day li.is-now { background: var(--s-yellow-soft); border-radius: 10px; }
.tt-day .tt-cell { height: auto; }
.tt-time { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; min-height: 44px; border-radius: 12px; background: var(--s-surface-2); flex-shrink: 0; }
.tt-time b { font-size: 16px; line-height: 1; }
.tt-time small { font-size: 11px; color: var(--s-muted); font-weight: 600; }
.sub-row { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--s-divider); }
.sub-row-body { flex: 1; min-width: 0; }
.sub-block + .sub-block { border-top: 1px solid var(--s-divider); padding-top: 10px; }
.sub-msg summary { list-style: none; }

@media (max-width: 767.98px) {
    .tt-scroll { display: none; }
    .tt-days { display: block; }
}

/* Puantaj */
.ts-card { padding: 10px; }
.ts-scroll { overflow: auto; max-height: calc(100vh - 260px); }
.ts-grid { border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.ts-grid th, .ts-grid td { border-right: 1px solid var(--s-divider); border-bottom: 1px solid var(--s-divider); padding: 0; text-align: center; height: 34px; min-width: 30px; }
.ts-grid thead th { position: sticky; top: 0; background: var(--s-surface-2); z-index: 2; font-weight: 700; color: var(--s-muted); }
.ts-grid .ts-name { position: sticky; left: 0; background: #fff; z-index: 1; text-align: left; min-width: 230px; max-width: 260px; padding: 2px 6px; }
.ts-grid thead .ts-name { z-index: 3; background: var(--s-surface-2); }
.ts-who { display: flex; flex-direction: column; min-width: 0; }
.ts-who b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-who small { font-size: 11px; color: var(--s-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-who small[data-branch] { cursor: pointer; }
.ts-grid th.ts-name { display: flex; align-items: center; gap: 4px; justify-content: space-between; }
.ts-row-act { display: none; gap: 1px; flex-shrink: 0; }
.ts-row-act button { border: 0; background: var(--s-surface-2); border-radius: 6px; width: 22px; height: 22px; font-size: 10px; color: var(--s-muted); cursor: pointer; padding: 0; }
.ts-row-act button:hover { background: var(--s-yellow-soft); color: var(--s-ink); }
.ts-grid tr:hover .ts-row-act, .ts-grid tr:focus-within .ts-row-act { display: flex; }
.ts-day b { display: block; font-size: 12px; color: var(--s-ink); }
.ts-day small { font-size: 10px; }
.ts-day[data-day] { cursor: pointer; }
.ts-day[data-day]:hover { background: var(--s-yellow-soft) !important; }
.ts-grid .is-weekend { background: #F3F5F9; color: var(--s-faint); }
.ts-grid thead .is-holiday { background: var(--s-red-soft); }
.ts-grid thead .is-half { background: var(--s-amber-soft); }
.ts-grid td[data-cell] { cursor: pointer; }
.ts-grid td[data-cell]:hover { box-shadow: inset 0 0 0 2px var(--s-yellow); }
.ts-grid td.is-manual { background: var(--s-amber-soft); font-weight: 800; color: var(--s-amber); }
.ts-grid .ts-total { min-width: 56px; background: var(--s-surface-2); }
.ts-key { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.ts-key.is-manual { background: var(--s-amber-soft); color: var(--s-amber); }
.ts-key.is-holiday { background: var(--s-red-soft); color: var(--s-red); }
.ts-key.is-half { background: var(--s-amber-soft); color: var(--s-ink); }

/* Aranabilir seçim kutusu (select[data-search]) */
.s-combo { position: relative; min-width: 0; }
.s-combo-input { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5878' stroke-width='2'%3e%3ccircle cx='11' cy='11' r='7'/%3e%3cpath d='m20 20-3.5-3.5'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.s-combo-list { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 4px); max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid var(--s-border); border-radius: 12px; box-shadow: var(--s-shadow-pop); padding: 4px; min-width: 240px; }
.s-combo-item { padding: 8px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--s-ink); }
.s-combo-item:hover, .s-combo-item.active { background: var(--s-surface-2); }
.s-combo-item.is-selected { font-weight: 800; color: var(--s-navy-700); }
.s-combo-group { padding: 8px 10px 4px; font-size: 11px; font-weight: 800; color: var(--s-muted); text-transform: uppercase; letter-spacing: .04em; }
.s-combo-empty { padding: 10px; color: var(--s-muted); font-size: 13px; }
.et-block { display: flex; flex-direction: column; gap: 12px; }
.et-bulk { position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--s-yellow-soft); }
.et-bulk[hidden] { display: none; }
.et-bulk .form-select { max-width: 320px; }
.et-room-head { display: flex; gap: 8px; align-items: center; padding: 10px 0 4px; border-bottom: 1px solid var(--s-divider); }
.et-st { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--s-divider); }
.et-st[hidden], .et-room[hidden] { display: none; }
.et-st.is-done { background: linear-gradient(90deg, var(--s-green-soft), transparent 60%); }
.et-st-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.et-st-body b { font-size: 14px; }
.et-hist { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.et-hist .s-chip { height: 20px; font-size: 10.5px; padding: 0 6px; }
.et-sel { width: 260px; flex-shrink: 0; }
.et-side { position: sticky; top: 12px; align-self: flex-start; max-height: calc(100vh - 24px); overflow-y: auto; }
.et-sess { border: 1px solid var(--s-divider); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.et-sess-list { margin: 0; padding-left: 18px; font-size: 13px; }
.et-sess-list small { color: var(--s-muted); }
@media (max-width: 767.98px) {
    .et-st { flex-wrap: wrap; }
    .et-sel { width: 100%; }
    .et-side { position: static; max-height: none; }
}

/* ==========================================================================
   Anasayfa — "Ne yapmak istiyorsunuz?" kutusu (Intent, search/intent)
   ========================================================================== */
.s-ask { display: flex; flex-direction: column; gap: 12px; }

.s-ask .s-ask-box {
    flex: 0 0 auto;   /* dikey sütunda flex-basis yüksekliğe dönüşmesin */
    max-width: none;
    height: 56px;
    padding: 0 16px;
    gap: 10px;
    background: var(--s-surface);
    border-radius: 16px;
}

.s-ask .s-ask-box input { height: 52px; font-size: 16px; }   /* 16px: iOS odaklanınca yakınlaştırmasın */
.s-ask .s-search-results { top: 62px; }

/* Örnekler kapalı durur; kutuya tıklanınca (.s-ask.is-open) aşağı kayarak açılır.
   grid 0fr→1fr: yükseklik içeriği bilmeden canlandırılır. Negatif üst boşluk .s-ask'ın 12px aralığını kapalıyken siler. */
.s-ask-examples {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: -12px;
    opacity: 0;
    visibility: hidden;   /* kapalıyken Tab ile örneklere girilmesin */
    transition: grid-template-rows .28s ease, margin-top .28s ease, opacity .2s ease, visibility 0s linear .28s;
}
.s-ask-examples-in { display: flex; flex-wrap: wrap; gap: 8px; min-height: 0; overflow: hidden; transform: translateY(-8px); transition: transform .28s ease; }
.s-ask.is-open .s-ask-examples { grid-template-rows: 1fr; margin-top: 0; opacity: 1; visibility: visible; transition-delay: 0s; }
.s-ask.is-open .s-ask-examples-in { transform: none; }
@media (prefers-reduced-motion: reduce) {
    .s-ask-examples, .s-ask-examples-in { transition: none; }
}

.s-ask-examples .s-chip {
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--s-border);
    border-radius: 16px;
    background: var(--s-surface);
    color: var(--s-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.s-ask-examples .s-chip:hover { border-color: var(--s-navy-500); color: var(--s-ink); }
.s-ask-examples .s-chip:focus-visible { outline: 3px solid var(--s-yellow); outline-offset: 2px; }

/* Girişsiz form (/anket/<kod>) */
.s-anket { width: 100%; min-width: 0; box-sizing: border-box; max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; display: flex; flex-direction: column; gap: 16px; }
.s-anket-head { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.s-anket-head .s-logo { width: 180px; height: auto; }
.s-anket-head h1 { font-size: 22px; margin: 8px 0 0; color: var(--s-ink); }
.s-anket-head p { margin: 0; color: var(--s-muted); font-size: 14px; text-align: left; }
/* Açıklama: satır sonları korunur, uzun bağlantı satırı kırılır (telefonda yana taşmasın) */
.s-anket-desc { white-space: pre-line; overflow-wrap: anywhere; max-width: 100%; }
.s-anket-desc a, .ff-note p a { color: var(--s-blue); text-decoration: underline; overflow-wrap: anywhere; }
.s-anket-foot { text-align: center; font-size: 12px; color: var(--s-muted); margin: 0; }
.ff-public { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.ff-consent { border: 1px solid var(--s-border); border-radius: 12px; padding: 10px 12px; background: var(--s-surface-2); }
.ff-consent summary { font-weight: 700; cursor: pointer; }
.ff-case { border: 1px dashed var(--s-border); border-radius: 12px; padding: 10px 12px; margin-top: 12px; }
.ff-case summary { font-weight: 700; cursor: pointer; color: var(--s-navy-700); display: flex; align-items: center; gap: 6px; }
.s-anket .s-card, .s-anket .ff-main { min-width: 0; } .s-anket .ff-choice span { overflow-wrap: anywhere; }

/* Aranabilir çoklu seçim (sahinMultiPick) */
.s-mpick { display: flex; flex-direction: column; gap: 8px; }
.s-mpick-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.s-mpick-chips .s-chip { height: auto; min-height: 28px; white-space: normal; padding: 4px 4px 4px 10px; }
.s-mpick-chips .s-chip button { border: 0; background: transparent; color: inherit; font-size: 16px; line-height: 1; width: 22px; height: 22px; border-radius: 11px; cursor: pointer; }
.s-mpick-chips .s-chip button:hover { background: rgba(15, 30, 61, .1); }
.s-mpick-empty { font-size: 13px; color: var(--s-muted); }
.s-mpick .s-combo-item { display: flex; align-items: center; gap: 8px; }
.s-mpick-box { flex: 0 0 18px; height: 18px; border: 1.5px solid var(--s-border); border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #fff; }
.s-mpick .is-selected .s-mpick-box { background: var(--s-navy-700); border-color: var(--s-navy-700); }
.s-mpick-sub { font-size: 12px; color: var(--s-muted); white-space: nowrap; }

/* Form oluşturucu: sekmeler, hedef kitle, şartlar */
.fb-tabs { position: sticky; top: 0; z-index: 20; }
.fb-pane[hidden] { display: none !important; }
.fb-section { display: flex; flex-direction: column; gap: 10px; }
.fb-section + .fb-section { border-top: 1px solid var(--s-divider); padding-top: 14px; }
.fb-help { font-size: 13px; color: var(--s-muted); margin: 0; }
.fb-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.fb-mode { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--s-border); border-radius: 12px; cursor: pointer; background: #fff; }
.fb-mode:hover { border-color: var(--s-navy-700); }
.fb-mode.is-on { border-color: var(--s-navy-700); background: var(--s-navy-soft); }
.fb-mode input { margin-top: 3px; flex-shrink: 0; }
.fb-mode b { display: block; font-size: 14px; }
.fb-mode span { font-size: 12px; color: var(--s-muted); }
.fb-mode-group { font-size: 12px; font-weight: 800; color: var(--s-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.fb-fill { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fb-fill-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; text-align: left; border: 1.5px solid var(--s-border); border-radius: 12px; background: #fff; cursor: pointer; color: inherit; }
.fb-fill-btn:hover { border-color: var(--s-navy-700); }
.fb-fill-btn.is-on { border-color: var(--s-navy-700); background: var(--s-navy-soft); box-shadow: inset 0 0 0 1px var(--s-navy-700); }
.fb-fill-btn b { font-size: 14px; }
.fb-fill-btn span { font-size: 12px; color: var(--s-muted); line-height: 1.3; }
.fb-step-title { font-size: 15px; font-weight: 800; margin-top: 6px; }
.fb-opts { display: flex; flex-direction: column; border: 1px solid var(--s-border); border-radius: 12px; overflow: hidden; }
.fb-opts .fb-mode-group { margin: 0; padding: 8px 12px 4px; background: var(--s-surface-2, #f7f8fb); }
.fb-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; cursor: pointer; border-top: 1px solid var(--s-divider); margin: 0; }
.fb-opts > :first-child { border-top: 0; }
.fb-opt:hover { background: var(--s-navy-soft); }
.fb-opt.is-on { background: var(--s-navy-soft); }
.fb-opt input { margin-top: 3px; flex-shrink: 0; }
.fb-opt b { display: block; font-size: 14px; font-weight: 600; }
.fb-opt.is-on b { font-weight: 800; }
.fb-opt small { display: block; font-size: 12px; color: var(--s-muted); margin-top: 2px; }
@media (max-width: 720px) { .fb-fill { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fb-school { border: 1px solid var(--s-border); border-radius: 12px; }
.fb-school > summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; font-weight: 700; list-style: none; }
.fb-school > summary::-webkit-details-marker { display: none; }
.fb-school > summary::after { content: '▾'; margin-left: auto; color: var(--s-muted); }
.fb-school[open] > summary::after { content: '▴'; }
.fb-school-body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.fb-grade-bar { display: flex; flex-wrap: wrap; gap: 4px; }
.fb-grade-bar button { height: 28px; padding: 0 10px; border-radius: 14px; border: 1px dashed var(--s-border); background: #fff; font-size: 12px; font-weight: 700; color: var(--s-navy-700); cursor: pointer; }
.fb-grade-bar button.is-on { border-style: solid; background: var(--s-navy-soft); }
.fb-room-list .s-chip input:focus-visible + span, .fb-room-list .s-chip:focus-within { outline: 2px solid var(--s-navy-700); }
.fb-who { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: var(--s-navy-soft); font-size: 14px; }
.fb-who-names { display: flex; flex-wrap: wrap; gap: 4px; max-height: 220px; overflow-y: auto; }
.fb-who-names .s-chip { background: #fff; font-weight: 600; }
.fb-cond { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--s-surface-2); }
.fb-cond-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.fb-cond-line .s-chip button { border: 0; background: transparent; color: inherit; font-size: 15px; line-height: 1; cursor: pointer; padding: 0 2px; }
.fb-cond-or { font-size: 11px; font-weight: 800; color: var(--s-muted); text-transform: uppercase; }
.fb-cond-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-cond-opts label { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--s-border); border-radius: 14px; background: #fff; font-size: 13px; cursor: pointer; }
.fb-cond-opts label.is-on { border-color: var(--s-navy-700); background: var(--s-navy-soft); font-weight: 700; }
.fb-opt-dep { font-size: 11px; font-weight: 700; color: var(--s-blue); white-space: nowrap; align-self: center; }

/* Öğrenci form raporu */
.sr-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.sr-student { gap: 14px; padding-top: 0; }
/* Kaydırınca üstte kalanlar: öğrenci şeridi → yıl bandı → dönem başlığı (yükseklikler JS ile --sr-top/--sr-yh) */
.sr-stick { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -20px; padding: 12px 20px; background: var(--s-surface); border-bottom: 1px solid var(--s-divider); border-radius: var(--s-radius-card) var(--s-radius-card) 0 0; }
.sr-stick .s-card-sub { display: block; }
.sr-year { display: flex; flex-direction: column; gap: 10px; }
.sr-year + .sr-year { margin-top: 18px; padding-top: 18px; border-top: 3px dashed var(--s-border); }
.sr-year-head { position: sticky; top: var(--sr-top, 0); z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; padding: 10px 14px; border-radius: 12px;
    background: linear-gradient(135deg, var(--s-navy-700), var(--s-navy-500)); color: #fff; font-size: 16px; font-weight: 800; box-shadow: 0 6px 14px rgba(15, 30, 61, .14); }
.sr-year-name::after { content: ' eğitim yılı'; font-weight: 600; opacity: .8; }
.sr-year-room { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--s-yellow); color: var(--s-navy-900); font-size: 13.5px; font-weight: 800; }
.sr-year-n { margin-left: auto; font-size: 13px; font-weight: 600; opacity: .85; }
.sr-term { display: flex; flex-direction: column; gap: 10px; }
.sr-term-head { position: sticky; top: calc(var(--sr-top, 0px) + var(--sr-yh, 0px)); z-index: 4; display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px 6px;
    background: var(--s-surface); font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--s-navy-600); border-bottom: 2px solid var(--s-yellow); }
.sr-term-head span { font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--s-muted); }
.sr-sub { border: 1px solid var(--s-border); border-radius: 14px; overflow: clip; background: var(--s-surface); }
.sr-sub.is-problem { border-left: 4px solid var(--s-red); }
.sr-sub-head { position: sticky; top: calc(var(--sr-top, 0px) + var(--sr-yh, 0px) + var(--sr-th, 0px)); z-index: 3; display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; padding: 10px 14px; background: var(--s-surface-2); border-bottom: 1px solid var(--s-border); }
.sr-sub-title { font-size: 15px; font-weight: 800; color: var(--s-ink); }
.sr-sub-meta { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; margin-left: auto; font-size: 12.5px; color: var(--s-muted); }
.sr-sub-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.sr-qa { list-style: none; margin: 0; padding: 0; counter-reset: srq; }
.sr-qa > li { counter-increment: srq; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 4px 18px; padding: 10px 14px; border-top: 1px solid var(--s-divider); }
.sr-qa > li:first-child { border-top: 0; }
.sr-qa > li:nth-child(even) { background: #FAFBFD; }
.sr-q { position: relative; padding-left: 30px; font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--s-muted); }
.sr-q::before { content: counter(srq); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--s-navy-soft); color: var(--s-navy-700); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.sr-a { font-size: 14.5px; line-height: 1.5; color: var(--s-ink); font-weight: 500; white-space: normal; overflow-wrap: anywhere; border-left: 3px solid var(--s-yellow); padding-left: 12px; }
.sr-a.is-blank { color: var(--s-faint); font-style: italic; font-weight: 400; border-left-color: var(--s-border); }
.sr-a a { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 700px) {
    .sr-stick { margin: 0 -16px; padding: 10px 16px; }
    .sr-qa > li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .sr-a { margin-left: 30px; }
    .sr-sub-meta { margin-left: 0; }
    .sr-sub-head { position: static; }
    .sr-year-head { flex-wrap: nowrap; font-size: 15px; padding: 8px 12px; }
    .sr-year-name::after { content: none; }
    .sr-year-n { white-space: nowrap; }
}

/* ==========================================================================
   Eylem gerektiren durum aç — kişi seçici (sahinCasePeople) ve diyalog (includes/footer/durum-ac)
   ========================================================================== */
.case-group {
    margin: 0;
    padding: 10px 12px 4px;
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius);
    max-height: 240px;
    overflow-y: auto;
}

.case-group legend {
    float: none;
    width: auto;
    margin: 0 0 6px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 800;
    color: var(--s-ink);
}

.case-group .form-check { margin-bottom: 6px; }
.case-group .form-check-label small { font-size: 12px; }
.case-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--s-muted); cursor: pointer; }
.case-all .form-check-input { margin: 0; }

.case-sheet { width: min(560px, 94vw); }
.case-sheet .case-students { position: static; margin-top: 6px; box-shadow: none; max-height: 260px; }
.case-sheet .s-search-item { width: 100%; border: 0; background: transparent; text-align: left; font-family: inherit; }

.case-student {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--s-radius);
    background: var(--s-surface-2);
}

.case-student b { flex: 1; min-width: 0; }

.case-lead { display: flex; flex-direction: column; gap: 4px; }
.case-lead .form-label { margin: 0; font-weight: 800; }

/* Durumlar süzgeci: onay kutuları alandaki giriş kutularıyla aynı yükseklikte ortalansın */
.cs-checks { min-height: 44px; }

/* ==========================================================================
   Anasayfa — "Sizi bekleyenler" kartları. Tek kart satırı kaplamasın (auto-fill);
   solda tonun şeridi, büyük sayı, altta açık eylem. s-pending başka sayfalarda da kullanıldığından ayrı sınıf.
   ========================================================================== */
.s-await {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 16px;
}

.s-await-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px 16px 22px;
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: 18px;
    color: var(--s-ink);
    text-decoration: none;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}

.s-await-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--tone, var(--s-navy-700));
}

.s-await-card:hover {
    color: var(--s-ink);
    border-color: #C5CFE2;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 30, 61, .09);
}

.s-await-card:focus-visible { outline: 3px solid var(--s-yellow); outline-offset: 2px; }

.s-await-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.s-await-count { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--tone, var(--s-ink)); }
.s-await-text { font-size: 16px; font-weight: 700; line-height: 1.3; }

.s-await-sub {
    font-size: 13px;
    font-weight: 500;
    color: var(--s-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.s-await-cta {
    margin-top: auto;
    padding-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    color: var(--tone, var(--s-navy-700));
}

.s-await-cta svg { transition: transform .15s; }
.s-await-card:hover .s-await-cta svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
    .s-await-card, .s-await-cta svg { transition: none; }
    .s-await-card:hover { transform: none; }
}

/* Rapor özeti: sıralanabilir tablo başlıkları */
.rp-sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; color: inherit; min-height: 32px; }
.rp-sort:focus-visible { outline: 3px solid rgba(246, 185, 43, .7); outline-offset: 2px; border-radius: 4px; }
.rp-sort::after { content: '↕'; font-size: 11px; opacity: .35; }
th[aria-sort="ascending"] .rp-sort::after { content: '▲'; opacity: .8; }
th[aria-sort="descending"] .rp-sort::after { content: '▼'; opacity: .8; }
th.text-end .rp-sort { flex-direction: row-reverse; }

/* Rapor yanıtları: süzgeç ve tablo başlığı (sabit, dolu zeminli; soru başlığı numaralı ve en çok 3 satır) */
.rp-answers { max-height: 72vh; border: 1px solid var(--s-divider); border-radius: 12px; }
.rp-answers table { font-size: 13.5px; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 100%; }
.rp-answers thead th {
    position: sticky; top: 0; z-index: 2; background: var(--s-surface-2); color: var(--s-ink);
    font-size: 12.5px; font-weight: 700; line-height: 1.35; vertical-align: top; white-space: normal;
    padding: 10px 12px; border-bottom: 1px solid var(--s-border);
}
.rp-answers thead th + th { border-left: 1px solid var(--s-divider); }
.rp-answers tbody td { vertical-align: top; padding: 10px 12px; overflow-wrap: anywhere; }
.rp-answers tbody tr:hover > td { background: var(--s-surface-2); }
.rp-col-date { width: 108px; }
.rp-col-person { width: 170px; }
.rp-col-room { width: 96px; }
.rp-col-del { width: 52px; }
.rp-col-q { width: 240px; }
.rp-col-q .rp-qno + .rp-qtext { margin-top: 2px; }
.rp-col-q .rp-qno {
    display: flex; width: fit-content; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px;
    border-radius: 6px; background: var(--s-navy-600); color: #fff; font-size: 11px; font-weight: 700;
}
.rp-col-q .rp-qtext { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }
.rp-answers .rp-sort { min-height: 0; }
/* Grup özeti: tüm gruplar ve kayıt sayıları */
.rp-groups { display: flex; flex-wrap: wrap; gap: 6px; max-height: 168px; overflow-y: auto; }
.rp-group-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--s-surface-2); border: 1px solid var(--s-border); color: var(--s-ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.rp-group-chip b { background: var(--s-navy-600); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; }
a.rp-group-chip:hover { border-color: var(--s-navy-600); color: var(--s-ink); }
/* Gruplama başlık satırı (yatay kaydırmada solda yapışık kalır) */
.rp-group td { background: var(--s-navy-soft) !important; border-top: 2px solid var(--s-navy-600); padding: 8px 12px !important; }

/* ==========================================================================
   Anasayfa bileşenleri (view/home). Yarım / üçte bir hücreler satırı paylaşır, yalnız kalan büyür;
   kart hücreyi boydan doldurur. Görünüm seçenekleri: is-strip, is-compact, is-list, kutucuklar.
   ========================================================================== */
.hw-cell { display: flex; flex-direction: column; min-width: 0; }
.hw-cell > .s-card, .hw-cell > .s-section { flex: 1; }
.hw-half { flex: 1 1 400px; }
.hw-third { flex: 1 1 280px; }
.hw-now { background: var(--s-surface-2); border-radius: 12px; }
.hw-bars .s-progress { height: 6px; --tone: var(--s-red); }
.hw-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.hw-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; background: var(--s-red-soft); color: var(--s-ink); text-decoration: none; }
.hw-tile b { font-size: 24px; font-weight: 800; line-height: 1; color: var(--s-red); }
.hw-tile span { font-size: 13px; font-weight: 700; }
.hw-tile:hover { color: var(--s-ink); box-shadow: 0 6px 16px rgba(15, 30, 61, .08); }
.s-list.is-compact > li { padding-top: 8px; padding-bottom: 8px; }

.s-await.is-strip { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.s-await.is-strip .s-await-card { flex-direction: row; align-items: center; gap: 12px; padding: 10px 14px 10px 18px; border-radius: 14px; }
.s-await.is-strip .s-await-head { margin: 0; }
.s-await.is-strip .s-tile { display: none; }
.s-await.is-strip .s-await-count { font-size: 24px; }
.s-await.is-strip .s-await-text { font-size: 14px; flex: 1; }
.s-await.is-strip .s-await-sub { display: none; }
.s-await.is-strip .s-await-cta { margin: 0; padding: 0; font-size: 0; }

.s-k12.is-strip { padding: 12px 16px; gap: 12px; }
.s-k12.is-strip .s-k12-mark { width: 40px; height: 40px; border-radius: 12px; }
.s-k12.is-strip .s-k12-body b { font-size: 16px; }
.s-k12.is-strip .s-k12-body small, .s-k12.is-strip .s-k12-kicker { display: none; }
.s-k12.is-strip .s-k12-go { height: 36px; padding: 0 14px; }

.hr-grid.is-list { grid-template-columns: 1fr; gap: 10px; }
.hr-grid.is-list .hr-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 12px 16px; }
.hr-grid.is-list .hr-title { min-height: 0; -webkit-line-clamp: 1; grid-column: 1; }
.hr-grid.is-list .hr-top { grid-column: 1; }
.hr-grid.is-list .hr-metric { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; }
.hr-grid.is-list .hr-big { font-size: 22px; }
.hr-grid.is-list .s-progress { grid-column: 1 / -1; height: 5px; }
.hr-grid.is-list .hr-foot { display: none; }

/* ==========================================================================
   Yönetim → Anasayfa düzeni: tuval (anasayfanın küçük kopyası), yan panel, kayıt çubuğu, kısayol kataloğu
   ========================================================================== */
.hl-roles { align-self: flex-start; }
.hl-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .hl-wrap { grid-template-columns: 1fr; } }
.hl-stage { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hl-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hl-stage-head small { color: var(--s-muted); font-weight: 600; }
.hl-page { background: var(--s-bg); border: 1px solid var(--s-border); border-radius: var(--s-radius-card); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.hl-greet { display: flex; flex-direction: column; gap: 6px; }
.hl-greet span { height: 12px; width: 220px; max-width: 70%; border-radius: 6px; background: var(--s-navy-700); opacity: .85; }
.hl-greet span + span { height: 8px; width: 150px; background: var(--s-faint); }
.hl-canvas { display: flex; flex-wrap: wrap; gap: 12px; min-height: 120px; align-content: flex-start; }
.hl-w-full { flex: 1 1 100%; }
.hl-w-half { flex: 1 1 40%; }
.hl-w-third { flex: 1 1 27%; }
.hl-block { position: relative; min-width: 0; background: var(--s-surface); border: 2px solid var(--s-border); border-radius: 16px; padding: 10px 12px 12px;
    display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: border-color .12s, box-shadow .12s; user-select: none; }
.hl-block[draggable="true"] { cursor: grab; }
.hl-block:hover { border-color: #B9C5DB; }
.hl-block:focus-visible { outline: 3px solid var(--s-yellow); outline-offset: 2px; }
.hl-block.is-selected { border-color: var(--s-navy-500); box-shadow: 0 0 0 4px var(--s-navy-soft); }
.hl-block.is-dragging { opacity: .35; }
.hl-block-head { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.hl-block-head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-block-icon { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--s-navy-soft); color: var(--s-navy-600); }
.hl-grip { color: var(--s-faint); font-weight: 800; letter-spacing: -2px; cursor: grab; }
.hl-tag { margin-left: auto; flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--s-muted); background: var(--s-surface-2); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.hl-ph { min-height: 90px; border: 2px dashed var(--s-navy-500); border-radius: 16px; background: var(--s-navy-soft); }
@media (max-width: 640px) { .hl-w-half, .hl-w-third { flex-basis: 100%; } .hl-tag { display: none; } }

.hl-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
@media (max-width: 1100px) { .hl-side { position: static; } }
.hl-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--s-surface-2); border-radius: 12px; }
.hl-seg button { border: 0; background: transparent; border-radius: 9px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--s-muted); }
.hl-seg button[aria-checked="true"] { background: var(--s-surface); color: var(--s-ink); box-shadow: 0 1px 3px rgba(15, 30, 61, .1); }
.hl-views { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hl-view { display: flex; flex-direction: column; gap: 6px; padding: 8px; text-align: left; background: var(--s-surface); border: 2px solid var(--s-border); border-radius: 12px; font-size: 12.5px; }
.hl-view .hl-mock { pointer-events: none; min-height: 64px; }
.hl-view.is-on { border-color: var(--s-navy-500); box-shadow: 0 0 0 3px var(--s-navy-soft); }
.hl-palette { display: flex; flex-direction: column; gap: 8px; }
.hl-pal { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px dashed var(--s-border); border-radius: 12px; cursor: grab; background: var(--s-surface); }
.hl-pal b { font-size: 13px; display: block; }
.hl-pal small { color: var(--s-muted); font-size: 11.5px; }
.hl-savebar { position: sticky; bottom: 16px; z-index: 20; align-self: center; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px;
    background: var(--s-navy-900); color: #fff; border-radius: 16px; box-shadow: var(--s-shadow-pop); font-size: 14px; font-weight: 700; }
.hl-savebar[hidden] { display: none; }
.hl-savebar > span { display: inline-flex; align-items: center; gap: 8px; margin-right: 8px; }
.hl-savebar .s-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.hl-savebar .s-btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.hl-panel-head { flex-wrap: nowrap; align-items: flex-start; }

/* Küçük resim parçaları: gri çizgiler, kartlar, yuvarlaklar — gerçek veri değil, bileşenin biçimi */
.hl-mock { display: flex; flex-direction: column; gap: 6px; font-size: 10px; color: var(--s-muted); }
.hm-line { display: block; height: 6px; border-radius: 3px; background: var(--s-surface-2); }
.hm-row { display: flex; align-items: center; gap: 8px; }
.hm-col { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hm-dot, .hm-avatar { width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; background: var(--s-red-soft); }
.hm-avatar { background: var(--s-avatar-soft); }
.hm-date, .hm-time { width: 20px; height: 20px; flex-shrink: 0; border-radius: 6px; background: var(--s-navy-soft); }
.hm-time { width: 30px; }
.hm-pct { width: 26px; height: 12px; flex-shrink: 0; border-radius: 4px; background: var(--s-green-soft); order: 2; }
.hm-more { font-weight: 700; color: var(--s-faint); }
.hm-search { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid var(--s-border); border-radius: 9px; font-size: 11px; }
.hm-search i { width: 10px; height: 10px; border: 2px solid var(--s-faint); border-radius: 50%; }
.hm-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.hm-chips i { width: 54px; height: 12px; border-radius: 6px; background: var(--s-surface-2); }
.hm-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hm-grid3.is-strip { gap: 5px; }
.hm-card { display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 6px 9px; border: 1px solid var(--s-border); border-radius: 8px; position: relative; overflow: hidden; min-width: 0; }
.hm-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--tone, var(--s-green)); }
.hm-card b { font-size: 12px; font-weight: 800; color: var(--tone, var(--s-ink)); min-height: 10px; }
.hm-card.tone-amber b::before, .hm-card.tone-red b::before, .hm-card.tone-navy b::before { content: "3"; }
.hm-prog { height: 4px; border-radius: 2px; background: var(--s-surface-2); overflow: hidden; }
.hm-prog i { display: block; height: 100%; background: var(--s-green); }
.hm-pill { display: block; height: 18px; border-radius: 6px; background: var(--tone-soft, var(--s-surface-2)); border-left: 3px solid var(--tone, var(--s-navy-500)); }
.hm-bar { height: 10px; border-radius: 4px; background: var(--s-surface-2); }
.hm-bar i { display: block; height: 100%; border-radius: 4px; background: var(--s-red); opacity: .7; }
.hm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 5px; }
.hm-tile { height: 30px; border-radius: 7px; background: var(--s-red-soft); display: flex; align-items: center; justify-content: center; }
.hm-tile b { color: var(--s-red); font-size: 12px; }
.hm-k12 { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 10px; color: #fff; font-weight: 800; font-size: 12px;
    background: linear-gradient(120deg, var(--s-navy-900) 0%, #1b3466 100%); }
.hm-k12 i { width: 24px; height: 24px; border-radius: 7px; background: var(--s-yellow); }
.hm-k12.is-strip { padding: 6px 10px; font-size: 11px; }
.hm-k12.is-strip i { width: 16px; height: 16px; border-radius: 5px; }
.hm-scgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px 4px; }
.hm-scgrid span { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; text-align: center; font-size: 9.5px; font-weight: 600; color: var(--s-ink);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-scgrid i { width: 28px; height: 28px; border-radius: 9px; background: var(--s-navy-soft); color: var(--s-navy-600); display: flex; align-items: center; justify-content: center; }
.hm-sclist { display: flex; flex-direction: column; gap: 5px; }
.hm-sclist span { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; color: var(--s-ink); }
.hm-sclist svg { color: var(--s-navy-600); }

.hl-sc-list > li { gap: 12px; }
.hl-sc-list > li[draggable="true"] { cursor: grab; }
.hl-sc-list > li.is-dragging { opacity: .35; }
.hl-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 4px; max-height: 168px; overflow-y: auto; padding: 2px; }
.hl-icons label { cursor: pointer; position: relative; }
.hl-icons input { position: absolute; opacity: 0; }
.hl-icons span { display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 10px; border: 1px solid var(--s-border); color: var(--s-muted); }
.hl-icons input:checked + span { border-color: var(--s-navy-500); background: var(--s-navy-soft); color: var(--s-navy-700); box-shadow: 0 0 0 2px var(--s-navy-soft); }
.hl-icons input:focus-visible + span { outline: 3px solid var(--s-yellow); }

/* ==========================================================================
   Form raporu yanıt tablosu: ERP düzeni (assets/js/rapor-tablo.js)
   Başlık: metin solda (en çok 3 satır), sıralama oku ve süzme simgesi sağda sabit — alt satıra inmez
   ========================================================================== */
.rp-answers th { vertical-align: top; }
.rp-th { all: unset; box-sizing: border-box; display: flex; align-items: flex-start; gap: 6px; width: 100%; cursor: pointer; color: inherit; font: inherit; }
.rp-th-static { cursor: default; }
.rp-th:focus-visible { outline: 3px solid rgba(246, 185, 43, .7); outline-offset: 2px; border-radius: 4px; }
.rp-th-label { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rp-th-label .rp-qtext { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }
.rp-th-ico { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; margin-left: auto; white-space: nowrap; }
.rp-th-ico b { font-size: 12px; color: var(--s-navy-600); }
.rp-th-filter { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 5px; color: var(--s-muted); opacity: .55; }
.rp-th:hover .rp-th-filter { opacity: 1; background: var(--s-surface-2); }
.rp-th-filter.is-on { opacity: 1; background: var(--s-navy-600); color: #fff; }
.rp-th.is-active .rp-qtext { color: var(--s-navy-700); }
.rp-col-q .rp-qno { display: flex; width: fit-content; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px;
    border-radius: 6px; background: var(--s-navy-600); color: #fff; font-size: 11px; font-weight: 700; }

/* Başlık kutusu ve sağ tık menüsü */
.rp-pop, .rp-menu { z-index: 1100; background: #fff; border: 1px solid var(--s-border); border-radius: 12px; box-shadow: 0 14px 40px rgba(15, 30, 61, .2); padding: 8px; font-size: 13px; color: var(--s-ink); }
.rp-pop { width: 280px; }
.rp-menu { min-width: 240px; max-width: 340px; }
.rp-pop-title { padding: 2px 8px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--s-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-pop-sec, .rp-menu-sec { display: flex; flex-direction: column; gap: 1px; padding: 4px 0; }
.rp-pop-sec + .rp-pop-sec, .rp-menu-sec + .rp-menu-sec { border-top: 1px solid var(--s-divider); }
.rp-pop-sec > button, .rp-menu-sec > button, .rp-pop-list > button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-pop-sec > button:hover, .rp-menu-sec > button:hover, .rp-menu-sec > button:focus, .rp-pop-list > button:hover { background: var(--s-surface-2); }
.rp-pop button.is-on { background: var(--s-yellow-soft); font-weight: 700; }
.rp-pop button.is-muted { color: var(--s-muted); }
.rp-menu-ico { width: 16px; text-align: center; color: var(--s-muted); flex: 0 0 auto; }
.rp-pop-form { gap: 6px; }
.rp-pop-form label.rp-date { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--s-muted); }
.rp-pop-list { max-height: 220px; overflow-y: auto; border: 1px solid var(--s-border); border-radius: 8px; padding: 3px; background: var(--s-surface-2); }
.rp-pop-list > button { font-size: 12.5px; padding: 4px 8px; display: block; }
.rp-pop-note { font-size: 12px; color: var(--s-muted); }
.rp-pop-row { display: flex; align-items: center; gap: 10px; }
.rp-pop-form .s-link { min-height: auto; padding: 2px 0; font-size: 12px; justify-content: flex-start; }
.rp-pop-foot { display: flex; justify-content: flex-end; padding-top: 6px; border-top: 1px solid var(--s-divider); }

/* Etkin süzgeçler ve ipucu */
.rp-hint { font-size: 12.5px; color: var(--s-muted); display: flex; gap: 6px; align-items: flex-start; }
.rp-active { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rp-active-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; background: var(--s-navy-soft); color: var(--s-navy-900); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.rp-active-chip span { opacity: .6; }
.rp-active-chip:hover { background: var(--s-navy-600); color: #fff; }

/* Grup başlık satırı: tıklayınca açılır/kapanır, yatay kaydırmada solda kalır */
.rp-group-in { all: unset; position: sticky; left: 12px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--s-navy-900); font-size: 13.5px; }
.rp-group-in svg { transition: transform .15s; transform: rotate(90deg); color: var(--s-muted); }
.rp-group-in[aria-expanded="false"] svg { transform: none; }
.rp-group-in span { font-size: 12.5px; color: var(--s-muted); font-weight: 600; }

/* Rapor başlık kutusu: sade arama kutusu (gri simge) ve onay kutulu değer listesi */
.rp-pop-search { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--s-border); border-radius: 8px; background: #fff; color: var(--s-muted); }
.rp-pop-search:focus-within { border-color: var(--s-navy-500); box-shadow: 0 0 0 3px rgba(44, 70, 131, .12); }
.rp-pop-search svg { flex: 0 0 auto; opacity: .7; }
.rp-pop-search input { all: unset; flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--s-ink); }
.rp-pop-search input::placeholder { color: var(--s-muted); }
.rp-pop-list { background: #fff; padding: 2px; }
.rp-chk { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; font-size: 12.5px; cursor: pointer; min-width: 0; margin: 0; }
.rp-chk:hover { background: var(--s-surface-2); }
.rp-chk input { flex: 0 0 auto; width: 15px; height: 15px; margin: 0; accent-color: var(--s-navy-600); cursor: pointer; }
.rp-chk span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-chk.is-muted span { color: var(--s-muted); font-style: italic; }
.rp-chk-all { font-weight: 700; border-bottom: 1px solid var(--s-divider); border-radius: 6px 6px 0 0; margin-bottom: 2px; }
.rp-chk[hidden] { display: none; }
.rp-pop-foot { gap: 6px; }

/* Rapor yanıtları sayfalama */
.rp-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.rp-pager-info { font-size: 13px; color: var(--s-muted); font-weight: 600; }
.rp-pager-nums { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.rp-pg { min-width: 34px; height: 34px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--s-border); background: #fff; color: var(--s-ink); font-weight: 600; font-size: 13px; text-decoration: none; }
.rp-pg:hover { border-color: var(--s-navy-600); color: var(--s-ink); }
.rp-pg.is-on { background: var(--s-navy-600); border-color: var(--s-navy-600); color: #fff; }
.rp-pg-gap { color: var(--s-muted); padding: 0 2px; }
.rp-pager-size { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--s-muted); margin: 0; }
.rp-pager-size select { width: auto; }
