/* Aksoy Muhasebe demo — derlenmiş Tailwind temasını tamamlayan küçük düzen katmanı.
   Yalnızca düzen/responsive/yardımcı sınıflar; tema renkleri index-i1PaS4Jn.css'ten gelir. */

/* ---- V2: tema paleti (tek palet, açık/koyu) ----
   Light palet varsayılandır; koyu palet ya `html[data-theme="dark"]` ile (kullanıcı seçimi,
   `v2.theme` cookie'si) ya da cookie yokken `prefers-color-scheme: dark` ile uygulanır.
   Böylece sidebar ve içerik her zaman AYNI moddadır: melez görünüm oluşmaz. */
:root,
html[data-theme="light"] {
    --sidebar-w: 16rem;

    /* Shell satır yüksekliği: brand paneli ve topbar AYNI sabit değeri kullanır.
       demo-ilk: marka satırı `h-16`, topbar `h-16` → 4rem = 64px. */
    --v2-shell-row-h: 64px;

    --v2-bg: #f1f5f9;
    --v2-surface: #fff;
    --v2-surface-2: #f8fafc;
    --v2-ink: #0f172a;
    --v2-body: #334155;
    --v2-muted: #64748b;
    --v2-line: #e2e8f0;
    --v2-sidebar-bg: #fff;
    /* Light modda menü metni KOYU tutulur: beyaz sidebar üzerinde yüksek kontrast (slate-800/900). */
    --v2-sidebar-ink: #1e293b;
    --v2-sidebar-line: #e2e8f0;
    --v2-topbar: #fff;
    --v2-input-bg: #fff;
    --v2-hover: #f1f5f9;
    --v2-nav-hover: rgba(15, 23, 42, .06);
    --v2-nav-hover-ink: #0f172a;
    /* demo-ilk menü metni `text-slate-600`, ikonu `text-slate-400`, grup başlığı `text-slate-400`. */
    --v2-nav-ink: #475569;
    --v2-nav-icon: #94a3b8;
    --v2-nav-group-title: #94a3b8;
    --v2-tab-active: #0f172a;

    --v2-ok-bg: #ecfdf5;
    --v2-ok-ink: #047857;
    --v2-warn-bg: #fffbeb;
    --v2-warn-ink: #b45309;
    --v2-danger-bg: #fff1f2;
    --v2-danger-ink: #be123c;
    --v2-info-bg: #eef2ff;
    --v2-info-ink: #4338ca;
    --v2-muted-bg: #f1f5f9;
    --v2-muted-ink: #475569;
}

html[data-theme="dark"] {
    --v2-bg: #0b1020;
    --v2-surface: #131a2b;
    --v2-surface-2: #1a2336;
    --v2-ink: #e2e8f0;
    --v2-body: #cbd5e1;
    --v2-muted: #94a3b8;
    --v2-line: #243049;
    --v2-sidebar-bg: #0f172a;
    --v2-sidebar-ink: #cbd5e1;
    --v2-sidebar-line: #1e293b;
    --v2-topbar: #111827;
    --v2-input-bg: #1a2336;
    --v2-hover: #1a2336;
    --v2-nav-hover: rgba(255, 255, 255, .06);
    --v2-nav-hover-ink: #fff;
    --v2-nav-ink: #cbd5e1;
    --v2-nav-icon: #94a3b8;
    --v2-nav-group-title: #64748b;
    --v2-tab-active: #334155;

    --v2-ok-bg: rgba(16, 185, 129, .16);
    --v2-ok-ink: #6ee7b7;
    --v2-warn-bg: rgba(245, 158, 11, .16);
    --v2-warn-ink: #fcd34d;
    --v2-danger-bg: rgba(244, 63, 94, .16);
    --v2-danger-ink: #fda4af;
    --v2-info-bg: rgba(99, 102, 241, .18);
    --v2-info-ink: #c7d2fe;
    --v2-muted-bg: rgba(148, 163, 184, .16);
    --v2-muted-ink: #cbd5e1;
}

/* Cookie yokken sistem tercihi: attribute yazılmadığında koyu palet devreye girer. */
@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) {
        --v2-bg: #0b1020;
        --v2-surface: #131a2b;
        --v2-surface-2: #1a2336;
        --v2-ink: #e2e8f0;
        --v2-body: #cbd5e1;
        --v2-muted: #94a3b8;
        --v2-line: #243049;
        --v2-sidebar-bg: #0f172a;
        --v2-sidebar-ink: #cbd5e1;
        --v2-sidebar-line: #1e293b;
        --v2-topbar: #111827;
        --v2-input-bg: #1a2336;
        --v2-hover: #1a2336;
        --v2-nav-hover: rgba(255, 255, 255, .06);
        --v2-nav-hover-ink: #fff;
        --v2-nav-ink: #cbd5e1;
        --v2-nav-icon: #94a3b8;
        --v2-nav-group-title: #64748b;
        --v2-tab-active: #334155;

        --v2-ok-bg: rgba(16, 185, 129, .16);
        --v2-ok-ink: #6ee7b7;
        --v2-warn-bg: rgba(245, 158, 11, .16);
        --v2-warn-ink: #fcd34d;
        --v2-danger-bg: rgba(244, 63, 94, .16);
        --v2-danger-ink: #fda4af;
        --v2-info-bg: rgba(99, 102, 241, .18);
        --v2-info-ink: #c7d2fe;
        --v2-muted-bg: rgba(148, 163, 184, .16);
        --v2-muted-ink: #cbd5e1;
    }
}

/* Form kontrolleri ve kaydırma çubukları da seçili moda dönsün (`data-theme` ile birlikte). */
/* Inter — demo-ilk'in kullandığı fontun yerel (CDN'siz) kopyası. Latin + Latin-ext
   değişken font dosyaları wwwroot/v2/fonts altında; görsel eşleşme için 400–800 aralığı. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/inter-latin-ext.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-20C4, U+2113, U+2C60-2C7F,
        U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/inter-latin.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;
}

html {
    color-scheme: light dark;
}

html[data-theme="light"] {
    color-scheme: light;
}

html[data-theme="dark"] {
    color-scheme: dark;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--v2-bg);
    color: var(--v2-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

#root {
    min-height: 100vh;
}

/* ---- kabuk ---- */
.shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    background: var(--v2-sidebar-bg);
    color: var(--v2-sidebar-ink);
    border-right: 1px solid var(--v2-sidebar-line);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    transition: width .24s ease, flex-basis .24s ease;
}

@media (prefers-reduced-motion: reduce) {
    .sidebar {
        transition: none;
    }
}

.main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.content {
    padding: 1.5rem;
}

/* ---- V2: içerik dikey ritmi ----
   .content altında art arda gelen bloklar (kart, filtre çubuğu, uyarı, grup) birbirine yapışmaz:
   aradaki boşluk 1.25rem'dir — detay sayfalarındaki .v2-detail-stack ile aynı ölçü. Sayfaların
   kendi alt boşlukları (ör. .v2-page-head margin-bottom) kenar boşluğu çökmesiyle korunur. */
.content>*+* {
    margin-top: 1.25rem;
}

/* ---- menü ----
   demo-ilk menü öğesi: `flex items-center rounded-xl text-sm font-medium` + `gap-3 px-3 py-2.5`;
   metin `text-slate-600` (#475569), ikon 18×18 lucide `text-slate-400` (#94a3b8).
   Hover ve aktif renkleri mevcut görünümünde bırakılmıştır. */
.nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .625rem .75rem;
    border-radius: .75rem;
    color: var(--v2-nav-ink);
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.nav-link:hover {
    background: var(--v2-nav-hover);
    color: var(--v2-nav-hover-ink);
}

.nav-link.active {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    color: #fff;
}

/* İkon rengi demo-ilk ile aynı token'dan gelir; hover/aktif durumda bağlantının rengini izler. */
.nav-link .menu-icon svg {
    color: var(--v2-nav-icon);
}

/* Excel'de takip edilen işin web karşılığı rozeti: başlık metninin hemen sağında, sabit yeşil.
   Açık/koyu temada aynı kalır; başlık taşarsa ikon kaymaz (flex-shrink: 0) ve satır yüksekliğini büyütmez. */
.v2-nav__excel-badge {
    flex: 0 0 auto;
    margin-left: -.4rem;
    vertical-align: middle;
    opacity: .85;
}

.nav-link:hover .menu-icon svg,
.nav-link.active .menu-icon svg {
    color: inherit;
}

/* demo-ilk grup başlığı: `text-[10px] font-bold uppercase tracking-[0.14em] text-slate-400`. */
.nav-group-label {
    font-size: .625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--v2-nav-group-title);
    padding: 0 .75rem;
    margin: 1.1rem 0 .35rem;
}

.badge-count {
    margin-left: auto;
    font-size: .68rem;
    font-weight: 700;
    background: var(--v2-nav-hover);
    color: var(--v2-sidebar-ink);
    padding: .1rem .4rem;
    border-radius: 9999px;
}

/* ---- marka ---- */
.gradient-brand {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.gradient-soft {
    background: linear-gradient(135deg, rgba(79, 70, 229, .10), rgba(124, 58, 237, .10));
}

/* ---- çekmece (mobil) ---- */
.scrim {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .5);
    z-index: 30;
    display: none;
}

.scrim[data-open="true"] {
    display: block;
}

@media (max-width: 1023px) {
    .sidebar {
        position: fixed;
        z-index: 40;
        top: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-100%);
        transition: transform .25s ease;
    }

    .sidebar[data-open="true"] {
        transform: translateX(0);
    }

    .content {
        padding: 1rem;
    }
}

/* ---- yardımcılar ---- */
.tnum {
    font-variant-numeric: tabular-nums;
}

.mono {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
}

.scroll-thin::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.scroll-thin::-webkit-scrollbar-thumb {
    background: var(--v2-line);
    border-radius: 8px;
}

.scroll-thin::-webkit-scrollbar-track {
    background: transparent;
}

.hide-native-select {
    appearance: none;
    -webkit-appearance: none;
}

/* İnce destek sınıfları (tema bu utility'leri içermiyorsa görünüm bozulmasın). */
.grid-kpi {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 1280px) {
    .grid-kpi {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 767px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}

.flex-basic {
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Yatay kaydırılabilir tablo kabı */
.table-wrap {
    overflow-x: auto;
}

/* Basit çubuk grafik */
.bar-track {
    background: var(--v2-line);
    border-radius: 9999px;
    height: .5rem;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
}

@media print {
    .no-print {
        display: none !important;
    }

    .sidebar,
    .topbar {
        display: none !important;
    }

    body {
        background: #fff;
    }
}

/* ---- V2: platform menüsü (.shell-menu) -> demo .nav-link görünümü ----
   Menü dinamik kalır: MenuViewComponent'in ürettiği .shell-menu yapısı bu katmanla demo sidebar'ın
   görünümüne çevrilir. Böylece yetkiye göre menü sunucuda üretilmeye devam eder. */
.v2-nav .shell-menu {
    display: block;
    margin: 0;
    padding: 0;
}

.v2-nav .shell-menu+.shell-menu {
    margin-top: .5rem;
}

.v2-nav .shell-menu-group-title {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--v2-nav-group-title);
    padding: 0 .75rem;
    margin: 1.1rem 0 .35rem;
    font-weight: 600;
}

.v2-nav .shell-menu-items,
.v2-nav .shell-menu-subitems {
    list-style: none;
    margin: 0;
    padding: 0;
}

.v2-nav .shell-menu-item>a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .75rem;
    border-radius: .6rem;
    color: var(--v2-sidebar-ink);
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .15s, color .15s;
}

.v2-nav .shell-menu-item>a:hover {
    background: var(--v2-nav-hover);
    color: var(--v2-nav-hover-ink);
}

/* Seçili öğe: modeldeki IsActive (`_MenuNode` → aria-current="page") bu sınıfı yazar. */
.v2-nav .shell-menu-item>a.active {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    color: #fff;
    font-weight: 600;
}

.v2-nav .shell-menu-item>a.active .menu-icon {
    opacity: 1;
}

.v2-nav .shell-menu-subitems .shell-menu-item>a {
    padding-left: 1.6rem;
    font-size: .82rem;
}

.v2-nav .shell-menu-item.is-label>span {
    display: block;
    padding: .45rem .75rem;
    color: var(--v2-muted);
    font-size: .8rem;
}

.v2-nav .shell-menu-separator {
    border-top: 1px solid var(--v2-sidebar-line);
    margin: .5rem 0;
}

/* ---- V2: menü ikonları (_MenuIcon partial) ----
   Paylaşılan `_MenuNode` ikonu `hidden` bir sarmalayıcı içinde basar: ikon seti/`menu-icon` kuralı olmayan
   diğer shell'lerde tarayıcının kendi `[hidden]` kuralı gizler, hiçbir shell'in CSS'i değişmez. Yalnız V2
   katmanı burada açar; böylece ikonlar sadece /v2 kenar çubuğunda görünür. */
.v2-nav .menu-icon {
    display: none;
}

.v2-nav .menu-icon[hidden] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    opacity: 1;
}

