/* =====================================================================
   IŞIKLAR HOLDİNG A.Ş. - ETİK BİLDİRİM HATTI
   Etik Panel (yönetim arayüzü) stilleri

   app.css'in üzerine yüklenir; oradaki değişkenleri ve bileşenleri
   (buton, kart, form, rozet, tablo) aynen kullanır.

   İÇİNDEKİLER
     01  Panel yerleşimi
     02  Kenar menü
     03  Üst çubuk
     04  Giriş ekranı
     05  İstatistik kartları
     06  Filtre çubuğu
     07  Bildirim listesi
     08  Bildirim detayı
     09  Yan panel (aksiyonlar)
     10  Ayar formları
     11  Yönetim tabloları
     12  Grafikler
     13  Sayfalama
     14  Duyarlı tasarım
     ===================================================================== */


/* =====================================================================
   01  PANEL YERLEŞİMİ
   ===================================================================== */
body.panel-body {
    display: block;
    background: var(--gray-100);
}

.panel-layout {
    display: grid;
    grid-template-columns: 264px 1fr;
    min-height: 100vh;
}

.panel-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.panel-content {
    flex: 1;
    padding: 28px 32px 56px;
    max-width: 1500px;
    width: 100%;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.panel-head h1 { font-size: 1.5rem; margin: 0 0 4px; }
.panel-head .sub { color: var(--gray-500); font-size: .92rem; margin: 0; }


/* =====================================================================
   02  KENAR MENÜ
   ===================================================================== */
.panel-side {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, .78);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.side-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    color: #fff;
    text-decoration: none;
    flex: 0 0 auto;
}
.side-brand:hover { text-decoration: none; color: #fff; }
.side-brand img { height: 40px; max-width: 190px; object-fit: contain; }
.side-brand-icon {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    background: rgba(255, 255, 255, .13);
    border-radius: 9px;
    flex: 0 0 auto;
}

.side-nav { padding: 14px 12px; flex: 1; }

.side-group {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: rgba(255, 255, 255, .38);
    font-weight: 700;
    padding: 16px 12px 7px;
}
.side-group:first-child { padding-top: 4px; }

.side-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .75);
    font-size: .91rem;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 2px;
    transition: background .15s ease, color .15s ease;
}
.side-link:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    text-decoration: none;
}
.side-link.is-active {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}
.side-link .icon { width: 1.15em; height: 1.15em; opacity: .9; flex: 0 0 auto; }

/* Başlıksız menüde (kullanıcı) alt bağlantıları ayıran ince çizgi */
.side-sep { height: 1px; margin: 12px 6px 10px; background: rgba(255, 255, 255, .12); }

