:root {
    --color-primary: #2563eb;
    --color-success: #16a34a;
    --color-warning: #f59e0b;
    --color-danger: #dc2626;
    --color-bg: #f8fafc;
    --color-card-bg: #ffffff;
    --color-sidebar-bg: #0f172a;
    --color-sidebar-text: #e5e7eb;
    --color-sidebar-hover: #1e293b;
    --color-text: #0f172a;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-border-soft: #eef2f7;
    --color-surface-muted: #f1f5f9;
    --color-heading: #0b1324;
    --color-text-soft: #475569;

    --space-card: 24px;
    --space-section: 32px;
    --space-grid: 24px;

    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-pill: 999px;

    --sidebar-width: 260px;
    --header-height: 64px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.45;
    letter-spacing: 0.01em;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.dropdown-item:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
    border-radius: 8px;
}

.dashboard-shell {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    display: flex;
    overflow-x: hidden;
    overflow-y: visible;
}

.sidebar-modern {
    width: var(--sidebar-width);
    flex: 0 0 var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: var(--color-sidebar-bg);
    color: var(--color-sidebar-text);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 0;
}

.sidebar-modern .sidebar-brand-wrap {
    min-height: var(--header-height);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-modern .sidebar-brand-text {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1px;
}

.sidebar-brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: #ffffff;
    flex: 0 0 28px;
}

.sidebar-modern .sidebar-scroll {
    padding: 16px 10px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}

.sidebar-modern .sidebar-nav {
    gap: 6px;
}

.sidebar-modern .nav-link {
    color: var(--color-sidebar-text);
    min-height: 42px;
    border-radius: 10px;
    border-left: 4px solid transparent;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.sidebar-modern .nav-link:hover {
    background: var(--color-sidebar-hover);
    color: #ffffff;
}

.sidebar-modern .nav-link.active {
    background: var(--color-sidebar-hover);
    color: #ffffff;
    border-left-color: var(--color-primary);
}

.main-wrap {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

.header-modern {
    min-height: var(--header-height);
    background: #ffffff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.05);
    padding: 0 24px;
}

.header-modern .dashboard-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    color: #0f172a;
}

.header-title-wrap {
    min-width: 0;
}

.header-subtitle {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.25;
    color: var(--color-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(52vw, 520px);
}

.header-kurumsal-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--color-border);
    background: #ffffff;
}

.header-kurumsal-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #1d4ed8;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    transition: border-color .18s ease, background-color .18s ease;
}

.header-icon-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.main-content {
    padding: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.main-content > .row,
.main-content > .section-modern {
    margin-bottom: var(--space-section);
}

.main-content > .row:last-child,
.main-content > .section-modern:last-child {
    margin-bottom: 0;
}

.section-modern {
    margin-bottom: var(--space-section);
}

.grid-modern {
    display: grid;
    gap: var(--space-grid);
}

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

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

.card-modern {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-card);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    min-width: 0;
    max-width: 100%;
}

.card-modern.card-interactive {
    transition: transform .18s ease, box-shadow .18s ease;
}

.card-modern.card-interactive:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.kpi-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 92px;
}

.kpi-card > :first-child {
    min-width: 0;
    flex: 1 1 auto;
}

.kpi-meta {
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.kpi-value {
    margin: 0;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex: 0 0 44px;
}

.kpi-icon.primary { background: rgba(37, 99, 235, .12); color: var(--color-primary); }
.kpi-icon.success { background: rgba(22, 163, 74, .12); color: var(--color-success); }
.kpi-icon.warning { background: rgba(245, 158, 11, .15); color: var(--color-warning); }
.kpi-icon.danger { background: rgba(220, 38, 38, .12); color: var(--color-danger); }

@media (max-width: 768px) {
    .kpi-card {
        min-height: 84px;
        gap: 10px;
    }

    .kpi-meta {
        font-size: 10px;
    }

    .kpi-value {
        font-size: clamp(18px, 5vw, 24px);
    }

    .kpi-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        flex-basis: 40px;
        font-size: 17px;
    }
}

.card-title-modern {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.meta-text {
    font-size: 12px;
    color: var(--color-muted);
}

.main-content h2.h6,
.main-content h3.h6 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-heading);
    letter-spacing: -0.01em;
}

.main-content .text-muted,
.main-content .small.text-muted {
    color: var(--color-text-soft) !important;
}

.table-modern-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #ffffff;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.table-modern {
    width: 100%;
    margin: 0;
    min-width: 680px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
}

.table-modern.table-fit {
    min-width: 0 !important;
    table-layout: fixed;
}

.table-modern.table-fit th,
.table-modern.table-fit td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.table-modern-wrap.no-scroll {
    overflow-x: hidden;
}

.table-modern thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    border-bottom: 1px solid var(--color-border);
}

