/* ——— Öğrenci Portalı OBS ——— */

/* Mobil: sabit alt menü — kaydırılabilir alanın altında boşluk */
@media (max-width: 767px) {
    .fi-body.fi-panel-student:not(:has(.ga-login-shell)),
    .fi-body.fi-panel-teacher:not(:has(.ga-login-shell)) {
        --sp-bottom-nav-offset: calc(5.75rem + env(safe-area-inset-bottom, 0));
    }

    html:has(.fi-body.fi-panel-student:not(:has(.ga-login-shell))),
    html:has(.fi-body.fi-panel-teacher:not(:has(.ga-login-shell))) {
        scroll-padding-bottom: var(--sp-bottom-nav-offset);
    }

    .fi-body.fi-panel-student:not(:has(.ga-login-shell)) .fi-main,
    .fi-body.fi-panel-teacher:not(:has(.ga-login-shell)) .fi-main {
        padding-inline: 0.75rem;
    }

    .fi-panel-student .sp-portal-page > section:last-child,
    .fi-panel-teacher .sp-portal-page > section:last-child {
        margin-bottom: 0.25rem;
    }

    .fi-panel-student .fi-page {
        row-gap: 0.75rem;
    }

    /* Filament başlığı mobilde sadeleştir */
    .fi-panel-student .sp-portal-page > .fi-page-header {
        display: none;
    }

    .fi-panel-student .sp-portal-page > header.fi-header {
        display: none;
    }

    .fi-panel-student .sp-portal-page .fi-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .fi-panel-student .sp-record-page .fi-header-actions {
        width: 100%;
    }

    .fi-panel-student .sp-record-page .fi-header-actions .fi-btn {
        width: 100%;
        justify-content: center;
    }

}

/* Sabit alt navigasyon */
.sp-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 0.15rem;
    border-top: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    padding: 0.4rem 0.25rem calc(0.45rem + env(safe-area-inset-bottom, 0));
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.1);
}

.dark .sp-bottom-nav {
    border-top-color: rgb(51 65 85);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
}

.sp-bottom-nav-item {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 2.75rem;
    padding: 0.35rem 0.1rem;
    text-decoration: none !important;
    color: #64748b !important;
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    min-width: 0;
    border-radius: 0.65rem;
    transition: color 0.15s, background 0.15s;
}

.sp-bottom-nav-item:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

.sp-bottom-nav-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    transition: background 0.15s, transform 0.15s;
}

.sp-bottom-nav-badge {
    position: absolute;
    top: -0.2rem;
    right: -0.35rem;
    z-index: 1;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.2rem;
    border-radius: 9999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    line-height: 1rem;
    text-align: center;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.45);
}

.sp-bottom-nav-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-bottom-nav-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-bottom-nav-item-active {
    color: #0369a1 !important;
}

.sp-bottom-nav-item-active .sp-bottom-nav-icon-wrap {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}

.sp-bottom-nav-item-active .sp-bottom-nav-icon-wrap svg {
    color: #fff !important;
}

.dark .sp-bottom-nav-item-active {
    color: #7dd3fc !important;
}

.dark .sp-bottom-nav-item-active .sp-bottom-nav-icon-wrap {
    background: linear-gradient(135deg, #0284c7, #0369a1);
}

/* BODY_END: sabit menüden önce — sayfa sonunun menü altında kalmaması için */
.sp-bottom-nav-spacer {
    display: block;
    width: 100%;
    height: var(--sp-bottom-nav-offset, calc(5.75rem + env(safe-area-inset-bottom, 0)));
    flex-shrink: 0;
    pointer-events: none;
}

@media (min-width: 768px) {
    .sp-bottom-nav-spacer {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Masaüstü: ana içerik alanı altta kesilmesin */
    .fi-body.fi-panel-student:not(:has(.ga-login-shell)) .fi-main-ctn,
    .fi-body.fi-panel-teacher:not(:has(.ga-login-shell)) .fi-main-ctn {
        padding-bottom: 1.5rem;
    }

    .fi-body.fi-panel-student:not(:has(.ga-login-shell)) .fi-main,
    .fi-body.fi-panel-teacher:not(:has(.ga-login-shell)) .fi-main {
        padding-bottom: 1.25rem;
    }

    .fi-panel-student .sp-portal-page > section:last-child,
    .fi-panel-teacher .sp-portal-page > section:last-child {
        margin-bottom: 0.75rem;
    }
}

/* Sidebar: mobilde ana sayfa + altta çıkış */
@media (max-width: 767px) {
    .fi-panel-student .fi-sidebar {
        display: flex;
        flex-direction: column;
    }

    .fi-panel-student .fi-sidebar-header-ctn {
        flex-shrink: 0;
    }

    .fi-panel-student .fi-sidebar-nav {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }

    .fi-panel-student .fi-sidebar-nav-ctn {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    .fi-panel-student .fi-sidebar-nav-groups {
        flex: 1;
    }

    .fi-panel-student .fi-sidebar-footer-ctn,
    .fi-panel-student .sp-sidebar-footer {
        flex-shrink: 0;
        margin-top: auto;
    }
}

/* Sidebar çıkış */
.sp-sidebar-footer {
    margin-top: auto;
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
    border-top: 1px solid #e2e8f0;
    background: inherit;
}

.dark .sp-sidebar-footer {
    border-top-color: rgb(51 65 85);
}

.sp-sidebar-logout {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #dc2626 !important;
    background: transparent;
    transition: background 0.15s;
}

.sp-sidebar-logout:hover {
    background: #fef2f2;
}

.dark .sp-sidebar-logout:hover {
    background: rgb(127 29 29 / 0.2);
}

/* Dashboard bölümleri */
.sp-section {
    margin-bottom: 1.25rem;
}

.sp-section-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.sp-section-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.dark .sp-section-title {
    color: #f1f5f9;
}

.sp-section-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
}

.dark .sp-section-link {
    color: #38bdf8;
}

.sp-announcement-card {
    display: block;
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 0.875rem 1rem;
    text-decoration: none !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dark .sp-announcement-card {
    border-color: rgb(51 65 85);
    background: rgb(30 41 59 / 0.5);
}

.sp-announcement-card:hover {
    border-color: #7dd3fc;
    box-shadow: 0 2px 12px rgba(14, 165, 233, 0.12);
}

/* Ders programı kartı */
.sp-schedule-card {
    overflow: hidden;
    border-radius: 0.75rem;
    border: 2px solid #bae6fd;
    background: #fff;
}

.dark .sp-schedule-card {
    border-color: rgb(3 105 161 / 0.5);
    background: rgb(15 23 42 / 0.6);
}

.sp-schedule-card-head {
    border-bottom: 1px solid #e0f2fe;
    background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%);
    padding: 0.75rem 1rem;
}

.dark .sp-schedule-card-head {
    border-bottom-color: rgb(51 65 85);
    background: linear-gradient(180deg, rgb(12 74 110 / 0.4) 0%, rgb(15 23 42) 100%);
}

.sp-schedule-day-name {
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0369a1;
}

.dark .sp-schedule-day-name {
    color: #7dd3fc;
}

.sp-day-tabs-track {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0 1rem 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sp-day-tabs-track::-webkit-scrollbar {
    display: none;
}

.sp-day-tab {
    flex-shrink: 0;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    transition: all 0.15s;
}

.dark .sp-day-tab {
    border-color: rgb(71 85 105);
    background: rgb(30 41 59);
    color: #cbd5e1;
}

.sp-day-tab-active {
    border-color: #0284c7 !important;
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35);
}

.sp-lesson-list {
    border-top: 1px solid #e2e8f0;
}

.dark .sp-lesson-list {
    border-top-color: rgb(51 65 85);
}

.sp-lesson-row {
    display: flex;
    border-bottom: 1px solid #f1f5f9;
}

.dark .sp-lesson-row {
    border-bottom-color: rgb(51 65 85 / 0.6);
}

.sp-lesson-row:last-child {
    border-bottom: none;
}

.sp-lesson-strip {
    display: flex;
    width: 5.25rem;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 2px solid #e0f2fe;
    background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 100%);
    padding: 0.75rem 0.35rem;
}

.dark .sp-lesson-strip {
    border-right-color: rgb(3 105 161 / 0.4);
    background: linear-gradient(180deg, rgb(12 74 110 / 0.5) 0%, rgb(15 23 42) 100%);
}

.sp-lesson-num {
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0369a1;
}

.dark .sp-lesson-num {
    color: #7dd3fc;
}

.sp-lesson-time {
    margin-top: 0.2rem;
    text-align: center;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.25;
    color: #475569;
}

.dark .sp-lesson-time {
    color: #94a3b8;
}

.sp-lesson-body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 0.75rem 1rem;
}

