.af-auth-page .portal-page-heading,
.af-auth-page .portal-evohus-footer {
    display: none;
}

.af-auth-page .portal-inner-main {
    min-height: calc(100vh - 76px);
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top right, color-mix(in srgb, var(--dx-primary) 12%, transparent), transparent 42%), var(--dx-body-bg);
}

.af-auth-shell {
    max-width: 560px;
    padding-block: 2rem;
}

.af-auth-card,
.af-module-header,
.af-form-card,
.af-definition-summary,
.af-kpi-card,
.af-definition-editor,
.af-workflow-card,
.af-student-resources,
.af-empty-state,
.af-empty-inline {
    border: 1px solid var(--dx-border-color);
    border-radius: var(--dx-card-border-radius);
    box-shadow: var(--dx-box-shadow-sm);
    background: var(--dx-card-bg);
}

.af-auth-card {
    overflow: hidden;
}

.af-auth-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.75rem;
    color: var(--dx-white);
    background: linear-gradient(135deg, var(--dx-primary), color-mix(in srgb, var(--dx-primary) 76%, var(--dx-indigo)));
}

.af-auth-brand strong,
.af-auth-brand span {
    display: block;
}

.af-auth-brand strong {
    font-size: 1.05rem;
}

.af-auth-brand span:not(.af-brand-icon) {
    margin-top: .15rem;
    opacity: .82;
    font-size: .82rem;
}

.af-brand-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--dx-white) 18%, transparent);
}

.af-brand-icon svg {
    width: 26px;
    height: 26px;
}

.af-auth-content {
    padding: 1.75rem;
}

.af-auth-content h1 {
    margin: 0 0 .5rem;
    color: var(--dx-emphasis-color);
    font-size: 1.45rem;
}

.af-auth-content > p {
    margin-bottom: 1.5rem;
    color: var(--dx-secondary-color);
}

.af-auth-footer {
    margin: 1.4rem 0 0 !important;
    text-align: center;
    font-size: .9rem;
}

.af-code-input {
    text-align: center;
    letter-spacing: .65rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.af-module-shell {
    max-width: 1600px;
    display: grid;
    gap: 1.25rem;
    padding-bottom: 2rem;
}

.af-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.af-module-header h1 {
    margin: .15rem 0 .25rem;
    color: var(--dx-emphasis-color);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.af-module-header p {
    margin: 0;
    color: var(--dx-secondary-color);
}

.af-eyebrow {
    color: var(--dx-primary);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.af-module-nav,
.af-module-nav form {
    display: flex;
    gap: .6rem;
    margin: 0;
}

.af-module-nav .btn,
.af-form-actions .btn,
.af-role-badge,
.af-management-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
}

.af-module-nav svg,
.af-form-actions svg,
.af-role-badge svg,
.af-management-tabs svg,
.portal-table-action svg {
    width: 17px;
    height: 17px;
}

.af-form-card,
.af-definition-summary,
.af-student-resources {
    padding: 1.5rem;
}

.af-section-heading {
    margin-bottom: 1.25rem;
}

.af-section-heading > div {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.af-section-heading h2,
.af-definition-summary h2,
.af-document-editor-heading h3,
.af-row-detail-content h3,
.af-list-heading {
    margin: 0;
    color: var(--dx-emphasis-color);
}

.af-section-heading h2 {
    font-size: 1.1rem;
}

.af-section-heading p,
.af-document-editor-heading p {
    margin: .2rem 0 0;
    color: var(--dx-secondary-color);
    font-size: .88rem;
}

.af-step {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    border-radius: 50%;
    color: var(--dx-primary);
    background: var(--dx-primary-bg-subtle);
    font-weight: 800;
}

.af-definition-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
}

.af-definition-summary h2 {
    margin-top: .65rem;
    font-size: 1.25rem;
}

.af-definition-summary p {
    margin: .45rem 0 0;
    color: var(--dx-secondary-color);
}

.af-definition-summary dl {
    min-width: 240px;
    margin: 0;
    display: grid;
    gap: .65rem;
}

.af-definition-summary dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.af-definition-summary dt {
    color: var(--dx-secondary-color);
    font-weight: 500;
}

.af-definition-summary dd {
    margin: 0;
    font-weight: 700;
}

.af-document-list {
    display: grid;
    gap: .75rem;
}

.af-document-row {
    display: grid;
    grid-template-columns: minmax(230px, .8fr) minmax(280px, 1.2fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--dx-border-color);
    border-radius: var(--dx-border-radius-lg);
    background: var(--dx-tertiary-bg);
}

.af-document-row > div {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.af-form-actions {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--dx-border-color);
}

.af-form-actions > span {
    display: flex;
    align-items: center;
    gap: .45rem;
    color: var(--dx-secondary-color);
    font-size: .84rem;
}

.af-status-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.af-status-alert > svg {
    flex: 0 0 24px;
}

.af-status-alert > div {
    flex: 1;
}

.af-status-alert strong,
.af-status-alert span,
.af-table-subtitle,
.af-row-detail-content .alert span {
    display: block;
}

.af-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.af-kpi-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem;
}

.af-kpi-card > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
}