.table-modern th,
.table-modern td {
    padding: 12px 14px;
    font-size: 14px;
    vertical-align: middle;
    border-bottom: 1px solid #eef2f7;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

.table-modern tbody tr {
    transition: background-color .18s ease;
}

.table-modern tbody tr:hover {
    background: #f8fafc;
}

.badge-modern {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-modern.success {
    color: #166534;
    background: #dcfce7;
    border-color: #bbf7d0;
}

.badge-modern.warning {
    color: #92400e;
    background: #fef3c7;
    border-color: #fde68a;
}

.badge-modern.danger {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fecaca;
}

.badge-modern.primary {
    color: #1e40af;
    background: #dbeafe;
    border-color: #bfdbfe;
}

.daire-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    color: #1e3a8a;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #93c5fd;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.chart-shell {
    min-height: 280px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 12px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.chart-shell canvas,
canvas {
    max-width: 100% !important;
    width: 100% !important;
    display: block;
}

.footer-modern {
    opacity: .6;
    font-size: 12px;
    color: #475569;
    padding: 12px 24px 20px;
}

.footer-modern .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Bootstrap bileşenlerini proje genelinde modernize et */
.card {
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.02) !important;
    background: var(--color-card-bg);
    transition: box-shadow .2s ease, transform .2s ease;
}

.card:hover {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 14px 30px rgba(15, 23, 42, 0.06) !important;
}

.card .card-body {
    padding: var(--space-card);
}

.card.border-0 {
    border: 1px solid var(--color-border) !important;
}

.card .border-bottom,
.card .border-top {
    border-color: var(--color-border-soft) !important;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #ffffff;
}

.page-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.page-header-modern {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 12px;
}

.content-section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.stat-grid-modern {
    display: grid;
    gap: var(--space-grid);
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.form-grid-modern > * {
    min-width: 0;
}

.table-responsive-modern {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.table-actions-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.table-modern td .d-flex,
.table td .d-flex {
    flex-wrap: wrap;
}

.chart-card-modern {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.settings-top-grid {
    align-items: stretch;
}

.settings-equal-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.settings-card-body {
    flex: 1 1 auto;
}

.settings-page {
    width: 100%;
    max-width: 100%;
    padding-bottom: 14px;
}

.settings-hero-layout {
    display: block;
    width: 100%;
    max-width: 100%;
}

.settings-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 26px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 48%, #38bdf8 100%);
    box-shadow: 0 26px 60px rgba(37, 99, 235, 0.28);
    position: relative;
    overflow: hidden;
}

.settings-head > div {
    min-width: 0;
    flex: 1 1 560px;
}

.settings-head::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    top: -130px;
    right: -110px;
    background: rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.settings-page .settings-head.card-modern {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 48%, #38bdf8 100%);
    box-shadow: 0 26px 60px rgba(37, 99, 235, 0.28);
}

.settings-breadcrumb {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.86);
}

.settings-breadcrumb a {
    color: #ffffff;
}

.settings-breadcrumb i {
    font-size: 10px;
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.72);
}

.settings-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.settings-title i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.36);
    font-size: 18px;
}

.settings-help-btn {
    min-height: 40px;
    border-radius: 14px;
    border-color: rgba(255, 255, 255, 0.6);
    color: #1d4ed8;
    background: rgba(255, 255, 255, 0.92);
    position: relative;
    z-index: 1;
}

.settings-head .meta-text {
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.settings-chip-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 14px;
}

.settings-chip-nav a {
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.settings-chip-nav a.is-active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

.settings-chip-nav--hero {
    margin-bottom: 0;
    flex-wrap: wrap;
    overflow: visible;
}

.settings-chip-nav--hero a {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    white-space: normal;
}

.settings-chip-nav--hero a.is-active {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.4);
}

.settings-chip-nav--hero .settings-chip-count.is-ok {
    color: #14532d;
    background: #bbf7d0;
}

.settings-chip-nav--hero .settings-chip-count.is-missing {
    color: #7c2d12;
    background: #fed7aa;
}

.settings-chip-count {
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    padding: 0 6px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.settings-chip-count.is-ok {
    color: #166534;
    background: #dcfce7;
}

.settings-chip-count.is-missing {
    color: #9a3412;
    background: #ffedd5;
}

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

.settings-metric-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.settings-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 44px;
}

