/* ChatJGT ekran katmani 4 - Temsilci konsolu (Comm100 Agent Console olculeri)
   Referans: log/ekran/birebir/ac__*-ref.png (1500x950). Butun kurallar
   .konsolkabuk kapsaminda; yonetim paneli etkilenmez. */

/* --- ust cubuk: durum dugmesi + avatar ----------------------------------- */
.konsolust .ksag {
  gap: 20px;
}
.konsolust .kdurum {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 16px 0 12px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #000;
  font-family: var(--yz);
  font-size: var(--yz-14);
  font-weight: 400;
  letter-spacing: 0;
  box-shadow: none !important;
}
.konsolust .kdurum:hover {
  background: #e0e0e0;
}
.konsolust .kdikon {
  position: relative;
  display: inline-flex;
  color: #595959;
}
.konsolust .kdikon svg.ikon {
  width: 22px;
  height: 22px;
}
.konsolust .kdikon .knokta {
  position: absolute;
  right: -3px;
  bottom: -2px;
  border: 1.5px solid #fff;
}
.knokta {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bdbdbd;
  flex-shrink: 0;
}
.knokta.yesil {
  background: #1fa31f;
}
.knokta.turuncu {
  background: #f5a35c;
}
.knokta.kirmizi {
  background: #e53935;
}
.kdurummenu {
  width: 256px;
  padding: 8px;
  transform-origin: right top;
}
.kdurummenu .kdbaslik {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 8px;
  font-size: 15px;
  color: #262626;
  margin-bottom: 6px;
}
.kdurummenu .kdbaslik svg.ikon {
  width: 18px;
  height: 18px;
  color: #595959;
}
.kdurummenu .kdoge {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 2px;
  background: none;
  color: #595959;
  font-family: var(--yz);
  font-size: var(--yz-13);
  font-weight: 400;
  box-shadow: none !important;
  justify-content: flex-start;
}
.kdurummenu .kdoge.on {
  background: #f0f0f0;
  color: #262626;
  font-family: var(--yz-orta);
}
.kdurummenu .kdoge:hover {
  background: #f5f5f5;
}
.kdurummenu .kdoge svg.ikon {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: #262626;
}