/* Ödev kartları */
.sp-homework-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 0.875rem 1rem;
}

.dark .sp-homework-card {
    border-color: rgb(51 65 85);
    background: rgb(30 41 59 / 0.5);
}

.sp-badge {
    display: inline-block;
    border-radius: 0.375rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
}

.sp-badge-wait {
    background: #fef3c7;
    color: #b45309;
}

.dark .sp-badge-wait {
    background: rgb(120 53 15 / 0.4);
    color: #fcd34d;
}

.sp-badge-done {
    background: #d1fae5;
    color: #047857;
}

.dark .sp-badge-done {
    background: rgb(6 78 59 / 0.4);
    color: #6ee7b7;
}

.sp-badge-pin {
    background: #fef3c7;
    color: #b45309;
    margin-bottom: 0.25rem;
}

.sp-btn-complete {
    border-radius: 0.5rem;
    background: #0d9488;
    padding: 0.35rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.sp-btn-complete:hover {
    background: #0f766e;
}

.sp-btn-detail {
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
    white-space: nowrap;
}

.dark .sp-btn-detail {
    border-color: rgb(71 85 105);
    color: #38bdf8;
}

.sp-empty-box {
    border-radius: 0.75rem;
    border: 1px dashed #cbd5e1;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.dark .sp-empty-box {
    border-color: rgb(71 85 105);
    color: #94a3b8;
}

.sp-empty-success {
    border-color: #a7f3d0;
    background: #ecfdf5;
}

.dark .sp-empty-success {
    border-color: rgb(6 95 70 / 0.5);
    background: rgb(6 78 59 / 0.2);
}

/* Zaman tüneli */
.sp-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sp-timeline-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.dark .sp-timeline-item {
    border-bottom-color: rgb(51 65 85);
}

.sp-timeline-dot {
    margin-top: 0.25rem;
    height: 0.75rem;
    width: 0.75rem;
    flex-shrink: 0;
    border-radius: 9999px;
    background: #94a3b8;
}

.sp-timeline-dot-success { background: #10b981; }
.sp-timeline-dot-danger { background: #ef4444; }
.sp-timeline-dot-warning { background: #f59e0b; }
.sp-timeline-dot-info { background: #0ea5e9; }

.sp-timeline-content {
    min-width: 0;
    flex: 1;
}

/* Masaüstü hızlı kartlar */
.sp-quick-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none !important;
    transition: all 0.15s;
}

.dark .sp-quick-card {
    border-color: rgb(51 65 85);
    background: rgb(30 41 59 / 0.5);
    color: #e2e8f0;
}

.sp-quick-card:hover {
    border-color: #7dd3fc;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.12);
}

/* Masaüstü: dashboard düzeni */
@media (min-width: 768px) {
    .sp-dashboard-page .fi-page {
        max-width: 72rem;
    }

    .sp-schedule-block .sp-schedule-card {
        max-width: 100%;
    }

    .sp-lesson-strip {
        width: 7rem;
    }

    .sp-lesson-num {
        font-size: 0.7rem;
    }

    .sp-lesson-time {
        font-size: 0.7rem;
    }
}

/* ——— Öğrenci sidebar: bölüm başlıkları ——— */
.fi-panel-student .fi-sidebar-nav-groups {
    gap: 0.125rem;
}

.fi-panel-student .sp-nav-section > .fi-sidebar-group-button {
    pointer-events: none;
    margin-top: 0.65rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.fi-panel-student .sp-nav-section-iletisim > .fi-sidebar-group-button {
    margin-top: 0.35rem;
}

.fi-panel-student .sp-nav-section .fi-sidebar-group-label {
    flex: 1;
    min-width: 0;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #94a3b8 !important;
}

.fi-panel-student .sp-nav-section .fi-sidebar-group-collapse-button {
    display: none !important;
}

.fi-panel-student .sp-nav-section .fi-sidebar-group-icon {
    display: none !important;
}

.fi-panel-student .sp-nav-section-deneme > .fi-sidebar-group-button {
    pointer-events: auto;
    cursor: pointer;
}

.fi-panel-student .sp-nav-section-deneme .fi-sidebar-group-icon {
    display: flex !important;
}

.fi-panel-student .sp-nav-section-deneme .fi-sidebar-group-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    color: #475569 !important;
}

.fi-panel-student .sp-nav-section-deneme .fi-sidebar-group-collapse-button {
    display: inline-flex !important;
}

.fi-panel-student .sp-nav-section-deneme.fi-active > .fi-sidebar-group-button .fi-sidebar-group-label {
    color: #0369a1 !important;
}

.fi-panel-student .sp-nav-section-divider > .fi-sidebar-group-button {
    display: none !important;
}

.fi-panel-student .sp-nav-section-divider .fi-sidebar-group-items {
    margin-top: 0.35rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.dark .fi-panel-student .sp-nav-section > .fi-sidebar-group-button,
.dark .fi-panel-student .sp-nav-section-divider .fi-sidebar-group-items {
    border-top-color: rgb(51 65 85);
}

.dark .fi-panel-student .sp-nav-section .fi-sidebar-group-label {
    color: #64748b !important;
}

.dark .fi-panel-student .sp-nav-section-deneme .fi-sidebar-group-label {
    color: #94a3b8 !important;
}

.dark .fi-panel-student .sp-nav-section-deneme.fi-active > .fi-sidebar-group-button .fi-sidebar-group-label {
    color: #7dd3fc !important;
}

/* Filament sidebar — gruplar (geniş mod) */

.fi-panel-student .fi-sidebar.fi-sidebar-open .fi-sidebar-group-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    border-radius: 0.5rem;
}

.fi-panel-student .fi-sidebar.fi-sidebar-open .fi-sidebar-group-label {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569 !important;
}

.fi-panel-student .fi-sidebar.fi-sidebar-open .fi-sidebar-group.fi-active > .fi-sidebar-group-button .fi-sidebar-group-label {
    color: #0369a1 !important;
}

.fi-panel-student .fi-sidebar.fi-sidebar-open .fi-sidebar-group-items {
    padding-left: 0.35rem;
}

.fi-panel-student .fi-sidebar-group-icon,
.fi-panel-student .fi-sidebar-group-icon svg,
.fi-panel-student .fi-sidebar-group-collapse-button svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
    flex-shrink: 0;
}

/* Daraltılmış sidebar (masaüstü) — sadece ikon + açılır menü */
@media (min-width: 1024px) {
    /* Yalnızca başlıklı grup satırı (Deneme Sınavlarım) — alt öğeler Filament x-show ile gizlenir */
    .fi-panel-student .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group-button {
        display: none !important;
    }

    .fi-panel-student .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group:has(.fi-dropdown) {
        align-items: center;
    }

    .fi-panel-student .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group:has(.fi-dropdown) .fi-sidebar-group-items {
        display: none !important;
    }

    .fi-panel-student .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group > .fi-dropdown {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .fi-panel-student .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group > .fi-dropdown button {
        width: 100%;
        justify-content: center;
    }

    .fi-panel-student .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-nav {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .fi-panel-student .fi-sidebar:not(.fi-sidebar-open) .sp-sidebar-logout span {
        display: none;
    }

    .fi-panel-student .fi-sidebar:not(.fi-sidebar-open) .sp-sidebar-logout {
        justify-content: center;
        padding: 0.625rem;
    }

    .fi-panel-student .fi-sidebar:not(.fi-sidebar-open) .sp-sidebar-footer {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }
}

/* Tablo mobil: kart görünümü (tabloyu tamamen gizleme — boş sayfa hatası giderildi) */
@media (max-width: 767px) {
    .fi-panel-student .obs-responsive-table .fi-ta-content-grid {
        padding: 0 !important;
        gap: 0.65rem !important;
        background: transparent !important;
    }

    .fi-panel-student .obs-responsive-table .fi-ta-content-grid .fi-ta-record {
        margin: 0 !important;
        border-radius: 1rem !important;
        border: 1px solid #e2e8f0 !important;
        background: #fff !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
    }

    .dark .fi-panel-student .obs-responsive-table .fi-ta-content-grid .fi-ta-record {
        border-color: rgb(51 65 85) !important;
        background: rgb(30 41 59 / 0.85) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    }

    .fi-panel-student .obs-responsive-table .fi-ta-header-toolbar {
        border-radius: 0.75rem;
        margin-bottom: 0.5rem;
    }
}

/* ——— Portal sayfa başlığı (tek başlık, tüm ekranlar) ——— */
.sp-portal-page-header,
.sp-mobile-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.28);
}

.sp-portal-page-header-main {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    gap: 0.85rem;
}

.sp-portal-page-header-actions {
    flex: 0 0 auto;
}

.sp-portal-page-header-actions .fi-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0f766e !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.sp-portal-page-header-teal .sp-portal-page-header-actions .fi-btn {
    color: #0f766e !important;
}

.sp-portal-page-header-sky .sp-portal-page-header-actions .fi-btn {
    color: #0369a1 !important;
}

@media (max-width: 767px) {
    .sp-portal-page-header-actions {
        width: 100%;
    }

    .sp-portal-page-header-actions .fi-btn {
        width: 100%;
        justify-content: center;
    }
}

.sp-portal-page-header-sky {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 55%, #0369a1 100%);
}

.sp-mobile-page-header:not(.sp-mobile-page-header-teal):not(.sp-portal-page-header-teal) {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 55%, #0369a1 100%);
}

.sp-portal-page-header-icon,
.sp-mobile-page-header-icon {
    display: flex;
    height: 2.75rem;
    width: 2.75rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.sp-portal-page-title,
.sp-mobile-page-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

/* Eski alt başlık kullanımı kaldırıldı */
.sp-portal-page-subtitle,
.sp-mobile-page-subtitle {
    display: none !important;
}

/* ——— Duyuru akışı ——— */
.sp-announcement-feed {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sp-announcement-feed-card {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    padding: 1rem 1.1rem;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
    cursor: pointer;
}

.dark .sp-announcement-feed-card {
    border-color: rgb(51 65 85);
    background: rgb(30 41 59 / 0.9);
}

.sp-announcement-feed-card:active {
    transform: scale(0.99);
}

.sp-announcement-feed-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sp-feed-badge {
    display: inline-flex;
    border-radius: 9999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sp-feed-badge-pin {
    background: #fef3c7;
    color: #b45309;
}

.dark .sp-feed-badge-pin {
    background: rgb(120 53 15 / 0.45);
    color: #fcd34d;
}

.sp-feed-date {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
}

.dark .sp-feed-date {
    color: #94a3b8;
}

.sp-feed-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
}

.dark .sp-feed-title {
    color: #f8fafc;
}

.sp-feed-excerpt {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #64748b;
}

.dark .sp-feed-excerpt {
    color: #94a3b8;
}

.sp-announcement-body {
    font-size: 0.9375rem;
    line-height: 1.65;
}

.sp-announcement-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.sp-feed-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0284c7;
}

.sp-feed-cta-sky {
    color: #0284c7;
}

.sp-feed-cta-teal {
    color: #0d9488;
}

.sp-feed-cta-muted {
    color: #94a3b8;
    font-weight: 600;
}

.dark .sp-feed-cta,
.dark .sp-feed-cta-sky {
    color: #38bdf8;
}

.dark .sp-feed-cta-teal {
    color: #5eead4;
}

.sp-announcement-section {
    margin-bottom: 1.25rem;
}

.sp-announcement-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.sp-announcement-section-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #334155;
}

.dark .sp-announcement-section-title {
    color: #cbd5e1;
}

.sp-announcement-section-count {
    display: inline-flex;
    min-width: 1.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #0ea5e9;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.1rem 0.45rem;
}

.fi-panel-teacher .sp-announcement-section-count {
    background: #14b8a6;
}

.sp-announcement-section-count-muted {
    background: #e2e8f0;
    color: #64748b;
}

.dark .sp-announcement-section-count-muted {
    background: rgb(51 65 85);
    color: #94a3b8;
}

.sp-announcement-feed-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.sp-feed-badge-new {
    background: #dbeafe;
    color: #1d4ed8;
}

.fi-panel-teacher .sp-feed-badge-new {
    background: #ccfbf1;
    color: #0f766e;
}

.sp-feed-badge-read {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    background: #ecfdf5;
    color: #047857;
}

.dark .sp-feed-badge-read {
    background: rgb(6 78 59 / 0.45);
    color: #6ee7b7;
}

.sp-announcement-feed-card-unread {
    border-color: #7dd3fc;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.12);
}

.fi-panel-teacher .sp-announcement-feed-card-unread {
    border-color: #5eead4;
    box-shadow: 0 2px 10px rgba(20, 184, 166, 0.15);
}

.sp-announcement-feed-card-read {
    opacity: 0.88;
    background: #f8fafc;
}

.dark .sp-announcement-feed-card-read {
    background: rgb(30 41 59 / 0.65);
}

.sp-announcement-feed-card-read .sp-feed-title {
    font-weight: 600;
    color: #475569;
}

.sp-announcement-all-read {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.85rem;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.875rem;
    font-weight: 600;
}

.sp-announcement-read-section {
    margin-top: 0.5rem;
}

.sp-announcement-read-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
    list-style: none;
    padding: 0.65rem 0.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
}

.sp-announcement-read-summary::-webkit-details-marker {
    display: none;
}

.sp-announcement-read-summary::before {
    content: '▸';
    margin-right: 0.35rem;
    transition: transform 0.15s;
}

.sp-announcement-read-section[open] .sp-announcement-read-summary::before {
    transform: rotate(90deg);
}

.sp-announcement-feed-read {
    margin-top: 0.35rem;
}

.sp-announcement-sheet-foot {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.dark .sp-announcement-sheet-foot {
    border-top-color: rgb(51 65 85);
}

.sp-announcement-sheet-done {
    width: 100%;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}

.sp-announcement-sheet-done-sky {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.sp-announcement-sheet-done-teal {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.sp-announcement-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(15, 23, 42, 0.55);
}

.sp-announcement-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 46;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 1.25rem 1.25rem 0 0;
    background: #fff;
    padding: 1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0));
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
}

.dark .sp-announcement-sheet {
    background: rgb(15 23 42);
}

.sp-announcement-sheet-handle {
    width: 2.5rem;
    height: 0.25rem;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    background: #cbd5e1;
}

.sp-announcement-sheet-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.sp-announcement-sheet-title {
    margin: 0;
    flex: 1;
    font-size: 1.125rem;
    font-weight: 800;
    color: #0f172a;
}

.dark .sp-announcement-sheet-title {
    color: #f8fafc;
}

.sp-announcement-sheet-close {
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    background: #f1f5f9;
    padding: 0.4rem;
    color: #475569;
    cursor: pointer;
}

.sp-announcement-sheet-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
    font-size: 0.75rem;
    color: #64748b;
}

