/*!
 * Yalniz — müşteri paneli ek ekranları (yalniz-account.css'ten sonra yüklenir)
 * yalniz-account.css'teki temel düzeni tamamlar; yalnız bu sayfalara özgü düzeltmeler.
 *
 * Bölümler
 *  X1 Bakiye (ac-balance)
 *  X2 Toplu ödeme (ac-invoices-bulk-payment)
 *  X3 Yeni destek talebi (ac-create-ticket-request)
 *  X4 Mesajlar + mesaj detayı (ac-messages, ac-detail-message)
 *  X5 Satış ortaklığı (ac-affiliate)
 *  X6 Duyarlı (≤ 640px)
 */

/* X1 ─ Bakiye ─────────────────────────────────────────────────── */
/* Tutar alanı + para birimi aynı satırda, hızlı tutarlar altında çip olarak */
body.yz .balancepage .hesapbilgilerim td:has(> input[name="new_balance"]){ display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.yz .balancepage .hesapbilgilerim input[name="new_balance"]{ margin-right: 0; height: 40px; font-weight: 600; color: var(--yz-ink) !important; }
body.yz .balancepage .hesapbilgilerim td:has(> input[name="new_balance"]) select[name="currency"]{ margin: 0; }
body.yz .balancepage .hesapbilgilerim input[name="new_balance"]::placeholder{ font-weight: 400; }
body.yz .yz-quick-amounts{ display: flex; flex-wrap: wrap; gap: 6px; flex: 0 0 100%; margin-top: 2px; }
body.yz .yz-quick-amount{
    display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 32px; padding: 0 12px; margin: 0;
    background: var(--yz-surface); color: var(--yz-ink-2); border: 1px solid var(--yz-line); border-radius: 999px; box-shadow: var(--yz-shadow-xs);
    font: 500 13px/1 var(--yz-font); font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
body.yz .yz-quick-amount:hover{ border-color: var(--yz-brand-200); background: var(--yz-brand-50); color: var(--yz-brand-600); }
body.yz .yz-quick-amount:focus-visible{ outline: none; box-shadow: 0 0 0 3px var(--yz-ring); }
body.yz .yz-quick-amount.is-active{ background: var(--yz-brand); border-color: var(--yz-brand); color: #fff; }
/* Uyarı eşiği satırı: metin + alan hizası */
body.yz .balancepage .hesapbilgilerim input[name="balance_min"]{ height: 36px; margin: 0 6px; text-align: center !important; }
body.yz .balancepage .hesapbilgilerim .checkbox-custom-label{ align-items: flex-start; }
body.yz .balancepage .hesapbilgilerim .checkbox-custom-label::before{ margin-top: 1px; }
/* Son satır (Bakiye Yükle) birincil buton boyunda */
body.yz .balancepage .hesapbilgilerim tr:last-child td{ padding-top: 6px !important; padding-bottom: 20px !important; }
body.yz .balancepage .hesapbilgilerim .lbtn.green{ height: 40px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
/* Onay / dönüşüm modalları */
body.yz :is(#Confirm, #Convert) .padding30{ padding: 22px 24px; }
body.yz :is(#Confirm, #Convert) p{ margin: 0; color: var(--yz-ink-2); font-size: 14px; }
body.yz :is(#Confirm, #Convert) div[align="center"]{ display: flex; justify-content: flex-end; float: none; width: 100%; clear: both; }
body.yz :is(#Confirm, #Convert) .line{ float: none; margin: 18px 0 16px; }
body.yz :is(#Confirm, #Convert) .gonderbtn{ width: auto !important; min-width: 200px; }

/* X2 ─ Toplu ödeme ────────────────────────────────────────────── */
/* Şablondaki gömülü <style> (1px #ccc çizgi) ve bgcolor="#4CAF50" kalıntıları */
body.yz .bulkpayment > table tr td{ border-bottom: 1px solid var(--yz-line-2) !important; padding: 14px !important; }
body.yz .bulkpayment > table tr:first-child td{ padding: 11px 14px !important; }
body.yz .bulkpayment > table td[bgcolor]{ background-color: var(--yz-surface-2) !important; }
body.yz .bulkpayment > table td:first-child{ width: 52px; text-align: center; }
body.yz .bulkpayment > table td:nth-child(2){ width: auto; }
body.yz .bulkpayment > table td:last-child{ width: 160px; text-align: right !important; padding-right: 20px !important; }
body.yz .bulkpayment > table tr:not([id]):not(:first-child) td:nth-child(2){ color: var(--yz-muted); font-size: 13px; }
body.yz .bulkpayment > table tr:not([id]):not(:first-child) td:nth-child(2) strong{ display: inline-block; margin-bottom: 2px; font-size: 14px; }
body.yz .bulkpayment > table tr:not([id]):has(.selected-invoices:not(:checked)) td{ opacity: .55; }
body.yz .bulkpayment > table tr:not([id]):has(.selected-invoices:not(:checked)) td:first-child{ opacity: 1; }
body.yz .bulkpayment > table .checkbox-custom + .checkbox-custom-label{ gap: 0; }
body.yz .bulkpayment #payment_methods .checkbox-custom + .checkbox-custom-label{ justify-content: flex-start; }
body.yz .bulkpayment > table #total_wrap td[bgcolor]{ background: var(--yz-brand-50) !important; }
/* Ödeme yöntemi: tek panelli akordeon → düz kart başlığı */
body.yz #selection-methods #accordion{ margin-top: 20px !important; }
body.yz #selection-methods .ui-accordion-header{ padding: 13px 18px !important; cursor: default; font-weight: 600; }
body.yz #selection-methods .ui-accordion-header-icon{ display: none; }
body.yz #selection-methods .ui-accordion-content{ padding: 18px !important; }
body.yz #selection-methods .odemeyontem h5{ font-size: 13px; color: var(--yz-muted); font-weight: 500; }
body.yz #selection-methods .odemeyontem h5 strong{ font-weight: 500; }
body.yz #selection-methods .line{ margin: 4px 0 16px; }
body.yz #selection-methods #continue_button{ width: auto; min-width: 220px; float: right; height: 42px; font-size: 14px; }
body.yz #selection-methods .ui-accordion-content::after{ content: ""; display: table; clear: both; }
body.yz #payment-screen{ margin-top: 20px !important; }

/* X3 ─ Yeni destek talebi ─────────────────────────────────────── */
body.yz .yz-dept-pick{ margin: 0 0 18px; }
body.yz .yz-dept-label{ margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--yz-ink); }
body.yz .yz-dept-cards{ display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
body.yz .yz-dept-card{
    position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 14px; margin: 0; text-align: left;
    background: var(--yz-surface); color: var(--yz-ink); border: 1px solid var(--yz-line); border-radius: var(--yz-r); box-shadow: var(--yz-shadow-xs);
    font: 500 14px/1.3 var(--yz-font); cursor: pointer; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
body.yz .yz-dept-card i{
    flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
    background: var(--yz-surface-2); color: var(--yz-muted); font-size: 14px; transition: background-color .15s, color .15s;
}
body.yz .yz-dept-card:hover{ border-color: #cfd8e2; background: var(--yz-surface-2); }
body.yz .yz-dept-card:hover i{ background: var(--yz-brand-50); color: var(--yz-brand); }
body.yz .yz-dept-card:focus-visible{ outline: none; box-shadow: 0 0 0 3px var(--yz-ring); }
body.yz .yz-dept-card[aria-pressed="true"]{ border-color: var(--yz-brand); background: var(--yz-brand-50); box-shadow: 0 0 0 1px var(--yz-brand); }
body.yz .yz-dept-card[aria-pressed="true"] i{ background: var(--yz-brand); color: #fff; }
body.yz .yz-dept-card[aria-pressed="true"]::after{
    content: "\f00c"; font: var(--fa-font-solid); font-size: 10px; position: absolute; top: 8px; right: 9px; color: var(--yz-brand);
}
/* Kartlar varken departman seçimi kartlardan yapılır; select formda kalır (gönderilen alan aynı) */
body.yz .destektalebiolustur:has(.yz-dept-cards) #SelectDepartment{ position: absolute; width: 1px !important; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0 !important; }
body.yz .destektalebiolustur:has(.yz-dept-cards) .ticketinfos{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Sıra: hizmet + öncelik, ardından konu başlığı */
body.yz .destektalebiolustur .ticketinfos > input[name="title"]{ order: 2; }
body.yz .destektalebiolustur .ticketdetail > textarea{ min-height: 220px; }
/* Ek dosya + şifreleme satırı */
body.yz .destektalebiolustur .ticketdetail{ align-items: start; }
body.yz .destektalebiolustur .destekdosyaeki{ padding-top: 2px; }
body.yz .destektalebiolustur #encrypt_message_wrap .checkbox-custom + .checkbox-custom-label{ display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; row-gap: 1px; max-width: 360px; }
body.yz .destektalebiolustur #encrypt_message_wrap .checkbox-custom + .checkbox-custom-label::before{ grid-row: 1 / span 2; align-self: center; }
body.yz .destektalebiolustur #encrypt_message_wrap .checkbox-custom-label > span{ grid-column: 2; }
body.yz .destektalebiolustur #encrypt_message_wrap .kinfo{ margin: 0; }
body.yz .destektalebiolustur .ticketsendbtn{ gap: 14px; padding-top: 22px; }
/* Özel alanlar: başlık solda, alan sağda */
body.yz .ticketCustomFields-con .department-fields[style*="block"]{ display: grid !important; grid-template-columns: 30% minmax(0, 1fr); gap: 6px 16px; align-items: center; }
body.yz .ticketCustomFields-con .department-fields > :is(.yuzde30, .yuzde70){ width: auto; margin: 0; }
body.yz .ticketCustomFields-con .department-fields .zorunlu{ margin-right: 3px; }
body.yz .ticketCustomFields-con .department-fields{ border-bottom: 0 !important; border-top: 1px solid var(--yz-line); }
body.yz .ticketCustomFields-con{ display: block; margin: 0; box-shadow: none; }
body.yz #ticketCustomFields .blue-info{ margin-bottom: 4px; font-size: 13.5px; border: 1px solid #cbe3f3; }
body.yz #ticketCustomFields .blue-info i{ display: block; }
/* Şablonun gömülü stili (.radio-custom-label:before → FontAwesome kalkan) şifreleme dışındaki radyoları da bozuyor */
body.yz .ticketCustomFields-con .radio-custom + .radio-custom-label::before{ content: "" !important; font: inherit !important; border: 1.5px solid #c3cfdb !important; opacity: 1 !important; margin: 0 !important; background: var(--yz-surface) !important; }
body.yz .ticketCustomFields-con .radio-custom:checked + .radio-custom-label::before{ border: 5.5px solid var(--yz-brand) !important; }
body.yz .ticketCustomFields-con .department-fields .yuzde70{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; }
body.yz .ticketCustomFields-con .department-fields .yuzde70 > :is(input:not([type=radio]):not([type=checkbox]), select, textarea){ flex: 1 1 100%; }
body.yz #CreateRequestForm_success > div{ display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 28px 0 36px !important; }
body.yz #CreateRequestForm_success i.fa-check{
    display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 26px !important; background: var(--yz-ok-bg); color: var(--yz-ok);
}
body.yz #CreateRequestForm_success h5{ margin: 0; font-size: 15px; color: var(--yz-ink); }

/* X4 ─ Mesajlar ───────────────────────────────────────────────── */
body.yz #messages td:first-child, body.yz #messages th:first-child{ width: 52px; color: var(--yz-faint); font-variant-numeric: tabular-nums; }
body.yz #messages td:nth-child(3){ white-space: nowrap; color: var(--yz-muted); font-variant-numeric: tabular-nums; }
body.yz #messages td:last-child{ width: 1%; white-space: nowrap; text-align: right; }

/* Mesaj detayı: e-posta gövdesi belge çerçevesinde, eski tablo stilleri sıfırlanır */
body.yz .yz-message-body{
    max-width: 760px; padding: 24px 26px; margin: 0; overflow-x: auto; overflow-wrap: anywhere;
    background: var(--yz-surface); border: 1px solid var(--yz-line); border-radius: var(--yz-r-lg); color: var(--yz-ink-2); font-size: 14px; line-height: 1.6;
}
body.yz .yz-message-body img{ max-width: 100%; height: auto; }
body.yz .yz-message-body table{ width: auto; max-width: 100%; font-size: inherit; border-collapse: collapse; }
body.yz .yz-message-body table[width="100%"]{ width: 100%; }
body.yz .yz-message-body table tbody tr, body.yz .yz-message-body table tbody tr:hover{ background: transparent !important; }
body.yz .yz-message-body table tbody td{ padding: 0 !important; border-bottom: 0 !important; vertical-align: top; }
/* Yerleşim tablosu (cellpadding=0): satır araları — yalniz.css'in hücre dolgusu e-postanın satır içi dolgusunu ezdiği için */
body.yz .yz-message-body table[cellpadding="0"] > tbody > tr > td{ padding: 0 0 14px !important; }
body.yz .yz-message-body table[cellpadding="0"] > tbody > tr:last-child > td{ padding-bottom: 0 !important; }
/* İç bilgi tablosu (çerçeveli) — e-postanın kendi hücre boşlukları */
body.yz .yz-message-body table[style*="border"] td, body.yz .yz-message-body table[cellpadding]:not([cellpadding="0"]) td{ padding: 9px 12px !important; border-bottom: 1px solid var(--yz-line-2) !important; }
body.yz .yz-message-body table[style*="border"]{ border-color: var(--yz-line) !important; border-radius: 0; }
body.yz .yz-message-body table[style*="border"] tr:last-child td{ border-bottom: 0 !important; }
body.yz .yz-message-body td[style*="background"]{ background: var(--yz-surface-2) !important; color: var(--yz-ink); }
body.yz .yz-message-body td > table{ margin: 2px 0; }
body.yz .mpanelrightcon > hr{ height: 1px; margin: 20px 0 14px; border: 0; background: var(--yz-line-2); max-width: 760px; }
body.yz .yz-message-meta{ font-size: 12.5px; line-height: 1.8; color: var(--yz-faint); font-variant-numeric: tabular-nums; }

/* X5 ─ Satış ortaklığı ────────────────────────────────────────── */
/* "Ödeme Talep Et" butonu etiketi örtmesin: değer satırına hizala */
body.yz .affiliate .dashboardbox#yesilblok .withdrawal-request{ top: 50px; right: 16px; height: 30px; padding: 0 12px; }
body.yz .affiliate .dashboardbox h2{ margin-bottom: 16px; }
body.yz .affiliate .dashboardbox .ablokbottom{ margin-top: auto; }
@media (min-width: 1101px){
    /* Çekilebilir bakiye kartı, değer + "Ödeme Talep Et" yan yana sığsın diye biraz daha geniş */
    body.yz .affiliate .dashboardboxs{ grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr); }
}
/* Yönlendirme bağlantısı + kopyala */
body.yz .refererurl{ display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
body.yz .refererurl > :is(h4, h5){ flex: 0 0 100%; }
body.yz .refererurl > h2{ margin: 4px 0 0 !important; }
body.yz .refererurl > .yz-copy-btn{ margin-top: 4px; height: 42px; padding: 0 14px; }
body.yz .yz-copy-btn.is-copied{ background: var(--yz-ok-bg); border-color: #c4e9da; color: var(--yz-ok) !important; }
/* Sekme içeriği tabloları */
body.yz .affilia-tablelist .tabcontent .listingstatus{ font-size: 12px; color: var(--yz-faint); line-height: 1.7; }
body.yz .affilia-tablelist .tabcontent .listingstatus .dashboardbox-info{ vertical-align: middle; }
body.yz .affilia-tablelist td strong{ color: var(--yz-ink); font-weight: 600; }
body.yz .affilia-tablelist #table_transactions td:nth-child(2){ font-size: 12.5px; color: var(--yz-faint); }
body.yz .affilia-tablelist #table_transactions td:nth-child(2) strong{ font-size: 13.5px; }
body.yz .affilia-tablelist #table_hits td:first-child a{ font-weight: 500; overflow-wrap: anywhere; }
body.yz .affilia-tablelist > .tabcontent{ padding-top: 4px; }
/* Ödeme bilgisi / ödeme talebi modalları */
body.yz :is(#withdrawal_modal, #YourPaymentInfo) .padding20{ padding: 8px 22px 20px; }
body.yz :is(#withdrawal_modal, #YourPaymentInfo) .formcon{ align-items: flex-start; }
body.yz :is(#withdrawal_modal, #YourPaymentInfo) .formcon > .yuzde30{ padding-top: 10px; }
body.yz #withdrawal_modal .formcon:first-child{ align-items: center; }
body.yz #withdrawal_modal .formcon:first-child > .yuzde30{ padding-top: 0; }
body.yz #withdrawal_modal .formcon:first-child strong{ font-size: 18px; color: var(--yz-ink); font-variant-numeric: tabular-nums; }
body.yz :is(#withdrawal_modal, #YourPaymentInfo) .yuzde70 > .clear{ display: none; }
body.yz #withdrawal_modal .yuzde70 > .kinfo{ margin: 6px 0 8px; }
body.yz #withdrawal_modal .yuzde70 > textarea{ min-height: 90px; margin-bottom: 10px; }
body.yz :is(#withdrawal_modal, #YourPaymentInfo) textarea{ min-height: 90px; }
body.yz :is(#withdrawal_modal, #YourPaymentInfo) form > .yuzde30[style*="float"]{ float: none !important; width: auto; display: flex; justify-content: flex-end; padding-top: 16px; }
body.yz :is(#withdrawal_modal, #YourPaymentInfo) form > .yuzde30 .gonderbtn{ width: auto; min-width: 160px; }

/* X6 ─ Duyarlı ────────────────────────────────────────────────── */
@media (max-width: 640px){
    /* Bakiye */
    body.yz .balancepage .hesapbilgilerim table tr:first-child td{ border-bottom: 0 !important; padding: 16px 14px 4px !important; }
    body.yz .balancepage .hesapbilgilerim table tr:first-child td + td{ padding: 0 14px 16px !important; border-bottom: 1px solid var(--yz-brand-100) !important; }
    body.yz .balancepage .hesapbilgilerim td:has(> input[name="new_balance"]){ display: flex; }
    body.yz .balancepage .hesapbilgilerim input[name="new_balance"]{ flex: 1 1 100px; width: auto !important; }
    body.yz .balancepage .hesapbilgilerim td:has(> input[name="new_balance"]) select[name="currency"]{ flex: 1 1 160px; margin-top: 0; }
    body.yz .yz-quick-amount{ flex: 1 1 0; min-width: 0; padding: 0 6px; }
    body.yz .balancepage .hesapbilgilerim .lbtn.green{ width: 100%; }
    body.yz :is(#Confirm, #Convert) .gonderbtn{ width: 100% !important; min-width: 0; }

    /* Toplu ödeme: tablo yerine satır ızgarası (yatay kaydırma yok) */
    body.yz .bulkpayment{ overflow: visible; }
    body.yz .bulkpayment > table{ min-width: 0; display: block; }
    body.yz .bulkpayment > table > tbody{ display: block; }
    body.yz .bulkpayment > table tr{ display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; }
    body.yz .bulkpayment > table tr[style*="table-row"]{ display: grid !important; }
    body.yz .bulkpayment > table tr[style*="none"]{ display: none; }
    body.yz .bulkpayment > table tr td{ width: auto !important; padding: 12px 10px !important; }
    body.yz .bulkpayment > table td:first-child{ padding-left: 12px !important; padding-right: 0 !important; }
    body.yz .bulkpayment > table td:last-child{ padding-right: 12px !important; }
    body.yz .bulkpayment > table tr[id$="_wrap"] td:first-child{ padding: 0 !important; }
    body.yz #selection-methods #continue_button{ width: 100% !important; float: none; }

    /* Yeni talep */
    body.yz .yz-dept-cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    body.yz .yz-dept-card{ min-height: 52px; padding: 10px; gap: 9px; font-size: 13px; }
    body.yz .yz-dept-card i{ width: 30px; height: 30px; font-size: 13px; }
    body.yz .destektalebiolustur:has(.yz-dept-cards) .ticketinfos{ grid-template-columns: minmax(0, 1fr); }
    body.yz .destektalebiolustur #encrypt_message_wrap .checkbox-custom + .checkbox-custom-label{ max-width: none; }
    body.yz .destektalebiolustur .ticketsendbtn{ padding-top: 6px; }
    body.yz .ticketCustomFields-con .department-fields[style*="block"]{ grid-template-columns: minmax(0, 1fr); }

    /* Mesajlar */
    body.yz #messages td, body.yz #messages th{ padding-left: 8px !important; padding-right: 8px !important; }
    body.yz #messages td:first-child, body.yz #messages th:first-child{ width: 28px; }
    body.yz #messages td:nth-child(3){ white-space: normal; min-width: 84px; font-size: 12.5px; }
    body.yz #messages .incelebtn{ width: 32px; padding: 0; font-size: 0; gap: 0; }
    body.yz #messages .incelebtn i{ font-size: 13px; }
    body.yz .yz-message-body{ padding: 16px; border-radius: var(--yz-r); }

    /* Ortaklık */
    body.yz .mpaneltitle:has(#affiliate-paym-info) h4{ flex: 1 1 100%; }
    body.yz .affiliate .dashboardboxs{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.yz .affiliate .dashboardbox#yesilblok{ order: -1; grid-column: 1 / -1; }
    body.yz .affiliate .dashboardbox#maviblok{ grid-column: 1 / -1; }
    body.yz .affiliate .dashboardbox:not(#yesilblok):not(#maviblok) > .padding10{ padding: 14px 14px 0 !important; }
    body.yz .affiliate .dashboardbox:not(#yesilblok):not(#maviblok) > .padding10 > i{ display: none; }
    body.yz .affiliate .dashboardbox:not(#yesilblok):not(#maviblok) :is(h2, h4){ padding-right: 0; }
    body.yz .affiliate .dashboardbox:not(#yesilblok):not(#maviblok) h2{ font-size: 22px; }
    body.yz .affiliate .dashboardbox:not(#yesilblok):not(#maviblok) .ablokbottom{ margin: auto -14px 0; padding: 9px 14px; }
    body.yz .affiliate .dashboardbox:not(#yesilblok):not(#maviblok) h2{ margin-bottom: 14px; }
    body.yz .affiliate .ablokbottom span{ flex-wrap: wrap; column-gap: 6px; }
    body.yz .refererurl{ padding: 16px; }
    body.yz .refererurl > h2{ flex: 1 1 100%; font-size: 13px; }
    body.yz .refererurl > .yz-copy-btn{ flex: 1 1 100%; }
    body.yz :is(#withdrawal_modal, #YourPaymentInfo) .padding20{ padding: 4px 16px 16px; }
    body.yz :is(#withdrawal_modal, #YourPaymentInfo) form > .yuzde30 .gonderbtn{ width: 100%; }
    body.yz :is(#withdrawal_modal, #YourPaymentInfo) .formcon, body.yz #withdrawal_modal .formcon:first-child{ align-items: stretch; }
    body.yz :is(#withdrawal_modal, #YourPaymentInfo) .formcon > :is(.yuzde30, .yuzde70){ flex: 0 0 100%; max-width: 100%; text-align: left !important; padding-top: 0; }
}