/* --- ray: sohbet rozeti -------------------------------------------------- */
.konsolray .kray .krozet {
  position: absolute;
  top: 8px;
  left: 33px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #c00;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

/* --- govde: iki gorunum -------------------------------------------------- */
.konsolkabuk .main > .konsol {
  display: block;
  height: calc(100vh - 48px);
  padding: 0;
  gap: 0;
  background: #f0f0f0;
}
.konsol .kziyaretci,
.konsol .ksohbet {
  height: 100%;
}
.konsol.kgorunum-ziyaretci .ksohbet,
.konsol.kgorunum-sohbet .kziyaretci {
  display: none;
}
.konsol .ksohbet {
  display: flex;
  position: relative;
}
.konsol .kziyaretci {
  display: flex;
  flex-direction: column;
  background: #fff;
  position: relative;
}

/* --- Ziyaretciler gorunumu ----------------------------------------------- */
.kziyaretci .zbaslik {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 57px;
  padding: 0 14px 0 18px;
  background: #f0f0f0;
  flex-shrink: 0;
}
.kziyaretci .zbaslik h2 {
  margin: 0 2px 0 0;
  font-size: 18px;
  font-weight: 500;
  color: #000;
}
.kziyaretci .zsayac {
  font-size: 15px;
  color: #595959;
}
.kziyaretci .zsayac b {
  color: #0733e2;
  font-weight: 500;
  margin-right: 6px;
}
.kziyaretci .sp {
  flex: 1;
}
.kziyaretci .zsekmeler {
  display: flex;
  gap: 0;
  padding: 3px;
  background: #e6e6e6;
  border-radius: 4px;
}
.kziyaretci .zsekme {
  height: 26px;
  padding: 0 17px;
  border: 0;
  border-radius: 3px;
  background: none;
  color: #8c8c8c;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  box-shadow: none !important;
  gap: 6px;
}
.kziyaretci .zsekme.on {
  background: #fff;
  color: #0733e2;
}
.kziyaretci .zsekme svg.ikon {
  width: 14px;
  height: 14px;
}
.kziyaretci .kikon {
  display: inline-flex;
  color: #595959;
}
.kziyaretci .kikon svg.ikon {
  width: 16px;
  height: 16px;
}
.kziyaretci .zicerik {
  flex: 1;
  overflow: auto;
}
.ztablo {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.ztablo thead th {
  height: 43px;
  padding: 0 8px;
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  color: #262626;
  font-family: var(--yz);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
}
.ztablo td {
  height: 51px;
  padding: 0 8px;
  border-bottom: 0;
  color: #262626;
  white-space: nowrap;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ztablo th.zdurum,
.ztablo td.zdurum {
  width: 54px;
  padding-left: 18px;
  color: #595959;
}
.ztablo tbody tr:hover {
  background: #fafafa;
}
.ztablo tr.ztalep,
.ztablo tr.ztalep:hover {
  background: #fff1d4;
}
.zhalka {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 5px solid #595959;
  background: #fff;
}
.zhalka.sohbette {
  border-color: #0733e2;
}
.zhalka.bekliyor {
  border: 0;
  background: #1f9d1f;
}
.ztablo .zad {
  color: #262626;
}
.ztablo a.zad:hover {
  text-decoration: underline;
}
.ztablo .zbag {
  color: #262626;
  text-decoration: underline;
}
.zislem {
  display: flex;
  align-items: center;
  gap: 8px;
}
.zislem button,
.zislem a.dugme {
  height: 26px;
  min-width: 64px;
  padding: 0 14px;
  font-size: 13px;
  line-height: 24px;
  border-radius: 2px;
  box-shadow: none !important;
}
.zislem .zdavet {
  background: #0733e2;
  color: #fff;
  border: 0;
}
.zislem .zkabul {
  background: #1f9d1f;
  color: #fff;
  border: 0;
  gap: 4px;
}
.zislem .zkabul svg.ikon {
  width: 14px;
  height: 14px;
}
.zislem .zbtn {
  background: #fff;
  color: #595959;
  border: 1px solid #d9d9d9;
}

/* bos durum (kaktus) */
.konsol .kbos {
  position: absolute;
  inset: 57px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: #f0f0f0;
  color: #000;
}
.konsol .ksohbet .kbos {
  inset: 0;
}
.konsol .kbos .kaktus {
  width: 190px;
  height: 150px;
  color: #bfbfbf;
  margin-top: 8px;
}
.konsol .kbos .kbosbaslik {
  margin-top: 26px;
  font-size: 19px;
  font-weight: 500;
  color: #000;
}
.konsol .kbos .kbosalt {
  margin-top: 18px;
  font-size: 14px;
  color: #595959;
}
.konsol .kbos .kbosalt a {
  color: #0733e2;
  font-family: var(--yz-orta);
}
.konsol .kbos .kbosdugme {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.konsol .kbos .kbosdugme .dugme {
  height: 32px;
  padding: 0 16px;
  border-radius: 2px;
  font-size: 15px;
  box-shadow: none !important;
}
.konsol .kbos .kbosdugme .kbirincil {
  background: #0733e2;
  color: #fff;
}
.konsol .kbos .kbosdugme .ikincil {
  background: #f5f5f5;
  color: #595959;
  border: 1px solid #d9d9d9;
}

/* --- Sohbetler gorunumu: sol liste --------------------------------------- */
.konsol .kolon {
  border-radius: 0;
  box-shadow: none;
}
.konsol .kolon.sol {
  width: 231px;
  background: #fff;
}
.konsol .kolon.sol .kbaslik {
  display: flex;
  align-items: center;
  height: 57px;
  padding: 0 8px 0 13px;
  flex-shrink: 0;
}
.konsol .kolon.sol .kbaslik h2 {
  flex: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: #000;
}
.konsol .kikon,
.konsol button.kikon {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: #595959;
  box-shadow: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.konsol .kikon svg.ikon {
  width: 18px;
  height: 18px;
}
.konsol .kolon.sol .grupbaslik {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 14px 0 13px;
  background: #f5f5f5;
  color: #595959;
  font-size: 14px;
  cursor: pointer;
}
.konsol .kolon.sol .grupbaslik b {
  color: #262626;
  font-weight: 500;
}
.konsol .kolon.sol .grupbaslik .sp {
  flex: 1;
}
.konsol .kolon.sol .grupbaslik svg.ikon {
  width: 18px;
  height: 18px;
  transition: transform 195ms var(--ez);
}
.konsol .kolon.sol .grupbaslik.kapali svg.ikon {
  transform: rotate(180deg);
}
.konsol .kgrup.kapali {
  display: none;
}
.konsol .oge {
  padding: 18px 6px 18px 16px;
  border: 0;
  border-left: 0;
  background: #fff;
}
.konsol .oge:hover {
  background: #fafafa;
}
.konsol .oge.on {
  background: #f0f0f0;
}
.konsol .oge .ust {
  gap: 9px;
}
.konsol .oge .khalka {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3.5px solid #0733e2;
  flex-shrink: 0;
}
.konsol .oge.bekleyen .khalka {
  border-color: #1f9d1f;
}
.konsol .oge.bitti .khalka,
.konsol .oge.diger .khalka {
  border-color: #8c8c8c;
}
.konsol .oge .ad {
  font-weight: 400;
  font-size: 15px;
  color: #000;
}
.konsol .oge .ksure {
  font-size: 13px;
  color: #262626;
  flex-shrink: 0;
}
.konsol .oge .alt {
  padding-left: 25px;
  font-size: 12px;
  color: #8c8c8c;
}
.konsol .klistebos {
  padding: 24px 16px;
  color: #8c8c8c;
  font-size: 13px;
  text-align: center;
}

/* --- orta: konusma ------------------------------------------------------- */
.konsol .kolon.orta {
  background: #f0f0f0;
  padding: 0 16px;
}
.konsol .kortabaslik {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 57px;
  border-bottom: 1px solid #dcdcdc;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.konsol .kharf {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #cfe3ff;
  color: #262626;
  font-family: var(--yz-orta);
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.konsol .kharf.kucuk {
  width: 24px;
  height: 24px;
  font-size: 13px;
}
.konsol .kortabaslik .kad {
  font-family: var(--yz-orta);
  font-size: 15px;
  color: #000;
  margin-left: 2px;
}
.konsol .durumcubugu {
  flex: 1;
  height: auto;
  min-height: 57px;
  padding: 0;
  border-bottom: 0;
  flex-wrap: wrap;
  gap: 8px;
  color: #595959;
}
.konsol .durumcubugu .kdurumsec {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.konsol .durumcubugu .kchip {
  font-size: 12px;
  color: #8c8c8c;
  margin-left: 4px;
}
.konsol .durumcubugu button {
  height: 26px;
  padding: 0 12px;
  border-radius: 2px;
  font-size: 13px;
  line-height: 24px;
  box-shadow: none !important;
  gap: 4px;
}
.konsol .durumcubugu button.ikincil {
  background: #fff;
  color: #595959;
  border: 1px solid #c4c4c4;
}
.konsol .durumcubugu button.ikincil:hover {
  border-color: #0733e2;
  color: #0733e2;
}
.konsol .durumcubugu button.kkabul {
  background: #1f9d1f;
  color: #fff;
}
.konsol .durumcubugu button svg.ikon {
  width: 15px;
  height: 15px;
}
.konsol .akis {
  padding: 16px 0;
  gap: 4px;
}
.konsol .kmsj {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}
.konsol .kmsj.agent,
.konsol .kmsj.fisilti {
  align-items: flex-end;
}
.konsol .kmsj.visitor {
  align-items: flex-start;
}
.konsol .kmsj.sistem {
  align-items: center;
  margin-top: 6px;
}
.konsol .kmeta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #595959;
  margin-bottom: 6px;
}
.konsol .kmeta b {
  font-weight: 500;
  color: #262626;
}
.konsol .kmsj.visitor .kmeta b {
  font-weight: 400;
  color: #595959;
}
.konsol .kmsj.visitor .kmeta {
  margin-bottom: 4px;
}
.konsol .kmeta .knotet {
  color: #c77700;
}
.konsol .kbalonsatir {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 80%;
}
.konsol .kmsj.visitor .kbalonsatir {
  margin-left: 31px;
}
.konsol .kokunmadi {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0733e2;
  flex-shrink: 0;
}
.konsol .balon {
  max-width: 100%;
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 15px;
  line-height: 20px;
  box-shadow: none;
  color: #000;
}
.konsol .balon.visitor {
  background: #fff;
  border: 0;
}
.konsol .balon.agent {
  background: #dfe3f6;
  color: #000;
  border: 1px solid #c9d1f0;
}
.konsol .balon.fisilti {
  background: #fff6dd;
  color: #000;
  border: 1px dashed #e0c27d;
}
.konsol .balon.sistem {
  padding: 2px 0;
  font-size: 13px;
  color: #595959;
  background: none;
  border: 0;
}
.konsol .balon .meta {
  font-size: 11px;
  color: #8c8c8c;
  opacity: 1;
  margin-top: 0;
}
.konsol .balon .meta:empty {
  display: none;
}

/* yazar: Yanit / Not sekmeleri + metin + arac satiri */
.konsol .yazar {
  display: block;
  padding: 0 0 8px;
  border-top: 0;
  flex-shrink: 0;
}
.konsol .yazar .ksekmeler {
  display: flex;
  gap: 2px;
}
.konsol .yazar .ksekme {
  height: 28px;
  min-width: 65px;
  padding: 0 16px;
  border: 0;
  border-radius: 2px 2px 0 0;
  background: #e8e8e8;
  color: #8c8c8c;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none !important;
}
.konsol .yazar .ksekme.on {
  background: #fff;
  color: #262626;
}
.konsol .yazar textarea {
  display: block;
  width: 100%;
  height: 58px;
  min-height: 58px;
  max-height: 140px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid #0733e2;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  font-size: 15px;
  resize: vertical;
}
.konsol .yazar.notkip textarea {
  background: #fff6dd;
}
.konsol .yazar .karacsatir {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding-top: 6px;
}
.konsol .yazar .karacsatir .sp {
  flex: 1;
}
.konsol .yazar .karac,
.konsol .yazar .kgondermod {
  width: 30px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  color: #595959;
  box-shadow: none !important;
}
.konsol .yazar .karac svg.ikon {
  width: 20px;
  height: 20px;
}
.konsol .yazar .gonderbtn {
  width: 30px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  color: #0733e2;
  box-shadow: none !important;
}
.konsol .yazar .gonderbtn svg.ikon {
  width: 22px;
  height: 22px;
}
.konsol .yazar .kgondermod svg.ikon {
  width: 16px;
  height: 16px;
}
.konsol .emojikutu {
  left: 0;
  bottom: 40px;
  width: 320px;
  padding: 12px;
  border-radius: 4px;
}
.konsol .hazirkutu {
  left: 0;
  right: auto;
  width: 420px;
  bottom: 40px;
  border-radius: 4px;
}
.kmenu {
  min-width: 188px;
  padding: 4px 0;
  border-radius: 2px;
  transform-origin: right bottom;
}
.kmenu .kmoge {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: none;
  color: #595959;
  font-family: var(--yz);
  font-size: 13px;
  font-weight: 400;
  box-shadow: none !important;
  justify-content: flex-start;
}
.kmenu .kmoge.on {
  background: #f0f5ff;
  color: #262626;
  font-family: var(--yz-orta);
}
.kmenu .kmoge.baslik {
  color: #595959;
  border-top: 1px solid #f0f0f0;
}
.kmenu .kmoge.alt {
  padding-left: 32px;
}
.kmenu .kmoge svg.ikon {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: #0733e2;
}
.konsol .yaziyor {
  padding: 0 0 4px;
  font-size: 12px;
}
.konsol .wrapup {
  border-top: 1px solid #dcdcdc;
  background: #fff;
  padding: 12px 16px;
  margin-bottom: 8px;
}

/* --- sag bilgi paneli ---------------------------------------------------- */
.konsol .kolon.sag {
  width: 310px;
  background: #fff;
  border-left: 1px solid #f0f0f0;
}
.konsol .kziyaretci .kolon.sag.zdetay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.08);
  z-index: 4;
}
.konsol .ksagbaslik {
  display: flex;
  align-items: center;
  height: 57px;
  padding: 0 4px 0 18px;
  flex-shrink: 0;
}
.konsol .ksagsekme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--yz-orta);
  font-size: 14px;
  color: #262626;
}
.konsol .ksagsekme svg.ikon {
  width: 18px;
  height: 18px;
  color: #0733e2;
}
.konsol .ksagbaslik .sp {
  flex: 1;
}
.konsol .ksagbaslik .kikon {
  width: 48px;
}
.konsol .ksagbaslik .kikon svg.ikon {
  width: 20px;
  height: 20px;
}
.konsol .ksagbaslik .kkapat {
  display: none;
}
.konsol .kolon.sag.zdetay .ksagbaslik .kkapat {
  display: inline-flex;
}
.konsol .kolon.sag .bilgi {
  padding: 0 16px 16px;
}
.konsol .kkart {
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.konsol .kkart .kbad {
  font-family: var(--yz-orta);
  font-size: 20px;
  color: #000;
  margin: 6px 0 10px;
}
.konsol .kkart .kayrac {
  height: 1px;
  background: #f0f0f0;
  margin: 10px 0;
}
.konsol .ksatir {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  color: #595959;
  line-height: 20px;
  margin: 8px 0;
}
.konsol .ksatir svg.ikon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}
.konsol .kmavi {
  color: #0733e2;
}
.konsol .kbolum {
  border-bottom: 1px solid #f0f0f0;
}
.konsol .kbolumbas {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  padding: 0 2px;
  border: 0;
  background: none;
  color: #262626;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none !important;
}
.konsol .kbolumbas .sp {
  flex: 1;
}
.konsol .kbolumbas svg.ikon {
  width: 18px;
  height: 18px;
  color: #595959;
}
.konsol .kbolumbas.kapali svg.ikon:last-child {
  transform: rotate(180deg);
}
.konsol .kbolumgovde {
  padding-bottom: 12px;
}
.konsol .kbolumbos {
  color: #8c8c8c;
  font-size: 13px;
  text-align: center;
  padding: 4px 0 8px;
}
.konsol .bilgi dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 6px 10px;
  margin: 0;
  font-size: 14px;
}
.konsol .bilgi dt {
  margin: 0;
  color: #8c8c8c;
  font-size: 13px;
}
.konsol .bilgi dd {
  margin: 0;
  color: #262626;
  word-break: break-all;
}

/* --- pencereler: devir, davet, ayrilma onayi (Comm100 ortali kutu) ------- */
.perde:has(.kdevir) .modal,
.perde:has(.kdavetmetni) .modal,
.perde:has(.kevet) .modal {
  border-radius: 2px;
}
.perde:has(.kevet) .modal,
.perde:has(.kdavetmetni) .modal {
  width: 400px;
}
.perde:has(.kdevir) .modal {
  width: 600px;
}
.perde:has(.kdevir) .mbaslik,
.perde:has(.kdavetmetni) .mbaslik,
.perde:has(.kevet) .mbaslik {
  justify-content: center;
  font-size: 18px;
  padding: 18px 24px 10px;
}
.perde:has(.kdevir) .mdip,
.perde:has(.kdavetmetni) .mdip,
.perde:has(.kevet) .mdip {
  background: #f0f0f0;
  padding: 8px 24px;
  gap: 12px;
}
.perde:has(.kdevir) .mdip button,
.perde:has(.kdavetmetni) .mdip button,
.perde:has(.kevet) .mdip button {
  height: 32px;
  min-width: 64px;
  border-radius: 2px;
  box-shadow: none !important;
}
.perde:has(.kdavetmetni) .mdip .kdavettamam,
.perde:has(.kdevir) .mdip .kdevirtamam {
  background: #0733e2;
}
.perde:has(.kevet) .mdip .kevet {
  background: #c00;
  color: #fff;
  border: 0;
}
.perde .mdip button.ikincil {
  background: #fff;
}
.kdavetmetni {
  width: 100%;
  min-height: 88px;
  margin: 8px 0 14px;
  font-size: 15px;
}
.kdevir .kdsekmeler {
  display: flex;
  margin: 4px 0 8px;
}
.kdevir .kdsekme {
  flex: 1;
  height: 36px;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  background: #fff;
  color: #595959;
  font-size: 15px;
  box-shadow: none !important;
}
.kdevir .kdsekme.on {
  border-color: #0733e2;
  color: #0733e2;
}
.kdevir .kdliste {
  min-height: 250px;
  max-height: 300px;
  overflow: auto;
}
.kdevir .kdoge2 {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  color: #262626;
}
.kdevir .kdoge2.on {
  background: #f0f5ff;
}
.kdevir .kdnot {
  width: 100%;
  min-height: 56px;
  margin: 10px 0 12px;
}

/* --- 3. tur: sohbet basligi ikon islemleri ------------------------------- */
.konsol .durumcubugu {
  justify-content: flex-end;
  gap: 6px;
}
.konsol .durumcubugu > .sp {
  flex: 1;
}
.konsol .durumcubugu button.kikonbtn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #262626;
  justify-content: center;
}
.konsol .durumcubugu button.kikonbtn:hover {
  background: #e3e3e3;
  color: #262626;
}
.konsol .durumcubugu button.kikonbtn:not(.ikincil) {
  color: #0733e2;
}
.konsol .durumcubugu button.kikonbtn svg.ikon {
  width: 20px;
  height: 20px;
}
.konsol .durumcubugu button.kmetinbtn {
  height: 28px;
  padding: 0 12px;
  margin-left: 6px;
  border: 1px solid #c4c4c4;
  background: #f5f5f5;
  color: #595959;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.4px;
}
.konsol .durumcubugu button.kmetinbtn + button.kmetinbtn {
  margin-left: 0;
}
.konsol .durumcubugu select {
  height: 28px;
  font-size: 12px;
  max-width: 140px;
}