/* demo-ilk ikon boyası: `text-slate-400` (aktif bağlantıda bağlantı rengi). */
.v2-nav .menu-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    color: var(--v2-nav-icon);
}

.v2-nav .shell-menu-item>a.active .menu-icon svg {
    color: inherit;
}

.v2-nav .shell-menu-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Kenar çubuğu öğe yazısı (`_V2Nav` → .v2-nav-text): panel genişliğine sığmayan başlık ALT SATIRA GEÇMEZ,
   tek satırda kalır ve sonu "…" ile kırpılır; tamamı öğenin `title` ipucunda görünür (owner rule). */
.v2-nav .v2-nav-text {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- V2: durum rozetleri (derlenmiş demoda .badge sınıfı yok) ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .15rem .55rem;
    border-radius: 9999px;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.25;
}

.badge-ok {
    background: var(--v2-ok-bg);
    color: var(--v2-ok-ink);
}

.badge-off {
    background: var(--v2-muted-bg);
    color: var(--v2-muted-ink);
}

/* ---- V2: tablo zebra deseni (derlenmiş temada odd:bg-slate-50 yoksa da korunur) ---- */
.table tbody tr:nth-child(odd) {
    background: var(--v2-surface-2);
}

/* ---- V2: derlenmiş demoda bulunmayan, V2 görünümlerinin kullandığı utility'ler ----
   Değerler demo temasının kendi ölçeğinden alınmıştır (Tailwind varsayılanı), böylece login/kart/
   tablo markup'ı demo ile sınıf sınıf aynı kalırken eksik utility'ler yüzünden görünüm bozulmaz. */
.mb-1 {
    margin-bottom: .25rem;
}

.mb-3 {
    margin-bottom: .75rem;
}

.mr-3 {
    margin-right: .75rem;
}

.rounded {
    border-radius: .25rem;
}

.border-0 {
    border-width: 0;
}

.bg-transparent {
    background-color: transparent;
}

.outline-none {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, .1);
}

.hover\:opacity-95:hover {
    opacity: .95;
}

.odd\:bg-slate-50:nth-child(odd) {
    background-color: var(--v2-surface-2);
}

@media (min-width: 640px) {
    .sm\:inline {
        display: inline;
    }
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }
}

/* ---- V2: rapor vitrin ekranı yardımcıları ---- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .6rem;
    border-radius: .6rem;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.chip-info {
    background: var(--v2-info-bg);
    color: var(--v2-info-ink);
}

.chip-ok {
    background: var(--v2-ok-bg);
    color: var(--v2-ok-ink);
}

.chip-warn {
    background: var(--v2-warn-bg);
    color: var(--v2-warn-ink);
}

.chip-muted {
    background: var(--v2-muted-bg);
    color: var(--v2-muted-ink);
}

.badge-warn {
    background: var(--v2-warn-bg);
    color: var(--v2-warn-ink);
}

.badge-late {
    background: var(--v2-danger-bg);
    color: var(--v2-danger-ink);
}

.badge-demo {
    background: var(--v2-info-bg);
    color: var(--v2-info-ink);
}

.bar-track {
    min-width: 0;
}

.bar-track-tall {
    height: 100%;
}

.donut {
    width: 8.5rem;
    height: 8.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-hole {
    width: 5.6rem;
    height: 5.6rem;
    border-radius: 9999px;
    background: var(--v2-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* ---- V2: kabuk parçaları (topbar, kart, tablo, form) ---- */
.topbar {
    background: var(--v2-topbar);
    border-bottom: 1px solid var(--v2-line);
}

.card {
    background: var(--v2-surface);
    border-color: var(--v2-line);
}

/* Kart köşeleri: kartın dolgulu (.v2-form) olmayan hâlinde başlık şeridi üst köşeleri, son tablo
   kabı alt köşeleri kartın yuvarlatılmış köşesinden taşmaz. (Dolgulu form kartlarında şerit zaten
   kartın içine gömülüdür, dokunulmaz.) */
.card:not(.v2-form)>.v2-card-head:first-child {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.card:not(.v2-form)>.table-wrap:last-child {
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.table-th {
    color: var(--v2-muted);
}

.table-td {
    color: var(--v2-body);
}

.input-base {
    background-color: var(--v2-input-bg);
    border-color: var(--v2-line);
    color: var(--v2-ink);
}

.input-base::placeholder {
    color: var(--v2-nav-icon);
}

.input-base:focus::placeholder {
    opacity: 0;
}

.label-base {
    color: var(--v2-muted);
}

/* ---- V2: modern onay kutusu (checkbox) ----
   Native kutuyu görünmez yapıp marka renginde (indigo) yuvarlatılmış bir kutu çizer; onay işareti
   saf CSS ile input::after üzerine konur (SVG/JS yok, D10). `<label class="v2-check">` içinde
   `<input type="checkbox">` + `<span>metin</span>` kalıbı kullanılır. */
.v2-check {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    cursor: pointer;
    user-select: none;
    color: var(--v2-body);
    font-size: .9rem;
}

.v2-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    flex: 0 0 auto;
    position: relative;
    border: 1.5px solid var(--v2-line);
    border-radius: .3rem;
    background: var(--v2-input-bg);
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.v2-check input[type="checkbox"]:checked {
    background: #4f46e5;
    border-color: #4f46e5;
}

.v2-check input[type="checkbox"]::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 46%;
    width: .28rem;
    height: .5rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    transition: transform .12s ease;
}

.v2-check input[type="checkbox"]:checked::after {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.v2-check input[type="checkbox"]:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.pager {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.pager a {
    border: 1px solid var(--v2-line);
    background: var(--v2-surface);
    color: var(--v2-body);
    border-radius: .5rem;
    padding: .35rem .65rem;
    font-size: .85rem;
    text-decoration: none;
}

/* ---- V2: liste sayfalama — ortak _V2Pager bileşeni ----
   Tek satır: solda "Toplam N kayıt", sağda « ‹ [sayfa butonları] › » ve konum (X / Y). Konum ve toplam
   YALNIZ bir kez yazılır. İlk sayfada «/‹, son sayfada ›/» render edilmez; tek sayfalı listede buton yoktur.
   Sayfa butonları 34px dokunma hedefidir; şeridin genişliği flex'ten gelir, v2-pager.js ölçüp sığanı çizer. */
.v2-pager-bar {
    row-gap: .6rem;
}

.v2-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    gap: .3rem;
    min-width: 0;
}

/* Ölçülen şerit: taşan buton kesilir, sayfa yatay taşmaz. */
.v2-pager__pages {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 0;
    gap: .3rem;
    min-width: 0;
    overflow: hidden;
}

.v2-pager__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.125rem;
    height: 2.125rem;
    padding: 0 .4rem;
    border: 1px solid var(--v2-line);
    border-radius: .55rem;
    background: var(--v2-surface);
    color: var(--v2-body);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    transition: background-color .15s, border-color .15s, color .15s;
}

.v2-pager__btn:hover {
    background: var(--v2-hover);
    border-color: var(--v2-muted);
    color: var(--v2-ink);
}

.v2-pager__btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 1px;
}

/* demo-ilk birincil indigo (indigo-600): aktif sayfa dolu ve beyaz metinli. */
.v2-pager__btn.is-active,
.v2-pager__btn[aria-current="page"] {
    border-color: #4f46e5;
    background: #4f46e5;
    color: #fff;
}

.v2-pager__gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1rem;
    height: 2.125rem;
    color: var(--v2-muted);
    font-size: .8rem;
    font-weight: 600;
}

.v2-pager__status {
    padding-left: .25rem;
    color: var(--v2-muted);
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Mobilde araç çubuğu gibi pager da tek kolona iner; şerit kalan genişliği ölçer. */
@media (max-width: 560px) {
    .v2-pager-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: .5rem;
    }

    .v2-pager {
        width: 100%;
    }
}

/* Light modda sidebar beyaz zemin + slate metin: marka karesi gradient kalır. */
.v2-sidebar-brand {
    border-color: var(--v2-sidebar-line);
}

/* demo-ilk marka başlığı: `text-[15px] font-bold tracking-tight text-slate-900`. */
.v2-brand-title {
    color: var(--v2-ink);
    font-size: .9375rem;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.25;
}

/* ---- V2: sağ üst küme — tema anahtarı (JS yok) ve avatar ---- */
.v2-theme-form {
    display: inline-flex;
    align-items: center;
}

.v2-theme-toggle {
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .6rem;
    border: 1px solid var(--v2-line);
    background: var(--v2-surface);
    color: var(--v2-sidebar-ink);
    transition: background-color .15s, color .15s, border-color .15s;
}

.v2-theme-toggle:hover {
    background: var(--v2-hover);
    color: var(--v2-ink);
    border-color: var(--v2-muted);
}

/* Etkin moda göre yalnız doğru anahtar görünür (cookie yokken sistem tercihi de doğru ikonu seçer). */
.v2-theme-toggle[data-target="light"] {
    display: none;
}

.v2-theme-toggle[data-target="dark"] {
    display: inline-flex;
}

html[data-theme="light"] .v2-theme-toggle[data-target="light"] {
    display: none;
}

html[data-theme="light"] .v2-theme-toggle[data-target="dark"] {
    display: inline-flex;
}

html[data-theme="dark"] .v2-theme-toggle[data-target="dark"] {
    display: none;
}

html[data-theme="dark"] .v2-theme-toggle[data-target="light"] {
    display: inline-flex;
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .v2-theme-toggle[data-target="dark"] {
        display: none;
    }

    html:not([data-theme="light"]) .v2-theme-toggle[data-target="light"] {
        display: inline-flex;
    }
}

.v2-user {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}

/* Avatarlar demo-ilk'in 8 gradyan ailesini (from-500 → to-600) tek kuralla üretir: baş harflerden
   türetilen iki hue (`--av-h`, `--av-h2`) v2-live-filter.js tarafından yazılır. JS yüklenmezse
   varsayılan 239 → 262 (indigo → violet) kalır; görünüm bozulmaz. */
.v2-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, hsl(var(--av-h, 239) 84% 62%), hsl(var(--av-h2, 262) 78% 52%));
    color: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .02em;
    flex: 0 0 auto;
}

.v2-user-name {
    color: var(--v2-ink);
    font-size: .875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 12rem;
}

/* Login kartının arka planı da paletten gelir (inline renk yok). */
.v2-login-bg {
    background: radial-gradient(1200px 600px at 15% 10%, rgba(79, 70, 229, .14), transparent),
        radial-gradient(900px 500px at 90% 90%, rgba(124, 58, 237, .16), transparent),
        var(--v2-bg);
}

/* ---- V2: Tailwind utility sınıflarını palete bağla ----
   layout.css demo.css'ten SONRA yüklenir; eşit özgüllükte bu kurallar kazanır. Sabit renk taşıyan
   utility'ler böylece temasız kalmaz: dark modda beyaz kart/tablo kalmaz. */
.bg-white,
.bg-white\/90 {
    background-color: var(--v2-surface);
}

.bg-slate-50,
.bg-slate-50\/50,
.bg-slate-50\/60 {
    background-color: var(--v2-surface-2);
}

.bg-slate-100 {
    background-color: var(--v2-surface-2);
}

.bg-slate-900 {
    background-color: var(--v2-tab-active);
}

.bg-rose-50 {
    background-color: var(--v2-danger-bg);
}

.text-slate-900,
.text-slate-800 {
    color: var(--v2-ink);
}

.text-slate-700,
.text-slate-600 {
    color: var(--v2-body);
}

.text-slate-500,
.text-slate-400 {
    color: var(--v2-muted);
}

.text-rose-700 {
    color: var(--v2-danger-ink);
}

.border-slate-100,
.border-slate-200 {
    border-color: var(--v2-line);
}

.divide-slate-200>:not([hidden])~:not([hidden]) {
    border-color: var(--v2-line);
}

.hover\:bg-slate-50:hover,
.hover\:bg-slate-100:hover {
    background-color: var(--v2-hover);
}

.hover\:bg-white:hover {
    background-color: var(--v2-surface);
}

.hover\:text-slate-900:hover,
.hover\:text-slate-800:hover,
.hover\:text-slate-600:hover {
    color: var(--v2-ink);
}

.hover\:border-indigo-300:hover {
    border-color: #818cf8;
}

.odd\:bg-slate-50:nth-child(odd) {
    background-color: var(--v2-surface-2);
}

/* Koyu modda vurgu tonları okunur kalsın (sistem tercihi dahil). */
html[data-theme="dark"] .text-indigo-600,
html[data-theme="dark"] .hover\:text-indigo-600:hover {
    color: #818cf8;
}

html[data-theme="dark"] .text-emerald-600 {
    color: #34d399;
}

@media (prefers-color-scheme: dark) {

    html:not([data-theme="light"]) .text-indigo-600,
    html:not([data-theme="light"]) .hover\:text-indigo-600:hover {
        color: #818cf8;
    }

    html:not([data-theme="light"]) .text-emerald-600 {
        color: #34d399;
    }
}