@media (min-width: 768px) {
    .sp-announcement-sheet {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(32rem, 92vw);
        border-radius: 1rem;
        bottom: 10vh;
    }
}

/* Okuma paneli (alt sayfa) */
.sp-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.sp-sheet-backdrop-open {
    opacity: 1;
    pointer-events: auto;
}

.sp-read-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 46;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    border-radius: 1.25rem 1.25rem 0 0;
    background: #fff;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
}

.dark .sp-read-sheet {
    background: rgb(15 23 42);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}

.sp-read-sheet-open {
    transform: translateY(0);
}

.sp-read-sheet-handle {
    width: 2.5rem;
    height: 0.25rem;
    margin: 0.65rem auto 0;
    border-radius: 9999px;
    background: #cbd5e1;
}

.dark .sp-read-sheet-handle {
    background: rgb(71 85 105);
}

.sp-read-sheet-head {
    padding: 0.85rem 1.1rem 0.5rem;
}

.sp-read-sheet-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-left: auto;
    margin-bottom: 0.5rem;
    border: none;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
}

.dark .sp-read-sheet-close {
    background: rgb(30 41 59);
    color: #cbd5e1;
}

.sp-read-sheet-title {
    margin: 0.35rem 0 0;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
}

.dark .sp-read-sheet-title {
    color: #f8fafc;
}