/* ziyaretci tablosu: bilgi dugmesi, gri Yasakla / Reddet */
.ztablo .zbilgihucre {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ztablo .zbilgihucre .zad {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
.ztablo button.zbilgi {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  color: #595959;
  box-shadow: none !important;
  vertical-align: middle;
}
.ztablo td > button.zbilgi {
  margin-left: 8px;
}
.ztablo button.zbilgi svg.ikon {
  width: 18px;
  height: 18px;
}
.zislem a.dugme.ikincil.zbtn,
.zislem button.zbtn {
  background: #fff;
  color: #595959;
  border: 1px solid #d9d9d9;
  font-weight: 500;
}

/* liste secenekleri menusu */
.kmenu.klistemenu {
  width: 250px;
  padding: 4px 0;
}
.kmenu.klistemenu .kmoge {
  color: #595959;
}
.kmenu.klistemenu .kmoge.on {
  color: #262626;
}

/* devir penceresi: secili sekmede kose isareti, bos durum, ayril kutusu */
.kdevir .kdsekme {
  position: relative;
  overflow: hidden;
}
.kdevir .kdsekme.on {
  border-width: 1px;
  z-index: 1;
}
.kdevir .kdsekme.on::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 24px 24px 0;
  border-color: transparent #0733e2 transparent transparent;
}
.kdevir .kdsekme.on::before {
  content: "";
  position: absolute;
  top: 4px;
  right: 3px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  z-index: 1;
}
.kdevir .kdliste {
  min-height: 270px;
}
.kdevir .kdbos {
  height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #595959;
  font-size: 14px;
}
.kdevir .kdboscizim {
  width: 90px;
  height: 80px;
  color: #a6a6a6;
}
.kdevir .kdnot {
  min-height: 40px;
  margin: 6px 0 8px;
}
.kdevir .kdayril {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 6px;
  font-size: 14px;
  color: #262626;
}
.perde:has(.kdevir) .mdip .kdevirtamam:disabled {
  background: #8fa3f3;
  color: #fff;
  opacity: 1;
}
.perde:has(.kdevir) .mdip button.ikincil,
.perde:has(.kdavetmetni) .mdip button.ikincil,
.perde:has(.kevet) .mdip button.ikincil {
  color: #595959;
  border: 1px solid #c4c4c4;
}

/* emoji secici: 8 sutun, Comm100 kutusu 320x350 */
.konsol .emojikutu {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  width: 320px;
  height: 350px;
  align-content: start;
  overflow: auto;
  bottom: 38px;
}
.konsol .emojikutu.gizli {
  display: none;
}
.konsol .emojikutu button.emoji {
  width: 32px;
  height: 32px;
  font-size: 22px;
}

/* "Durum secin" penceresi (Comm100 Choose Status) */
.perde:has(.kdsor) .modal {
  width: 360px;
  border-radius: 2px;
}
.perde:has(.kdsor) .mbaslik {
  justify-content: center;
  font-size: 18px;
  padding: 18px 24px 6px;
}
.perde:has(.kdsor) .mdip {
  padding: 8px 24px 16px;
  border-top: 0;
}
.perde:has(.kdsor) .mdip .kdtamam {
  height: 30px;
  min-width: 56px;
  border-radius: 2px;
  background: #0733e2;
  box-shadow: none !important;
}
.kdsor .kdbaslik {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  font-size: 14px;
  color: #262626;
}
.kdsor .kdbaslik svg.ikon {
  width: 18px;
  height: 18px;
  color: #595959;
}
.kdsor .kdsoge {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px;
  border-radius: 2px;
  color: #595959;
  font-size: 13px;
  cursor: pointer;
}
.kdsor .kdsoge input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.kdsor .kdsoge.on {
  background: #f0f0f0;
  color: #262626;
  font-family: var(--yz-orta);
}
.kdsor .kdhatirla {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13px;
  color: #262626;
}

/* Temsilci sohbeti gorunumu */
.konsol .ktemsilci {
  display: none;
  position: relative;
  height: 100%;
}
.konsol.kgorunum-temsilci .ktemsilci {
  display: block;
}
.konsol.kgorunum-temsilci .ksohbet,
.konsol.kgorunum-temsilci .kziyaretci {
  display: none;
}
.konsol .ktemsilci .kbos {
  inset: 0;
}

/* dar konsolda ziyaretci sayaci tek satir */
.kziyaretci .zsayac {
  white-space: nowrap;
}
.kziyaretci .zbaslik {
  overflow: hidden;
}

/* --- FAZ 4: YZ temsilci mesaji, yazma onizlemesi, temsilci sohbeti --------- */
.konsol .balon.agent.ai {
  background: #dfe3f6;
}
.konsol .kyaziyorsatir {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0 31px;
  font-size: 13px;
  color: #262626;
  max-width: 80%;
}
.konsol .kyaziyorsatir b {
  font-weight: 500;
  white-space: nowrap;
}
.konsol .kyaziyorsatir .ktaslak {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #262626;
}
.konsol .kyaziyorsatir svg.ikon {
  width: 16px;
  height: 16px;
  color: #595959;
  flex-shrink: 0;
}
.konsol .kbolumbas .kyenile {
  display: inline-flex;
  color: #8c8c8c;
  cursor: pointer;
  margin-right: 14px;
}
.konsol .ktemsilci .ajankap {
  display: flex;
  height: 100%;
}
.konsol .ktemsilci .ajansol {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  border-right: 1px solid #e8e8e8;
}
.konsol .ktemsilci .ajansol .liste {
  overflow-y: auto;
}
.konsol .ktemsilci .ajanorta {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.konsol .ktemsilci .ajanorta .akis {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.konsol .ajanoge .ust svg.ikon {
  width: 16px;
  height: 16px;
  color: #595959;
}
.konsol .ajanoge .krozet.ic {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e5484d;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.konsol .ajanorta .kuye {
  font-size: 13px;
  color: #8c8c8c;
}
.konsol .ajanyazar {
  background: #fff;
  margin-bottom: 8px;
}
.konsol .ajanyazar .karaclar {
  display: flex;
  align-items: center;
  padding: 4px 8px;
}
.konsol .ajanyazar .karaclar .sp {
  flex: 1;
}
.konsol .ajanyazar .kgonder {
  border: 0;
  background: none;
  color: #0733e2;
  cursor: pointer;
  box-shadow: none !important;
}

/* dar konsol (Comm100 833px): sohbet basligi tek satir, ad gizli */
@media (max-width: 900px) {
  .konsol .kortabaslik {
    flex-wrap: nowrap;
  }
  .konsol .kortabaslik .kad {
    display: none;
  }
}
@media (max-width: 900px) {
  .konsol .kortabaslik .durumcubugu {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}
/* dar konsol (Comm100 833px): liste 221px, bilgi paneli 201px */
@media (max-width: 900px) {
  .konsol .ksohbet .kolon.sol {
    width: 221px;
  }
  .konsol .ksohbet .kolon.sag {
    width: 201px;
  }
}

/* Konsol uygulamasi: cevrimdisi mesajlar gorunumu (/agentconsole/offline) */
.konsol .kcevrimdisi {
  display: none;
  height: 100%;
  overflow: auto;
  padding: 24px;
  box-sizing: border-box;
  background: #f0f0f0;
}
.konsol.kgorunum-cevrimdisi .kcevrimdisi {
  display: block;
}
.konsol.kgorunum-cevrimdisi .ksohbet,
.konsol.kgorunum-cevrimdisi .kziyaretci,
.konsol.kgorunum-cevrimdisi .ktemsilci {
  display: none;
}

/* Tercihler > Bildirimler (konsol ses ayarlari) */
.sestercih h3 {
  margin: 0 0 12px;
  font-size: var(--yz-14);
  font-weight: 500;
}
.sestercih .satir {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: var(--yz-14);
}
.sestercih input[type="range"] {
  width: 200px;
}
.sestablo {
  width: 100%;
  margin: 4px 0 12px;
  border-collapse: collapse;
}
.sestablo th,
.sestablo td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: var(--yz-13);
}
.sestablo .sestini {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sestablo select {
  height: 30px;
}
