/*
  modul-hesaplar.css
  Hesaplar modülü ve hesap hareketleri işlem sütunu stilleri
*/

/* İşlemler sütunu - tüm ikonlar aynı hizada */
.hh-islemler
{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
}

/* İşlem butonları - tüm ikonlar aynı boyut ve hizada */
.hh-islem-btn
{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  background-color: #ffffff !important;
  border-radius: 4px !important;
  text-decoration: none !important;
  color: #000000 !important;
  flex-shrink: 0 !important;
  border: none !important;
  cursor: pointer !important;
}

.hh-islem-btn.sepet
{
  background-color: #e78515 !important;
  color: #ffffff !important;
}

.hh-islem-btn.edit
{
  background-color: #007bff !important;
  color: #ffffff !important;
}

.hh-islem-btn.delete
{
  background-color: #dc3545 !important;
  color: #ffffff !important;
}

.hh-islem-btn.geri-al
{
  background-color: #ffc107 !important;
  color: #212529 !important;
}

.hh-islem-btn.masraf-sil-btn,
.hh-islem-btn.thi-sil-btn
{
  background-color: #dc3545 !important;
  color: #ffffff !important;
}

.hh-islem-btn.masraf-geri-al-btn,
.hh-islem-btn.thi-geri-al-btn
{
  background-color: #ffc107 !important;
  color: #212529 !important;
}

.hh-islem-btn.log
{
  background-color: #555 !important;
  color: #ffffff !important;
}

.hh-islem-btn.log.log-kaydi-var
{
  background-color: #fff !important;
  color: #dc3545 !important;
  border: 1px solid #dc3545 !important;
}

.hh-islem-btn:hover
{
  opacity: 0.9;
}

.hh-islem-btn.fatura
{
  background-color: #ffffff !important;
  color: #667085 !important;
  border: 1px solid #d0d5dd !important;
}

.hh-islem-btn.fatura.fatura-kesildi
{
  background-color: #198754 !important;
  color: #ffffff !important;
  border: none !important;
}

.hh-islem-btn.fatura:hover
{
  color: #667085 !important;
}

.hh-islem-btn.fatura.fatura-kesildi:hover
{
  color: #ffffff !important;
}

.hh-islem-btn:not(.log-kaydi-var):not(.geri-al):not(.masraf-geri-al-btn):not(.thi-geri-al-btn):not(.fatura):hover
{
  color: #ffffff !important;
}

.hh-islem-btn .ph
{
  font-size: 14px !important;
}

.hh-islem-btn .hh-log-icon
{
  font-size: 14px !important;
  margin: 0 !important;
}

/* Masraf ve toplu hesap işlemleri tablo */
.modul-masraf-tablo,
.modul-toplu-hesap-tablo
{
  font-size: 13px;
}

.modul-masraf-tablo th
{
  font-weight: 600;
  white-space: nowrap;
}

.modul-masraf-islemleri-wrap .card,
.modul-toplu-hesap-wrap .card
{
  border-radius: 8px;
}

.masraf-grafik-card
{
  border-radius: 8px;
  overflow: hidden;
}

.masraf-grafik-card-header
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.masraf-grafik-card-header h2
{
  flex: 1 1 auto;
  min-width: 0;
}

.masraf-grafik-detay-btn
{
  flex: 0 0 auto;
  white-space: nowrap;
}

.masraf-grafik-yil-filtre .masraf-grafik-yil-btn
{
  margin: 2px;
}

.masraf-grafik-yil-filtre .masraf-grafik-yil-btn.secili
{
  background-color: #2071ae;
  color: #fff;
  border-color: #2071ae;
}

.masraf-grafik-yil-filtre .masraf-grafik-yil-btn.secili:hover
{
  background-color: #185a8c;
  color: #fff;
  border-color: #185a8c;
}