.sp-read-sheet-meta {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
}

.sp-read-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1.1rem 1rem;
    -webkit-overflow-scrolling: touch;
}

.sp-read-sheet-foot {
    padding: 0.5rem 1.1rem 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.dark .sp-read-sheet-foot {
    border-top-color: rgb(51 65 85);
}

@media (min-width: 768px) {
    .sp-read-sheet {
        left: 50%;
        right: auto;
        bottom: auto;
        top: 50%;
        width: min(32rem, 92vw);
        max-height: 85vh;
        border-radius: 1rem;
        transform: translate(-50%, -48%) scale(0.96);
        opacity: 0;
        pointer-events: none;
    }

    .sp-read-sheet-open {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        pointer-events: auto;
    }

    .sp-read-sheet-handle {
        display: none;
    }
}

/* Boş durum */
.sp-empty-state {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 1rem;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
}

.dark .sp-empty-state {
    border-color: rgb(71 85 105);
    background: rgb(30 41 59 / 0.4);
}

.sp-empty-state-icon {
    margin: 0 auto 0.75rem;
    height: 2.5rem;
    width: 2.5rem;
    color: #94a3b8;
}

.sp-empty-state-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
}

.dark .sp-empty-state-title {
    color: #e2e8f0;
}

.sp-empty-state-text {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: #64748b;
}

.dark .sp-empty-state-text {
    color: #94a3b8;
}

.dark .sp-empty-state-icon {
    color: #64748b;
}

/* Portal filtre sekmeleri */
.sp-portal-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sp-portal-filter-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 7.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.dark .sp-portal-filter-tab {
    border-color: rgb(71 85 105);
    background: rgb(30 41 59);
    color: #cbd5e1;
}

.sp-portal-filter-tab-active {
    border-color: #0ea5e9;
    background: #e0f2fe;
    color: #0369a1;
}

.dark .sp-portal-filter-tab-active {
    border-color: #0284c7;
    background: rgb(12 74 110 / 0.45);
    color: #7dd3fc;
}

.sp-portal-filter-tab-count {
    min-width: 1.1rem;
    padding: 0 0.25rem;
    border-radius: 9999px;
    background: #0ea5e9;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.1rem;
    text-align: center;
}

.sp-portal-filter-tab-count--teal {
    background: #0d9488;
}

.fi-panel-teacher .sp-teacher-message-tabs .sp-portal-filter-tab-active {
    border-color: #0d9488;
    background: #ccfbf1;
    color: #0f766e;
}

.dark .fi-panel-teacher .sp-teacher-message-tabs .sp-portal-filter-tab-active {
    border-color: #14b8a6;
    background: rgb(19 78 74 / 0.45);
    color: #5eead4;
}

.sp-teacher-message-tabs {
    padding: 0.35rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.dark .sp-teacher-message-tabs {
    background: rgb(30 41 59);
    border-color: rgb(71 85 105);
}

.sp-messages-unread-badge {
    margin-left: auto;
    flex-shrink: 0;
    min-width: 1.1rem;
    padding: 0 0.3rem;
    border-radius: 9999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.1rem;
    text-align: center;
}

.sp-messages-contact {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.35rem;
}

/* Kayıt / ödev detay infolist mobil */
@media (max-width: 767px) {
    .fi-panel-student .sp-record-infolist .fi-infolist {
        gap: 0.65rem;
    }

    .fi-panel-student .sp-record-infolist .fi-section {
        border-radius: 1rem !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
        overflow: hidden;
    }

    .dark .fi-panel-student .sp-record-infolist .fi-section {
        border-color: rgb(51 65 85) !important;
        background: rgb(30 41 59 / 0.85) !important;
    }

    .fi-panel-student .sp-record-infolist .fi-section-header {
        background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
        padding: 0.75rem 1rem !important;
    }

    .dark .fi-panel-student .sp-record-infolist .fi-section-header {
        background: linear-gradient(180deg, rgb(30 41 59) 0%, rgb(15 23 42) 100%);
    }

    .fi-panel-student .sp-record-infolist .fi-infolist-entry-wrapper {
        padding-inline: 1rem;
    }

    .fi-panel-student .sp-record-infolist .fi-infolist-entry-label {
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #64748b;
    }

    .fi-panel-student .sp-record-infolist .fi-badge {
        font-size: 0.75rem;
    }
}

/* ——— Ödev detayı (Akbim tarzı, kurumsal mavi) ——— */
.fi-panel-student .sp-homework-detail-page > .fi-page-header {
    display: none !important;
}

.fi-panel-student .sp-homework-detail-page .fi-page-main {
    padding: 0 !important;
}

.sp-hw-detail {
    margin: -0.25rem -0.75rem 0;
    padding-bottom: 1rem;
}

@media (min-width: 768px) {
    .sp-hw-detail {
        margin: 0;
        max-width: 36rem;
        border-radius: 1rem;
        overflow: hidden;
        border: 1px solid #e2e8f0;
        box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    }

    .dark .sp-hw-detail {
        border-color: rgb(51 65 85);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    }
}

.sp-hw-detail-hero {
    background: linear-gradient(160deg, #0ea5e9 0%, #0284c7 45%, #0369a1 100%);
    color: #fff;
    padding: 0.85rem 1rem 1.1rem;
}

.sp-hw-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92) !important;
    text-decoration: none !important;
}

.sp-hw-detail-back:hover {
    color: #fff !important;
}