/* ---- V2: sabit yükseklik — marka satırı ve topbar AYNI token'dan gelir ---- */
.v2-sidebar-brand {
    height: var(--v2-shell-row-h);
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: 0 .5rem 0 1rem;
    border-bottom: 1px solid var(--v2-sidebar-line);
    flex: 0 0 auto;
}

.v2-brand-text {
    min-width: 0;
    flex: 1 1 auto;
}

.topbar {
    height: var(--v2-shell-row-h);
    min-height: var(--v2-shell-row-h);
    display: flex;
    align-items: center;
}

/* Topbar satırı yüksekliği doldurur: dikey padding taşma yaratmaz, 64px birebir korunur. */
.topbar>.row-between {
    width: 100%;
    align-items: center;
    flex-wrap: nowrap;
    padding-top: 0;
    padding-bottom: 0;
}

/* demo-ilk sayfa başlığı: `text-[17px] font-bold tracking-tight text-slate-900`. */
.v2-topbar-title {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.5;
    color: var(--v2-ink);
}

/* ---- V2: üst gezinme (Panel / Müşteriler / Raporlar) — seçili link ---- */
.v2-topnav-link {
    font-size: .875rem;
    font-weight: 500;
    color: var(--v2-body);
    text-decoration: none;
    padding: .25rem .5rem;
    border-radius: .45rem;
    transition: background-color .15s, color .15s;
}

.v2-topnav-link:hover {
    color: #4f46e5;
    background: var(--v2-hover);
}

.v2-topnav-link[aria-current="page"] {
    color: #4f46e5;
    font-weight: 600;
    background: var(--v2-info-bg);
}

/* ---- V2: kenar çubuğu pin / auto — cookie tabanlı (`v2.nav`), JS yok ----
   Durum sunucuda tutulur: layout `v2.nav` (pinned|auto) cookie'sini okur ve `.app-shell`'e
   `nav-pinned` ya da `nav-auto` sınıfını ekler. Kontrol, marka satırının sağındaki PIN düğmesidir
   (JS'siz POST formu, PRG); script, satır içi handler veya gizli checkbox yoktur.
   pinned: sidebar her zaman tam genişlikte ve etiketli.
   auto: sidebar ikon genişliğine (64px) daralır; üzerine gelindiğinde/focus aldığında açılır. */
.v2-nav-pin-form {
    margin-left: auto;
    display: inline-flex;
    flex: 0 0 auto;
}

.v2-nav-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    flex: 0 0 auto;
    border: 1px solid transparent;
    border-radius: .5rem;
    background: transparent;
    color: var(--v2-sidebar-ink);
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}

.v2-nav-pin:hover {
    background: var(--v2-hover);
}

.v2-nav-pin:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Pin emojisi her zaman gri/siyah-beyaz; sabit değilken soluk ve eğik, sabitken koyu ve dik. */
.v2-nav-pin .v2-pin-emoji {
    font-size: .9rem;
    line-height: 1;
    filter: grayscale(1);
    opacity: .5;
    transform: rotate(-30deg);
    transition: opacity .15s, transform .15s;
}

.v2-nav-pin.is-pinned {
    border-color: var(--v2-sidebar-line);
    background: var(--v2-hover);
}

.v2-nav-pin.is-pinned .v2-pin-emoji {
    opacity: .95;
    transform: none;
}

/* ---- V2: auto mod — ikon rayı, hover/focus ile kendiliğinden açılır ----
   Yalnız masaüstünde uygulanır; 1023px altında sidebar zaten off-canvas çekmecedir. Açıkken
   içeriği kaydırmamak için genişleme anında gölge + z-index ile öne çıkar. */
@media (min-width: 1024px) {
    .app-shell.nav-auto .sidebar {
        width: 52px;
        flex: 0 0 52px;
        overflow-x: hidden;
    }

    .app-shell.nav-auto .sidebar:hover,
    .app-shell.nav-auto .sidebar:focus-within {
        width: var(--sidebar-w);
        flex-basis: var(--sidebar-w);
        box-shadow: 0 10px 30px rgba(15, 23, 42, .14);
        z-index: 15;
    }

    /* Daralmişken metinler gizli; hover/focus'ta otomatik geri gelir. */
    .app-shell.nav-auto .sidebar:not(:hover):not(:focus-within) .v2-brand-text,
    .app-shell.nav-auto .sidebar:not(:hover):not(:focus-within) .v2-nav .shell-menu-group-title,
    .app-shell.nav-auto .sidebar:not(:hover):not(:focus-within) .v2-nav .shell-menu-text,
    .app-shell.nav-auto .sidebar:not(:hover):not(:focus-within) .v2-nav .badge-count,
    .app-shell.nav-auto .sidebar:not(:hover):not(:focus-within) .v2-nav .nav-group-label,
    .app-shell.nav-auto .sidebar:not(:hover):not(:focus-within) .v2-nav .v2-nav-text {
        display: none;
    }

    .app-shell.nav-auto .sidebar:not(:hover):not(:focus-within) .v2-nav .nav-link,
    .app-shell.nav-auto .sidebar:not(:hover):not(:focus-within) .v2-nav .shell-menu-item > a,
    .app-shell.nav-auto .sidebar:not(:hover):not(:focus-within) .v2-nav .shell-menu-subitems .shell-menu-item > a {
        justify-content: center;
        gap: 0;
        padding-left: 0;
        padding-right: 0;
    }

    /* Daralmışken pin düğmesi gizlenir: ray yalnız ikonlardan oluşur; üzerine gelince belirir. */
    .app-shell.nav-auto .sidebar:not(:hover):not(:focus-within) .v2-nav-pin-form {
        display: none;
    }

    .app-shell.nav-auto .sidebar:not(:hover):not(:focus-within) .v2-sidebar-brand {
        padding: 0;
        gap: 0;
        justify-content: center;
    }

    .app-shell.nav-auto .sidebar:not(:hover):not(:focus-within) .v2-brand-mark {
        width: 1.75rem;
        height: 1.75rem;
        border-radius: .5rem;
    }

    .app-shell.nav-auto .sidebar:not(:hover):not(:focus-within) .v2-brand-mark svg {
        width: .95rem;
        height: .95rem;
    }

    .app-shell.nav-auto .sidebar:not(:hover):not(:focus-within) .v2-nav {
        padding-left: .3rem;
        padding-right: .3rem;
    }
}

/* ---- V2: sağ üst küme — site-geneli arama, bildirim çanı, avatar (JS yok) ----
   Sıra soldan sağa: arama formu, çan bağlantısı (+ rozet), avatar düğmesi. Araç çubuğu sağa yaslıdır;
   dar ekranda arama önce daralır, 900px altında gizlenir (çan ve avatar kalır). */
.v2-topbar-tools {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
    min-width: 0;
}

.v2-topbar-search {
    display: flex;
    align-items: center;
    gap: .4rem;
    height: 2.25rem;
    padding: 0 .7rem;
    border: 1px solid var(--v2-line);
    border-radius: .6rem;
    background: var(--v2-input-bg);
    min-width: 0;
}

.v2-topbar-search:focus-within {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .18);
}

.v2-topbar-search svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: var(--v2-muted);
}

.v2-topbar-search__input {
    width: 16rem;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    color: var(--v2-ink);
    font: inherit;
    font-size: .85rem;
}

.v2-topbar-search__input::placeholder {
    color: var(--v2-muted);
}

@media (max-width: 1100px) {
    .v2-topbar-search__input {
        width: 10rem;
    }
}

@media (max-width: 900px) {
    .v2-topbar-search {
        display: none;
    }
}

.v2-topbar-tool {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    border: 1px solid var(--v2-line);
    border-radius: .6rem;
    background: var(--v2-surface);
    color: var(--v2-body);
    text-decoration: none;
    transition: background-color .15s, color .15s, border-color .15s;
}

.v2-topbar-tool:hover {
    background: var(--v2-hover);
    color: var(--v2-ink);
    border-color: var(--v2-muted);
}

.v2-topbar-tool:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.v2-topbar-tool svg {
    width: 18px;
    height: 18px;
}

/* Rozet yalnız sayı > 0 iken basılır; küçük, yuvarlak, gradient/kırmızımsı. */
.v2-notif-badge {
    position: absolute;
    top: -.35rem;
    right: -.35rem;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 .25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(135deg, #f43f5e, #dc2626);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 6px -2px rgba(190, 18, 60, .9);
}

/* ---- V2: bildirim çanı menüsü (5.4c-3a) ---------------------------------------------------------------
   Panel bir <details> içindedir: JS yok, tarayıcı açar/kapatır. Özet çan ikonudur (v2-topbar-tool) ve
   okunmamış rozetini taşır; panel mutlak konumlanır. */
.v2-notif {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.v2-notif__trigger {
    cursor: pointer;
    list-style: none;
}

.v2-notif__trigger::-webkit-details-marker {
    display: none;
}

.v2-notif[open] .v2-notif__trigger {
    background: var(--v2-hover);
    color: var(--v2-ink);
    border-color: var(--v2-muted);
}

.v2-notif__panel {
    position: absolute;
    top: calc(100% + .5rem);
    right: 0;
    width: 20rem;
    max-width: calc(100vw - 1.5rem);
    z-index: 40;
    overflow: hidden;
    border: 1px solid var(--v2-line);
    border-radius: .75rem;
    background: var(--v2-surface);
    box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .45);
}

.v2-notif__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem;
    padding: .7rem .85rem;
    border-bottom: 1px solid var(--v2-line);
}

.v2-notif__heading {
    font-size: .8rem;
    font-weight: 700;
    color: var(--v2-ink);
}

.v2-notif__meta {
    font-size: .7rem;
    color: var(--v2-muted);
}

.v2-notif__empty {
    margin: 0;
    padding: 1rem .85rem;
    font-size: .8rem;
    color: var(--v2-muted);
}

.v2-notif__list {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 22rem;
    overflow-y: auto;
}

.v2-notif__item + .v2-notif__item {
    border-top: 1px solid var(--v2-line);
}

.v2-notif__link {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .6rem .85rem;
    text-decoration: none;
    color: inherit;
}

.v2-notif__link:hover {
    background: var(--v2-hover);
}

.v2-notif__dot {
    width: .45rem;
    height: .45rem;
    margin-top: .35rem;
    flex: 0 0 auto;
    border-radius: 9999px;
    background: var(--v2-muted);
}

.v2-notif__item--info .v2-notif__dot {
    background: #2563eb;
}

.v2-notif__item--warning .v2-notif__dot {
    background: #d97706;
}

.v2-notif__item--critical .v2-notif__dot {
    background: #dc2626;
}

.v2-notif__text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .15rem;
}

.v2-notif__title {
    font-size: .8rem;
    line-height: 1.35;
    color: var(--v2-body);
}

.v2-notif__item.is-unread .v2-notif__title {
    font-weight: 700;
    color: var(--v2-ink);
}

.v2-notif__time {
    font-size: .68rem;
    color: var(--v2-muted);
}

.v2-notif__all {
    display: block;
    padding: .6rem .85rem;
    border-top: 1px solid var(--v2-line);
    font-size: .76rem;
    font-weight: 600;
    text-align: center;
    color: #4f46e5;
    text-decoration: none;
}

.v2-notif__all:hover {
    background: var(--v2-hover);
    text-decoration: underline;
}

/* ---- /bildirimler satırları: <details> ile açılan mesaj, önem rengi, okundu formu ---- */
.v2-notif-row + .v2-notif-row {
    border-top: 1px solid var(--v2-line);
}

.v2-notif-row__details {
    padding: 0;
}

.v2-notif-row__summary {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1rem;
    cursor: pointer;
    list-style: none;
}

.v2-notif-row__summary::-webkit-details-marker {
    display: none;
}

.v2-notif-row__summary:hover {
    background: var(--v2-hover);
}

.v2-notif-row__dot {
    width: .5rem;
    height: .5rem;
    flex: 0 0 auto;
    border-radius: 9999px;
    background: var(--v2-muted);
}

.v2-notif-row--info .v2-notif-row__dot {
    background: #2563eb;
}

.v2-notif-row--warning .v2-notif-row__dot {
    background: #d97706;
}

.v2-notif-row--critical .v2-notif-row__dot {
    background: #dc2626;
}

.v2-notif-row__title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: .84rem;
    color: var(--v2-body);
}

.v2-notif-row.is-unread .v2-notif-row__title {
    font-weight: 700;
    color: var(--v2-ink);
}

.v2-notif-row__time {
    flex: 0 0 auto;
    font-size: .7rem;
    color: var(--v2-muted);
}

.v2-notif-row__body {
    padding: 0 1rem 1rem 2.1rem;
}

.v2-notif-row__text {
    margin: 0 0 .7rem;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--v2-body);
}

/* Avatar düğmesi: yalnız 28px baş-harf avatarı + chevron; ad panelde. Dikdörtgen (pill) kalır. */
.v2-user-button {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 6px 8px;
    flex: 0 0 auto;
    border: 1px solid var(--v2-line);
    border-radius: 12px;
    background: var(--v2-surface);
    color: var(--v2-body);
    font: inherit;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}

