﻿/* TPPS Portal — Vuexy üzerine küçük düzenlemeler (TppsSapB1Enteg site.css standardı) */
[ng-cloak], .ng-cloak { display: none !important; }

.logo-koyu { display: none !important; }
.dark-style .logo-acik { display: none !important; }
.dark-style .logo-koyu { display: inline-block !important; }

.portal-tablo { font-size: .875rem; }
.portal-tablo > :not(caption) > * > * { padding: .45rem .7rem; vertical-align: middle; }
.portal-tablo thead th { font-weight: 600; white-space: nowrap; text-transform: none; font-size: .8125rem; letter-spacing: 0; }
.portal-tablo td.text-end { white-space: nowrap; font-variant-numeric: tabular-nums; }
.portal-tablo .mesaj { max-width: 360px; white-space: normal; word-break: break-word; }
.portal-tablo .form-check-input { margin: 0; }
.cursor-pointer { cursor: pointer; }

.ozet-sayi { font-size: 1.375rem; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; color: var(--bs-heading-color, #444050); }

/* sol menü: başlıklar tek satır (rozet + okla iki satıra kırılmasın), sığmayan "…" ile kısalır */
.layout-menu .menu-link > div:not(.badge) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }
.layout-menu .menu-link > .badge { flex-shrink: 0; font-size: .6875rem; padding: .2rem .45rem; margin-left: .35rem; }
.layout-menu .menu-inner > .menu-item > .menu-link { font-size: .875rem; }
.layout-menu .menu-inner > .menu-item > .menu-link > .menu-icon { margin-right: .5rem; }
.layout-menu .menu-inner > .menu-header { margin-top: .75rem; }

/* sol menüde henüz portala taşınmamış ekranlar */
.menu-sub .menu-link.menu-yakinda { opacity: .62; }
.menu-sub .menu-link.menu-yakinda::after { content: "masaüstü"; font-size: .65rem; margin-left: auto; padding: 0 .35rem; border-radius: .25rem; background: rgba(165,163,174,.16); }

.portal-kutu { padding: .9rem 1rem; border-radius: .375rem; background: rgba(165,163,174,.08); }

.yetki-kullanicilar { max-height: 62vh; overflow-y: auto; }
.yetki-kullanicilar .list-group-item.active { background: rgba(22,112,223,.1); color: #1670DF; border-color: transparent; }
.yetki-tablo .grup-satir { cursor: pointer; background: rgba(165,163,174,.08); font-weight: 500; }
.form-text { font-size: .78rem; }

/* Sipariş modülü */
.oneri-liste { position: absolute; left: 0; right: 0; top: 100%; z-index: 1060; max-height: 320px; overflow-y: auto; box-shadow: 0 .25rem 1rem rgba(47,43,61,.16); min-width: 320px; }
.oneri-liste .list-group-item { font-size: .8125rem; text-align: left; }
.kalem-tablo { overflow: visible; }
@media (max-width: 1199.98px) { .kalem-tablo { overflow-x: auto; } }
.kalem-tablo .urun-ad { max-width: 320px; font-size: .75rem; }
.kalem-tablo .urun-btn { min-width: 260px; max-width: 360px; line-height: 1.25; }
.urun-sec-liste { max-height: calc(100vh - 300px); overflow-y: auto; }
.urun-sec-liste thead th { position: sticky; top: 0; background: var(--bs-body-bg); z-index: 1; }
.cursor-pointer { cursor: pointer; }
.sayi-giris { width: 110px; min-width: 90px; }
.sayi-giris-kisa { width: 76px; }
.onay-harf { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .6875rem; font-weight: 700;
             border: 1.5px solid #C4C3C8; color: #6D6B77; margin-right: 3px; }
.onay-harf.on { background: #1670DF; border-color: #1670DF; color: #fff; }
.hat-nokta { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; border: 2px solid #C4C3C8; }
.hat-nokta.on { background: #28C76F; border-color: #28C76F; }
.portal-tablo td.kisa-metin { max-width: 220px; min-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-tabs.overflow-auto { scrollbar-width: thin; }
/* Sipariş Listesi: sekmeler ve tablo, filtrelerle aynı iç boşlukta */
.liste-sekmeler { padding: 0 var(--bs-card-spacer-x, 1.5rem); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.liste-sekmeler::-webkit-scrollbar { display: none; }
.liste-sekmeler .nav-link { white-space: nowrap; }
.liste-govde { margin: 0 var(--bs-card-spacer-x, 1.5rem) .5rem; width: auto; }
.liste-govde .portal-tablo { border-top: 1px solid var(--bs-border-color); }
.siparis-detay { width: 460px !important; max-width: 100vw; }
.siparis-detay .card-header { padding-top: 1.25rem; }
.liste-govde .portal-tablo > :not(caption) > * > * { padding-left: .55rem; padding-right: .55rem; }
/* öneri listeleri: Vuexy list-group-item arka planı şeffaf, alttaki form görünmesin */
.oneri-liste, .list-group.position-absolute { background-color: var(--bs-paper-bg, #fff); border: 1px solid var(--bs-border-color); border-radius: .375rem; }
.oneri-liste .list-group-item, .list-group.position-absolute .list-group-item { background-color: var(--bs-paper-bg, #fff); border-left: 0; border-right: 0; }
.oneri-liste .list-group-item:first-child, .list-group.position-absolute .list-group-item:first-child { border-top: 0; }
.oneri-liste .list-group-item:hover, .oneri-liste .list-group-item:focus,
.list-group.position-absolute .list-group-item:hover, .list-group.position-absolute .list-group-item:focus { background-color: rgba(22,112,223,.08); }
.list-group.position-absolute { z-index: 1060 !important; }
/* Sipariş girişi kalem tablosu: seçim kutuları ve miktar butonu okunur genişlikte */
.kalem-tablo .kalem-secim { min-width: 96px; }
.kalem-tablo .kalem-secim.genis { min-width: 150px; }
.kalem-tablo .miktar-btn { display: flex; flex-direction: column; align-items: flex-start; min-width: 112px; line-height: 1.2; padding-top: .3rem; padding-bottom: .3rem; }
.kalem-tablo .sayi-giris { width: 96px; min-width: 84px; }
.kalem-tablo .sayi-giris-kisa { width: 70px; min-width: 64px; }
.kalem-tablo .portal-tablo > :not(caption) > * > * { padding-left: .45rem; padding-right: .45rem; }
/* Onay penceresi (onay.sor) */
.onay-penceresi .modal-dialog { max-width: 440px; }
.onay-penceresi .onay-ikon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.onay-penceresi .onay-ikon .ti { font-size: 2rem; }
.onay-penceresi .onay-mesaj { white-space: pre-line; }
.onay-penceresi .onay-detay { font-size: .875rem; }
.onay-penceresi .onay-detay > div:last-child { border-bottom: 0 !important; }
.onay-penceresi .modal-footer .btn { min-width: 130px; }
.alici-liste { max-height: 260px; overflow-y: auto; }
.alici-liste .list-group-item { cursor: pointer; }
.bg-lighter { background-color: rgba(165,163,174,.06); }
/* sürükleyerek yatay kaydırma (app.js) */
.table-responsive.surukle-kaydir { cursor: grab; }
.table-responsive.surukle-kaydir input, .table-responsive.surukle-kaydir select, .table-responsive.surukle-kaydir button,
.table-responsive.surukle-kaydir a, .table-responsive.surukle-kaydir textarea { cursor: auto; }
.table-responsive.surukle-kaydir button, .table-responsive.surukle-kaydir a { cursor: pointer; }
.table-responsive.surukleniyor, .table-responsive.surukleniyor * { cursor: grabbing !important; user-select: none; }

/* ---- Sipariş raporları */
.rapor-tablo td.rapor-metin { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rapor-tablo .rapor-ok { width: 28px; padding-right: 0 !important; color: var(--bs-secondary-color, #8a8d93); }
.rapor-alt { padding: .5rem .75rem .75rem 2rem; background: rgba(115, 103, 240, .04); border-left: 3px solid rgba(115, 103, 240, .35); }
.rapor-alt .rapor-alt { background: rgba(115, 103, 240, .06); }
.rapor-alt .table { background: transparent; }
.btn-xs { padding: .1rem .45rem; font-size: .75rem; }

/* ---- Satınalma siparişler */
.portal-tablo tr.satir-pasif td { color: var(--bs-danger, #ff4c51); }

/* ---- Genel ayarlamalar */
.ayar-satir { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem .5rem; border-bottom: 1px solid var(--bs-border-color); margin: 0 -.5rem; border-radius: .375rem; }
.ayar-satir:last-child { border-bottom: 0; }
.ayar-etiket { min-width: 0; flex: 1 1 auto; }
.ayar-aciklama { font-size: .75rem; line-height: 1.3; }
.ayar-deger { flex: 0 0 auto; }
.ayar-sayi { width: 150px; } .ayar-saat { width: 120px; } .ayar-sifre { width: 190px; }
.ayar-degisti { background: rgba(255, 159, 67, .10); }
@media (max-width: 575.98px) { .ayar-satir { flex-direction: column; align-items: flex-start; } }
.stok-panel { width: 580px !important; }
.stok-panel .min-w-0, .min-w-0 { min-width: 0; }
.stok-panel .card-header, .stok-panel .liste-sekmeler { flex-shrink: 0; }
.stok-panel .card-body { min-height: 0; }
.stok-panel .table > :not(caption) > * > * { padding: .35rem .4rem; }
.stok-panel .table thead th { text-transform: none; letter-spacing: 0; font-size: .75rem; white-space: nowrap; }
.recete-liste { max-height: 70vh; overflow-y: auto; }
.recete-tablo td { vertical-align: middle; }
.recete-tablo .form-control-sm, .recete-tablo .form-select-sm { font-size: .8125rem; }
.iliski-liste { max-height: 62vh; overflow-y: auto; }

/* Kenar çubuğu daraltılınca yalnız logo görünsün ("TPPS Portal" yazısının ilk harfi taşıyordu); üzerine gelince açılan menüde yazı geri gelir */
@media (min-width: 1200px) {
  html.layout-menu-collapsed:not(.layout-menu-hover) #layout-menu .app-brand-text { opacity: 0; width: 0; margin: 0 !important; overflow: hidden; }
  html.layout-menu-collapsed:not(.layout-menu-hover) #layout-menu .app-brand-link { overflow: hidden; }
}