.af-kpi-card > span svg {
    width: 24px;
    height: 24px;
}

.af-kpi-card strong {
    display: block;
    color: var(--dx-emphasis-color);
    font-size: 1.65rem;
    line-height: 1;
}

.af-kpi-card p {
    margin: .35rem 0 0;
    color: var(--dx-secondary-color);
}

.af-kpi-review > span { color: var(--dx-info); background: var(--dx-info-bg-subtle); }
.af-kpi-return > span { color: var(--dx-warning); background: var(--dx-warning-bg-subtle); }
.af-kpi-approved > span { color: var(--dx-success); background: var(--dx-success-bg-subtle); }

.af-table-subtitle {
    margin-top: .2rem;
    color: var(--dx-secondary-color);
    font-size: .8rem;
}

.af-table-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .35rem;
    padding: .12rem .5rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--dx-info);
    background: var(--dx-info-bg-subtle);
}

.af-table-badge svg {
    width: 14px;
    height: 14px;
}

.af-workflow-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.af-workflow-header-actions form {
    margin: 0;
}

.af-ogrencilik-secim {
    display: grid;
    gap: .75rem;
}

.af-ogrencilik-option {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .9rem 1rem;
    margin: 0;
    border: 1px solid var(--dx-border-color);
    border-radius: var(--dx-border-radius-lg);
    background: var(--dx-card-bg);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.af-ogrencilik-option:hover {
    border-color: var(--dx-primary);
    background: var(--dx-primary-bg-subtle);
}

.af-ogrencilik-option:has(input:checked) {
    border-color: var(--dx-primary);
    background: var(--dx-primary-bg-subtle);
    box-shadow: 0 0 0 1px var(--dx-primary);
}

.af-ogrencilik-option > .form-check-input {
    margin-top: .2rem;
    flex: 0 0 auto;
}

.af-ogrencilik-option > span {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.af-ogrencilik-option strong {
    color: var(--dx-emphasis-color);
}

.af-ogrencilik-option small {
    color: var(--dx-secondary-color);
    font-size: .8rem;
}

.af-student-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .85rem;
    border: 1px solid var(--dx-border-color);
    border-radius: var(--dx-border-radius-lg);
    background: var(--dx-tertiary-bg);
    color: var(--dx-secondary-color);
    font-size: .85rem;
    margin-bottom: 1rem;
}

.af-student-badge strong {
    color: var(--dx-emphasis-color);
}

.af-not-student > svg {
    color: var(--dx-danger);
}

.af-applications-closed > svg {
    color: var(--dx-warning);
}

.af-basvuru-durum-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    border-left: 4px solid var(--dx-secondary-color);
}