.v2-user-button:hover {
    background: var(--v2-hover);
    border-color: var(--v2-muted);
    color: var(--v2-ink);
}

.v2-user-button:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.v2-user-button .v2-avatar {
    width: 28px;
    height: 28px;
    font-size: .72rem;
}

.v2-user-button__chevron {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--v2-muted);
}

/* ---- V2: hesap paneli — yerel `popover` (JS yok) ----
   `[popover]` varsayılan gizlidir, `:popover-open` görünür. Tarayıcı dış tıklama ve Esc ile kendisi
   kapatır; panelde "Kapat" bağlantısı yoktur. Top layer'da açıldığı için üst çubuktan taşmaz: sağ üstten
   hizalı, sabit konumlu bir kart olarak görünür. */
.v2-user-menu__panel[popover] {
    position: fixed;
    top: 4.25rem;
    right: 1rem;
    bottom: auto;
    left: auto;
    margin: 0;
    z-index: 60;
    width: 15rem;
    padding: .5rem;
    border: 1px solid var(--v2-line);
    border-radius: .85rem;
    background: var(--v2-surface);
    color: var(--v2-ink);
    box-shadow: 0 22px 48px -24px rgba(15, 23, 42, .55);
}

.v2-user-menu__panel[popover]:not(:popover-open) {
    display: none;
}

.v2-user-menu__panel[popover]:popover-open {
    display: block;
}

.v2-user-menu__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
    padding: .45rem .5rem .6rem;
    border-bottom: 1px solid var(--v2-line);
    margin-bottom: .35rem;
}

.v2-user-menu__who {
    min-width: 0;
    max-width: 100%;
}

/* Uzun ad soyad paneli genişletmesin: tek satır + üç nokta (name/account/role ortak kural). */
.v2-user-menu__name {
    font-size: .875rem;
    font-weight: 700;
    color: var(--v2-ink);
    max-width: 13rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hesap adı (kullanıcı adı) — görünen adın altındaki ikincil satır. */
.v2-user-menu__account {
    font-size: .76rem;
    color: var(--v2-ink);
    margin-top: .1rem;
}

.v2-user-menu__role {
    font-size: .72rem;
    color: var(--v2-muted);
    margin-top: .1rem;
}

.v2-user-menu__account,
.v2-user-menu__role {
    max-width: 13rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-user-menu__group {
    padding: .1rem .5rem .5rem;
    border-bottom: 1px solid var(--v2-line);
    margin-bottom: .35rem;
}

.v2-user-menu__label {
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--v2-muted);
    margin-bottom: .35rem;
}

/* Üç yönlü tema grubu (Açık / Koyu / Sistem): eşit üç sütun; 15rem'lik panelde ikon üstte,
   etiket altta durur ki üç etiket de tek satırda taşmadan sığsın. */
.v2-user-menu__themes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .4rem;
}

.v2-user-menu__themes form {
    min-width: 0;
    margin: 0;
}

.v2-user-menu__theme {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .18rem;
    width: 100%;
    height: auto;
    padding: .35rem .25rem;
    border: 1px solid var(--v2-line);
    border-radius: .55rem;
    background: var(--v2-surface-2);
    color: var(--v2-body);
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
}

.v2-user-menu__theme:hover {
    background: var(--v2-hover);
    color: var(--v2-ink);
    border-color: var(--v2-muted);
}

/* Aktif tema belirgin: indigo kenar + açık indigo zemin + indigo metin (light) / açık indigo metin (dark). */
.v2-user-menu__theme.is-active,
.v2-user-menu__theme.is-active:hover {
    border-color: #4f46e5;
    background: #eef2ff;
    color: #4338ca;
}

html[data-theme="dark"] .v2-user-menu__theme.is-active,
html[data-theme="dark"] .v2-user-menu__theme.is-active:hover {
    border-color: #818cf8;
    background: rgba(99, 102, 241, .22);
    color: #c7d2fe;
}

@media (prefers-color-scheme: dark) {

    html:not([data-theme="light"]) .v2-user-menu__theme.is-active,
    html:not([data-theme="light"]) .v2-user-menu__theme.is-active:hover {
        border-color: #818cf8;
        background: rgba(99, 102, 241, .22);
        color: #c7d2fe;
    }
}

.v2-user-menu__theme svg {
    width: 15px;
    height: 15px;
}

.v2-user-menu__panel form {
    margin: 0;
}

.v2-user-menu__item {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: 100%;
    padding: .5rem;
    border: 0;
    border-radius: .55rem;
    background: transparent;
    color: var(--v2-body);
    font-size: .84rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.v2-user-menu__item:hover {
    background: var(--v2-hover);
    color: var(--v2-ink);
}

.v2-user-menu__item svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.v2-user-menu__item--danger {
    color: var(--v2-danger-ink);
}

.v2-user-menu__item--danger:hover {
    background: var(--v2-danger-bg);
    color: var(--v2-danger-ink);
}

/* ---- V2: kart başlık satırı (gri zemin + alt çizgi) ---- */
.v2-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    padding: .75rem 1rem;
    background: var(--v2-surface-2);
    border-bottom: 1px solid var(--v2-line);
}

/* Kart başlığındaki sayaç ve aksiyon: panel/raporlar ve liste sayfaları aynı sınıfları kullanır. */
.v2-card-head__meta {
    font-size: .75rem;
    color: var(--v2-muted);
}

.v2-card-head__action {
    font-size: .75rem;
    font-weight: 600;
    color: var(--v2-info-ink);
    text-decoration: none;
}

.v2-card-head__action:hover {
    text-decoration: underline;
}

/* ---- V2: liste sayfası deseni — başlık + birincil aksiyon ---- */
.v2-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.v2-page-head__text {
    min-width: 0;
}

/* Tipografi demo-ilk ile aynı: başlık `text-2xl font-bold tracking-tight` (24/32px, 700, -.025em),
   açıklama `text-sm` (14/20px, 400). Renk ve yerleşim değişmez; yalnız ölçek/ağırlık/harf aralığı. */
.v2-page-head__title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--v2-ink);
}

.v2-page-head__lede {
    margin: .35rem 0 0;
    font-size: .875rem;
    line-height: 1.25rem;
    color: var(--v2-body);
    max-width: 46rem;
}

.v2-page-head__action {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    height: 2.5rem;
    padding: 0 1rem;
    border-radius: .7rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 12px 26px -18px rgba(79, 70, 229, .9);
    transition: opacity .15s;
}

.v2-page-head__action:hover {
    opacity: .95;
}

/* Demo-ilk "soft" aksiyonu (bg-indigo-50 / text-indigo-700 / hover:bg-indigo-100). */
.v2-page-head__action--soft {
    background: #eef2ff;
    color: #4338ca;
    border: 0;
    border-radius: .75rem;
    box-shadow: none;
}

.v2-page-head__action--soft:hover {
    background: #e0e7ff;
    opacity: 1;
}

.v2-page-head__action:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.v2-page-head__action-ico {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

/* Aksiyon kümesi: sağda, isteğe bağlı ikincil (hayalet) düğme + birincil düğme yan yana. */
.v2-page-head__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    flex: 0 0 auto;
}

/* İkincil aksiyon (ör. detay sayfasının "Geri" bağlantısı): çerçeveli, zemin paletten gelir. */
.v2-page-head__secondary {
    display: inline-flex;
    align-items: center;
    height: 2.5rem;
    padding: 0 1rem;
    border-radius: .7rem;
    border: 1px solid var(--v2-line);
    background: var(--v2-surface);
    color: var(--v2-body);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.v2-page-head__secondary:hover {
    background: var(--v2-hover);
    color: var(--v2-ink);
}

.v2-page-head__secondary:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* ---- V2: liste sayfası deseni — 4 KPI kartı ---- */
.v2-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.v2-kpi {
    padding: 1.25rem;
    min-width: 0;
}

.v2-kpi__label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--v2-muted);
}

.v2-kpi__value {
    margin-top: .5rem;
    font-size: 1.875rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--v2-ink);
    overflow-wrap: anywhere;
}

.v2-kpi__value--ok {
    color: var(--v2-ok-ink);
}

.v2-kpi__value--info {
    color: var(--v2-info-ink);
}

.v2-kpi__value--danger {
    color: var(--v2-danger-ink);
}

.v2-kpi__sub {
    margin-top: .25rem;
    font-size: .75rem;
    color: var(--v2-muted);
}

@media (max-width: 1100px) {
    .v2-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .v2-kpis {
        grid-template-columns: 1fr;
    }
}

/* ---- V2: liste sayfası deseni — filtre çubuğu (JS yok, GET formu) ----
   Kart DEĞİL: içerik zemini üzerinde çıplak bir satır. Zemin/kenarlık/gölge/padding yok. */
.v2-filterbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin: 0 0 1rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.v2-filterbar__search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 20rem;
    min-width: 0;
}

.v2-filterbar__search-ico {
    position: absolute;
    left: .7rem;
    width: 16px;
    height: 16px;
    color: var(--v2-muted);
    pointer-events: none;
}

.v2-filterbar__input {
    width: 100%;
    height: 2.5rem;
    padding: 0 .8rem 0 2.2rem;
    border: 1px solid var(--v2-line);
    border-radius: .6rem;
    background: var(--v2-input-bg);
    color: var(--v2-ink);
    font-size: .875rem;
    font-family: inherit;
}

.v2-filterbar__input::placeholder {
    color: var(--v2-muted);
}

.v2-filterbar__input:focus-visible,
.v2-filterbar__control:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 1px;
}

.v2-filterbar__fields {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: .5rem;
}

.v2-filterbar__field {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
}

.v2-filterbar__label {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.v2-filterbar__control {
    height: 2.25rem;
    min-width: 8.5rem;
    padding: 0 .6rem;
    border: 1px solid var(--v2-line);
    border-radius: .5rem;
    font-size: .875rem;
    font-family: inherit;
}

/* Filtre çubuğunda düğme yoktur (AGENTS.md "Filter UI rule"): canlı arama kutusunun JS'siz Enter
   gönderimi için gereken görünmez submit bu sınıfla ekrandan çıkarılır, erişilebilirliği korunur. */
.v2-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;
}

@media (max-width: 700px) {
    .v2-filterbar {
        flex-direction: column;
        align-items: stretch;
    }

    .v2-filterbar__search {
        flex: 1 1 auto;
    }

    .v2-filterbar__fields {
        justify-content: flex-start;
    }

    .v2-filterbar__field,
    .v2-filterbar__control {
        width: 100%;
    }
}

/* ---- V2: tablo satırı ikincil metni (vergi no gibi) ---- */
.v2-row-sub {
    display: block;
    margin-top: .15rem;
    font-size: .75rem;
    color: var(--v2-muted);
}

/* ---- V2: boş sonuç kartı ---- */
.v2-empty {
    padding: 3rem 1rem;
    text-align: center;
}

.v2-empty__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto;
    border-radius: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--v2-muted-bg);
    color: var(--v2-muted);
}

.v2-empty__icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.v2-empty__title {
    margin-top: .75rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--v2-body);
}

.v2-empty__text {
    margin-top: .25rem;
    font-size: .75rem;
    color: var(--v2-muted);
}

/* ---- V2: detay sayfası — iki kolonlu tanım listesi (dl) ----
   Etiketler `dt`, değerler `dd`. Yalnız palet değişkenleri kullanılır; dar ekranda tek kolona düşer. */
.v2-dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem 1.5rem;
    margin: 0;
    padding: 1.25rem 1rem;
}

.v2-dl__row {
    min-width: 0;
}

.v2-dl__term {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--v2-muted);
}

.v2-dl__value {
    margin: .25rem 0 0;
    font-size: .9rem;
    line-height: 1.45;
    color: var(--v2-ink);
    overflow-wrap: anywhere;
}

/* Detay sayfasının kartları arasındaki dikey boşluk. */
.v2-detail-stack>*+* {
    margin-top: 1.25rem;
}

/* Detay sayfasının grup listesi (grup adı solda, anahtar sağda). */
.v2-group-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.v2-group-list>li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .7rem 1rem;
    border-bottom: 1px solid var(--v2-line);
    font-size: .875rem;
    color: var(--v2-ink);
}

.v2-group-list>li:last-child {
    border-bottom: 0;
}

.v2-group-list__key {
    font-size: .72rem;
    color: var(--v2-muted);
    overflow-wrap: anywhere;
}

@media (max-width: 720px) {
    .v2-dl {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Rakamların hizalanması için (derlenmiş temada utility yoksa da geçerli). */
.tabular-nums {
    font-variant-numeric: tabular-nums;
}

/* ---- V2: anonim landing (/v2) ----
   Bare kabuk: sidebar/topbar yok, sayfa kendi marka satırını ve alt bilgisini taşır. Tüm renkler
   palet değişkenlerinden gelir (`--v2-bg`, `--v2-surface`, `--v2-ink`, `--v2-body`, `--v2-muted`,
   `--v2-line`), böylece light ve dark modda aynı okunurluk korunur; sabit renk yalnız marka
   gradyanındadır (`.gradient-brand`). Yalnız düzen/responsive kuralları; JS yok. */
.v2-landing {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--v2-bg);
    color: var(--v2-ink);
}

/* Üst menü hero'nun İÇİNDE ve ŞEFFAF: kendi zemin bandı yok, gradyanın üzerinde yüzer. */
.v2-landing__header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    padding: clamp(.85rem, 2vh, 1.15rem) clamp(1rem, 3vw, 2.5rem);
    background: transparent;
    border-bottom: 1px solid transparent;
}