.sp-hw-detail-class {
    margin: 0;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.sp-hw-detail-meta {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.sp-hw-detail-meta-item {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.25;
    text-align: center;
}

.sp-hw-detail-meta-item span {
    min-width: 0;
    word-break: break-word;
}

.sp-hw-detail-meta-item + .sp-hw-detail-meta-item {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.sp-hw-detail-status-approved span {
    color: #bbf7d0;
}

.sp-hw-detail-status-waiting span {
    color: #fef08a;
}

.sp-hw-detail-status-missing span {
    color: #fecaca;
}

.sp-hw-detail-body {
    background: #fff;
}

.dark .sp-hw-detail-body {
    background: rgb(15 23 42);
}

.sp-hw-detail-rows {
    margin: 0;
    padding: 0;
}

.sp-hw-detail-row {
    display: grid;
    grid-template-columns: minmax(7.5rem, 38%) 1fr;
    gap: 0.5rem;
    align-items: center;
    border-bottom: 1px solid #e8eef4;
    padding: 0.75rem 1rem;
    margin: 0;
}

.dark .sp-hw-detail-row {
    border-bottom-color: rgb(51 65 85);
}

.sp-hw-detail-row dt {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
}

.dark .sp-hw-detail-row dt {
    color: #94a3b8;
}

.sp-hw-detail-row dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
}

.dark .sp-hw-detail-row dd {
    color: #f1f5f9;
}

.sp-hw-detail-block {
    border-top: 3px solid #e2e8f0;
}

.dark .sp-hw-detail-block {
    border-top-color: rgb(51 65 85);
}

.sp-hw-detail-block-title {
    margin: 0;
    padding: 0.6rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
}

.dark .sp-hw-detail-block-title {
    color: #cbd5e1;
    background: rgb(30 41 59);
}

.sp-hw-detail-block-content {
    padding: 0.85rem 1rem 1rem;
    background: #fff;
}

.dark .sp-hw-detail-block-content {
    background: rgb(15 23 42);
}

.sp-hw-detail-prose {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #334155;
}

.dark .sp-hw-detail-prose {
    color: #e2e8f0;
}

.sp-hw-detail-prose p {
    margin: 0 0 0.5rem;
}

.sp-hw-detail-empty,
.sp-hw-detail-note {
    margin: 0;
    font-size: 0.9375rem;
    color: #475569;
}

.dark .sp-hw-detail-empty,
.dark .sp-hw-detail-note {
    color: #94a3b8;
}

.sp-hw-detail-block-muted .sp-hw-detail-block-title {
    background: #f8fafc;
}

.sp-hw-detail-footer {
    position: sticky;
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0));
    padding: 0.75rem 1rem;
    background: linear-gradient(180deg, transparent 0%, #fff 35%);
}

.dark .sp-hw-detail-footer {
    background: linear-gradient(180deg, transparent 0%, rgb(15 23 42) 35%);
}

@media (min-width: 768px) {
    .sp-hw-detail-footer {
        bottom: 0;
        border-top: 1px solid #e2e8f0;
        background: #f8fafc;
    }

    .dark .sp-hw-detail-footer {
        border-top-color: rgb(51 65 85);
        background: rgb(30 41 59);
    }
}

.sp-hw-detail-submit {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
    cursor: pointer;
    transition: opacity 0.15s, transform 0.12s;
}

.sp-hw-detail-submit:hover {
    opacity: 0.95;
}

.sp-hw-detail-submit:active {
    transform: scale(0.99);
}

.sp-hw-detail-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* Mesajlaşma (öğrenci + öğretmen paneli) */
.sp-messages-layout {
    display: grid;
    gap: 1rem;
    min-height: 28rem;
}

@media (min-width: 768px) {
    .sp-messages-layout {
        grid-template-columns: minmax(12rem, 16rem) 1fr;
    }
}

.sp-messages-sidebar {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    overflow: hidden;
}

.dark .sp-messages-sidebar {
    border-color: rgb(51 65 85);
    background: rgb(15 23 42);
}

.sp-messages-sidebar-title {
    margin: 0;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.dark .sp-messages-sidebar-title {
    border-bottom-color: rgb(51 65 85);
}

.sp-messages-contact-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    max-height: 24rem;
    overflow-y: auto;
}

.sp-messages-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.sp-messages-contact:hover {
    background: #f1f5f9;
}

.dark .sp-messages-contact:hover {
    background: rgb(30 41 59);
}

.sp-messages-contact-active {
    background: #e0f2fe !important;
    color: #0369a1;
}

.dark .sp-messages-contact-active {
    background: rgb(12 74 110 / 0.35) !important;
    color: #7dd3fc;
}

.sp-messages-main {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    min-height: 28rem;
    overflow: hidden;
}

.dark .sp-messages-main {
    border-color: rgb(51 65 85);
    background: rgb(15 23 42);
}

.sp-messages-thread-head {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.dark .sp-messages-thread-head {
    border-bottom-color: rgb(51 65 85);
}

.sp-messages-thread {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sp-message-bubble {
    max-width: 85%;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
}

.sp-message-bubble-mine {
    align-self: flex-end;
    background: #0ea5e9;
    color: #fff;
}

.fi-panel-teacher .sp-message-bubble-mine {
    background: #0d9488;
}

.sp-message-bubble-theirs {
    align-self: flex-start;
    background: #f1f5f9;
    color: #0f172a;
}

.dark .sp-message-bubble-theirs {
    background: rgb(30 41 59);
    color: #f1f5f9;
}

.sp-message-time {
    margin: 0.35rem 0 0;
    font-size: 0.65rem;
    opacity: 0.75;
}

.sp-messages-compose {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #e2e8f0;
}

.dark .sp-messages-compose {
    border-top-color: rgb(51 65 85);
}

.sp-messages-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    resize: vertical;
}

.dark .sp-messages-input {
    border-color: rgb(71 85 105);
    background: rgb(15 23 42);
    color: #f1f5f9;
}

/* ——— Öğretmen Portalı (teal) ——— */

/* Filament varsayılan sayfa başlığı — portal sayfalarında gizli */
.fi-panel-teacher .fi-page.sp-portal-page header.fi-header,
.fi-panel-student .fi-page.sp-portal-page header.fi-header {
    display: none !important;
}

.fi-panel-teacher .fi-page.sp-portal-page > section,
.fi-panel-student .fi-page.sp-portal-page > section {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    gap: 1rem;
}

@media (max-width: 767px) {
    .fi-panel-teacher .fi-page {
        row-gap: 0.75rem;
    }

    .fi-panel-teacher .sp-portal-page > .fi-page-header {
        display: none;
    }

    .fi-panel-teacher .sp-portal-page > header.fi-header {
        display: none;
    }

    .fi-panel-teacher .sp-portal-page .fi-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .fi-panel-teacher .sp-record-page .fi-header-actions {
        width: 100%;
    }

    .fi-panel-teacher .sp-record-page .fi-header-actions .fi-btn {
        width: 100%;
        justify-content: center;
    }

    .fi-panel-teacher .fi-sidebar {
        display: flex;
        flex-direction: column;
    }

    .fi-panel-teacher .fi-sidebar-header-ctn {
        flex-shrink: 0;
    }

    .fi-panel-teacher .fi-sidebar-nav {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }

    .fi-panel-teacher .fi-sidebar-nav-ctn {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    .fi-panel-teacher .fi-sidebar-nav-groups {
        flex: 1;
    }

    .fi-panel-teacher .fi-sidebar-footer-ctn,
    .fi-panel-teacher .sp-sidebar-footer {
        flex-shrink: 0;
        margin-top: auto;
    }
}

.sp-bottom-nav-teacher .sp-bottom-nav-item-active {
    color: #0f766e !important;
}

.sp-bottom-nav-teacher .sp-bottom-nav-item-active .sp-bottom-nav-icon-wrap {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35);
}

.dark .sp-bottom-nav-teacher .sp-bottom-nav-item-active {
    color: #5eead4 !important;
}

.dark .sp-bottom-nav-teacher .sp-bottom-nav-item-active .sp-bottom-nav-icon-wrap {
    background: linear-gradient(135deg, #0d9488, #0f766e);
}

.sp-portal-page-header-teal,
.sp-mobile-page-header-teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 55%, #0f766e 100%);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.28);
}

.sp-section-link-teal {
    color: #0d9488 !important;
}

.dark .sp-section-link-teal {
    color: #5eead4 !important;
}

.sp-schedule-card-teal {
    border-color: #99f6e4;
}

.dark .sp-schedule-card-teal {
    border-color: rgb(15 118 110 / 0.5);
}

.sp-schedule-card-head-teal {
    border-bottom-color: #ccfbf1;
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
}

.dark .sp-schedule-card-head-teal {
    border-bottom-color: rgb(51 65 85);
    background: linear-gradient(180deg, rgb(19 78 74 / 0.4) 0%, rgb(15 23 42) 100%);
}

.sp-day-tab-teal.sp-day-tab-active {
    border-color: #0d9488 !important;
    background: linear-gradient(135deg, #14b8a6, #0d9488) !important;
}

.sp-lesson-strip-teal {
    background: linear-gradient(180deg, #ccfbf1 0%, #99f6e4 100%);
    color: #115e59;
}

.dark .sp-lesson-strip-teal {
    background: linear-gradient(180deg, rgb(19 78 74 / 0.6) 0%, rgb(15 118 110 / 0.4) 100%);
    color: #5eead4;
}

.sp-quick-card-teal:hover {
    border-color: #5eead4;
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.12);
}

.fi-panel-teacher .fi-sidebar-nav-groups {
    gap: 0.15rem;
}

.fi-panel-teacher .fi-sidebar.fi-sidebar-open .fi-sidebar-group-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    border-radius: 0.5rem;
}

.fi-panel-teacher .fi-sidebar.fi-sidebar-open .fi-sidebar-group-label {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569 !important;
}

.fi-panel-teacher .fi-sidebar.fi-sidebar-open .fi-sidebar-group.fi-active > .fi-sidebar-group-button .fi-sidebar-group-label {
    color: #0f766e !important;
}

.fi-panel-teacher .fi-sidebar.fi-sidebar-open .fi-sidebar-group-items {
    padding-left: 0.35rem;
}

.fi-panel-teacher .fi-sidebar-group-icon,
.fi-panel-teacher .fi-sidebar-group-icon svg,
.fi-panel-teacher .fi-sidebar-group-collapse-button svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .fi-panel-teacher .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group-button {
        display: none !important;
    }

    .fi-panel-teacher .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group:has(.fi-dropdown) {
        align-items: center;
    }

    .fi-panel-teacher .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group:has(.fi-dropdown) .fi-sidebar-group-items {
        display: none !important;
    }

    .fi-panel-teacher .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group > .fi-dropdown {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .fi-panel-teacher .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-group > .fi-dropdown button {
        width: 100%;
        justify-content: center;
    }

    .fi-panel-teacher .fi-sidebar:not(.fi-sidebar-open) .fi-sidebar-nav {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .fi-panel-teacher .fi-sidebar:not(.fi-sidebar-open) .sp-sidebar-logout span {
        display: none;
    }

    .fi-panel-teacher .fi-sidebar:not(.fi-sidebar-open) .sp-sidebar-logout {
        justify-content: center;
        padding: 0.625rem;
    }

    .fi-panel-teacher .fi-sidebar:not(.fi-sidebar-open) .sp-sidebar-footer {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }
}

@media (max-width: 767px) {
    .fi-panel-teacher .obs-responsive-table .fi-ta-content-grid {
        gap: 0.65rem;
    }

    .fi-panel-teacher .obs-responsive-table .fi-ta-content-grid .fi-ta-record {
        border-radius: 1rem;
        border: 1px solid #e2e8f0;
        padding: 0.85rem 1rem;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    }

    .dark .fi-panel-teacher .obs-responsive-table .fi-ta-content-grid .fi-ta-record {
        border-color: rgb(51 65 85);
        background: rgb(30 41 59 / 0.9);
    }

    .fi-panel-teacher .obs-responsive-table .fi-ta-header-toolbar {
        border-radius: 0.75rem;
        margin-bottom: 0.5rem;
    }
}

.sp-btn-detail-teal,
.fi-panel-teacher .sp-btn-detail {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #fff !important;
}

.sp-btn-detail-teal:hover,
.fi-panel-teacher .sp-btn-detail:hover {
    filter: brightness(1.05);
}

/* ——— Anketler ——— */
.sp-survey-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sp-survey-card {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1.1rem 1.15rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.dark .sp-survey-card {
    border-color: rgb(51 65 85);
    background: rgb(30 41 59 / 0.95);
}

.sp-survey-card-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.sp-survey-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.sp-survey-badge-open {
    background: #dbeafe;
    color: #1d4ed8;
}

.sp-survey-badge-done {
    background: #d1fae5;
    color: #047857;
}

.sp-survey-badge-closed {
    background: #f1f5f9;
    color: #64748b;
}

.sp-survey-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.dark .sp-survey-title {
    color: #f1f5f9;
}

.sp-survey-desc {
    margin-bottom: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.sp-survey-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0 0 0.75rem;
}

.sp-survey-results-preview {
    margin-bottom: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sp-survey-result-row {
    width: 100%;
}

.sp-survey-result-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 0.2rem;
    color: #475569;
}

.sp-survey-result-bar {
    height: 0.45rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.sp-survey-result-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.35s ease;
}

.sp-survey-result-fill-sky {
    background: linear-gradient(90deg, #0ea5e9, #0284c7);
}

.sp-survey-result-fill-teal {
    background: linear-gradient(90deg, #14b8a6, #0d9488);
}

.sp-survey-card-actions {
    display: flex;
    gap: 0.5rem;
}

.sp-survey-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: filter 0.15s, transform 0.15s;
}

.sp-survey-btn-primary {
    color: #fff;
}

.sp-survey-btn-sky {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.sp-survey-btn-teal {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
}

.sp-survey-btn-ghost {
    background: #f1f5f9;
    color: #334155;
}

.sp-survey-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sp-survey-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 1.25rem 1.25rem 0 0;
    background: #fff;
    padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0));
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
}

.dark .sp-survey-sheet {
    background: rgb(15 23 42);
}

.sp-survey-sheet-desc {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.sp-survey-sheet-hint {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.sp-survey-sheet-success {
    color: #047857;
    font-weight: 600;
}

.sp-survey-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sp-survey-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    font-weight: 500;
    color: #0f172a;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.sp-survey-option-selected.sp-survey-option-sky {
    border-color: #0ea5e9;
    background: #e0f2fe;
}

.sp-survey-option-selected.sp-survey-option-teal {
    border-color: #14b8a6;
    background: #ccfbf1;
}

.sp-survey-option-radio {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    border: 2px solid #94a3b8;
    flex-shrink: 0;
}

.sp-survey-option-selected .sp-survey-option-radio {
    border-width: 5px;
    border-color: #0ea5e9;
}

.sp-survey-option-selected.sp-survey-option-teal .sp-survey-option-radio {
    border-color: #0d9488;
}

.sp-survey-results-block {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.sp-survey-results-heading {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #0f172a;
}

@media (min-width: 768px) {
    .sp-survey-sheet {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(32rem, 92vw);
        border-radius: 1rem;
        bottom: 10vh;
    }
}

/* ——— Deneme sınav analizi ——— */
.sp-exam-analysis-page {
    background: #f1f5f9;
    margin-inline: -0.75rem;
    padding: 0 0.75rem 1.5rem;
}

@media (min-width: 768px) {
    .sp-exam-analysis-page {
        margin-inline: 0;
        padding: 0 0 1.5rem;
    }
}

.ea-grid {
    display: grid;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 1200px) {
    .ea-grid {
        grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
    }
}

.ea-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ea-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ea-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem 1rem 0.75rem;
}

.ea-card-head {
    margin-bottom: 0.75rem;
}

.ea-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.ea-chart-wrap {
    position: relative;
    width: 100%;
}

.ea-chart-wrap--tall {
    height: 280px;
}

.ea-chart-wrap--subject {
    height: 320px;
}

.ea-chart-wrap--radar {
    height: 260px;
}

.ea-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.ea-filter {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #64748b;
    min-width: 10rem;
}

.ea-select {
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.8125rem;
    color: #0f172a;
    background-color: #fff;
}

.ea-select--wide {
    width: 100%;
    max-width: 28rem;
}

/* Native select — tek ok (Windows çift ok / tekrarlayan chevron hatasını önler) */
.ea-native-select,
.ea-teacher-picker select {
    display: block;
    width: 100%;
    max-width: 28rem;
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #0f172a;
    background-color: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    background-size: 1.125rem;
}

.ea-native-select--wide {
    max-width: 28rem;
}

.ea-native-select:focus,
.ea-teacher-picker select:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.2);
}

.ea-filters .ea-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 1.75rem;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.4rem center;
    background-size: 1rem;
}

.ea-teacher-picker {
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
}

.ea-teacher-picker-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.ea-exam-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 420px;
    overflow-y: auto;
}