.masraf-grafik-main-row
{
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.masraf-grafik-left
{
  flex: 1 1 auto;
  min-width: 0;
}

.masraf-grafik-main-row .masraf-grafik-canvas-scroll
{
  width: 100%;
}

.masraf-grafik-legend
{
  flex: 0 0 168px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
  gap: 10px;
  margin-top: 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-sizing: border-box;
}

.masraf-grafik-legend-item
{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.masraf-grafik-legend-swatch
{
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border-radius: 3px;
}

.masraf-grafik-legend-satis .masraf-grafik-legend-swatch
{
  background: #dc2626;
}

.masraf-grafik-legend-gelir .masraf-grafik-legend-swatch
{
  background: #16a34a;
}

.masraf-grafik-legend-gider .masraf-grafik-legend-swatch
{
  background: #9333ea;
}

.masraf-grafik-legend-abonelik .masraf-grafik-legend-swatch
{
  background: #eab308;
}

.masraf-grafik-legend-meta
{
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.masraf-grafik-legend-text
{
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
}

.masraf-grafik-legend-deger
{
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #1b2a49;
  line-height: 1.2;
  word-break: break-word;
}

.masraf-grafik-card.masraf-grafik-detay-gizli .masraf-grafik-legend-deger
{
  visibility: hidden;
}

.masraf-grafik-canvas-scroll
{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.masraf-grafik-canvas-box
{
  position: relative;
  width: 100%;
  height: 360px;
}

.masraf-grafik-canvas
{
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.masraf-ust-aksiyonlar .btn
{
  min-width: 220px;
}

@media (max-width: 991px)
{
  .masraf-grafik-main-row
  {
    flex-direction: column;
  }

  .masraf-grafik-legend
  {
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    order: -1;
  }

  .masraf-grafik-legend-item
  {
    flex: 1 1 140px;
  }

  .masraf-grafik-canvas-scroll .masraf-grafik-canvas-box
  {
    min-width: 640px;
    height: 360px;
  }
}

@media (max-width: 767px)
{
  .masraf-grafik-canvas-scroll .masraf-grafik-canvas-box
  {
    min-width: 560px;
    height: 340px;
  }

  .masraf-grafik-legend
  {
    gap: 8px;
    padding: 10px;
  }

  .masraf-grafik-legend-item
  {
    flex: 1 1 calc(50% - 8px);
    padding: 8px 10px;
  }

  .masraf-grafik-legend-text
  {
    font-size: 12px;
  }

  .masraf-grafik-legend-deger
  {
    font-size: 14px;
  }
}

.modul-masraf-islemleri-wrap .tab-dikey-wrap
{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.modul-masraf-islemleri-wrap .tab-dikey-nav-col
{
  flex: 0 0 220px;
  width: 220px;
  max-width: 220px;
  min-width: 220px;
}

.modul-masraf-islemleri-wrap .tab-dikey-content-col
{
  flex: 1 1 auto;
  min-width: 0;
}

.modul-masraf-islemleri-wrap .tab-dikey-nav-wrapper
{
  overflow: visible;
}

.modul-masraf-islemleri-wrap .tab-dikey-nav
{
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  float: none;
  width: 100%;
  min-width: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.modul-masraf-islemleri-wrap .tab-dikey-nav > li
{
  float: none;
  display: block;
  width: 100%;
  margin: 0 0 6px 0;
}

.modul-masraf-islemleri-wrap .tab-dikey-nav > li > a
{
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 12px 14px;
  text-align: left;
  white-space: normal;
  border: 1px solid #ddd;
  border-radius: 6px !important;
  background-color: #cfcfcf !important;
  color: #333 !important;
}

.modul-masraf-islemleri-wrap .tab-dikey-nav > li > a:hover,
.modul-masraf-islemleri-wrap .tab-dikey-nav > li > a:focus
{
  background-color: #e5e7eb !important;
  color: #111 !important;
}

.modul-masraf-islemleri-wrap .tab-dikey-nav > li.active > a,
.modul-masraf-islemleri-wrap .tab-dikey-nav > li.active > a:hover,
.modul-masraf-islemleri-wrap .tab-dikey-nav > li.active > a:focus
{
  background-color: #2071ae !important;
  color: #fff !important;
  border-color: #2071ae;
  margin-bottom: 0;
}

.modul-masraf-islemleri-wrap .tab-dikey-content-col .tab-pane
{
  min-height: 350px;
}

@media (max-width: 991px)
{
  .modul-masraf-islemleri-wrap .tab-dikey-wrap
  {
    flex-direction: column;
    gap: 12px;
  }

  .modul-masraf-islemleri-wrap .tab-dikey-nav-col
  {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .modul-masraf-islemleri-wrap .tab-dikey-nav
  {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .modul-masraf-islemleri-wrap .tab-dikey-nav > li
  {
    flex: 1 1 auto;
    width: auto;
    margin: 0;
    min-width: 140px;
  }
}

.masraf-hizli-filtre .masraf-yil-btn,
.masraf-hizli-filtre .masraf-ay-btn,
.thi-hizli-filtre .thi-yil-btn,
.thi-hizli-filtre .thi-ay-btn
{
  margin: 2px;
}

.thi-hizli-filtre .thi-ay-tum-btn
{
  font-weight: 600;
}

.masraf-hizli-filtre .masraf-yil-btn.secili,
.masraf-hizli-filtre .masraf-ay-btn.secili,
.thi-hizli-filtre .thi-yil-btn.secili,
.thi-hizli-filtre .thi-ay-btn.secili
{
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

.masraf-hizli-filtre .masraf-yil-btn.secili:hover,
.masraf-hizli-filtre .masraf-ay-btn.secili:hover,
.thi-hizli-filtre .thi-yil-btn.secili:hover,
.thi-hizli-filtre .thi-ay-btn.secili:hover
{
  background-color: #0056b3;
  color: #fff;
  border-color: #0056b3;
}

.masraf-odeme-onoff,
.masraf-masraf-onoff
{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.masraf-odeme-onoff .onoff-option,
.masraf-masraf-onoff .onoff-option
{
  padding: 0px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  border: 1px solid #ccc;
  background: #fff;
  min-height: 25px;
}

.masraf-odeme-onoff .onoff-option:hover,
.masraf-masraf-onoff .onoff-option:hover
{
  background: #f0f0f0;
}

.masraf-odeme-onoff .onoff-option.secili,
.masraf-masraf-onoff .onoff-option.secili
{
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

/* Log ikonu sağ üstünde adet badge */
.hh-islem-btn.log
{
  position: relative !important;
}

.hh-log-badge
{
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  min-width: 14px !important;
  height: 14px !important;
  padding: 0 4px !important;
  font-size: 10px !important;
  font-weight: bold !important;
  line-height: 14px !important;
  text-align: center !important;
  background-color: #dc3545 !important;
  color: #ffffff !important;
  border-radius: 7px !important;
  border: 1px solid #fff !important;
}

.iyzi-modal-content:has(.hh-detay-wrap)
{
  width: 1000px !important;
  max-width: min(1000px, calc(100vw - 32px)) !important;
}

.hh-detay-wrap
{
  padding: 4px 2px 12px 2px;
  --hh-detay-yazi: 12px;
}

.hh-detay-toolbar
{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.hh-detay-toolbar .hh-detay-q
{
  flex: 1 1 220px;
  min-width: 160px;
}

.hh-detay-toolbar .hh-detay-tarih
{
  flex: 0 1 160px;
  min-width: 140px;
}

.hh-detay-silinen-label
{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: normal;
  cursor: pointer;
  white-space: nowrap;
}

.hh-detay-yenile
{
  white-space: nowrap;
  margin-left: auto;
}

.hh-detay-font-grup
{
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.hh-detay-font-btn
{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  min-width: 32px;
  min-height: 24px;
  padding: 0 8px;
  line-height: 1;
  font-size: 13px;
  font-weight: 700;
}

.hh-detay-font-btn:disabled
{
  opacity: 0.45;
}

.hh-detay-ozet
{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.hh-detay-ozet-kutu
{
  background: #f7f7f9;
  border-radius: 4px;
  padding: 6px 10px;
}

.hh-detay-ozet-etiket
{
  color: #666;
  margin-right: 4px;
}

.hh-detay-tablo-wrap
{
  overflow: auto;
  max-height: 70vh;
}

.hh-detay-tablo
{
  width: 100%;
  margin-bottom: 0;
  table-layout: fixed;
  font-size: 12px;
}

.hh-detay-tablo.table > thead > tr > th,
.hh-detay-tablo.table > tbody > tr > td
{
  padding: 4px;
  vertical-align: middle !important;
  line-height: calc(var(--hh-detay-yazi, 12px) + 10px);
  font-size: var(--hh-detay-yazi, 12px) !important;
}

.hh-detay-tablo thead th
{
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7f7f9;
  white-space: nowrap;
}

.hh-detay-th-tarih
{
  width: 88px;
}

.hh-detay-td-tarih
{
  white-space: nowrap;
}

.hh-detay-th-hesap
{
  width: 22%;
}

.hh-detay-th-aciklama
{
  width: 28%;
}

.hh-detay-td-metin
{
  max-width: 0;
}

.hh-detay-hucre-metin,
.hh-detay-hucre-link
{
  display: block;
  max-width: 100%;
  height: calc(var(--hh-detay-yazi, 12px) + 10px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: calc(var(--hh-detay-yazi, 12px) + 10px);
}

.hh-detay-tablo .hh-detay-hucre-link,
.hh-detay-tablo .hh-detay-hucre-metin
{
  font-size: inherit !important;
}

.hh-detay-hucre-bos
{
  color: #999;
}

.hh-detay-th-tutar
{
  width: 96px;
  text-align: right;
}

.hh-detay-th-islem
{
  width: 132px;
  text-align: right;
}

.hh-detay-tablo .hh-islemler
{
  align-items: center;
  vertical-align: middle;
}

.hh-detay-tablo .hh-islem-btn
{
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
}

.hh-detay-tablo .hh-islem-btn .ph
{
  font-size: 13px !important;
}

.hh-detay-sayfalama
{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.hh-detay-sayfalama .pagination
{
  margin: 0;
}

.hh-detay-sayfalama-bilgi
{
  color: #666;
  font-size: 12px;
}

.hh-detay-tutar
{
  font-weight: bold;
  white-space: nowrap;
}

.hh-detay-bakiye-arti
{
  color: #1e7e34;
}

.hh-detay-bakiye-eksi
{
  color: #dc3545;
}

.hh-detay-tablo tr.silindi td
{
  text-decoration: line-through;
  opacity: 0.6;
  background: #ffeaea;
}

.hh-detay-tablo tr.hh-detay-toplam td,
.hh-detay-tablo tr.hh-detay-devir td
{
  background: #f7f7f9;
  font-weight: bold;
}

.hh-detay-bos
{
  padding: 16px 8px;
}

.hh-detay-islem
{
  white-space: nowrap;
}

.hh-islemler form.hh-detay-sil-form
{
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.hh-detay-edit
{
  padding: 10px;
}

.hh-detay-log
{
  padding: 8px 4px;
}

.hh-detay-log-item
{
  border-bottom: 1px solid #eee;
  padding: 8px 4px;
}

.hh-detay-log-item:last-child
{
  border-bottom: none;
}

.hh-detay-log-ust
{
  font-weight: bold;
}

.hh-detay-log-tarih
{
  font-weight: normal;
  color: #666;
  margin-left: 6px;
}

.hh-detay-log-islem,
.hh-detay-log-deg
{
  margin-top: 4px;
}