.af-basvuru-durum-bar.is-open {
    border-left-color: var(--dx-success);
}

.af-basvuru-durum-bar.is-closed {
    border-left-color: var(--dx-danger);
}

.af-basvuru-durum-info {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.af-basvuru-durum-bar .af-durum-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    color: var(--dx-emphasis-color);
}

.af-basvuru-durum-bar.is-open .af-durum-badge {
    color: var(--dx-success);
}

.af-basvuru-durum-bar.is-closed .af-durum-badge {
    color: var(--dx-danger);
}

.af-basvuru-durum-info p {
    margin: 0;
    color: var(--dx-secondary-color);
    font-size: .85rem;
}

.af-basvuru-durum-bar form {
    margin: 0;
}

.af-row-details {
    position: relative;
}

.af-row-details summary {
    list-style: none;
    white-space: nowrap;
}

.af-row-details summary::-webkit-details-marker {
    display: none;
}

.af-row-detail-content {
    min-width: min(420px, 82vw);
    margin-top: .6rem;
    padding: 1rem;
    display: grid;
    gap: .75rem;
    border: 1px solid var(--dx-border-color);
    border-radius: var(--dx-border-radius-lg);
    background: var(--dx-card-bg);
    box-shadow: var(--dx-box-shadow);
}

.af-row-detail-content h3 {
    font-size: .95rem;
}

.af-file-list,
.af-admin-files {
    margin: 0;
    padding: 0;
    display: grid;
    gap: .5rem;
    list-style: none;
}

.af-file-list li,
.af-admin-files a {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.af-file-list svg,
.af-admin-files svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.af-empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
}

.af-empty-state svg {
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
    color: var(--dx-secondary);
}

.af-empty-state h2 {
    font-size: 1.25rem;
}

.af-empty-state p,
.af-empty-inline {
    color: var(--dx-secondary-color);
}

.af-management-header {
    border-left: 4px solid var(--dx-primary);
}

.af-role-badge {
    padding: .65rem .85rem;
    border-radius: 999px;
    color: var(--dx-primary);
    background: var(--dx-primary-bg-subtle);
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}

.af-management-tabs {
    gap: .6rem;
    padding: .45rem;
    border: 1px solid var(--dx-border-color);
    border-radius: var(--dx-card-border-radius);
    background: var(--dx-card-bg);
}

.af-management-tabs .badge {
    color: inherit;
    background: color-mix(in srgb, currentColor 12%, transparent);
}

/* Öğrenim düzeyi geçişi (Lisans/Önlisans ⇄ Yüksek Lisans) — yalnızca iki düzeye de yetkili yöneticide görünür. */
.af-duzey-tabs {
    gap: .5rem;
    padding: .4rem;
    border: 1px solid var(--dx-border-color);
    border-radius: var(--dx-card-border-radius);
    background: var(--dx-tertiary-bg);
}

.af-duzey-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    font-weight: 700;
}

.af-duzey-tabs svg {
    width: 17px;
    height: 17px;
}