.ea-exam-item {
    display: block;
    padding: 0.75rem 0.85rem;
    border-radius: 0.5rem;
    background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 100%);
    border: 1px solid #bae6fd;
    text-decoration: none !important;
    color: inherit;
    transition: box-shadow 0.15s;
}

.ea-exam-item:hover {
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
}

.ea-exam-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.ea-exam-code {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #0369a1;
}

.ea-exam-name {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.ea-exam-score {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
    color: #334155;
}

.ea-exam-dyb {
    margin: 0.25rem 0 0;
    font-size: 0.7rem;
    display: flex;
    gap: 0.65rem;
}

.ea-dyb-d { color: #16a34a; font-weight: 600; }
.ea-dyb-y { color: #dc2626; font-weight: 600; }
.ea-dyb-b { color: #64748b; font-weight: 600; }

.ea-info-box {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.75rem 0.85rem;
    border-radius: 0.5rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #9a3412;
}

.ea-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 0.5rem;
}

.ea-empty-title {
    margin: 0.75rem 0 0.25rem;
    font-weight: 700;
    color: #334155;
}

.ea-empty-text {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    max-width: 22rem;
}

/* Portal / analiz — Heroicon SVG boyutları (devasa görünmeyi önler) */
.sp-portal-page-header-icon svg,
.sp-mobile-page-header-icon svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    max-width: 1.5rem !important;
    max-height: 1.5rem !important;
    flex-shrink: 0;
}

.ea-empty svg {
    width: 3rem !important;
    height: 3rem !important;
    max-width: 3rem !important;
    max-height: 3rem !important;
}

.ea-info-box svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
}

.ea-exam-item svg {
    width: 1rem !important;
    height: 1rem !important;
    max-width: 1rem !important;
    max-height: 1rem !important;
}

.sp-empty-state svg,
.sp-empty-state-icon {
    width: 2.5rem !important;
    height: 2.5rem !important;
    max-width: 2.5rem !important;
    max-height: 2.5rem !important;
}

/* ——— Deneme ortalama tabloları ——— */
.sp-exam-avg-page {
    background: #f8fafc;
    margin-inline: -0.75rem;
    padding: 0 0.75rem 1.5rem;
}

@media (min-width: 768px) {
    .sp-exam-avg-page {
        margin-inline: 0;
    }
}

.ea-avg-table-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
}

