/* AYP Admin Theme — Indigo/Purple Accent */
:root {
    --ayp-primary: #4f46e5;
    --ayp-primary-dark: #4338ca;
    --ayp-primary-light: #818cf8;
    --ayp-accent: #7c3aed;
    --ayp-sidebar-bg: #1e1b4b;
    --ayp-sidebar-hover: #312e81;
    --ayp-sidebar-active: #4f46e5;
    --ayp-sidebar-text: #c7d2fe;
    --ayp-sidebar-muted: #6366f1;
    --ayp-topbar-bg: #ffffff;
    --ayp-content-bg: #f8fafc;
    --ayp-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(79, 70, 229, 0.06);
    --ayp-radius: 0.75rem;
    --ayp-sidebar-width: 260px;
    --ayp-sidebar-collapsed: 72px;
    --ayp-transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--ayp-content-bg);
    color: #1e293b;
    margin: 0;
    min-height: 100vh;
}

/* ===== Admin Layout ===== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--ayp-sidebar-width);
    height: 100vh;
    background: var(--ayp-sidebar-bg);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: width var(--ayp-transition), transform var(--ayp-transition);
    overflow: hidden;
}

.admin-sidebar.collapsed {
    width: var(--ayp-sidebar-collapsed);
}

.admin-sidebar .sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 64px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--ayp-primary), var(--ayp-accent));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sidebar-collapse-btn {
    color: var(--ayp-sidebar-text) !important;
    padding: 0.25rem;
    font-size: 1rem;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--ayp-sidebar-muted) transparent;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    color: var(--ayp-sidebar-text);
    border-radius: 0.5rem;
    margin-bottom: 2px;
    font-size: 0.875rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.sidebar-nav .nav-link i {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav .nav-link:hover {
    background: var(--ayp-sidebar-hover);
    color: #fff;
}

.sidebar-nav .nav-link.active {
    background: var(--ayp-sidebar-active);
    color: #fff;
    font-weight: 600;
}

.admin-sidebar.collapsed .brand-text,
.admin-sidebar.collapsed .sidebar-nav .nav-link span,
.admin-sidebar.collapsed .sidebar-footer {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: var(--ayp-sidebar-muted);
    font-size: 0.75rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1035;
}

.sidebar-overlay.show { display: block; }

.admin-main {
    flex: 1;
    margin-left: var(--ayp-sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left var(--ayp-transition);
}

body.sidebar-collapsed .admin-main {
    margin-left: var(--ayp-sidebar-collapsed);
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--ayp-topbar-bg);
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.topbar-ticker {
    min-height: 32px;
    overflow: hidden;
    gap: 0.35rem;
}

.topbar-ticker tv-ticker-tag {
    display: block;
}

.topbar-usdtry-rate {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 0.8125rem;
    line-height: 1.2;
    color: #475569;
    white-space: nowrap;
    flex-shrink: 0;
}

.topbar-usdtry-rate-prefix {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

.topbar-usdtry-rate strong {
    font-weight: 700;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
}

.topbar-usdtry-rate.is-loading strong {
    color: #94a3b8;
}

.btn-usdtry-calc {
    flex-shrink: 0;
    color: var(--ayp-primary);
}

.btn-usdtry-calc:hover {
    background: rgba(79, 70, 229, 0.08);
    color: var(--ayp-primary);
}

.usdtry-calc-result {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1.15rem;
    text-align: center;
}

.usdtry-calc-result-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0.25rem;
}

.usdtry-calc-stopaj {
    font-size: 14px;
    font-weight: 600;
    color: #dc2626;
    margin-top: 0.65rem;
    line-height: 1.4;
}

.page-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #1e293b;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 0.5rem;
    position: relative;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: #f1f5f9;
    color: var(--ayp-primary);
}

.btn-notification {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    pointer-events: none;
}

.btn-user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 2rem;
    padding: 0.35rem 0.85rem 0.35rem 0.35rem;
    font-size: 0.875rem;
}

.user-avatar {
    font-size: 1.5rem;
    color: var(--ayp-primary);
}

.admin-content {
    flex: 1;
    padding: 0 1.5rem 1.5rem;
}

.admin-content > .alert {
    margin-top: 1rem;
}

.admin-content .page-header {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.portal-content {
    flex: 1;
    padding: 0 1.5rem 1.5rem;
}

.portal-content > .alert {
    margin-top: 1rem;
}

.portal-content .page-header {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.admin-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
}

/* ===== Portal Layout ===== */
.portal-body { background: var(--ayp-content-bg); }

