/* Hızlı stok: sol kategori sütunu (akışta) + ana içerik */
.hs-stok-grup-split
{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.modul-hizli-stok-kategori-sidebar
{
  flex: 0 0 250px;
  width: 250px;
  max-width: 250px;
  min-width: 250px;
  align-self: flex-start;
  padding: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.hs-stok-grup-main-col
{
  flex: 1 1 auto;
  min-width: 0;
}

.hs-tablo-ust
{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px 0;
}

.hs-stok-grup-table
{
  width: max-content;
  min-width: 100%;
}

.hs-stok-grup-table thead th
{
  position: relative;
  vertical-align: middle !important;
  white-space: nowrap;
  padding: 8px 10px !important;
  box-sizing: border-box;
}

.hs-stok-grup-table td
{
  box-sizing: border-box;
  vertical-align: middle;
}

.hs-stok-grup-table td .form-control
{
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.hs-stok-grup-table [data-hs-col="tasima"]
{
  box-sizing: border-box;
  width: 52px;
  min-width: 36px;
  padding: 0 5px !important;
  text-align: left !important;
  white-space: nowrap;
}

.hs-stok-grup-table [data-hs-col="dosya"]
{
  box-sizing: border-box;
  width: 40px;
  min-width: 32px;
  padding: 0 4px !important;
  text-align: center !important;
  vertical-align: middle !important;
  line-height: 0;
}

.hs-dosya-hucre .hs-detay-btn,
.hs-dosya-link
{
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  margin: 0 auto;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: pointer;
}

.hs-dosya-kucuk
{
  width: 22px;
  height: 22px;
  max-width: 22px;
  max-height: 22px;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 2px;
  cursor: pointer;
}

.hs-stok-grup-table [data-hs-col="stok"]
{
  width: 280px;
  min-width: 80px;
}

.hs-stok-grup-table [data-hs-col="marka"],
.hs-stok-grup-table [data-hs-col="model"]
{
  width: 150px;
  min-width: 60px;
  text-align: center !important;
}

.hs-stok-grup-table [data-hs-col="birim"]
{
  width: 120px;
  min-width: 70px;
  text-align: center !important;
}

.hs-stok-grup-table [data-hs-col="marka"] input,
.hs-stok-grup-table [data-hs-col="model"] input,
.hs-stok-grup-table [data-hs-col="birim"] select
{
  text-align: center !important;
}

.hs-stok-grup-table [data-hs-col="menu"]
{
  width: 1px;
  white-space: nowrap;
  vertical-align: middle !important;
  padding: 2px 6px !important;
}

.hs-stok-grup-table thead th[data-hs-col^="fg-"],
.hs-stok-grup-table thead th[data-hs-col="vergi"],
.hs-stok-grup-table thead th[data-hs-col="islemler"]
{
  text-align: center !important;
}

.hs-kolon-tutamac
{
  position: absolute;
  top: 0;
  right: -3px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  z-index: 4;
  touch-action: none;
}

.hs-kolon-tutamac::after
{
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 3px;
  width: 2px;
  border-radius: 1px;
  background: #c5ced6;
}

.hs-kolon-tutamac:hover::after
{
  background: #217db9;
}

body.hs-kolon-surukleniyor,
body.hs-kolon-surukleniyor *
{
  cursor: col-resize !important;
  user-select: none !important;
}

.hs-menu-grup
{
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 3px;
}

.hs-menu-grup .hs-satir-menu
{
  height: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0 8px;
  line-height: 1;
  transform: none;
  box-shadow: none;
  animation: none;
  float: none;
}

.hs-menu-grup .hs-satir-menu:hover,
.hs-menu-grup .hs-satir-menu:active,
.hs-menu-grup .hs-satir-menu:focus
{
  transform: none;
  box-shadow: none;
}

.hs-menu-grup .hs-satir-menu.secili,
.hs-menu-grup .hs-satir-menu.secili:hover,
.hs-menu-grup .hs-satir-menu.secili:focus
{
  background: var(--color-action);
  border-color: var(--color-action);
  color: #fff;
  transform: none;
  box-shadow: none;
  animation: none;
}

.hs-satir-menu.hs-satir-menu-bekliyor
{
  opacity: 0.55;
  pointer-events: none;
}

.hs-tasima-satir
{
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3px;
  white-space: nowrap;
}

.hs-tasima-satir input
{
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px;
  margin: 0;
  flex: 0 0 16px;
}

.hs-sutun-sec,
.hs-islem-sec
{
  position: relative;
}

.hs-sutun-menu
{
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 40;
  min-width: 190px;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid #d5dde3;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.hs-sutun-sec.acik .hs-sutun-menu,
.hs-islem-sec.acik .hs-islem-menu
{
  display: block;
}

.hs-islem-menu
{
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 40;
  width: max-content;
  padding: 6px;
  background: #fff;
  border: 1px solid #d5dde3;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.hs-islem-satir
{
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 6px 8px;
  border: 0;
  background: #fff;
  text-align: left;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
}

.hs-islem-satir span
{
  white-space: nowrap;
}

.hs-islem-satir:hover
{
  background: #f4f6f8;
}

.hs-sutun-satir
{
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 6px;
  font-weight: 400;
  cursor: pointer;
}

.hs-stok-grup-table .hs-col-gizli
{
  display: none !important;
}

.hs-tasima-satir .hs-stok-drag-ikon,
.hs-tasima-satir .hs-detay-btn
{
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 13px;
}

.hs-stok-drag-ikon
{
  cursor: grab;
  color: #555;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.modul-hizli-stok-grup-btns
{
  display: flex;
  flex-direction: column;
  gap: 0;
}

.modul-hizli-stok-kategori-btns
{
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 4px 8px;
}

.modul-hizli-stok-kategori-sidebar .hs-grup-btn.hs-stok-tip-hide
{
  display: none !important;
}

.modul-hizli-stok-kategori-sidebar .hs-kat-acc.hs-kat-stok-tip-empty
{
  display: none !important;
}

.modul-hizli-stok-kategori-sidebar .hs-grup-btn
{
  text-align: left;
}

.modul-hizli-stok-grup-btns .hs-grup-btn,
.modul-hizli-stok-kategori-btns .hs-grup-btn
{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: flex-start;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.35;
  min-height: 38px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: #fff;
  color: #374151;
  box-shadow: none;
}

.modul-hizli-stok-grup-btns .hs-grup-btn:hover,
.modul-hizli-stok-kategori-btns .hs-grup-btn:hover
{
  background: #f9fafb;
  border-color: #e5e7eb;
}

.modul-hizli-stok-grup-btns .hs-grup-btn .ph,
.modul-hizli-stok-kategori-btns .hs-grup-btn .ph
{
  font-size: 18px;
  flex-shrink: 0;
  color: #9ca3af;
  line-height: 1;
}

.modul-hizli-stok-kategori-sidebar .hs-grup-btn .ph
{
  flex: 0 0 22px;
  width: 22px;
  min-width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.modul-hizli-stok-kategori-sidebar .hs-grup-btn .hs-grup-btn-text
{
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.modul-hizli-stok-grup-btns .hs-grup-btn .hs-grup-btn-text,
.modul-hizli-stok-kategori-btns .hs-grup-btn .hs-grup-btn-text
{
  text-transform: capitalize;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

.modul-hizli-stok-kategori-grup
{
  border-bottom: 1px solid #f3f4f6;
}

.modul-hizli-stok-kategori-grup:last-child
{
  border-bottom: none;
}

.modul-hizli-stok-kategori-baslik.hs-kat-acc-head
{
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px 8px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #000;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.modul-hizli-stok-kategori-baslik.hs-kat-acc-head:hover
{
  background: #f9fafb;
}

/* Yan menü: kapalı akordeon başlığı siyah (.btn vb. üstünü geçmek için !important) */
.modul-hizli-stok-kategori-sidebar .hs-kat-acc:not(.is-open) .modul-hizli-stok-kategori-baslik.hs-kat-acc-head
{
  color: #000 !important;
}

.modul-hizli-stok-kategori-sidebar .hs-kat-acc:not(.is-open) .modul-hizli-stok-kategori-baslik.hs-kat-acc-head:hover
{
  color: #000 !important;
}

/* Açık olan üst kategori = kullanıcının baktığı bölüm → kırmızı (has-active-sub şart değil) */
.modul-hizli-stok-kategori-sidebar .hs-kat-acc.is-open .modul-hizli-stok-kategori-baslik.hs-kat-acc-head
{
  color: #dc2626 !important;
}

.modul-hizli-stok-kategori-sidebar .hs-kat-acc.is-open .modul-hizli-stok-kategori-baslik.hs-kat-acc-head:hover
{
  color: #b91c1c !important;
}

.hs-kat-acc-title
{
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  color: inherit;
}

.hs-kat-acc-chevron
{
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  font-size: 14px;
  color: inherit;
  transition: transform 0.18s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.hs-kat-acc:not(.is-open) .hs-kat-acc-chevron
{
  transform: rotate(-90deg);
}

.hs-kat-acc:not(.is-open) .hs-kat-acc-body
{
  display: none;
}

.modul-hizli-stok-grup-icerikler .hs-grup-icerik-item
{
  display: none;
}

.modul-hizli-stok-grup-icerikler .hs-grup-icerik-item.is-active
{
  display: block;
}

.modul-hizli-stok-grup-baslik
{
  text-align: center;
  font-weight: 600;
  padding: 10px 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
}

.modul-hizli-stok-kategori-btns .hs-grup-btn.active,
.modul-hizli-stok-kategori-btns .hs-grup-btn.secili
{
  background: #f0f4fa;
  border-color: #c5d0e0;
  color: #1b2a49;
  font-weight: 600;
}

.modul-hizli-stok-kategori-btns .hs-grup-btn.active .ph,
.modul-hizli-stok-kategori-btns .hs-grup-btn.secili .ph
{
  color: #1b2a49;
}

.hs-grup-drag-handle
{
  cursor: grab;
  touch-action: none;
}

.hs-grup-drag-handle:active
{
  cursor: grabbing;
}

.hs-grup-drag-handle:hover
{
  color: #6b7280;
}

.hs-grup-drag-ghost
{
  opacity: 0.55;
  background: #f3f4f6;
  border: 1px dashed #c5d0e0;
}

.hs-grup-fav-btn
{
  flex: 0 0 24px;
  width: 24px;
  min-width: 24px;
  height: 24px;
  margin: 0 0 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  color: #d1d5db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.hs-grup-fav-btn:hover
{
  color: #ef4444;
}

.hs-grup-fav-btn.is-active
{
  color: #ef4444;
}

.hs-grup-fav-btn .ph
{
  font-size: 16px;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
}

.hs-fav-wrap
{
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.hs-fav-wrap.is-empty
{
  display: none;
}

.hs-fav-head
{
  padding: 8px 8px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ef4444;
}

.hs-fav-list
{
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 4px 4px;
}

.hs-fav-list .hs-grup-btn
{
  width: 100%;
}

@media (max-width: 767px)
{
  .hs-stok-grup-split
  {
    flex-direction: column;
    gap: 12px;
  }

  .modul-hizli-stok-kategori-sidebar
  {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: 1 1 auto;
  }
}