.ea-avg-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: #475569;
}

.ea-avg-toolbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.ea-avg-search {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ea-avg-search-input {
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    padding: 0.35rem 0.5rem;
    font-size: 0.8125rem;
    min-width: 10rem;
}

.ea-select--inline {
    margin: 0 0.25rem;
    padding: 0.25rem 0.35rem;
}

.ea-avg-btn {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 0.375rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    cursor: pointer;
}

.ea-avg-btn:hover {
    background: #f1f5f9;
}

.ea-avg-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.sp-exam-karne-page .ea-avg-scroll,
.sp-exam-avg-page .ea-avg-scroll {
    position: relative;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
}

.sp-exam-karne-page .ea-avg-scroll::after,
.sp-exam-avg-page .ea-avg-scroll::after {
    content: '';
    position: sticky;
    right: 0;
    top: 0;
    float: right;
    width: 1.5rem;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92));
}

@media (max-width: 767px) {
    .ea-avg-scroll {
        max-width: 100%;
        border: 1px solid #e2e8f0;
        border-radius: 0.5rem;
    }

    .ea-avg-table {
        min-width: max(100%, 36rem);
    }

    .ea-avg-th:first-child,
    .ea-avg-td:first-child,
    .ea-avg-th:nth-child(2),
    .ea-avg-td:nth-child(2),
    .ea-avg-th:nth-child(3),
    .ea-avg-td:nth-child(3) {
        position: sticky;
        z-index: 2;
        background: #fff;
    }

    .ea-avg-th:first-child,
    .ea-avg-td:first-child {
        left: 0;
        min-width: 2.25rem;
    }

    .ea-avg-th:nth-child(2),
    .ea-avg-td:nth-child(2) {
        left: 2.25rem;
        min-width: 4.5rem;
    }

    .ea-avg-th:nth-child(3),
    .ea-avg-td:nth-child(3) {
        left: 6.75rem;
        min-width: 7rem;
        box-shadow: 4px 0 8px -4px rgba(15, 23, 42, 0.12);
    }

    .ea-avg-th:first-child,
    .ea-avg-th:nth-child(2),
    .ea-avg-th:nth-child(3) {
        background: #f8fafc;
        z-index: 3;
    }

    .ea-avg-tr:nth-child(even) .ea-avg-td:first-child,
    .ea-avg-tr:nth-child(even) .ea-avg-td:nth-child(2),
    .ea-avg-tr:nth-child(even) .ea-avg-td:nth-child(3) {
        background: #fafafa;
    }
}

.ea-avg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.ea-avg-th,
.ea-avg-td {
    border: 1px solid #e2e8f0;
    padding: 0.45rem 0.5rem;
    text-align: left;
    white-space: nowrap;
}

.ea-avg-th {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
}

.ea-avg-th--num,
.ea-avg-td--num {
    text-align: center;
}

.ea-avg-th--icon,
.ea-avg-td--icon {
    width: 2.25rem;
    text-align: center;
}

.ea-avg-th--name,
.ea-avg-td--name {
    min-width: 8rem;
    max-width: 14rem;
    white-space: normal;
}

.ea-avg-tr:nth-child(even) {
    background: #fafafa;
}

.ea-avg-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 9999px;
    background: #22c55e;
    color: #fff;
    text-decoration: none;
}

.ea-avg-expand-icon,
.ea-avg-expand svg {
    width: 0.85rem !important;
    height: 0.85rem !important;
    max-width: 0.85rem !important;
    max-height: 0.85rem !important;
}

.ea-avg-footer-row {
    background: #f1f5f9 !important;
}

.ea-avg-footer-label {
    font-weight: 700;
    color: #0f172a;
}

.ea-avg-footer-num strong {
    color: #0f172a;
}

.ea-avg-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.ea-avg-pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ea-avg-page-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    border-radius: 0.25rem;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
}

.ea-avg-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media print {
    .ea-avg-toolbar,
    .ea-avg-pagination,
    .sp-portal-page-header,
    .ea-teacher-picker,
    .fi-sidebar,
    .sp-bottom-nav {
        display: none !important;
    }

    .ea-avg-scroll {
        overflow: visible;
    }
}

/* ——— Kullanıcı profili ——— */
.sp-profile-page {
    background: #f1f5f9;
    margin-inline: -0.75rem;
    padding: 0 0.75rem 1.5rem;
    border-radius: 0;
}

@media (min-width: 768px) {
    .sp-profile-page {
        margin-inline: 0;
        padding: 0 0 1.5rem;
        border-radius: 0.75rem;
    }
}

.sp-profile-layout {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .sp-profile-layout {
        grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
        gap: 1.5rem;
    }
}

.sp-profile-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sp-profile-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
}

.sp-profile-block-title,
.sp-profile-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.sp-profile-block-title svg,
.sp-profile-card-title svg,
.sp-profile-card-subtitle svg {
    width: 1.25rem !important;
    height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
    flex-shrink: 0;
}

.sp-profile-card-subtitle svg {
    width: 1rem !important;
    height: 1rem !important;
    max-width: 1rem !important;
    max-height: 1rem !important;
}

.sp-profile-form .fi-btn-icon,
.sp-profile-form .fi-btn-icon svg {
    width: 1rem !important;
    height: 1rem !important;
}

.sp-profile-dl {
    margin: 0;
}

