/*
 * Arayüz Tabler şablonudur (assets/vendor/tabler). Burada yalnızca şablonda karşılığı
 * olmayan birkaç küçük ekleme durur; renk/boşluk/bileşen görünümü Tabler'dan gelir.
 */

/* Inter (yerel) — Tabler demosunun kullandığı yazı tipi */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(vendor/inter/inter-latin-ext-wght-normal.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(vendor/inter/inter-latin-wght-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --tblr-font-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    font-feature-settings: 'cv03', 'cv04', 'cv11';
}

/* Tabler ikon yazı tipi için ölçüler (şablon SVG ikon bekler) */
.nav-link-icon .ti,
.navbar .nav-link > .ti {
    font-size: 1.25rem;
    line-height: 1;
}

.btn .ti {
    font-size: 1.125rem;
    line-height: 1;
    margin: 0 0.4rem 0 -0.15rem;
}

.btn-icon .ti {
    margin: 0;
}

.dropdown-item-icon.ti {
    font-size: 1.125rem;
    width: auto;
    height: auto;
}

.alert-icon.ti {
    font-size: 1.5rem;
    line-height: 1;
    width: auto;
    height: auto;
}

.input-icon-addon .ti {
    font-size: 1.125rem;
}

.confirm-icon {
    font-size: 3rem;
    line-height: 1;
}

.avatar .ti {
    font-size: 1.125rem;
}

/* Telefonda koyu üst çubuktaki hesap avatarı okunaklı olsun */
.navbar[data-bs-theme='dark'] .avatar {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.14);
}

.page-link .ti {
    font-size: 1rem;
    line-height: 1;
}

/* Marka */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand:hover {
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--tblr-border-radius);
    background: var(--tblr-primary);
    color: #fff;
    font-size: 1.25rem;
}

.brand-sub {
    font-weight: 500;
    opacity: 0.65;
}

/* Tablolar */
.table .num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Sıralama başlığı bağlantı olarak kullanılıyor (Tabler'da düğme) */
a.table-sort,
a.table-sort:hover {
    text-decoration: none;
    white-space: nowrap;
}

.table .note-cell {
    max-width: 22rem;
    min-width: 12rem;
}

.table .warn {
    color: var(--tblr-orange);
}

/* Kullanıcı adı ile kaynak rozeti masaüstünde aynı satırda kalır */
@media (min-width: 768px) {
    .cust-line {
        white-space: nowrap;
    }
}

/* Yönetici listesi: toplu atama çubuğu kaydırırken üstte kalır */
.bulk-bar {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--tblr-bg-surface);
    border-radius: var(--tblr-card-border-radius) var(--tblr-card-border-radius) 0 0;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bulk-bar .pick-n {
    width: 11rem;
}

textarea.paste {
    font-family: var(--tblr-font-monospace);
    font-size: 0.8125rem;
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
}

/* ---- Genel bakış: günlük FTD grafiği (yığılmış sütun; renkler iki temada ayrı ayrı doğrulandı) ---- */
.ftd-chart,
.legend-key {
    --series-aff: #2a78d6;
    --series-total: #eb6834;
}

body[data-bs-theme='dark'] .ftd-chart,
body[data-bs-theme='dark'] .legend-key {
    --series-aff: #3987e5;
    --series-total: #d95926;
}

.ftd-chart {
    padding-left: 2.25rem;
}

.ftd-plot {
    position: relative;
    height: 290px;
}

.ftd-grid-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid var(--tblr-border-color);
}

.ftd-grid-line span {
    position: absolute;
    left: -2.25rem;
    top: -0.6em;
    width: 1.75rem;
    text-align: right;
    font-size: 0.6875rem;
    line-height: 1;
    color: var(--tblr-secondary);
    font-variant-numeric: tabular-nums;
}

.ftd-cols {
    position: absolute;
    inset: 0;
    display: flex;
}

/* Sütunun tamamı ipucu hedefidir (çubuktan büyük) */
.ftd-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 2px;
    border-radius: 4px 4px 0 0;
    outline: 0;
}

.ftd-col:hover,
.ftd-col:focus-visible {
    background: rgba(var(--tblr-secondary-rgb), 0.1);
}

.ftd-seg {
    flex: none;
    width: min(24px, 64%);
    min-height: 2px;
}

.ftd-seg.aff {
    background: var(--series-aff);
}

.ftd-seg.total {
    background: var(--series-total);
}

.ftd-seg.top {
    border-radius: 4px 4px 0 0;
}

.ftd-x {
    display: flex;
    height: 1.25rem;
    margin-top: 0.375rem;
}

.ftd-x span {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
}

.ftd-x b {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 400;
    font-size: 0.6875rem;
    color: var(--tblr-secondary);
    white-space: nowrap;
}

.legend-key {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--tblr-secondary);
}

.legend-key i {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 2px;
}

.legend-key i.aff {
    background: var(--series-aff);
}

.legend-key i.total {
    background: var(--series-total);
}

/* Genel bakış: durum satırları (etiket · çubuk · sayı) */
.stat-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.3rem 0;
    color: inherit;
    text-decoration: none;
}

.stat-row:hover {
    color: inherit;
    text-decoration: none;
}

.stat-row:hover .stat-row-label {
    text-decoration: underline;
}

.stat-row-label {
    flex: 0 0 8.5rem;
}

.stat-row-value {
    flex: 0 0 3rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--tblr-secondary);
}

.table .pct {
    flex: 0 0 2.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Koyu temada "dark" rozet okunmuyor */
body[data-bs-theme='dark'] .bg-dark-lt {
    color: var(--tblr-body-color) !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

@media (max-width: 767.98px) {
    .bulk-bar {
        position: static;
    }
}

/* Slack doğrulama kodu alanı */
.otp-input { font-size: 1.5rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }

/* Kullanım kılavuzu: içindekiler geniş ekranda yerinde kalır, çapalar üst çubuğun altında durur */
@media (min-width: 992px) {
    .help-toc { position: sticky; top: 1rem; }
}
.card[id] { scroll-margin-top: 1rem; }
