/* U88 Muhasebe — layout ve dashboard stilleri */
.entry-title, .wp-block-post-title, .page-title, .post-title { display: none !important; }
.entry-content, .post-content, .wp-block-post-content { margin-top: 0 !important; padding-top: 0 !important; }
.wp-site-blocks, .wp-block-group, .entry-content > *, .post-content > * { margin-block-start: 0 !important; }
.wp-site-blocks, .wp-block-post-content, .entry-content { margin: 0 !important; padding: 0 !important; }
.wp-block-post-content { margin-top: 0 !important; }

.muhasebe-container { max-width: 1400px; margin: 0 auto; padding: 0; box-sizing: border-box; }
.muhasebe-container *, .muhasebe-container *::before, .muhasebe-container *::after { box-sizing: border-box; }
.muhasebe-header { background: linear-gradient(135deg, #0c4a6e, #0369a1, #0ea5e9); border-radius: 0; padding: 0.75rem 1.25rem; margin-bottom: 0; color: white; display: flex; justify-content: space-between; align-items: center; }
.muhasebe-header h1 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.muhasebe-header p { font-size: 0.7rem; opacity: 0.9; margin: 0; }

.muhasebe-tabs {
    background: white;
    border-radius: 0.6rem;
    padding: 0.5rem 0.75rem;
    margin: 1rem 1rem 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}
.tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: #f3f4f6;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.tab-btn:hover { background: #e5e7eb; color: #1f2937; }
.tab-btn.active { background: linear-gradient(135deg, #0ea5e9, #2563eb); color: white; }
.tab-btn i { font-size: 0.9rem; }

.stats-wrapper { overflow-x: auto; margin-bottom: 1rem; white-space: nowrap; padding: 0 1rem; margin-top: 1rem; }
.stats-inline { display: inline-flex; gap: 0.75rem; }
.stat-card { display: inline-block; min-width: 140px; background: white; border-radius: 0.6rem; padding: 0.75rem; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #e5e7eb; cursor: pointer; transition: all 0.2s; }
.stat-card:hover { transform: translateY(-2px); border-color: #8b5cf6; }
.stat-number { font-size: 1.3rem; font-weight: 700; color: #8b5cf6; }
.stat-label { color: #6b7280; font-size: 0.65rem; margin-top: 0.2rem; }
.stat-number.positive { color: #10b981; }
.stat-number.negative { color: #ef4444; }
.dash-icon--gelir { color: #10b981; }
.dash-icon--gider { color: #ef4444; }
.data-table-empty { text-align: center; color: #9ca3af; }
.section-title { font-size: 1rem; font-weight: 600; margin: 1rem 0 0.75rem 1rem; color: #1f2937; display: flex; align-items: center; gap: 0.5rem; }
.data-table { background: white; border-radius: 0.6rem; overflow-x: auto; margin: 0 1rem 1rem 1rem; border: 1px solid #e5e7eb; }
.data-table table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.data-table th, .data-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid #e5e7eb; font-size: 0.75rem; }
.data-table th { background: #f9fafb; font-weight: 600; }
.data-table th:first-child, .data-table td:first-child { width: 35%; }
.data-table th:nth-child(2), .data-table td:nth-child(2) { width: 15%; }
.data-table th:nth-child(3), .data-table td:nth-child(3) { width: 15%; }
.data-table th:nth-child(4), .data-table td:nth-child(4) { width: 20%; }
.data-table th:last-child, .data-table td:last-child { width: 15%; text-align: center; }
.btn-sm { padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; border: none; cursor: pointer; }
.btn-edit { background: #3b82f6; color: white; }
.btn-delete { background: #ef4444; color: white; }
.btn-add { background: #10b981; color: white; }
.btn-view { background: #8b5cf6; color: white; }
.muhasebe-toolbar { background: white; border-radius: 0.6rem; padding: 0.6rem 0.75rem; margin: 0 1rem 1rem 1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border: 1px solid #e5e7eb; }
.search-box { position: relative; }
.search-box i { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: 0.7rem; }
.search-box input { padding: 0.3rem 0.4rem 0.3rem 1.8rem; border: 1px solid #e5e7eb; border-radius: 0.4rem; width: 220px; font-size: 0.75rem; }
.filter-select { padding: 0.3rem 0.4rem; border: 1px solid #e5e7eb; border-radius: 0.4rem; background: white; font-size: 0.75rem; }
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 1000; align-items: center; justify-content: center; padding: 1rem; }
.modal.active { display: flex !important; }
.modal-content { background: white; border-radius: 0.6rem; max-width: 700px; width: 95%; max-height: 90vh; overflow-y: auto; }
.modal-header { background: linear-gradient(135deg, #8b5cf6, #7c3aed); padding: 0.6rem 0.8rem; border-radius: 0.6rem 0.6rem 0 0; color: white; display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 0.8rem; }
.modal-footer { padding: 0.6rem 0.8rem; border-top: 1px solid #e5e7eb; display: flex; justify-content: flex-end; gap: 0.5rem; }
.form-group { margin-bottom: 0.6rem; }
.form-group label { display: block; font-size: 0.65rem; font-weight: 600; margin-bottom: 0.15rem; color: #374151; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.35rem 0.5rem; border: 1px solid #e5e7eb; border-radius: 0.4rem; font-size: 0.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.pagination { display: flex; justify-content: center; gap: 0.3rem; margin-top: 0.8rem; padding-bottom: 1rem; }
.pagination a { padding: 0.3rem 0.6rem; background: white; border-radius: 0.4rem; text-decoration: none; color: #8b5cf6; border: 1px solid #e5e7eb; font-size: 0.75rem; }
.pagination a.active { background: #8b5cf6; color: white; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 1rem; margin: 1rem; }
.dashboard-grid--charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chart-card { background: white; border-radius: 0.6rem; padding: 1rem; border: 1px solid #e5e7eb; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.chart-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; color: #374151; display: flex; align-items: center; gap: 0.5rem; }
.chart-container { position: relative; height: 300px; }

/* ——— Premium dashboard grafik + son işlemler ——— */
.dash-chart-premium {
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.dash-chart-premium__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(248,250,252,0.9));
}
.dash-chart-premium--gelir .dash-chart-premium__head { border-left: 4px solid #10b981; }
.dash-chart-premium--gider .dash-chart-premium__head { border-left: 4px solid #ef4444; }
.dash-chart-premium__title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash-chart-premium__sub {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dash-chart-premium__body {
    display: grid;
    grid-template-columns: minmax(140px, 38%) minmax(0, 1fr);
    gap: 10px;
    padding: 12px 14px 14px;
    align-items: stretch;
    min-height: 240px;
}
.dash-chart-premium__canvas {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}
.dash-chart-premium__canvas canvas { max-height: 220px; }
.dash-chart-premium__legend {
    min-width: 0;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}
.dash-legend-list { display: flex; flex-direction: column; gap: 8px; }
.dash-legend-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) 72px;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid #eef2f7;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.dash-legend-item__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.9);
    background: var(--dash-legend-color, #94a3b8);
}
.dash-legend-item__meta { min-width: 0; }
.dash-legend-item__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-legend-item__amount {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}
.dash-legend-item__pct-wrap { text-align: right; }
.dash-legend-item__pct {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 3px;
}
.dash-legend-item__bar {
    height: 4px;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}
.dash-legend-item__bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    width: var(--dash-legend-pct, 0%);
    background: var(--dash-legend-color, #94a3b8);
}
.dash-legend-toplam {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    font-size: 0.72rem;
    color: #475569;
}
.dash-legend-toplam strong {
    font-size: 0.78rem;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}
.dash-legend-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
}

.dash-islem-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 1rem 1rem;
}
.dash-islem-panel {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}
.dash-islem-panel--gelir { border-top: 3px solid #10b981; }
.dash-islem-panel--gider { border-top: 3px solid #ef4444; }
.dash-islem-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
    border-bottom: 1px solid #f1f5f9;
}
.dash-islem-panel__title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash-islem-panel--gelir .dash-islem-panel__title i { color: #059669; }
.dash-islem-panel--gider .dash-islem-panel__title i { color: #dc2626; }
.dash-islem-panel__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}
.dash-islem-panel__cta:hover {
    border-color: #c4b5fd;
    color: #6d28d9;
    background: #faf5ff;
}
.dash-islem-table-wrap { overflow-x: auto; }
.dash-islem-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.dash-islem-table thead th {
    padding: 8px 10px;
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}
.dash-islem-table tbody td {
    padding: 9px 10px;
    font-size: 0.74rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.dash-islem-row {
    cursor: pointer;
    transition: background 0.12s ease;
}
.dash-islem-row:hover { background: #fafbff; }
.dash-islem-aciklama {
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #0f172a;
    font-weight: 600;
}
.dash-islem-tarih {
    color: #64748b;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.dash-islem-tutar {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.dash-islem-tutar--gelir { color: #059669; }
.dash-islem-tutar--gider { color: #dc2626; }
.dash-islem-kat {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-islem-kat--gelir { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.dash-islem-kat--gider { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.dash-islem-aksiyon { width: 44px; text-align: center; }
.dash-islem-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #7c3aed;
    cursor: pointer;
    transition: all 0.12s ease;
}
.dash-islem-btn:hover {
    background: #f5f3ff;
    border-color: #c4b5fd;
}
.dash-islem-empty {
    text-align: center;
    color: #94a3b8;
    padding: 24px 12px !important;
    font-weight: 600;
}
.dash-islem-table th:nth-child(1), .dash-islem-table td:nth-child(1) { width: 38%; }
.dash-islem-table th:nth-child(2), .dash-islem-table td:nth-child(2) { width: 14%; }
.dash-islem-table th:nth-child(3), .dash-islem-table td:nth-child(3) { width: 16%; }
.dash-islem-table th:nth-child(4), .dash-islem-table td:nth-child(4) { width: 24%; }
.dash-islem-table th:nth-child(5), .dash-islem-table td:nth-child(5) { width: 8%; }

.chart-empty-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 180px;
    color: #9ca3af;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

#finans-modal .modal-header { flex-shrink: 0; position: sticky; top: 0; z-index: 1000; }
#finans-modal .modal-body { flex: 1; min-height: 0; overflow: hidden; }
#finans-modal .modal-footer { flex-shrink: 0; }

@media (max-width: 768px) {
    .stats-inline { gap: 0.5rem; }
    .stat-card { min-width: 120px; padding: 0.5rem; }
    .stat-number { font-size: 1rem; }
    .search-box input { width: 150px; }
    .tab-btn { padding: 0.35rem 0.7rem; font-size: 0.7rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-grid--charts { grid-template-columns: 1fr; }
    .dash-chart-premium__body { grid-template-columns: 1fr; }
    .dash-chart-premium__canvas { min-height: 180px; }
    .dash-islem-grid { grid-template-columns: 1fr; }
}