.portal-wrapper {
    display: flex;
    min-height: 100vh;
}

.portal-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background: linear-gradient(180deg, #312e81, #1e1b4b);
    z-index: 1040;
    transition: transform var(--ayp-transition);
}

.portal-main {
    flex: 1;
    margin-left: 240px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.portal-topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 60px;
}

.portal-sidebar .portal-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.portal-sidebar .portal-nav-label {
    flex: 1;
    min-width: 0;
}

.portal-destek-alert {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    margin-left: auto;
}

.portal-destek-alert i {
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
}

.portal-bank-card {
    display: flex;
    flex-wrap: nowrap;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    min-height: 0;
}

.portal-bank-card-brand {
    flex: 0 0 96px;
    min-height: 100%;
    background-color: #004899;
    background-image: url('../img/portal-isbank-bg.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: cover;
}

.portal-bank-card-content {
    flex: 1 1 auto;
    padding: 0.9rem 1rem 1rem;
    min-width: 0;
}

.portal-bank-card-title {
    color: #004899;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.1rem;
}

.portal-bank-card-subtitle {
    color: #1e40af;
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    line-height: 1.35;
}

.portal-bank-card-heading {
    border-bottom: 3px solid #004899;
    display: inline-block;
    padding-bottom: 0.25rem;
    margin-bottom: 0.65rem;
    max-width: 100%;
}

.portal-bank-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 0.4rem 0.55rem;
    margin-bottom: 0.45rem;
    background: #f8fbff;
    font-size: 0.78rem;
    line-height: 1.35;
}

.portal-bank-info-item:last-child {
    margin-bottom: 0;
}

.portal-bank-info-item strong {
    color: #004899;
    font-weight: 700;
}

.portal-bank-info-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #004899;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.portal-bank-info-item-iban {
    align-items: flex-start;
}

.portal-bank-iban-text {
    display: block;
    word-break: break-word;
    margin-top: 0.15rem;
}

.portal-bank-copy-btn {
    flex-shrink: 0;
    border-color: #004899;
    color: #004899;
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
}

.portal-bank-copy-btn:hover,
.portal-bank-copy-btn.copied {
    background: #004899;
    color: #fff;
    border-color: #004899;
}

@media (max-width: 991.98px) {
    .portal-bank-card {
        flex-wrap: wrap;
    }

    .portal-bank-card-brand {
        flex: 0 0 100%;
        min-height: 88px;
    }
}

.portal-stat-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
}

.portal-stat-card:hover {
    transform: none;
    box-shadow: var(--ayp-card-shadow);
}

.portal-stat-card .stat-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    font-size: 1.35rem;
    margin: 0;
}

.portal-stat-card-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portal-stat-card .stat-label {
    margin: 0 0 0.1rem;
    font-size: 0.68rem;
    line-height: 1.25;
    letter-spacing: 0.04em;
}

.portal-stat-card .stat-label.portal-stat-label-wrap {
    line-height: 1.15;
}

.portal-stat-card .stat-value {
    font-size: 1.65rem;
    line-height: 1.1;
    margin: 0;
}

/* ===== Auth Layout ===== */
.auth-body {
    min-height: 100vh;
    margin: 0;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem 1rem;
}

.auth-bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 40%, #7c3aed 100%);
    z-index: 0;
}

.auth-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
}

.auth-card-header {
    padding: 2rem 2rem 0;
}

.auth-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--ayp-primary), var(--ayp-accent));
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.auth-card-body {
    padding: 1.5rem 2rem 2rem;
}

.auth-footer {
    font-size: 0.8rem;
}

/* ===== Cards & Stats ===== */
.card {
    border: none;
    border-radius: var(--ayp-radius);
    box-shadow: var(--ayp-card-shadow);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.stat-card {
    border: none;
    border-radius: var(--ayp-radius);
    box-shadow: var(--ayp-card-shadow);
    padding: 1.25rem;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.12);
}

a.stat-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.stat-card-link:hover {
    color: inherit;
}

