html { scroll-behavior: smooth; }
:root {
    --green-primary: #059669;
    --green-primary-light: #10b981;
    --green-soft: #dcfce7;
    --green-soft-strong: #bbf7d0;
    --green-text: #059669;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #f8fbff 0%, #f5f7fb 100%);
    color: #0f172a;
}

a { color: inherit; }

.app-shell {
    min-height: 100vh;
    display: flex;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 39;
}

.sidebar-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-right: 1px solid #e2e8f0;
    padding: 24px 18px;
    transform: translateX(-100%);
    transition: transform .22s ease;
    z-index: 40;
    overflow-y: auto;
}

.sidebar.is-open {
    transform: translateX(0);
}

.brand {
    margin-bottom: 48px;
}

.brand-logo-link {
    display: block;
    border-radius: 14px;
    overflow: visible;
    position: relative;
}

.brand-logo {
    display: block;
    width: 85%;
    margin: 0 auto;
    height: auto;
    animation: brandLogoPulse 2.8s ease-in-out infinite;
    transform-origin: center center;
    filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.1));
    transition: filter .25s ease, opacity .25s ease;
}

.brand-logo-link:hover .brand-logo {
    filter: drop-shadow(0 12px 20px rgba(15, 23, 42, 0.18));
}

.brand-logo-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, 0.5) 50%, transparent 62%);
    transform: translateX(-140%);
    animation: brandLogoShine 3.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes brandLogoPulse {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.1));
    }
    50% {
        transform: translateY(-2px);
        filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.16));
    }
}

@keyframes brandLogoShine {
    0% {
        transform: translateX(-140%);
    }
    60%,
    100% {
        transform: translateX(140%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-logo {
        animation: none;
    }
    .brand-logo-link::after {
        animation: none;
    }
}

.brand-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0f766e;
    background: #ecfeff;
    border: 1px solid #ccfbf1;
    border-radius: 999px;
    padding: 6px 10px;
}

.brand-title {
    margin: 14px 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.brand-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
}

.nav-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.nav-list {
    display: grid;
    gap: 8px;
}

.nav-sep {
    height: 1px;
    margin: 6px 4px;
    border: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(148, 163, 184, 0.2) 18%,
        rgba(148, 163, 184, 0.45) 50%,
        rgba(148, 163, 184, 0.2) 82%,
        transparent 100%
    );
    pointer-events: none;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 14px;
    color: #475569;
    background: transparent;
    border: 1px solid transparent;
    transition: all .18s ease;
}

.nav-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #0f172a;
}

.nav-item.is-active {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border-color: #bfdbfe;
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(148, 163, 184, 0.14);
}

.nav-item-label {
    font-weight: 600;
}

.nav-item-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #cbd5e1;
    flex-shrink: 0;
}

.nav-item.is-active .nav-item-dot {
    background: var(--green-primary-light);
}

.nav-item--income {
    color: var(--green-text);
}

.nav-item--income:hover {
    background: rgba(220, 252, 231, 0.55);
    border-color: var(--green-soft-strong);
    color: #047857;
}

.nav-item--income.is-active {
    background: linear-gradient(135deg, var(--green-soft) 0%, #ecfdf5 100%);
    border-color: var(--green-soft-strong);
    color: #065f46;
    box-shadow: 0 10px 22px rgba(5, 150, 105, 0.14);
}

.nav-item--income.is-active .nav-item-dot {
    background: var(--green-primary);
}

.nav-item--expense {
    color: #b91c1c;
}

.nav-item--expense:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.nav-item--expense.is-active {
    background: linear-gradient(135deg, #fee2e2 0%, #fff7ed 100%);
    border-color: #fca5a5;
    color: #7f1d1d;
    box-shadow: 0 10px 22px rgba(185, 28, 28, 0.12);
}

.nav-item--expense.is-active .nav-item-dot {
    background: #dc2626;
}

.nav-item--settings {
    color: #64748b;
}

.nav-item--settings:hover {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}

.nav-item--settings.is-active {
    background: linear-gradient(135deg, #f1f5f9 0%, #f8fafc 100%);
    border-color: #cbd5e1;
    color: #334155;
    box-shadow: 0 10px 22px rgba(100, 116, 139, 0.12);
}

.nav-item--settings.is-active .nav-item-dot {
    background: #64748b;
}

.main-shell {
    flex: 1;
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(248, 250, 252, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.top-toast {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 90;
    min-width: 240px;
    max-width: min(420px, calc(100vw - 30px));
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .24s ease, transform .24s ease;
}

.top-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.top-toast-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-button,
.ghost-button,
.table-action {
    appearance: none;
    border: 1px solid #dbe3ee;
    background: #ffffff;
    color: #334155;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
}

.menu-button:hover,
.ghost-button:hover,
.table-action:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.topbar-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.topbar-title--income {
    color: #10b981;
}

.topbar-title--expense {
    color: #ef4444;
}

.topbar-nav-arrow {
    appearance: none;
    border: 1px solid #dbe3ee;
    background: #ffffff;
    color: #334155;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transition: opacity .16s ease, transform .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.topbar-nav-arrow:hover:not(.is-disabled) {
    color: #0f172a;
    transform: translateY(-1px);
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.topbar-nav-arrow span {
    transform: translateY(-1px);
}

.topbar-nav-arrow.is-disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
}

.topbar-date {
    font-size: 13px;
    color: #64748b;
}

.page-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 20px 36px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.page-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    min-width: 0;
}

.page-hero > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
}

.page-kicker {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #0284c7;
}

.page-title {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
}

.page-description {
    margin: 0;
    max-width: 760px;
    color: #64748b;
    line-height: 1.7;
}

.page-meta {
    flex-shrink: 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px rgba(148, 163, 184, 0.12);
}

.page-meta-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
}

.page-meta-value {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.section-stack {
    display: grid;
    gap: 18px;
}

.section-stack.section-stack--tight {
    gap: 10px;
}

.page-shell:has(.section-stack--tight) {
    padding-top: 12px;
}

.section-stack--tight .card:has(.income-list-filters),
.section-stack--tight .card:has(.expense-list-filters) {
    padding-top: 12px;
}

.income-add-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--green-primary) 0%, var(--green-primary-light) 100%);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.25);
}

.income-add-row:hover {
    filter: brightness(1.03);
}

.report-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.report-back-link--income {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.report-back-link--expense {
    background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
}

.report-back-link:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.expense-add-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border-radius: 14px;
    background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.28);
}

.expense-add-row:hover {
    filter: brightness(1.03);
}

.grid {
    display: grid;
    gap: 18px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 16px 38px rgba(148, 163, 184, 0.1);
}

.card-muted {
    background: rgba(248, 250, 252, 0.9);
}

.card-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.card-text {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
}

/* ——— Ayarlar sayfası ——— */
.page-hero--settings {
    background: linear-gradient(165deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 55%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 22px 24px 26px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.page-hero--settings .page-title {
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    letter-spacing: -0.03em;
}

.page-hero--settings .page-description {
    margin-top: 0.5rem;
    max-width: 52ch;
    line-height: 1.65;
    color: #64748b;
}

.page-hero--settings .page-hero-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 28px;
    flex-wrap: wrap;
    width: 100%;
}

.page-hero--settings .page-hero-settings-copy {
    flex: 1 1 280px;
    min-width: 0;
}

.page-hero--settings .page-hero-settings-cta {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.page-hero--settings .page-hero-settings-cta--new {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    text-align: right;
}

.page-hero-new-group-lead {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #6d28d9;
    max-width: 22ch;
    line-height: 1.35;
}

.page-hero-new-group-settings-btn {
    min-width: 120px;
}

.settings-new-group-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 2px dashed #c4b5fd;
    background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%);
    color: #5b21b6;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.04em;
    max-width: 320px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.06s ease;
}

.settings-new-group-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 8px 24px rgba(91, 33, 182, 0.12);
}

.settings-new-group-card-plus {
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 700;
    color: #7c3aed;
}

.settings-new-group-card-text {
    line-height: 1.35;
}

/* Hesap grupları listesinin altı: kullanıcı yönetimine yönlendirme */
.settings-subnav {
    margin-top: 4px;
}

.settings-subnav-inner {
    display: flex;
    align-items: center;
    gap: 16px 20px;
    flex-wrap: wrap;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid #e0e7ff;
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 55%, #faf5ff 100%);
    box-shadow: 0 8px 28px rgba(79, 70, 229, 0.08);
}

.settings-subnav--users .settings-subnav-icon,
.settings-subnav--excel .settings-subnav-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #fff;
    color: #5b21b6;
    border: 1px solid #e9d5ff;
    box-shadow: 0 2px 8px rgba(91, 33, 182, 0.08);
}

.settings-subnav--excel .settings-subnav-icon {
    color: #0f766e;
    border-color: #99f6e4;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.1);
}

.settings-subnav-copy {
    flex: 1 1 220px;
    min-width: 0;
}

.settings-subnav-kicker {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7c3aed;
    margin-bottom: 4px;
}

.settings-subnav-title {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1e1b4b;
    margin-bottom: 4px;
}

.settings-subnav-lead {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #64748b;
    max-width: 48ch;
}

.settings-subnav-cta {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .settings-subnav-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .settings-subnav-icon {
        margin: 0 auto;
    }

    .settings-subnav-copy {
        text-align: center;
    }

    .settings-subnav-lead {
        max-width: none;
    }

    .settings-subnav-cta {
        width: 100%;
        justify-content: center;
    }
}

.settings-users-page .card {
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
}