/* Üst çubuk: kullanıcı adının sağındaki kırmızı Çıkış Yap düğmesi */
.topbar-logout {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    font-size: .86rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    background: linear-gradient(180deg, #E5484D 0%, #C4262B 100%);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(196, 38, 43, .35), inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.topbar-logout:hover {
    color: #fff;
    text-decoration: none;
    background: linear-gradient(180deg, #F0575C 0%, #D32F34 100%);
    box-shadow: 0 4px 12px rgba(196, 38, 43, .5), inset 0 1px 0 rgba(255, 255, 255, .28);
    transform: translateY(-1px);
}
.topbar-logout:active { transform: translateY(0); }
.topbar-logout:focus-visible { outline: 3px solid rgba(196, 38, 43, .45); outline-offset: 2px; }
@media (max-width: 620px) { .topbar-logout span { display: none; } .topbar-logout { padding: 8px 10px; } }

/* Çıkış Yap: menüdeki diğer bağlantılardan ayrışan kırmızı düğme */
.side-link.side-logout {
    justify-content: center;
    margin: 12px 0 4px;
    padding: 11px 14px;
    color: #fff;
    font-weight: 700;
    letter-spacing: .02em;
    background: linear-gradient(180deg, #E5484D 0%, #C4262B 100%);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 2px 8px rgba(196, 38, 43, .45), inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.side-link.side-logout .icon { opacity: 1; }
.side-link.side-logout:hover {
    color: #fff;
    background: linear-gradient(180deg, #F0575C 0%, #D32F34 100%);
    box-shadow: 0 4px 14px rgba(196, 38, 43, .6), inset 0 1px 0 rgba(255, 255, 255, .28);
    transform: translateY(-1px);
}
.side-link.side-logout:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(196, 38, 43, .5); }
.side-link.side-logout:focus-visible { outline: 3px solid rgba(255, 255, 255, .85); outline-offset: 2px; }

.side-count {
    margin-left: auto;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 100px;
    min-width: 22px;
    text-align: center;
}
.side-link.is-active .side-count { background: rgba(0, 0, 0, .22); }
.side-count.is-alert { background: var(--danger); }

.side-foot {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .76rem;
    color: rgba(255, 255, 255, .45);
    flex: 0 0 auto;
}
.side-foot a { color: rgba(255, 255, 255, .7); }


/* =====================================================================
   03  ÜST ÇUBUK
   ===================================================================== */
.panel-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 32px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left  { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.side-toggle {
    display: none;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: 8px;
    color: var(--gray-700);
    cursor: pointer;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    background: var(--white);
    color: var(--gray-700);
    font-size: .87rem;
    text-decoration: none;
}
.user-chip:hover { border-color: var(--accent); text-decoration: none; color: var(--primary); }

.user-avatar {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    flex: 0 0 auto;
}
.user-meta { line-height: 1.2; min-width: 0; }
.user-name { font-weight: 600; display: block; }
.user-role { font-size: .72rem; color: var(--gray-500); display: block; }


/* =====================================================================
   04  GİRİŞ EKRANI
   ===================================================================== */
body.login-body {
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* 420px'te "Tüm giriş denemeleri..." uyarı metni iki satıra bölünüyordu.
   Gerçek tarayıcıda ölçülen metin genişliği ~375px; kartın 32px'lik
   iki yan boşluğuyla (64px) birlikte 460px tam olarak yetiyor —
   gereğinden fazla boşluk bırakmadan tek satıra sığıyor. */
.login-wrap { width: 100%; max-width: 460px; }

.login-brand {
    text-align: center;
    margin-bottom: 26px;
    color: #fff;
}
.login-brand img { height: 52px; max-width: 220px; object-fit: contain; margin-bottom: 12px; }
.login-brand-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 58px; height: 58px;
    background: rgba(255, 255, 255, .14);
    border-radius: 15px;
    margin-bottom: 14px;
}
.login-title { font-size: 1.2rem; font-weight: 650; color: #fff; }
.login-sub   { font-size: .88rem; color: rgba(255, 255, 255, .7); margin-top: 3px; }

.login-card {
    background: var(--white);
    border-radius: 14px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.login-foot {
    text-align: center;
    margin-top: 22px;
    font-size: .84rem;
    color: rgba(255, 255, 255, .6);
}
.login-foot a { color: rgba(255, 255, 255, .85); }

.code-digits {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    letter-spacing: .5em;
    text-align: center;
    text-indent: .5em;
    padding: 14px;
}


/* =====================================================================
   05  İSTATİSTİK KARTLARI
   ===================================================================== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.stat {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.stat:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}

.stat-icon {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border-radius: 11px;
    background: var(--gray-100);
    color: var(--gray-500);
    flex: 0 0 auto;
}
.stat-body { min-width: 0; }
.stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1.1; color: var(--gray-900); }
.stat-label { font-size: .82rem; color: var(--gray-500); margin-top: 3px; }

.stat-primary .stat-icon { background: var(--primary-soft); color: var(--primary); }
.stat-info    .stat-icon { background: var(--info-bg);     color: var(--info); }
.stat-warning .stat-icon { background: var(--warning-bg);  color: var(--warning); }
.stat-danger  .stat-icon { background: var(--danger-bg);   color: var(--danger); }
.stat-success .stat-icon { background: var(--success-bg);  color: var(--success); }

.stat-danger  .stat-value { color: var(--danger); }
.stat-warning .stat-value { color: var(--warning); }


/* =====================================================================
   06  FİLTRE ÇUBUĞU
   ===================================================================== */
.filter-bar {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 20px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 12px;
    align-items: end;
}

.filter-grid .label { font-size: .78rem; margin-bottom: 4px; color: var(--gray-500); font-weight: 600; }
.filter-grid .input,
.filter-grid .select { padding: 8px 11px; font-size: .88rem; border-radius: 7px; }
.filter-grid .select { background-position: right 9px center; background-size: 15px; padding-right: 32px; }

.filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-100);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 100px;
    background: var(--white);
    color: var(--gray-600);
    font-size: .83rem;
    font-weight: 550;
    text-decoration: none;
    white-space: nowrap;
}
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip .icon { width: .95em; height: .95em; }


/* =====================================================================
   07  BİLDİRİM LİSTESİ
   ===================================================================== */
.report-ref {
    font-family: var(--font-mono);
    font-weight: 650;
    color: var(--primary);
    white-space: nowrap;
}

.report-summary {
    color: var(--gray-600);
    font-size: .88rem;
    max-width: 44ch;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

.dot-unread {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--info);
    flex: 0 0 auto;
}

.priority-bar {
    display: inline-block;
    width: 4px;
    height: 22px;
    border-radius: 2px;
    vertical-align: middle;
}


/* =====================================================================
   08  BİLDİRİM DETAYI
   ===================================================================== */
.report-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 22px;
    align-items: start;
}

.detail-block {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 18px;
}
.detail-block > h2 {
    font-size: 1rem;
    margin: 0;
    padding: 16px 22px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 9px;
}
.detail-block-body { padding: 22px; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
}

.detail-item .detail-label {
    font-size: .73rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-400);
    font-weight: 650;
    margin-bottom: 3px;
}
.detail-item .detail-value {
    font-size: .93rem;
    color: var(--gray-800);
    word-break: break-word;
}
.detail-value.is-empty { color: var(--gray-400); font-style: italic; }

.detail-text {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: .94rem;
    line-height: 1.75;
    color: var(--gray-700);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 9px;
    padding: 16px 18px;
}

/* Özel dikkat gerektiren bildirim vurgusu (Madde 2) */

/* Kişi kartları */
.person-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.person-card {
    padding: 12px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 9px;
    background: var(--gray-50);
}
.person-card-name  { font-weight: 600; color: var(--gray-800); }
.person-card-title { font-size: .83rem; color: var(--gray-500); }

/* Zaman çizelgesi */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
    position: relative;
    padding: 0 0 18px 26px;
    margin: 0;
    border-left: 2px solid var(--gray-200);
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
    content: '';
    position: absolute;
    left: -6px; top: 4px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--gray-200);
}
.timeline-title { font-size: .9rem; font-weight: 600; color: var(--gray-800); }
.timeline-meta  { font-size: .8rem; color: var(--gray-400); }
.timeline-note  { font-size: .86rem; color: var(--gray-600); margin-top: 4px; }


/* =====================================================================
   09  YAN PANEL (AKSİYONLAR)
   ===================================================================== */
.side-panel { position: sticky; top: 84px; }

.action-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 16px;
}
.action-card h3 {
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--gray-500);
    margin: 0;
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-200);
}
.action-card-body { padding: 18px; }
.action-card-body .field { margin-bottom: 16px; }
.action-card-body .select,
.action-card-body .input { padding: 9px 12px; font-size: .9rem; }