.v2-landing__brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

.v2-landing__mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex: 0 0 auto;
}

.v2-landing__mark svg {
    width: 1.25rem;
    height: 1.25rem;
}

.v2-landing__brand-text {
    min-width: 0;
}

.v2-landing__brand-title {
    font-size: .9rem;
    font-weight: 800;
    color: var(--v2-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-landing__brand-sub {
    font-size: .72rem;
    color: var(--v2-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Şeffaf menü koyu hero zemininde durduğu için marka metni açık renge döner. */
.v2-landing__hero .v2-landing__brand-title {
    color: #f8fafc;
}

.v2-landing__hero .v2-landing__brand-sub {
    color: rgba(226, 232, 240, .78);
}

.v2-landing__nav {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.v2-landing__main {
    width: 100%;
    max-width: 68rem;
    margin: 0 auto;
    padding: 2.75rem 1.5rem 3.5rem;
}

/* Büyük hero: ekranın üstünü tamamen kaplayan gradyanlı bant. Renkler sabittir (marka gradyanı),
   bu yüzden açık/koyu temada aynı okunurlukta kalır; doku ve geçişler yalnız CSS'tir (görsel yok). */
.v2-landing__hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: min(92vh, 52rem);
    padding: clamp(7rem, 16vh, 10rem) clamp(1rem, 3vw, 2rem) clamp(3rem, 8vh, 5.5rem);
    background:
        radial-gradient(900px 460px at 84% -12%, rgba(124, 58, 237, .6), transparent 62%),
        radial-gradient(760px 460px at 6% 112%, rgba(14, 165, 233, .38), transparent 60%),
        linear-gradient(140deg, #0b1220 0%, #1e1b4b 46%, #4338ca 100%);
    color: #f8fafc;
    text-align: center;
}

/* Dekoratif ızgara dokusu — içerik daima üstte kalır. */
.v2-landing__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(70% 62% at 50% 32%, #000 18%, transparent 78%);
    mask-image: radial-gradient(70% 62% at 50% 32%, #000 18%, transparent 78%);
}

/* Hero'nun sayfa zeminine yumuşak geçişi (tema değişkeniyle, iki modda da doğru). */
.v2-landing__hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: clamp(2rem, 5vh, 4rem);
    background: linear-gradient(to bottom, rgba(11, 18, 32, 0), var(--v2-bg));
    pointer-events: none;
}

.v2-landing__hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 68rem;
    margin: 0 auto;
}

.v2-landing__hero-mark {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 24px 48px -20px rgba(2, 6, 23, .85), 0 0 0 1px rgba(255, 255, 255, .18);
}

.v2-landing__hero-mark svg {
    width: 2.25rem;
    height: 2.25rem;
}

/* Hero üstünde küçük, cam görünümlü etiket. */
.v2-landing__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 1.5rem 0 0;
    padding: .38rem .85rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #e0e7ff;
}

.v2-landing__title {
    margin: 1rem 0 0;
    max-width: 22ch;
    font-size: clamp(2.3rem, 5.4vw, 4.15rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #fff;
    text-wrap: balance;
}

.v2-landing__lead {
    max-width: 46rem;
    margin: 1.15rem auto 0;
    font-size: clamp(1rem, 1.25vw, 1.16rem);
    line-height: 1.7;
    color: rgba(226, 232, 240, .88);
}

.v2-landing__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
    margin-top: 1.9rem;
}

/* Hero'daki düğmeler: koyu zemin üzerinde okunaklı, dokunma hedefi büyük. */
.v2-landing__hero .v2-landing__btn {
    height: 3rem;
    padding: 0 1.5rem;
    font-size: .95rem;
}

.v2-landing__hero .v2-landing__btn--primary {
    background: #fff;
    color: #1e1b4b;
    box-shadow: 0 18px 34px -18px rgba(2, 6, 23, .9);
}

.v2-landing__hero .v2-landing__btn--primary:hover {
    background: #eef2ff;
    opacity: 1;
}

.v2-landing__hero .v2-landing__btn--ghost {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .3);
    color: #f8fafc;
    backdrop-filter: blur(6px);
}

.v2-landing__hero .v2-landing__btn--ghost:hover {
    background: rgba(255, 255, 255, .18);
}

/* Hero altındaki üç kısa vaat — cam rozetler. */
.v2-landing__hero-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem .75rem;
    margin: 1.9rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .82rem;
    color: rgba(226, 232, 240, .82);
}

.v2-landing__hero-points li {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .8rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, .28);
    border: 1px solid rgba(255, 255, 255, .14);
}

.v2-landing__hero-points li::before {
    content: "";
    width: .4rem;
    height: .4rem;
    border-radius: 9999px;
    background: #a5b4fc;
    flex: 0 0 auto;
}

.v2-landing__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.75rem;
    padding: 0 1.15rem;
    border-radius: .85rem;
    border: 1px solid transparent;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .15s, background-color .15s, border-color .15s;
}

.v2-landing__btn--primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    box-shadow: 0 12px 26px -16px rgba(79, 70, 229, .9);
}

.v2-landing__btn--primary:hover {
    opacity: .95;
}

.v2-landing__btn--ghost {
    background: var(--v2-surface);
    border-color: var(--v2-line);
    color: var(--v2-ink);
}

.v2-landing__btn--ghost:hover {
    background: var(--v2-hover);
}

.v2-landing__btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.v2-landing__section {
    margin-top: 3rem;
}

.v2-landing__section-head {
    text-align: center;
}

.v2-landing__section-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--v2-ink);
}

.v2-landing__section-sub {
    margin: .4rem 0 0;
    font-size: .88rem;
    color: var(--v2-muted);
}

.v2-landing__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.v2-landing__card {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    height: 100%;
    padding: 1.15rem;
    background: var(--v2-surface);
    border: 1px solid var(--v2-line);
    border-radius: .9rem;
    box-shadow: 0 12px 30px -24px rgba(15, 23, 42, .5);
}

.v2-landing__card-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--v2-info-bg);
    color: var(--v2-info-ink);
    flex: 0 0 auto;
}

.v2-landing__card-icon svg {
    width: 1.1rem;
    height: 1.1rem;
}

.v2-landing__card-title {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    color: var(--v2-ink);
}

.v2-landing__card-text {
    margin: 0;
    font-size: .85rem;
    line-height: 1.55;
    color: var(--v2-muted);
}

.v2-landing__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.v2-landing__step {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: 1rem;
    background: var(--v2-surface-2);
    border: 1px solid var(--v2-line);
    border-radius: .9rem;
}

.v2-landing__step-no {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--v2-info-bg);
    color: var(--v2-info-ink);
    font-size: .8rem;
    font-weight: 800;
    flex: 0 0 auto;
}

.v2-landing__footer {
    margin-top: auto;
    padding: 1.5rem;
    text-align: center;
    background: var(--v2-surface);
    border-top: 1px solid var(--v2-line);
}

.v2-landing__footer-note {
    margin: 0;
    font-size: .82rem;
    font-weight: 600;
    color: var(--v2-body);
}

.v2-landing__footer-brand {
    margin: .3rem 0 0;
    font-size: .74rem;
    color: var(--v2-muted);
}

@media (max-width: 899px) {
    .v2-landing__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .v2-landing__steps {
        grid-template-columns: 1fr;
    }
}

/* ---- V2: çıkış (veda) kartı ----
   Yalnız palet değişkenleri kullanılır; açık/koyu modda aynı okunurlukta kalır. JS yok. */
.v2-bye-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.v2-bye-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    color: #fff;
    margin-bottom: .75rem;
}

.v2-bye-mark svg {
    width: 1.5rem;
    height: 1.5rem;
}

.v2-bye-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--v2-ink);
}

.v2-bye-text {
    margin: .5rem 0 0;
    font-size: .9rem;
    line-height: 1.6;
    color: var(--v2-body);
}

.v2-bye-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-top: 1.5rem;
}

@media (max-width: 599px) {
    .v2-landing__header {
        padding: .7rem 1rem;
    }

    .v2-bye-title {
        font-size: 1.45rem;
    }

    .v2-landing__main {
        padding: 2rem 1rem 3rem;
    }

    .v2-landing__hero {
        min-height: auto;
        padding: 6rem 1rem 2.75rem;
    }

    .v2-landing__hero-mark {
        width: 3.75rem;
        height: 3.75rem;
        border-radius: 1.15rem;
    }

    .v2-landing__hero-mark svg {
        width: 1.85rem;
        height: 1.85rem;
    }

    .v2-landing__title {
        margin-top: .85rem;
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .v2-landing__hero .v2-landing__btn {
        width: 100%;
    }

    .v2-landing__grid {
        grid-template-columns: 1fr;
    }
}

/* ---- V2: kullanıcı düzenleme formu (JS yok; tek kart, iki kolon ızgara) ----
   Yalnız palet değişkenleri kullanılır, bu yüzden açık ve koyu modda aynı okunabilirlik korunur. */
.v2-form {
    padding: 1.25rem;
}

.v2-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.v2-field {
    min-width: 0;
}

/* Görünen ad gibi tam satırı hak eden alanlar. */
.v2-field--wide {
    grid-column: 1 / -1;
}

.v2-field__label {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .35rem;
}

.v2-field__hint {
    margin: .35rem 0 0;
    font-size: .72rem;
    color: var(--v2-muted);
}

/* Alan altı hata: boşken yer kaplamaz (asp-validation-for her zaman bir span üretir). */
.v2-field__error {
    display: block;
    margin: .3rem 0 0;
    font-size: .75rem;
    font-weight: 600;
    color: var(--v2-danger-ink);
}

.v2-field__error:empty {
    display: none;
}

/* Form üstü doğrulama özeti (sunucu tarafı, JS'siz). */
.v2-form-alert {
    margin: 0 0 1rem;
    padding: .75rem 1rem;
    border: 1px solid var(--v2-danger-ink);
    border-radius: .6rem;
    background: var(--v2-danger-bg);
    color: var(--v2-danger-ink);
    font-size: .82rem;
    line-height: 1.5;
}

/* Bilgi amaçlı durum satırı (webmail eşitlendi/kaydedildi): hata kırmızısı değil, nötr satır. */
.v2-form-alert.is-ok {
    border-color: var(--v2-line);
    background: var(--v2-surface);
    color: var(--v2-ink);
}

.v2-form-alert__list {
    margin: .35rem 0 0;
    padding-left: 1.1rem;
}

/* Durum rozeti + parola sıfırlama bağlantısı: kaydet düğmesinin üstündeki tek satır. */
.v2-form-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    margin-top: 1.25rem;
    font-size: .75rem;
    color: var(--v2-muted);
}

.v2-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--v2-line);
}

.v2-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 0;
    border-radius: .6rem;
    padding: .55rem 1.05rem;
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
    background-image: linear-gradient(90deg, #4f46e5, #7c3aed);
    cursor: pointer;
}

.v2-form__submit:hover {
    filter: brightness(1.08);
}

.v2-form__submit:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Satır formunun kaydet düğmesi: disket ikonu. Satırda değişiklik yokken kapalıdır ("neyi kaydedecek?"),
   bir alan değişince açılır (v2-row-save.js). */
.v2-row-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    padding: 0;
    border: 1px solid var(--v2-line);
    border-radius: .55rem;
    background: var(--v2-input-bg);
    color: var(--v2-info-ink);
    cursor: pointer;
    transition: color .15s, border-color .15s;
}

.v2-row-save svg {
    width: 1rem;
    height: 1rem;
}

.v2-row-save:hover:not(:disabled) {
    border-color: var(--v2-info-ink);
}

.v2-row-save:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.v2-row-save:disabled {
    color: var(--v2-muted);
    opacity: .45;
    cursor: not-allowed;
}

/* Satır kaydının kısa geri bildirimi (v2-row-save.js, sayfa yenilenmeden kayıt): sağ altta beliren kutu. */
.v2-toast {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 80;
    max-width: 22rem;
    padding: .65rem .9rem;
    border: 1px solid var(--v2-line);
    border-left: 3px solid var(--v2-info-ink);
    border-radius: .6rem;
    background: var(--v2-surface);
    color: var(--v2-ink);
    font-size: .82rem;
    font-weight: 600;
    box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .55);
}

.v2-toast[hidden] {
    display: none;
}

/* ---- V2: webmail ileti tablosu — zebra YOK; tüm satırlar beyaz, hover belirgin
   (mükellef tablosuyla aynı indigo tonu). Global zebra kuralından daha güçlü seçici gerekir. ---- */
