/* public/assets/styles.css */
/* Mobil öncelikli, modern, okunaklı ve fotoğrafa yakın estetik */
/* Renk paleti, kartlar, ikonlar, responsive düzenler */
:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --accent:#16a34a;
  --accent-2:#2b7cff;
  --muted:#6b7280;
  --plus:#16a34a;
  --minus:#ef4444;
  --shadow: 0 10px 30px rgba(15,23,42,0.06);
  --shadow-soft: 0 6px 18px rgba(2,6,23,0.06);
  --radius:14px;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size:15px;
  color-scheme: light;
}

/* Reset / temel */
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:linear-gradient(180deg,#fbfdff 0%,var(--bg) 100%);color:#0f172a;min-height:100vh;-webkit-font-smoothing:antialiased}
a{color:var(--accent-2);text-decoration:none;transition:color .18s}
a:hover{color:#1d4ed8}
.container{max-width:1200px;margin:18px auto;padding:0 16px}

/* Topbar */
.topbar{background:transparent;padding:12px 0}
.topbar .container{display:flex;align-items:center;justify-content:space-between;gap:12px}
.logo{font-weight:800;font-size:18px;color:#0b1220}
.user-area{display:flex;gap:8px;align-items:center;flex-wrap:wrap}

/* Genel Kart */
.card{background:var(--card);border-radius:var(--radius);padding:16px;box-shadow:var(--shadow-soft);margin-bottom:12px}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border-radius:10px;border:none;cursor:pointer;font-weight:700;background:var(--accent-2);color:#fff;transition:all .18s}
.btn:hover{opacity:.95;transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn.ghost{background:transparent;border:1px solid #e6e9ef;color:#0f172a}
.btn.ghost:hover{background:#f8fafc}
.btn.primary{background:var(--accent-2);color:#fff}
.btn.small{padding:6px 12px;font-size:13px;border-radius:8px}
.btn.tiny{padding:6px 10px;font-size:13px;border-radius:8px;background:#f3f4f6;color:#0f172a;border:1px solid #e6e9ef}
.btn.tiny:hover{background:#e5e7eb}
.btn.tiny + .btn.tiny{margin-left:8px}
#bulk-delete-btn[disabled]{opacity:.5;cursor:not-allowed;transform:none}

/* NET KASA */
.net-kasa{margin-top:8px}
.net-card{display:flex;flex-direction:column;gap:12px;background:var(--card);padding:20px;border-radius:16px;box-shadow:var(--shadow)}
.net-main{display:flex;flex-direction:column;gap:6px}
.net-title{font-size:12px;color:var(--muted);font-weight:700;letter-spacing:.6px;text-transform:uppercase}
.net-value{font-size:32px;color:var(--plus);font-weight:800;line-height:1}
.net-sub{color:var(--muted);font-size:13px}
.net-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:8px}
.stat-mini{background:linear-gradient(180deg,rgba(255,255,255,0.98),rgba(250,250,250,0.98));padding:12px;border-radius:10px;display:flex;flex-direction:column;border:1px solid rgba(0,0,0,0.02)}
.stat-label{font-size:12px;color:var(--muted);font-weight:700}
.stat-value{font-size:18px;font-weight:800}
.stat-value.plus{color:var(--plus)}
.stat-value.minus{color:var(--minus)}

/* Panels (Gelir/Gider) */
.dual-panels{display:flex;flex-direction:column;gap:16px;margin-top:14px}
@media (min-width:768px){ .dual-panels{flex-direction:row} .panel{flex:1} }
.panel{background:var(--card);border-radius:12px;padding:16px;box-shadow:var(--shadow)}
.panel-header{display:flex;justify-content:space-between;align-items:center}
.panel-header h4{margin:0;font-size:16px}
.panel-meta{color:var(--muted);font-size:13px}
.panel-body{margin-top:10px}
.line{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px dashed #e2e8f0}
.line:last-child{border-bottom:none}
.line .left{display:flex;align-items:center;gap:8px}
.label{font-weight:600}
.right{font-weight:800}

/* Users Balances */
.users-balances{margin-top:16px}
.users-row{display:flex;gap:12px;flex-wrap:wrap}
.user-card{background:var(--card);padding:14px;border-radius:12px;min-width:160px;flex:1 1 180px;box-shadow:var(--shadow)}
.user-top{display:flex;align-items:center;gap:10px}
.user-initials{width:44px;height:44px;border-radius:10px;background:linear-gradient(135deg,#eefdf3,#e6f7ea);display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--plus)}
.user-name{font-weight:700}
.user-stats{margin-top:10px;display:flex;flex-direction:column;gap:8px}
.stat{display:flex;justify-content:space-between}

/* Badges & Small Tags */
.badge-plus{background:rgba(22,163,74,0.1);color:var(--plus);padding:4px 8px;border-radius:6px;font-weight:700;display:inline-block;font-size:13px}
.badge-minus{background:rgba(239,68,68,0.08);color:var(--minus);padding:4px 8px;border-radius:6px;font-weight:700;display:inline-block;font-size:13px}
.badge-avans{background:rgba(59,130,246,0.08);color:#0b5ed7;padding:4px 8px;border-radius:6px;font-weight:700;display:inline-block;font-size:13px}
.pm-label{margin-left:6px;color:#374151;font-weight:600;font-size:13px}
.pm-icon{vertical-align:middle}
.small-muted{font-size:12px;color:#9aa0a6}

/* HAREKETLER - responsive, mobil öncelikli */
/* Default mobile stacked card style for readability */
.table{margin-top:14px}
.thead{display:none}
.trow{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:14px;
  border-radius:12px;
  background:#ffffff;
  margin-top:10px;
  box-shadow:var(--shadow-soft);
  border:1px solid #f1f5f9;
}

/* Each row broken into logical blocks for mobile */
.trow .meta-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  width:100%;
}
.trow .meta-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.trow .meta-left .date{
  font-size:13px;
  color:var(--muted);
  min-width:110px;
  white-space:nowrap;
  text-align:left;
}
.trow .meta-left .user{
  font-weight:700;
  font-size:14px;
  color:#0f172a;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.trow .meta-right{
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:flex-end;
  min-width:0;
}
.trow .center{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.trow .t-title{font-weight:700;font-size:15px;line-height:1.1}
.trow .t-desc{font-size:13px;color:var(--muted);text-align:left;word-break:break-word}
.trow .meta-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid #f1f5f9;
  width:100%;
}
.txn-checkbox{width:20px;height:20px;border-radius:4px;border:1px solid #d1d5db;cursor:pointer}

/* Desktop/tablet: grid layout */
/* Adjusted grid to give more space to date and user columns and place amount at the end */
/* Also ensure text uses full cell width and wraps/ellipses appropriately */
@media (min-width:992px){
  .thead{
    display:grid;
    /* Columns: select | date | user | title/description | type | payment | actions | amount */
    grid-template-columns:56px 160px 200px 1fr 120px 140px 140px 120px;
    gap:16px;
    padding:14px;
    color:var(--muted);
    font-weight:700;
    align-items:center;
  }
  .trow{
    display:grid;
    grid-template-columns:56px 160px 200px 1fr 120px 140px 140px 120px;
    gap:16px;
    padding:14px;
    background:linear-gradient(180deg,rgba(255,255,255,0.98),rgba(250,250,250,0.98));
    margin-top:10px;
    align-items:center;
    border:none;
    box-shadow:none;
  }
  .trow > div{display:block;width:auto}
  /* Select column */
  .trow > div:nth-child(1){display:flex;align-items:center;justify-content:center}
  /* Date column: left aligned, ample width */
  .trow > div:nth-child(2){color:var(--muted);font-size:13px;white-space:nowrap;min-width:160px}
  /* User column */
  .trow > div:nth-child(3){font-weight:700;color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:200px}
  /* Title/description column expands and wraps */
  .trow > div:nth-child(4){overflow-wrap:break-word}
  .trow .t-title{font-weight:700;margin-bottom:4px}
  .trow .t-desc{color:var(--muted);font-size:13px;margin:0}
  /* Type column */
  .trow > div:nth-child(5){display:flex;align-items:center;gap:6px}
  /* Payment column */
  .trow > div:nth-child(6){display:flex;align-items:center;gap:8px;color:#374151}
  /* Actions column (buttons) */
  .trow > div:nth-child(7){display:flex;justify-content:flex-end;gap:8px;align-items:center}
  /* Amount column is last and right-aligned */
  .trow > div:nth-child(8){display:flex;justify-content:flex-end;align-items:center;font-weight:800;color:#0f172a}
  #select-all{width:18px;height:18px}
}

/* Düzenle / Sil butonları */
.btn.tiny{padding:6px 8px;font-size:13px;border-radius:8px}
.btn.tiny + .btn.tiny{margin-left:8px}
.btn.tiny{background:#f3f4f6;color:#0f172a;border:1px solid #e6e9ef}
.btn.tiny.ghost{background:transparent;border:1px solid #e6e9ef}

/* Empty */
.empty{padding:18px;text-align:center;color:var(--muted)}

/* Forms and Center Card */
.center-card{width:92%;max-width:420px;margin:40px auto;padding:24px;background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);text-align:center}
.brand{font-size:22px;font-weight:700;margin-bottom:16px}
.form{display:flex;flex-direction:column;gap:12px;text-align:left}
.form label{font-size:13px;color:var(--muted);font-weight:600}
.form input,.form select,.form textarea{padding:10px 12px;border:1px solid #e6e9ef;border-radius:10px;background:#fff;font-size:14px;width:100%;transition:border-color .18s}
.form input:focus,.form select:focus,.form textarea:focus{outline:none;border-color:var(--accent-2)}
.form textarea{resize:vertical}
.form .row{display:flex;gap:10px}
.form .col{flex:1}

/* Alerts */
.alert{background:#fff4f4;border-left:4px solid var(--minus);padding:12px;border-radius:8px;margin-bottom:12px;color:#7a1f1f;font-size:14px}
.success{background:#f0fdf4;border-left:4px solid var(--plus);padding:12px;border-radius:8px;margin-bottom:12px;color:#14532d;font-size:14px}

/* Filtre Panel */
.filter-panel{max-width:1200px;margin:12px auto;transition:all .25s ease-in-out;overflow:hidden;height:0;opacity:0;transform-origin:top;border-radius:12px;box-shadow:0 10px 30px rgba(2,6,23,0.06);background:#fff;padding:0 16px}
.filter-panel.open{height:auto;opacity:1;padding:16px 16px 20px 16px}
.filter-form .filter-row{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.filter-form .filter-col{flex:1;min-width:160px}
.filter-form label{display:block;font-size:13px;color:var(--muted);margin-bottom:6px;font-weight:600}
.filter-form input[type="text"],.filter-form input[type="date"],.filter-form select{width:100%;padding:10px 12px;border-radius:10px;border:1px solid #e6e9ef;background:#fff;font-size:14px}
#filter-toggle-btn.active{background:var(--accent-2);color:#fff;border-color:var(--accent-2);box-shadow:0 6px 18px rgba(43,124,255,0.12)}

/* Responsive tweaks */
@media (min-width:720px){
  .net-card{flex-direction:row;align-items:center;justify-content:space-between}
  .net-stats{grid-template-columns:repeat(4,1fr)}
  .dual-panels{flex-direction:row}
  .panel-left{flex:1}
  .panel-right{flex:1}
  .users-row{justify-content:flex-start}
  .filter-panel{max-width:100%}
}
@media (max-width:900px){
  .filter-panel.open{padding:12px}
  .table-actions{display:flex;flex-direction:column;gap:8px}
  .filter-form .filter-row{flex-direction:column}
  .net-value{font-size:24px}
  .net-stats{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:1000px){
  .container{max-width:1200px}
}

/*REPORTS PHP*/

/* ===== reports.php — final balanced CSS =====
   Replace previous reports blocks with this. Targets body.page-reports. */

body.page-reports {
  --rp-bg: #f6f8fb;
  --rp-surface: #ffffff;
  --rp-accent: #0f4bd8;
  --rp-muted: #6b7280;
  --rp-border: #e6e9ef;
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #071033;
  background: var(--rp-bg);
}

/* Container */
body.page-reports .container { max-width:1200px; margin:0 auto; padding:0 16px; box-sizing:border-box; }

/* Card & button basics */
body.page-reports .card, body.page-reports .card-small {
  background:var(--rp-surface);
  border:1px solid var(--rp-border);
  border-radius:10px;
  padding:12px;
  box-sizing:border-box;
  box-shadow: 0 6px 18px rgba(12,24,48,0.04);
}
body.page-reports .btn { border-radius:8px; padding:8px 12px; font-weight:600; display:inline-flex; align-items:center; gap:8px; }
body.page-reports .btn.ghost { background:transparent; border:1px solid var(--rp-border); color:var(--rp-accent); }

/* Hero & filters */
body.page-reports .reports-hero { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:18px; }
@media (max-width:920px) { body.page-reports .reports-hero { flex-direction:column; align-items:stretch; } }
body.page-reports .filter-form { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:0; }
body.page-reports .filter-form .select, body.page-reports .filter-form select {
  padding:8px 10px; border-radius:8px; border:1px solid var(--rp-border); background:var(--rp-surface); min-width:120px;
}

/* Charts */
body.page-reports .charts-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px; }
@media (max-width:920px) { body.page-reports .charts-row { grid-template-columns:1fr; } }
body.page-reports .chart-card { padding:12px; border-radius:10px; background:var(--rp-surface); border:1px solid var(--rp-border); }
body.page-reports .chart-card .chart-inner { width:100%; overflow:auto; -webkit-overflow-scrolling:touch; }
body.page-reports canvas#monthlyChart, body.page-reports canvas#userChart { width:100% !important; height:294px !important; }

/* Table wrapper */
body.page-reports .table-scroll { overflow-x:auto; border-radius:10px; background:var(--rp-surface); border:1px solid var(--rp-border); padding:8px; }

/* ===== DESKTOP: stable table layout (restore good desktop look) ===== */
@media (min-width:721px) {
  body.page-reports table {
    width:100%; border-collapse:collapse; font-size:0.95rem; color:#071033;
    table-layout: fixed; /* fixed ensures headers align with values */
    min-width: 640px;
  }
  body.page-reports table thead th {
    padding:12px 14px; font-weight:700; text-align:left; border-bottom:1px solid var(--rp-border);
    background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(250,250,252,0.6));
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  body.page-reports table thead th:nth-child(n+2) { text-align:right; }

  body.page-reports table tbody td {
    padding:12px 14px; border-bottom:1px solid #f3f4f6; vertical-align:middle;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }

  /* Hide inline label tokens on desktop (removes duplicate "Gelir/Gider" near values) */
  body.page-reports .cell-label { display:none; }

  /* Months table column widths */
  body.page-reports table.months-table thead th:first-child,
  body.page-reports table.months-table tbody td:first-child { width:40%; text-align:left; padding-right:12px; }
  body.page-reports table.months-table thead th:nth-child(n+2),
  body.page-reports table.months-table tbody td:nth-child(n+2) { width:15%; text-align:right; }

  /* User summary table column widths */
  body.page-reports table.user-summary-table thead th:first-child,
  body.page-reports table.user-summary-table tbody td:first-child { width:42%; text-align:left; padding-right:12px; white-space:normal; }
  body.page-reports table.user-summary-table thead th:nth-child(2),
  body.page-reports table.user-summary-table tbody td:nth-child(2) { width:14%; text-align:right; }
  body.page-reports table.user-summary-table thead th:nth-child(3),
  body.page-reports table.user-summary-table tbody td:nth-child(3) { width:14%; text-align:right; }
  body.page-reports table.user-summary-table thead th:nth-child(4),
  body.page-reports table.user-summary-table tbody td:nth-child(4) { width:14%; text-align:right; }
  body.page-reports table.user-summary-table thead th:nth-child(5),
  body.page-reports table.user-summary-table tbody td:nth-child(5) { width:16%; text-align:right; }

  /* Numeric value styling on desktop */
  body.page-reports .value-income, body.page-reports .value-expense, body.page-reports .value-advance {
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:12rem; text-align:right;
  }
}

/* ===== MOBILE: card-like rows, readable spacing, keep values visible ===== */
@media (max-width:720px) {
  /* Filters full width */
  body.page-reports .filter-form { display:flex; flex-direction:column; gap:8px; }
  body.page-reports .filter-form .select, body.page-reports .filter-form select { width:100%; min-width:0; }

  /* Make each row a card */
  body.page-reports table { width:100%; table-layout:auto; min-width:0; }
  body.page-reports table thead { display:none; }
  body.page-reports table tbody tr {
    display:block; margin:10px 0; background:var(--rp-surface); border:1px solid var(--rp-border);
    border-radius:10px; box-shadow: 0 6px 18px rgba(12,24,48,0.04); padding:10px;
  }

  /* First cell (title) full-width on top */
  body.page-reports table tbody td:first-child { display:block; padding:8px 8px 6px 8px; }
  body.page-reports table tbody td:first-child .cell-label { display:block; color:var(--rp-muted); margin-bottom:6px; font-weight:600; }
  body.page-reports table tbody td:first-child .cell-value { display:block; text-align:left; font-weight:800; white-space:normal; word-break:break-word; }

  /* Other cells: label left, value right with spacing */
  body.page-reports table tbody td:not(:first-child) {
    display:flex; justify-content:space-between; align-items:center; gap:12px; padding:6px 8px;
  }
  body.page-reports .cell-label { display:inline-block; width:55%; color:var(--rp-muted); font-weight:600; }
  body.page-reports .cell-value {
    display:inline-block; width:45%; text-align:right; white-space:nowrap; overflow:visible; text-overflow:clip; font-weight:700;
  }

  /* Ensure numeric values remain readable; allow wrapping only if necessary */
  body.page-reports table.user-summary-table tbody td:not(:first-child) .cell-value { white-space:nowrap; overflow:visible; }

  /* Footer totals as two-column pairs */
  body.page-reports table.user-summary-table tfoot tr { display:block; margin-top:8px; background:transparent; box-shadow:none; }
  body.page-reports table.user-summary-table tfoot td { display:flex; justify-content:space-between; padding:8px; font-weight:800; }

  /* Charts smaller */
  body.page-reports canvas#monthlyChart, body.page-reports canvas#userChart { height:294px !important; }
}

/* Final polish */
body.page-reports table tbody tr:nth-child(odd) { background: rgba(12,24,48,0.01); }
body.page-reports table tbody tr:hover { background: rgba(15,75,216,0.04); }
body.page-reports td, body.page-reports .cell-value { word-break: break-word; }

/* ===== reports.php: gelir/gider/avans/net renkleri ===== */
body.page-reports .value-income,
body.page-reports td .value-income {
  color: #16a34a; /* yeşil */
  font-weight: 700;
  text-align: right;
}

body.page-reports .value-expense,
body.page-reports td .value-expense {
  color: #ef4444; /* kırmızı */
  font-weight: 700;
  text-align: right;
}

body.page-reports .value-advance,
body.page-reports td .value-advance {
  color: #f59e0b; /* turuncu */
  font-weight: 700;
  text-align: right;
}

/* Net pozitif / negatif vurgusu (daha belirgin) */
body.page-reports .net-positive,
body.page-reports td .net-positive {
  color: #065f46; /* koyu yeşil */
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255,255,255,0.02);
}

body.page-reports .net-negative,
body.page-reports td .net-negative {
  color: #7f1d1d; /* koyu kırmızı */
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255,255,255,0.02);
}

/* Arka planlı küçük pill stili (opsiyonel, tablo dışında kullanmak isterseniz) */
body.page-reports .rp-pill-income {
  background: rgba(22,163,74,0.08);
  color: #065f46;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight:700;
  display:inline-block;
}
body.page-reports .rp-pill-expense {
  background: rgba(239,68,68,0.08);
  color: #9b1c1c;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight:700;
  display:inline-block;
}
body.page-reports .rp-pill-advance {
  background: rgba(245,158,11,0.08);
  color: #7a4b00;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight:700;
  display:inline-block;
}

/* Erişilebilirlik: kontrast ve odak durumları */
body.page-reports .value-income:focus,
body.page-reports .value-expense:focus,
body.page-reports .value-advance:focus,
body.page-reports .net-positive:focus,
body.page-reports .net-negative:focus {
  outline: 3px solid rgba(15,75,216,0.12);
  outline-offset: 2px;
}

/* Küçük ekranlarda hizalama korunması */
@media (max-width:720px) {
  body.page-reports .value-income,
  body.page-reports .value-expense,
  body.page-reports .value-advance,
  body.page-reports .net-positive,
  body.page-reports .net-negative {
    text-align: right; /* mobilde de sağda göster */
    white-space: normal; /* mobilde sarma izni */
  }
}
/*REPORT ALTTAKI TOPLAM KISMI DAHA IYI*/
/* Mobil: user-summary-table tfoot — başlık solda, değer sağda */
@media (max-width:720px) {
  /* tfoot satırını blok ve hücreleri yatay çiftler hâline getir */
  body.page-reports table.user-summary-table tfoot tr {
    display: block;
    margin-top: 8px;
    background: transparent;
  }

  body.page-reports table.user-summary-table tfoot td {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    border-top: none !important;
    background: transparent !important;
    font-weight: 700 !important;
  }

  /* ::before ile sütun bazlı başlık ekle (solda) */
  body.page-reports table.user-summary-table tfoot td::before {
    display: inline-block;
    content: attr(data-foot-label);
    color: var(--rp-muted, #6b7280);
    font-weight: 600;
    margin-right: 8px;
    white-space: nowrap;
  }

  /* Eğer HTML'de data-foot-label yoksa, sütun indexine göre içerik ekle */
  body.page-reports table.user-summary-table tfoot td:nth-child(1)::before { content: "Açıklama"; }
  body.page-reports table.user-summary-table tfoot td:nth-child(2)::before { content: "Gelir"; }
  body.page-reports table.user-summary-table tfoot td:nth-child(3)::before { content: "Gider"; }
  body.page-reports table.user-summary-table tfoot td:nth-child(4)::before { content: "Avans"; }
  body.page-reports table.user-summary-table tfoot td:nth-child(5)::before { content: "Net"; }

  /* Değer (mevcut içerik) sağda kalsın ve taşma kontrolü */
  body.page-reports table.user-summary-table tfoot td .cell-value,
  body.page-reports table.user-summary-table tfoot td {
    text-align: right !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }

  /* Çok dar ekranlarda başlık ve değerin alt alta düşmesini sağla */
  @media (max-width:420px) {
    body.page-reports table.user-summary-table tfoot td {
      flex-wrap: wrap !important;
      justify-content: space-between !important;
    }
    body.page-reports table.user-summary-table tfoot td::before {
      margin-bottom: 4px !important;
    }
    body.page-reports table.user-summary-table tfoot td .cell-value {
      width: 100% !important;
      text-align: right !important;
      white-space: normal !important;
      word-break: break-word !important;
    }
  }
}

/* Masaüstünde ::before görünmesin (çakışma olmasın) */
@media (min-width:721px) {
  body.page-reports table.user-summary-table tfoot td::before { display: none; content: none; }
}
/*RAPOR TOPLAM GELIR YIL*/
/* Masaüstü: user-summary-table tfoot görsel iyileştirme (paste at end of assets/styles.css) */
@media (min-width:721px) {
  /* tfoot satırını netleştir: arka plan, sınır ve padding */
  body.page-reports table.user-summary-table tfoot tr {
    background: rgba(2,6,23,0.02);
    border-top: 2px solid var(--rp-border, #e6e9ef);
  }

  /* tfoot hücreleri: daha fazla iç boşluk, net tipografi ve hizalama */
  body.page-reports table.user-summary-table tfoot td {
    padding: 14px 16px !important;
    font-weight: 800 !important;
    font-size: 0.98rem !important;
    color: #071033 !important;
    vertical-align: middle !important;
    background: transparent !important;
  }

  /* İlk hücre (Açıklama / Toplam başlığı) sola yaslı, diğerleri sağa hizalı */
  body.page-reports table.user-summary-table tfoot td:first-child {
    text-align: left !important;
    color: var(--rp-muted, #4b5563) !important;
    font-weight: 700 !important;
    padding-left: 18px !important;
  }
  body.page-reports table.user-summary-table tfoot td:not(:first-child) {
    text-align: right !important;
    padding-right: 18px !important;
  }

  /* Eğer hücre içinde küçük başlık (label) gösteriyorsanız, onu daha ince ve gri yap */
  body.page-reports table.user-summary-table tfoot td .cell-label {
    display:block;
    font-size:0.82rem;
    font-weight:600;
    color:var(--rp-muted, #6b7280);
    margin-bottom:4px;
  }
  /* Değer (cell-value) daha büyük ve vurgulu */
  body.page-reports table.user-summary-table tfoot td .cell-value {
    display:block;
    font-size:1.02rem;
    font-weight:900;
    color:#071033;
    letter-spacing:0.2px;
  }

  /* Yıl / Tarih hücresi için özel daraltma ve hizalama (eğer varsa 6. sütun) */
  body.page-reports table.user-summary-table tfoot td.year,
  body.page-reports table.user-summary-table tfoot td:nth-child(6) {
    width: 10% !important;
    text-align: right !important;
    color: var(--rp-muted, #6b7280) !important;
    font-weight:700 !important;
  }

  /* Görsel ayrım: hücreler arasında ince ayırıcı (opsiyonel, estetik) */
  body.page-reports table.user-summary-table tfoot td + td {
    border-left: 1px solid rgba(0,0,0,0.04);
  }

  /* Hover etkisi kaldır (toplam satırı sabit görünmeli) */
  body.page-reports table.user-summary-table tfoot tr:hover { background: rgba(2,6,23,0.02) !important; }

  /* Erişilebilirlik: kontrast ve odak */
  body.page-reports table.user-summary-table tfoot td:focus {
    outline: 3px solid rgba(15,75,216,0.12);
    outline-offset: 2px;
  }
}
/* ===== user-summary-table tfoot: kesin renk atamaları ===== */
body.page-reports table.user-summary-table tfoot td,
body.page-reports table.user-summary-table tfoot td .cell-value,
body.page-reports table.user-summary-table tfoot td span {
  font-weight: 800 !important;
  font-size: 1.02rem !important;
  color: inherit !important;
}

/* Sınıf bazlı renkler (varsa) */
body.page-reports table.user-summary-table tfoot td .value-income,
body.page-reports table.user-summary-table tfoot td.value-income,
body.page-reports table.user-summary-table tfoot td .cell-value.value-income {
  color: #16a34a !important; /* yeşil */
}

body.page-reports table.user-summary-table tfoot td .value-expense,
body.page-reports table.user-summary-table tfoot td.value-expense,
body.page-reports table.user-summary-table tfoot td .cell-value.value-expense {
  color: #ef4444 !important; /* kırmızı */
}

body.page-reports table.user-summary-table tfoot td .value-advance,
body.page-reports table.user-summary-table tfoot td.value-advance,
body.page-reports table.user-summary-table tfoot td .cell-value.value-advance {
  color: #f59e0b !important; /* turuncu */
}

/* Net pozitif/negatif için sınıf bazlı vurgular */
body.page-reports table.user-summary-table tfoot td .net-positive,
body.page-reports table.user-summary-table tfoot td.net-positive,
body.page-reports table.user-summary-table tfoot td .cell-value.net-positive {
  color: #065f46 !important; /* koyu yeşil */
}

body.page-reports table.user-summary-table tfoot td .net-negative,
body.page-reports table.user-summary-table tfoot td.net-negative,
body.page-reports table.user-summary-table tfoot td .cell-value.net-negative {
  color: #7f1d1d !important; /* koyu kırmızı */
}

/* Eğer hücrelerde sınıf yoksa sütun indeksine göre renklendir (2=Gelir,3=Gider,4=Avans,5=Net) */
body.page-reports table.user-summary-table tfoot td:nth-child(2) { color: #16a34a !important; }
body.page-reports table.user-summary-table tfoot td:nth-child(3) { color: #ef4444 !important; }
body.page-reports table.user-summary-table tfoot td:nth-child(4) { color: #f59e0b !important; }
body.page-reports table.user-summary-table tfoot td:nth-child(5) { color: #065f46 !important; }

/* Mobilde de renklerin korunması */
@media (max-width:720px) {
  body.page-reports table.user-summary-table tfoot td,
  body.page-reports table.user-summary-table tfoot td .cell-value {
    color: inherit !important;
    font-weight: 800 !important;
  }
}



/* ===== Desktop-only: Top summary redesign (cards inline, label above value) ===== */
@media (min-width:1024px) {
  /* Container: yatay sıra korunur, taşma durumunda sarmaya izin ver */
  body.page-reports .summary-cards {
    display:flex !important;
    gap:18px !important;
    align-items:flex-start !important;
    flex-wrap:wrap !important;
    justify-content:flex-start !important;
    margin-bottom:18px !important;
  }

  /* Her kart: dikey içerik (label üstte, value altta), ama kartlar yan yana */
  body.page-reports .summary-cards .summary-card,
  body.page-reports .summary-card,
  body.page-reports .top-summary {
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px !important;
    padding:14px 16px !important;
    min-width:160px !important;
    max-width:220px !important;
    box-sizing:border-box !important;
    border-radius:12px !important;
    background:var(--rp-surface, #fff) !important;
    border:1px solid var(--rp-border, #e6e9ef) !important;
    box-shadow: 0 6px 18px rgba(12,24,48,0.04) !important;
    text-align:center !important;
  }

  /* Başlık (üstte): küçük, gri, tek satır */
  body.page-reports .summary-card .summary-left,
  body.page-reports .summary-card .summary-label,
  body.page-reports .top-summary .label {
    display:block !important;
    width:100% !important;
    color:var(--rp-muted, #6b7280) !important;
    font-weight:700 !important;
    font-size:0.90rem !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    line-height:1.1 !important;
  }

  /* Değer (altta): daha büyük, kalın, tabular-nums, ortalanmış */
  body.page-reports .summary-card .summary-value,
  body.page-reports .top-summary .value {
    display:block !important;
    width:100% !important;
    text-align:center !important;
    font-weight:900 !important;
    font-size:1.08rem !important;
    white-space:nowrap !important;
    font-variant-numeric: tabular-nums !important;
    letter-spacing:0.2px !important;
    color: #071033 !important;
  }

  /* Eğer değerler span ile sarılıysa kesin hedefleme */
  body.page-reports .summary-card .summary-value span,
  body.page-reports .top-summary .value span {
    display:inline-block !important;
    min-width:6ch !important;
    font-variant-numeric: tabular-nums !important;
  }

  /* Renk vurguları (öncelikli) */
  body.page-reports .summary-card .value-income { color:#16a34a !important; }
  body.page-reports .summary-card .value-expense { color:#ef4444 !important; }
  body.page-reports .summary-card .value-advance { color:#f59e0b !important; }
  body.page-reports .summary-card .net-positive { color:#065f46 !important; }
  body.page-reports .summary-card .net-negative { color:#7f1d1d !important; }

  /* İkon varsa: üstte küçük boşluk, ikon ortalanmış */
  body.page-reports .summary-card .icon {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    margin-bottom:6px !important;
    width:36px !important;
    height:36px !important;
    border-radius:8px !important;
  }

  /* Kartlar arasındaki görsel denge: aynı yükseklikte görünüm */
  body.page-reports .summary-cards .summary-card { min-height:72px !important; }

  /* Çok uzun başlıklarda kırılma yerine kısaltma; değer hep altında sabit kalsın */
  body.page-reports .summary-card .summary-left { overflow:hidden !important; text-overflow:ellipsis !important; }

  /* Eğer belirli kartları (ör. Net, Kasa) farklı boyut istiyorsanız sınıfla hedefleyin */
  body.page-reports .summary-card.summary-large,
  body.page-reports .summary-card.top-large { min-width:200px !important; max-width:260px !important; }

  /* Son öncelik: eğer başka stiller baskın ise bu bloğu dosyanın en sonuna koyun */
}

/*TABLO DEGISIKLIK*/

/* ---------------------------
  Dashboard & Transactions table styles
  - Paste this at the END of your main styles.css
  - Targets #recent-table and #txns-table specifically to avoid broad side-effects
  - Improves visuals, fixes tutar (amount) alignment, adds small icons, and enhances checkbox look
--------------------------- */

/* Theme variables (local to these table rules) */
:root{
  --tbl-bg: #ffffff;
  --tbl-surface: #fbfdff;
  --tbl-border: #e6e9ee;
  --tbl-head-start: #2b7cff; /* softer blue */
  --tbl-head-end: #0b5ed7;
  --tbl-head-color: #ffffff;
  --tbl-accent: #06b6d4;
  --tbl-success: #16a34a;
  --tbl-danger: #ef4444;
  --tbl-warning: #f59e0b;
  --tbl-text: #0b1220;
  --tbl-muted: #6b7280;
  --tbl-radius: 10px;
  --tbl-pad: 12px;
  --tbl-font: 14px;
}

/* Generic scroll wrapper used by both tables */
.table-scroll{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--tbl-radius);
  background: var(--tbl-surface);
  border: 1px solid var(--tbl-border);
  box-shadow: 0 1px 2px rgba(12,18,28,0.04);
}

/* Base responsive table (only used as a base; specific tweaks below target IDs) */
.responsive-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--tbl-text);
  table-layout: fixed;
  font-size: var(--tbl-font);
}

/* -------------------------
   RECENT TABLE (Dashboard) - ID specific
   - No checkbox column here (user requested removal)
   - Lighter header (not black), subtle colors, icons in payment column
------------------------- */
#recent-table{
  border-radius: var(--tbl-radius);
  overflow: hidden;
  background: transparent;
}

#recent-table thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, var(--tbl-head-start), var(--tbl-head-end));
  color: var(--tbl-head-color);
  font-weight: 600;
  text-align: left;
  padding: calc(var(--tbl-pad) - 2px);
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

#recent-table td{
  padding: 10px 12px;
  vertical-align: middle;
  border-bottom: 1px solid var(--tbl-border);
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Make description wrap and look neat */
#recent-table .t-title{ font-weight:600; margin-bottom:4px; color:var(--tbl-text); }
#recent-table .t-desc{ color:var(--tbl-muted); font-size:13px; margin-top:4px; }

/* Amount column alignment fix */
#recent-table thead th.text-right,
#recent-table td.text-right,
#recent-table th.col-amount,
#recent-table td.col-amount{
  text-align: right;
  padding-right: calc(var(--tbl-pad) + 6px);
  white-space: nowrap;
}

/* Small icon style used in payment column */
#recent-table .cell-icon{
  width:18px;height:18px;display:inline-block;vertical-align:middle;margin-right:8px;opacity:0.95;
}

/* Row zebra and hover */
#recent-table tbody tr:nth-child(even){ background: rgba(11,92,202,0.02); }
#recent-table tbody tr:hover{ background: rgba(11,92,202,0.04); }

/* Badges */
#recent-table .badge-plus{ background:var(--tbl-success); color:#fff; padding:6px 10px; border-radius:999px; font-weight:600; font-size:12px; display:inline-block; }
#recent-table .badge-minus{ background:var(--tbl-danger); color:#fff; padding:6px 10px; border-radius:999px; font-weight:600; font-size:12px; display:inline-block; }
#recent-table .badge-avans{ background:var(--tbl-warning); color:#fff; padding:6px 10px; border-radius:999px; font-weight:600; font-size:12px; display:inline-block; }

/* -------------------------
   TRANSACTIONS TABLE - ID specific
   - Checkbox column kept here; improved visual checkbox
   - Amount column width and alignment fixed
   - Small icons for payment method
------------------------- */
#txns-table{
  border-radius: var(--tbl-radius);
  overflow: hidden;
  background: transparent;
}

#txns-table thead th{
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(180deg, var(--tbl-head-start), var(--tbl-head-end));
  color: var(--tbl-head-color);
  font-weight: 600;
  text-align: left;
  padding: calc(var(--tbl-pad) - 2px);
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Make the first column (checkbox) a fixed width */
#txns-table thead th:first-child,
#txns-table tbody td:first-child{
  /*width: 56px;*/
  padding-left: 10px;
  padding-right: 6px;
  text-align: center;
}

/* Amount column: explicit width to avoid shifting */
#txns-table thead th.col-amount,
#txns-table td.col-amount,
#txns-table thead th.text-right,
#txns-table td.text-right{
  text-align: right;
  padding-right: calc(var(--tbl-pad) + 6px);
  white-space: nowrap;
}

/* Cells */
#txns-table td{
  padding: 10px 12px;
  vertical-align: middle;
  border-bottom: 1px solid var(--tbl-border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Checkbox visual improvements (scoped to transactions table) */
#txns-table .custom-checkbox{
  display:inline-flex; align-items:center; gap:8px; cursor:pointer; position:relative;
}
#txns-table .custom-checkbox input[type="checkbox"]{
  appearance:none; -webkit-appearance:none; width:18px; height:18px; border-radius:6px;
  border:1.5px solid #cbd5e1; background:#fff; display:inline-block; position:relative; vertical-align:middle;
  transition:all .12s ease-in-out;
}
#txns-table .custom-checkbox input[type="checkbox"]::after{
  content: ""; position:absolute; left:5px; top:3px; width:6px; height:10px; border:2px solid transparent; border-top:0; border-left:0; transform:rotate(45deg); opacity:0;
}
#txns-table .custom-checkbox input[type="checkbox"]:checked{
  background: linear-gradient(180deg,var(--tbl-head-start),var(--tbl-head-end));
  border-color: transparent;
  box-shadow: 0 2px 6px rgba(11,92,202,0.18);
}
#txns-table .custom-checkbox input[type="checkbox"]:checked::after{
  border-color: #fff; opacity:1;
}

/* Center checkbox vertically */
#txns-table td .custom-checkbox{ display:inline-flex; align-items:center; justify-content:center; height:100%; }

/* Small icons inside payment column */
#txns-table .cell-icon{
  width:18px;height:18px;display:inline-block;vertical-align:middle;margin-right:8px;opacity:0.95;
}

/* Action buttons */
#txns-table .btn.tiny{ padding:6px 8px; font-size:13px; border-radius:6px; }
#txns-table .btn.tiny.ghost{ background:transparent; border:1px solid rgba(11,17,28,0.06); color:var(--tbl-text); }

/* Zebra and hover */
#txns-table tbody tr:nth-child(even){ background: rgba(11,92,202,0.02); }
#txns-table tbody tr:hover{ background: rgba(11,92,202,0.04); }

/* Make description text wrap nicely in transactions table */
#txns-table .t-title{ font-weight:600; margin-bottom:4px; color:var(--tbl-text); }
#txns-table .t-desc{ color:var(--tbl-muted); font-size:13px; margin-top:4px; }

/* Accessibility focus */
#txns-table tbody tr:focus-within,
#txns-table tbody tr:focus{
  outline: 3px solid rgba(11,92,202,0.10);
  outline-offset: 2px;
}

/* -------------------------
   Responsive: stacked cards on small screens
   - Applies to both tables but scoped to their IDs via descendant selectors
------------------------- */
@media (max-width: 720px){
  .table-scroll{ border-radius: 0; border-left: none; border-right: none; }
  #recent-table, #txns-table{
    border: 0;
    min-width: 100%;
    display: block;
  }
  #recent-table thead, #txns-table thead{ display: none; }
  #recent-table tbody, #txns-table tbody{ display: block; }
  #recent-table tbody tr, #txns-table tbody tr{
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px;
    margin: 8px 6px;
    border-radius: 10px;
    background: var(--tbl-bg);
    box-shadow: 0 6px 18px rgba(8,12,20,0.04);
    border: 1px solid var(--tbl-border);
  }
  #recent-table tbody tr td, #txns-table tbody tr td{
    display:flex; justify-content:space-between; align-items:center; padding:6px 8px; border:0; white-space:normal; overflow:visible;
  }
  #recent-table tbody tr td::before, #txns-table tbody tr td::before{
    content: attr(data-label);
    font-weight: 600;
    color: #334155;
    margin-right: 12px;
    flex: 0 0 auto;
    font-size: 13px;
  }
  #recent-table tbody tr td .cell-value, #txns-table tbody tr td .cell-value{
    flex: 1 1 auto;
    text-align: right;
    color: var(--tbl-text);
    margin-left: 12px;
  }
}

/* Tiny screens: reduce padding */
@media (max-width: 420px){
  :root{ --tbl-pad: 10px; }
  #recent-table tbody tr, #txns-table tbody tr{ margin: 6px 4px; padding: 10px; }
}

/* Utility: small muted text */
.small-muted{ color:var(--tbl-muted); font-size:13px; display:block; margin-top:6px; }

/* ---------------------------
  Sadece tutar renkleri — ekle (styles.css sonu)
  Hedef: #recent-table ve #txns-table
--------------------------- */

/* Güvenli, izole sınıf seçicileri */
#recent-table td.col-amount .amount,
#txns-table td.col-amount .amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  min-width: 72px;
  text-align: right;
}

/* Pozitif (gelir) */
#recent-table td.col-amount .amount-plus,
#txns-table td.col-amount .amount-plus {
  color: #16a34a; /* yeşil */
  background: rgba(22,163,74,0.06);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Negatif (gider) */
#recent-table td.col-amount .amount-minus,
#txns-table td.col-amount .amount-minus {
  color: #ef4444; /* kırmızı */
  background: rgba(239,68,68,0.06);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Avans veya özel durum */
#recent-table td.col-amount .amount-avans,
#txns-table td.col-amount .amount-avans {
  color: #f59e0b; /* turuncu */
  background: rgba(245,158,11,0.06);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Nötr / diğer */
#recent-table td.col-amount .amount-neutral,
#txns-table td.col-amount .amount-neutral {
  color: #374151; /* koyu gri */
  background: rgba(55,65,81,0.03);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Küçük ekranlarda da düzgün görünmesi için */
@media (max-width:720px){
  #recent-table td.col-amount .amount,
  #txns-table td.col-amount .amount {
    min-width: 64px;
    padding-left: 4px;
    padding-right: 4px;
  }
}




/* Mobil: başlık solda, değer sağda (sadece stacked card görünüm için) */
@media (max-width: 720px) {
  /* Her tablo hücresi: label ve value ayrı kutular gibi davranacak */
  #recent-table tbody tr td,
  #txns-table tbody tr td {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-left: 8px !important;
    padding-right: 12px !important;
  }

  /* Pseudo-label (thead başlığı) sola hizalansın ve taşmasın */
  #recent-table tbody tr td::before,
  #txns-table tbody tr td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    min-width: 0;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    font-weight: 600;
    color: #334155;
    margin-right: 8px;
  }

  /* Tutar sütunları için: değer sağda sabit kalsın */
  #recent-table td.col-amount,
  #txns-table td.col-amount {
    /* yine flex; label sola, value sağa */
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-left: 8px !important;
    padding-right: 12px !important;
  }

  /* Değer kapsayıcısı (amount veya cell-value) sağa yaslansın */
  #recent-table td.col-amount .amount,
  #txns-table td.col-amount .amount,
  #recent-table td.col-amount .cell-value,
  #txns-table td.col-amount .cell-value {
    margin-left: auto;
    text-align: right;
    min-width: 64px;
    white-space: nowrap;
  }

  /* Diğer hücrelerdeki değerler de sağa yaslanacaksa bu sınıfı kullanın */
  #recent-table td .cell-value,
  #txns-table td .cell-value {
    /* normal hücrelerde label solda, value sağda */
    margin-left: auto;
    text-align: right;
  }
}
/*DASHBOARD GELIR GIDER KISMININ CSS SI*/

/* dashboard-panels-accents-2.css
   Şık, kurumsal ve mobil uyumlu GELİR / GİDER panel stilleri.
   Scoped under .dual-panels to avoid global side effects.
*/

/* Varsayılanlar (mevcut proje değişkenleri varsa üzerine yazmaz) */
.dual-panels {
  --panel-radius: 12px;
  --panel-padding: 14px;
  --panel-border: rgba(15,23,42,0.06);
  --shadow-1: 0 6px 18px rgba(2,6,23,0.04);
  --shadow-2: 0 12px 30px rgba(2,6,23,0.06);
  --text-strong: rgba(15,23,42,0.92);
  --muted: rgba(15,23,42,0.6);
}

/* Panel temel görünümü (mevcut styles.css ile uyumlu kalmak için minimal) */
.dual-panels .panel {
  position: relative;
  overflow: hidden;
  padding: var(--panel-padding);
  border-radius: var(--panel-radius);
  border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.96));
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* Hover lift (desktop) */
@media (hover: hover) and (pointer: fine) {
  .dual-panels .panel:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2);
  }
}

/* Header: title + meta */
.dual-panels .panel-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.dual-panels .panel-header h4 {
  margin:0;
  font-size:1.05rem;
  color:var(--text-strong);
  letter-spacing:0.2px;
}
.dual-panels .panel-header .panel-meta {
  font-weight:700;
  color:var(--muted);
  font-size:0.95rem;
  text-align:right;
  min-width:110px;
}

/* Decorative icon in header (SVG data-URI) */
.dual-panels .panel-header .panel-meta::before {
  content: "";
  display:inline-block;
  width:36px;
  height:36px;
  margin-bottom:4px;
  vertical-align:middle;
  border-radius:8px;
  background-position:center;
  background-repeat:no-repeat;
  background-size:18px 18px;
}

/* GELİR (green) header icon + subtle tint */
.dual-panels .panel-left {
  background: linear-gradient(180deg, rgba(245,255,250,0.95), rgba(240,255,245,0.85));
  border-color: rgba(16,185,129,0.08);
}
.dual-panels .panel-left .panel-header .panel-meta::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' fill='%2310b981'/><path d='M12 7v10M7 12h10' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/* GİDER (red) header icon + subtle tint */
.dual-panels .panel-right {
  background: linear-gradient(180deg, rgba(255,245,246,0.95), rgba(255,240,241,0.85));
  border-color: rgba(239,68,68,0.08);
}
.dual-panels .panel-right .panel-header .panel-meta::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' fill='%23ef4444'/><path d='M7 12h10' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/* Panel body lines */
.dual-panels .panel-body .line {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom: 1px dashed rgba(15,23,42,0.04);
}
.dual-panels .panel-body .line:last-child { border-bottom: none; }
.dual-panels .panel-body .line .left { display:flex; align-items:center; gap:10px; color:var(--text-strong); }
.dual-panels .panel-body .line .label { font-size:0.95rem; color:var(--muted); }
.dual-panels .panel-body .line .right { font-weight:700; color:var(--text-strong); }

/* Small inline SVG icon next to label (if pm_icon_svg outputs inline svg with class pm-icon) */
.dual-panels .panel-body svg.pm-icon { width:18px; height:18px; display:inline-block; vertical-align:middle; opacity:0.95; }

/* Footer: keep existing .btn styles but refine spacing and prominence */
.dual-panels .panel-footer {
  display:flex;
  gap:10px;
  align-items:center;
  padding-top:8px;
}

/* "Tüm ... gör" link: subtle, ghost style */
.dual-panels .panel-footer .btn.ghost.small {
  background: transparent;
  border: 1px solid rgba(15,23,42,0.04);
  color: rgba(15,23,42,0.75);
  padding:8px 10px;
  border-radius:8px;
}

/* Add button: prominent, colored, scoped so global .btn not overridden */
.dual-panels .panel-footer .btn.small:not(.ghost) {
  padding:8px 12px;
  border-radius:8px;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  gap:8px;
  box-shadow: 0 8px 20px rgba(2,6,23,0.06);
  border:0;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

/* GELİR add button (green) */
.dual-panels .panel-left .panel-footer .btn.small:not(.ghost) {
  background: linear-gradient(180deg,#10b981,#059669);
  color:#fff;
}
.dual-panels .panel-left .panel-footer .btn.small:not(.ghost):hover { transform: translateY(-2px); }

/* GİDER add button (red) */
.dual-panels .panel-right .panel-footer .btn.small:not(.ghost) {
  background: linear-gradient(180deg,#ef4444,#b91c1c);
  color:#fff;
}
.dual-panels .panel-right .panel-footer .btn.small:not(.ghost):hover { transform: translateY(-2px); }

/* Add button icon (using pseudo-element) */
.dual-panels .panel-footer .btn.small:not(.ghost)::before {
  content: "";
  display:inline-block;
  width:14px;
  height:14px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:14px 14px;
  opacity:0.98;
}

/* GELİR add icon (plus) */
.dual-panels .panel-left .panel-footer .btn.small:not(.ghost)::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 5v14M5 12h14' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/* GİDER add icon (minus) */
.dual-panels .panel-right .panel-footer .btn.small:not(.ghost)::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12h14' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/* Responsive: stack panels on small screens, keep buttons usable */
@media (max-width: 820px) {
  .dual-panels { flex-direction: column; gap:14px; }
  .dual-panels .panel { width:100%; }
  .dual-panels .panel-header { align-items:center; gap:8px; }
  .dual-panels .panel-header .panel-meta { text-align:left; min-width:0; }
  .dual-panels .panel-footer { justify-content:space-between; flex-wrap:wrap; gap:8px; }
}

/* Accessibility: focus states for keyboard users (scoped) */
.dual-panels .panel-footer .btn.small:focus {
  outline: 3px solid rgba(59,130,246,0.18);
  outline-offset: 2px;
}

/* Tiny polish: ensure panel meta numbers use tabular numbers */
.dual-panels .panel-meta { font-variant-numeric: tabular-nums; }

/* End of enhanced dashboard panel accents */

/* dashboard-panels-footer-sticky.css
   Sadece .dual-panels altındaki paneller için: footer (butonlar) her zaman kutucuğun
   alt kısmında sabit kalsın. Scoped ve minimal; mevcut global stilleri bozmaz.
*/

.dual-panels .panel {
  /* Paneli sütun düzenine çevir, içerik ve footer arasında esneklik sağla */
  display: flex;
  flex-direction: column;
  min-height: 160px; /* çok küçük panellerde footer'ın taşmaması için makul bir min-height */
  box-sizing: border-box;
}

/* Panel gövdesi (içerik) esnek olsun; footer alt kısımda sabit kalsın */
.dual-panels .panel .panel-body {
  flex: 1 1 auto;
  /* İçerik taşarsa kaydırma gösterilsin; mobilde taşmayı kontrol eder */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* Footer her zaman panelin altına yapışsın */
.dual-panels .panel .panel-footer {
  margin-top: 12px;
  flex-shrink: 0;
  /* Eğer footer içindeki butonlar satırlara sığmazsa alt alta geçebilsin */
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Küçük ekranlarda footer'ın düzeni korunur */
@media (max-width: 820px) {
  .dual-panels .panel {
    min-height: 0; /* mobilde çok yüksek min-height istemiyorsanız */
  }
  .dual-panels .panel .panel-body {
    max-height: none;
  }
  .dual-panels .panel .panel-footer {
    justify-content: space-between;
  }
}

/* Opsiyonel: panel içeriği çok kısa ise footer'ın panel alt kenarına daha yakın durması için */
.dual-panels .panel .panel-body:empty + .panel-footer {
  margin-top: auto;
}



/*DASHBOARD GELIR GIDER KISMININ CSS SI*/