/* =====================================================================
   10  AYAR FORMLARI
   ===================================================================== */
.settings-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 22px;
    align-items: start;
}

.settings-nav {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 8px;
    position: sticky;
    top: 84px;
}
.settings-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border-radius: 8px;
    color: var(--gray-600);
    font-size: .9rem;
    font-weight: 550;
    text-decoration: none;
    margin-bottom: 2px;
}
.settings-nav a:hover { background: var(--gray-100); color: var(--primary); text-decoration: none; }
.settings-nav a.is-active { background: var(--primary-soft); color: var(--primary); font-weight: 650; }

.setting-row {
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-100);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 26px;
    align-items: start;
}
.setting-row:last-child { border-bottom: 0; padding-bottom: 0; }
.setting-row:first-child { padding-top: 0; }

.setting-info .label { margin-bottom: 4px; }
.setting-info .help  { margin: 0; font-size: .84rem; }

.switch {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    user-select: none;
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
    width: 46px; height: 26px;
    background: var(--gray-300);
    border-radius: 100px;
    position: relative;
    transition: background .2s ease;
    flex: 0 0 auto;
}
.switch-track::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + .switch-track { background: var(--success); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--accent); outline-offset: 2px; }
.switch-label { font-size: .9rem; color: var(--gray-700); }

