/* GİB Sorgu Merkezi – TELEFON ARAYÜZÜ (Kadir Bey, 25.11.2026: "telefonda tamamen yeni bir arayüz").
   Kurallar: dokunma hedefi en az 44 px, yazı en az 15 px, yatay kaydırma yok, çentik payı, koyu tema. */
#tel { position: fixed; inset: 0; display: flex; flex-direction: column; background: #111; }
#tel.gizli { display: none; }
body.tel-modu { overflow: hidden; font-size: 15px; -webkit-text-size-adjust: 100%; }
#tel-ust { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
           background: #0b0b0b; border-bottom: 1px solid #222; min-height: 54px; }
#tel-ust .geri { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #333; background: #1a1a1a; font-size: 20px; }
#tel-ust .ad { flex: 1; font-size: 18px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tel-ust .kucuk-dugme { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid #333; background: #1a1a1a; font-size: 14px; }
#tel-icerik { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 12px 24px; -webkit-overflow-scrolling: touch; }
#tel-sekmeler { flex: 0 0 auto; display: flex; background: #0b0b0b; border-top: 1px solid #222; padding-bottom: env(safe-area-inset-bottom); }
#tel-sekmeler button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 7px; border: none;
                       background: transparent; color: #8a8a8a; font-size: 11.5px; position: relative; min-height: 56px; }
#tel-sekmeler button.secili { color: #7fb3ff; }
#tel-sekmeler button svg { width: 24px; height: 24px; }
#tel-sekmeler .rozet-nokta { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: #dc2626;
                             color: #fff; font-size: 11px; line-height: 18px; padding: 0 5px; }