.settings-users-card-head {
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.settings-users-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.settings-users-card-desc {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #64748b;
}

.settings-form-section-title {
    margin: 1.35rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    color: #334155;
}

.settings-users-table-wrap {
    margin-top: 0.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.settings-users-table thead {
    background: #f8fafc;
}

.settings-users-table tbody tr:hover {
    background: #fafafa;
}

.settings-users-actions {
    text-align: right;
    white-space: nowrap;
}

.btn-user-delete {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-weight: 600;
}

.btn-user-delete:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.settings-users-card-follow {
    margin-top: 1.5rem;
}

.settings-form-actions {
    margin-top: 1.25rem;
}

.settings-users-admin-hint {
    margin-top: 1rem;
}

.settings-users-delete-form {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

/* ——— Kullanıcılar listesi (index) yeniden tasarım ——— */
.settings-users-hero {
    background: linear-gradient(145deg, #f5f3ff 0%, #fafafa 48%, #ffffff 100%);
    border-color: #e9d5ff;
}

.settings-users-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1.1rem;
}

.settings-users-stat {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 11px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    min-width: 5.5rem;
    max-width: 100%;
    box-sizing: border-box;
}

.settings-users-edit-hero-stats .settings-users-stat {
    align-items: flex-start;
}

.settings-users-stat--username {
    min-width: 6.75rem;
    max-width: min(100%, 17rem);
}

.settings-users-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.15;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
}

.settings-users-edit-hero-stats .settings-users-stat-value {
    text-align: left;
    width: 100%;
}

.settings-users-stat-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.25;
    text-align: center;
    max-width: 100%;
}

.settings-users-edit-hero-stats .settings-users-stat-label {
    text-align: left;
}

.settings-users-stat--accent {
    border-color: #c4b5fd;
    background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
}

.settings-users-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.settings-users-back-link:hover {
    border-color: #c4b5fd;
    box-shadow: 0 4px 14px rgba(91, 33, 182, 0.1);
    color: #1e1b4b;
}

.settings-users-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

.settings-users-split--create-open {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
}

@media (max-width: 1060px) {
    .settings-users-split--create-open {
        grid-template-columns: 1fr;
    }

    .settings-users-create-panel {
        order: -1;
    }

    .settings-users-create-card {
        position: static;
    }
}

.settings-users-list-panel {
    min-width: 0;
}

.settings-users-list-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.settings-users-list-head-text {
    min-width: 0;
}

.settings-users-list-head .settings-users-open-create {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .settings-users-list-head {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-users-list-head .settings-users-open-create {
        width: 100%;
        justify-content: center;
    }
}

.settings-users-list-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.settings-users-list-lead {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.settings-users-cardlist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-users-cardlist-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 14px 16px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.settings-users-cardlist-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
}

.settings-users-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #5b21b6;
    background: linear-gradient(135deg, #ede9fe 0%, #f5f3ff 100%);
    border: 1px solid #ddd6fe;
    flex-shrink: 0;
}

.settings-users-cardlist-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-users-cardlist-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.settings-users-cardlist-email {
    font-size: 0.8rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-users-role-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.settings-users-role-tag--admin {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    color: #92400e;
    border-color: #fcd34d;
}

.settings-users-cardlist-action {
    flex-shrink: 0;
}

@media (max-width: 560px) {
    .settings-users-cardlist-item {
        grid-template-columns: auto 1fr;
    }

    .settings-users-role-tag {
        grid-column: 2;
        justify-self: start;
    }

    .settings-users-cardlist-action {
        grid-column: 1 / -1;
        justify-self: stretch;
        text-align: center;
    }
}

.settings-users-empty {
    text-align: center;
    padding: 2.75rem 1.5rem;
    border-radius: 18px;
    border: 2px dashed #e2e8f0;
    background: #fafafa;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.settings-users-empty-icon {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.settings-users-empty-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #334155;
}

.settings-users-empty-text {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.settings-users-empty-cta {
    margin-top: 0;
}

.settings-users-create-card {
    position: sticky;
    top: 1rem;
    border-radius: 20px;
    border: 1px solid #e0e7ff;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.1);
    padding: 20px 22px 22px;
    box-sizing: border-box;
    min-width: 0;
}

.settings-users-create-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9d5ff;
}

.settings-users-create-head-main {
    min-width: 0;
}

.settings-users-create-close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.settings-users-create-close:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

.settings-users-create-fieldset {
    border: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.settings-users-create-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5b21b6;
    background: #ede9fe;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.settings-users-create-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.02em;
}

.settings-users-create-lead {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #64748b;
}

.settings-users-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.settings-users-field-full {
    grid-column: 1 / -1;
}

.settings-users-field-hint {
    margin-top: 0.35rem;
    font-size: 0.75rem;
}

.settings-users-password-control {
    position: relative;
    display: block;
}

.settings-users-password-control .input {
    width: 100%;
    padding-right: 2.85rem;
    box-sizing: border-box;
}

.settings-users-password-toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.6rem;
    height: 2.6rem;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.15s ease,
        color 0.15s ease;
    z-index: 2;
}

.settings-users-password-toggle:hover {
    background: #f1f5f9;
    color: #334155;
}

.settings-users-password-toggle:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.settings-users-password-icon--hide[hidden],
.settings-users-password-icon--show[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .settings-users-field-grid {
        grid-template-columns: 1fr;
    }
}

.settings-users-matrix-block {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.settings-users-matrix-title {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #334155;
}

.settings-users-matrix-hint {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.45;
}

.settings-users-matrix-wrap {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    background: #fff;
}

.settings-users-index .settings-users-matrix,
.settings-users-edit .settings-users-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    table-layout: fixed;
}

.settings-users-index .settings-users-matrix th,
.settings-users-index .settings-users-matrix td,
.settings-users-edit .settings-users-matrix th,
.settings-users-edit .settings-users-matrix td {
    padding: 11px 12px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.settings-users-index .settings-users-matrix tbody th,
.settings-users-edit .settings-users-matrix tbody th {
    text-align: left;
    font-weight: 600;
    color: #334155;
    width: 52%;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: middle;
}

.settings-users-index .settings-users-matrix thead th,
.settings-users-edit .settings-users-matrix thead th {
    background: #f8fafc;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.settings-users-index .settings-users-matrix thead th:first-child,
.settings-users-edit .settings-users-matrix thead th:first-child {
    text-align: left;
    width: 52%;
}

.settings-users-index .settings-users-matrix thead th:nth-child(2),
.settings-users-index .settings-users-matrix thead th:nth-child(3),
.settings-users-edit .settings-users-matrix thead th:nth-child(2),
.settings-users-edit .settings-users-matrix thead th:nth-child(3) {
    width: 24%;
}

.settings-users-index .settings-users-matrix tbody tr:last-child th,
.settings-users-index .settings-users-matrix tbody tr:last-child td,
.settings-users-edit .settings-users-matrix tbody tr:last-child th,
.settings-users-edit .settings-users-matrix tbody tr:last-child td {
    border-bottom: none;
}

.settings-users-index .settings-users-matrix input[type="checkbox"],
.settings-users-edit .settings-users-matrix input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: #6366f1;
    cursor: pointer;
}

.settings-users-create-actions {
    margin-top: 1.25rem;
}

.settings-users-submit {
    width: 100%;
    justify-content: center;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    font-weight: 800;
}

.settings-users-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;
}

.settings-users-index .settings-users-create-form.form-panel {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

/* ——— Kullanıcı düzenle ——— */
.settings-users-edit-hero .page-hero-settings-row {
    align-items: flex-start;
}

.settings-users-edit-hero-row > .settings-users-edit-hero-profile {
    flex: 1 1 280px;
    min-width: 0;
}

.settings-users-edit-hero .page-hero-settings-cta {
    align-self: flex-start;
}

.settings-users-edit-hero-profile {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    min-width: 0;
}

.settings-users-edit-avatar {
    flex-shrink: 0;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #5b21b6;
    background: linear-gradient(145deg, #ede9fe 0%, #e0e7ff 100%);
    border: 1px solid #c4b5fd;
    box-shadow: 0 8px 24px rgba(91, 33, 182, 0.12);
}

.settings-users-edit-hero-copy {
    min-width: 0;
}

.settings-users-edit-hero-copy .page-kicker {
    display: block;
    margin-bottom: 0.2rem;
}

.settings-users-edit-hero-copy .page-title {
    margin-bottom: 0.35rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.settings-users-edit-hero-copy .page-description {
    margin-top: 0.35rem;
    max-width: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.settings-users-edit-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

.settings-users-edit-status {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.settings-users-edit-status--on {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.settings-users-edit-status--off {
    color: #b45309;
    background: #fffbeb;
    border-color: #fde68a;
}

.settings-users-edit-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    margin-top: 1.1rem;
}

.settings-users-edit-hero-stats .settings-users-stat:not(.settings-users-stat--username) {
    min-width: 5.5rem;
}

.settings-users-edit-stat-mono {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.015em;
    line-height: 1.35;
}

.settings-users-edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 28px;
    align-items: start;
}

.settings-users-edit-layout--single {
    grid-template-columns: 1fr;
}

.settings-users-edit-primary {
    min-width: 0;
}

.settings-users-edit-card {
    border-radius: 20px;
    border: 1px solid #e0e7ff;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    box-shadow: 0 12px 40px rgba(79, 70, 229, 0.08);
    padding: 20px 22px 22px;
    box-sizing: border-box;
    min-width: 0;
}

.settings-users-edit-card-head {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9d5ff;
}

.settings-users-edit-card-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5b21b6;
    background: #ede9fe;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.settings-users-edit-card-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e1b4b;
    letter-spacing: -0.02em;
}

.settings-users-edit-card-lead {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #64748b;
}

.settings-users-edit-form.form-panel {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.settings-users-edit-admin-note {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid #e0e7ff;
    background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 100%);
}

.settings-users-edit-admin-note-title {
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #4338ca;
}

.settings-users-edit-admin-note-text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #64748b;
}

.settings-users-edit-actions {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.settings-users-edit-save {
    min-width: 200px;
    font-weight: 800;
}

.settings-users-edit-aside {
    min-width: 0;
}

.settings-users-edit-danger-card {
    border-radius: 18px;
    border: 1px solid #fecaca;
    background: linear-gradient(180deg, #fffafa 0%, #ffffff 100%);
    padding: 1.25rem 1.35rem 1.4rem;
    box-shadow: 0 8px 28px rgba(185, 28, 28, 0.06);
    box-sizing: border-box;
    min-width: 0;
}

.settings-users-edit-danger-title {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #991b1b;
    letter-spacing: -0.02em;
}

.settings-users-edit-danger-lead {
    margin: 0 0 1rem;
    max-width: 42ch;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #7f1d1d;
    opacity: 0.88;
}

.settings-users-edit-delete-form {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.settings-users-edit-delete-btn {
    width: 100%;
    justify-content: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .settings-users-edit-layout:not(.settings-users-edit-layout--single) {
        grid-template-columns: 1fr;
    }

    .settings-users-edit-aside {
        order: 2;
    }

    .settings-users-edit-primary {
        order: 1;
    }
}

@media (max-width: 640px) {
    .settings-users-edit-hero-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .settings-users-edit-hero-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .settings-users-edit-hero-meta {
        justify-content: center;
    }

    .settings-users-edit-hero-stats {
        justify-content: center;
    }

    .settings-users-edit-save {
        width: 100%;
    }
}

.settings-wizard-card {
    margin-top: 0;
}

.settings-wizard-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.settings-wizard-name {
    max-width: 420px;
}

.settings-wizard-page {
    padding: 0 0 8px;
}

.settings-wizard-topbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.settings-wizard-back {
    font-size: 14px;
}

.settings-wizard-heading {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.settings-wizard-stack {
    margin-top: 0;
}

.settings-wizard-icon-block {
    padding-bottom: 4px;
}

.settings-wizard-hint {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
}

.settings-wizard-code {
    font-size: 12px;
    padding: 1px 6px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #0f172a;
}

.settings-wizard-icon-mode-row {
    margin-bottom: 10px;
}

.settings-wizard-cat-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.settings-wizard-cat-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-edit-subh {
    margin: 16px 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.settings-edit-card-title {
    font-size: 1.1rem;
    margin: 0 0 8px;
    color: #0f172a;
}

.settings-edit-vat-section {
    border-radius: 14px;
    padding: 14px 14px 16px;
    min-width: 0;
}

.settings-edit-vat-section--income {
    background: linear-gradient(160deg, #f0fdf4 0%, #ecfdf5 55%, #f7fee7 100%);
    border: 1px solid #86efac;
    box-shadow: 0 1px 0 rgba(22, 163, 74, 0.08);
}

.settings-edit-vat-section--row {
    padding: 12px 14px 14px;
}

.settings-edit-vat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    align-items: end;
}

.settings-edit-vat-grid--row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr) auto;
    gap: 12px 14px;
    align-items: end;
}

.settings-edit-vat-submit {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

.settings-edit-vat-submit .btn-income {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .settings-edit-vat-grid--row {
        grid-template-columns: 1fr;
    }

    .settings-edit-vat-submit {
        justify-self: start;
    }

    .settings-edit-vat-submit .btn-income {
        width: 100%;
        white-space: normal;
    }
}

.settings-edit-vat-section .field .settings-mini-label {
    white-space: normal;
    line-height: 1.35;
}

.settings-edit-vat-section--income .field .settings-mini-label {
    color: #166534;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.settings-edit-vat-section--income .field select,
.settings-edit-vat-section--income .field input[type="number"] {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #4ade80;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
    color: #14532d;
    font-size: 14px;
    font-weight: 600;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        inset 0 -1px 0 rgba(22, 163, 74, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.settings-edit-vat-section--income .field select {
    cursor: pointer;
}

.settings-edit-vat-section--income .field input[type="number"]::-webkit-outer-spin-button,
.settings-edit-vat-section--income .field input[type="number"]::-webkit-inner-spin-button {
    opacity: 0.65;
}

.settings-edit-vat-section--income .field input[type="number"]::placeholder {
    color: #86efac;
    font-weight: 500;
}

.settings-edit-vat-section--income .field select:hover,
.settings-edit-vat-section--income .field input[type="number"]:hover {
    border-color: #22c55e;
    background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
}

.settings-edit-vat-section--income .field select:focus,
.settings-edit-vat-section--income .field input[type="number"]:focus {
    outline: none;
    border-color: #16a34a;
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(34, 197, 94, 0.28),
        inset 0 1px 2px rgba(20, 83, 45, 0.05);
}

.settings-edit-vat-section--income .settings-input-compact {
    border-color: #4ade80;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
    color: #14532d;
    font-weight: 600;
}

.settings-edit-actions-inline {
    margin-top: 12px;
}

.settings-edit-banner {
    margin: 0 0 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
}

.settings-edit-banner--warn {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.settings-usage-hint {
    margin: 0 0 12px;
    font-size: 13px;
}

.settings-wizard-sub {
    margin: 4px 0 0;
    font-size: 14px;
    color: #64748b;
}

.settings-edit-add-form {
    margin-bottom: 12px;
}

.settings-matrix-form-shell {
    margin: 0;
    padding: 0;
    border: 0;
    min-height: 0;
}

.settings-edit-matrix-card .settings-wizard-hint {
    margin-bottom: 16px;
}

.settings-matrix-autosave-note {
    margin: 12px 0 0;
    font-size: 13px;
}

.settings-matrix-autosave-note.is-error {
    color: #b91c1c;
    font-weight: 600;
}

.settings-edit-cat-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 900px) {
    .settings-edit-cat-split {
        grid-template-columns: 1fr;
    }
}

.settings-edit-cat-panel {
    border-radius: 14px;
    padding: 14px 14px 16px;
    min-width: 0;
}

.settings-edit-cat-panel .settings-edit-matrix-wrap {
    margin-top: 8px;
}

.settings-edit-cat-panel .settings-edit-add-form {
    margin-top: 8px;
}

.settings-edit-cat-panel-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.settings-edit-cat-panel--income {
    background: linear-gradient(160deg, #f0fdf4 0%, #ecfdf5 55%, #f7fee7 100%);
    border: 1px solid #86efac;
    box-shadow: 0 1px 0 rgba(22, 163, 74, 0.1);
}

.settings-edit-cat-panel--income .settings-edit-cat-panel-title {
    color: #15803d;
}

.settings-edit-cat-panel--income .settings-edit-cat-chips .settings-wizard-chip {
    border-color: #bbf7d0;
    background: #ffffff;
    color: #166534;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
}

.settings-edit-cat-panel--income .settings-edit-cat-chips .settings-wizard-chip:hover {
    background: #dcfce7;
    border-color: #4ade80;
    color: #14532d;
}

.settings-edit-cat-panel--expense {
    background: linear-gradient(160deg, #fff1f2 0%, #fef2f2 55%, #fff7ed 100%);
    border: 1px solid #fca5a5;
    box-shadow: 0 1px 0 rgba(220, 38, 38, 0.09);
}

.settings-edit-cat-panel--expense .settings-edit-cat-panel-title {
    color: #b91c1c;
}

.settings-edit-cat-panel--expense .settings-edit-cat-chips .settings-wizard-chip {
    border-color: #fecaca;
    background: #ffffff;
    color: #991b1b;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
}

.settings-edit-cat-panel--expense .settings-edit-cat-chips .settings-wizard-chip:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #7f1d1d;
}

/* Öneri chip’leri: satırı sayfa genişliğine yay, daha büyük dokunma alanı, tıklamada his */
.settings-edit-cat-chips.settings-wizard-chips {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 10px;
}

.settings-edit-cat-chips .settings-wizard-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    line-height: 1.2;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.08s ease;
}

.settings-edit-cat-chips .settings-wizard-chip:active {
    transform: scale(0.97);
}

.settings-edit-cat-panel--income .settings-edit-cat-chips .settings-wizard-chip:focus-visible {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
}

.settings-edit-cat-panel--expense .settings-edit-cat-chips .settings-wizard-chip:focus-visible {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

.settings-edit-matrix-save {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.settings-edit-topbar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
}

.settings-edit-brand-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    align-items: stretch;
}

.settings-edit-brand-tab {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 10rem;
    padding: 24px 18px 28px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

/* İkon kutusuz: yalnızca hizalama; SVG/emoji doğal boyutta */
.settings-edit-brand-tab-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

/* Tüm sekmelerde ikon görsel yüksekliği aynı */
.settings-edit-brand-tab-icon .settings-group-icon-svg,
.settings-edit-brand-tab-icon svg {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    width: auto;
    height: 40px;
    max-height: 40px;
    max-width: 48px;
    display: block;
}

.settings-edit-brand-tab-icon .group-option-icon-emoji,
.settings-edit-brand-tab-icon .settings-emoji {
    font-size: 2rem;
    line-height: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.settings-edit-brand-tab-label {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.settings-edit-brand-tab:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.settings-edit-brand-tab.is-active {
    position: relative;
    border: 2px solid #64748b;
    background: linear-gradient(165deg, #f8fafc 0%, #e2e8f0 45%, #cbd5e1 100%);
    color: #0f172a;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.75) inset,
        0 10px 28px rgba(15, 23, 42, 0.12),
        0 2px 0 rgba(71, 85, 105, 0.15);
    transform: translateY(-2px);
    z-index: 1;
}

.settings-edit-brand-tab.is-active::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 18%;
    right: 18%;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #475569, #64748b);
    box-shadow: 0 0 10px rgba(71, 85, 105, 0.35);
}

.settings-edit-brand-tab.is-inactive:not(.is-active) {
    opacity: 0.58;
}

@media (max-width: 420px) {
    .settings-edit-brand-tabs {
        gap: 8px;
    }

    .settings-edit-brand-tab {
        min-height: 8.5rem;
        padding: 18px 8px 22px;
        gap: 8px;
    }

    .settings-edit-brand-tab-label {
        font-size: 14px;
    }

    .settings-edit-brand-tab-icon .settings-group-icon-svg,
    .settings-edit-brand-tab-icon svg {
        height: 32px;
        max-height: 32px;
        max-width: 40px;
    }

    .settings-edit-brand-tab-icon .group-option-icon-emoji,
    .settings-edit-brand-tab-icon .settings-emoji {
        font-size: 1.6rem;
        line-height: 32px;
        height: 32px;
    }
}

/* Kategori KDV panelleri: tablo ve alan kutuları (gelir yeşil / gider kırmızı) */
.settings-edit-cat-panel--income .settings-category-table-wrap {
    border-color: #86efac;
    background: #ffffff;
}

.settings-edit-cat-panel--income .settings-category-table th {
    color: #166534;
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    border-bottom-color: #86efac;
}

.settings-edit-cat-panel--income .settings-category-table td {
    border-bottom-color: #dcfce7;
    color: #14532d;
}

.settings-edit-cat-panel--income .settings-input-compact,
.settings-edit-cat-panel--income .settings-wizard-rate-input {
    border-color: #86efac;
    background: #f7fee7;
    color: #14532d;
}

.settings-edit-cat-panel--income .settings-input-compact::placeholder,
.settings-edit-cat-panel--income .settings-wizard-rate-input::placeholder {
    color: #4d7c0f;
    opacity: 0.75;
}

.settings-edit-cat-panel--income .settings-input-compact:focus,
.settings-edit-cat-panel--income .settings-wizard-rate-input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
    background: #ffffff;
}

.settings-edit-cat-panel--income .settings-wizard-add-row[data-ag-edit-add-empty="income"] {
    background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
    border: 1px solid #86efac;
    color: #15803d;
    font-weight: 700;
}

.settings-edit-cat-panel--income .settings-wizard-add-row[data-ag-edit-add-empty="income"]:hover {
    background: #dcfce7;
    border-color: #22c55e;
    color: #14532d;
}

.settings-edit-cat-panel--expense .settings-wizard-add-row[data-ag-edit-add-empty="expense"] {
    background: linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
    border: 1px solid #fecaca;
    color: #991b1b;
    font-weight: 700;
}

.settings-edit-cat-panel--expense .settings-wizard-add-row[data-ag-edit-add-empty="expense"]:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #7f1d1d;
}

.settings-edit-cat-panel .settings-wizard-add-row {
    margin-top: 10px;
}

.settings-category-table-col-sort {
    width: 48px;
    text-align: center;
}

.settings-category-table-col-kdv {
    width: 96px;
    max-width: 96px;
    padding-inline: 6px;
}

.settings-category-table-sort {
    vertical-align: middle;
    padding: 4px 2px;
    width: 48px;
}

.settings-category-sort-btns {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    justify-content: center;
}

.settings-category-sort-btn {
    min-width: 30px;
    min-height: 28px;
    padding: 0 6px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
}

.settings-category-sort-btn:hover:not(:disabled) {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.settings-category-sort-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.settings-edit-cat-panel--income .settings-category-sort-btn {
    border-color: #86efac;
    background: #ffffff;
    color: #15803d;
}

.settings-edit-cat-panel--income .settings-category-sort-btn:hover:not(:disabled) {
    background: #dcfce7;
    border-color: #22c55e;
}

.settings-edit-cat-panel--expense .settings-category-sort-btn {
    border-color: #fecaca;
    background: #ffffff;
    color: #991b1b;
}

.settings-edit-cat-panel--expense .settings-category-sort-btn:hover:not(:disabled) {
    background: #fee2e2;
    border-color: #f87171;
}

.settings-edit-cat-panel--income .table-action-trash {
    border-color: #bbf7d0;
    background: #ffffff;
    color: #16a34a;
}

.settings-edit-cat-panel--income .table-action-trash:hover {
    border-color: #22c55e;
    background: #dcfce7;
    color: #14532d;
}

.settings-edit-cat-panel--expense .settings-category-table-wrap {
    border-color: #fca5a5;
    background: #ffffff;
}

.settings-edit-cat-panel--expense .settings-category-table th {
    color: #991b1b;
    background: linear-gradient(180deg, #fff1f2 0%, #fee2e2 100%);
    border-bottom-color: #fca5a5;
}

.settings-edit-cat-panel--expense .settings-category-table td {
    border-bottom-color: #fecdd3;
    color: #7f1d1d;
}

.settings-edit-cat-panel--expense .settings-input-compact,
.settings-edit-cat-panel--expense .settings-wizard-rate-input {
    border-color: #fca5a5;
    background: #fff7ed;
    color: #7f1d1d;
}

.settings-edit-cat-panel--expense .settings-input-compact::placeholder,
.settings-edit-cat-panel--expense .settings-wizard-rate-input::placeholder {
    color: #c2410c;
    opacity: 0.8;
}

.settings-edit-cat-panel--expense .settings-input-compact:focus,
.settings-edit-cat-panel--expense .settings-wizard-rate-input:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
    background: #ffffff;
}

.settings-edit-cat-panel--expense .table-action-trash {
    border-color: #fecaca;
    background: #ffffff;
    color: #dc2626;
}

.settings-edit-cat-panel--expense .table-action-trash:hover {
    border-color: #f87171;
    background: #fee2e2;
    color: #991b1b;
}

.settings-wizard-cat-sub {
    font-size: 12px;
    line-height: 1.4;
    color: #64748b;
}

.settings-wizard-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.settings-wizard-chip {
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.settings-wizard-chip:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #3730a3;
}

.settings-wizard-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

.settings-wizard-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(108px, 132px) auto;
    align-items: center;
    gap: 10px;
}

.settings-wizard-rate-wrap {
    min-width: 0;
}

.settings-wizard-rate-wrap.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.settings-wizard-rate-label {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.settings-wizard-rate-prefix {
    flex-shrink: 0;
}

.settings-wizard-rate-input {
    width: 100%;
    min-width: 0;
    max-width: 96px;
    padding: 8px 8px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

@media (max-width: 520px) {
    .settings-wizard-row {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
    }
    .settings-wizard-row .settings-wizard-row-name {
        grid-column: 1 / -1;
    }
    .settings-wizard-row .settings-wizard-row-remove {
        justify-self: end;
    }
}

.settings-wizard-row-vat-label {
    margin: 0;
}

.settings-wizard-vat-select {
    min-width: 118px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #fff;
}

.settings-wizard-row-remove {
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-size: 1.25rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
}

.settings-wizard-row-remove:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}

.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;
}

.settings-wizard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-top: 0.5rem;
}

.settings-new-account-dialog {
    border: none;
    border-radius: 22px;
    padding: 0;
    max-width: min(100vw - 28px, 520px);
    width: 100%;
    background: #fff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.35);
}

.settings-new-account-dialog::backdrop {
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(2px);
}

.settings-new-account-dialog-inner {
    overflow: hidden;
    border-radius: inherit;
}

.settings-new-account-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
}

.settings-new-account-dialog-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.settings-new-account-dialog-close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    font-size: 1.35rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
}

.settings-new-account-dialog-close:hover {
    background: #f8fafc;
    color: #0f172a;
}

.settings-new-account-dialog-form {
    padding: 18px 20px 22px;
    max-height: min(78vh, 640px);
    overflow-y: auto;
}

.settings-new-account-dialog-name {
    margin-top: 16px;
}

.settings-new-account-dialog-name .settings-input-compact {
    width: 100%;
}

.settings-new-account-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

@media (max-width: 720px) {
    .page-hero--settings .page-hero-settings-cta--new {
        width: 100%;
        align-items: stretch;
        text-align: left;
    }

    .page-hero-new-group-settings-btn {
        width: 100%;
    }
}

.section-stack.settings-page {
    gap: 28px;
}

.settings-block {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.settings-block-header {
    margin-bottom: 2px;
}

.settings-block-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.settings-block-lead {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: #64748b;
    max-width: 62ch;
}

.settings-block-lead strong {
    color: #475569;
    font-weight: 700;
}

.settings-new-group {
    margin: 0;
    border-radius: 16px;
    border: 1px solid #c4b5fd;
    background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 48%, #ffffff 100%);
    box-shadow: 0 8px 28px rgba(91, 33, 182, 0.08);
    overflow: hidden;
}

.settings-new-group-inner {
    padding: 16px 18px 18px;
}

.settings-new-group-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6d28d9;
    margin-bottom: 12px;
}

.settings-new-group-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 16px;
    align-items: end;
    margin-top: 12px;
}

.settings-new-group-field-submit .settings-new-group-btn {
    min-height: 46px;
    padding-left: 22px;
    padding-right: 22px;
    border-radius: 14px;
}

.settings-empty-card {
    text-align: center;
    padding: 28px 20px;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.settings-empty-card p {
    margin: 0;
}

.settings-empty-card--wide {
    max-width: none;
}

.settings-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.settings-groups-grid--accounts {
    gap: 20px;
    align-items: stretch;
    grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
}

/* 3 hesap grubu: tek satır üç kart */
.settings-groups-grid--accounts.settings-groups-grid--ag3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
}

/* 4 hesap grubu: 2x2 */
.settings-groups-grid--accounts.settings-groups-grid--ag4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
}

/* Diğer adetler */
.settings-groups-grid--accounts.settings-groups-grid--ag-auto {
    grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
    max-width: none;
}

/* Dikey kart oranı (4:5), üstte ikon plakası */
.settings-groups-grid--accounts .settings-group-tile {
    aspect-ratio: 4 / 5;
    min-width: 0;
    min-height: 0;
    padding: 0;
    gap: 0;
    justify-content: stretch;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 42%, #eef2ff 100%);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 36px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.settings-groups-grid--accounts .settings-group-tile:hover {
    transform: translateY(-4px);
    border-color: #c7d2fe;
    box-shadow:
        0 4px 12px rgba(99, 102, 241, 0.12),
        0 20px 44px rgba(15, 23, 42, 0.1);
}

.settings-groups-grid--accounts .settings-group-tile.is-closed {
    opacity: 0.9;
    background: linear-gradient(165deg, #f8fafc 0%, #f1f5f9 55%, #e2e8f0 100%);
}

.settings-groups-grid--accounts .settings-group-tile-compact {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 14px 14px 16px;
    gap: 0;
}

.settings-groups-grid--accounts .settings-group-tile-one-icon {
    order: -1;
    flex: 1 1 48%;
    min-height: 0;
    margin: 0 0 14px;
    padding: 22px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.65) 100%);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.settings-groups-grid--accounts .settings-group-tile-row-head {
    flex-shrink: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.settings-groups-grid--accounts .settings-group-tile-headline-inline {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
}

.settings-groups-grid--accounts .settings-group-tile-headline-inline .settings-group-tile-name {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.25;
    color: #0f172a;
}

.settings-groups-grid--accounts .settings-group-tile-row-head .btn {
    width: 100%;
    justify-content: center;
    min-height: 40px;
    border-radius: 12px;
    font-weight: 700;
}

.settings-groups-grid--accounts .settings-group-tile-one-icon .settings-group-icon-svg {
    max-height: 88px;
    max-width: 140px;
    width: auto;
    height: auto;
}

.settings-groups-grid--accounts .settings-group-tile-one-icon .group-option-icon-emoji {
    font-size: clamp(36px, 10vw, 56px);
    line-height: 1;
}

@media (max-width: 520px) {
    .settings-groups-grid--accounts.settings-groups-grid--ag3,
    .settings-groups-grid--accounts.settings-groups-grid--ag4 {
        grid-template-columns: 1fr;
    }
}

.settings-group-tile {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 16px 14px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.settings-group-tile:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.settings-group-tile.is-closed {
    opacity: 0.92;
    background: #f8fafc;
}

.settings-group-tile-compact {
    width: 100%;
}

.settings-group-tile-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    flex-wrap: wrap;
}

.settings-group-tile-headline-inline {
    display: flex;
    align-items: center;
    gap: 0 1.75rem;
    flex-wrap: wrap;
    min-width: 0;
}

.settings-group-tile-headline-inline .settings-group-tile-name {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: #0f172a;
}

.settings-group-tile-headline-inline .settings-pill--status {
    flex-shrink: 0;
}

.settings-group-tile-one-icon {
    margin-top: 12px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #4c1d95;
}

.settings-group-tile-one-icon .settings-group-icon-svg {
    position: static;
    transform: none;
    height: 36px;
    width: auto;
    max-width: 80px;
}

.settings-group-tile-one-icon .group-option-icon-emoji {
    font-size: 28px;
    line-height: 1;
}

.settings-group-tile-edit {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.settings-group-tile-edit-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.settings-group-tile-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Emoji: Inter tek başına renkli emoji göstermeyebilir */
.settings-emoji {
    font-family: ui-rounded, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}

.settings-group-tile-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 14px;
    background: linear-gradient(145deg, #ede9fe 0%, #f5f3ff 100%);
    border: 1px solid #ddd6fe;
    color: #5b21b6;
}

.settings-group-tile.is-closed .settings-group-tile-avatar {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
}

.settings-group-tile-headline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.settings-group-tile-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    word-break: break-word;
}

.settings-pill {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.settings-pill--ok {
    color: #166534;
    background: rgba(220, 252, 231, 0.95);
    border: 1px solid #86efac;
}

.settings-pill--muted {
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.settings-group-tile-form {
    margin: 0;
}

/* Grup adı: tek satır — Grup adı (geniş) | + İkon | Kaydet; üç kutu aynı yükseklik */
.settings-edit-group-row {
    display: grid;
    grid-template-columns: minmax(0, 2.75fr) minmax(0, 1fr) auto;
    gap: 12px 16px;
    align-items: stretch;
}

.settings-edit-group-row--create {
    grid-template-columns: minmax(0, 2.75fr) minmax(0, 1fr);
}

.settings-new-wizard-vat-info {
    margin: 0;
}

.settings-new-wizard-default-exp {
    margin-top: 14px;
}

/* ——— Yeni hesap grubu: kartlar form içinde olduğu için section-stack gap işe yaramaz; form grid ——— */
.settings-new-wizard-shell {
    display: grid;
    gap: 26px;
    width: 100%;
    align-content: start;
}

.settings-new-wizard-page {
    padding-bottom: 4px;
    margin-bottom: 12px;
}

.settings-new-wizard-page .settings-wizard-topbar {
    gap: 10px;
}

.settings-new-wizard-lead {
    margin: 0;
    max-width: 62ch;
    font-size: 14px;
    line-height: 1.55;
    color: #64748b;
}

.settings-new-wizard-section.section-stack.settings-page {
    gap: 0;
}

.settings-new-wizard-card.settings-wizard-card {
    margin: 0;
}

.settings-new-wizard-card--group {
    padding: 24px 22px;
    border-color: #ddd6fe;
    background: linear-gradient(165deg, #faf5ff 0%, #ffffff 52%, #ffffff 100%);
    box-shadow: 0 14px 36px rgba(91, 33, 182, 0.08);
}

.settings-new-wizard-card--group .settings-edit-card-title {
    margin-bottom: 14px;
}

.settings-new-wizard-card--vat {
    padding: 22px 22px 24px;
    border-color: #c7d2fe;
    background: linear-gradient(165deg, #f8fafc 0%, #ffffff 55%, #ffffff 100%);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.settings-new-wizard-card--vat .settings-edit-card-title {
    margin-bottom: 12px;
}

.settings-new-wizard-card--vat .settings-new-wizard-vat-info {
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    line-height: 1.55;
}

.settings-new-wizard-card--vat .settings-new-wizard-vat-info strong {
    color: #334155;
}

.settings-new-wizard-card--matrix {
    padding: 24px 22px 28px;
    border-color: #e2e8f0;
    box-shadow: 0 16px 40px rgba(148, 163, 184, 0.12);
}

.settings-new-wizard-card--matrix .settings-edit-card-title {
    margin-bottom: 10px;
}

.settings-new-wizard-shell .settings-edit-matrix-card .settings-wizard-hint {
    margin-bottom: 20px;
    padding-bottom: 2px;
}

.settings-new-wizard-shell .settings-edit-cat-split {
    gap: 22px;
}

.settings-new-wizard-shell .settings-edit-cat-panel {
    padding: 16px 16px 18px;
}

.settings-new-wizard-shell .settings-edit-cat-panel-title {
    margin-bottom: 12px;
}

.settings-new-wizard-shell .settings-edit-cat-panel .settings-edit-matrix-wrap {
    margin-top: 4px;
}

.settings-new-wizard-shell .settings-wizard-add-row {
    margin-top: 14px;
}

.settings-new-wizard-shell .settings-new-wizard-default-exp {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #fecdd3;
}

.settings-new-wizard-shell .settings-wizard-actions {
    margin-top: 2px;
    padding-top: 22px;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 900px) {
    .settings-new-wizard-shell .settings-edit-cat-split {
        gap: 18px;
    }

    .settings-new-wizard-shell {
        gap: 22px;
    }

    .settings-edit-group-row {
        grid-template-columns: 1fr;
    }

    .settings-edit-group-row--create {
        grid-template-columns: 1fr;
    }

    .settings-edit-group-col--save {
        justify-self: start;
    }

    .settings-edit-group-col--save .btn {
        width: auto;
    }
}

.settings-edit-group-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    min-height: 0;
    align-self: stretch;
}

.settings-edit-group-col--name .settings-input-compact {
    flex: 1 1 auto;
    min-height: 44px;
    width: 100%;
}

.settings-edit-group-col--save .btn {
    flex: 1 1 auto;
    min-height: 44px;
    width: 100%;
    align-self: stretch;
}

.settings-mini-label--ghost {
    visibility: hidden;
    user-select: none;
}

.settings-edit-group-icon-add-box {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 44px;
    border-radius: 12px;
    border: 1px dashed #c4b5fd;
    background: #faf5ff;
    padding: 0;
    min-width: 0;
}

.settings-edit-group-svg-add {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    margin: 0;
    box-sizing: border-box;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #5b21b6;
    user-select: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.settings-edit-group-svg-add:hover {
    background: rgba(124, 58, 237, 0.08);
    color: #4c1d95;
}

.settings-edit-group-icon-add-box:focus-within {
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25);
}

.settings-group-tile-fields {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}

.settings-mini-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.settings-input-compact {
    width: 100%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    background: #fff;
}

.settings-input-compact:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.settings-group-save-btn {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 10px;
}

.settings-group-tile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
    border-top: 1px solid #f1f5f9;
}

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

.settings-section-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 8px 0 0;
}

.settings-section-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0 15%, #e2e8f0 85%, transparent);
}

.settings-section-divider-text {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
    white-space: nowrap;
}

.settings-section-sub {
    margin: -8px 0 0;
    font-size: 13px;
    color: #94a3b8;
}

.settings-section-sub strong {
    color: #64748b;
    font-weight: 700;
}

.settings-category-table-wrap {
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    overflow: hidden;
    background: #fafbfc;
}

.settings-category-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.settings-category-table th {
    text-align: left;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.settings-category-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-weight: 600;
}

.settings-category-table tbody tr:last-child td {
    border-bottom: none;
}

.settings-category-table-actions {
    width: 52px;
    text-align: right;
    vertical-align: middle;
}

.btn.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 10px;
    min-height: 38px;
}

@media (max-width: 720px) {
    .settings-new-group-fields {
        grid-template-columns: 1fr;
    }

    .settings-new-group-field-submit {
        grid-column: 1 / -1;
    }

    .settings-new-group-field-submit .settings-new-group-btn {
        width: 100%;
    }

    .settings-group-tile-fields {
        grid-template-columns: 1fr;
    }

    .settings-group-save-btn {
        width: 100%;
    }

}

.toolbar,
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.section-header {
    margin-bottom: 16px;
}

.income-create-header,
.expense-create-header {
    margin-bottom: 26px;
}

.income-create-header .section-title,
.expense-create-header .section-title {
    font-size: 24px;
}

.income-create-header .muted-link {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.expense-create-header .muted-link {
    font-size: 13px;
    color: #b91c1c;
    font-weight: 500;
}

.section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.section-description {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-income {
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-primary-light) 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.22);
}

.btn-expense {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(248, 113, 113, 0.2);
}

.btn-check-note {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    color: #fff;
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.22);
}

.btn-check-note-pay {
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    color: #475569;
    box-shadow: none;
}

.btn-check-note-pay:hover {
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-primary-light) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.22);
}

.btn-xl {
    min-height: 58px;
    padding: 0 24px;
    font-size: 17px;
    border-radius: 16px;
}

.btn-soft {
    background: #fff;
    border-color: #dbe3ee;
    color: #334155;
}

.muted-link {
    color: #64748b;
    font-size: 14px;
    text-decoration: none;
    font-weight: 600;
}

.muted-link:hover {
    color: #0f172a;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.dashboard-actions .metric-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
}

.dashboard-actions .btn-xl {
    width: 100%;
    min-width: 100%;
}

.dashboard-actions .metric-value {
    margin-bottom: 2px;
}

.dashboard-actions .metric-subtext {
    line-height: 1.65;
}


.metric-card {
    background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(248,250,252,.96) 100%);
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 16px 38px rgba(148, 163, 184, 0.09);
}

.metric-label {
    display: block;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.metric-subtext {
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
}

.tag-income,
.tag-expense,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.tag-income {
    color: var(--green-text);
    background: linear-gradient(90deg, var(--green-soft) 0%, #ffffff 100%);
}

.tag-expense {
    color: #b91c1c;
    background: linear-gradient(90deg, #fee2e2 0%, #ffffff 100%);
    white-space: nowrap;
}

.tag-check-note {
    color: #5b21b6;
    background: linear-gradient(90deg, #ede9fe 0%, #ffffff 100%);
}

.check-notes-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.check-notes-summary-card {
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.check-notes-summary-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.02em;
}

.check-notes-summary-value {
    font-size: 1.35rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.check-notes-summary-pending-check {
    border-color: #fecaca;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.check-notes-summary-pending-check .check-notes-summary-value {
    color: #b91c1c;
}

.check-notes-summary-pending-note {
    border-color: var(--green-soft-strong);
    background: linear-gradient(135deg, var(--green-soft) 0%, #ffffff 100%);
}

.check-notes-summary-pending-note .check-notes-summary-value {
    color: var(--green-text);
}

.check-notes-summary-paid-check {
    border-color: #e2e8f0;
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
}

.check-notes-summary-paid-check .check-notes-summary-value {
    color: #475569;
}

.check-notes-summary-hint {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .check-notes-summary-grid {
        grid-template-columns: 1fr;
    }
}

.section-header.check-notes-pending-header {
    display: block !important;
    margin-bottom: 16px;
}

.check-notes-pending-header-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px 14px;
    border-radius: 14px;
    border: 1px solid #ddd6fe;
    background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.check-notes-pending-header-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.check-notes-pending-title {
    margin: 0 !important;
    color: #4c1d95;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.check-notes-pending-header-text > .check-notes-btn-new {
    flex-shrink: 0;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7.5rem;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
    border: 1px solid #e9d5ff;
    background: #ffffff;
    color: #5b21b6;
    box-shadow: 0 2px 8px rgba(91, 33, 182, 0.08);
    background-image: none;
}

.check-notes-pending-header-text > .check-notes-btn-new:hover {
    background: #faf5ff;
    border-color: #c4b5fd;
    color: #4c1d95;
    box-shadow: 0 4px 14px rgba(91, 33, 182, 0.12);
    transform: translateY(-1px);
}

.check-notes-pending-desc-block {
    min-width: 0;
    width: 100%;
    margin-top: 0;
}

.check-notes-pending-desc-block .check-notes-pending-desc {
    margin: 0 !important;
    font-size: 13px;
    line-height: 1.45;
    color: #5b21b6;
}

.check-notes-pending-desc-block .check-notes-pending-desc strong {
    color: #4c1d95;
}

@media (max-width: 520px) {
    .check-notes-pending-header-text {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .check-notes-pending-header-text > .check-notes-btn-new {
        align-self: flex-end;
        min-width: 0;
        padding: 7px 12px;
        font-size: 12px;
    }

    .check-notes-pending-title {
        font-size: 20px;
    }
}

.check-notes-wrap {
    overflow-x: auto;
}

.check-notes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.check-notes-table th,
.check-notes-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.check-notes-table th {
    color: #64748b;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.check-note-row.is-income .check-note-amount {
    color: var(--green-text);
    font-weight: 800;
}

.check-note-row.is-expense .check-note-amount {
    color: #b91c1c;
    font-weight: 800;
}

.check-note-row.is-paid {
    opacity: 0.72;
}

.check-note-row.is-paid .check-note-instrument,
.check-note-row.is-paid .check-note-direction {
    opacity: 0.85;
}

.check-notes-paid-card {
    margin-top: 28px;
    background: linear-gradient(165deg, rgba(220, 252, 231, 0.65) 0%, rgba(255, 255, 255, 0.94) 52%, #ffffff 100%);
    border-color: var(--green-soft-strong);
    box-shadow: 0 16px 38px rgba(5, 150, 105, 0.08);
}

.check-notes-paid-header .section-title {
    color: var(--green-text);
}

.check-notes-paid-header .section-description {
    color: #3f6212;
    opacity: 0.92;
}

.check-notes-paid-header .section-header {
    margin-bottom: 0;
}

.check-notes-table-paid th {
    color: #166534;
    background: rgba(220, 252, 231, 0.45);
}

.check-notes-table-paid .check-note-row.is-paid {
    opacity: 1;
    border-bottom-color: rgba(187, 247, 208, 0.85);
}

.check-notes-table-paid .check-note-row.is-paid:nth-child(even) {
    background: rgba(240, 253, 244, 0.55);
}

.check-notes-table-paid .check-note-instrument {
    background: rgba(220, 252, 231, 0.9);
    color: #047857;
}

.check-notes-paid-card .check-note-timer.is-paid-done {
    color: var(--green-text);
    font-weight: 700;
    background: rgba(220, 252, 231, 0.85);
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
}

.check-notes-col-actions {
    white-space: nowrap;
    min-width: 14rem;
}

.check-notes-paid-col-actions {
    white-space: nowrap;
    width: 3.25rem;
    text-align: center;
    vertical-align: middle;
}

.check-note-delete-form--paid {
    margin: 0;
    display: inline-flex;
    justify-content: center;
}

.check-note-actions {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
}

.check-note-actions .btn {
    padding: 6px 12px;
    font-size: 13px;
    white-space: nowrap;
}

.check-note-actions .check-note-delete-btn {
    flex-shrink: 0;
    color: #b91c1c;
    border-color: #fecaca;
}

.check-note-actions .check-note-delete-btn:hover {
    background: #fef2f2;
    border-color: #f87171;
    color: #991b1b;
}

.check-note-pay-form {
    margin: 0;
}

.check-note-delete-form {
    margin: 0;
}

.check-note-pay-dialog-panel.card {
    border-color: rgba(134, 239, 172, 0.95);
    box-shadow: 0 20px 48px rgba(5, 150, 105, 0.12);
}

.check-note-pay-dialog-panel .confirm-dialog-heading,
.check-note-pay-dialog-panel .section-title {
    color: #0f172a;
}

.check-note-pay-dialog-form {
    margin-top: 4px;
}

.check-note-pay-dialog-form .field + .field {
    margin-top: 12px;
}

.check-note-paid-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
}

.check-note-instrument {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #5b21b6;
    background: #ede9fe;
}

.check-note-direction {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.check-note-direction.is-income {
    color: var(--green-text);
    background: var(--green-soft);
}

.check-note-direction.is-expense {
    color: #b91c1c;
    background: #fee2e2;
}

.check-note-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    margin-bottom: 8px;
}

@media (max-width: 640px) {
    .check-note-choice-grid {
        grid-template-columns: 1fr;
    }
}

.check-note-choice-heading {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #5b21b6;
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.check-note-segment {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.check-note-segment-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #e9d5ff;
    background: #fafafa;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: #334155;
}

.check-note-segment-option:has(input:checked) {
    border-color: #a78bfa;
    background: #f5f3ff;
    color: #5b21b6;
}

.check-note-segment-income:has(input:checked) {
    border-color: #4ade80;
    background: #ecfdf5;
    color: var(--green-text);
}

.check-note-segment-expense:has(input:checked) {
    border-color: #f87171;
    background: #fef2f2;
    color: #b91c1c;
}

.check-note-timer {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.check-note-timer.is-future {
    color: #0369a1;
}

.check-note-timer.is-today {
    color: #a16207;
}

.check-note-timer.is-overdue {
    color: #b91c1c;
}

.check-note-timer.is-paid-done {
    color: #64748b;
    font-weight: 700;
}

.check-notes-db-alert {
    margin-bottom: 16px;
    border-color: #fdba74;
    background: #fff7ed;
}

.check-notes-db-alert-text {
    margin: 0;
    color: #9a3412;
    font-size: 14px;
    line-height: 1.55;
}

.check-notes-db-alert-text code {
    font-size: 13px;
}

.check-note-create-hero .check-note-create-hero-desc {
    max-width: 36rem;
}

.check-note-create-card-head {
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

.check-note-create-card-title {
    color: #5b21b6;
}

.check-note-create-hint {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #ddd6fe;
    background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
    font-size: 14px;
    line-height: 1.55;
    color: #4c1d95;
}

.check-note-create-hint p {
    margin: 0;
}

.check-note-create-hint p + p {
    margin-top: 8px;
}

.check-note-create-hint code {
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(91, 33, 182, 0.12);
    font-size: 13px;
    font-weight: 700;
}

.check-note-create-hint-sub {
    font-size: 13px;
    color: #6d28d9;
    opacity: 0.95;
}

.check-note-create-form {
    gap: 18px;
}

.check-note-create-layout {
    display: grid;
    gap: 20px 28px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
    .check-note-create-layout {
        grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
        align-items: start;
    }
}

.check-note-create-col {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.check-note-create-col-secondary {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid #e9d5ff;
    background: #fafafa;
    align-content: start;
}

.check-note-create-col-label {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7c3aed;
}

.check-note-dates-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

@media (max-width: 520px) {
    .check-note-dates-row {
        grid-template-columns: 1fr;
    }
}

.check-note-meta-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

@media (max-width: 520px) {
    .check-note-meta-row {
        grid-template-columns: 1fr;
    }
}

.check-note-money-input {
    max-width: none;
}

.check-note-money-input input {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.check-note-amount-hint {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}

.check-note-hint-income {
    color: var(--green-text);
    font-weight: 700;
}

.check-note-hint-expense {
    color: #b91c1c;
    font-weight: 700;
}

.check-note-desc-field {
    margin-top: 2px;
}

.check-note-create-actions {
    margin-top: 4px;
    padding-top: 4px;
    flex-wrap: wrap;
}

@media (max-width: 520px) {
    .check-note-create-actions .btn {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

.credit-card-filter-form {
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
    gap: 10px;
}

.credit-card-filter-form .field {
    max-width: 280px;
}

.credit-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
}

.credit-card-box {
    --card-accent: #ef4444;
    border: 1px solid transparent;
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--card-accent) 13%, #ffffff) 0%,
            color-mix(in srgb, var(--card-accent) 5%, #ffffff) 42%,
            #ffffff 100%
        ) padding-box,
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--card-accent) 34%, #ffffff) 0%,
            color-mix(in srgb, var(--card-accent) 14%, #ffffff) 52%,
            color-mix(in srgb, var(--card-accent) 4%, #ffffff) 100%
        ) border-box;
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 10px;
    cursor: grab;
    user-select: none;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-accent) 20%, transparent);
}

.credit-card-box.is-dragging {
    opacity: 0.6;
    cursor: grabbing;
}

.credit-card-box-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.credit-card-box-head h4 {
    margin: 0;
    font-size: 16px;
    color: color-mix(in srgb, var(--card-accent) 72%, #0f172a);
}

.credit-card-box-head p {
    margin: 4px 0 0;
    color: color-mix(in srgb, var(--card-accent) 38%, #475569);
    font-size: 13px;
}

.credit-network-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #fecaca;
    background: #fff;
    color: #9f1239;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-color: color-mix(in srgb, var(--card-accent) 40%, #fecaca);
    color: color-mix(in srgb, var(--card-accent) 75%, #7f1d1d);
}

.credit-color-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--card-accent);
    display: inline-flex;
    margin-right: 6px;
}

.credit-card-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.credit-card-edit-link {
    color: color-mix(in srgb, var(--card-accent) 75%, #7f1d1d);
    font-size: 11px;
    font-weight: 300;
    text-decoration: none;
    white-space: nowrap;
}

.credit-card-edit-link:hover {
    text-decoration: underline;
}

.inline-delete-form {
    display: inline-flex;
    margin: 0;
    align-items: center;
}

.btn-text-delete {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    color: #b91c1c;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.btn-text-delete:hover {
    color: #991b1b;
}

.account-card-head-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.account-edit-delete-block {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.account-edit-delete-label {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.account-edit-delete-btn {
    font-size: 14px;
}

.expense-payment-cell {
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.expense-payment-card-name {
    color: color-mix(in srgb, var(--payment-card-color, #ef4444) 72%, #0f172a);
    font-weight: 700;
}

.expense-payment-card-preview {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--payment-card-color, #ef4444) 28%, #e2e8f0);
    background: color-mix(in srgb, var(--payment-card-color, #ef4444) 8%, #ffffff);
    color: color-mix(in srgb, var(--payment-card-color, #ef4444) 70%, #7f1d1d);
    font-size: 12px;
}

.expense-payment-card-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--payment-card-color, #ef4444);
    display: inline-flex;
}

.credit-card-box-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.credit-card-meta-item {
    border: 1px solid color-mix(in srgb, var(--card-accent) 26%, #e2e8f0);
    border-radius: 12px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--card-accent) 10%, #ffffff) 0%,
        #ffffff 100%
    );
    padding: 8px 10px;
    display: grid;
    gap: 2px;
}

.credit-card-meta-item span {
    color: color-mix(in srgb, var(--card-accent) 36%, #64748b);
    font-size: 11px;
}

.credit-card-meta-item strong {
    color: color-mix(in srgb, var(--card-accent) 58%, #0f172a);
    font-size: 14px;
}

.credit-card-sub-meta-label {
    margin-top: 3px;
}

.credit-card-sub-meta-value {
    font-size: 13px;
    font-weight: 600;
}

.credit-card-meta-item-muted {
    border-color: color-mix(in srgb, var(--card-accent) 14%, #e2e8f0);
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--card-accent) 5%, #ffffff) 0%,
        #ffffff 100%
    );
}

.credit-card-meta-item-muted span {
    color: color-mix(in srgb, var(--card-accent) 24%, #94a3b8);
    font-size: 10px;
}

.credit-card-meta-item-muted strong {
    font-size: 13px;
    color: color-mix(in srgb, var(--card-accent) 44%, #475569);
    font-weight: 600;
}

.credit-card-meta-item .credit-card-statement-debt {
    color: #b91c1c !important;
    font-weight: 700;
}

.credit-card-meta-item .credit-card-current-debt {
    color: color-mix(in srgb, var(--card-accent) 58%, #0f172a) !important;
    font-weight: 500;
}

.credit-card-meta-item .credit-card-overdue {
    color: color-mix(in srgb, #b91c1c 76%, #475569) !important;
}

.credit-card-overdue-summary {
    grid-column: 1 / -1;
    gap: 6px;
}

.credit-card-overdue-line {
    margin: 0;
    font-size: 12px;
    color: color-mix(in srgb, var(--card-accent) 30%, #64748b);
}

.credit-card-report {
    border-top: 1px dashed color-mix(in srgb, var(--card-accent) 42%, #e2e8f0);
    padding-top: 10px;
    display: grid;
    gap: 8px;
}

.credit-card-report h5 {
    margin: 0;
    font-size: 13px;
    color: color-mix(in srgb, var(--card-accent) 66%, #7f1d1d);
}

.credit-card-report-group {
    border: 1px solid color-mix(in srgb, var(--card-accent) 20%, #e2e8f0);
    border-radius: 12px;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--card-accent) 8%, #ffffff) 0%,
        #ffffff 100%
    );
    padding: 8px 10px;
    display: grid;
    gap: 6px;
}

.credit-card-report-group-title {
    font-weight: 700;
    font-size: 12px;
    color: color-mix(in srgb, var(--card-accent) 62%, #7f1d1d);
}

.credit-card-report-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.credit-card-report-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--card-accent) 28%, #e2e8f0);
    border-radius: 999px;
    background: color-mix(in srgb, var(--card-accent) 8%, #ffffff);
    color: color-mix(in srgb, var(--card-accent) 70%, #7f1d1d);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.credit-card-report-total {
    color: color-mix(in srgb, var(--card-accent) 34%, #475569);
    font-size: 12px;
}

.credit-card-report-total strong {
    color: #b91c1c;
}

.credit-card-report-actions .btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
}

.credit-card-pay-btn {
    border-color: color-mix(in srgb, var(--card-accent) 40%, #cbd5e1);
    background: color-mix(in srgb, var(--card-accent) 18%, #ffffff);
    color: color-mix(in srgb, var(--card-accent) 78%, #1f2937);
}

.credit-card-pay-btn:hover {
    border-color: color-mix(in srgb, var(--card-accent) 58%, #94a3b8);
    background: color-mix(in srgb, var(--card-accent) 26%, #ffffff);
    color: color-mix(in srgb, var(--card-accent) 84%, #111827);
}

.credit-card-pay-card {
    max-width: 760px;
}

.credit-card-pay-form {
    display: grid;
    gap: 12px;
}

.muted-text {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.badge {
    color: #0f766e;
    background: #ccfbf1;
}

.quick-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quick-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.quick-list-main {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    flex: 1;
    white-space: nowrap;
}

.quick-list-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-width: 190px;
    white-space: nowrap;
}

.quick-list-title {
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

.quick-list-meta {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
}

.quick-list-amount {
    margin-top: 0;
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
    text-align: left;
    white-space: nowrap;
}

/* Anasayfa — Son işlemler (tek satır) */
.recent-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recent-feed-item {
    margin: 0;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e8edf3;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.recent-feed-item:hover {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
    border-color: #dbe3ee;
}

.recent-feed-item--income {
    border-left: 4px solid var(--green-primary);
}

.recent-feed-item--expense {
    border-left: 4px solid #dc2626;
}

.recent-feed-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 10px;
    min-height: 44px;
    flex-wrap: nowrap;
    min-width: 0;
}

.recent-feed-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.recent-feed-item--income .recent-feed-badge {
    color: #166534;
    background: #dcfce7;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.recent-feed-item--expense .recent-feed-badge {
    color: #9f1239;
    background: #ffe4e6;
    border: 1px solid rgba(244, 63, 94, 0.35);
}

.recent-feed-date {
    flex-shrink: 0;
    min-width: 4.75rem;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.recent-feed-group {
    flex: 0 1 8rem;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-feed-chip {
    flex: 0 1 6.5rem;
    min-width: 0;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.recent-feed-desc {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-feed-amount {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.recent-feed-item--income .recent-feed-amount {
    color: var(--green-text);
}

.recent-feed-item--expense .recent-feed-amount {
    color: #b91c1c;
}

@media (max-width: 720px) {
    .recent-feed-row {
        gap: 8px;
        padding-inline: 8px 10px;
    }

    .recent-feed-group {
        flex-basis: 5.5rem;
    }

    .recent-feed-chip {
        flex-basis: 4.5rem;
    }

    .recent-feed-amount {
        font-size: 14px;
    }
}

.form-panel {
    display: grid;
    gap: 16px;
}

.form-panel.income-create,
.form-panel.expense-create {
    gap: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.field {
    display: grid;
    gap: 8px;
}

.field-wide {
    grid-column: span 2;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.group-picker {
    display: grid;
    gap: 10px;
}

.group-option {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    padding: 18px 16px;
    background: #fff;
    cursor: pointer;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .01em;
    color: #0f172a;
}

.group-option-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: inherit;
}

.group-option-icon {
    width: 42px;
    height: 28px;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
    color: inherit;
}

.group-option-text {
    line-height: 1;
}

.group-option-icon-svg {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    width: auto;
    max-width: none;
    display: block;
    fill: currentColor;
    color: inherit;
}

/* SVG icindeki tum katmanlar yazi rengiyle birebir ayni olsun */
.group-option-icon-svg * {
    fill: currentColor !important;
    stroke: none !important;
    color: inherit !important;
}

.group-option-icon-fallback {
    color: #64748b;
    font-size: 20px;
    line-height: 1;
}

.group-option-icon-emoji {
    font-size: 28px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.income-create [data-income-step="1"] .group-option-icon-emoji,
.expense-create [data-expense-step="1"] .group-option-icon-emoji {
    font-size: 32px;
}

.settings-group-tile-avatar-icon {
    position: relative;
    overflow: hidden;
    padding: 4px;
}

.settings-group-icon-svg {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% - 8px);
    width: auto;
    max-width: none;
    display: block;
    fill: currentColor;
    color: inherit;
}

.settings-group-icon-svg * {
    fill: currentColor !important;
    stroke: none !important;
}

.settings-icon-mode-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 8px 0 12px;
}

.settings-icon-mode-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
}

.settings-preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 10px;
    margin-bottom: 4px;
}

.settings-preset-tile {
    cursor: pointer;
    margin: 0;
}

.settings-preset-tile input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.settings-preset-tile-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.settings-preset-tile input:checked + .settings-preset-tile-inner,
.settings-preset-tile input:focus-visible + .settings-preset-tile-inner {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.settings-preset-tile:hover .settings-preset-tile-inner {
    border-color: #c4b5fd;
}

.settings-preset-tile-preview {
    position: relative;
    width: 56px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4c1d95;
}

.settings-preset-tile-preview .settings-group-icon-svg {
    position: static;
    transform: none;
    height: 100%;
    width: auto;
}

/* Cetvel: 3 kutu yan yana, ikon üstte ortalı, büyük (genel kurallardan sonra) */
.settings-preset-grid--three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 18px;
    margin: 0 0 20px;
    width: 100%;
    align-items: stretch;
}

.settings-icon-panel[data-icon-panel="preset"] .settings-preset-grid--three {
    margin-top: 0;
}

.settings-preset-grid--three .settings-preset-tile-inner {
    padding: 22px 12px 16px;
    min-height: 152px;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
}

.settings-preset-grid--three .settings-preset-tile-preview {
    width: 100%;
    height: 96px;
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4c1d95;
}

.settings-preset-grid--three .settings-preset-tile-preview .settings-group-icon-svg {
    height: 88px;
    max-height: 88px;
    width: auto;
    max-width: min(100%, 120px);
}

.settings-preset-grid--three .settings-preset-tile-preview .group-option-icon-emoji {
    font-size: 42px;
    line-height: 1;
}

.settings-preset-grid--three .settings-preset-tile-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    color: #64748b;
    width: 100%;
}

@media (max-width: 400px) {
    .settings-preset-grid--three {
        gap: 8px;
    }

    .settings-preset-grid--three .settings-preset-tile-preview {
        height: 72px;
        min-height: 72px;
    }

    .settings-preset-grid--three .settings-preset-tile-preview .settings-group-icon-svg {
        height: 64px;
        max-height: 64px;
    }

    .settings-preset-grid--three .settings-preset-tile-inner {
        min-height: 120px;
        padding: 14px 8px 12px;
    }
}

.settings-preset-tile-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #64748b;
}

.settings-file-input {
    width: 100%;
    font-size: 13px;
}

.settings-icon-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.table-cell-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.table-cell-with-icon-mark {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.table-group-icon-svg {
    width: 22px;
    height: 16px;
    display: block;
    fill: currentColor;
    color: #334155;
}

.table-group-icon-svg * {
    fill: currentColor !important;
    stroke: none !important;
}

.table-group-icon-emoji {
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
}

.income-group-filter-item-visual {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.income-group-filter-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.income-group-filter-icon .table-group-icon-svg {
    width: 20px;
    height: 14px;
}

.group-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.group-option:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.income-create .group-option.is-selected {
    border-color: var(--green-soft-strong);
    background: #f0fdf4;
}

.income-create [data-income-step="1"] .group-picker {
    width: 100%;
}

.income-create [data-income-step="1"] .group-option {
    width: 100%;
    min-height: 76px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: .015em;
    border-radius: 16px;
}

.income-create [data-income-step="1"] .group-option-content {
    gap: 12px;
}

.income-create [data-income-step="1"] .group-option-icon {
    width: 56px;
    height: 36px;
}

.expense-create [data-expense-step="1"] .group-picker {
    width: 100%;
}

.expense-create [data-expense-step="1"] .group-option {
    width: 100%;
    min-height: 76px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: .015em;
    border-radius: 16px;
}

.expense-create [data-expense-step="1"] .group-option-content {
    gap: 12px;
}

.expense-create [data-expense-step="1"] .group-option-icon {
    width: 56px;
    height: 36px;
}

.expense-create [data-expense-step="1"] .group-option:hover {
    border-color: #fecaca;
    background: #fff5f5;
}

.expense-create [data-expense-step="1"] .group-option.is-selected {
    border-color: #fecaca;
    background: #fef2f2;
}

.stepper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
    justify-content: center;
    width: 100%;
    position: relative;
    padding: 6px 0;
    --step-progress: 0%;
}

.income-create-stepper,
.expense-create-stepper {
    margin-bottom: 14px;
}

.stepper::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 1px;
    background: #e5eaf1;
    z-index: 0;
}

.stepper::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 1px;
    width: var(--step-progress);
    background: #cbd5e1;
    z-index: 0;
}

.income-create-stepper::after {
    background: var(--green-primary-light);
}

.stepper-item {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    position: relative;
    z-index: 1;
}

.income-create-stepper .stepper-item.is-active {
    color: var(--green-text);
    background: var(--green-soft);
    border-color: var(--green-soft-strong);
}

.expense-create-stepper::after {
    background: #f87171;
}

.expense-create-stepper .stepper-item.is-active {
    color: #b91c1c;
    background: #fee2e2;
    border-color: #fecaca;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #dbe3ee;
    background: #ffffff;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

/* Ok, kutunun sağ çizgisinden içeride dursun (kenara yapışmasın) */
.field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 48px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 22px center;
    background-size: 14px 14px;
    cursor: pointer;
}

.field textarea {
    min-height: 110px;
    padding: 12px 14px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.2);
}

.field select.is-disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

.expense-period-readonly {
    background-color: #f8fafc !important;
    color: #64748b !important;
    border-color: #e2e8f0 !important;
    cursor: default !important;
    user-select: none;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.form-panel.income-create .form-actions,
.form-panel.expense-create .form-actions {
    justify-content: flex-end;
    margin-top: 14px;
}

.form-panel.income-create .form-actions .btn,
.form-panel.expense-create .form-actions .btn {
    min-width: 140px;
}

.form-panel.income-create .field label,
.form-panel.expense-create .field label {
    margin-bottom: 2px;
}

.form-panel.expense-create .field input:focus,
.form-panel.expense-create .field select:focus,
.form-panel.expense-create .field textarea:focus {
    border-color: #fca5a5;
    box-shadow: 0 0 0 4px rgba(252, 165, 165, 0.22);
}

.expense-amount-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
}

.expense-money-input-wrap {
    flex: 0 0 48%;
    max-width: 48%;
    min-width: 240px;
    position: relative;
}

.expense-money-sign {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: 800;
    color: #b91c1c;
    pointer-events: none;
}

.expense-money-input-wrap .money-input-prefix {
    left: 25px;
}

.expense-money-input-wrap input[type="text"] {
    padding-left: 40px !important;
}

.expense-vat-choice {
    min-width: 142px;
    max-width: 142px;
    flex: 0 0 142px;
}

.expense-create .expense-vat-choice .income-vat-thumb {
    background: #fee2e2;
    border-color: #fecaca;
}

.expense-create .expense-vat-choice.is-with-vat .income-vat-option:first-child,
.expense-create .expense-vat-choice.is-without-vat .income-vat-option:last-child {
    color: #7f1d1d;
}

.expense-vat-preview {
    border: 1px solid #fecaca;
    background: #fff7f7;
    border-radius: 12px;
    min-height: 46px;
    padding: 6px 10px;
    display: grid;
    gap: 2px;
    min-width: 150px;
}

.expense-vat-preview[hidden] {
    display: none !important;
}

.expense-vat-preview span {
    font-size: 11px;
    color: #991b1b;
}

.expense-vat-preview strong {
    font-size: 14px;
    color: #7f1d1d;
    font-weight: 800;
}

.expense-step2-grid .expense-field-category {
    grid-column: span 1;
}

.expense-step2-grid .expense-field-amount {
    grid-column: span 3;
}

.expense-step2-grid .expense-field-payee {
    grid-column: span 1;
}

.expense-step2-grid .expense-field-period {
    grid-column: span 1;
}

.expense-step2-grid .expense-field-repair {
    grid-column: span 2;
}

.expense-step2-grid .expense-field-date,
.expense-step2-grid .expense-field-owner {
    grid-column: span 1;
}

.expense-step-actions {
    margin-top: 28px !important;
}

.expense-amount-cell {
    white-space: nowrap;
}

.expense-installment-plan-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fff7f7;
    overflow: hidden;
}

.expense-installment-plan-list li {
    display: grid;
    grid-template-columns: 80px minmax(150px, 1fr) minmax(210px, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px dashed #fecaca;
    font-size: 12px;
    color: #7f1d1d;
}

.expense-installment-plan-list li:last-child {
    border-bottom: 0;
}

.expense-installment-plan-list li strong {
    font-size: 13px;
    font-weight: 800;
    color: #b91c1c;
    white-space: nowrap;
}

.installment-progress-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fecaca;
    background: #fff7f7;
    color: #9f1239;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    padding: 4px 8px;
    margin-right: 8px;
}

.installment-inspect-link {
    display: inline-flex;
    margin-left: 8px;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed #fca5a5;
}

.installment-inspect-link:hover {
    color: #7f1d1d;
}

.installment-status-paid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
}

.installment-status-pending {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fff1f2;
    border: 1px solid #fecaca;
    color: #9f1239;
    font-size: 11px;
    font-weight: 700;
}

.installment-row-paid {
    background: #f0fdf4 !important;
}

@media (max-width: 700px) {
    .expense-installment-plan-list li {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.expense-list-filters .income-group-dropdown-text,
.expense-list-filters .field select,
.expense-list-filters .field input[type="date"] {
    white-space: nowrap;
}

.income-list-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

/* Gelir/gider: masthead filtre satırı tam genişlikte (varsayılan 420px formu sıkıştırıyordu) */
.income-list-filters.reports-filter-form--period-masthead,
.expense-list-filters.reports-filter-form--period-masthead {
    max-width: none;
    width: 100%;
}

.expense-list-filters {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.expense-list-filters {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    --expense-summary-col-w: calc((100% - 32px) / 5);
}

.expense-list-filters .income-expense-filters-toolbar {
    grid-column: 1 / -1;
}

.expense-list-filters .expense-filter-field-period {
    grid-column: 5 / 6;
    grid-row: 2;
    justify-self: stretch;
    margin-top: 0;
}

.expense-list-filters .expense-filter-field-period .reports-period-open.reports-period-open--masthead {
    min-width: 0;
    width: 100%;
    max-width: none;
}

.expense-list-filters .expense-filter-field-payment {
    grid-column: 4 / 5;
    grid-row: 2;
}

.expense-list-filters .expense-filter-field-sort {
    grid-column: 5 / 6;
    grid-row: 3;
    margin-top: 0;
    justify-self: stretch;
}

.income-list-filters .field,
.expense-list-filters .field {
    min-width: 0;
}

.income-expense-filters-toolbar {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0 0 2px;
    position: relative;
    top: 0;
    margin-bottom: 0;
}

.income-expense-filters-toolbar .reports-pills {
    padding-top: 0;
}

.income-toolbar-controls,
.expense-toolbar-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    flex-wrap: wrap;
    margin-left: auto;
}

.income-filter-field-vat-toolbar {
    margin: 0;
}

.income-filter-field-vat-toolbar .income-filter-vat-segment {
    min-height: 40px;
    width: 220px;
    max-width: 220px;
}

.expense-list-filters .income-expense-filters-toolbar .expense-filter-field-payment--toolbar {
    width: auto;
    min-width: 200px;
    max-width: 280px;
    margin-left: 0;
}

/* Sol: hesap grubu pill’leri; sağ: KDV + dönem veya ödeme + dönem */
.reports-masthead-toolbar.income-expense-filters-toolbar {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.reports-masthead-toolbar.income-expense-filters-toolbar .reports-pills {
    flex: 1 1 auto;
    min-width: 0;
    max-width: min(100%, 72vw);
}

.income-expense-filters-toolbar .reports-period-inline {
    align-items: center;
    justify-content: center;
}

.income-expense-filters-toolbar .reports-period-masthead-trigger {
    max-width: none;
    width: auto;
    align-items: stretch;
}

.reports-masthead-toolbar.income-expense-filters-toolbar .reports-pill {
    border-radius: 999px;
}

.income-filter-field-start,
.income-filter-field-end,
.expense-filter-field-start,
.expense-filter-field-end {
    max-width: 180px;
}

.income-filter-field-sort,
.expense-filter-field-sort {
    width: 100%;
    max-width: none;
    justify-self: stretch;
}

.expense-list-filters .expense-filter-field-payment {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    margin-top: 0;
}

.expense-list-filters .expense-filter-field-sort {
    width: 100%;
    max-width: none;
}

.expense-list-filters .expense-filter-field-payment > label,
.expense-list-filters .expense-filter-field-sort > label {
    display: none;
}

.income-filter-field-sort select,
.expense-filter-field-sort select,
.expense-list-filters .expense-payment-dropdown .income-group-dropdown-summary {
    height: 26px;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.2;
}

.income-expense-filters-toolbar .reports-period-open.reports-period-open--masthead {
    min-width: 200px;
    width: auto;
    max-width: min(380px, 42vw);
    justify-content: space-between;
    border-radius: 999px;
}

/* Gider: dönem butonu ödeme dropdown ile aynı yükseklik; genişlik sabit sütun değil */
.expense-list-filters .income-expense-filters-toolbar .reports-period-open.reports-period-open--masthead {
    min-height: 46px;
    width: auto;
    min-width: 200px;
    max-width: min(380px, 42vw);
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    padding: 0 40px 0 12px;
    box-shadow: none;
    justify-content: flex-start;
    position: relative;
}

.expense-list-filters .income-expense-filters-toolbar .reports-period-open-chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.8;
}

.expense-list-filters .expense-payment-dropdown .income-group-dropdown-panel {
    min-width: 360px;
    max-width: 420px;
    max-height: 420px;
    overflow-y: auto;
}

.expense-list-filters .income-expense-filters-toolbar .expense-payment-dropdown .income-group-dropdown-summary {
    border-radius: 999px;
}

.expense-list-filters .expense-payment-dropdown .income-group-filter {
    gap: 0;
}

.expense-list-filters .expense-payment-dropdown .income-group-filter-item {
    min-height: 28px;
    padding: 0 6px;
}

.expense-list-filters .expense-payment-dropdown .income-group-filter-item-visual {
    line-height: 1.2;
    font-size: 13px;
}

.expense-payment-section-title {
    margin: 2px 4px 1px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.expense-payment-divider {
    height: 1px;
    margin: 2px 2px;
    background: #e2e8f0;
}

@media (max-width: 980px) {
    .expense-list-filters {
        grid-template-columns: 1fr;
    }

    .expense-list-filters .expense-filter-field-period,
    .expense-list-filters .expense-filter-field-payment,
    .expense-list-filters .expense-filter-field-sort {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
        max-width: 100%;
    }
}

.income-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.income-summary-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 8px 10px;
    display: grid;
    gap: 2px;
}

.income-summary-item span {
    font-size: 11px;
    color: #64748b;
}

.income-summary-item strong {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}

.income-summary-item-net {
    border-color: var(--green-soft-strong);
    background: linear-gradient(90deg, var(--green-soft) 0%, #ffffff 100%);
}

.income-summary-item-net strong,
.income-net-cell {
    color: var(--green-text);
}

.expense-summary-total {
    border-color: #fecaca;
    background: linear-gradient(90deg, #fee2e2 0%, #ffffff 100%);
}

.expense-summary-total strong {
    color: #b91c1c;
}

.income-group-filter {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}

.income-group-filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    min-height: 30px;
    padding: 0 8px;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
}

.income-group-filter-item:hover {
    background: #f8fafc;
}

.income-group-filter-item input {
    width: 12px;
    height: 12px;
    margin: 0;
}

.income-group-filter-field {
    min-width: 0;
}

.income-group-dropdown {
    position: relative;
}

.income-group-dropdown-summary {
    list-style: none;
    min-height: 46px;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #fff;
    padding: 0 44px 0 12px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #0f172a;
    cursor: pointer;
    position: relative;
}

.income-group-dropdown-summary::-webkit-details-marker {
    display: none;
}

.income-group-dropdown-summary::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 14px 14px;
}

.income-group-dropdown[open] .income-group-dropdown-summary {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.income-group-dropdown[open] .income-group-dropdown-summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.income-group-dropdown-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.income-group-dropdown-panel {
    position: absolute;
    left: 0;
    right: 0;
    margin-top: 6px;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #fff;
    padding: 8px;
    z-index: 20;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
    max-height: 230px;
    overflow: auto;
}

.income-filter-vat-segment {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 46px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    padding: 2px;
    overflow: hidden;
}

.income-filter-vat-option {
    flex: 1 1 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.income-filter-vat-option span {
    display: inline-block;
    text-align: center;
    line-height: 1.05;
    letter-spacing: .01em;
}

.income-filter-vat-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.income-filter-vat-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(33.3333% - 1.5px);
    height: calc(100% - 4px);
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    z-index: 1;
    transition: transform .2s ease;
}

.income-filter-vat-segment.is-all .income-filter-vat-thumb {
    transform: translateX(0);
}

.income-filter-vat-segment.is-with-vat .income-filter-vat-thumb {
    transform: translateX(100%);
}

.income-filter-vat-segment.is-without-vat .income-filter-vat-thumb {
    transform: translateX(200%);
}

.income-filter-vat-segment.is-all .income-filter-vat-option:nth-child(1),
.income-filter-vat-segment.is-with-vat .income-filter-vat-option:nth-child(2),
.income-filter-vat-segment.is-without-vat .income-filter-vat-option:nth-child(3) {
    color: #0f172a;
}

.income-th-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.income-th-sort-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid #dbe3ee;
    color: #64748b;
    text-decoration: none;
    font-size: 11px;
    line-height: 1;
    background: #fff;
}

.income-th-sort-icon.is-active {
    color: #0f172a;
    border-color: #93c5fd;
    background: #eff6ff;
}

.table-action-trash {
    min-width: auto;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 10px;
}

.table-action-trash svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.income-step2-grid .field-wide {
    grid-column: span 2;
}

.money-input-wrap {
    position: relative;
}

.money-input-prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    pointer-events: none;
}

.money-input-wrap:not(.expense-money-input-wrap) input[type="text"] {
    padding-left: 34px;
}

.income-amount-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
}

.income-amount-main {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 280px;
}

.income-vat-wrap {
    margin-top: 6px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    max-width: 100%;
}

.income-vat-choice {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    min-width: 152px;
    max-width: 152px;
    flex: 0 0 152px;
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    padding: 2px;
    overflow: hidden;
    min-height: 46px;
    height: 46px;
}

.income-vat-choice-inline {
    min-width: 152px;
    max-width: 152px;
    flex: 0 0 152px;
    margin-inline: 0;
}

.income-vat-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 42px;
    padding: 0 6px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    flex: 1 1 50%;
    position: relative;
    z-index: 2;
}

.income-vat-option span {
    display: inline-block;
    text-align: center;
    line-height: 1.05;
    letter-spacing: .01em;
}

.income-vat-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.income-vat-choice.is-with-vat .income-vat-option:first-child,
.income-vat-choice.is-without-vat .income-vat-option:last-child {
    color: #0f172a;
}

.income-vat-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(50% - 2px);
    height: calc(100% - 4px);
    border-radius: 8px;
    background: #e8f0ff;
    border: 1px solid #bfdbfe;
    transition: transform .2s ease;
    z-index: 1;
}

.income-vat-choice.is-without-vat .income-vat-thumb {
    transform: translateX(100%);
}

.income-vat-values {
    width: 100%;
}

.income-vat-line {
    display: grid;
    grid-template-columns: repeat(4, minmax(88px, 1fr));
    gap: 6px;
    align-items: stretch;
}

.income-vat-results {
    flex: 1 1 auto;
    min-width: 380px;
    max-width: 100%;
    display: flex;
    align-items: stretch;
}

.income-vat-simple {
    width: 100%;
}

.income-vat-simple-box {
    min-height: 46px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: #ffffff;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.income-vat-simple-box span {
    font-size: 12px;
    color: #64748b;
}

.income-vat-simple-box strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--green-text);
}

.income-vat-results.is-without-vat .income-vat-simple-box {
    opacity: .5;
}

.income-vat-results.is-without-vat .income-vat-values {
    display: none;
}

.income-vat-results.is-with-vat .income-vat-simple {
    display: none;
}

.income-vat-value-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    min-height: 46px;
    padding: 6px 8px;
    display: grid;
    align-content: center;
    gap: 2px;
    overflow: hidden;
}

.income-vat-value-item span {
    font-size: 10px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.income-vat-value-item strong {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    white-space: nowrap;
}

.income-vat-value-item-net {
    border-color: var(--green-soft-strong);
    background: linear-gradient(90deg, var(--green-soft) 0%, #ffffff 100%);
}

.income-vat-value-item-net strong {
    font-size: 13px;
    font-weight: 900;
    color: var(--green-text);
}

@media (max-width: 700px) {
    .income-list-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .income-group-dropdown-panel {
        position: static;
        margin-top: 8px;
        box-shadow: none;
    }

    .income-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .income-amount-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .expense-amount-inline {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .income-amount-main {
        flex: 1 1 auto;
        max-width: none;
    }

    .expense-money-input-wrap {
        flex: 1 1 0;
        max-width: none;
        min-width: 0;
    }

    .expense-step2-grid .expense-field-category,
    .expense-step2-grid .expense-field-amount,
    .expense-step2-grid .expense-field-payee,
    .expense-step2-grid .expense-field-period,
    .expense-step2-grid .expense-field-repair,
    .expense-step2-grid .expense-field-date,
    .expense-step2-grid .expense-field-owner {
        grid-column: span 1;
    }

    .income-vat-choice-inline {
        min-width: 0;
        max-width: 100%;
        flex: 1 1 auto;
    }

    .expense-vat-choice {
        min-width: 94px;
        max-width: 94px;
        flex: 0 0 94px;
    }

    .income-vat-choice-inline .income-vat-option {
        flex: 1 1 0;
        justify-content: center;
    }

    .income-vat-choice {
        min-width: 0;
        max-width: none;
        flex: 1 1 auto;
    }

    .income-vat-results {
        min-width: 0;
    }

    .expense-vat-preview {
        min-width: 84px;
        flex: 0 0 84px;
        padding: 4px 6px;
    }

    .expense-vat-preview span {
        font-size: 10px;
    }

    .expense-vat-preview strong {
        font-size: 12px;
    }

    .expense-vat-choice .income-vat-option {
        min-height: 38px;
        padding: 0 4px;
        font-size: 10px;
    }

    .income-vat-line {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .income-list-filters,
    .income-summary-grid {
        grid-template-columns: 1fr;
    }

    .income-vat-line {
        grid-template-columns: 1fr;
    }
}

body.modal-open {
    overflow: hidden;
}

/* Özet popup: sade ve odaklı tasarım */
.txn-summary-dialog {
    margin: 0;
    padding: 18px;
    border: none;
    background: transparent;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.txn-summary-dialog::backdrop {
    background: rgba(15, 23, 42, 0.32);
}

.txn-summary-dialog:not([open]) {
    display: none;
}

.txn-summary-panel.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    margin: 0;
    padding: 24px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
}

.txn-summary-head {
    text-align: center;
    margin-bottom: 18px;
}

.txn-summary-icon-wrap {
    width: 54px;
    height: 54px;
    margin: 0 auto 10px;
    border-radius: 999px;
    display: grid;
    place-items: center;
}

.txn-summary-icon {
    width: 18px;
    height: 10px;
    border-left: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(-45deg);
}

.txn-summary-panel.is-income .txn-summary-icon-wrap {
    background: #ecfdf5;
    color: var(--green-text);
}

.txn-summary-panel.is-expense .txn-summary-icon-wrap {
    background: #fef2f2;
    color: #b91c1c;
}

.txn-summary-kicker {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 5px 11px;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
}

.txn-summary-panel.is-income .txn-summary-kicker {
    color: var(--green-text);
    background: #ecfdf5;
    border-color: var(--green-soft-strong);
}

.txn-summary-panel.is-expense .txn-summary-kicker {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.txn-summary-heading.section-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
}

.txn-summary-lead.section-description {
    margin: 0;
    font-size: 14px;
    max-width: 34em;
    margin-left: auto;
    margin-right: auto;
}

.txn-summary-amount {
    margin: 14px auto 0;
    border-radius: 14px;
    padding: 10px 16px;
    min-width: 210px;
    width: fit-content;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    border: 1px solid #e2e8f0;
}

.txn-summary-amount--income {
    background: linear-gradient(135deg, var(--green-soft) 0%, #ffffff 65%);
    border-color: var(--green-soft-strong);
    color: var(--green-text);
}

.txn-summary-amount--expense {
    background: linear-gradient(135deg, #fee2e2 0%, #ffffff 65%);
    border-color: #fecaca;
    color: #b91c1c;
}

.txn-summary-dl {
    margin: 0 0 20px;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.txn-summary-row {
    display: grid;
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    gap: 8px 14px;
    align-items: baseline;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
    border-bottom: 1px solid #eef2f7;
}

.txn-summary-row:last-child {
    border-bottom: none;
}

.txn-summary-row dt {
    margin: 0;
    font-weight: 700;
    color: #64748b;
    font-size: 13px;
}

.txn-summary-row dd {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
}

.txn-summary-actions {
    display: flex;
    justify-content: center;
}

.txn-summary-actions .btn {
    min-width: 190px;
    min-height: 46px;
    border-radius: 14px;
}

.confirm-dialog {
    margin: 0;
    padding: 18px;
    border: none;
    background: transparent;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-dialog::backdrop {
    background: rgba(15, 23, 42, 0.34);
}

.confirm-dialog:not([open]) {
    display: none;
}

.confirm-dialog-panel.card {
    width: 100%;
    max-width: 460px;
    margin: 0;
    padding: 22px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
    border: 1px solid #fee2e2;
}

.confirm-dialog-heading {
    margin-bottom: 8px;
    color: #991b1b;
}

.confirm-dialog-message {
    margin-bottom: 16px;
    color: #475569;
}

.confirm-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.confirm-dialog-installments {
    border: 1px solid #fee2e2;
    border-radius: 12px;
    background: #fff7f7;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.confirm-dialog-installments h4 {
    margin: 0 0 8px;
    font-size: 12px;
    color: #991b1b;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.confirm-dialog-installments ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    max-height: 220px;
    overflow: auto;
}

.confirm-dialog-installments li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #475569;
}

.confirm-dialog-installments li strong {
    color: #b91c1c;
    white-space: nowrap;
}

.confirm-installment-status {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.confirm-installment-status.paid {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #86efac;
}

.confirm-installment-status.pending {
    color: #9f1239;
    background: #ffe4e6;
    border: 1px solid #fecdd3;
}

@media (max-width: 520px) {
    .txn-summary-dialog {
        padding: 16px;
    }

    .txn-summary-panel.card {
        padding: 20px 16px;
    }

    .txn-summary-amount {
        width: 100%;
        min-width: 0;
        font-size: 24px;
    }

    .txn-summary-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .txn-summary-actions .btn {
        width: 100%;
    }

    .confirm-dialog {
        padding: 16px;
    }

    .confirm-dialog-actions {
        flex-direction: column-reverse;
    }

    .confirm-dialog-actions .btn {
        width: 100%;
    }

    .confirm-dialog-installments li {
        flex-direction: column;
        gap: 2px;
    }
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.table th,
.table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    font-size: 14px;
    vertical-align: middle;
}

.table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.table tbody tr:hover {
    background: #fcfdff;
}

.empty-state {
    padding: 18px;
    border-radius: 16px;
    background: #f8fafc;
    color: #64748b;
}

.list-inline {
    margin: 0;
    padding-left: 18px;
    color: #64748b;
    line-height: 1.8;
}

.account-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.bank-account-filters {
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    align-items: end;
}

.bank-account-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.account-card-item {
    --account-accent: #ef4444;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 14px;
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--account-accent) 12%, #ffffff) 0%,
            color-mix(in srgb, var(--account-accent) 4%, #ffffff) 42%,
            #ffffff 100%
        ) padding-box,
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--account-accent) 32%, #ffffff) 0%,
            color-mix(in srgb, var(--account-accent) 13%, #ffffff) 52%,
            color-mix(in srgb, var(--account-accent) 4%, #ffffff) 100%
        ) border-box;
    display: grid;
    gap: 10px;
    cursor: grab;
    user-select: none;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--account-accent) 18%, transparent);
}

.account-card-item.is-dragging {
    opacity: 0.6;
    cursor: grabbing;
}

.account-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.account-card-head h4 {
    margin: 0;
    font-size: 16px;
    color: color-mix(in srgb, var(--account-accent) 72%, #0f172a);
}

.account-card-sub {
    margin: 0;
    font-size: 12px;
    color: color-mix(in srgb, var(--account-accent) 36%, #64748b);
    word-break: break-all;
}

.account-card-stats {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    font-size: 13px;
}

.account-card-stats span {
    color: color-mix(in srgb, var(--account-accent) 36%, #64748b);
}

.account-card-stats strong {
    font-weight: 700;
    color: color-mix(in srgb, var(--account-accent) 58%, #111827);
}

.account-card-stats .account-stat-income {
    color: #15803d;
}

.account-card-stats .account-stat-payment {
    color: #b91c1c;
}

.account-card-balance {
    border-top: 1px dashed color-mix(in srgb, var(--account-accent) 34%, #e5e7eb);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.account-card-balance span {
    color: color-mix(in srgb, var(--account-accent) 36%, #64748b);
    font-size: 13px;
}

.account-card-balance strong {
    font-weight: 800;
    color: color-mix(in srgb, var(--account-accent) 74%, #0f172a);
}

.installments-filters {
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    align-items: end;
}

.installments-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.installments-kpi {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    padding: 10px 12px;
    display: grid;
    gap: 4px;
}

.installments-kpi span {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
}

.installments-kpi strong {
    font-size: 16px;
    color: #0f172a;
}

.installments-kpi.is-wide {
    grid-column: span 2;
}

.installments-period-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.installments-period-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    padding: 12px;
    display: grid;
    gap: 8px;
}

.installments-period-grid > .installments-period-card:nth-child(odd) {
    background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 58%, #ffffff 100%);
}

.installments-period-grid > .installments-period-card:nth-child(even) {
    background: #ffffff;
}

.installments-period-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #e2e8f0;
}

.installments-period-head strong {
    color: #0f172a;
    font-size: 15px;
}

.installments-period-head span {
    color: #64748b;
    font-size: 12px;
}

.installments-period-head-badge {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 600;
}

.installments-period-lines {
    display: grid;
    gap: 6px;
}

.installments-period-card-name {
    color: color-mix(in srgb, var(--payment-card-color, #ef4444) 72%, #0f172a);
    font-weight: 700;
    font-size: 13px;
}

.installments-period-line-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.installments-period-line-right strong {
    color: #b91c1c;
    white-space: nowrap;
}

.installments-period-total {
    border-top: 1px dashed #e2e8f0;
    padding-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.installments-period-total strong {
    color: #b91c1c;
}

.installments-group-grid .installments-period-card {
    gap: 10px;
}

@media (min-width: 1024px) {
    .installments-period-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.installments-group-cats {
    display: grid;
    gap: 6px;
}

.installments-group-cat-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    background: #fff;
    padding: 7px 10px;
}

.installments-group-cat-line strong {
    color: #b91c1c;
}

.installments-row-details {
    margin: 2px 0 0;
}

.installments-row-summary {
    cursor: pointer;
    color: #334155;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 10px;
    background: #ffffff;
    list-style: none;
}

.installments-row-summary.is-paid {
    background: #f8fafc;
}

.installments-row-summary::-webkit-details-marker {
    display: none;
}

.installments-row-chevron {
    color: #64748b;
    font-size: 14px;
    line-height: 1;
    transition: transform .16s ease;
}

.installments-row-details[open] .installments-row-chevron {
    transform: rotate(180deg);
}

.installments-row-details-list {
    margin-top: 6px;
    border: 1px dashed #e2e8f0;
    border-radius: 10px;
    padding: 6px 8px;
    display: grid;
    gap: 6px;
}

.installments-row-details-title {
    font-size: 12px;
    color: #334155;
    font-weight: 800;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 8px;
}

.installments-row-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
}

.installments-row-detail-item strong {
    color: #b91c1c;
}

.installment-plan-list {
    display: grid;
    gap: 10px;
}

.installment-plan-item {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.installment-plan-summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    background: #f8fafc;
}

.installment-plan-summary::-webkit-details-marker {
    display: none;
}

.installment-plan-summary > div {
    display: grid;
    gap: 4px;
}

.installment-plan-summary span {
    color: #64748b;
    font-size: 12px;
}

.installment-plan-summary-right {
    text-align: right;
}

.installment-plan-summary-right strong {
    color: #b91c1c;
    font-size: 14px;
}

.installment-plan-lines {
    margin: 0;
    padding: 10px 12px 12px 28px;
    display: grid;
    gap: 8px;
}

.installment-plan-lines li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
}

.installment-plan-lines li strong {
    color: #b91c1c;
    white-space: nowrap;
}

.installments-line-list {
    display: grid;
    gap: 8px;
}

.installments-line-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
}

.installments-line-item.is-paid {
    background: #f8fafc;
}

.installments-line-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.installments-line-text {
    color: color-mix(in srgb, var(--payment-card-color, #ef4444) 72%, #0f172a);
    font-size: 14px;
}

.installments-line-right {
    flex-shrink: 0;
}

.installments-total-bar {
    margin-top: 10px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.installments-total-bar strong {
    color: #b91c1c;
}

.installments-group-list {
    display: grid;
    gap: 10px;
}

.installments-group-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}

.installments-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.installments-group-head span {
    color: #b91c1c;
    font-weight: 700;
}

.installments-group-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

@media (min-width: 1024px) {
    .sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: none;
    }

    .menu-button {
        display: none;
    }
}

@media (max-width: 1023px) {
    .page-hero {
        flex-direction: column;
    }

    .page-meta {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .grid-2,
    .grid-3,
    .stats-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-actions {
        grid-template-columns: 1fr;
    }

    .field-wide {
        grid-column: span 1;
    }

    .installments-kpi.is-wide {
        grid-column: span 1;
    }

    .reports-two-col {
        grid-template-columns: 1fr;
    }
}

/* ——— Raporlar: editoryal sayfa düzeni ——— */
.reports-page {
    --rp-ink: #0f172a;
    --rp-muted: #64748b;
    --rp-faint: #94a3b8;
    --rp-line: rgba(148, 163, 184, 0.35);
    --rp-surface: rgba(255, 255, 255, 0.78);
    --rp-inc: #059669;
    --rp-inc-soft: #d1fae5;
    --rp-exp: #dc2626;
    --rp-exp-soft: #fee2e2;
    --rp-radius: 20px;
    --rp-radius-sm: 14px;
    --rp-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
    --rp-shadow-soft: 0 4px 24px rgba(15, 23, 42, 0.04);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    color-scheme: only light;
    overflow: visible;
}

.reports-masthead {
    position: relative;
    z-index: 5;
    margin-bottom: 22px;
    padding: clamp(10px, 2.8vw, 20px) clamp(20px, 3vw, 28px) 0;
    border-radius: var(--rp-radius);
    background-color: #ffffff;
    background-image:
        radial-gradient(120% 80% at 0% 0%, rgba(5, 150, 105, 0.09) 0%, transparent 55%),
        radial-gradient(90% 70% at 100% 0%, rgba(220, 38, 38, 0.06) 0%, transparent 50%);
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: var(--rp-shadow);
    overflow: visible;
    isolation: isolate;
}

.reports-masthead-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    margin-bottom: 0;
    padding-bottom: clamp(16px, 2.5vw, 20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}

.reports-masthead-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 2vw, 20px);
    flex-wrap: wrap;
    margin-top: clamp(14px, 2vw, 18px);
    padding-bottom: clamp(14px, 2.4vw, 22px);
    position: relative;
    z-index: 2;
    overflow: visible;
}

.reports-masthead-toolbar .reports-pills {
    margin-top: 0;
    padding: 4px 0 0;
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
}

.reports-period-inline {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 6;
}

.reports-filter-form--period-masthead {
    position: relative;
    margin: 0;
    width: 100%;
    max-width: 420px;
}

.reports-period-masthead-trigger {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    width: 100%;
    max-width: 420px;
}

.reports-period-open-label {
    font: inherit;
    font-weight: inherit;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reports-period-open-label strong {
    font-weight: inherit;
}

.reports-period-open-chevron {
    font-size: 1em;
    line-height: 1;
    opacity: 0.75;
}

.reports-period-inline-summary {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.35;
    max-width: 100%;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .reports-masthead-toolbar .reports-pills {
        flex: 1 1 100%;
    }

    .reports-period-inline {
        width: 100%;
        align-items: flex-end;
    }
}

.reports-eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0284c7;
}

.reports-title {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--rp-ink);
}

.reports-lead {
    margin: 0;
    max-width: 760px;
    font-size: 16px;
    line-height: 1.7;
    color: #64748b;
}

.reports-lead strong {
    color: #334155;
    font-weight: 700;
}

.reports-pills {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin: 0;
    padding: 4px 0 10px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    background: transparent;
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.35) transparent;
}

.reports-pills::-webkit-scrollbar {
    height: 5px;
}

.reports-pills::-webkit-scrollbar-track {
    background: transparent;
}

.reports-pills::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.3);
    border-radius: 999px;
}

.reports-pill {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 12px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #475569;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.15s ease;
}

.reports-pill:hover {
    border-color: #cbd5e1;
    color: var(--rp-ink);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.reports-pill:focus {
    outline: none;
}

.reports-pill:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 3px;
}

.reports-pill.is-active {
    color: var(--rp-ink);
    background: linear-gradient(165deg, #fff 0%, #f1f5f9 100%);
    border-color: #94a3b8;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 10px 28px rgba(15, 23, 42, 0.1);
}

.reports-pill.is-muted:not(.is-active) {
    opacity: 0.55;
}

.reports-pill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex-shrink: 0;
}

.reports-pill.is-active .reports-pill-icon {
    color: #334155;
}

.reports-pill:not(.reports-pill--all) {
    min-width: 9rem;
    padding-left: 16px;
    padding-right: 26px;
}

/* Global .settings-group-icon-svg avatar kutularında absolute; pill içinde satır hizası */
.reports-pill-icon--group .settings-group-icon-svg,
.reports-pill-icon--group svg {
    position: static;
    right: auto;
    top: auto;
    transform: none;
    width: auto;
    height: 26px;
    max-height: 26px;
    max-width: 34px;
    display: block;
}

.reports-pill-icon--group .group-option-icon-emoji,
.reports-pill-icon--group .settings-emoji {
    font-size: 1.35rem;
    line-height: 1;
}

.reports-pill-text {
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.reports-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 18px);
    margin-bottom: 18px;
}

@media (max-width: 800px) {
    .reports-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .reports-kpis {
        grid-template-columns: 1fr;
    }
}

.reports-kpi {
    position: relative;
    padding: 14px 16px 12px;
    border-radius: var(--rp-radius-sm);
    border: 1px solid var(--rp-line);
    background: var(--rp-surface);
    backdrop-filter: blur(10px);
    box-shadow: var(--rp-shadow-soft);
    overflow: hidden;
}

.reports-kpi::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
    opacity: 0.9;
}

.reports-kpi--income::after {
    background: linear-gradient(180deg, var(--rp-inc), #34d399);
}

.reports-kpi--expense::after {
    background: linear-gradient(180deg, var(--rp-exp), #f97316);
}

.reports-kpi--net::after {
    background: linear-gradient(180deg, #94a3b8, #cbd5e1);
}

.reports-kpi--net-soft {
    background: linear-gradient(155deg, rgba(248, 250, 252, 0.99) 0%, rgba(241, 245, 249, 0.88) 45%, rgba(226, 232, 240, 0.55) 100%);
    border-color: rgba(203, 213, 225, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.reports-kpi--net-soft::after {
    opacity: 0.35;
    background: linear-gradient(180deg, #cbd5e1, #e2e8f0);
}

.reports-kpi--net-soft .reports-kpi-value {
    color: #64748b;
    font-weight: 700;
}

.reports-kpi--net-soft .reports-kpi-label,
.reports-kpi--net-soft .reports-kpi-meta {
    color: #94a3b8;
}

.reports-kpi--tax {
    grid-column: span 1;
}

.reports-kpi--tax::after {
    background: linear-gradient(180deg, #f59e0b, #facc15);
}

.reports-kpi--tax .reports-kpi-value {
    color: #a16207;
}

.reports-kpi-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #64748b;
    margin-bottom: 8px;
}

.reports-kpi-value {
    display: block;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.reports-kpi--income .reports-kpi-value {
    color: var(--rp-inc);
}

.reports-kpi--expense .reports-kpi-value {
    color: var(--rp-exp);
}

.reports-kpi-meta {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

.reports-vat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.reports-vat-strip--income {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.reports-vat-strip--income .reports-vat-strip-value {
    font-size: 16px;
}

@media (max-width: 720px) {
    .reports-vat-strip {
        grid-template-columns: 1fr;
    }
}

.reports-vat-strip-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 2px;
    text-align: left;
}

.reports-vat-strip-value {
    font-size: 18px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #334155;
    letter-spacing: -0.02em;
    text-align: left;
}

.reports-vat-strip-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px 8px;
    background: #fff;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-height: 62px;
}

.reports-vat-strip--income .reports-vat-strip-item:nth-child(1) {
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
    border-color: #bbf7d0;
}

.reports-vat-strip--income .reports-vat-strip-item:nth-child(2) {
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border-color: #bfdbfe;
}

.reports-vat-strip--income .reports-vat-strip-item:nth-child(3) {
    background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
    border-color: #ddd6fe;
}

.reports-vat-strip--income .reports-vat-strip-item:nth-child(4) {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    border-color: #fed7aa;
}

.reports-vat-strip--income .reports-vat-strip-item:nth-child(5) {
    background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
    border-color: #fecaca;
}

.reports-vat-strip:not(.reports-vat-strip--income) .reports-vat-strip-item:nth-child(1) {
    background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
    border-color: #fecaca;
}

.reports-vat-strip:not(.reports-vat-strip--income) .reports-vat-strip-item:nth-child(2) {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    border-color: #fed7aa;
}

.reports-vat-strip:not(.reports-vat-strip--income) .reports-vat-strip-item:nth-child(3) {
    background: linear-gradient(180deg, #fef2f2 0%, #ffffff 100%);
    border-color: #fecaca;
}

.reports-income-lines-table {
    font-size: 13px;
}

.reports-income-lines-wrap {
    max-height: min(420px, 55vh);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
}

.reports-page--all-groups .reports-inner-card {
    padding: 14px 16px;
}

.reports-page--all-groups .section-header .section-description {
    font-size: 13px;
    line-height: 1.45;
}

.reports-page--all-groups .reports-pivot-table th,
.reports-page--all-groups .reports-pivot-table td {
    padding: 6px 8px;
    font-size: 12px;
}

.reports-page--all-groups .reports-pivot-table .reports-pivot-sticky {
    min-width: 100px;
    max-width: 160px;
}

.reports-page--all-groups .table th,
.reports-page--all-groups .table td {
    padding: 8px 10px;
    font-size: 13px;
}

.reports-page--all-groups .reports-income-lines-table th,
.reports-page--all-groups .reports-income-lines-table td {
    padding: 6px 8px;
    font-size: 12px;
}

.reports-page--all-groups .reports-spec-channel-list li {
    padding: 8px 10px;
}

.reports-filter-shell {
    margin-bottom: 22px;
}

.reports-filter-card {
    padding: 18px 20px;
    border-radius: var(--rp-radius-sm);
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    min-width: 0;
    max-width: 100%;
}

.reports-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: clamp(12px, 2vw, 20px);
}

@media (max-width: 720px) {
    .reports-filter-row {
        grid-template-columns: 1fr;
    }
}

.reports-filter-field {
    min-width: 0;
    margin-bottom: 0;
}

.reports-filter-field label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    letter-spacing: normal;
}

.reports-filter-field select,
.reports-filter-field input[type="date"] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-top: 6px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.45;
    font-family: inherit;
    background: #fff;
    color: var(--rp-ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.reports-filter-field select:focus,
.reports-filter-field input[type="date"]:focus {
    outline: none;
    border-color: #94a3b8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.25);
}

.reports-filter-card--period-sheet {
    position: relative;
}

.reports-period-trigger-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.reports-period-trigger-text {
    min-width: 0;
    flex: 1 1 12rem;
}

.reports-filter-periods-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.reports-period-summary {
    margin: 6px 0 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.45;
    word-break: break-word;
}

.reports-period-open {
    flex-shrink: 0;
    appearance: none;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    color: #0f172a;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease;
}

.reports-period-open:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.reports-period-open:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 3px;
}

/* Masthead: hesap grubu pill’leri ile aynı oran ve görünüm */
.reports-period-open.reports-period-open--masthead {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding: 12px 20px 12px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    color: #475569;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.15s ease;
    width: 100%;
    max-width: 420px;
}

.reports-period-open.reports-period-open--masthead:hover {
    border-color: #cbd5e1;
    color: var(--rp-ink);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.reports-period-open.reports-period-open--masthead[aria-expanded="true"] {
    color: var(--rp-ink);
    background: linear-gradient(165deg, #fff 0%, #f1f5f9 100%);
    border-color: #94a3b8;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 10px 28px rgba(15, 23, 42, 0.1);
}

.reports-period-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.reports-period-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.reports-period-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    max-height: min(78vh, 520px);
    border-radius: 20px 20px 0 0;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.2);
    padding: 0 18px 18px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(110%);
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.3s;
}

.reports-period-sheet.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.reports-period-sheet--popover {
    position: absolute;
    left: auto;
    right: 0;
    top: calc(100% + 8px);
    bottom: auto;
    width: min(380px, calc(100vw - 32px));
    max-height: min(62vh, 480px);
    border-radius: 16px;
    padding: 14px 16px 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.reports-period-sheet--popover.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* details tabanli kullanimda (gelir/gider) popover acikligi */
.reports-period-sheet-wrap[open] .reports-period-sheet--popover {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 40;
}

.reports-period-sheet-handle {
    width: 40px;
    height: 5px;
    border-radius: 999px;
    background: #e2e8f0;
    margin: 10px auto 14px;
}

.reports-period-sheet-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.reports-period-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
}

.reports-period-option {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    user-select: none;
    padding: 12px 10px;
    border-radius: 12px;
    transition: background 0.12s ease;
}

.reports-period-option:hover {
    background: #f8fafc;
}

.reports-period-option input {
    width: 20px;
    height: 20px;
    accent-color: #0284c7;
    cursor: pointer;
    flex-shrink: 0;
}

.reports-period-option--all span {
    font-weight: 700;
    color: #0f172a;
}

/* gelir/gider sayfalarindaki details tabanli period listesi */
.reports-period-checklist {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
}

.reports-period-check {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    user-select: none;
    padding: 10px 10px;
    border-radius: 10px;
    transition: background 0.12s ease;
}

.reports-period-check:hover {
    background: #f8fafc;
}

.reports-period-check input {
    width: 18px;
    height: 18px;
    accent-color: #0284c7;
    cursor: pointer;
    flex-shrink: 0;
}

.reports-period-sheet-close {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    appearance: none;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
}

.reports-period-sheet-close:hover {
    background: #f1f5f9;
}

.reports-page .reports-panels {
    margin-top: 4px;
}

.reports-page .reports-inner-card {
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    padding: 16px;
}

/* section-title ile aynı; renk için --income / --expense */
.reports-page .section-title.reports-card-h {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: normal;
}

.reports-card-h--income {
    color: var(--rp-inc);
}

.reports-card-h--expense {
    color: var(--rp-exp);
}

.reports-page .reports-panel {
    border-radius: var(--rp-radius);
    border: 1px solid #e2e8f0;
    box-shadow: var(--rp-shadow-soft);
    background: #fff;
}

.reports-page .reports-panel--inc,
.reports-page .reports-spec-disclosure--inc {
    border-top: 3px solid var(--rp-inc);
}

.reports-page .reports-panel--exp,
.reports-page .reports-spec-disclosure--exp {
    border-top: 3px solid var(--rp-exp);
}

.reports-page .reports-panel-summary,
.reports-page .reports-spec-disclosure-summary {
    padding: 16px 18px 18px;
    border-bottom: 1px solid rgba(241, 245, 249, 0.95);
}

.reports-page .reports-spec-disclosure-summary--inc {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.65) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.reports-page .reports-spec-disclosure-summary--exp {
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.65) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.reports-page .reports-spec-disclosure-body {
    padding: 8px 14px 18px;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 32px);
}

.reports-page .reports-spec-disclosure-summary {
    align-items: center;
}

.reports-page .reports-spec-disclosure-summary::after {
    content: "▾";
    width: 30px;
    height: 30px;
    margin-left: auto;
    flex-shrink: 0;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    color: var(--rp-faint);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.reports-page .reports-spec-disclosure[open] .reports-spec-disclosure-summary::after {
    transform: rotate(-180deg);
    background: rgba(248, 250, 252, 0.98);
    border-color: #e2e8f0;
}

.reports-page .reports-spec-callout {
    border-radius: var(--rp-radius-sm);
    border-left: 4px solid #f59e0b;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.95) 0%, #fffbeb 100%);
}

.reports-page .reports-pivot-wrap,
.reports-page .reports-spec-flow-root--split .table-wrap {
    border-radius: var(--rp-radius-sm);
    border: 1px solid #e2e8f0;
}

.reports-page .reports-pivot-table thead th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.reports-page .reports-spec-disclosure-body .reports-spec-card:last-child {
    margin-bottom: 0;
}

.reports-page .section-header {
    margin-bottom: 4px;
}

.reports-page .section-header .section-description {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    max-width: 56ch;
}

.reports-page .table tbody tr {
    transition: background 0.12s ease;
}

.reports-page .table tbody tr:hover {
    background: rgba(248, 250, 252, 0.95);
}

.reports-page .reports-pivot-table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.45);
}

.reports-page .reports-pivot-table tbody tr:hover {
    background: rgba(241, 245, 249, 0.9);
}

.reports-page .reports-spec-empty {
    font-size: 14px;
    line-height: 1.55;
}

.reports-page .reports-spec-empty-sm {
    font-size: 13px;
    line-height: 1.5;
}

.reports-page .reports-spec-empty,
.reports-page .reports-spec-empty-sm {
    border: 1px dashed rgba(148, 163, 184, 0.45);
    background: rgba(248, 250, 252, 0.65);
}

.reports-page .reports-spec-channel-list li {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.reports-page .reports-spec-channel-list li:hover {
    border-color: rgba(148, 163, 184, 0.45);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.reports-records-cta-card .section-header {
    align-items: center;
}

.reports-records-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.reports-records-cta-link:hover {
    border-color: #94a3b8;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .reports-pill,
    .reports-page .table tbody tr,
    .reports-page .reports-spec-channel-list li {
        transition: none;
    }

    .reports-pill:hover {
        transform: none;
    }
}

.reports-page .reports-spec-disclosure-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.reports-page .reports-spec-disclosure-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.reports-page .reports-spec-disclosure-meta {
    font-size: 14px;
    line-height: 1.55;
    color: #64748b;
}

.reports-page .reports-spec-disclosure-body.section-stack {
    min-width: 0;
    gap: 12px;
}

.reports-page .reports-spec-disclosure-body > .card,
.reports-page .reports-spec-disclosure-body > article {
    min-width: 0;
}

.reports-page .reports-spec-disclosure-body .table-wrap,
.reports-page .reports-spec-disclosure-body .reports-pivot-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.reports-page .reports-spec-table {
    min-width: max(100%, 640px);
    width: max-content;
}

/* Raporlar (spesifikasyon) — iç bileşenler */

.reports-spec-totals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 20px;
}

@media (max-width: 640px) {
    .reports-spec-totals {
        grid-template-columns: 1fr;
    }
}

.reports-spec-total {
    border-radius: 18px;
    padding: 20px 22px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.reports-spec-total-inc {
    background: linear-gradient(145deg, #ecfdf5 0%, #fff 55%);
    border-color: #bbf7d0;
}

.reports-spec-total-exp {
    background: linear-gradient(145deg, #fef2f2 0%, #fff 55%);
    border-color: #fecaca;
}

.reports-spec-total-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
}

.reports-spec-total-value {
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.reports-spec-total-inc .reports-spec-total-value {
    color: #059669;
}

.reports-spec-total-exp .reports-spec-total-value {
    color: #dc2626;
}

.reports-spec-total-meta {
    font-size: 13px;
    color: #94a3b8;
}

.reports-spec-flow-root {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 18px 0 20px;
    min-width: 0;
    max-width: 100%;
}

.reports-spec-flow-root--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
    width: 100%;
}

.reports-spec-flow-root--split > .reports-spec-disclosure {
    min-width: 0;
}

.reports-spec-flow-root--split .reports-spec-disclosure-body {
    min-width: 0;
}

.reports-spec-flow-root--split .reports-spec-card {
    min-width: 0;
    max-width: 100%;
}

.reports-spec-flow-root--split .reports-pivot-wrap,
.reports-spec-flow-root--split .table-wrap {
    min-width: 0;
    max-width: 100%;
}

/* İki sütunda üçlü kanal ızgarası dar kalır; tek sütuna indir */
@media (max-width: 1280px) {
    .reports-spec-flow-root--split .reports-spec-channel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .reports-spec-flow-root--split {
        grid-template-columns: 1fr;
    }
}

.reports-spec-disclosure {
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

/* Raporlar sayfası: yukarıdaki border kısayolu bazen üst şeridi eziyor; inc/exp vurgusunu tekrar uygula */
.reports-page .reports-spec-disclosure--inc {
    border-top: 3px solid var(--rp-inc);
}

.reports-page .reports-spec-disclosure--exp {
    border-top: 3px solid var(--rp-exp);
}

.reports-spec-disclosure-summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 16px;
    border-bottom: 1px solid #f1f5f9;
    min-width: 0;
}

.reports-spec-disclosure-summary::-webkit-details-marker {
    display: none;
}

.reports-spec-disclosure-summary::after {
    content: '▾';
    margin-left: auto;
    font-size: 12px;
    color: #94a3b8;
    transition: transform 0.15s ease;
}

.reports-spec-disclosure[open] .reports-spec-disclosure-summary::after {
    transform: rotate(-180deg);
}

.reports-spec-disclosure-summary--inc {
    background: linear-gradient(145deg, #ecfdf5 0%, #fff 55%);
}

.reports-spec-disclosure-summary--exp {
    background: linear-gradient(145deg, #fef2f2 0%, #fff 55%);
}

.reports-spec-disclosure-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #64748b;
}

.reports-spec-disclosure-value {
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.reports-spec-disclosure-summary--inc .reports-spec-disclosure-value {
    color: #059669;
}

.reports-spec-disclosure-summary--exp .reports-spec-disclosure-value {
    color: #dc2626;
}

.reports-spec-disclosure-meta {
    flex: 1 1 14rem;
    min-width: 0;
    font-size: 13px;
    color: #94a3b8;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.reports-spec-disclosure-body {
    padding: 4px 16px 16px;
}

.report-cat-inline {
    display: inline;
    font-weight: 600;
}

.report-cat-inline--th {
    font-weight: 700;
}

.reports-spec-card {
    margin-bottom: 10px;
}

.reports-spec-callout {
    padding: 14px 16px;
    border-radius: 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #78350f;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 14px;
}

.reports-spec-callout-extra {
    display: block;
    margin-top: 10px;
    color: #92400e;
}

.reports-spec-install-sum {
    margin: 0 0 12px;
    font-size: 14px;
    color: #475569;
}

.reports-spec-empty {
    margin: 0;
    padding: 16px;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    font-size: 14px;
}

.reports-spec-empty-sm {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.reports-spec-muted {
    color: #94a3b8;
    font-size: 12px;
}

.reports-spec-table-wrap {
    margin-top: 4px;
}

.reports-spec-table {
    font-size: 13px;
}

.reports-spec-channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reports-spec-channel-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 800;
}

.reports-spec-channel-title.is-inc {
    color: #059669;
}

.reports-spec-channel-title.is-exp {
    color: #dc2626;
}

.reports-spec-channel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
}

@media (max-width: 900px) {
    .reports-spec-channel-grid {
        grid-template-columns: 1fr;
    }
}

.reports-spec-channel-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 8px;
}

.reports-spec-channel-col {
    border-radius: 16px;
    padding: 10px 10px 10px;
    border: 1px solid #e2e8f0;
    background: #fafafa;
    min-height: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.reports-spec-channel-col--wallet {
    border-color: rgba(5, 150, 105, 0.42);
    background: linear-gradient(180deg, rgba(5, 150, 105, 0.1) 0%, rgba(255, 255, 255, 0.72) 100%);
}

.reports-spec-channel-col--wallet .reports-spec-channel-label {
    color: #047857;
}

.reports-spec-channel-col--bank {
    border-color: rgba(37, 99, 235, 0.42);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.09) 0%, rgba(255, 255, 255, 0.72) 100%);
}

.reports-spec-channel-col--bank .reports-spec-channel-label {
    color: #1d4ed8;
}

.reports-spec-channel-col--card {
    border-color: rgba(124, 58, 237, 0.42);
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.09) 0%, rgba(255, 255, 255, 0.72) 100%);
}

.reports-spec-channel-col--card .reports-spec-channel-label {
    color: #6d28d9;
}

.reports-spec-channel-col .reports-spec-channel-list li {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(15, 23, 42, 0.07);
}

.reports-spec-flow-root--split .reports-spec-channel-name {
    overflow-wrap: anywhere;
    min-width: 0;
}

.reports-spec-channel-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #334155;
}

.reports-spec-channel-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.report-cat-emoji {
    font-size: 1.05em;
    line-height: 1;
}

.expense-cat-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.15);
    background: #94a3b8;
}

.expense-category-label {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.settings-cat-meta-col {
    width: 40px;
    font-size: 10px;
}

.settings-cat-meta-col--color {
    width: 36px;
    max-width: 36px;
    padding-inline: 4px;
}

.settings-cat-emoji-input {
    max-width: 3.25rem;
    text-align: center;
}

.settings-cat-color-input {
    display: block;
    width: 32px;
    height: 28px;
    padding: 1px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
}

.reports-spec-channel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reports-spec-channel-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.reports-spec-channel-list strong {
    font-size: 14px;
    font-weight: 800;
}

.reports-spec-channel-list strong.is-income {
    color: #059669;
}

.reports-spec-channel-list strong.is-expense {
    color: #dc2626;
}

.reports-pivot-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* Dar sütunda yatay kaydırma: en az sütun genişliği veya 520px (hangisi büyükse) */
.reports-pivot-table {
    width: max-content;
    min-width: max(100%, 520px);
    box-sizing: border-box;
}

.reports-pivot-table .reports-pivot-sticky {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 4px 0 12px rgba(15, 23, 42, 0.04);
    text-align: left;
    min-width: 140px;
    max-width: 220px;
    font-weight: 700;
}

.reports-pivot-table thead .reports-pivot-sticky {
    background: #f8fafc;
    z-index: 3;
}

.reports-pivot-num {
    text-align: right;
    white-space: nowrap;
}

.reports-pivot-table .is-income {
    color: #059669;
    font-weight: 800;
}

.reports-pivot-table .is-expense {
    color: #dc2626;
    font-weight: 800;
}

.reports-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.reports-amount.is-income {
    color: #059669;
    font-weight: 700;
}

.reports-amount.is-expense {
    color: #dc2626;
    font-weight: 700;
}

/* Auth & kullanıcı yönetimi */
.auth-body--gate {
    margin: 0;
    min-height: 100vh;
    background: #070b12;
    color: #e2e8f0;
}

.auth-body--has-flash .auth-page {
    padding-top: 3.25rem;
}

.auth-flash-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.auth-flash-banner--error {
    background: linear-gradient(90deg, #7f1d1d, #991b1b);
    color: #fef2f2;
}

.auth-flash-banner--success {
    background: linear-gradient(90deg, #065f46, #047857);
    color: #ecfdf5;
}

/* Giriş sayfası — tam ekran sahne + cam kart */
.auth-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem 2.5rem;
    isolation: isolate;
}

.auth-page__ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(13, 148, 136, 0.35), transparent 50%),
        radial-gradient(ellipse 90% 60% at 100% 100%, rgba(30, 58, 138, 0.45), transparent 45%),
        linear-gradient(168deg, #070b12 0%, #0f172a 55%, #0c1a2e 100%);
}

.auth-page__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    pointer-events: none;
}

.auth-page__orb--a {
    width: min(90vw, 420px);
    height: min(90vw, 420px);
    background: #0d9488;
    top: -12%;
    left: -8%;
}

.auth-page__orb--b {
    width: min(70vw, 340px);
    height: min(70vw, 340px);
    background: #2563eb;
    bottom: -10%;
    right: -5%;
}

.auth-page__orb--c {
    width: 200px;
    height: 200px;
    background: #f59e0b;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.12;
    filter: blur(60px);
}

.auth-page__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 490px;
}

.auth-login-card {
    border-radius: 24px;
    padding: 4rem 1.85rem 4rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.2) inset,
        0 24px 64px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.auth-login-card__header {
    text-align: center;
    margin-bottom: 0;
    padding-top: 0;
}

.auth-login-card__logo-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 0;
    padding: 0;
    background: transparent;
    transform: translateY(-20px);
}

.auth-login-card__header-text {
    margin-top: 2.5rem;
    margin-bottom: 2rem;
}

.auth-login-card__logo {
    display: block;
    width: min(100%, 320px);
    height: auto;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.45));
}

.auth-login-card__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
}

.auth-login-card__title {
    margin: 0 0 0.4rem;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #f8fafc;
    line-height: 1.2;
}

.auth-login-card__lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #94a3b8;
}

.auth-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.auth-field__label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 0.02em;
}

.auth-field__control {
    position: relative;
    display: flex;
    align-items: stretch;
}

.auth-field__control--icon .auth-input {
    padding-left: 3.1rem;
}

.auth-field__control--password .auth-input--password {
    padding: 0.95rem 3.35rem 0.95rem 3.1rem;
    min-height: 3.15rem;
    font-size: 1.05rem;
    line-height: 1.45;
    -webkit-appearance: none;
    appearance: none;
}

.auth-field__icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    display: flex;
    pointer-events: none;
    z-index: 1;
}

.auth-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 0.95rem 1.1rem;
    font-size: 1.05rem;
    line-height: 1.45;
    min-height: 3.15rem;
    color: #f1f5f9;
    background: rgba(15, 23, 42, 0.55);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.auth-input::placeholder {
    color: #64748b;
}

.auth-input:hover {
    border-color: rgba(255, 255, 255, 0.22);
}

.auth-input:focus {
    outline: none;
    border-color: #2dd4bf;
    background: rgba(15, 23, 42, 0.75);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

.auth-password-toggle {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.95rem;
    height: 2.95rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    z-index: 2;
}

.auth-password-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.auth-password-toggle:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
}

.auth-password-icon--hide[hidden],
.auth-password-icon--show[hidden] {
    display: none;
}

.auth-login-form__row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: -0.15rem;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.88rem;
    color: #cbd5e1;
}

.auth-remember-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.auth-remember-box {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 5px;
    border: 2px solid rgba(148, 163, 184, 0.6);
    flex-shrink: 0;
    display: inline-block;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
}

.auth-remember-input:checked + .auth-remember-box {
    background: #14b8a6;
    border-color: #14b8a6;
}

.auth-remember-input:checked + .auth-remember-box::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #0f172a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auth-remember-input:focus-visible + .auth-remember-box {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
}

.auth-login-submit {
    margin-top: 0.35rem;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 0.88rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #042f2e;
    cursor: pointer;
    background: linear-gradient(135deg, #5eead4 0%, #14b8a6 45%, #0d9488 100%);
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.45);
    transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
}

.auth-login-submit:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 28px rgba(13, 148, 136, 0.55);
}

.auth-login-submit:active {
    transform: translateY(1px);
}

.auth-login-submit:focus-visible {
    outline: 2px solid #99f6e4;
    outline-offset: 3px;
}

@media (max-width: 380px) {
    .auth-login-card__title {
        font-size: 1.4rem;
    }

    .auth-login-card__logo {
        max-height: 96px;
    }
}

.topbar-user {
    font-size: 0.8rem;
    color: #64748b;
    margin-right: 0.75rem;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-logout-form {
    display: inline;
    margin-right: 0.5rem;
}

.topbar-logout-btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
}

.topbar-logout-btn:hover {
    background: #f8fafc;
}

.settings-users-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.settings-users-table th,
.settings-users-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.settings-users-table th {
    font-weight: 600;
    color: #475569;
}

.settings-perm-matrix {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.settings-perm-matrix th,
.settings-perm-matrix td {
    padding: 0.5rem 0.6rem;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.settings-perm-matrix th:first-child,
.settings-perm-matrix td:first-child {
    text-align: left;
}

/* ——— Ayarlar: Excel gelir/gider aktarımı ——— */
.settings-block--excel {
    margin-top: 8px;
}

.settings-block--excel .settings-block-lead {
    max-width: 70ch;
}

.settings-excel-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 18px;
}

.settings-excel-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px 20px;
    background: linear-gradient(165deg, #f8fafc 0%, #ffffff 48%, #ffffff 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.settings-excel-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.settings-excel-card-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f172a;
}

.settings-excel-card-id {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.settings-excel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.settings-excel-col-title {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.settings-excel-dl {
    display: inline-flex;
    margin-bottom: 12px;
}

.settings-excel-import {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.settings-excel-file-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #475569;
}

.settings-excel-file-input {
    max-width: 200px;
    font-size: 0.82rem;
}

.settings-excel-submit {
    flex-shrink: 0;
}

@media (max-width: 520px) {
    .settings-excel-import {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-excel-file-input {
        max-width: none;
    }
}

/* İçe aktarım yönetimi sayfası: açıklama iki sütun, gelir yeşil / gider kırmızı degrade */
.settings-excel-import-page .settings-excel-import-header .settings-block-title {
    margin-bottom: 2px;
}

.settings-excel-import-lead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 22px;
    margin-top: 10px;
    align-items: start;
}

.settings-excel-import-lead-col {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(145deg, #ffffff 0%, #ffffff 52%, #f8fafc 82%, #f1f5f9 100%);
}

.settings-excel-import-lead-col strong {
    color: #334155;
    font-weight: 700;
}

@media (max-width: 720px) {
    .settings-excel-import-lead-grid {
        grid-template-columns: 1fr;
    }
}

/* Menüdeki .nav-item--income / .nav-item--expense (aktif) ile aynı palet — daha yumuşak */
.settings-excel-import-page .settings-excel-col--income {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--green-soft-strong);
    background: linear-gradient(145deg, #ffffff 0%, #ffffff 38%, #f7fef9 68%, var(--green-soft) 100%);
    box-shadow: 0 10px 22px rgba(5, 150, 105, 0.08);
}

.settings-excel-import-page .settings-excel-col--expense {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #fca5a5;
    background: linear-gradient(145deg, #ffffff 0%, #ffffff 38%, #fffdfb 68%, #fee2e2 100%);
    box-shadow: 0 10px 22px rgba(185, 28, 28, 0.06);
}

.settings-excel-import-page .settings-excel-col--income .settings-excel-col-title {
    margin: 0 0 12px;
    color: #065f46;
    border-bottom: 1px solid var(--green-soft-strong);
    padding-bottom: 10px;
}

.settings-excel-import-page .settings-excel-col--expense .settings-excel-col-title {
    margin: 0 0 12px;
    color: #7f1d1d;
    border-bottom: 1px solid #fecaca;
    padding-bottom: 10px;
}

.settings-excel-import-page .settings-excel-col--income .settings-excel-file-label {
    color: #047857;
}

.settings-excel-import-page .settings-excel-col--expense .settings-excel-file-label {
    color: #991b1b;
}

.settings-excel-dl--income {
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 58%, var(--green-soft) 100%);
    border: 1px solid var(--green-soft-strong);
    color: var(--green-text);
    box-shadow: none;
}

.settings-excel-dl--income:hover {
    border-color: #86efac;
    color: #065f46;
    background: linear-gradient(90deg, #ffffff 0%, #f0fdf4 100%);
}

.settings-excel-dl--expense {
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 58%, #fee2e2 100%);
    border: 1px solid #fecaca;
    color: #b91c1c;
    box-shadow: none;
}

.settings-excel-dl--expense:hover {
    border-color: #fca5a5;
    color: #991b1b;
    background: linear-gradient(90deg, #ffffff 0%, #fef2f2 100%);
}

.settings-excel-submit--income {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 45%, #f0fdf4 78%, var(--green-soft) 100%);
    border: 1px solid var(--green-soft-strong);
    color: #065f46;
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.07);
}

.settings-excel-submit--income:hover {
    border-color: #86efac;
    color: #047857;
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}

.settings-excel-submit--expense {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 45%, #fffdfb 78%, #fee2e2 100%);
    border: 1px solid #fca5a5;
    color: #7f1d1d;
    box-shadow: 0 6px 16px rgba(185, 28, 28, 0.05);
}

.settings-excel-submit--expense:hover {
    border-color: #f87171;
    color: #991b1b;
    background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
}