.color-field { display: flex; gap: 10px; align-items: center; }
.color-field input[type="color"] {
    width: 48px; height: 42px;
    padding: 3px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
}
.color-field .input { max-width: 140px; font-family: var(--font-mono); }


/* =====================================================================
   11  YÖNETİM TABLOLARI
   ===================================================================== */
.admin-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 22px;
    align-items: start;
}
.admin-form { position: sticky; top: 84px; }

.sort-handle { color: var(--gray-300); cursor: default; }

.tree-child td:first-child { padding-left: 42px; position: relative; }
.tree-child td:first-child::before {
    content: '';
    position: absolute;
    left: 24px; top: 0; bottom: 50%;
    width: 10px;
    border-left: 1px solid var(--gray-300);
    border-bottom: 1px solid var(--gray-300);
    border-bottom-left-radius: 4px;
}

.row-inactive { opacity: .55; }
.row-inactive td:first-child { border-left: 3px solid var(--gray-300); }

/* Pasif kullanıcı satırı: bilgiler soluk, "Aktif Et" düğmesi net kalır */
.row-passive td:not(.td-action) { opacity: .55; }
.row-passive td:first-child { border-left: 3px solid var(--gray-300); }

.color-dot {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 3px;
    vertical-align: -1px;
    border: 1px solid rgba(0,0,0,.1);
}

.system-badge {
    font-size: .7rem;
    padding: 2px 7px;
    background: var(--gray-100);
    color: var(--gray-500);
    border-radius: 4px;
    font-weight: 600;
}


/* =====================================================================
   12  GRAFİKLER
   Dış kütüphane kullanılmaz; saf CSS ile çizilir.
   ===================================================================== */
.bar-chart { display: flex; flex-direction: column; gap: 12px; }

.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.bar-label { font-size: .88rem; color: var(--gray-700); }
.bar-value { font-weight: 700; color: var(--gray-900); font-size: .95rem; min-width: 40px; text-align: right; }

.bar-track {
    grid-column: 1 / -1;
    height: 9px;
    background: var(--gray-100);
    border-radius: 5px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 5px;
    transition: width .4s ease;
    min-width: 3px;
}

/* Ana kategori + alt kategori katmanlı gösterim (İstatistik sayfası) */
.bar-group + .bar-group { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--gray-100); }
.bar-children {
    margin: 10px 0 0 6px;
    padding-left: 14px;
    border-left: 2px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bar-row-child .bar-label { font-size: .81rem; color: var(--gray-500); }
.bar-row-child .bar-value { font-size: .83rem; min-width: 30px; }
.bar-row-child .bar-track { height: 6px; }
.bar-row-child .bar-fill { background: var(--gray-400); }

/* Dönem seçici (Tüm Zamanlar / Yıllık / Aylık) */
.period-switch { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.period-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    background: #fff;
    color: var(--gray-600);
    font-size: .87rem;
    font-weight: 650;
    text-decoration: none;
}
.period-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.period-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Aylık sütun grafiği */
.column-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 170px;
    padding: 12px 0 0;
    overflow-x: auto;
}
.column-item {
    flex: 1 1 0;
    min-width: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    justify-content: flex-end;
}
.column-bar {
    width: 100%;
    max-width: 44px;
    background: var(--accent);
    border-radius: 5px 5px 0 0;
    min-height: 3px;
    position: relative;
    transition: background .15s ease;
}
.column-item:hover .column-bar { background: var(--primary); }
.column-count {
    font-size: .76rem;
    font-weight: 700;
    color: var(--gray-700);
}
.column-label {
    font-size: .68rem;
    color: var(--gray-400);
    white-space: nowrap;
    transform: rotate(-45deg);
    transform-origin: center;
    height: 26px;
}


