* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    color: #222;
    -webkit-tap-highlight-color: rgba(35, 56, 77, 0.12);
}

.wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
}

.form-card {
    width: 100%;
    max-width: 680px;
    background: #ffffff;
    border-radius: 14px;
    padding: 35px 30px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.logo-area {
    text-align: center;
    margin-bottom: 18px;
}

.logo {
    max-width: 120px;
    width: 100%;
    height: auto;
    display: inline-block;
}

h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
    color: #1f2d3d;
}

.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
}

.alert.success {
    background: #e8f8ee;
    color: #1f7a3d;
    border: 1px solid #bfe8cc;
}

.alert.error {
    background: #fdecec;
    color: #a32121;
    border: 1px solid #f5bcbc;
}

.alert.info {
    background: #e8f4fd;
    color: #0b4f7a;
    border: 1px solid #b6d9f0;
}

.alert-sms-dikkat {
    background: linear-gradient(135deg, #fff8e6 0%, #fff3cd 100%);
    color: #7c4a00;
    border: 2px solid #f0b429;
    box-shadow: 0 4px 14px rgba(240, 180, 41, 0.2);
    padding: 18px 18px 16px;
}

.alert-sms-dikkat-baslik {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: #5c3700;
}

.alert-sms-dikkat-metin,
.alert-sms-dikkat-alt,
.alert-sms-dikkat-uyari {
    margin: 0 0 12px;
    line-height: 1.55;
}

.alert-sms-dikkat-alt {
    margin-bottom: 14px;
}

.alert-sms-dikkat-aksiyon {
    margin: 0;
}

.btn-sms-dogrula {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #c05621, #9c4221);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(156, 66, 33, 0.35);
}

.btn-sms-dogrula:hover {
    opacity: 0.95;
    color: #fff !important;
}

.personel-dogrulama-aciklama {
    text-align: center;
    color: #4a5568;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 20px;
}

.personel-dogrulama-sayac {
    text-align: center;
    font-size: 14px;
    color: #4a5568;
    margin: 0 0 8px;
}

.personel-dogrulama-suresi-doldu {
    color: #c53030;
    font-weight: 600;
}

.personel-dogrulama-geri {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
}

.personel-dogrulama-geri a {
    color: #2b6cb0;
}

.input-dogrulama-kodu {
    font-size: 1.35rem;
    text-align: center;
    letter-spacing: 0.25em;
    font-variant-numeric: tabular-nums;
}

.badge-cep-onayli {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: #e8f8ee;
    color: #1f7a3d;
}

.badge-cep-onaysiz {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: #fff8e6;
    color: #9a6700;
}

.kayit-kart-adsoyad {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.kayit-adsoyad-metin {
    flex: 1;
    min-width: 0;
}

.kayit-cep-durum {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    user-select: none;
}

.kayit-cep-durum--onay {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}

.kayit-cep-durum--red {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.alert-dogrulama-tamam-uyari {
    margin-top: 16px;
    background: linear-gradient(135deg, #fff4e6 0%, #ffedd5 100%);
    color: #7c2d12;
    border: 2px solid #fb923c;
    padding: 16px 18px;
    border-radius: 10px;
    line-height: 1.55;
}

.alert-dogrulama-tamam-baslik {
    display: block;
    margin-bottom: 8px;
    font-size: 1.02rem;
    color: #9a3412;
}

.alert-dogrulama-tamam-metin {
    margin: 0;
    font-size: 14px;
}

.personel-dogrulama-sure-bilgi {
    text-align: center;
    font-size: 14px;
    color: #4a5568;
    margin: 0 0 12px;
    line-height: 1.45;
}

.form-area {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2b3a4a;
}

.form-group input,
.form-group select {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    height: auto;
    padding: 12px 14px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #476582;
}

.btn-submit {
    min-height: 50px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #23384d;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    touch-action: manipulation;
}

.btn-submit:hover {
    background: #1a2c3d;
}

@media (max-width: 768px) {
    .form-card {
        padding: 25px 18px;
    }

    h1 {
        font-size: 24px;
    }

    .wrapper {
        padding: 16px 12px;
        align-items: stretch;
    }
}


.admin-wrapper {
    align-items: flex-start;
}

.list-card {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 26px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
    border: 1px solid #eef1f5;
}

.page-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.page-top h1 {
    margin-bottom: 0;
    text-align: left;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.btn-back,
.btn-edit {
    display: inline-block;
    text-decoration: none;
    background: #23384d;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn-back:hover,
.btn-edit:hover {
    background: #1a2c3d;
}

.search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: stretch;
}

.search-form-input {
    flex: 1 1 200px;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.search-form-submit {
    flex: 0 0 auto;
    min-width: 100px;
}

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

/* —— Liste: kompakt filtre şeridi (geniş ekranda dev kutu yok) —— */
.filter-toolbar {
    display: grid;
    grid-template-columns: minmax(140px, 190px) minmax(200px, 360px) auto;
    gap: 12px 16px;
    align-items: end;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.filter-toolbar-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.filter-toolbar-search {
    max-width: 360px;
}

.filter-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.filter-select,
.filter-search-input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
    outline: none;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.filter-select:focus,
.filter-search-input:focus {
    border-color: #3b5a7a;
    box-shadow: 0 0 0 3px rgba(59, 90, 122, 0.15);
}

.filter-toolbar-actions {
    display: flex;
    align-items: flex-end;
    padding-bottom: 1px;
}

.btn-filter-submit {
    height: 42px;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #2a4a66 0%, #23384d 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    box-shadow: 0 2px 6px rgba(35, 56, 77, 0.25);
    touch-action: manipulation;
    white-space: nowrap;
}

.btn-filter-submit:hover {
    box-shadow: 0 4px 12px rgba(35, 56, 77, 0.3);
}

.btn-filter-submit:active {
    transform: translateY(1px);
}

.liste-ozet {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 18px;
    line-height: 1.5;
}

.sayfalama {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eef2f6;
}

.sayfa-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #eef2f6;
    color: #23384d;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
    touch-action: manipulation;
}

.sayfa-link:hover {
    background: #dfe6ee;
}

.sayfa-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #23384d;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.sayfa-ellipsis {
    padding: 0 4px;
    color: #8899aa;
    user-select: none;
}

/* Kayıt listesi — kartlar (tablo yok) */
.kayit-listesi {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.kayit-kart {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.2s ease;
}

.kayit-kart:hover {
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.kayit-kart-baslik {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 14px 18px;
    background: linear-gradient(90deg, #f8fafc 0%, #fff 40%);
    border-left: 4px solid #23384d;
    border-bottom: 1px solid #f0f2f5;
}

.kayit-kart-govde {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 14px 18px 6px;
}

.kayit-alan {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.kayit-alan:last-of-type {
    border-bottom: none;
}

.kayit-alan-tam {
    grid-column: 1 / -1;
}

.kayit-etiket {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #94a3b8;
}

.kayit-deger {
    font-size: 14px;
    line-height: 1.45;
    color: #1e293b;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.kayit-kart-aksiyon {
    padding: 12px 18px 16px;
    background: #fafbfc;
    border-top: 1px solid #f1f5f9;
}

.kayit-bos {
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    color: #64748b;
    padding: 40px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
}

@media (min-width: 640px) {
    .kayit-kart-govde {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
        row-gap: 4px;
    }

    .kayit-alan {
        border-bottom: none;
        padding: 10px 0;
    }

    .kayit-alan-tam {
        grid-column: 1 / -1;
        margin-top: 4px;
        padding-top: 14px;
        border-top: 1px solid #f1f5f9;
    }
}

@media (min-width: 900px) {
    .kayit-kart-govde {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* Liste özeti: %30 ünvan | %50 birim | %20 telefon (gap sonrası alan 3:5:2 fr) */
    .kayit-kart-govde-ozet {
        grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 2fr);
        column-gap: 16px 20px;
        align-items: start;
    }

    .kayit-kart-govde-ozet .kayit-alan-ozet-cep {
        justify-self: end;
        text-align: right;
        min-width: 0;
    }

    .kayit-kart-govde-ozet .kayit-alan-ozet-cep .kayit-etiket,
    .kayit-kart-govde-ozet .kayit-alan-ozet-cep .kayit-deger {
        text-align: right;
    }

    .kayit-kart-govde-ozet .kayit-alan-ozet-birim .kayit-deger {
        overflow-wrap: normal;
        word-break: normal;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Tablet: özet tek sütun */
@media (min-width: 640px) and (max-width: 899px) {
    .kayit-kart-govde-ozet {
        grid-template-columns: 1fr;
    }
}

.action-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detay-kutu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.detay-satir {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 14px;
    padding: 14px;
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    background: #fafbfd;
}

.detay-label {
    font-weight: 700;
    color: #223548;
}

.detay-value {
    color: #222;
    line-height: 1.6;
    word-break: break-word;
}

.sil-blok {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.islem-butonalani {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.islem-butonalani .btn-detail,
.islem-butonalani .btn-edit,
.islem-butonalani .btn-form-print,
.islem-butonalani .btn-delete {
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    font-size: 13px;
}

.list-card .page-top .btn-back {
    background: #fff;
    color: #23384d;
    border: 2px solid #23384d;
    box-shadow: none;
}

.list-card .page-top .btn-back:hover {
    background: #23384d;
    color: #fff;
}

.inline-form {
    display: inline-block;
    margin: 0;
}

.btn-detail,
.btn-edit,
.btn-form-print,
.btn-back,
.btn-delete {
    display: inline-block;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-detail {
    background: #3c5a76;
    color: #fff;
}

.btn-detail:hover {
    background: #30485e;
}

.btn-edit {
    background: #23384d;
    color: #fff;
}

.btn-edit:hover {
    background: #1a2c3d;
}

.btn-form-print {
    background: #1a5657;
    color: #fff;
}

.btn-form-print:hover {
    background: #134244;
}

button.btn-form-print {
    font-family: inherit;
}

.btn-back {
    background: #58697a;
    color: #fff;
}

.btn-back:hover {
    background: #465564;
}

.btn-delete {
    background: #b42323;
    color: #fff;
}

.btn-delete:hover {
    background: #8f1b1b;
}

@media (max-width: 768px) {
    .detay-satir {
        grid-template-columns: 1fr;
    }

    .list-card {
        padding: 18px 14px;
        border-radius: 12px;
    }

    .page-top {
        flex-direction: column;
        align-items: stretch;
    }

    .page-top .btn-back {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    /* Detay / Düzenle: üstteki birden fazla buton mobilde alt alta tam genişlik */
    .page-top .action-links {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .page-top .action-links a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .page-top h1 {
        font-size: 22px;
        text-align: center;
    }

    .sil-blok {
        justify-content: stretch;
    }

    .sil-blok form {
        width: 100%;
    }

    .sil-blok .btn-delete {
        width: 100%;
        min-height: 48px;
        touch-action: manipulation;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form-submit {
        width: 100%;
    }

    .filter-toolbar {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .filter-toolbar-search {
        max-width: none;
    }

    .filter-toolbar-actions {
        padding-bottom: 0;
    }

    .btn-filter-submit {
        width: 100%;
        height: 48px;
    }

    .filter-toolbar-row {
        width: 100%;
    }

    .sayfalama {
        gap: 6px;
    }

    .sayfa-link {
        flex: 1 1 auto;
        min-width: calc(50% - 8px);
        font-size: 13px;
        padding: 10px 8px;
    }

    .kayit-kart-govde {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .kayit-kart-adsoyad {
        font-size: 17px;
    }
}

.hidden {
    display: none;
}

/* —— Birim yönetimi —— */
.birim-yonetim-kart,
.birim-liste-kart {
    max-width: 720px;
}

.birim-yonetim-aciklama {
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
    margin-bottom: 20px;
}

.birim-yonetim-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.birim-yonetim-link {
    display: block;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid #dfe6ee;
    background: #fafbfd;
    text-decoration: none;
    color: #0f172a;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.birim-yonetim-link:hover {
    border-color: #23384d;
    box-shadow: 0 4px 14px rgba(35, 56, 77, 0.08);
}

.birim-yonetim-link-baslik {
    display: block;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.birim-yonetim-link-detay {
    display: block;
    font-size: 13px;
    color: #64748b;
}

.birim-fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 16px 8px;
    margin-bottom: 20px;
}

.birim-fieldset:disabled {
    opacity: 0.65;
    pointer-events: none;
}

.birim-legend {
    padding: 0 8px;
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
}

.birim-yardim {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: -4px 0 14px;
}

.birim-kok-uyari {
    margin-bottom: 16px;
}

.birim-ara-form {
    margin-bottom: 20px;
}

.birim-bos-mesaj,
.birim-sonuc-sayisi {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
}

.birim-sonuc-listesi {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.birim-sonuc-kart {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff;
}

.birim-sonuc-baslik {
    font-weight: 700;
    color: #23384d;
    text-decoration: none;
    font-size: 15px;
}

.birim-sonuc-baslik:hover {
    text-decoration: underline;
}

.birim-sonuc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
}

.birim-sonuc-alt {
    align-items: center;
}

.birim-liste-sil-form {
    margin: 0;
    display: inline-flex;
}

.birim-liste-sil-btn {
    font-size: 12px;
    padding: 6px 12px;
    min-height: 34px;
}

.birim-sil-blok {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* —— Admin ortak üst menü (masaüstü + mobil / dokunma) —— */
.admin-nav {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 2000;
    background: linear-gradient(180deg, #1e3a52 0%, #152a3d 100%);
    color: #e2e8f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left));
    padding-top: max(12px, env(safe-area-inset-top));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.admin-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
}

.admin-nav-brand {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.06em;
    color: #fff;
    text-decoration: none;
    padding: 10px 4px 10px 0;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.12);
}

.admin-nav-brand:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-nav-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    min-width: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.15);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-nav-menu-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.admin-nav-menu-icon {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;
    height: 18px;
}

.admin-nav-menu-bar {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 1px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 720px) {
    .admin-nav-menu-icon {
        display: flex;
    }

    .admin-nav-menu-btn.is-active .admin-nav-menu-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .admin-nav-menu-btn.is-active .admin-nav-menu-bar:nth-child(2) {
        opacity: 0;
    }

    .admin-nav-menu-btn.is-active .admin-nav-menu-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

.admin-nav-panel {
    display: none;
}

.admin-nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.admin-nav-list li {
    margin: 0;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 10px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.12);
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.admin-nav-link.is-active {
    background: #fff;
    color: #152a3d;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.admin-nav-link.is-active:hover {
    background: #f8fafc;
    color: #0f172a;
}

@media (max-width: 720px) {
    .admin-nav-menu-btn {
        display: inline-flex;
        position: relative;
    }

    .admin-nav-panel.is-open {
        display: block;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .admin-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .admin-nav-list li {
        width: 100%;
    }

    .admin-nav-link {
        width: 100%;
        min-height: 48px;
        white-space: normal;
        line-height: 1.35;
    }
}

@media (min-width: 721px) {
    .admin-nav-inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 10px 16px;
    }

    .admin-nav-head {
        flex: 0 0 auto;
        min-height: 0;
    }

    .admin-nav-menu-btn {
        display: none !important;
    }

    .admin-nav-panel {
        display: flex !important;
        flex: 0 1 auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        border: 0;
        justify-content: center;
    }

    .admin-nav-list {
        flex: 0 1 auto;
        justify-content: center;
    }

}

@media (prefers-reduced-motion: reduce) {
    .admin-nav-link,
    .admin-nav-menu-btn,
    .admin-nav-menu-bar {
        transition: none;
    }
}

.admin-nav-link--cikis {
    color: #fecaca;
}

.admin-nav-link--cikis:hover {
    background: rgba(254, 202, 202, 0.15);
    color: #fff;
}

.yetkililer-sayfa-aciklama {
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 20px;
}

.yetkililer-sayfa-aciklama code {
    font-size: 13px;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
}

.yetkililer-bos {
    margin: 0;
    color: #94a3b8;
    font-size: 15px;
}

.yetkililer-tablo-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.yetkililer-tablo {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.yetkililer-tablo th,
.yetkililer-tablo td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.yetkililer-tablo th {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
    font-size: 13px;
}

.yetkililer-tablo tr:last-child td {
    border-bottom: none;
}

.birim-sabit-not {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
    margin: -4px 0 12px;
}

.select-sabit:disabled {
    opacity: 1;
    color: #334155;
    background-color: #f1f5f9;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

/* —— Halka açık form: yönetici girişi (yanlışlıkla tıklanmasın diye küçük dipnot) —— */
.admin-entry-hint {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #e8ecf0;
    text-align: center;
    font-size: 12px;
    line-height: 1.55;
    color: #94a3b8;
}

.admin-entry-hint-link {
    color: #64748b;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
}

.admin-entry-hint-link:hover {
    color: #334155;
}

.admin-entry-hint a:not(.admin-entry-hint-link) {
    color: #64748b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.admin-entry-hint a:not(.admin-entry-hint-link):hover {
    color: #334155;
}

/* —— Admin özet / istatistik —— */
.admin-ozet-kart {
    max-width: 960px;
}

.admin-ozet-karsilama {
    margin: -8px 0 20px;
    font-size: 15px;
    color: #475569;
}

.admin-istatistik-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.admin-stat-kutu {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 14px;
    text-align: center;
}

.admin-stat-sayi {
    display: block;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.2;
}

.admin-stat-etiket {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.35;
}

.admin-ozet-iki-sutun {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 16px;
}

.admin-ozet-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 16px;
}

.admin-ozet-panel-baslik {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.admin-ozet-panel-aciklama {
    margin: -6px 0 12px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

.admin-ozet-bos {
    margin: 0;
    font-size: 14px;
    color: #94a3b8;
}

.admin-ozet-liste {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-ozet-liste li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.admin-ozet-liste li:last-child {
    border-bottom: none;
}

.admin-ozet-liste-etiket {
    color: #334155;
    word-break: break-word;
}

.admin-ozet-liste-adet {
    font-weight: 700;
    color: #23384d;
    flex-shrink: 0;
}

.admin-ozet-altnot {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}