.table.v2-mail-table tbody tr,
.table.v2-mail-table tbody tr:nth-child(odd) {
    background: var(--v2-surface);
    transition: background-color .15s;
}

.table.v2-mail-table tbody tr+tr {
    border-top: 1px solid var(--v2-line);
}

.table.v2-mail-table tbody tr:hover {
    background: color-mix(in srgb, var(--v2-info-bg) 40%, var(--v2-surface));
}

/* Eskilik ayırıcısı (owner rule): Bugün · Dün · Bu hafta · Bu ay · Daha eski.
   Etiket YEŞİL bir chip'tir ve tablodan bağımsız durur: satır zemini ve satır çizgisi yok, hücre kenarlığı yok,
   altındaki ileti satırının üst çizgisi de kaldırılır. */
.table.v2-mail-table tbody tr.v2-mail-group,
.table.v2-mail-table tbody tr.v2-mail-group:hover {
    background: transparent;
    border-top: 0;
    cursor: default;
}

.table.v2-mail-table tbody tr.v2-mail-group+tr {
    border-top: 0;
}

.table.v2-mail-table tbody tr.v2-mail-group .v2-mail-group__cell {
    padding: .9rem .75rem .45rem;
    border: 0;
    background: transparent;
}

.v2-mail-group__chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .22rem .65rem;
    border-radius: 9999px;
    background: #dcfce7;
    color: #15803d;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.35;
}

/* Açık ileti: tıklanan satırın HEMEN ALTINDA genişleyen satır (legacy webmail deseni).
   Önce yükleme göstergesi görünür, içerik hazır olunca panel bu hücrede açılır. */
.table.v2-mail-table tbody tr.v2-mail-inline,
.table.v2-mail-table tbody tr.v2-mail-inline:hover {
    background: #fff;
    border-top: 0;
    cursor: default;
}

.table.v2-mail-table tbody tr.v2-mail-inline>.v2-mail-inline__cell {
    padding: .2rem .75rem 1rem;
    background: #fff;
}

.v2-mail-inline__progress {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .9rem 0;
    color: var(--v2-muted);
    font-size: .82rem;
    font-weight: 600;
}

.v2-mail-inline__spinner {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: v2-mail-spin .7s linear infinite;
}

.v2-mail-inline__error {
    margin: .6rem 0;
    color: var(--v2-danger-ink, #b91c1c);
    font-size: .82rem;
    font-weight: 600;
}

@keyframes v2-mail-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Sayfa altı sayfalama (owner rule): Önceki/Sonraki + numaralar; tek satır, ortalanmış. */
.v2-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: .85rem 1rem;
    border-top: 1px solid var(--v2-line);
}

.v2-pager[hidden] {
    display: none !important;
}

.v2-pager__btn {
    min-width: 2rem;
    height: 2rem;
    padding: 0 .6rem;
    border: 1px solid var(--v2-line);
    border-radius: .55rem;
    background: var(--v2-surface);
    color: var(--v2-ink);
    font-family: inherit;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}

.v2-pager__btn:hover:not(:disabled):not(.is-active) {
    background: var(--v2-hover);
    border-color: var(--v2-info-line, #c7d2fe);
}

.v2-pager__btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.v2-pager__btn.is-active {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-color: transparent;
    color: #fff;
    cursor: default;
}

.v2-pager__btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.v2-pager__gap {
    padding: 0 .25rem;
    color: var(--v2-muted);
    font-size: .8rem;
}

.v2-toast--error {
    border-left-color: var(--v2-danger-ink);
}

.v2-form-actions__link {
    font-size: .8rem;
    font-weight: 600;
    color: var(--v2-muted);
    text-decoration: none;
}

.v2-form-actions__link:hover {
    color: var(--v2-ink);
    text-decoration: underline;
}

/* Tek satırlık bilgi kartı (ör. "Kullanıcı güncellendi."). */
.v2-flash {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    padding: .7rem 1rem;
    border: 1px solid transparent;
    border-radius: .6rem;
    font-size: .85rem;
    font-weight: 600;
}

.v2-flash--ok {
    background: var(--v2-ok-bg);
    border-color: var(--v2-ok-ink);
    color: var(--v2-ok-ink);
}

.v2-flash__icon {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
}

@media (max-width: 719px) {
    .v2-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- V2: sayfa başlığının sağ üst bağlam satırı (/v2/mukellefler Türkçe tarihi) ---- */
.v2-page-head__meta {
    font-size: .8rem;
    font-weight: 600;
    color: var(--v2-muted);
    white-space: nowrap;
    margin-right: .25rem;
}

/* ---- V2: beş özet kartlı şerit (Mükellefler: toplam, aktif, şahıs, limited, A.Ş.) ----
   Dört kartlı varsayılan ızgara korunur; beşinci kart varsa şerit beş eşit kolona düşer. */
.v2-kpis:has(> .v2-kpi:nth-child(5)) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1240px) {
    .v2-kpis:has(> .v2-kpi:nth-child(5)) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .v2-kpis:has(> .v2-kpi:nth-child(5)) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .v2-kpis:has(> .v2-kpi:nth-child(5)) {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- V2: mükellef listesi araç çubuğu — TEK arama kutusu + iki özel filtre menüsü ----
   demo-ilk'in arama + filtre satırı: arama solda, filtreler sağda, aynı çizgide; mobilde alt alta.
   Yalnız /v2/mukellefler kullanır. */
.v2-mk-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0 0 1rem;
}

.v2-mk-toolbar__search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 20rem;
    min-width: 0;
}

.v2-mk-toolbar__search-ico {
    position: absolute;
    left: .8rem;
    width: 17px;
    height: 17px;
    color: var(--v2-muted);
    pointer-events: none;
}

.v2-mk-toolbar__input {
    width: 100%;
    /* demo-ilk `.input-base` ile birebir yükseklik: line-height 20px + 10px dikey padding + 1px kenar = 42px.
       Yatay padding ikon/✕ şeridine ayrıldığı için demo'dan farklıdır; dikey padding, radius ve font aynıdır. */
    height: 2.625rem;
    padding: .625rem 2.6rem .625rem 2.4rem;
    border: 1px solid var(--v2-line);
    border-radius: .75rem;
    background: var(--v2-input-bg);
    color: var(--v2-ink);
    font-size: .875rem;
    line-height: 1.25rem;
    font-family: inherit;
}

.v2-mk-toolbar__input::placeholder {
    color: var(--v2-muted);
}

.v2-mk-toolbar__input:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 1px;
}

/* type="search" tarayıcının kendi X'ini gizle: tek temizleme aksiyonu özel bağlantıdır. */
.v2-mk-toolbar__input::-webkit-search-cancel-button,
.v2-mk-toolbar__input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.v2-mk-toolbar__input::-ms-clear {
    display: none;
}

/* X: arama kutusunun sağında; q + durum + tur'u birlikte sıfırlayan tek aksiyon. */
.v2-mk-toolbar__clear {
    position: absolute;
    right: .35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: .5rem;
    color: var(--v2-muted);
    text-decoration: none;
    transition: background-color .15s, color .15s;
}

.v2-mk-toolbar__clear:hover {
    background: var(--v2-hover);
    color: var(--v2-ink);
}

.v2-mk-toolbar__clear:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 1px;
}

.v2-mk-toolbar__clear svg {
    width: 16px;
    height: 16px;
}

.v2-mk-toolbar__filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}

/* Özel filtre menüsü: avatar menüsüyle AYNI dil — aynı çerçeve, köşe, gölge, boşluk ve item hover'ı.
   Kapalıyken panel `hidden`dır; açma/kapama ve klavye davranışı `v2-dropdown.js`tedir. */
.v2-fselect {
    position: relative;
}

.v2-fselect__button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
    min-width: 11rem;
    /* Arama kutusuyla aynı satırda aynı yükseklik (demo-ilk: ikisi de `input-base`, 42px). */
    height: 2.625rem;
    padding: 0 .7rem 0 .85rem;
    border: 1px solid var(--v2-line);
    border-radius: .75rem;
    background: var(--v2-surface);
    color: var(--v2-body);
    font: inherit;
    font-size: .875rem;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}

.v2-fselect__button:hover {
    background: var(--v2-hover);
    border-color: var(--v2-muted);
    color: var(--v2-ink);
}

.v2-fselect__button:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Seçim varsayılandan ("Tümü") farklıysa çerçeve belirgin olsun ki aktif filtre fark edilsin.
   Yeni renk yok: V2 info token'ları kullanılır (açık/koyu temada da okunur). */
.v2-fselect.is-filtered .v2-fselect__button {
    border-color: var(--v2-info-ink);
    box-shadow: 0 0 0 2px var(--v2-info-bg);
}

.v2-fselect.is-filtered .v2-fselect__value {
    color: var(--v2-info-ink);
    font-weight: 600;
}

/* Paylaşılan filtre çubuğundaki alanlar (select/input): değer varsayılan değilse aynı vurgu. */
.v2-filterbar__field.is-filtered .v2-filterbar__control {
    border-color: var(--v2-info-ink);
    box-shadow: 0 0 0 2px var(--v2-info-bg);
}

.v2-fselect__text {
    display: inline-flex;
    align-items: baseline;
    gap: .3rem;
    min-width: 0;
}

.v2-fselect__label {
    color: var(--v2-muted);
}

.v2-fselect__value {
    color: var(--v2-ink);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-fselect__chevron {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: var(--v2-muted);
    transition: transform .15s;
}

.v2-fselect.is-open .v2-fselect__chevron {
    transform: rotate(180deg);
}

/* Tahakkuk tarihi kutusu: klavyeyle yazılabilen metin + daha önce girilmiş tarihlerin öneri paneli.
   Panel, avatar/filtre menüsünün .v2-fselect__item dilini kullanır; yalnız konum ve kutunun çapası yenidir. */
.v2-datesuggest {
    position: relative;
}

/* Metin kutusu + takvim düğmesi: görünmez native date girdisi düğmenin üstünde durur; metin kutusunun
   sağında düğme için boşluk bırakılır. */
.v2-datebox {
    position: relative;
    display: block;
}

.v2-datebox>.input-base {
    padding-right: 1.85rem;
}

/* Akıllı tarih kutusu: kutunun kendisi çerçeveli sarmalayıcıdır. İçindeki girdi çerçevesizdir ve dönemin
   sabitlediği kuyruk (".2025" / ".01.2026") kutunun İÇİNDE, koyu ve kalıcı metin olarak durur (okunur,
   yazılamaz). Takvim düğmesi kutunun sağındaki boşlukta kalır. */
.v2-datebox--smart {
    /* Kutunun kendisi içeriğe göre daralır: "gg" yazan alan hücre genişliğine yayılmaz. */
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--v2-line);
    border-radius: .75rem;
    background: var(--v2-input-bg);
    padding: .375rem 1.85rem .375rem .5rem;
    transition: border-color .15s, box-shadow .15s;
}

.v2-datebox--smart:focus-within {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgb(224 231 255 / .8);
}

.v2-datebox--smart.is-warning {
    border-color: #f87171;
}

.v2-datebox--smart>.v2-datebox__field {
    display: flex;
    align-items: center;
    gap: .1rem;
    flex: 1 1 auto;
    min-width: 0;
}

.v2-datebox--smart>.v2-datebox__field>.input-base {
    /* Girdinin kendi genişliği (20 karakter) yerine maskeye sığan dar bir alan: "gg" → 1.6rem,
       "gg.aa" → 3.4rem; tarayıcı birkaç piksel payı için min-width korunur. */
    flex: 0 0 auto;
    width: 1.6rem;
    min-width: 1.6rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--v2-ink);
    font-weight: 600;
}

.v2-datebox--smart>.v2-datebox__field>.input-base[data-v2-datemask="dd.mm"] {
    width: 3.4rem;
    min-width: 3.4rem;
}

.v2-datebox__suffix {
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.25rem;
    color: var(--v2-ink);
    white-space: nowrap;
    user-select: none;
}

.v2-datebox__pick {
    position: absolute;
    top: 50%;
    right: .3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    transform: translateY(-50%);
    color: var(--v2-muted);
    pointer-events: none;
}

.v2-datebox__pick svg {
    width: 1rem;
    height: 1rem;
}

.v2-datebox__native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    opacity: 0;
    cursor: pointer;
    pointer-events: auto;
}

/* Panel `position: fixed`tur: tablo sarmalayıcısının overflow'unda kırpılmaz; sol/üst ve genişlik
   v2-dropdown.js tarafından odaktaki kutunun altına konumlandırılır. */
.v2-datesuggest__panel {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 60;
    max-height: 14rem;
    overflow-y: auto;
    padding: .35rem;
    border: 1px solid var(--v2-line);
    border-radius: .75rem;
    background: var(--v2-surface);
    color: var(--v2-ink);
    box-shadow: 0 22px 48px -24px rgba(15, 23, 42, .55);
}

.v2-datesuggest__panel[hidden] {
    display: none;
}