/* =====================================================================
   12b  İSTATİSTİK SAYFASI — dairesel gösterge, donut + lejant, ilk 3 kartları
   Dış kütüphane kullanılmaz; daireler CSS conic-gradient ile çizilir.
   ===================================================================== */

/* Üstteki özet kartı: sol tarafta büyük dairesel gösterge, sağda metrikler */
.stats-hero { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.stats-hero-body { flex: 1 1 280px; min-width: 220px; }
.stats-hero-title { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin: 0 0 4px; }
.stats-hero-sub { font-size: .85rem; color: var(--gray-500); margin: 0 0 16px; }

.gauge {
    width: 128px; height: 128px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
}
.gauge-hole {
    width: 68%; height: 68%; border-radius: 50%;
    background: var(--white);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gauge-value { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); line-height: 1; }
.gauge-label { font-size: .67rem; color: var(--gray-500); margin-top: 4px; text-align: center; line-height: 1.3; }

.hero-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.hero-metric-label {
    font-size: .76rem; color: var(--gray-500); font-weight: 600;
    display: flex; align-items: center; gap: 6px; margin-bottom: 5px;
}
.hero-metric-value { font-size: .95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.hero-metric-bar { height: 7px; border-radius: 5px; background: var(--gray-100); overflow: hidden; }
.hero-metric-bar > span { display: block; height: 100%; border-radius: 5px; background: var(--success); }

/* Donut + lejant (örn. Duruma Göre) */
.donut-card { display: flex; align-items: center; gap: 16px; }
.donut {
    width: 108px; height: 108px; border-radius: 50%; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
}
.donut-hole {
    width: 62%; height: 62%; border-radius: 50%; background: var(--white);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.donut-total { font-size: 1.2rem; font-weight: 800; color: var(--gray-900); line-height: 1; }
.donut-total-label { font-size: .64rem; color: var(--gray-500); margin-top: 2px; }

.legend { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-width: 0; }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: .84rem; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.legend-label {
    flex: 1 1 auto; color: var(--gray-700); overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.legend-value { font-weight: 700; color: var(--gray-900); }

/* Alt "ilk 3" kartları */
.top3-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.top3-card {
    display: flex; align-items: center; gap: 12px; padding: 16px;
    border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white);
}
.top3-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.top3-name { font-weight: 650; font-size: .92rem; color: var(--gray-900); }
.top3-count { font-size: .78rem; color: var(--gray-500); margin-top: 1px; }


/* =====================================================================
   13  SAYFALAMA
   ===================================================================== */
.pagination {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 11px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    color: var(--gray-600);
    font-size: .89rem;
    font-weight: 550;
    text-decoration: none;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.pagination .is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .is-disabled { opacity: .4; pointer-events: none; }

.result-info {
    font-size: .86rem;
    color: var(--gray-500);
    text-align: center;
    margin-top: 10px;
}


/* =====================================================================
   14  DUYARLI TASARIM
   ===================================================================== */
@media (max-width: 1280px) {
    .report-layout  { grid-template-columns: 1fr 300px; }
    .admin-layout   { grid-template-columns: 1fr 330px; }
}

@media (max-width: 1100px) {
    .report-layout, .admin-layout, .settings-layout { grid-template-columns: 1fr; }
    .side-panel, .admin-form, .settings-nav { position: static; }

    .settings-nav { display: flex; gap: 4px; overflow-x: auto; padding: 8px; }
    .settings-nav a { white-space: nowrap; margin: 0; }
}

@media (max-width: 900px) {
    .panel-layout { grid-template-columns: 1fr; }

    .panel-side {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        width: 264px;
        z-index: 200;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: var(--shadow-lg);
    }
    .panel-side.is-open { transform: none; }

    .side-toggle { display: inline-flex; }

    .panel-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, .5);
        z-index: 199;
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }
    .panel-backdrop.is-open { opacity: 1; pointer-events: auto; }

    .panel-content { padding: 20px 18px 48px; }
    .panel-topbar  { padding: 10px 18px; }

    .setting-row { grid-template-columns: 1fr; gap: 10px; }

    .user-meta { display: none; }
    .user-chip { padding: 5px; }
}

@media (max-width: 620px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat { padding: 14px; flex-direction: column; gap: 8px; }
    .stat-value { font-size: 1.4rem; }

    .filter-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }

    .stats-hero { flex-direction: column; align-items: flex-start; }
    .donut-card { flex-direction: column; align-items: flex-start; }
}


/* =====================================================================
   GÜNCELLEME NOTLARI (sürüm geçmişi)
   Tür renkleri: MAJOR kırmızı · MINOR mavi · PATCH yeşil
   ===================================================================== */

/* Kenar menü altındaki sürüm etiketi */
.side-version {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 9px;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
}
a.side-version:hover { color: #fff; background: rgba(255, 255, 255, .16); text-decoration: none; }

/* ---- Mevcut sürüm kartı ---- */
.cl-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 30px 32px;
    margin-bottom: 20px;
    color: #fff;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 92% -10%, rgba(255, 255, 255, .14), transparent 45%),
        linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.cl-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}
.cl-version {
    font-size: 3.6rem;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    margin: 6px 0 12px;
}
.cl-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}
.cl-hero-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    color: rgba(255, 255, 255, .78);
}
.cl-hero-summary {
    margin: 14px 0 0;
    max-width: 52ch;
    font-size: .95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .88);
}