/* Öğrenci başvuru ekranı düzey uyarısı — büyük, kırmızı, dikkat çekici. */
.af-duzey-uyari {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    margin-bottom: 1.5rem;
    padding: 1.15rem 1.4rem;
    text-align: center;
    border-radius: var(--dx-card-border-radius);
    background: var(--dx-danger);
    color: #fff;
    border: 2px solid color-mix(in srgb, var(--dx-danger) 65%, #000 35%);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--dx-danger) 38%, transparent);
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .01em;
}

.af-duzey-uyari svg {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    stroke-width: 2.4;
}

.af-duzey-uyari-body {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-width: 0;
}

.af-duzey-uyari-title {
    font-size: 1.3rem;
    font-weight: 800;
}

.af-duzey-uyari-help,
.af-duzey-uyari-note {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.af-duzey-uyari-help a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-all;
}

.af-duzey-uyari-help a:hover {
    opacity: .85;
}

.af-duzey-uyari-note strong {
    font-weight: 800;
}

@media (max-width: 575.98px) {
    .af-duzey-uyari {
        font-size: 1.1rem;
        padding: 1rem 1.1rem;
    }
    .af-duzey-uyari svg {
        width: 26px;
        height: 26px;
    }
    .af-duzey-uyari-title {
        font-size: 1.1rem;
    }
    .af-duzey-uyari-help,
    .af-duzey-uyari-note {
        font-size: .9rem;
    }
}

.af-definition-management,
.af-definition-editor form {
    display: grid;
    gap: 1rem;
}

.af-definition-editor {
    overflow: hidden;
}

.af-definition-editor > summary {
    padding: 1.1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
}

.af-definition-editor > summary::-webkit-details-marker { display: none; }
.af-definition-editor > summary span { display: flex; align-items: center; gap: .65rem; }
.af-definition-editor > summary svg { width: 20px; height: 20px; color: var(--dx-primary); }
.af-definition-editor > summary small { color: var(--dx-secondary-color); }
.af-definition-editor[open] > summary { border-bottom: 1px solid var(--dx-border-color); background: var(--dx-tertiary-bg); }
.af-definition-editor > form { padding: 1.25rem; }

.af-document-editor-heading {
    margin-top: .75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.af-document-editor-heading h3 {
    font-size: 1rem;
}

.af-document-editor {
    display: grid;
    gap: .65rem;
}

.af-document-editor-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px 130px 42px;
    gap: .75rem;
    align-items: center;
}

.af-document-editor-row .form-check {
    margin: 0;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.af-list-heading {
    margin: .75rem 0 0;
    font-size: 1.15rem;
}

.af-empty-inline {
    padding: 1.25rem;
}

.af-admin-action .af-row-detail-content {
    min-width: min(360px, 82vw);
}

.af-workflow-card {
    overflow: hidden;
}

.af-workflow-header {
    min-height: 76px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--dx-border-color);
    background: linear-gradient(135deg, color-mix(in srgb, var(--dx-primary) 8%, var(--dx-card-bg)), var(--dx-card-bg));
}

.af-workflow-header > div,
.af-resource-heading,
.af-operation-result,
.af-field-help,
.af-student-resource,
.af-pre-application-note,
.af-pre-application-notice,
.af-approved-notice {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.af-workflow-header h2,
.af-resource-heading h3 {
    margin: 0;
    color: var(--dx-emphasis-color);
}

.af-workflow-header h2 {
    font-size: 1.15rem;
}

.af-workflow-header p,
.af-resource-heading p {
    margin: .2rem 0 0;
    color: var(--dx-secondary-color);
    font-size: .85rem;
}

.af-workflow-icon,
.af-resource-heading > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 12px;
    color: var(--dx-primary);
    background: var(--dx-primary-bg-subtle);
}

.af-workflow-icon svg,
.af-resource-heading svg {
    width: 21px;
    height: 21px;
}

.af-bulk-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin-bottom: 1rem;
}

.af-bulk-steps > div {
    min-width: 0;
    padding: .9rem;
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: .65rem;
    border: 1px solid var(--dx-border-color);
    border-radius: var(--dx-border-radius-lg);
    background: var(--dx-tertiary-bg);
}

.af-bulk-steps span {
    width: 34px;
    height: 34px;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--dx-white);
    background: var(--dx-primary);
    font-weight: 800;
}

.af-bulk-steps small {
    color: var(--dx-secondary-color);
}

.af-template-download {
    margin-bottom: 1rem;
}

.af-bulk-form,
.af-definition-form {
    display: grid;
    gap: 1.25rem;
}

.af-field-help {
    margin: 0;
    color: var(--dx-secondary-color);
    font-size: .84rem;
}

.af-field-help svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: var(--dx-info);
}