.v2-datesuggest__panel .v2-fselect__item {
    width: 100%;
    justify-content: flex-start;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.v2-fselect__panel {
    position: absolute;
    top: calc(100% + .4rem);
    right: 0;
    z-index: 40;
    min-width: 100%;
    max-height: 18rem;
    overflow-y: auto;
    padding: .5rem;
    border: 1px solid var(--v2-line);
    border-radius: .85rem;
    background: var(--v2-surface);
    color: var(--v2-ink);
    box-shadow: 0 22px 48px -24px rgba(15, 23, 42, .55);
}

.v2-fselect__panel[hidden] {
    display: none;
}

.v2-fselect__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
    padding: .5rem;
    border-radius: .55rem;
    color: var(--v2-body);
    font-size: .84rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.v2-fselect__item:hover {
    background: var(--v2-hover);
    color: var(--v2-ink);
}

.v2-fselect__item:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 1px;
}

/* Seçili öğe: avatar menüsündeki aktif tema gibi belirgin (V2 info token'ları). */
.v2-fselect__item.is-active {
    background: var(--v2-info-bg);
    color: var(--v2-info-ink);
    font-weight: 600;
}

.v2-fselect__item svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

/* ---- Arama kutusu + popup liste: paylaşılan `_V2Picker` ----
   Buton ve panel, avatar/filtre menüsünün (.v2-fselect) diliyle aynıdır; yalnız arama kutusu, "Sadece
   aktifler" anahtarı ve pasif satırın soluk hâli yenidir. Yeni renk tanımlanmaz: V2 token'ları kullanılır. */
.v2-picker {
    position: relative;
}

.v2-picker__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
    width: 100%;
    height: 2.625rem;
    padding: 0 .7rem 0 .85rem;
    border: 1px solid var(--v2-line);
    border-radius: .75rem;
    background: var(--v2-surface);
    color: var(--v2-body);
    font: inherit;
    font-size: .875rem;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}

.v2-picker__button:hover {
    background: var(--v2-hover);
    border-color: var(--v2-muted);
    color: var(--v2-ink);
}

.v2-picker__button:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.v2-picker.is-open .v2-fselect__chevron {
    transform: rotate(180deg);
}

.v2-picker__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--v2-ink);
    font-weight: 600;
}

/* Panel `position: fixed`tir: kartın (`.card.overflow-hidden`) veya tablo kabının `overflow`unda kırpılmaz
   — kısa kartlarda liste tam görünür. Sol/üst ve genişlik `v2-dropdown.js` picker motoru tarafından butonun
   altına konumlandırılır (`.v2-datesuggest__panel` ile aynı desen). */
.v2-picker__panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    min-width: 12rem;
    padding: .5rem;
    border: 1px solid var(--v2-line);
    border-radius: .85rem;
    background: var(--v2-surface);
    color: var(--v2-ink);
    box-shadow: 0 22px 48px -24px rgba(15, 23, 42, .55);
}

.v2-picker__panel[hidden] {
    display: none;
}

.v2-picker__head {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: .1rem .1rem .5rem;
    margin-bottom: .35rem;
    border-bottom: 1px solid var(--v2-line);
}

.v2-picker__search {
    width: 100%;
    height: 2.25rem;
    font-size: .85rem;
}

.v2-picker__switch {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    color: var(--v2-muted);
    cursor: pointer;
    user-select: none;
}

.v2-picker__switch-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.v2-picker__switch-track {
    position: relative;
    display: inline-block;
    width: 1.9rem;
    height: 1.05rem;
    border-radius: 999px;
    background: var(--v2-line);
    transition: background-color .15s;
}

.v2-picker__switch-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: .8rem;
    height: .8rem;
    border-radius: 50%;
    background: var(--v2-surface);
    transition: transform .15s;
}

.v2-picker__switch-input:checked+.v2-picker__switch-track {
    background: var(--v2-info-ink);
}

.v2-picker__switch-input:checked+.v2-picker__switch-track::after {
    transform: translateX(.85rem);
}

.v2-picker__switch-input:focus-visible+.v2-picker__switch-track {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.v2-picker__list {
    max-height: 15rem;
    overflow-y: auto;
}

.v2-picker__item {
    width: 100%;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    white-space: normal;
}

/* `hidden` KAZANIR. Satır `.v2-fselect__item` sınıfını da taşır ve o kural `display: flex` verir; tarayıcının
   kendi `[hidden] { display: none }` kuralı bir yazar kuralına yenildiği için, bu satır olmadan
   `item.hidden = true` (arama daraltması ve "Sadece aktifler" anahtarı) görsel olarak hiçbir şey yapmazdı. */
.v2-picker__item[hidden] {
    display: none;
}

/* Pasif kayıt soluk görünür ama seçilebilir (yalnız "Sadece aktifler" açıkken listeden düşer). */
.v2-picker__item.is-inactive {
    opacity: .55;
}

.v2-picker__item.is-inactive.is-active {
    opacity: 1;
}

.v2-picker__item-body {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}

.v2-picker__item-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.v2-picker__sub {
    color: var(--v2-muted);
    font-size: .74rem;
    font-weight: 400;
}

.v2-picker__check {
    visibility: hidden;
}

.v2-picker__item.is-active .v2-picker__check {
    visibility: visible;
}

.v2-picker__empty {
    margin: 0;
    padding: .75rem .5rem;
    color: var(--v2-muted);
    font-size: .82rem;
    text-align: center;
}

.v2-picker__empty[hidden] {
    display: none;
}

@media (max-width: 700px) {
    .v2-mk-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .v2-mk-toolbar__filters {
        align-items: stretch;
        flex-direction: column;
    }

    .v2-fselect,
    .v2-fselect__button {
        width: 100%;
    }

    .v2-fselect__panel {
        right: auto;
        left: 0;
    }
}

/* ---- V2: tek kutuluk canlı arama (personel) — düğme yok, yazdıkça daralır ---- */
.v2-list-search {
    margin-bottom: 1rem;
}

.v2-list-search .v2-mk-toolbar__search {
    width: 100%;
}

.v2-list-search .v2-mk-toolbar__input {
    padding-right: 1rem;
}

/* ---- V2: mükellef filtresi — arama esnek, Durum/Tür/Filtrele aynı satırda ----
   Arbitrary Tailwind grid sınıfları derlenmiş demo.css'te yok; bu yüzden düzen burada açıkça
   tanımlanır. Mobilde tek kolon, 768px üzerinde tek satır. */
.v2-clients-filter {
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 1rem;
}

.v2-clients-filter>input,
.v2-clients-filter>select {
    width: 100%;
}

@media (min-width: 768px) {
    .v2-clients-filter {
        grid-template-columns: minmax(0, 1fr) 11rem 12rem auto;
        align-items: center;
    }
}

/* ---- V2: mükellef tablosu — zebra YOK; tüm satırlar beyaz, hover demo-ilk'in indigo-50/40 tonu.
   Global zebra kuralından (.table tbody tr:nth-child(odd)) daha güçlü seçici gerekir. ---- */
.v2-mk-table {
    min-width: 900px;
}

.v2-mk-table thead tr {
    background: rgba(248, 250, 252, .6);
    border-bottom: 1px solid #f1f5f9;
}

.v2-mk-table__head th {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.table.v2-mk-table tbody tr,
.table.v2-mk-table tbody tr:nth-child(odd) {
    background: var(--v2-surface);
    transition: background-color .15s;
}

.table.v2-mk-table tbody tr+tr {
    border-top: 1px solid var(--v2-line);
}

.table.v2-mk-table tbody tr:hover {
    background: color-mix(in srgb, var(--v2-info-bg) 40%, var(--v2-surface));
}

.table.v2-mk-table tbody tr:hover .v2-client-cell__text a {
    color: var(--v2-info-ink);
}

/* Tür chip'i: demo-ilk'in rounded-full + ring görünümü; renkler V2 token'larından gelir. */
.v2-type-chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .6rem;
    border-radius: 9999px;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 20%, transparent);
}

.v2-type-chip--indigo {
    background: var(--v2-info-bg);
    color: var(--v2-info-ink);
}

.v2-type-chip--emerald {
    background: var(--v2-ok-bg);
    color: var(--v2-ok-ink);
}

.v2-type-chip--amber {
    background: var(--v2-warn-bg);
    color: var(--v2-warn-ink);
}

.v2-type-chip--rose {
    background: var(--v2-danger-bg);
    color: var(--v2-danger-ink);
}

.v2-type-chip--slate {
    background: var(--v2-muted-bg);
    color: var(--v2-muted-ink);
}

.v2-mk-muted {
    color: var(--v2-muted);
}

/* ---- V2: canlı liste filtresi (v2-live-filter.js) ----
   İstek sürerken bölge sönükleşir; eski içerik yerinde kaldığı için yükseklik değişmez, layout zıplamaz. */
[data-v2-live-filter-region] {
    transition: opacity .15s ease;
}

[data-v2-live-filter-region].is-loading {
    opacity: .5;
    pointer-events: none;
}

/* ---- V2: mükellef hücresi — iki harfli yuvarlak avatar + ünvan/VKN satırı ---- */
.v2-client-cell {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
}

/* Satır avatarı: aynı hue değişkenleriyle gradient — düz gri daire kalmaz. Renk baş harflerden
   türetildiği için aynı ünvan her zaman aynı gradyanı alır. */
.v2-client-avatar {
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsl(var(--av-h, 239) 84% 62%), hsl(var(--av-h2, 262) 78% 52%));
    color: #fff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .18);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.v2-client-cell__text {
    min-width: 0;
}

/* ---- V2: canlı arama öneri listesi (v2-autocomplete.js) ----
   `position: fixed` betik tarafından ayarlanır; burada yalnız görünüm tanımlanır. */
.v2-ac {
    z-index: 60;
    max-height: 22rem;
    overflow-y: auto;
    padding: .35rem;
    border: 1px solid var(--v2-line);
    border-radius: .7rem;
    background: var(--v2-surface);
    box-shadow: 0 20px 40px -24px rgba(15, 23, 42, .45);
}

.v2-ac__group {
    padding: .45rem .6rem .25rem;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--v2-muted);
}

.v2-ac__item {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding: .45rem .6rem;
    border-radius: .5rem;
    text-decoration: none;
    color: inherit;
}

.v2-ac__item.is-active,
.v2-ac__item:hover {
    background: var(--v2-hover);
}

.v2-ac__label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--v2-ink);
}

.v2-ac__sub {
    font-size: .72rem;
    color: var(--v2-muted);
}

.v2-ac__empty {
    padding: .8rem .6rem;
    font-size: .8rem;
    color: var(--v2-muted);
}

.v2-ac__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: .25rem;
    padding: .5rem .6rem;
    border-top: 1px solid var(--v2-line);
    font-size: .72rem;
    color: var(--v2-muted);
}

.v2-ac__all {
    font-weight: 700;
    color: #4f46e5;
    text-decoration: none;
}

.v2-ac__all:hover {
    text-decoration: underline;
}

/* ---- V2: Genel Bakış (dashboard) — demo-ilk düzeni ----

   Hero, altı büyük KPI kartı, iki grafik kartı, iki liste kartı ve dört alt istatistik kartı.
   Tüm renkler mevcut --v2-* değişkenlerinden gelir; gradyan yalnız hero'da sabittir. JS yok. */
.v2-dash {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Demo-ilk KPI renkleri: her kartın ikon zemini ve glow gradyanı birebir aynıdır. */
.v2-dash-tone--indigo,
.v2-dash-tone--info {
    --tone-bg: #e0e7ff;
    --tone-ink: #4f46e5;
    --tone-from: #6366f1;
    --tone-to: #8b5cf6;
}

.v2-dash-tone--violet {
    --tone-bg: #ede9fe;
    --tone-ink: #7c3aed;
    --tone-from: #8b5cf6;
    --tone-to: #d946ef;
}

.v2-dash-tone--sky,
.v2-dash-tone--warn {
    --tone-bg: #e0f2fe;
    --tone-ink: #0284c7;
    --tone-from: #0ea5e9;
    --tone-to: #6366f1;
}

.v2-dash-tone--amber,
.v2-dash-tone--danger {
    --tone-bg: #fef3c7;
    --tone-ink: #d97706;
    --tone-from: #f59e0b;
    --tone-to: #f97316;
}

.v2-dash-tone--emerald,
.v2-dash-tone--ok {
    --tone-bg: #d1fae5;
    --tone-ink: #059669;
    --tone-from: #10b981;
    --tone-to: #14b8a6;
}

.v2-dash-tone--rose {
    --tone-bg: #ffe4e6;
    --tone-ink: #e11d48;
    --tone-from: #f43f5e;
    --tone-to: #ec4899;
}

.v2-dash .menu-icon[hidden] {
    display: inline-flex;
}

/* ---- hero ---- */
.v2-dash-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    padding: 1.5rem;
    color: #fff;
    background: linear-gradient(to right, #4f46e5, #7c3aed, #c026d3);
    box-shadow: 0 12px 32px -12px rgba(76, 29, 149, .28);
}

.v2-dash-hero__grid {
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image:
        linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.v2-dash-hero__row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.v2-dash-hero__eyebrow {
    font-size: 13px;
    font-weight: 500;
    color: #e0e7ff;
}

.v2-dash-hero__title {
    margin-top: 2px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.025em;
}

.v2-dash-hero__lead {
    margin-top: 4px;
    font-size: 13px;
    color: #e0e7ff;
}

.v2-dash-hero__pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
    backdrop-filter: blur(6px);
}

.v2-dash-hero__pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: none;
    color: #6ee7b7;
}