/* Sürüm numarası anatomisi: 1 . 1 . 0 */
.cl-anatomy {
    display: flex;
    align-items: stretch;
    gap: 6px;
}
.cl-dot {
    align-self: flex-start;
    margin-top: 10px;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, .35);
}
.cl-part {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px 12px 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-top: 3px solid var(--part);
    border-radius: 10px;
}
.cl-part-major { --part: #F87171; }
.cl-part-minor { --part: #60A5FA; }
.cl-part-patch { --part: #34D399; }
.cl-part-num {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.cl-part-label {
    margin: 6px 0 6px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    color: var(--part);
}
.cl-part-desc {
    font-size: .74rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, .72);
}

/* ---- Etiketler (pill) ---- */
.cl-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .06em;
    border-radius: 999px;
    white-space: nowrap;
}
.cl-pill .icon { width: .95em; height: .95em; }
.cl-pill-major    { background: var(--danger);  color: #fff; }
.cl-pill-minor    { background: var(--info);    color: #fff; }
.cl-pill-patch    { background: var(--success); color: #fff; }
.cl-pill-ghost    { background: var(--gray-100); color: var(--gray-600); font-weight: 600; letter-spacing: 0; }
.cl-hero .cl-pill-ghost { background: rgba(255, 255, 255, .14); color: #fff; }
.cl-pill-baseline { background: #FEF3C7; color: #92400E; }
.cl-pill-now      { background: var(--primary-soft); color: var(--primary); }

/* ---- Araç çubuğu ---- */
.cl-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 18px;
}
.cl-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    font: inherit;
    font-size: .84rem;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
}
.cl-chip:hover { border-color: var(--gray-300); color: var(--gray-800); }
.cl-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cl-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-400); }
.cl-chip-major .cl-chip-dot { background: var(--danger); }
.cl-chip-minor .cl-chip-dot { background: var(--info); }
.cl-chip-patch .cl-chip-dot { background: var(--success); }
.cl-chip-count {
    min-width: 20px;
    padding: 0 6px;
    font-size: .74rem;
    text-align: center;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: 999px;
}
.cl-chip.is-active .cl-chip-count { background: rgba(255, 255, 255, .2); color: #fff; }
.cl-tools { display: flex; align-items: center; gap: 10px; }
.cl-tools .input { width: 220px; }

/* ---- Zaman çizelgesi ---- */
.rel-list {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 34px;
}
.rel-list::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(var(--gray-300), var(--gray-200));
    border-radius: 2px;
}
.rel { position: relative; margin-bottom: 14px; --rel: var(--gray-400); }
.rel[hidden] { display: none; }
.rel-major { --rel: var(--danger); }
.rel-minor { --rel: var(--info); }
.rel-patch { --rel: var(--success); }

.rel-dot {
    position: absolute;
    left: -34px;
    top: 19px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--white);
    border: 5px solid var(--rel);
    box-shadow: 0 0 0 4px var(--surface);
}
.rel-baseline .rel-dot { background: var(--rel); }

.rel-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--rel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.rel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 15px 20px;
    cursor: pointer;
    list-style: none;
}
.rel-head::-webkit-details-marker { display: none; }
.rel-head:hover { background: var(--gray-50); border-radius: var(--radius); }
.rel-ver {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--gray-900);
    font-variant-numeric: tabular-nums;
}
.rel-date { font-size: .84rem; color: var(--gray-500); }
.rel-counts { display: inline-flex; gap: 6px; margin-left: auto; }
.cnt {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 8px 1px 6px;
    font-size: .76rem;
    font-weight: 700;
    border-radius: 999px;
}
.cnt-added   { background: var(--success-bg); color: #065F46; }
.cnt-changed { background: var(--info-bg);    color: #1E40AF; }
.cnt-fixed   { background: var(--warning-bg); color: #92400E; }
.cnt-removed { background: var(--danger-bg);  color: #991B1B; }
.rel-chev { display: inline-flex; color: var(--gray-400); transition: transform .2s; }
.rel-card[open] .rel-chev { transform: rotate(180deg); }

.rel-body { padding: 4px 22px 20px; border-top: 1px dashed var(--gray-200); }
.rel-summary {
    margin: 14px 0 6px;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--gray-800);
}
.rel-path {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 6px;
    padding: 3px 12px;
    font-family: var(--font-mono);
    font-size: .78rem;
    color: var(--gray-500);
    background: var(--gray-100);
    border-radius: 999px;
}
.rel-path strong { color: var(--gray-900); }

/* Değişiklik listesi: tek sütun, her satırda renkli etiket */
.chg-group { margin-top: 16px; }
.chg-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.chg-title-added   { color: #047857; }
.chg-title-changed { color: #1D4ED8; }
.chg-title-fixed   { color: #B45309; }
.chg-title-removed { color: #B91C1C; }
.chg-list { list-style: none; margin: 0; padding: 0; }
.chg {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: .92rem;
    line-height: 1.5;
}
.chg:last-child { border-bottom: 0; }
.chg-tag {
    flex: 0 0 92px;
    margin-top: 2px;
    padding: 1px 0;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: center;
    border-radius: 5px;
}
.chg-added   .chg-tag { background: var(--success-bg); color: #065F46; }
.chg-changed .chg-tag { background: var(--info-bg);    color: #1E40AF; }
.chg-fixed   .chg-tag { background: var(--warning-bg); color: #92400E; }
.chg-removed .chg-tag { background: var(--danger-bg);  color: #991B1B; }
.chg-text { flex: 1 1 auto; min-width: 0; color: var(--gray-700); }

.cl-empty {
    padding: 36px 20px;
    text-align: center;
    color: var(--gray-500);
    background: var(--white);
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius);
}
.cl-empty p { margin: 8px 0 0; }
.cl-empty[hidden] { display: none; }

@media (max-width: 900px) {
    .cl-hero { grid-template-columns: 1fr; padding: 24px 22px; }
    .cl-version { font-size: 3rem; }
}
@media (max-width: 620px) {
    .rel-list { padding-left: 26px; }
    .rel-dot { left: -26px; width: 18px; height: 18px; border-width: 4px; }
    .rel-list::before { left: 8px; }
    .rel-counts { margin-left: 0; }
    .rel-chev { margin-left: auto; }
    .cl-tools { width: 100%; }
    .cl-tools .input { flex: 1 1 auto; width: auto; min-width: 0; }
    .chg { flex-direction: column; gap: 4px; }
    .chg-tag { flex: 0 0 auto; padding: 1px 8px; }
    .cl-part-desc { display: none; }
}


/* =====================================================================
   YAZDIRMA
   ===================================================================== */
@media print {
    .panel-side, .panel-topbar, .side-panel, .filter-bar,
    .pagination, .no-print, .action-card { display: none !important; }

    .panel-layout  { display: block; }
    .panel-content { padding: 0; max-width: 100%; }
    .report-layout { display: block; }

    .detail-block { border: 1px solid #999 !important; break-inside: avoid; }
    body.panel-body { background: #fff; }
}