.af-visibility-choice {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: .85rem;
    border: 1px solid var(--dx-primary-border-subtle);
    border-radius: var(--dx-border-radius-lg);
    background: var(--dx-primary-bg-subtle);
    cursor: pointer;
}

.af-visibility-choice .form-check-input,
.af-required-check .form-check-input {
    position: static !important;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    flex: 0 0 1.25rem;
    opacity: 1 !important;
    visibility: visible !important;
    border: 2px solid var(--dx-primary);
}

.af-visibility-choice > span,
.af-visibility-choice strong,
.af-visibility-choice small {
    display: block;
}

.af-visibility-choice small {
    margin-top: .15rem;
    color: var(--dx-secondary-color);
}

.af-resource-grid,
.af-student-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.af-resource-panel {
    min-width: 0;
    padding: 1rem;
    display: grid;
    align-content: start;
    gap: .85rem;
    border: 1px solid var(--dx-border-color);
    border-radius: var(--dx-border-radius-lg);
    background: var(--dx-tertiary-bg);
}

.af-existing-file,
.af-existing-files a {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--dx-emphasis-color);
}

.af-existing-file {
    padding: .75rem;
    border: 1px solid var(--dx-success-border-subtle);
    border-radius: var(--dx-border-radius-lg);
    background: var(--dx-success-bg-subtle);
}

.af-existing-file > svg,
.af-existing-files svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: var(--dx-success);
}

.af-existing-file strong,
.af-existing-file small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.af-existing-file small {
    color: var(--dx-secondary-color);
}

.af-existing-files {
    display: grid;
    gap: .45rem;
}

.af-existing-files a {
    padding: .5rem .65rem;
    border-radius: var(--dx-border-radius);
    background: var(--dx-card-bg);
}

.af-required-check {
    margin: 0;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.af-operation-result {
    margin: 0;
}

.af-operation-result svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.af-resource-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 700;
    font-size: .8rem;
}

.af-resource-status svg {
    width: 16px;
    height: 16px;
}

.af-resource-status.is-ready { color: var(--dx-success); }
.af-resource-status.is-missing { color: var(--dx-danger); }

.af-student-resources {
    display: grid;
    gap: 1rem;
}

.af-student-resource {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--dx-border-color);
    border-radius: var(--dx-border-radius-lg);
    color: var(--dx-emphasis-color);
    background: var(--dx-tertiary-bg);
    transition: border-color .2s ease, transform .2s ease;
}

.af-student-resource:hover {
    border-color: var(--dx-primary);
    transform: translateY(-2px);
}

.af-student-resource--petition {
    border-color: var(--dx-primary-border-subtle);
    background: var(--dx-primary-bg-subtle);
}

.af-student-resource > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 12px;
    color: var(--dx-primary);
    background: var(--dx-card-bg);
}

.af-student-resource > div {
    min-width: 0;
    flex: 1;
}

.af-student-resource strong,
.af-student-resource small {
    display: block;
}

.af-student-resource small {
    margin-top: .2rem;
    overflow: hidden;
    color: var(--dx-secondary-color);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.af-student-resource > svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.af-pre-application-note,
.af-pre-application-notice,
.af-approved-notice {
    border: 2px solid var(--dx-danger);
    border-radius: var(--dx-border-radius-lg);
    color: var(--dx-danger-text-emphasis);
    background: var(--dx-danger-bg-subtle);
}

.af-pre-application-note {
    margin-top: 1.25rem;
    padding: 1rem;
}

.af-pre-application-notice {
    padding: 1.2rem;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--dx-danger) 10%, transparent);
}

