/*
 * Sayfaya özel kurallar — GSP'lerde <style> yok, hepsi burada (docs/TASARIM-KARARLAR.md "CSS düzeni").
 * Layout'larda tema CSS'lerinden sonra yüklenir (_menu/_temaFlag.gsp), eski <style> bloklarının sırası korunur.
 * Bölüm başlığında kullanan GSP yazılı. Ortak bileşen → üstteki "Ortak" bölümleri; yalnız tek sayfanınki → o sayfanın bölümü.
 */

/* ===== Ortak: layout ===== */
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak { display: none !important; }
/* Angular açılana (ng-scope) kadar sayfa gövdesi gizli; açılmazsa yüklemeden 3 sn sonra yine görünür */
html:not(.nt-ng-emniyet) #maindiv:not(.ng-scope) { visibility: hidden; }

@media screen and (max-width: 1020px) {
    .biglogo { display: none; }
}
.ck.ck-editor__editable_inline { min-height: 200px !important; max-height: 500px !important; overflow-y: auto !important; }
.modal .ck.ck-editor__editable_inline { min-height: 200px !important; max-height: 400px !important; }

/* ===== Ortak: aç/kapa anahtarı (owl/permission, owl/_permissionnodekadro, owltype/_insertupdatepopup) ===== */
.nhr-switch { position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nhr-switch input[type=checkbox] { display: none; }
.nhr-switch .nhr-slider {
    width: 36px; height: 20px; background: #dde2ec; border-radius: 20px; cursor: pointer;
    transition: background .2s; position: relative; flex-shrink: 0;
}
.nhr-switch .nhr-slider::after {
    content: ''; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff;
    top: 3px; left: 3px; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.nhr-switch input:checked + .nhr-slider { background: #1bc5bd; }
.nhr-switch input:checked + .nhr-slider::after { left: 19px; }
.nhr-switch.yazma input:checked + .nhr-slider { background: #f64e60; }
.nhr-switch input:disabled + .nhr-slider { opacity: .45; cursor: not-allowed; }
.nhr-switch .nhr-label {
    font-size: 11px; font-weight: 600; color: #b5b5c3; text-transform: uppercase; letter-spacing: .04em; user-select: none;
}
.master-switch input[type=checkbox] { display: none; }

/* ===== Ortak: yetki kartı (owl/permission; #owltypeModal sıkı hali) ===== */
.perm-card { border: 1px solid #e4e6ef; border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.perm-card-header { display: flex; align-items: center; padding: 10px 16px; background: #f3f6f9; border-bottom: 1px solid #e4e6ef; }
.perm-card-header .cat-title { flex: 1; font-size: 13px; font-weight: 700; color: #3d4465; text-transform: uppercase; letter-spacing: .04em; }
.perm-card-header .cat-toggles { display: flex; gap: 24px; flex-shrink: 0; }
.perm-card-header .cat-toggle-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    display: flex; align-items: center; gap: 6px; cursor: pointer;
}
.perm-row { display: flex; align-items: center; padding: 9px 16px; border-bottom: 1px solid #f5f5f5; transition: background .12s; }
.perm-row:last-child { border-bottom: none; }
.perm-row:hover { background: #f8f9fc; }
.perm-row .role-name { flex: 1; font-size: 13px; color: #3d4465; padding-right: 12px; }
.perm-row .role-code { font-size: 11px; color: #b5b5c3; margin-left: 6px; }
.perm-row .role-toggles { display: flex; gap: 24px; flex-shrink: 0; }

#owltypeModal .perm-card { margin-bottom: 12px; }
#owltypeModal .perm-card-header { padding: 8px 14px; }
#owltypeModal .perm-card-header .cat-title { font-size: 12px; }
#owltypeModal .perm-card-header .cat-toggle-label { gap: 5px; }
#owltypeModal .perm-row { padding: 7px 14px; }
#owltypeModal .perm-row .role-name { font-size: 12px; padding-right: 10px; }
#owltypeModal .perm-row .role-code { font-size: 10px; margin-left: 4px; }
#owltypeModal .perm-row .role-toggles { gap: 20px; }
#owltypeModal .nhr-switch { gap: 5px; cursor: default; }
#owltypeModal .nhr-switch .nhr-slider { width: 32px; height: 18px; border-radius: 18px; }
#owltypeModal .nhr-switch .nhr-slider::after { width: 12px; height: 12px; }
#owltypeModal .nhr-switch input:checked + .nhr-slider::after { left: 17px; }

/* ===== Ortak: KPS alan/değer (kps/sorgula, owl/kpsquery, owl/kpsinfo) ===== */
.kps-field { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.kps-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #b5b5c3; margin-bottom: 2px; }
.kps-value { font-size: 14px; color: #3d4465; font-weight: 500; min-height: 20px; }

/* ===== Ortak: süreç zaman listesi (applicant/_evaluationAlert, applicant/jurydetailpage/_jurydetailinfo) ===== */
.nt-zaman-liste .kt-list__time { font-size: 0.75rem; white-space: nowrap; min-width: 120px; }

/* ===== _menu/_userSwitchBar ===== */
.user-switch-bar { padding: 0.5rem 0; animation: ntSlideDown 0.3s ease-out; }
@keyframes ntSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.user-switch-bar__content {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 0.5rem;
    color: white; background: linear-gradient(135deg, #5867dd 0%, #4553c7 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); border-radius: 6px; padding: 0.5rem 1.5rem;
}
.user-switch-bar__info { display: flex; align-items: center; flex-wrap: nowrap; gap: 0.35rem; font-size: 0.8rem; }
.user-switch-bar__label { font-size: 0.8rem; opacity: 0.95; font-weight: 500; white-space: nowrap; }
.user-switch-bar__badge {
    display: inline-flex; align-items: center; padding: 0.35rem 0.75rem; border-radius: 50px;
    font-size: 0.8rem; font-weight: 600; white-space: nowrap; transition: all 0.2s ease;
}
.user-switch-bar__badge--current { background: rgba(255,255,255,0.25); border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(10px); }
.user-switch-bar__badge--original { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px); }
.user-switch-bar__actions { display: flex; align-items: center; flex-wrap: nowrap; gap: 0.35rem; }
.user-switch-bar__switch-btn,
.user-switch-bar__back-btn {
    display: inline-flex; align-items: center; padding: 0.35rem 0.8rem; border-radius: 50px;
    font-size: 0.8rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.2);
    color: white; cursor: pointer; transition: all 0.25s ease; text-decoration: none; white-space: nowrap;
}
.user-switch-bar__switch-btn:hover,
.user-switch-bar__back-btn:hover {
    background: rgba(255,255,255,0.35); border-color: rgba(255,255,255,0.5); transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); color: white; text-decoration: none;
}
.user-switch-bar__back-btn { background: rgba(69, 83, 199, 0.3); border-color: rgba(69, 83, 199, 0.5); margin-left: 0.35rem; }
.user-switch-bar__back-btn:hover { background: rgba(69, 83, 199, 0.5); border-color: rgba(69, 83, 199, 0.7); }
@media (max-width: 991px) {
    .user-switch-bar__content { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .user-switch-bar__info, .user-switch-bar__actions { width: 100%; flex-wrap: wrap; }
    .user-switch-bar__actions { justify-content: flex-start; }
    .user-switch-bar__label { font-size: 0.75rem; }
}
@media (max-width: 768px) {
    .user-switch-bar__content { padding: 0.4rem 1rem; gap: 0.4rem; }
    .user-switch-bar__badge, .user-switch-bar__switch-btn, .user-switch-bar__back-btn { font-size: 0.7rem; padding: 0.25rem 0.6rem; }
    .user-switch-bar__label { font-size: 0.7rem; }
    .user-switch-bar__info i, .user-switch-bar__actions i { font-size: 0.65rem; }
}
@media (max-width: 576px) {
    .user-switch-bar { padding: 0.3rem 0; }
    .user-switch-bar__content { padding: 0.3rem 0.75rem; gap: 0.3rem; }
    .user-switch-bar__label { display: none; } /* mobilde yalnız rozetler */
    .user-switch-bar__info .fa-arrow-left { margin: 0 0.2rem; }
    .user-switch-bar__badge, .user-switch-bar__switch-btn, .user-switch-bar__back-btn { font-size: 0.65rem; padding: 0.2rem 0.5rem; }
    .user-switch-bar__info i, .user-switch-bar__actions i { font-size: 0.6rem; margin-right: 0.25rem !important; }
}

/* ===== owl/_permissionnodekadro ===== */
.node-list-item { display: flex; align-items: center; padding: 10px 16px; border-bottom: 1px solid #f0f0f0; transition: background .15s; }
.node-list-item:last-child { border-bottom: none; }
.node-list-item:hover { background: #f8f9fc; }
.node-list-item.node-hidden { display: none; }
.node-name { flex: 1; font-size: 13px; color: #3d4465; padding-right: 12px; }
.node-toggles { display: flex; gap: 24px; flex-shrink: 0; }
.node-list-header {
    display: flex; align-items: center; padding: 8px 16px; background: #f3f6f9; border-bottom: 2px solid #e4e6ef;
    position: sticky; top: 0; z-index: 10;
}
.node-list-header .header-label { font-size: 11px; font-weight: 700; color: #7e8299; text-transform: uppercase; letter-spacing: .06em; }
.node-list-header .header-toggles { display: flex; gap: 24px; flex-shrink: 0; }
.node-list-header .header-toggle-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; width: 80px; text-align: center; }
.node-search-wrap { padding: 12px 16px; border-bottom: 1px solid #e4e6ef; background: #fff; }
.node-list-scroll { max-height: 480px; overflow-y: auto; }
.node-no-result { display: none; text-align: center; padding: 32px; color: #b5b5c3; font-size: 13px; }

/* ===== owl/info (kapsam: .nt-owlinfo) ===== */
.nt-owlinfo .form-control.ng-invalid.ng-touched,
.nt-owlinfo .form-control.ng-invalid.ng-dirty {
    border-color: #fd397a; padding-right: calc(1.5em + 1.3rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23fd397a' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23fd397a' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right calc(0.375em + 0.325rem) center;
    background-size: calc(0.75em + 0.65rem) calc(0.75em + 0.65rem);
}
.nt-owlinfo .form-control.ng-valid.ng-touched,
.nt-owlinfo .form-control.ng-valid.ng-dirty {
    border-color: #0abb87; padding-right: calc(1.5em + 1.3rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%230abb87' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right calc(0.375em + 0.325rem) center;
    background-size: calc(0.75em + 0.65rem) calc(0.75em + 0.65rem);
}
.nt-owlinfo .invalid-feedback,
.nt-owlinfo .valid-feedback { display: none; width: 100%; margin-top: 0.25rem; font-size: 0.875rem; animation: ntFadeIn 0.3s ease-in; }
.nt-owlinfo .invalid-feedback { color: #fd397a; }
.nt-owlinfo .valid-feedback { color: #0abb87; }
.nt-owlinfo .form-control.ng-invalid.ng-touched ~ .invalid-feedback,
.nt-owlinfo .form-control.ng-invalid.ng-dirty ~ .invalid-feedback,
.nt-owlinfo .form-control.ng-valid.ng-touched ~ .valid-feedback,
.nt-owlinfo .form-control.ng-valid.ng-dirty ~ .valid-feedback { display: block; }
@keyframes ntFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.nt-owlinfo select.ng-invalid.ng-touched, .nt-owlinfo select.ng-invalid.ng-dirty { border-color: #fd397a; }
.nt-owlinfo select.ng-valid.ng-touched, .nt-owlinfo select.ng-valid.ng-dirty { border-color: #0abb87; }
.nt-owlinfo .field-error { display: block; margin-top: 0.25rem; font-size: 0.875rem; color: #fd397a !important; position: relative; width: 100%; }
.nt-owlinfo .form-group.has-error .form-control { border-color: #fd397a !important; }
.nt-owlinfo .owl-tckn-readonly { margin-top: 8px; }

/* ===== graduationinfo/query ===== */
.sorgu-tab-panel { padding: 20px 0 10px 0; }
.sorgu-textarea { font-family: monospace; font-size: 13px; }
.sonuc-baslik { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 4px; margin-bottom: 8px; font-weight: 600; font-size: 13px; }
.sonuc-baslik.mezuniyet { background: #eef3ff; color: #375de7; border-left: 4px solid #375de7; }
.sonuc-baslik.lise { background: #fff8ec; color: #c57f00; border-left: 4px solid #f7a800; }
.sonuc-baslik.yokdil { background: #edfaf1; color: #1a7a45; border-left: 4px solid #1bc25a; }
.sonuc-baslik.docent { background: #f0f9ff; color: #0e6fa8; border-left: 4px solid #1d9dd9; }
.btn-sorgu { min-width: 150px; }

/* ===== anasayfa/index: alttaki soluk kurum logosu (img.nt-anasayfa-logo) ===== */
.nt-anasayfa-logo {
    position: absolute; bottom: 0; left: 0; right: 0; height: 40%; width: 100%; margin-bottom: 60px;
    object-fit: contain; object-position: bottom; filter: grayscale(100%); opacity: 0.1; pointer-events: none; z-index: -1;
}


/* ===== calculatepoint/index: kategori açıklaması düz metin (ağaçtaki HTML açıklamanın yerine), satır sonları korunur ===== */
body.nt-tema .nt-ctree .nt-ctree-dtx--duz { white-space: pre-line; }