.v2-dash-hero__pill-icon .menu-icon[hidden] {
    display: inline-flex;
}

.v2-dash-hero__pill-icon svg {
    width: 24px;
    height: 24px;
}

.v2-dash-hero__pill-label {
    font-size: 11px;
    color: #e0e7ff;
}

.v2-dash-hero__pill-value {
    font-size: 16px;
    font-weight: 700;
}

/* ---- KPI kartları ---- */
.v2-dash-kpis {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
    .v2-dash-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .v2-dash-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.v2-dash-kpi {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    border: 1px solid #e2e8f0b3;
    border-radius: 1rem;
    background: var(--v2-surface);
    box-shadow: 0 1px 2px 0 rgba(15, 23, 42, .05), 0 1px 3px 0 rgba(15, 23, 42, .06);
}

.v2-dash-kpi__glow {
    position: absolute;
    top: -2.5rem;
    right: -2rem;
    width: 6rem;
    height: 6rem;
    border-radius: 999px;
    background: linear-gradient(to bottom right, var(--tone-from), var(--tone-to));
    filter: blur(40px);
    opacity: .1;
    pointer-events: none;
}

.v2-dash-kpi__top {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.v2-dash-kpi__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #94a3b8;
}

.v2-dash-kpi__value {
    margin-top: .5rem;
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.025em;
    color: #0f172a;
}

.v2-dash-kpi__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 2.75rem;
    border-radius: .75rem;
    background: var(--tone-bg);
    color: var(--tone-ink);
}

.v2-dash-kpi__icon .menu-icon[hidden] {
    display: inline-flex;
}

.v2-dash-kpi__icon svg {
    width: 20px;
    height: 20px;
}

.v2-dash-kpi__sub {
    position: relative;
    display: flex;
    align-items: center;
    gap: .375rem;
    margin-top: .75rem;
    font-size: 12px;
    color: #64748b;
}

/* ---- "Bugünkü İşler" kartının toplu işlem menüsü ----------------------------------------------
   İkon bir <summary>dür: menü JavaScript kapalıyken de açılır (D10). Panel, avatar/filtre menüsünün
   mevcut .v2-fselect__panel dilini kullanır; hiçbir yeni renk tanımlanmaz. */
.v2-dash-kpi__menu {
    flex: 0 0 auto;
}

.v2-dash-kpi__menu>summary {
    list-style: none;
    cursor: pointer;
}

.v2-dash-kpi__menu>summary::-webkit-details-marker {
    display: none;
}

.v2-dash-kpi__menu>summary:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.v2-dash-kpi__menu .v2-fselect__panel {
    min-width: 12rem;
    max-height: 20rem;
}

.v2-dash-kpi__menu-form {
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* .v2-fselect__item bir bağlantı için yazılmıştır; düğme olarak aynı görünümü korur. */
.v2-dash-kpi__menu-form .v2-fselect__item {
    width: 100%;
    border: 0;
    background: none;
    font: inherit;
    font-size: .84rem;
    text-align: left;
    cursor: pointer;
}

.v2-dash-kpi__menu .v2-card-head__meta {
    padding: .25rem .5rem;
    font-weight: 600;
}

/* Kart normalde süslemeyi kırpmak için `overflow: hidden`dır; menü açıkken panel dışarı taşabilsin. */
.v2-dash-kpi:has(.v2-dash-kpi__menu[open]) {
    overflow: visible;
    z-index: 30;
}

/* ---- grafik kartları ---- */
.v2-dash-charts {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
    .v2-dash-charts {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }
}

.v2-dash-chart-card {
    overflow: hidden;
}

.v2-dash-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem .75rem;
    border-bottom: 1px solid #e2e8f0b3;
}

/* Liste kartları (Yaklaşan Beyannameler / Son İşlemler): demo kartındaki gibi zeminsiz,
   çizgisiz ve köşesiz başlık. Gri şerit yalnız liste sayfalarının eski başlığında kalır. */
.v2-dash-list-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0;
    background: transparent;
    border-bottom: 0;
}

.v2-dash-list-head h2 {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.v2-dash-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.v2-dash-card-sub {
    margin-top: 2px;
    font-size: 12px;
    color: #64748b;
}

.v2-dash-chart-body {
    padding: 1.25rem;
}

.v2-dash-chart {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.v2-dash-chart__axis {
    stroke: #e2e8f0;
    stroke-width: 1;
}

.v2-dash-chart__grid {
    stroke: #e2e8f0;
    stroke-width: 1;
    stroke-dasharray: 3 3;
}

.v2-dash-chart__bar {
    fill: #818cf8;
}

.v2-dash-chart__line {
    fill: none;
    stroke: #8b5cf6;
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.v2-dash-chart__dot {
    fill: #8b5cf6;
    stroke: var(--v2-surface);
    stroke-width: 1.5;
}

.v2-dash-chart__label {
    fill: #94a3b8;
    font-size: 11px;
    font-weight: 400;
}

.v2-dash-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.v2-dash-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.v2-dash-legend__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: #94a3b8;
}

.v2-dash-legend__dot--documents,
.v2-dash-legend__dot--info {
    background: #6366f1;
}

.v2-dash-legend__dot--tasks,
.v2-dash-legend__dot--violet {
    background: #8b5cf6;
}

.v2-dash-legend__dot--ok {
    background: #10b981;
}

.v2-dash-legend__dot--warn {
    background: #f59e0b;
}

.v2-dash-legend__dot--danger {
    background: #f43f5e;
}

.v2-dash-donut-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.v2-dash-donut {
    width: 8.5rem;
    height: 8.5rem;
    flex: 0 0 8.5rem;
}

.v2-dash-donut__track,
.v2-dash-donut__slice {
    fill: none;
    stroke-width: 18;
    transform: rotate(-90deg);
    transform-origin: 80px 80px;
}

.v2-dash-donut__track {
    stroke: var(--v2-line);
}

.v2-dash-donut__slice--info {
    stroke: #6366f1;
}

.v2-dash-donut__slice--violet {
    stroke: #8b5cf6;
}

.v2-dash-donut__slice--ok {
    stroke: #10b981;
}

.v2-dash-donut__slice--warn {
    stroke: #f59e0b;
}

.v2-dash-donut__slice--danger {
    stroke: #f43f5e;
}

.v2-dash-donut__total {
    fill: var(--v2-ink);
    font-size: 22px;
    font-weight: 800;
}

.v2-dash-donut__caption {
    fill: var(--v2-muted);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.v2-dash-legend-list {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.v2-dash-legend-list__row {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .76rem;
    color: var(--v2-muted);
}

.v2-dash-legend-list__label {
    flex: 1;
    min-width: 0;
    color: var(--v2-ink);
    font-weight: 600;
}

.v2-dash-legend-list__value {
    font-weight: 700;
    color: var(--v2-ink);
}

.v2-dash-legend-list__percent {
    width: 2.6rem;
    text-align: right;
    color: var(--v2-muted);
}

/* ---- liste kartları ---- */
.v2-dash-panels {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
    .v2-dash-panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.v2-dash-list,
.v2-dash-activity {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.v2-dash-decl {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .65rem .8rem;
    border: 1px solid var(--v2-line);
    border-radius: .75rem;
    background: var(--v2-surface);
    transition: border-color .15s ease, background-color .15s ease;
}

.v2-dash-decl.is-today {
    border-color: #a5b4fc;
    background: color-mix(in srgb, var(--v2-info-bg) 55%, var(--v2-surface));
}

.v2-dash-decl.is-overdue {
    border-color: #fda4af;
    background: color-mix(in srgb, var(--v2-danger-bg) 55%, var(--v2-surface));
}

.v2-dash-decl__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    border-radius: .6rem;
    background: var(--v2-muted-bg);
    color: var(--v2-muted);
    line-height: 1;
}

.v2-dash-decl__date.is-today {
    background: var(--v2-info-bg);
    color: var(--v2-info-ink);
}

.v2-dash-decl__date.is-overdue {
    background: var(--v2-danger-bg);
    color: var(--v2-danger-ink);
}

.v2-dash-decl__day {
    font-size: 1rem;
    font-weight: 800;
}

.v2-dash-decl__month {
    margin-top: .1rem;
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
}

.v2-dash-decl__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.v2-dash-decl__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .8rem;
    font-weight: 700;
    color: var(--v2-ink);
}

.v2-dash-decl__sub {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: .1rem;
    font-size: .7rem;
    color: var(--v2-muted);
}

.v2-dash-decl__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .25rem;
    flex: 0 0 auto;
}

.v2-dash-decl__remaining {
    font-size: .68rem;
    font-weight: 700;
    color: var(--v2-muted);
}

.v2-dash-decl__remaining.is-today {
    color: var(--v2-info-ink);
}

.v2-dash-decl__remaining.is-late {
    color: var(--v2-danger-ink);
}

.v2-dash-activity__row {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .55rem .35rem;
    border-radius: .6rem;
}

.v2-dash-activity__row:hover {
    background: var(--v2-surface-2);
}

.v2-dash-activity__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border-radius: .6rem;
    background: var(--tone-bg);
    color: var(--tone-ink);
}

.v2-dash-activity__icon .menu-icon[hidden] {
    display: inline-flex;
}

.v2-dash-activity__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.v2-dash-activity__title {
    font-size: .8rem;
    font-weight: 700;
    color: var(--v2-ink);
}

.v2-dash-activity__detail {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: .05rem;
    font-size: .72rem;
    color: var(--v2-muted);
}

.v2-dash-activity__time {
    flex: 0 0 auto;
    font-size: .68rem;
    color: var(--v2-muted);
}

/* ---- alt istatistik kartları ---- */
.v2-dash-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
    .v2-dash-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .v2-dash-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.v2-dash-stat {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1rem;
}

.v2-dash-stat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    flex: 0 0 2.4rem;
    border-radius: .7rem;
    background: var(--tone-bg);
    color: var(--tone-ink);
}

.v2-dash-stat__icon .menu-icon[hidden] {
    display: inline-flex;
}

.v2-dash-stat__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.v2-dash-stat__label {
    font-size: .7rem;
    font-weight: 600;
    color: var(--v2-muted);
}

.v2-dash-stat__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: .1rem;
    font-size: .8rem;
    font-weight: 800;
    color: var(--v2-ink);
}

/* ---- hızlı bağlantılar (ofis paneli) ---- */
.v2-dash-quick {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.v2-dash-quick__item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem;
    border: 1px solid var(--v2-line);
    border-radius: .7rem;
    background: var(--v2-surface);
    text-decoration: none;
    transition: border-color .15s ease;
}

.v2-dash-quick__item:hover {
    border-color: #a5b4fc;
}

.v2-dash-quick__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border-radius: .55rem;
    background: var(--tone-bg);
    color: var(--tone-ink);
}

.v2-dash-quick__icon .menu-icon[hidden] {
    display: inline-flex;
}

.v2-dash-quick__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.v2-dash-quick__title {
    font-size: .8rem;
    font-weight: 700;
    color: var(--v2-ink);
}

.v2-dash-quick__sub {
    font-size: .7rem;
    color: var(--v2-muted);
}

.v2-dash-empty {
    padding: 2rem 1rem;
    text-align: center;
    font-size: .8rem;
    color: var(--v2-muted);
}

/* ---- V2: detay kartlarındaki satır eylemleri (Düzenle / Sil / Kopar) ---- */
.v2-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
}

.v2-row-actions__form {
    display: inline-flex;
    margin: 0;
}

.v2-row-actions__button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: .75rem;
    font-weight: 600;
    color: var(--v2-info-ink);
    cursor: pointer;
}

.v2-row-actions__button:hover {
    text-decoration: underline;
}

.v2-row-actions__button--danger {
    color: var(--v2-danger-ink);
}

/* ---- V2: /v2/ara sonuçları — mükellef ve personel kartları arayla ---- */
.v2-search-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (prefers-reduced-motion: reduce) {

    .v2-dash-decl,
    .v2-dash-quick__item {
        transition: none;
    }
}

/* Serbest not: girilen satir sonlari korunur. */
.v2-notes {
    white-space: pre-line;
}

/* ---- V2 giriş formu: gönderim sırasında ilerleme + kilit ---- */
.v2-login-form.is-submitting {
    pointer-events: none;
    opacity: .85;
}

.v2-login-form.is-submitting [data-v2-login-submit] {
    cursor: progress;
}

.v2-login-form.is-submitting .v2-login-spinner {
    display: inline-block;
}

.v2-login-spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    animation: v2-login-spin .7s linear infinite;
}

.v2-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes v2-login-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .v2-login-spinner {
        animation-duration: 1.6s;
    }
}