.sp-profile-dl-row {
    display: grid;
    grid-template-columns: minmax(7.5rem, auto) 1fr;
    gap: 0.35rem 1rem;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.sp-profile-dl-row dt {
    font-weight: 600;
    color: #475569;
}

.sp-profile-dl-row dd {
    margin: 0;
    color: #0f172a;
    font-weight: 500;
}

.sp-profile-parent-kind {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.sp-profile-empty {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.sp-profile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem 1.5rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.sp-profile-card-section {
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}

.sp-profile-card-subtitle {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}

.sp-profile-form .fi-fo-field-wrp {
    margin-bottom: 0.75rem;
}

.sp-profile-form .fi-input-wrp {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0.375rem !important;
}

.sp-profile-form .fi-input {
    color: #0f172a !important;
}

.sp-profile-form .fi-btn,
.sp-profile-update-btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
    border-radius: 0.375rem !important;
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

.sp-profile-form .fi-btn:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

.sp-profile-form .fi-fo-field-wrp-label {
    display: none;
}

/* ——— Dashboard karşılama ——— */
.sp-dash-welcome {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 52%, #0369a1 100%);
    box-shadow: 0 10px 28px rgba(2, 132, 199, 0.28);
    color: #fff;
}

.sp-dash-welcome--parent {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 48%, #155e75 100%);
    box-shadow: 0 10px 28px rgba(14, 116, 144, 0.3);
}

.sp-dash-welcome-glow {
    position: absolute;
    right: -2rem;
    top: -3rem;
    width: 12rem;
    height: 12rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.sp-dash-welcome-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
}

.sp-dash-welcome-main {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-width: 0;
    flex: 1 1 16rem;
}

.sp-dash-welcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.sp-dash-welcome-kicker {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.88;
}

.sp-dash-welcome-label {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    font-weight: 500;
    opacity: 0.95;
}

.sp-dash-welcome-name {
    margin: 0.1rem 0 0;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.sp-dash-welcome-sub {
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    opacity: 0.92;
    max-width: 36rem;
}

.sp-dash-welcome-sub strong {
    font-weight: 700;
    color: #fff;
}

.sp-dash-welcome-picker {
    flex: 0 1 16rem;
    width: 100%;
    max-width: 18rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
}

.sp-dash-welcome-picker-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.9;
}

.sp-dash-welcome-select {
    display: block;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.5rem;
    background-color: #fff;
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 2.5rem 0.5rem 0.65rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
    background-size: 1.125rem;
}

.sp-dash-welcome-select:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.sp-dash-welcome-select::-ms-expand {
    display: none;
}

@media (max-width: 639px) {
    .sp-dash-welcome-inner {
        padding: 1rem;
    }

    .sp-dash-welcome-picker {
        max-width: none;
    }
}

/* ——— Dashboard OBS reform ——— */
.sp-dash-stats {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .sp-dash-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .sp-dash-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.sp-dash-stat {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1rem 0.9rem;
    border-radius: 0.875rem;
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    min-height: 7.25rem;
}

.sp-dash-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.sp-dash-stat--static {
    cursor: default;
}

.sp-dash-stat--static:hover {
    transform: none;
    box-shadow: none;
}

.sp-dash-stat--green {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border-color: #bbf7d0;
}

.sp-dash-stat--blue {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-color: #bfdbfe;
}

.sp-dash-stat--red {
    background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
    border-color: #fecaca;
}

.sp-dash-stat--amber {
    background: linear-gradient(135deg, #fffbeb 0%, #fefce8 100%);
    border-color: #fde68a;
}

.sp-dash-stat-body {
    min-width: 0;
    flex: 1;
}

.sp-dash-stat-label {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.sp-dash-stat-value {
    margin: 0.25rem 0 0;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
}

.sp-dash-stat-sub {
    margin: 0.35rem 0 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: #64748b;
}

.sp-dash-stat-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
}

.sp-dash-stat-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.sp-dash-stat--green .sp-dash-stat-icon { color: #059669; }
.sp-dash-stat--blue .sp-dash-stat-icon { color: #2563eb; }
.sp-dash-stat--red .sp-dash-stat-icon { color: #dc2626; }
.sp-dash-stat--amber .sp-dash-stat-icon { color: #d97706; }

.sp-dash-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.sp-dash-notify-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: #eff6ff;
    color: #2563eb;
}

.sp-dash-notify-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 9999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
}

.sp-dash-announcement-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    margin-bottom: 0.5rem;
}

.sp-dash-announcement-row--unread {
    border-color: #bfdbfe;
    background: linear-gradient(90deg, #f0f9ff 0%, #fff 100%);
}

.sp-dash-announcement-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
    padding: 0.45rem 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.sp-dash-announcement-detail:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.sp-timeline {
    padding: 0.5rem 0.75rem 0.75rem;
}

.sp-timeline-row {
    display: grid;
    grid-template-columns: 1.5rem 6.5rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: stretch;
    padding-bottom: 0.65rem;
}

.sp-timeline-rail {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sp-timeline-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 9999px;
    background: #0ea5e9;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #bae6fd;
    z-index: 1;
    margin-top: 0.85rem;
}

.sp-timeline-line {
    position: absolute;
    top: 1.35rem;
    bottom: -0.35rem;
    width: 2px;
    background: linear-gradient(180deg, #7dd3fc 0%, #e2e8f0 100%);
}

.sp-timeline-strip {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0.5rem;
    background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    min-height: 3.25rem;
}

.sp-timeline-hour {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.95;
}

.sp-timeline-time {
    font-size: 0.68rem;
    font-weight: 600;
    opacity: 0.92;
}

.sp-timeline-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.sp-timeline-lesson {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.sp-timeline-teacher {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

.sp-timeline-empty {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
}

.sp-dash-survey-section {
    margin-top: 0.25rem;
}

.sp-dash-survey-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sp-dash-survey-item {
    padding: 0.85rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.sp-dash-survey-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sp-dash-survey-item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
}

.sp-dash-survey-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.sp-dash-survey-desc {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.45;
}

.sp-dash-survey-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 700;
}

.sp-dash-survey-badge--open {
    background: #dbeafe;
    color: #1d4ed8;
}

.sp-dash-survey-badge--done {
    background: #f1f5f9;
    color: #475569;
}

.sp-dash-survey-badge--success {
    background: #dcfce7;
    color: #166534;
}

.sp-dash-survey-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.sp-dash-survey-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
}

.sp-dash-survey-btn--primary {
    background: #0ea5e9;
    color: #fff;
}

.sp-dash-survey-btn--ghost {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.sp-dash-survey-btn--link {
    background: transparent;
    color: #2563eb;
    padding-inline: 0.25rem;
}

.sp-dash-survey-empty {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

@media (max-width: 639px) {
    .sp-timeline-row {
        grid-template-columns: 1.25rem 5.75rem minmax(0, 1fr);
        gap: 0.5rem;
    }

    .sp-timeline-strip {
        padding: 0.45rem 0.5rem;
    }
}

/* ——— Veli: kompakt öğrenci seçici ——— */
.sp-ward-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-bottom: 1rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.dark .sp-ward-bar {
    border-color: rgb(51 65 85);
    background: rgb(15 23 42 / 0.45);
}

.sp-ward-bar-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    white-space: nowrap;
}

.sp-ward-bar-select {
    min-width: 12rem;
    max-width: 100%;
    flex: 1 1 14rem;
}

/* ——— Veli: çoklu çocuk özet kartları ——— */
.sp-ward-cards-section {
    margin-bottom: 1rem;
}

.sp-ward-cards {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .sp-ward-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .sp-ward-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.sp-ward-card {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.85rem 0.95rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sp-ward-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.sp-ward-card--active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 1px #2563eb;
}

.dark .sp-ward-card {
    border-color: rgb(51 65 85);
    background: rgb(15 23 42 / 0.5);
}

.dark .sp-ward-card--active {
    border-color: #3b82f6;
    background: rgb(30 58 138 / 0.25);
}

.sp-ward-card-head {
    margin-bottom: 0.65rem;
}

.sp-ward-card-name {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
}

.sp-ward-card-meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: #64748b;
}

.sp-ward-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.75rem;
    margin: 0;
}

.sp-ward-card-stats dt {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.sp-ward-card-stats dd {
    margin: 0.1rem 0 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
}

.sp-ward-card-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: #dbeafe;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

/* ——— Veli: ödeme planı sayfası ——— */
.sp-financial-stats {
    margin-bottom: 1rem;
}

.sp-financial-value {
    font-size: 1.15rem !important;
}

.sp-financial-docs {
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid #bae6fd;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.dark .sp-financial-docs {
    border-color: rgb(30 58 138);
    background: rgb(30 58 138 / 0.15);
}

.sp-financial-docs-title {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: #0369a1;
}

.sp-financial-docs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.sp-financial-doc-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-radius: 0.55rem;
    border: 1px solid #bae6fd;
    background: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0369a1;
    text-decoration: none;
    transition: background 0.15s;
}

.sp-financial-doc-btn:hover {
    background: #f0f9ff;
}

.sp-financial-table-section {
    margin-top: 0;
}