a.stat-card-link:focus-visible {
    outline: 2px solid var(--ayp-primary);
    outline-offset: 2px;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-card .stat-icon.primary { background: rgba(79, 70, 229, 0.12); color: var(--ayp-primary); }
.stat-card .stat-icon.success { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.stat-card .stat-icon.warning { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.stat-card .stat-icon.danger { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.stat-card .stat-icon.info { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }

.stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}
.stat-icon.info { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.stat-icon.success { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.stat-icon.warning { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.stat-icon.danger { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 500;
}

.stat-card .stat-change {
    font-size: 0.8rem;
    font-weight: 600;
}

.stat-change.up { color: #10b981; }
.stat-change.down { color: #ef4444; }

.hosting-yeri-inline {
    margin-top: 5px;
    font-size: 10px;
    color: #64748b;
    line-height: 1.2;
}

.odeme-bekleyen-rows {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.odeme-bekleyen-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.odeme-bekleyen-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.odeme-bekleyen-value {
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.35;
}

.odeme-bekleyen-value strong {
    color: #d97706;
    font-weight: 700;
}

/* ===== Page Header ===== */
.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.page-header .breadcrumb {
    margin: 0;
    font-size: 0.85rem;
}

.fatura-no-onizleme {
    margin-left: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #8B0000;
    line-height: 1.2;
}

.gelir-fatura-onizleme {
    background: #f8fafc;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 0.5rem;
    text-align: center;
}

.gelir-fatura-onizleme-img {
    display: block;
    max-width: 100%;
    max-height: 360px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 0.375rem;
}

.gelir-fatura-onizleme-frame {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: 0.375rem;
    background: #fff;
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--ayp-primary);
    border-color: var(--ayp-primary);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--ayp-primary-dark);
    border-color: var(--ayp-primary-dark);
}

.btn-outline-primary {
    color: var(--ayp-primary);
    border-color: var(--ayp-primary);
}

.btn-outline-primary:hover {
    background: var(--ayp-primary);
    border-color: var(--ayp-primary);
}

/* ===== Tables ===== */
.table-card .card-body { padding: 0; }

.table-card .dataTables_wrapper {
    padding: 1rem;
}

.table-card .table {
    margin-bottom: 0;
}

.table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 600;
    border-bottom-width: 1px;
    white-space: nowrap;
}

.table tbody td {
    vertical-align: middle;
    font-size: 0.875rem;
}

.badge-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35em 0.75em;
    border-radius: 2rem;
}

/* ===== Kanban ===== */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    align-items: start;
}

.kanban-column {
    background: #f1f5f9;
    border-radius: var(--ayp-radius);
    min-height: 400px;
}

.kanban-column-header {
    padding: 0.85rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--ayp-radius) var(--ayp-radius) 0 0;
}

.kanban-column-header.todo { background: #e0e7ff; color: #4338ca; }
.kanban-column-header.progress { background: #fef3c7; color: #b45309; }
.kanban-column-header.review { background: #dbeafe; color: #1d4ed8; }
.kanban-column-header.done { background: #d1fae5; color: #047857; }

.kanban-column-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kanban-card {
    background: #fff;
    border-radius: 0.5rem;
    padding: 0.85rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    cursor: grab;
    transition: box-shadow 0.2s;
}

.kanban-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.kanban-card .card-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.kanban-card .card-meta {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ===== Calendar ===== */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e2e8f0;
    border-radius: var(--ayp-radius);
    overflow: hidden;
}

.calendar-day-header {
    background: var(--ayp-sidebar-bg);
    color: #fff;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.calendar-day {
    background: #fff;
    min-height: 90px;
    padding: 0.35rem;
    font-size: 0.8rem;
}

.calendar-day.other-month {
    background: #f8fafc;
    color: #cbd5e1;
}

.calendar-day.today {
    background: rgba(79, 70, 229, 0.06);
}

.calendar-day .day-number {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.calendar-event {
    background: var(--ayp-primary);
    color: #fff;
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Takvim — yaklaşan etkinlikler paneli */
@media (min-width: 992px) {
    .takvim-layout-calendar,
    .takvim-layout-upcoming {
        display: flex;
        flex-direction: column;
    }

    .takvim-upcoming-card {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .takvim-upcoming-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: var(--ayp-primary-light) #f1f5f9;
    }

    .takvim-upcoming-body::-webkit-scrollbar {
        width: 6px;
    }

    .takvim-upcoming-body::-webkit-scrollbar-track {
        background: #f8fafc;
        border-radius: 3px;
    }

    .takvim-upcoming-body::-webkit-scrollbar-thumb {
        background: var(--ayp-primary-light);
        border-radius: 3px;
    }

    .takvim-upcoming-body::-webkit-scrollbar-thumb:hover {
        background: var(--ayp-primary);
    }
}

.takvim-upcoming-card .list-group-item {
    border-left: 0;
    border-right: 0;
    padding: 0.75rem 1rem;
    transition: background-color var(--ayp-transition);
}

.takvim-upcoming-card .list-group-item:first-child {
    border-top: 0;
}

.takvim-upcoming-card .list-group-item:hover {
    background: rgba(79, 70, 229, 0.04);
}

.backup-info-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 576px) {
    .backup-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.backup-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--ayp-radius);
    background: #fff;
}

.backup-info-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.1);
    color: var(--ayp-primary);
    flex-shrink: 0;
}

/* Dashboard — yaklaşan yenilemeler (6 satır + scroll) */
.dashboard-yenileme-scroll {
    --yenileme-row-h: 3.625rem;
    max-height: calc(var(--yenileme-row-h) * 6);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--ayp-primary-light) #f1f5f9;
}

.dashboard-yenileme-scroll::-webkit-scrollbar {
    width: 6px;
}

.dashboard-yenileme-scroll::-webkit-scrollbar-track {
    background: #f8fafc;
}

.dashboard-yenileme-scroll::-webkit-scrollbar-thumb {
    background: var(--ayp-primary-light);
    border-radius: 3px;
}

.dashboard-yenileme-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--ayp-primary);
}

.dashboard-yenileme-scroll .list-group-item {
    min-height: var(--yenileme-row-h);
    border-left: 0;
    border-right: 0;
    transition: background-color var(--ayp-transition);
}

.dashboard-yenileme-scroll .list-group-item:first-child {
    border-top: 0;
}

.dashboard-yenileme-scroll .list-group-item:hover {
    background: rgba(79, 70, 229, 0.04);
}

/* ===== Forms ===== */
.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #475569;
}

.form-control:focus, .form-select:focus {
    border-color: var(--ayp-primary-light);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}

/* ===== Tabs ===== */
.nav-tabs .nav-link {
    color: #64748b;
    font-weight: 500;
    font-size: 0.875rem;
    border: none;
    padding: 0.75rem 1.25rem;
}

.nav-tabs .nav-link.active {
    color: var(--ayp-primary);
    border-bottom: 2px solid var(--ayp-primary);
    background: transparent;
}

/* ===== Error Pages ===== */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page .error-code {
    font-size: 6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ayp-primary), var(--ayp-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.error-page .error-message {
    font-size: 1.25rem;
    color: #64748b;
    margin: 1rem 0 2rem;
}

/* ===== Report Sections ===== */
.report-section {
    border-left: 4px solid var(--ayp-primary);
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.report-section h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.report-filter-bar {
    border: 1px solid #e2e8f0;
    box-shadow: var(--ayp-card-shadow);
}

.report-filter-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    overflow-x: auto;
}

.report-filter-presets {
    flex: 0 0 auto;
    white-space: nowrap;
}

.report-filter-presets .btn {
    font-size: 0.8125rem;
    padding: 0.35rem 0.65rem;
}

.report-filter-presets .btn.active {
    background: var(--ayp-primary);
    border-color: var(--ayp-primary);
    color: #fff;
}

.report-filter-dates {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.report-filter-dates input[type="date"] {
    width: 9.5rem;
    min-width: 9.5rem;
}

.report-filter-sep {
    color: #94a3b8;
    flex-shrink: 0;
}

.report-filter-submit {
    flex: 0 0 auto;
    white-space: nowrap;
}

.musteri-filter-form .musteri-filter-options,
.durum-filter-form .durum-filter-options {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
}

.musteri-filter-form .form-check-label,
.durum-filter-form .form-check-label {
    font-size: 0.875rem;
    color: #475569;
    user-select: none;
}

.musteri-table .musteri-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.musteri-table .musteri-row.is-expanded {
    background: rgba(79, 70, 229, 0.06);
}

.musteri-table .musteri-row-toggle {
    width: 2rem;
    padding-left: 0.75rem;
    padding-right: 0;
}

.musteri-table .musteri-row-chevron {
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
    font-size: 0.85rem;
}

.musteri-table .musteri-row.is-expanded .musteri-row-chevron {
    transform: rotate(90deg);
    color: var(--ayp-primary);
}

.musteri-hizmet-panel {
    padding: 1rem 1.25rem 1.1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-top: 1px solid #e2e8f0;
}

.musteri-hizmet-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.85rem 0.95rem;
    height: 100%;
}

.musteri-hizmet-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.musteri-hizmet-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.musteri-hizmet-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed #e2e8f0;
}

.musteri-hizmet-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.musteri-hizmet-item-main {
    min-width: 0;
}

.musteri-hizmet-item-name {
    display: block;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.musteri-hizmet-item-sub {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 0.1rem;
}

.musteri-hizmet-item-meta {
    text-align: right;
    flex-shrink: 0;
}

.musteri-hizmet-item-price {
    display: block;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.musteri-hizmet-item-unit {
    display: block;
    font-size: 0.72rem;
    margin-top: 0.1rem;
}

.musteri-hizmet-empty {
    font-size: 0.85rem;
    color: #94a3b8;
    padding: 0.35rem 0 0.15rem;
}

.musteri-hizmet-totals {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid #e2e8f0;
}

.musteri-hizmet-total {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.9rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.92rem;
}

.musteri-hizmet-total strong {
    font-size: 1rem;
}

table.dataTable tbody tr.musteri-row + tr.child td {
    padding: 0;
    border-top: 0;
    box-shadow: inset 0 3px 6px rgba(15, 23, 42, 0.04);
}

.vault-detail-list dt {
    color: #64748b;
    font-weight: 500;
}

.vault-detail-list dd {
    margin-bottom: 0.75rem;
}

@media (max-width: 991.98px) {
    .report-filter-form {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .report-filter-dates {
        margin-left: 0;
        width: 100%;
    }

    .report-filter-dates input[type="date"] {
        flex: 1;
        min-width: 0;
        width: auto;
    }
}

/* ===== Integration Cards ===== */
.integration-card {
    border: 2px solid #e2e8f0;
    border-radius: var(--ayp-radius);
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.integration-card.active {
    border-color: var(--ayp-primary);
    background: rgba(79, 70, 229, 0.03);
}

.integration-card .integration-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ===== Ticket Thread ===== */
.ticket-message {
    border-radius: var(--ayp-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.ticket-message.staff {
    background: #f1f5f9;
    border-left: 4px solid var(--ayp-primary);
}

.ticket-message.customer {
    background: #fff;
    border: 1px solid #e2e8f0;
}

.form-section-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-top: 0.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

/* ===== Detail View ===== */
.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.fatura-belge-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 88px;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #dbeafe;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.fatura-belge-btn i {
    font-size: 1.5rem;
}

.fatura-belge-btn--active {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}

.fatura-belge-btn--active:hover {
    background: #dbeafe;
    color: #1e40af;
    transform: translateY(-1px);
}

.fatura-belge-btn--mkb.fatura-belge-btn--active {
    border-color: #86efac;
    background: #f0fdf4;
    color: #15803d;
}

.fatura-belge-btn--mkb.fatura-belge-btn--active:hover {
    background: #dcfce7;
    color: #166534;
}

.fatura-belge-btn--empty {
    opacity: 0.55;
    cursor: default;
}

.fatura-belge-wrap {
    position: relative;
    display: inline-block;
}

.fatura-belge-sil {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #dc3545;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: background 0.15s ease, transform 0.15s ease;
}

.fatura-belge-sil:hover {
    background: #bb2d3b;
    transform: scale(1.05);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .admin-sidebar,
    .portal-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.show,
    .portal-sidebar.show {
        transform: translateX(0);
    }

    .admin-main,
    .portal-main {
        margin-left: 0;
    }

    body.sidebar-collapsed .admin-main {
        margin-left: 0;
    }

    .admin-content,
    .portal-content {
        padding: 0 1rem 1rem;
    }

    .admin-content .page-header,
    .portal-content .page-header {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .kanban-board {
        grid-template-columns: 1fr;
    }

    .calendar-day {
        min-height: 60px;
    }
}

@media (max-width: 575.98px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-card .stat-value {
        font-size: 1.35rem;
    }

    .auth-card-body {
        padding: 1.25rem;
    }
}

/* DataTables overrides */
.dataTables_filter input {
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.35rem 0.75rem;
}

.page-item.active .page-link {
    background-color: var(--ayp-primary);
    border-color: var(--ayp-primary);
}

.page-link {
    color: var(--ayp-primary);
}

/* Chart container */
.chart-container {
    position: relative;
    height: 280px;
}

@media (max-width: 767.98px) {
    .chart-container {
        height: 220px;
    }
}