/* kartlar */
.t-kart { background: #1c1c1c; border: 1px solid #2c2c2c; border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.t-kart h3 { margin: 0 0 8px; font-size: 16px; }
.t-kart.vurgu { border-color: #3b82f6; background: #172234; }
.t-kart.uyari { border-color: #7a5216; background: #2a2114; }
.t-satir { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #262626; min-height: 44px; }
.t-satir:last-child { border-bottom: none; }
.t-satir .sol { flex: 1; min-width: 0; }
.t-satir .sol b { display: block; overflow: hidden; text-overflow: ellipsis; }
.t-satir .alt { font-size: 13px; color: #9a9a9a; }
.t-dugme { min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1px solid #3a3a3a; background: #222; font-size: 15px; }
.t-dugme.birincil { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 600; }
.t-dugme.yesil { background: #15803d; border-color: #15803d; color: #fff; font-weight: 600; }
.t-dugme.kirmizi { background: #dc2626; border-color: #dc2626; color: #fff; font-weight: 600; }
.t-dugme.tam { width: 100%; }
.t-dugme:disabled { opacity: .5; }
.t-izgara { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.t-cubuk { height: 8px; background: #333; border-radius: 4px; overflow: hidden; margin: 6px 0; }
.t-cubuk > div { height: 100%; background: #3b82f6; }
.t-ara { display: flex; gap: 8px; margin-bottom: 10px; position: sticky; top: -12px; background: #111; padding: 8px 0; z-index: 3; }
.t-ara input { flex: 1; min-width: 0; height: 44px; font-size: 16px; border-radius: 12px; }
.t-ara button { height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid #3a3a3a; background: #1c1c1c; font-size: 14px; position: relative; white-space: nowrap; }
.t-ara button.etkin { border-color: #f5a524; color: #f5a524; }
.t-ozet { font-size: 13px; color: #9a9a9a; margin: 0 2px 10px; }

/* liste kartı (tablo satırı) */
.t-oge { background: #1c1c1c; border: 1px solid #2c2c2c; border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; display: flex; gap: 12px; align-items: flex-start; }
.t-oge:active { background: #24344f; }
.t-oge .govde { flex: 1; min-width: 0; }
.t-oge .bas { font-size: 15.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.t-oge .alt { font-size: 13px; color: #9a9a9a; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-oge .alanlar { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; margin-top: 8px; }
.t-oge .alan { min-width: 0; }
.t-oge .alan span { display: block; font-size: 11.5px; color: #8a8a8a; }
.t-oge .alan b { display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-oge .sag { color: #6a6a6a; font-size: 20px; align-self: center; }
.t-oge input[type=checkbox] { width: 24px; height: 24px; margin-top: 2px; }
.t-oge.grup { border-color: #2c4a7a; background: #16233a; }
.t-cocuklar { margin: -4px 0 10px 14px; padding-left: 10px; border-left: 2px solid #2c4a7a; }
.t-daha { width: 100%; }

/* alt sayfa (ayrıntı, süzgeç) */
.t-perde { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 92; display: flex; align-items: flex-end; }
.t-alt-sayfa { background: #1a1a1a; width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; display: flex; flex-direction: column;
               padding-bottom: env(safe-area-inset-bottom); animation: yukari .18s ease-out; }
@keyframes yukari { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.t-alt-sayfa .tutac { width: 44px; height: 5px; border-radius: 3px; background: #444; margin: 8px auto 4px; }
.t-alt-sayfa .baslik { display: flex; align-items: center; gap: 10px; padding: 6px 16px 10px; border-bottom: 1px solid #2a2a2a; }
.t-alt-sayfa .baslik b { flex: 1; font-size: 17px; }
.t-alt-sayfa .baslik button { width: 40px; height: 40px; border-radius: 20px; border: 1px solid #333; background: #222; font-size: 18px; }
.t-alt-sayfa .icerik { overflow-y: auto; padding: 12px 16px 16px; }
.t-alt-sayfa .alt { display: flex; gap: 8px; padding: 10px 16px 14px; border-top: 1px solid #2a2a2a; flex-wrap: wrap; }
.t-alt-sayfa .alt .t-dugme { flex: 1; }
.t-bilgi { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #262626; }
.t-bilgi span { color: #9a9a9a; font-size: 13px; flex: 0 0 40%; }
.t-bilgi b { font-weight: 500; text-align: right; word-break: break-word; }
.t-ic { overflow-x: auto; margin: 8px 0; border: 1px solid #2a2a2a; border-radius: 10px; }
.t-ic table { border-collapse: collapse; font-size: 13px; }
.t-ic th, .t-ic td { padding: 6px 10px; border-bottom: 1px solid #262626; white-space: nowrap; text-align: left; }
.t-ic th { background: #232323; color: #c8c8c8; font-weight: 400; }
.t-cipler { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.t-cip { min-height: 40px; padding: 8px 14px; border-radius: 20px; border: 1px solid #3a3a3a; background: transparent; font-size: 14px; }
.t-cip.secili { background: #0f2747; border-color: #3b82f6; color: #7fb3ff; }
.t-etiket { font-size: 13px; color: #9a9a9a; margin: 12px 0 4px; }

/* seçim çubuğu */
.t-secim { position: sticky; bottom: -24px; margin: 8px -12px -24px; padding: 10px 12px calc(10px + 0px); background: #0b0b0b; border-top: 1px solid #2a2a2a;
           display: flex; gap: 8px; align-items: center; z-index: 4; }
.t-secim .yayil { flex: 1; font-size: 14px; }

/* sorgu adımları */
.t-adimlar { display: flex; gap: 6px; margin-bottom: 12px; }
.t-adimlar button { flex: 1; min-height: 40px; border-radius: 10px; border: 1px solid #333; background: #1a1a1a; font-size: 13px; color: #9a9a9a; }
.t-adimlar button.secili { border-color: #3b82f6; color: #fff; background: #172234; }
.t-adimlar button.tamam { color: #35c759; }
.t-firma { display: flex; gap: 12px; align-items: flex-start; padding: 11px 4px; border-bottom: 1px solid #262626; min-height: 52px; }
.t-firma input { width: 24px; height: 24px; margin-top: 2px; flex: 0 0 24px; }
.t-firma .ad { font-weight: 600; }
.t-firma .alt { font-size: 13px; color: #9a9a9a; }
.t-firma .uyari { font-size: 12.5px; color: #f5a524; }
.t-sorgu { min-height: 56px; border-radius: 14px; border: 1px solid #3a3a3a; background: #1c1c1c; font-size: 14.5px; padding: 8px 10px; text-align: left; }
.t-sorgu.secili { background: #0f2747; border-color: #3b82f6; color: #cfe2ff; }
.t-sorgu.secili::before { content: "✓ "; color: #7fb3ff; }
.t-ileri { position: sticky; bottom: -24px; margin: 10px -12px -24px; padding: 10px 12px; background: #0b0b0b; border-top: 1px solid #2a2a2a; display: flex; gap: 8px; align-items: center; }
.t-ileri .yayil { flex: 1; font-size: 14px; color: #c8c8c8; }

/* doğrulama kodu (telefonda başlığın hemen altında, her sekmede; içeriği aşağı iter, üstüne binmez) */
body.tel-modu #kod-panel { position: static; flex: 0 0 auto; margin: 8px 8px 0; z-index: auto; box-shadow: none;
  display: grid; grid-template-columns: 1fr 1fr auto; grid-template-areas: "bilgi bilgi bilgi" "resim resim resim" "giris giris gonder" "yenile iptal iptal";
  gap: 8px; padding: 10px; border-radius: 14px; }
body.tel-modu #kod-panel.gizli { display: none; }
body.tel-modu #kod-panel .bilgi { grid-area: bilgi; width: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
body.tel-modu #kod-resim { grid-area: resim; height: 70px; min-width: 0; }
body.tel-modu #kod-resim img { height: 66px; }
body.tel-modu #kod-giris { grid-area: giris; width: 100%; min-width: 0; height: 50px; font-size: 24px; }
body.tel-modu #kod-gonder { grid-area: gonder; height: 50px; padding: 0 20px; background: #2563eb; border: none; color: #fff; font-weight: 600; border-radius: 10px; }
body.tel-modu #kod-yenile { grid-area: yenile; height: 40px; }
body.tel-modu #kod-iptal { grid-area: iptal; height: 40px; }
body.tel-modu.uzak-acik #kod-panel { position: fixed; left: 0; right: 0; top: 0; margin: 0; z-index: 88; border-radius: 0 0 14px 14px; }

/* telefonda ortak pencereler alttan açılır */
body.tel-modu .perde { align-items: flex-end; padding: 0; }
body.tel-modu .pencere { max-width: none !important; border-radius: 18px 18px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); }
body.tel-modu .pencere .pa button { flex: 1; min-height: 44px; }
body.tel-modu .acilir { left: 8px !important; right: 8px; max-width: calc(100vw - 16px); }
body.tel-modu .donem { width: auto; }
body.tel-modu .donem .hucre { padding: 13px 4px; font-size: 15px; }
body.tel-modu .firmamenu { width: auto; }
body.tel-modu .firmamenu .msatir { padding: 12px; }
body.tel-modu #bildirimler { top: auto; bottom: calc(66px + env(safe-area-inset-bottom)); left: 8px; right: 8px; max-width: none; }
/* telefonda masaüstü bileşenleri (Ayarlar, Firmalar kartları) sığsın */
#tel .kart.ic { padding: 14px; border-radius: 14px; }
#tel .satir-yatay { flex-wrap: wrap; }
#tel .form-izgara { grid-template-columns: 1fr; }
#tel input[type=text], #tel input[type=password], #tel input[type=email], #tel input[type=number], #tel select { font-size: 16px; min-height: 42px; max-width: 100%; }
#tel .liste-sec { max-width: 100%; }
#tel .buyukbaslik { font-size: 20px; }
#tel table.ic { display: block; overflow-x: auto; }
/* masaüstü kartları telefonda alt alta (Firmalar > sicil, Borç kartı, Ayarlar) */
#tel-icerik { overflow-wrap: anywhere; }
#tel .kart.ic.satir-yatay { flex-direction: column; align-items: stretch; }
#tel .kart.ic.satir-yatay > button { width: 100%; min-height: 44px; }
#tel .kart.ic .satir-yatay > span, #tel .kart.ic .satir-yatay > div { max-width: 100%; }
#tel .kart.ic table.ic { max-width: 100%; }
#tel .kart.ic input[type=number] { width: 90px !important; }
#tel .kart.ic input[type=text] { max-width: 100%; }
#tel-icerik > h1.buyukbaslik { display: none; }
#tel .liste-sec li { padding: 10px; }