.settings-metric-icon.primary { background: #dbeafe; color: #2563eb; }
.settings-metric-icon.success { background: #dcfce7; color: #16a34a; }
.settings-metric-icon.warning { background: #fef3c7; color: #d97706; }
.settings-metric-icon.danger { background: #fee2e2; color: #dc2626; }

.settings-metric-value {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
    overflow-wrap: anywhere;
}

.settings-metric-count {
    font-size: 36px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.settings-metric-note {
    font-size: 13px;
    font-weight: 600;
}

.settings-metric-note.is-ok {
    color: #15803d;
}

.settings-metric-note.is-warn {
    color: #dc2626;
}

.settings-top-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.settings-section-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.settings-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.settings-section-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #1d4ed8;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
}

.settings-section-title i {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    background: #e8efff;
    font-size: 14px;
}

.ayarlar-genel-grid {
    display: grid;
    gap: 1rem;
}

.ayarlar-alt-kart {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #f8fafc;
    padding: 1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ayarlar-alt-kart h4 {
    margin: 0 0 .75rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.settings-finance-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.settings-finance-preview span {
    font-size: 12px;
    color: #334155;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    padding: 5px 10px;
}

.settings-tooltip {
    display: inline-flex;
    align-items: center;
    color: #64748b;
    margin-left: 4px;
    cursor: help;
}

.ayarlar-alt-kart .form-text {
    font-size: .78rem;
}

.settings-logo-field {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #f8fafc;
    padding: 14px;
    height: 100%;
}

.settings-page .card-modern {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.settings-page .content-section:last-child .card-modern {
    position: sticky;
    bottom: 14px;
    z-index: 30;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
}

.settings-savebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.settings-savebar-meta strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    margin-bottom: 2px;
}

.settings-savebar-meta small {
    color: #64748b;
    font-size: 12px;
}

.settings-savebar-actions {
    margin-left: auto;
}

.settings-savebar .btn.is-dirty {
    background: #b45309;
    border-color: #b45309;
}

.settings-accordion {
    border-radius: 16px;
}

.settings-accordion > summary {
    list-style: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 10px;
}

.settings-accordion > summary::-webkit-details-marker {
    display: none;
}

.settings-toast {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 9999;
    padding: 10px 14px;
    border-radius: 10px;
    color: #065f46;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
}

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

.settings-logo-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
}

.settings-logo-status.is-loaded {
    color: #15803d;
}

.settings-logo-status.is-empty {
    color: #64748b;
}

.main-content .row,
.main-content [class*="col-"] {
    min-width: 0;
}

.main-content .btn,
.main-content .badge,
.main-content .form-control,
.main-content .form-select,
.main-content .input-group,
.main-content .dropdown,
.main-content .card,
.main-content .card-body {
    max-width: 100%;
}

.header-tools,
.header-modern .dropdown,
.header-modern .dropdown > .btn {
    min-width: 0;
}

.header-modern .dropdown > .btn {
    max-width: min(260px, 44vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table {
    margin-bottom: 0;
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    padding: 12px 14px;
    font-size: 14px;
    border-bottom-color: var(--color-border-soft);
}

.table > thead th {
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 2;
}

.table.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: #fcfdff;
}

.table tbody tr:hover > * {
    background-color: #f8fafc;
}

.form-control,
.form-select {
    min-height: 42px;
    border-radius: 10px;
    border-color: #dbe3ef;
    font-size: 14px;
    background-color: #fff;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus,
.form-select:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all .16s ease;
}

.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: 0 8px 22px rgba(29, 78, 216, 0.28);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-success {
    border-width: 1px;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-danger:hover,
.btn-outline-success:hover {
    transform: translateY(-1px);
}

.alert {
    border-radius: 10px;
    border-width: 1px;
    margin-bottom: 16px;
}

.alert-info {
    color: #1e3a8a;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.alert-warning {
    color: #78350f;
    background: #fffbeb;
    border-color: #fde68a;
}

.text-danger {
    color: #b91c1c !important;
}

.badge {
    border-radius: var(--radius-pill);
    padding: 4px 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.badge.text-bg-success {
    background: #dcfce7 !important;
    color: #166534 !important;
}

.badge.text-bg-warning {
    background: #fef3c7 !important;
    color: #92400e !important;
}

.badge.text-bg-danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.notice-item {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #fff;
    padding: 16px;
}

.table-modern td > form,
.table td > form {
    margin: 0;
}

.gider-table {
    min-width: 0 !important;
    width: 100%;
    table-layout: auto;
}

.gider-table th,
.gider-table td {
    vertical-align: top;
}

.gider-table .col-id { width: 52px; }
.gider-table .col-kategori { width: 120px; }
.gider-table .col-tutar,
.gider-table .col-tarih,
.gider-table .col-odeme,
.gider-table .col-belge { width: 110px; }
.gider-table .col-aciklama { width: auto; }
.gider-table .col-islem { width: 104px; }

.gider-table td {
    overflow-wrap: normal;
    word-break: normal;
}

.gider-table .table-actions-wrap {
    justify-content: flex-start;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.gider-table .table-actions-wrap .btn,
.gider-table .table-actions-wrap button {
    white-space: normal;
    width: 100%;
    min-height: 34px;
    padding: 4px 8px;
}

.gider-table td[data-label="Kategori"] {
    width: 140px;
}

.expense-kalem-table {
    min-width: 0 !important;
    width: 100%;
    table-layout: fixed;
}

.belge-preview-box {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    max-width: 116px;
}

.belge-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: #f8fafc;
}

.belge-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    color: #334155;
    background: #f8fafc;
}

.badge-modern.belge-yok {
    color: #64748b;
    background: #f1f5f9;
    border-color: #dbe3ef;
}

.expense-filter-panel {
    border: 1px solid #dbe6f5;
    background:
        radial-gradient(circle at 88% 12%, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0) 38%),
        linear-gradient(180deg, #ffffff, #f8fbff);
}

.expense-filter-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #c9d8ef;
}

.expense-filter-quickchips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.expense-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.expense-entry-panel {
    border: 1px solid #d9ead7;
    background:
        radial-gradient(circle at 90% 14%, rgba(22, 163, 74, 0.11), rgba(22, 163, 74, 0) 40%),
        linear-gradient(180deg, #ffffff, #f7fcf8);
}

.expense-entry-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #beddc2;
}

.expense-list-panel {
    border: 1px solid #dbe6f5;
    background:
        radial-gradient(circle at 92% 12%, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0) 40%),
        linear-gradient(180deg, #ffffff, #fffaf1);
}

.expense-list-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #efd7a4;
}

@media (max-width: 1199.98px) {
    .gider-table {
        min-width: 100% !important;
        table-layout: auto;
    }

    .expense-kalem-table {
        min-width: 100% !important;
        table-layout: auto;
    }
}

.kurumsal-logo-preview {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: #f8fafc;
}

.user-dashboard-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid #d7e3f3;
    background:
        radial-gradient(circle at right top, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0) 38%),
        linear-gradient(135deg, #0f172a 0%, #1d4ed8 54%, #0284c7 100%);
    color: #e2e8f0;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.22);
}

.user-dashboard-hero::after {
    content: "";
    position: absolute;
    inset: auto -120px -120px auto;
    width: min(300px, 44vw);
    height: min(300px, 44vw);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.user-dashboard-hero__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.user-dashboard-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.user-dashboard-logo {
    border-color: rgba(148, 163, 184, 0.45);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.24);
}

.user-dashboard-logo-fallback {
    width: 84px;
    height: 84px;
    border-radius: 14px;
    border: 1px solid rgba(191, 219, 254, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.1);
}

.user-dashboard-kicker {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(219, 234, 254, 0.92);
}

.user-dashboard-title {
    margin: 0 0 6px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: #ffffff;
}

.user-dashboard-hero .meta-text {
    color: rgba(226, 232, 240, 0.86);
}

.user-dashboard-status-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.user-dashboard-hero__meta {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    position: relative;
    z-index: 1;
}

.hero-meta-item {
    border: 1px solid rgba(191, 219, 254, 0.36);
    background: rgba(15, 23, 42, 0.28);
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 0;
}

.hero-meta-item strong {
    display: block;
    margin-top: 2px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.card-modern-elevated {
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
}

.user-action-wrap .btn {
    white-space: normal;
}

.form-label-modern {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.notice-item.notice-item-strong {
    border-color: #dbe3ef;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.notice-body {
    color: #334155;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.info-list-modern {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.info-list-item {
    border: 1px solid var(--color-border-soft);
    border-radius: 10px;
    background: #f8fafc;
    padding: 10px 12px;
    min-width: 0;
}

.debt-selector-shell {
    border: 1px solid var(--color-border-soft);
    border-radius: 12px;
    background: #f8fafc;
    padding: 10px;
    margin: 0;
}

.debt-check-item {
    margin: 0;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #ffffff;
    padding: 10px 12px;
}

.debt-check-item .form-check-label {
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.dashboard-welcome-modern {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-welcome-title {
    margin: 0 0 4px;
    font-size: clamp(22px, 2.3vw, 30px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: #0f172a;
}

.dashboard-period-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    width: min(100%, 260px);
}

.dashboard-period-form-row {
    display: flex;
    gap: 8px;
    min-width: 0;
    align-items: center;
}

.dashboard-period-form-row .form-select {
    min-width: 0;
    min-height: 40px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.dashboard-period-form-row .btn {
    white-space: nowrap;
    min-height: 40px;
    padding: 8px 14px;
}

.user-stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.user-stat-grid.user-stat-grid-ref .user-stat-value {
    font-size: clamp(30px, 2.35vw, 40px);
}

.user-stat-card {
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.user-stat-head {
    padding: 14px 14px 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.user-stat-head h3 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.3;
    color: #0f172a;
}

.user-stat-value {
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: #0f172a;
}

.user-stat-card .kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 18px;
}

.user-stat-card .kpi-icon.primary { background: #eaf1ff; color: #3563e9; }
.user-stat-card .kpi-icon.success { background: #e8f7ee; color: #1f9d57; }
.user-stat-card .kpi-icon.warning { background: #fff3dc; color: #d18a00; }
.user-stat-card .kpi-icon.danger { background: #fdeaea; color: #d43737; }

.user-stat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid var(--color-border-soft);
    padding: 11px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #1d4ed8;
}

.card-modern.card-modern-elevated {
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.action-card {
    border-radius: 14px;
}

.user-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 16px;
}

.user-main-grid.user-main-grid-bottom {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
}

.user-action-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.action-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.action-btn {
    width: min(100%, 220px);
}

.action-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex: 0 0 72px;
}

.action-date {
    font-size: 36px;
    line-height: 1;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: #f59e0b;
}

.payment-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.payment-option-card {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #ffffff;
    padding: 14px;
    min-width: 0;
}

.payment-option-title {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.35;
    color: #0f172a;
}

.payment-note-strip {
    margin-top: 12px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #1e3a8a;
}

.payment-note-strip a {
    margin-left: auto;
    color: #1d4ed8;
    font-weight: 700;
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upcoming-item {
    border: 1px solid var(--color-border-soft);
    border-radius: 10px;
    background: #f8fafc;
    padding: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item {
    border: 1px solid var(--color-border-soft);
    border-radius: 12px;
    background: #ffffff;
    padding: 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
}

.activity-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #eef4ff;
    color: #3b82f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-top: 2px;
}

.activity-body {
    min-width: 0;
}

.activity-body .fw-semibold {
    font-size: 15px;
    line-height: 1.35;
}

.activity-time {
    font-size: 11px;
    margin-top: 3px;
}

.activity-desc {
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.quick-action-btn {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #f8fafc;
    padding: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    min-width: 0;
}

.quick-action-btn:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
}

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

.debt-distribution-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.debt-chart-wrap {
    position: relative;
    min-height: 240px;
}

.debt-chart-wrap canvas {
    width: 100% !important;
    height: 240px !important;
}

.debt-total-overlay {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 44%;
    text-align: center;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.debt-legend-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.debt-legend-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    min-width: 0;
}

.debt-legend-item:nth-child(1) .debt-legend-dot {
    background: #3b82f6;
}

.debt-legend-item:nth-child(2) .debt-legend-dot {
    background: #34d399;
}

.debt-legend-item:nth-child(3) .debt-legend-dot {
    background: #cbd5e1;
}

.debt-legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.announcement-item {
    border: 1px solid var(--color-border-soft);
    border-radius: 10px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.announcement-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #eef2ff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.announcement-title {
    margin: 0 0 4px;
    font-size: 15px;
    line-height: 1.35;
    color: #0f172a;
}

.contact-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 18px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.borclarim-hero {
    border: 1px solid #d7e3f3;
    background: linear-gradient(135deg, #0b2a69 0%, #0f3f97 55%, #1d4ed8 100%);
    color: #e2e8f0;
}

.borclarim-hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 16px;
    align-items: center;
}

.borclarim-hero h2 {
    margin: 6px 0 10px;
    color: #fff;
    font-size: clamp(34px, 3vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.borclarim-hero .meta-text {
    color: rgba(226, 232, 240, 0.86);
}

.borclarim-hero-date {
    margin: 6px 0;
    font-size: 34px;
    line-height: 1.04;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.borclarim-hero-status {
    margin: 6px 0;
    font-size: 34px;
    line-height: 1.04;
    font-weight: 700;
}

.borclarim-hero-status.is-ok { color: #86efac; }
.borclarim-hero-status.is-danger { color: #fca5a5; }

.borclarim-hero-note {
    margin: 0;
    color: rgba(226, 232, 240, 0.9);
}

.borclarim-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border: 1px solid #dbeafe;
    background: #f8fbff;
}

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

.borclarim-kpi-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.borclarim-kpi-card h3 {
    margin: 4px 0 0;
    font-size: clamp(30px, 2.2vw, 40px);
    line-height: 1.06;
    letter-spacing: -0.02em;
}

.borclarim-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: 16px;
}

.borclarim-item {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 14px;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
    min-width: 0;
}

.borclarim-item.is-open { background: #fff; }
.borclarim-item.is-paid { background: #f8fffb; }

.borclarim-item-status .icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 18px;
}

.borclarim-item.is-open .borclarim-item-status .icon {
    background: #fff2eb;
    color: #ea580c;
}

.borclarim-item.is-paid .borclarim-item-status .icon {
    background: #eaf9ef;
    color: #16a34a;
}

.borclarim-item-status strong {
    display: block;
    font-size: 18px;
}

.borclarim-item-main {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.borclarim-item-main p {
    margin: 4px 0 0;
    font-weight: 600;
    color: #0f172a;
    overflow-wrap: anywhere;
}

.borclarim-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.borclarim-process {
    border: 1px solid #dbeafe;
    background: #f8fbff;
}

.borclarim-process-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.borclarim-process-steps > div {
    text-align: center;
    position: relative;
}

.borclarim-process-steps span {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1d4ed8;
    font-size: 20px;
}

.borclarim-process-steps p {
    margin: 8px 0 0;
    font-size: 13px;
    color: #334155;
}

.borclarim-process-steps small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.borclarim-process-steps > div:not(:last-child)::after {
    content: "\2192";
    position: absolute;
    right: -14px;
    top: 19px;
    color: #94a3b8;
    font-size: 18px;
    line-height: 1;
}

.borclarim-process-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    background: #eef4ff;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: #334155;
    font-size: 14px;
}

.borclarim-iban-copy {
    margin-top: 10px;
}

.borclarim-qr-box {
    margin-top: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    padding: 12px;
    text-align: center;
}

.borclarim-qr-image {
    width: 190px;
    height: 190px;
    margin: 0 auto 10px;
    border: 6px solid #0f172a;
    border-radius: 8px;
    display: block;
    background: #fff;
    object-fit: cover;
}

.borclarim-side-info {
    grid-template-columns: 1fr;
}

.dekont-dropzone {
    border: 2px dashed #93c5fd;
    border-radius: 14px;
    background: #f8fbff;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}

.dekont-dropzone.is-dragover,
.dekont-dropzone:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

.dekont-dropzone-inner {
    max-width: 100%;
    margin: 0 auto;
}

/* Giriş / kayıt ekranları */
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 24px 0;
    background:
        radial-gradient(circle at 14% 10%, rgba(37, 99, 235, 0.24) 0%, rgba(37, 99, 235, 0) 36%),
        radial-gradient(circle at 88% 8%, rgba(20, 184, 166, 0.17) 0%, rgba(20, 184, 166, 0) 36%),
        linear-gradient(135deg, #f8fafc 0%, #eaf1ff 52%, #f0fdfa 100%);
}

.auth-card {
    border: 1px solid #dbe3ef;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.auth-card-premium {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-color: #d6e3f7;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16);
}

.auth-brand-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
}

.auth-logo-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.auth-login-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.auth-brand-kicker {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1d4ed8;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--color-muted);
}

.auth-form-modern .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
}

.auth-input-group {
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px #dbe3ef;
    background: #ffffff;
}

.auth-input-group .input-group-text {
    border: 0;
    background: transparent;
    color: #64748b;
    padding-left: 12px;
    padding-right: 8px;
}

.auth-input-group .form-control {
    border: 0;
    min-height: 48px;
    font-size: 15px;
}

.auth-input-group .form-control:focus {
    box-shadow: none;
}

.auth-input-group:focus-within {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.auth-toggle-password {
    border: 0;
    background: transparent;
    color: #64748b;
    min-width: 46px;
}

.auth-toggle-password:hover {
    color: #1e40af;
    background: transparent;
}

.auth-cta-btn {
    min-height: 50px;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28);
}

.auth-link-subtle {
    font-size: 13px;
    color: #334155;
}

.auth-separator {
    position: relative;
    text-align: center;
}

.auth-separator::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dbe3ef;
    transform: translateY(-50%);
}

.auth-separator span {
    position: relative;
    z-index: 1;
    padding: 0 12px;
    background: #ffffff;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.google-btn-shell {
    display: flex;
    justify-content: center;
    width: 100%;
}

.google-auth-panel {
    border: 1px dashed #dbe3ef;
    border-radius: 12px;
    padding: 12px;
    background: #f8fafc;
}

.auth-link {
    color: var(--color-primary);
    font-weight: 600;
}

.auth-link:hover {
    color: #1d4ed8;
}

.header-modern .dropdown > .btn {
    border-color: var(--color-border);
    background: #fff;
    min-height: 38px;
    font-size: 14px;
}

.header-modern .dropdown > .btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.offcanvas.sidebar-modern {
    width: min(85vw, 300px);
}

.sidebar-footer-zone {
    margin-top: auto;
    padding: 10px 12px 14px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.sidebar-help-card {
    border: 1px solid rgba(96, 165, 250, 0.36);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(15, 34, 76, 0.78), rgba(15, 34, 76, 0.56));
    padding: 14px;
    color: #dbeafe;
}

.sidebar-help-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #eff6ff;
}

.sidebar-help-text {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #bfdbfe;
}

.sidebar-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(147, 197, 253, 0.65);
    background: rgba(15, 23, 42, 0.4);
    color: #f8fafc;
    font-weight: 600;
    transition: background-color .18s ease, border-color .18s ease;
}

.sidebar-help-btn:hover {
    background: rgba(30, 64, 175, 0.36);
    border-color: rgba(147, 197, 253, 0.9);
}

.sidebar-copyright {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: rgba(226, 232, 240, 0.78);
    font-size: 12px;
}

.sidebar-signature {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin-top: 8px;
    opacity: 0.95;
}

.sidebar-signature-wrap {
    display: flex;
    justify-content: center;
    padding: 10px 0 4px;
}

.sidebar-signature-wrap-mobile {
    padding: 12px 0 0;
}

.sidebar-signature-mobile {
    display: block;
    margin: 10px auto 0;
    max-width: 150px;
}

.footer-signature-wrap {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.footer-signature {
    width: 100%;
    max-width: 200px;
    height: auto;
    opacity: 0.9;
}

.scroll-top-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(29, 78, 216, 0.35);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
    z-index: 1200;
}

.scroll-top-btn:hover {
    background: #1e40af;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 1199.98px) {
    .grid-kpi {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

    .settings-top-layout {
        grid-template-columns: 1fr;
    }

    .settings-head {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-head > div {
        flex: 1 1 auto;
    }

    .settings-help-btn {
        align-self: flex-start;
    }

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

    .user-main-grid,
    .user-main-grid.user-main-grid-bottom {
        grid-template-columns: 1fr;
    }

    .user-action-row {
        grid-template-columns: 1fr;
    }

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

    .borclarim-grid {
        grid-template-columns: 1fr;
    }

    .borclarim-hero-grid {
        grid-template-columns: 1fr;
    }

    .borclarim-item {
        grid-template-columns: 1fr;
    }

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

    .borclarim-item-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 991.98px) {
    .main-wrap {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    :root {
        --space-card: 16px;
        --space-grid: 16px;
        --space-section: 24px;
    }

    .header-modern {
        padding: 0 16px;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .header-modern .dashboard-title {
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 42vw;
    }

    .header-subtitle {
        max-width: 42vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .main-content {
        padding: 16px;
    }

    .grid-kpi,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .stat-grid-modern,
    .form-grid-modern {
        grid-template-columns: 1fr;
    }

    .settings-title {
        font-size: 24px;
    }

    .settings-head {
        border-radius: 22px;
        padding: 18px;
    }

    .settings-help-btn {
        width: 100%;
        justify-content: center;
        align-self: stretch;
    }

    .settings-chip-nav--hero a {
        padding: 8px 12px;
        font-size: 12px;
    }

    .settings-savebar-actions {
        width: 100%;
        margin-left: 0;
    }

    .settings-savebar-actions .btn {
        flex: 1 1 auto;
    }

    .settings-finance-preview span {
        width: 100%;
        border-radius: 10px;
    }

    .settings-metric-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
        padding-bottom: 0;
    }

    .settings-metric-grid .settings-metric-card {
        min-width: 0;
    }

    .settings-metric-count,
    .settings-metric-value {
        font-size: 28px;
    }

    .table-modern {
        min-width: 560px;
    }

    .table > :not(caption) > * > * {
        padding: 10px 12px;
    }

    .footer-modern {
        padding: 8px 16px 16px;
    }

    .footer-modern .footer-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .auth-shell {
        align-items: flex-start;
        padding: 16px 0;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-brand-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .auth-logo-badge {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        font-size: 18px;
    }

    .btn {
        min-height: 40px;
    }

    .table-actions-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .table-actions-wrap .btn,
    .table-actions-wrap button {
        width: 100%;
    }

    .header-modern .dropdown > .btn {
        max-width: 36vw;
    }

    .scroll-top-btn {
        right: 14px;
        bottom: 14px;
        width: 42px;
        height: 42px;
    }

    .user-dashboard-hero {
        padding: 16px;
    }

    .user-dashboard-logo,
    .user-dashboard-logo-fallback {
        width: 64px;
        height: 64px;
    }

    .user-dashboard-logo-fallback {
        font-size: 24px;
    }

    .user-dashboard-title {
        font-size: 22px;
    }

    .user-dashboard-status-list {
        justify-content: flex-start;
    }

    .user-dashboard-hero__meta,
    .info-list-modern {
        grid-template-columns: 1fr;
    }

    .user-action-wrap .btn {
        width: 100%;
    }

    .user-payment-form > div {
        width: 100%;
    }

    .user-stat-grid,
    .payment-option-grid,
    .quick-actions-grid,
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .debt-distribution-wrap {
        grid-template-columns: 1fr;
    }

    .debt-total-overlay {
        font-size: 26px;
        width: 58%;
    }

    .action-card {
        align-items: flex-start;
    }

    .action-icon {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        font-size: 24px;
    }

    .action-date {
        font-size: 28px;
    }

    .announcement-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .announcement-item > .meta-text:last-child {
        grid-column: 2 / 3;
    }

    .contact-strip-item {
        width: 100%;
        font-size: 16px;
    }

    .user-stat-value {
        font-size: 28px;
    }

    .upcoming-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .activity-item {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: flex-start;
    }

    .activity-item > .meta-text {
        grid-column: 2 / 3;
    }

    .payment-note-strip a {
        margin-left: 0;
    }

    .borclarim-kpi-grid,
    .borclarim-process-steps,
    .borclarim-item-main {
        grid-template-columns: 1fr;
    }

    .borclarim-process-steps > div::after {
        display: none;
    }

    .borclarim-hero h2,
    .borclarim-hero-date,
    .borclarim-hero-status {
        font-size: 30px;
    }

    .dekont-dropzone {
        padding: 14px;
    }

    .debt-selector-shell {
        padding: 8px;
    }

    .debt-check-item {
        padding: 9px 10px;
    }

    .table-mobile-stack {
        min-width: 100% !important;
        width: 100%;
    }

    .table-modern-wrap.table-responsive-modern {
        overflow-x: auto;
    }

    .table-mobile-stack thead {
        display: none;
    }

    .table-mobile-stack tbody,
    .table-mobile-stack tr,
    .table-mobile-stack td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .table-mobile-stack tbody tr {
        background: #ffffff;
        border: 1px solid var(--color-border);
        border-radius: 12px;
        padding: 10px 12px;
        margin-bottom: 10px;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    }

    .table-mobile-stack tbody tr:last-child {
        margin-bottom: 0;
    }

    .table-mobile-stack td {
        border: 0;
        border-bottom: 1px dashed var(--color-border-soft);
        padding: 8px 0;
        white-space: normal;
        word-break: normal;
        overflow-wrap: break-word;
        text-align: left;
    }

    .table-mobile-stack td:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .table-mobile-stack td[colspan] {
        display: block;
        border-bottom: 0;
        text-align: center;
        padding: 8px 0;
    }

    .table-mobile-stack td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        line-height: 1.2;
        font-weight: 700;
        color: var(--color-muted);
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-bottom: 4px;
    }

    .table-mobile-stack td[colspan]::before {
        content: none;
    }

    .gider-table {
        min-width: 100% !important;
    }

    .table-mobile-stack td[data-label="İşlemler"] .table-actions-wrap {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .table-mobile-stack td[data-label="İşlemler"] .table-actions-wrap .btn,
    .table-mobile-stack td[data-label="İşlemler"] .table-actions-wrap button {
        width: 100%;
        min-height: 38px;
    }

    .belge-preview-box {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .header-title-wrap {
        min-width: 0;
    }

    .header-subtitle {
        display: none;
    }

    .header-modern .dashboard-title {
        font-size: 17px;
        max-width: 46vw;
    }

    .header-tools {
        gap: 6px;
        min-width: 0;
        margin-left: auto;
    }

    .header-modern .dropdown > .btn {
        max-width: 30vw;
        padding-left: 8px;
        padding-right: 8px;
    }

    .header-modern .dropdown > .btn {
        font-size: 0;
        min-width: 38px;
        width: 38px;
        justify-content: center;
        display: inline-flex;
        align-items: center;
        gap: 0;
    }

    .header-modern .dropdown > .btn .bi-person-circle {
        margin-right: 0 !important;
        font-size: 16px;
    }

    .header-modern .dropdown > .btn::after {
        margin-left: 0;
        transform: scale(0.85);
    }
}

.chart-shell.chart-shell-lg {
    min-height: 320px;
}

.chart-shell.chart-shell-sm {
    min-height: 240px;
}

.detail-item {
    border: 1px solid var(--color-border-soft);
    border-radius: 12px;
    background: #ffffff;
    padding: 14px;
}

.overflow-smoke-report {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 1080;
    width: min(420px, calc(100% - 24px));
    max-height: min(62vh, 540px);
    overflow: auto;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    padding: 12px;
}

.overflow-smoke-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.overflow-smoke-meta {
    font-size: 12px;
    color: var(--color-muted);
    margin-bottom: 8px;
}

.overflow-smoke-ok {
    font-size: 13px;
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.overflow-smoke-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.overflow-smoke-item {
    text-align: left;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #7f1d1d;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.3;
}

.overflow-smoke-item:hover {
    background: #ffe4e6;
}

.overflow-smoke-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.overflow-smoke-highlight {
    outline: 3px solid rgba(220, 38, 38, 0.45) !important;
    outline-offset: 2px !important;
}

@media (max-width: 767.98px) {
    .chart-shell.chart-shell-lg {
        min-height: 260px;
    }

    .chart-shell.chart-shell-sm {
        min-height: 220px;
    }
}