.af-pre-application-note > svg,
.af-pre-application-notice > svg {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

.af-pre-application-note p,
.af-pre-application-notice strong,
.af-pre-application-notice span,
.af-approved-notice strong,
.af-approved-notice span {
    display: block;
    margin: 0;
}

.af-pre-application-note strong,
.af-pre-application-notice strong {
    font-size: 1rem;
    font-weight: 900;
}

.af-pre-application-note span,
.af-pre-application-notice span,
.af-approved-notice span {
    margin-top: .2rem;
    font-weight: 700;
}

.af-approved-notice {
    padding: .85rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
}

@media (prefers-reduced-motion: reduce) {
    .af-student-resource { transition: none; }
    .af-student-resource:hover { transform: none; }
}

.af-toast-source {
    display: none;
}

@media (max-width: 991.98px) {
    .af-module-header,
    .af-definition-summary,
    .af-workflow-header {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .af-module-nav {
        flex-wrap: wrap;
    }

    .af-document-row {
        grid-template-columns: 1fr;
    }

    .af-resource-grid,
    .af-student-resource-grid,
    .af-bulk-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .af-auth-shell,
    .af-module-shell {
        padding-inline: .75rem;
    }

    .af-auth-content,
    .af-form-card,
    .af-definition-summary,
    .af-module-header {
        padding: 1rem;
    }

    .af-module-nav,
    .af-module-nav form,
    .af-module-nav .btn,
    .af-module-nav form .btn {
        width: 100%;
    }

    .af-kpi-grid {
        grid-template-columns: 1fr;
    }

    .af-form-actions,
    .af-definition-editor > summary,
    .af-document-editor-heading,
    .af-workflow-header {
        align-items: stretch;
        flex-direction: column;
    }

    .af-form-actions .btn {
        width: 100%;
    }

    .af-document-editor-row {
        grid-template-columns: 58px minmax(0, 1fr) 42px;
    }

    .af-document-editor-row > .form-control {
        grid-column: 1 / -1;
    }
}

/**
 * Af basvuru modulu portal topbar'ini kullanmaz (kendi _ExternalHeader menüsüyle calisir);
 * sayfa kapsayicisinin ust topbar payi bu sayfalarda gereksiz.
 */
body.portal-no-topbar .page-wrapper {
    padding-top: 0 !important;
}

/**
 * Aramalı af-basvuru bölüm secici (af-basvuru/yeni).
 * Uzun tanim listesini darlatan combobox: input uzerinde dropdown list,
 * "Bolum Seciniz" default placeholder ile acilir.
 */
.af-search-select {
    --af-list-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    position: relative;
}

.af-search-select .af-search-select-icon {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    width: 1.05rem;
    height: 1.05rem;
    color: var(--dx-secondary-color);
    pointer-events: none;
}

.af-search-select .af-search-select-input:focus-visible {
    border-color: var(--dx-primary);
    box-shadow: 0 0 0 4px var(--dx-primary-bg-subtle);
}

.af-search-select-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 6px;
    list-style: none;
    max-height: 320px;
    overflow-y: auto;
    background: var(--dx-card-bg);
    border: 1px solid var(--dx-border-color);
    border-radius: var(--dx-border-radius-lg);
    box-shadow: var(--af-list-shadow);
}

.af-search-select-option {
    padding: 10px 12px;
    border-radius: calc(var(--dx-border-radius-lg) - 4px);
    font-size: 0.95rem;
    line-height: 1.45;
    cursor: pointer;
    color: var(--dx-secondary-color);
    word-break: break-word;
}

.af-search-select-option + .af-search-select-option,
.af-search-select-empty {
    margin-top: 2px;
}

.af-search-select-option:hover,
.af-search-select-option--active {
    background: var(--dx-primary-bg-subtle);
    color: var(--dx-emphasis-color);
}

.af-search-select-empty {
    padding: 12px;
    color: var(--dx-secondary-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

.af-search-select-clear {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: calc(var(--dx-border-radius-lg) - 4px);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dx-danger);
    cursor: pointer;
}

.af-search-select-clear svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.af-search-select-clear:hover {
    background: color-mix(in srgb, var(--dx-danger) 12%, transparent);
}

.af-search-select-clear + .af-search-select-option {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid var(--dx-border-color);
}
