/* ==========================================================================
   Doruk Servis — arayüz
   Renk: koyu petrol menü, mineral gri zemin, "durum ışığı" turkuaz vurgu.
   Yazı: IBM Plex Sans (metin), IBM Plex Mono (IP, seri no, şifre gibi veriler).
   ========================================================================== */

:root {
    --petrol-900: #0c232b;      /* menü zemini */
    --petrol-800: #133540;      /* menü üzerinde vurgu */
    --petrol-600: #3a5c66;
    --zemin:      #eef2f1;      /* sayfa zemini */
    --yuzey:      #ffffff;
    --cizgi:      #dbe3e2;
    --murekkep:   #1b2b30;      /* ana metin */
    --soluk:      #5d7076;      /* ikincil metin */
    --sinyal:     #0e8c7a;      /* vurgu / birincil */
    --sinyal-koyu:#0a6f61;
    --sinyal-acik:#e3f4f1;
    --amber:      #e0a526;
    --kirmizi:    #c8443a;

    --yan-genislik: 252px;
    --yaricap: 10px;

    /* Bootstrap değişkenleri */
    --bs-body-font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-font-monospace: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
    --bs-body-color: var(--murekkep);
    --bs-body-bg: var(--zemin);
    --bs-secondary-color: var(--soluk);
    --bs-border-color: var(--cizgi);
    --bs-border-radius: 6px;
    --bs-border-radius-sm: 5px;
    --bs-border-radius-lg: var(--yaricap);
    --bs-primary: var(--sinyal);
    --bs-primary-rgb: 14, 140, 122;
    --bs-primary-text-emphasis: var(--sinyal-koyu);
    --bs-primary-bg-subtle: var(--sinyal-acik);
    --bs-primary-border-subtle: #b7e1da;
    --bs-link-color: var(--sinyal-koyu);
    --bs-link-color-rgb: 10, 111, 97;
    --bs-link-hover-color: #07564b;
    --bs-link-hover-color-rgb: 7, 86, 75;
    --bs-focus-ring-color: rgba(14, 140, 122, .3);
    --bs-danger: var(--kirmizi);
    --bs-danger-rgb: 200, 68, 58;
    --bs-warning: var(--amber);
    --bs-warning-rgb: 224, 165, 38;
}

body { font-size: .925rem; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
.font-monospace { font-size: .88em; }

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5 { font-weight: 600; letter-spacing: -.01em; color: var(--murekkep); }
h1.h4, .h4 { font-size: 1.35rem; }
.text-muted { color: var(--soluk) !important; }

:focus-visible { outline: 2px solid var(--sinyal); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Yerleşim: sol menü + içerik
   -------------------------------------------------------------------------- */
.uygulama { display: flex; min-height: 100vh; }

.yan-menu {
    --bs-offcanvas-width: var(--yan-genislik);
    --bs-offcanvas-bg: var(--petrol-900);
    --bs-offcanvas-color: #c9d6d8;
    background: var(--petrol-900);
    color: #c9d6d8;
    display: flex;
    flex-direction: column;
}
@media (min-width: 992px) {
    /* Bootstrap offcanvas-lg geniş ekranda arka planı şeffaf yapar; menü rengini koru */
    .yan-menu.offcanvas-lg { background-color: var(--petrol-900) !important; }
    .yan-menu {
        width: var(--yan-genislik);
        flex: 0 0 var(--yan-genislik);
        position: sticky;
        top: 0;
        height: 100vh;
    }
}

.yan-ust { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.25rem 1rem; }
.marka { display: flex; align-items: center; gap: .6rem; color: #fff; }
.marka:hover { text-decoration: none; color: #fff; }
.marka-isaret {
    width: 34px; height: 34px; border-radius: 9px;
    display: grid; place-items: center;
    background: var(--sinyal); color: #fff; font-size: 1.05rem;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,.15);
}
.marka-yazi { font-weight: 700; font-size: 1.1rem; letter-spacing: -.02em; color: #fff; }
.marka-yazi span { font-weight: 400; color: #7fc9bd; margin-left: 1px; }

.yan-gezinti { flex: 1; overflow-y: auto; padding: .25rem .75rem 1rem; }
.grup-baslik {
    font-size: .76rem; font-weight: 500; color: #6f8a90;
    padding: 1.1rem .75rem .4rem;
}
.menu-oge {
    position: relative;
    display: flex; align-items: center; gap: .75rem;
    padding: .55rem .75rem;
    margin-bottom: 2px;
    border-radius: 7px;
    color: #c9d6d8;
    font-weight: 500;
    transition: background-color .15s, color .15s;
}
.menu-oge i { font-size: 1.05rem; width: 1.2rem; text-align: center; color: #86a2a8; }
.menu-oge span:not(.sayi) { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-oge:hover { background: var(--petrol-800); color: #fff; text-decoration: none; }
.menu-oge:hover i { color: #fff; }
/* Etkin sayfa: sol kenarda yanan "durum ışığı" */
.menu-oge.aktif { background: var(--petrol-800); color: #fff; }
.menu-oge.aktif i { color: #5fd3bf; }
.menu-oge.aktif::before {
    content: ""; position: absolute; left: -.75rem; top: 8px; bottom: 8px;
    width: 3px; border-radius: 0 3px 3px 0;
    background: #5fd3bf; box-shadow: 0 0 10px rgba(95, 211, 191, .6);
}
.sayi {
    min-width: 1.6rem; padding: .1rem .45rem; border-radius: 999px;
    background: rgba(255,255,255,.1); color: #dbe6e8;
    font-size: .75rem; font-weight: 600; text-align: center;
}
.sayi.uyari { background: var(--amber); color: #2b1d00; }

.yan-alt {
    display: flex; align-items: center; gap: .5rem;
    padding: .9rem 1rem; border-top: 1px solid rgba(255,255,255,.07);
}
.kullanici { flex: 1; display: flex; align-items: center; gap: .65rem; min-width: 0; color: #fff; border-radius: 7px; padding: .25rem; }
.kullanici:hover { background: var(--petrol-800); text-decoration: none; color: #fff; }
.avatar {
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: #24525e; color: #e6f3f1; font-weight: 600; font-size: .8rem;
}
.kullanici-bilgi { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.kullanici-ad { font-weight: 600; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kullanici-rol { font-size: .75rem; color: #86a2a8; }
.cikis {
    border: 0; background: transparent; color: #86a2a8;
    width: 34px; height: 34px; border-radius: 7px; font-size: 1.1rem;
}
.cikis:hover { background: var(--petrol-800); color: #fff; }

.icerik-alani { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.icerik { padding: 1.75rem 2rem 3rem; max-width: 1600px; width: 100%; }
@media (max-width: 991.98px) { .icerik { padding: 1.25rem 1rem 2.5rem; } }

.mobil-ust {
    position: sticky; top: 0; z-index: 1020;
    display: flex; align-items: center; gap: .75rem;
    padding: .6rem 1rem; background: var(--petrol-900);
}
.menu-ac { border: 0; background: transparent; color: #fff; font-size: 1.5rem; line-height: 1; padding: .25rem; }

/* --------------------------------------------------------------------------
   Bileşenler
   -------------------------------------------------------------------------- */
.card {
    --bs-card-border-color: var(--cizgi);
    --bs-card-border-radius: var(--yaricap);
    --bs-card-inner-border-radius: calc(var(--yaricap) - 1px);
    --bs-card-cap-bg: var(--yuzey);
    border: 1px solid var(--cizgi);
    box-shadow: 0 1px 2px rgba(16, 42, 50, .04);
}
.card-header { padding: .8rem 1.1rem; border-bottom-color: var(--cizgi); }
.card-header.fw-semibold, .card-header .fw-semibold { font-size: .93rem; }
.card-body { padding: 1.1rem; }
.card-footer { border-top-color: var(--cizgi); }
.card.border-warning { border-color: #ecc66b !important; }

/* Tablolar: sade, okunur */
.table { --bs-table-bg: transparent; --bs-table-hover-bg: #f3f7f6; margin-bottom: 0; }
.table > thead.table-light > tr > th, .table-light {
    --bs-table-bg: #f6f8f8; --bs-table-color: var(--soluk);
}
.table > thead th { font-weight: 500; font-size: .8rem; color: var(--soluk); border-bottom-width: 1px; white-space: nowrap; }
.table td, .table th { vertical-align: middle; padding: .7rem .75rem; border-color: #e8eeed; }
.table-sm td, .table-sm th { padding: .45rem .6rem; }
.table > tbody > tr:last-child > td { border-bottom: 0; }
.card > .table-responsive:first-child .table thead th:first-child { border-top-left-radius: calc(var(--yaricap) - 1px); }

/* Düğmeler */
.btn { font-weight: 500; }
.btn-primary {
    --bs-btn-bg: var(--sinyal); --bs-btn-border-color: var(--sinyal);
    --bs-btn-hover-bg: var(--sinyal-koyu); --bs-btn-hover-border-color: var(--sinyal-koyu);
    --bs-btn-active-bg: #07564b; --bs-btn-active-border-color: #07564b;
    --bs-btn-disabled-bg: var(--sinyal); --bs-btn-disabled-border-color: var(--sinyal);
    --bs-btn-focus-shadow-rgb: 14, 140, 122;
}
.btn-outline-primary {
    --bs-btn-color: var(--sinyal-koyu); --bs-btn-border-color: #9fd3ca;
    --bs-btn-hover-bg: var(--sinyal); --bs-btn-hover-border-color: var(--sinyal); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--sinyal-koyu); --bs-btn-active-border-color: var(--sinyal-koyu);
    --bs-btn-focus-shadow-rgb: 14, 140, 122;
}
.btn-outline-secondary {
    --bs-btn-color: var(--murekkep); --bs-btn-border-color: var(--cizgi); --bs-btn-bg: var(--yuzey);
    --bs-btn-hover-bg: #f1f5f4; --bs-btn-hover-color: var(--murekkep); --bs-btn-hover-border-color: #c5d1cf;
    --bs-btn-active-bg: #e6eceb; --bs-btn-active-color: var(--murekkep); --bs-btn-active-border-color: #c5d1cf;
}
.btn-success {
    --bs-btn-bg: #1f8f4e; --bs-btn-border-color: #1f8f4e;
    --bs-btn-hover-bg: #187640; --bs-btn-hover-border-color: #187640;
}
.btn-danger { --bs-btn-bg: var(--kirmizi); --bs-btn-border-color: var(--kirmizi); --bs-btn-hover-bg: #a8362e; --bs-btn-hover-border-color: #a8362e; }
.btn-outline-danger { --bs-btn-color: var(--kirmizi); --bs-btn-border-color: #e7b1ac; --bs-btn-hover-bg: var(--kirmizi); --bs-btn-hover-border-color: var(--kirmizi); }
.btn-dark { --bs-btn-bg: var(--petrol-900); --bs-btn-border-color: var(--petrol-900); --bs-btn-hover-bg: var(--petrol-800); --bs-btn-hover-border-color: var(--petrol-800); }
.btn-outline-dark { --bs-btn-color: var(--petrol-900); --bs-btn-border-color: #b9c7c9; --bs-btn-hover-bg: var(--petrol-900); --bs-btn-hover-border-color: var(--petrol-900); }

/* Form alanları */
.form-control, .form-select { border-color: #cfd9d8; background-color: var(--yuzey); }
.form-control:focus, .form-select:focus { border-color: var(--sinyal); box-shadow: 0 0 0 .2rem rgba(14, 140, 122, .15); }
.form-check-input:checked { background-color: var(--sinyal); border-color: var(--sinyal); }
.form-check-input:focus { border-color: var(--sinyal); box-shadow: 0 0 0 .2rem rgba(14, 140, 122, .15); }
label.form-label { font-weight: 500; font-size: .85rem; color: #3c4f55; margin-bottom: .3rem; }
.form-text { color: var(--soluk); font-size: .8rem; }

/* Sekmeler (nav-pills): alt çizgili sekme görünümü */
.nav-pills { gap: .25rem; border-bottom: 1px solid var(--cizgi); flex-wrap: nowrap; overflow-x: auto; }
.nav-pills .nav-link {
    border-radius: 0; color: var(--soluk); font-weight: 500;
    padding: .55rem .9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.nav-pills .nav-link:hover { color: var(--murekkep); text-decoration: none; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background: transparent; color: var(--sinyal-koyu); border-bottom-color: var(--sinyal);
}
.nav-pills .nav-link .badge { font-size: .7rem; }

/* Rozetler */
.badge { font-weight: 500; letter-spacing: .01em; padding: .35em .6em; border-radius: 5px; }
.bg-primary { background-color: var(--sinyal) !important; }
.bg-info { background-color: #cfeaf3 !important; }
.bg-info.text-dark { color: #0f4b5e !important; }
.bg-warning { background-color: #f6dc9b !important; }
.bg-warning.text-dark { color: #5a3e00 !important; }
.bg-success { background-color: #2a9a5a !important; }
.bg-danger { background-color: var(--kirmizi) !important; }
.bg-secondary { background-color: #8a9ba0 !important; }
.bg-light.border { border-color: var(--cizgi) !important; }

/* Uyarılar */
.alert { border-radius: var(--yaricap); border-width: 1px; }
.alert-success { --bs-alert-bg: #e5f5ee; --bs-alert-border-color: #bfe5d2; --bs-alert-color: #145c39; }
.alert-danger  { --bs-alert-bg: #fbecea; --bs-alert-border-color: #f0c7c2; --bs-alert-color: #7d2620; }
.alert-info    { --bs-alert-bg: var(--sinyal-acik); --bs-alert-border-color: #b7e1da; --bs-alert-color: #0a4f45; }

.list-group { --bs-list-group-border-color: #e8eeed; }
.dropdown-menu { border-color: var(--cizgi); box-shadow: 0 8px 24px rgba(16, 42, 50, .12); border-radius: var(--yaricap); padding: .35rem; }
.dropdown-item { border-radius: 6px; padding: .45rem .7rem; }
.dropdown-item:active { background: var(--sinyal); }
.modal-content { border: 0; border-radius: 14px; box-shadow: 0 20px 50px rgba(12, 35, 43, .25); }

/* --------------------------------------------------------------------------
   Pano sayaçları
   -------------------------------------------------------------------------- */
.sayac { font-size: 2rem; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; margin-top: .25rem; }
a:hover .card { border-color: #b9d3cf; }
a:hover:has(.card) { text-decoration: none; }

/* --------------------------------------------------------------------------
   Ticket yazışmaları ve ekler
   -------------------------------------------------------------------------- */
.mesaj {
    background: var(--yuzey); border: 1px solid var(--cizgi);
    border-left: 3px solid #8fb3bb; border-radius: 8px;
}
.mesaj.musteri { border-left-color: var(--sinyal); }
.mesaj.dahili { border-left-color: var(--amber); background: #fffaee; border-color: #f2e2b6; }

.bekle { white-space: pre-wrap; }
.sla-asildi { color: var(--kirmizi); font-weight: 600; }

.ek { width: 132px; border-color: var(--cizgi) !important; border-radius: 8px !important; }
.ek img { width: 122px; height: 92px; object-fit: cover; border-radius: 5px; display: block; }

/* --------------------------------------------------------------------------
   Giriş ekranı
   -------------------------------------------------------------------------- */
.giris-govde { background: var(--zemin); }
.giris-sahne { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 44%) 1fr; }
.giris-sol {
    background: var(--petrol-900); color: #c9d6d8;
    padding: 3rem; display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
}
/* Arka plandaki ağ topolojisi çizimi */
.giris-sol svg.ag { position: absolute; top: 90px; right: -70px; width: 88%; max-width: 520px; opacity: .5; pointer-events: none; }
.giris-sol .marka-yazi { font-size: 1.35rem; }
.giris-sol h1 { color: #fff; font-size: 2rem; line-height: 1.2; max-width: 16ch; margin: 0 0 .75rem; position: relative; }
.giris-sol p { max-width: 38ch; color: #9fb6bb; position: relative; }
.giris-sag { display: grid; place-items: center; padding: 2rem 1.25rem; }
.giris-kutu { width: 100%; max-width: 380px; }
.giris-kutu h2 { font-size: 1.5rem; margin-bottom: .25rem; }
.giris-kutu .form-control { padding: .65rem .8rem; }
.giris-kutu .btn-primary { padding: .65rem; }
@media (max-width: 767.98px) {
    .giris-sahne { grid-template-columns: 1fr; }
    .giris-sol { padding: 1.5rem; min-height: auto; }
    .giris-sol h1, .giris-sol p { display: none; }
}

/* Basit sayfalar (yetkisiz, hata) */
.bos-durum { max-width: 460px; margin: 12vh auto 0; text-align: center; }
.bos-durum i { font-size: 2.5rem; }

/* --------------------------------------------------------------------------
   Hareket ve yazdırma
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
    body { background: #fff; }
    .yan-menu, .mobil-ust { display: none !important; }
    .icerik { padding: 0; }
    .card { box-shadow: none; border: 1px solid #ccc; }
}

/* --------------------------------------------------------------------------
   Pano durum şeridi: tek panelde bölmeli göstergeler
   -------------------------------------------------------------------------- */
.durum-seridi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    background: var(--yuzey);
    border: 1px solid var(--cizgi);
    border-radius: var(--yaricap);
    overflow: hidden;
}
.durum-hucre {
    display: flex; flex-direction: column; gap: .2rem;
    padding: 1rem 1.15rem;
    color: var(--murekkep);
    border-right: 1px solid #e8eeed;
    border-bottom: 1px solid #e8eeed;
    margin: 0 -1px -1px 0;          /* son sütun/satırdaki fazla çizgiyi gizle */
    transition: background-color .15s;
}
.durum-hucre:hover { background: #f5f9f8; text-decoration: none; color: var(--murekkep); }
.durum-baslik { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--soluk); font-weight: 500; }
.durum-hucre .sayac { font-size: 1.85rem; margin: 0; font-variant-numeric: tabular-nums; }
.durum-hucre.sonuk .sayac { color: #a9b8bb; }
.isik { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.isik-mavi    { background: #3b8fb0; }
.isik-yesil   { background: #2a9a5a; }
.isik-amber   { background: var(--amber); }
.isik-kirmizi { background: var(--kirmizi); }
.durum-hucre:not(.sonuk) .isik-amber   { box-shadow: 0 0 0 3px rgba(224, 165, 38, .22); }
.durum-hucre:not(.sonuk) .isik-kirmizi { box-shadow: 0 0 0 3px rgba(200, 68, 58, .2); }
.durum-hucre.sonuk .isik { background: #cdd7d8; box-shadow: none; }

/* E-posta durumu: log görünümü */
.log-kutusu {
    max-height: 480px; overflow: auto; padding: .9rem 1.1rem;
    font-family: var(--bs-font-monospace); font-size: .76rem; line-height: 1.5;
    background: #0f1f24; color: #b9cdd1; border-radius: 0 0 calc(var(--yaricap) - 1px) calc(var(--yaricap) - 1px);
    white-space: pre-wrap; word-break: break-word;
}
.log-kutusu .log-hata { color: #ff9b91; }
.log-kutusu .log-uyari { color: #f3cd72; }

/* ==========================================================================
   Ticket sohbeti — müşteri sağda (turkuaz), teknisyen solda (beyaz)
   ========================================================================== */
.sohbet { position: relative; display: flex; flex-direction: column; min-height: 0; }
.sohbet-akis {
    flex: 1; min-height: 0; overflow-y: auto;
    padding: 1.25rem 1rem .75rem;
    display: flex; flex-direction: column; gap: .35rem;
    background: #f3f6f5;
    background-image: radial-gradient(#e2e9e7 1px, transparent 1px);
    background-size: 18px 18px;
    overscroll-behavior: contain;
}
.sohbet-gun {
    align-self: center; margin: .75rem 0 .35rem;
    font-size: .75rem; font-weight: 500; color: var(--soluk);
    background: #e4ebe9; padding: .2rem .7rem; border-radius: 999px;
}
.balon-satir { display: flex; }
.balon-satir.sag { justify-content: flex-end; }
.balon-satir.sol { justify-content: flex-start; }
.balon {
    max-width: min(78%, 560px);
    padding: .5rem .75rem .35rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #dfe7e5;
    box-shadow: 0 1px 1px rgba(16, 42, 50, .04);
    font-size: .92rem; line-height: 1.45;
    overflow-wrap: anywhere;
}
.balon-satir.sol .balon { border-bottom-left-radius: 4px; }
.balon-satir.sag .balon {
    background: var(--sinyal); border-color: var(--sinyal); color: #fff;
    border-bottom-right-radius: 4px;
}
.balon-satir.dahili .balon { background: #fff7e0; border-color: #f0dca3; color: #4a3a0c; }
.balon-ust { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin-bottom: .1rem; }
.balon-yazan { font-size: .76rem; font-weight: 600; color: var(--sinyal-koyu); }
.balon-satir.sag .balon-yazan { color: rgba(255, 255, 255, .85); }
.balon-satir.dahili .balon-yazan { color: #7a5b00; }
.balon-etiket { font-size: .7rem; color: #8a6d1d; }
.balon-metin { white-space: pre-wrap; }
.balon-metin a { color: inherit; text-decoration: underline; }
.balon-saat { font-size: .68rem; color: var(--soluk); text-align: right; margin-top: .15rem; }
.balon-satir.sag .balon-saat { color: rgba(255, 255, 255, .75); }

.balon-ekler { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.balon-resim img { display: block; max-width: 220px; max-height: 200px; border-radius: 9px; object-fit: cover; }
.balon-dosya {
    display: flex; align-items: center; gap: .5rem;
    padding: .45rem .6rem; border-radius: 9px; max-width: 260px;
    background: rgba(0, 0, 0, .04); color: inherit; text-decoration: none;
}
.balon-satir.sag .balon-dosya { background: rgba(255, 255, 255, .16); }
.balon-dosya:hover { text-decoration: none; color: inherit; filter: brightness(.97); }
.balon-dosya i { font-size: 1.3rem; }
.balon-dosya > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.dosya-ad { font-size: .82rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dosya-boyut { font-size: .7rem; opacity: .75; }

.sohbet-bos { margin: auto; text-align: center; color: var(--soluk); font-size: .88rem; max-width: 34ch; }
.sohbet-bos-baslik { font-weight: 600; color: var(--murekkep); margin-bottom: .25rem; }

.sohbet-yeni {
    position: absolute; left: 50%; transform: translateX(-50%); bottom: 118px; z-index: 2;
    border: 0; border-radius: 999px; padding: .35rem .9rem;
    background: var(--petrol-900); color: #fff; font-size: .8rem; font-weight: 500;
    box-shadow: 0 6px 16px rgba(12, 35, 43, .25);
}

.sohbet-alt { border-top: 1px solid var(--cizgi); background: #fff; padding: .6rem .75rem .5rem; }
.sohbet-uyari { font-size: .82rem; color: #7d2620; background: #fbecea; border-radius: 8px; padding: .4rem .65rem; margin-bottom: .5rem; }
.sohbet-kapali { font-size: .88rem; color: var(--soluk); padding: .5rem .25rem; }
.sohbet-dosyalar { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-bottom: .45rem; }
.secili-dosya { font-size: .75rem; background: var(--sinyal-acik); color: var(--sinyal-koyu); border-radius: 6px; padding: .15rem .5rem; }

.sohbet-yaz-satir { display: flex; align-items: flex-end; gap: .45rem; }
.sohbet-yaz textarea {
    flex: 1; resize: none; min-height: 42px; max-height: 160px;
    border: 1px solid #cfd9d8; border-radius: 21px;
    padding: .55rem 1rem; font: inherit; font-size: .93rem; line-height: 1.4;
    background: #f7faf9;
}
.sohbet-yaz textarea:focus { outline: none; border-color: var(--sinyal); background: #fff; box-shadow: 0 0 0 .2rem rgba(14, 140, 122, .14); }
.sohbet-ek-dugme, .sohbet-gonder {
    flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer; margin: 0;
    font-size: 1.15rem; border: 0;
}
.sohbet-ek-dugme { color: var(--soluk); background: transparent; }
.sohbet-ek-dugme:hover { background: #eef3f2; color: var(--murekkep); }
.sohbet-ek-dugme:focus-within { outline: 2px solid var(--sinyal); outline-offset: 2px; }
.sohbet-gonder { background: var(--sinyal); color: #fff; }
.sohbet-gonder:hover { background: var(--sinyal-koyu); }
.sohbet-gonder:disabled { opacity: .55; }
.sohbet-yaz-alt { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: .4rem; padding: 0 .3rem; font-size: .72rem; color: var(--soluk); }
.sohbet-yaz-alt input[name=ad] { border: 0; border-bottom: 1px dashed #cfd9d8; background: transparent; font-size: .78rem; padding: .1rem 0; width: 190px; max-width: 50%; }
.sohbet-yaz-alt input[name=ad]:focus { outline: none; border-bottom-color: var(--sinyal); }
.sohbet-yaz-alt label { display: flex; align-items: center; gap: .35rem; cursor: pointer; }

/* Karşı tarafın çevrimiçi göstergesi */
.karsi-durum { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; color: var(--soluk); }
.karsi-durum .nokta { width: 7px; height: 7px; border-radius: 50%; background: #b7c4c6; }
[data-karsi-durum].cevrimici .nokta { background: #2a9a5a; box-shadow: 0 0 0 3px rgba(42, 154, 90, .2); }

/* --- Müşteri sohbet sayfası (tam ekran) --- */
.sohbet-govde { background: var(--zemin); height: 100%; }
.sohbet-sahne {
    height: 100vh; height: 100dvh;
    max-width: 880px; margin: 0 auto;
    display: flex; flex-direction: column;
    background: #fff; border-left: 1px solid var(--cizgi); border-right: 1px solid var(--cizgi);
}
.sohbet-sahne .sohbet { flex: 1; }
.sohbet-baslik {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
    padding: .75rem 1rem; background: var(--petrol-900); color: #fff;
}
.sohbet-marka { display: flex; align-items: center; gap: .5rem; }
.sohbet-marka .marka-isaret { width: 30px; height: 30px; font-size: .95rem; }
.sohbet-ticket { min-width: 0; padding-left: 1rem; border-left: 1px solid rgba(255, 255, 255, .12); }
.sohbet-ticket-no { font-size: .74rem; color: #8fb0b6; }
.sohbet-konu { font-size: 1rem; font-weight: 600; color: #fff; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sohbet-karsi { display: flex; align-items: center; gap: .55rem; }
.sohbet-karsi .karsi-ad { font-size: .84rem; font-weight: 600; }
.sohbet-karsi .karsi-durum { color: #8fb0b6; }
.avatar-kucuk {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: #24525e; color: #e6f3f1; font-weight: 600; font-size: .78rem; flex: 0 0 34px;
}
.sohbet-sahne .sohbet-alt { padding-bottom: max(.5rem, env(safe-area-inset-bottom)); }
@media (max-width: 640px) {
    .sohbet-baslik { grid-template-columns: 1fr auto; gap: .5rem .75rem; }
    .sohbet-marka { display: none; }
    .sohbet-ticket { padding-left: 0; border-left: 0; }
    .sohbet-karsi .karsi-ad { display: none; }
    .balon { max-width: 86%; }
    .sohbet-yaz-alt span { display: none; }
    .sohbet-yaz-alt input[name=ad] { max-width: 100%; width: 100%; }
}

/* --- Personel ticket ekranındaki sohbet --- */
.sohbet-kart { overflow: hidden; }
.sohbet-kart .sohbet { height: min(68vh, 720px); }
.sohbet-kart .card-header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Kurumsal logo (Doruk Bilişim)
   logo.png: açık zemin · logo-koyu.png: koyu zemin (saydam)
   -------------------------------------------------------------------------- */
.yan-ust { padding: 1.1rem 1rem .75rem 1.1rem; }
.marka { display: block; line-height: 0; border-radius: 6px; }
.marka-logo { width: 100%; max-width: 205px; height: auto; display: block; }
.mobil-logo { height: 30px; width: auto; }

.giris-sol { justify-content: space-between; gap: 2rem; }
.giris-logo { width: min(460px, 92%); height: auto; display: block; margin-top: 8vh; }
@media (max-width: 767.98px) {
    .giris-logo { width: 220px; margin: 0 auto; }
    .giris-sol { align-items: center; }
}

.sohbet-marka img { height: 44px; width: auto; display: block; }

/* ==========================================================================
   Yerinde destek
   ========================================================================== */

/* İş akışı adımları: Planlandı → Sahada → Tamamlandı → Onay */
.adim-cizgisi { display: flex; list-style: none; padding: 0; margin: 0; counter-reset: adim; }
.adim-cizgisi li {
    flex: 1; position: relative; text-align: center; font-size: .75rem; color: var(--soluk);
    padding-top: 22px; counter-increment: adim;
}
.adim-cizgisi li::before {
    content: counter(adim); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 18px; height: 18px; border-radius: 50%; background: var(--yuzey); border: 2px solid var(--cizgi);
    font-size: .65rem; line-height: 14px; font-weight: 600; color: var(--soluk); z-index: 1;
}
.adim-cizgisi li + li::after {
    content: ""; position: absolute; top: 8px; right: 50%; width: 100%; height: 2px; background: var(--cizgi);
}
.adim-cizgisi li.gecti::before { background: var(--sinyal); border-color: var(--sinyal); color: #fff; content: "✓"; }
.adim-cizgisi li.gecti + li.gecti::after, .adim-cizgisi li.gecti::after { background: var(--sinyal); }
.adim-cizgisi li.simdi span { color: var(--murekkep); font-weight: 600; }
.adim-cizgisi li.bekliyor::before { border-color: var(--amber); background: #fff7e3; color: #8a5d00; content: "…"; }

/* Müşteri imzası */
.imza-alani {
    position: relative; height: 170px; border: 1.5px dashed #b9c7c5; border-radius: 8px;
    background: repeating-linear-gradient(to bottom, transparent 0 129px, #d8e2e0 129px 130px, transparent 130px 170px), #fbfdfc;
    touch-action: none;
}
.imza-alani canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.imza-ipucu {
    position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: .75rem;
    color: #9aaba8; pointer-events: none; transition: opacity .2s;
}
.imza-alani.dolu .imza-ipucu { opacity: 0; }
.imza-gorsel { display: block; max-width: 100%; max-height: 120px; border: 1px solid var(--cizgi); border-radius: 6px; background: #fff; }

/* Yöneticinin fatura kararı */
.fatura-karari { display: grid; gap: 6px; }
.fatura-secenek {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--cizgi);
    border-radius: 8px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s;
}
.fatura-secenek i { font-size: 1.1rem; color: var(--soluk); }
.fatura-secenek span { display: flex; flex-direction: column; line-height: 1.25; }
.fatura-secenek small { color: var(--soluk); font-size: .75rem; }
.fatura-secenek:hover { border-color: #b7e1da; }
.btn-check:checked + .fatura-secenek { border-color: var(--sinyal); background: var(--sinyal-acik); box-shadow: inset 0 0 0 1px var(--sinyal); }
.btn-check:checked + .fatura-secenek i { color: var(--sinyal); }
.btn-check:focus-visible + .fatura-secenek { outline: 2px solid var(--sinyal); outline-offset: 2px; }

/* Onay ekranları üst menüsü */
.onay-menu {
    display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #fff;
    border: 1px solid var(--cizgi); border-radius: 10px;
}
.onay-menu-oge {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 7px;
    color: var(--soluk); font-weight: 500; font-size: .875rem;
}
.onay-menu-oge:hover { background: var(--zemin); color: var(--murekkep); text-decoration: none; }
.onay-menu-oge.aktif { background: var(--petrol-900); color: #fff; }
.onay-menu-oge.aktif .badge { box-shadow: 0 0 0 2px var(--petrol-900); }

/* ==========================================================================
   Teklif
   ========================================================================== */

.kalem-tablo td { padding: 4px 6px; vertical-align: middle; }
.kalem-tablo .tutar { font-variant-numeric: tabular-nums; color: var(--soluk); }
.toplam-ozet td { padding: 2px 0 2px 24px; font-variant-numeric: tabular-nums; }
.toplam-ozet td:last-child { text-align: right; min-width: 130px; }
.surec .bi { width: 1.2em; display: inline-block; }

/* Teklif belgesi (personel, yazdırma ve müşteri sayfasında aynı) */
.teklif-belge {
    position: relative; overflow: hidden; background: #fff; border: 1px solid var(--cizgi); border-radius: 12px;
    padding: 36px 40px 32px; color: var(--murekkep); font-size: .9rem;
    box-shadow: 0 1px 2px rgba(12, 35, 43, .04), 0 8px 24px -12px rgba(12, 35, 43, .12);
}
.tb-filigran {
    position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%) rotate(-24deg);
    font-size: 7rem; font-weight: 700; letter-spacing: .1em; color: rgba(200, 68, 58, .07); pointer-events: none; white-space: nowrap;
}
.tb-ust { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 18px; border-bottom: 3px solid var(--sinyal); }
.tb-logo { height: 58px; width: auto; }
.tb-firma { text-align: right; font-size: .75rem; line-height: 1.5; color: var(--soluk); max-width: 46ch; }
.tb-firma strong { color: var(--murekkep); }
.tb-bilgi { display: flex; justify-content: space-between; gap: 24px; margin: 22px 0 18px; flex-wrap: wrap; }
.tb-etiket { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--soluk); }
.tb-musteri { font-size: 1.1rem; font-weight: 600; }
.tb-alici { font-size: .825rem; line-height: 1.5; }
.tb-kunye { display: grid; grid-template-columns: auto auto; gap: 2px 18px; margin: 0; font-size: .825rem; align-self: flex-start; }
.tb-kunye dt { color: var(--soluk); font-weight: 400; }
.tb-kunye dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.tb-konu { font-size: 1.25rem; margin: 6px 0 10px; }
.tb-konu span {
    display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sinyal); font-weight: 600; margin-bottom: 2px;
}
.tb-onyazi { white-space: pre-wrap; color: #34474d; }
.tb-kalemler { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tb-kalemler th {
    font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--soluk); font-weight: 600;
    padding: 8px 10px; border-bottom: 1.5px solid var(--murekkep); background: #f6f9f8;
}
.tb-kalemler td { padding: 9px 10px; border-bottom: 1px solid var(--cizgi); vertical-align: top; }
.tb-kalemler .tb-sira { width: 34px; color: var(--soluk); }
.tb-aciklama { white-space: pre-wrap; }
.tb-toplam { margin: 12px 0 0 auto; border-collapse: collapse; min-width: 300px; font-variant-numeric: tabular-nums; }
.tb-toplam td { padding: 4px 10px; }
.tb-toplam td:last-child { text-align: right; }
.tb-toplam .tb-genel td { border-top: 1.5px solid var(--murekkep); padding-top: 8px; font-size: 1.05rem; font-weight: 700; }
.tb-genel td:last-child { color: var(--sinyal-koyu); }
.tb-kosullar { margin-top: 26px; padding: 14px 18px; background: #f6f9f8; border-radius: 8px; font-size: .8rem; }
.tb-kosullar h3 { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--soluk); margin: 0 0 6px; }
.tb-kosullar ul { margin: 0; padding-left: 1.1rem; }
.tb-alt { margin-top: 26px; font-size: .85rem; }
.tb-birim-mobil { display: none; }
@media (max-width: 575.98px) {
    .teklif-belge { padding: 22px 16px; border-radius: 0; border-left: 0; border-right: 0; }
    .tb-ust { flex-direction: column; }
    .tb-firma { text-align: left; }
    .tb-toplam { min-width: 0; width: 100%; }
    .tb-filigran { font-size: 4rem; }
    .tb-birim { display: none; }
    .tb-birim-mobil { display: block; font-size: .75rem; color: var(--soluk); }
    .tb-kalemler th, .tb-kalemler td { padding-left: 6px; padding-right: 6px; }
}

/* Yazdırma sayfası ve müşteri teklif sayfası */
.yazdir-govde { background: #fff; padding: 12px; }
.yazdir-govde .teklif-belge { max-width: 860px; margin: 0 auto; box-shadow: none; }

.musteri-teklif-govde { background: var(--zemin); min-height: 100vh; }
.mt-ust {
    display: flex; justify-content: space-between; align-items: center; padding: 12px 20px;
    background: var(--petrol-900); position: sticky; top: 0; z-index: 10;
}
.mt-ust img { height: 38px; width: auto; }
.mt-sahne { max-width: 900px; margin: 0 auto; padding: 20px 16px 48px; }
.mt-ozet {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--cizgi); border-left: 4px solid var(--sinyal); border-radius: 10px;
    padding: 14px 18px; margin-bottom: 16px;
}
.mt-ozet-etiket { font-size: .75rem; color: var(--soluk); text-transform: uppercase; letter-spacing: .06em; }
.mt-ozet-tutar { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.mt-sonuc {
    display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 10px; margin-bottom: 16px;
    background: #fff; border: 1px solid var(--cizgi);
}
.mt-sonuc > i { font-size: 1.8rem; line-height: 1; }
.mt-sonuc.kabul { border-color: #b8e0c8; background: #eef9f2; }
.mt-sonuc.kabul > i { color: #2a9a5a; }
.mt-sonuc.ret > i { color: var(--soluk); }
.mt-yanit { background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; padding: 20px 22px; margin-top: 16px; }
.mt-alt { text-align: center; color: var(--soluk); font-size: .8rem; margin-top: 24px; }

@media print {
    .teklif-belge { border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0; }
    .tb-filigran { color: rgba(0, 0, 0, .08); }
    .tb-kalemler th, .tb-kosullar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .musteri-teklif-govde, .yazdir-govde { background: #fff; padding: 0; }
    .mt-sahne { padding: 0; max-width: none; }
    .no-print { display: none !important; }
    @page { margin: 14mm; }
}

/* ==========================================================================
   Haftalık takvim
   ========================================================================== */
.takvim-arac { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.takvim-hafta {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, .8fr));
    background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; overflow: hidden;
}
.takvim-gun { border-right: 1px solid var(--cizgi); min-height: 420px; display: flex; flex-direction: column; min-width: 0; }
.takvim-gun:last-child { border-right: 0; }
.takvim-gun.haftasonu { background: #f8faf9; }
.takvim-gun > header {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 6px;
    padding: 10px 10px 8px; border-bottom: 1px solid var(--cizgi);
}
.gun-ad { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--soluk); }
.gun-no { display: block; font-size: 1.35rem; font-weight: 600; line-height: 1.1; }
.takvim-gun.bugun > header { background: var(--sinyal-acik); }
.takvim-gun.bugun .gun-no {
    display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: var(--sinyal); color: #fff; font-size: 1.1rem; margin-top: 2px;
}
.takvim-gun.gecmis .gun-no { color: var(--soluk); }
.gun-sag { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.gun-sure { font-size: .7rem; color: var(--soluk); white-space: nowrap; }
.gun-ekle {
    display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
    color: var(--soluk); border: 1px dashed var(--cizgi);
}
.gun-ekle:hover { color: var(--sinyal); border-color: var(--sinyal); background: #fff; text-decoration: none; }
.gun-isler { padding: 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gun-bos { color: #c3cecc; text-align: center; padding-top: 12px; }

/* İş kartı: sol çizgi ve zemin durumu gösterir */
.tk-kart {
    --tk: var(--sinyal); --tk-zemin: #f2faf8;
    display: flex; flex-direction: column; gap: 1px; padding: 6px 8px 6px 9px; border-radius: 7px;
    border-left: 4px solid var(--tk); background: var(--tk-zemin); color: var(--murekkep);
    font-size: .78rem; line-height: 1.3; min-width: 0; transition: box-shadow .12s, transform .12s;
}
.tk-kart:hover { text-decoration: none; color: var(--murekkep); box-shadow: 0 2px 8px rgba(12, 35, 43, .12); transform: translateY(-1px); }
.tk-saat { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--tk); display: flex; gap: 6px; align-items: center; }
.tk-musteri { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-konu { color: var(--soluk); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tk-kisiler { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.tk-avatar {
    display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
    background: #fff; border: 1px solid var(--cizgi); font-size: .62rem; font-weight: 600; color: var(--petrol-600);
}
.tk-atanmadi { font-size: .7rem; color: var(--kirmizi); }
.tk-anlik {
    font-size: .6rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
    padding: 0 4px; border-radius: 3px; background: #fff; color: var(--soluk); border: 1px solid var(--cizgi);
}

.tk-planli   { --tk: #2f6fb3; --tk-zemin: #eef4fb; }
.tk-gecikmis { --tk: var(--kirmizi); --tk-zemin: #fdf1f0; border-left-style: dashed; }
.tk-taslak   { --tk: #b07a06; --tk-zemin: #fdf6e6; }
.tk-onayda   { --tk: #0e8c7a; --tk-zemin: #eaf6f3; }
.tk-duzeltme { --tk: var(--kirmizi); --tk-zemin: #fdf1f0; }
.tk-onayli   { --tk: #5d7076; --tk-zemin: #f1f4f4; }

.takvim-lejant { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: .75rem; color: var(--soluk); }
.takvim-lejant > span[class^="tk-"] { border: 0; background: none; padding: 0; }
.takvim-lejant > span[class^="tk-"]::before {
    content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px;
    background: var(--tk);
}
.takvim-lejant > span.tk-gecikmis::before { background: repeating-linear-gradient(180deg, var(--tk) 0 3px, transparent 3px 5px); border: 1px solid var(--tk); }

/* Teknisyen görünümü */
.takvim-kisi { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 900px; }
.takvim-kisi th, .takvim-kisi td { border: 1px solid var(--cizgi); padding: 6px; vertical-align: top; }
.takvim-kisi thead th {
    background: #f6f9f8; font-size: .75rem; font-weight: 500; color: var(--soluk); text-align: center; text-transform: capitalize;
}
.takvim-kisi thead th strong { color: var(--murekkep); font-size: .95rem; margin-left: 2px; }
.takvim-kisi th.kisi-ad { width: 170px; text-align: left; font-size: .85rem; font-weight: 600; background: #fff; }
.takvim-kisi thead th.kisi-ad { background: #f6f9f8; }
.takvim-kisi .bugun { background: #f2faf8; }
.takvim-kisi thead th.bugun { background: var(--sinyal-acik); }
.takvim-kisi .haftasonu { background: #f8faf9; }
.takvim-kisi td { height: 72px; }
.takvim-kisi .tk-kart.kucuk { margin-bottom: 4px; padding: 4px 6px 4px 7px; font-size: .72rem; }
.hucre-ekle { display: block; text-align: center; color: transparent; border-radius: 5px; font-size: .9rem; }
.takvim-kisi td:hover .hucre-ekle { color: var(--soluk); background: var(--zemin); }
.hucre-ekle:hover { text-decoration: none; color: var(--sinyal) !important; }

@media (max-width: 991.98px) {
    .takvim-hafta { grid-template-columns: 1fr; }
    .takvim-gun { min-height: 0; border-right: 0; border-bottom: 1px solid var(--cizgi); }
    .takvim-gun > header { align-items: center; }
    .takvim-gun > header > div:first-child { display: flex; gap: 8px; align-items: baseline; }
    .gun-sag { flex-direction: row; align-items: center; }
    .gun-bos { padding: 0 0 4px; text-align: left; }
    .takvim-gun.gecmis:not(.bugun) .gun-bos { display: none; }
}
@media print {
    .takvim-arac, .takvim-lejant .ms-auto, .gun-ekle, .hucre-ekle { display: none !important; }
    .takvim-gun { min-height: 0; }
}

/* Destek türü seçimi */
.tur-secim { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tur-secenek {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--cizgi);
    border-radius: 8px; background: #fff; cursor: pointer; font-weight: 500; color: var(--soluk);
}
.tur-secenek i { font-size: 1.05rem; }
.tur-secenek:hover { border-color: #b7e1da; color: var(--murekkep); }
.btn-check:checked + .tur-secenek { border-color: var(--sinyal); background: var(--sinyal-acik); color: var(--sinyal-koyu); box-shadow: inset 0 0 0 1px var(--sinyal); }
.btn-check:focus-visible + .tur-secenek { outline: 2px solid var(--sinyal); outline-offset: 2px; }
.tur-ikon { color: var(--soluk); }
.tk-tur { font-size: .8rem; opacity: .75; margin-left: auto; }

/* Envanter müşteri seçimi */
.envanter-musteriler { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.envanter-musteri {
    display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: #fff;
    border: 1px solid var(--cizgi); border-radius: 10px; color: var(--murekkep); transition: border-color .12s, box-shadow .12s;
}
.envanter-musteri:hover { text-decoration: none; color: var(--murekkep); border-color: var(--sinyal); box-shadow: 0 2px 10px rgba(12, 35, 43, .08); }
.envanter-musteri.bos { gap: 2px; background: #fafcfb; }
.em-turler { display: flex; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: var(--soluk); }

/* ==========================================================================
   Ticket: e-posta metni ve durum / öncelik düğmeleri
   ========================================================================== */
.eposta-metin { position: relative; }
.eposta-metin.kisaltilmis .eposta-govde {
    max-height: 15.5em; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
    mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.eposta-tamami {
    border: 0; background: none; padding: 4px 0 0; color: var(--sinyal-koyu); font-size: .825rem; font-weight: 500;
}
.eposta-tamami:hover { text-decoration: underline; }
.eposta-ek { margin-top: 8px; font-size: .825rem; }
.eposta-ek summary {
    display: inline-flex; align-items: center; gap: 4px; cursor: pointer; list-style: none;
    padding: 2px 10px; border: 1px solid var(--cizgi); border-radius: 999px; color: var(--soluk); background: #f7faf9;
}
.eposta-ek summary::-webkit-details-marker { display: none; }
.eposta-ek summary::before { content: "···"; letter-spacing: 1px; font-weight: 700; }
.eposta-ek[open] summary { margin-bottom: 6px; }
.eposta-ek > div { color: var(--soluk); border-left: 3px solid var(--cizgi); padding-left: 10px; }

.balon-ek-ac {
    display: inline-block; margin-top: 4px; border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.6);
    border-radius: 999px; padding: 0 8px; font-size: .72rem; color: var(--soluk);
}
.balon-ek { margin-top: 6px; font-size: .8rem; opacity: .8; border-left: 2px solid rgba(0,0,0,.12); padding-left: 8px; }

.secim-dugmeleri { display: flex; flex-wrap: wrap; gap: 6px; }
.secim-dugme {
    --renk: var(--soluk);
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 8px;
    border: 1px solid var(--cizgi); background: #fff; color: var(--murekkep); font-size: .82rem; font-weight: 500;
    cursor: pointer; user-select: none; transition: background .12s, border-color .12s, color .12s;
}
.secim-dugme:hover { border-color: var(--renk); }
.secim-dugme .nokta { width: 8px; height: 8px; border-radius: 50%; background: var(--renk); }
.btn-check:checked + .secim-dugme { background: var(--renk); border-color: var(--renk); color: #fff; }
.btn-check:checked + .secim-dugme .nokta { background: #fff; }
.btn-check:focus-visible + .secim-dugme { outline: 2px solid var(--sinyal); outline-offset: 2px; }
.oncelikler { display: grid; grid-template-columns: repeat(4, 1fr); }
.oncelikler .secim-dugme { justify-content: center; padding: 5px 4px; }

.durum-acik { --renk: #2f6fb3; }
.durum-islemde { --renk: #0e8c7a; }
.durum-musteribekleniyor { --renk: #b07a06; }
.durum-cozuldu { --renk: #2a9a5a; }
.durum-kapandi { --renk: #5d7076; }
.oncelik-dusuk { --renk: #8a9a9e; }
.oncelik-normal { --renk: #2f6fb3; }
.oncelik-yuksek { --renk: #c98a12; }
.oncelik-kritik { --renk: var(--kirmizi); }
form.kaydediliyor .secim-dugmeleri { opacity: .6; pointer-events: none; }

/* ==========================================================================
   Müşteri envanteri: kart görünümü
   ========================================================================== */
.env-turler { display: flex; flex-wrap: wrap; gap: 6px; }
.env-turler a {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    background: #fff; border: 1px solid var(--cizgi); color: var(--murekkep); font-size: .82rem;
}
.env-turler a:hover { border-color: var(--sinyal); text-decoration: none; }
.env-turler a span { color: var(--soluk); font-variant-numeric: tabular-nums; }

.env-grup { margin-bottom: 26px; scroll-margin-top: 16px; }
.env-grup > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.env-grup h2 { font-size: .95rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.env-grup h2 i { color: var(--sinyal); }

.env-kartlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.env-kart {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--cizgi); border-radius: 12px;
    overflow: hidden; transition: border-color .12s, box-shadow .12s;
}
.env-kart:hover { border-color: #b7e1da; box-shadow: 0 4px 16px -6px rgba(12, 35, 43, .16); }
.env-kart.pasif { opacity: .6; }
.env-kart-ust { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; color: var(--murekkep); }
.env-kart-ust:hover { text-decoration: none; color: var(--murekkep); }
.env-kart-ust:hover strong { color: var(--sinyal-koyu); }
.env-ikon {
    flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
    background: var(--sinyal-acik); color: var(--sinyal-koyu); font-size: 1.2rem;
}
.env-baslik { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.env-baslik strong { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.env-baslik small { color: var(--soluk); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.env-bilgi {
    display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; padding: 4px 16px 12px;
    font-size: .82rem; flex: 1; align-content: start;
}
.env-bilgi dt { color: var(--soluk); font-weight: 400; white-space: nowrap; }
.env-bilgi dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.env-bilgi dd a { color: var(--sinyal-koyu); }
.env-bilgi dd a i { font-size: .7rem; }
.kopyala { cursor: copy; border-radius: 4px; padding: 0 2px; margin: 0 -2px; }
.kopyala:hover { background: var(--zemin); }
.kopyala.kopyalandi { background: var(--sinyal-acik); }
.kopyala.kopyalandi::after { content: " ✓ kopyalandı"; font-family: var(--bs-body-font-family); font-size: .7rem; color: var(--sinyal-koyu); }

.env-alt {
    display: flex; align-items: center; gap: 14px; padding: 8px 16px; border-top: 1px solid var(--cizgi);
    background: #f8faf9; font-size: .78rem; color: var(--soluk);
}
.env-alt a { color: var(--soluk); }
.env-alt a:hover { color: var(--sinyal-koyu); text-decoration: none; }
.env-bitis.yakin { color: #9a6a00; font-weight: 600; }
.env-bitis.gecti { color: var(--kirmizi); font-weight: 600; }
.parca-fiyat { display: inline-flex; align-items: center; gap: 4px; }
.parca-fiyat input { width: 96px; }

/* Ticket: müşterinin ilk mesajı (gelen e-posta) — belirgin kart */
.talep-kart { border-left: 4px solid var(--sinyal); overflow: hidden; background: #fff; box-shadow: 0 2px 10px -4px rgba(12, 35, 43, .12); }
.talep-ust {
    display: flex; align-items: center; gap: 12px; padding: 12px 18px;
    background: linear-gradient(90deg, var(--sinyal-acik), #f7fbfa); border-bottom: 1px solid #d3ebe6;
}
.talep-avatar {
    flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    background: var(--sinyal); color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .02em;
}
.talep-kim { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.talep-kim strong { color: var(--petrol-900); font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.talep-kim span { color: var(--petrol-600); font-size: .78rem; }
.talep-kaynak {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
    background: #fff; border: 1px solid #b7e1da; color: var(--sinyal-koyu); font-size: .75rem; font-weight: 600;
}
.talep-govde { padding: 16px 18px 18px; background: #fff; }
.talep-govde .eposta-govde { font-size: 1.02rem; line-height: 1.6; color: #0f1f24; font-weight: 450; }

/* Atanmamış ticket uyarısı */
.atanmamis-uyari {
    display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 10px;
    background: #fff8e6; border: 1px solid #f0d58a; border-left: 4px solid var(--amber); color: #5a4207;
}
.atanmamis-uyari > i { font-size: 1.6rem; color: #c48a00; }
.atama-ikon {
    display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
    background: var(--sinyal-acik); color: var(--sinyal); font-size: 1.8rem;
}

/* ==========================================================================
   Bakım takvimi
   ========================================================================== */
.bakim-ay { min-width: 130px; text-align: center; font-weight: 600; font-size: 1.05rem; }
.bakim-rozet { background: #ede7fb; color: #5b3fb0; border: 1px solid #d9cdf6; }

.bakim-ozet {
    display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)) minmax(220px, 1.6fr); gap: 0;
    background: #fff; border: 1px solid var(--cizgi); border-radius: 12px; overflow: hidden;
}
.bakim-ozet > div { padding: 12px 16px; border-right: 1px solid var(--cizgi); display: flex; flex-direction: column; gap: 2px; }
.bakim-ozet > div:last-child { border-right: 0; }
.bakim-ozet span { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--soluk); }
.bakim-ozet strong { font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bakim-ozet small { color: var(--soluk); font-size: .75rem; }
.bakim-ozet .eksik strong { color: var(--kirmizi); }
.bakim-ilerleme .progress { height: 10px; margin: 8px 0 4px; background: var(--zemin); }
.bakim-ilerleme .progress-bar { background: var(--sinyal); }
@media (max-width: 991.98px) { .bakim-ozet { grid-template-columns: repeat(2, 1fr); } .bakim-ozet > div { border-bottom: 1px solid var(--cizgi); } }

.bakim-oto { border-left: 4px solid var(--sinyal); }
.bakim-hedef {
    display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    background: var(--sinyal-acik); color: var(--sinyal-koyu); font-weight: 700;
}
.bakim-slotlar { display: flex; flex-wrap: wrap; gap: 6px; }
.bakim-slot {
    --tk: var(--sinyal); --tk-zemin: #f2faf8;
    display: inline-flex; flex-direction: column; min-width: 92px; padding: 5px 10px; border-radius: 8px;
    background: var(--tk-zemin); border-left: 4px solid var(--tk); color: var(--murekkep); line-height: 1.25;
}
.bakim-slot:hover { text-decoration: none; color: var(--murekkep); box-shadow: 0 2px 8px rgba(12, 35, 43, .12); }
.bakim-slot strong { font-size: .82rem; color: var(--tk); }
.bakim-slot span { font-size: .72rem; color: var(--soluk); }
.bakim-slot.bos { --tk: #9aabaa; background: #fff; border: 1.5px dashed #c5d3d1; border-left-width: 1.5px; }
.bakim-slot.bos:hover { border-color: var(--sinyal); }
.bakim-slot.bos strong { color: var(--sinyal-koyu); }
.bakim-slot.yapilmadi { --tk: var(--kirmizi); border-color: #f0c4bf; }
.bakim-slot.yapilmadi strong, .bakim-slot.yapilmadi span { color: var(--kirmizi); }

.ay-takvim {
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: #fff;
    border: 1px solid var(--cizgi); border-radius: 12px; overflow: hidden;
}
.ay-baslik { padding: 8px; font-size: .72rem; font-weight: 600; text-transform: uppercase; color: var(--soluk); text-align: center; background: #f6f9f8; border-bottom: 1px solid var(--cizgi); }
.ay-gun { min-height: 96px; padding: 6px; border-right: 1px solid var(--cizgi); border-bottom: 1px solid var(--cizgi); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ay-gun:nth-child(7n) { border-right: 0; }
.ay-gun.haftasonu { background: #fafcfb; }
.ay-gun.disarida { background: #f4f7f6; }
.ay-gun.disarida .ay-gun-no { color: #b8c4c2; }
.ay-gun-ust { display: flex; justify-content: space-between; align-items: center; }
.ay-gun-no { font-size: .8rem; font-weight: 600; color: var(--murekkep); }
.ay-gun.bugun .ay-gun-no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sinyal); color: #fff; }
.ay-ekle { color: transparent; font-size: .9rem; line-height: 1; border-radius: 4px; padding: 0 3px; }
.ay-gun:hover .ay-ekle { color: var(--soluk); }
.ay-ekle:hover { color: var(--sinyal) !important; background: var(--zemin); text-decoration: none; }
.ay-gun .tk-kart.kucuk { padding: 3px 6px 3px 7px; font-size: .7rem; }
@media (max-width: 767.98px) { .ay-gun { min-height: 70px; } .ay-gun .tk-musteri { display: none; } }
.bakim-gun { font-size: .78rem; color: var(--sinyal-koyu); margin-top: 2px; }
.bakim-ayar { background: #f6faf9; border: 1px solid var(--cizgi); border-radius: 10px; padding: 14px 16px; }
.bakim-onizleme .bo-ay { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; }
.bakim-onizleme .bo-ay strong { width: 70px; font-size: .8rem; }
.bo-gun { font-size: .78rem; padding: 2px 9px; border-radius: 999px; background: var(--sinyal-acik); color: var(--sinyal-koyu); font-weight: 600; }
.bo-gun.gecti { background: #eef1f1; color: var(--soluk); font-weight: 400; text-decoration: line-through; }
.bo-gun.disarida { background: #fff; border: 1px dashed #c5d3d1; color: #9aabaa; font-weight: 400; }
.tk-atanmamis { --tk: #c2410c; --tk-zemin: #fff1e8; border-left-style: dashed; }
.bakim-slot form { margin: 3px 0 0; }
.bakim-slot > a { color: inherit; text-decoration: none; }
.bakim-ata {
    font-size: .74rem; border: 1px solid #d7e0de; border-radius: 6px; padding: 1px 4px; max-width: 150px;
    background: #fff; color: var(--murekkep); cursor: pointer;
}
.bakim-slot.tk-atanmamis .bakim-ata { border-color: #c2410c; color: #c2410c; font-weight: 600; }

/* ---------- Bakım takvimi (yeni düzen) ---------- */
.min-w-0 { min-width: 0; }
.bk-ust { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 18px; }
.bk-ay-sec {
    display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--cizgi);
    border-radius: 999px; padding: 3px; box-shadow: 0 1px 2px rgba(12, 35, 43, .05);
}
.bk-ay-sec a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--murekkep); }
.bk-ay-sec a:hover { background: var(--zemin); text-decoration: none; }
.bk-ay-sec span { min-width: 128px; text-align: center; font-weight: 700; font-size: 1rem; }

.bk-bos { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 56px 20px; background: #fff; border: 1px dashed #c5d3d1; border-radius: 14px; text-align: center; color: var(--soluk); }
.bk-bos i { font-size: 2rem; color: var(--sinyal); }
.bk-bos strong { color: var(--murekkep); }

.bk-ozet { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 10px; margin-bottom: 18px; }
.bk-kpi {
    --k: var(--petrol-900); --k-zemin: #eef3f3;
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff;
    border: 1px solid var(--cizgi); border-radius: 12px; color: var(--murekkep); min-width: 0;
}
a.bk-kpi:hover { text-decoration: none; color: var(--murekkep); border-color: var(--k); }
.bk-kpi > i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--k-zemin); color: var(--k); font-size: 1.15rem; }
.bk-kpi strong { display: block; font-size: 1.55rem; line-height: 1.05; font-variant-numeric: tabular-nums; }
.bk-kpi span { display: block; font-size: .74rem; color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-kpi.yesil { --k: #1f8a4c; --k-zemin: #e7f6ee; }
.bk-kpi.mavi { --k: #2f6fb3; --k-zemin: #eaf2fb; }
.bk-kpi.amber { --k: #c2410c; --k-zemin: #fff1e8; }
.bk-kpi.kirmizi { --k: var(--kirmizi); --k-zemin: #fdecea; }
.bk-kpi.amber:not(.sifir), .bk-kpi.kirmizi:not(.sifir) { border-color: color-mix(in srgb, var(--k) 35%, var(--cizgi)); background: color-mix(in srgb, var(--k-zemin) 45%, #fff); }
.bk-kpi.sifir { opacity: .6; }
.bk-ilerleme { padding: 14px 16px; background: var(--petrol-900); color: #fff; border-radius: 12px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.bk-ilerleme span { font-size: .74rem; opacity: .75; }
.bk-ilerleme strong { font-size: 1.1rem; }
.bk-cubuk { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.bk-cubuk > div { height: 100%; background: linear-gradient(90deg, #2fc3a8, #7be0c9); border-radius: 99px; }
@media (max-width: 1199.98px) { .bk-ozet { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .bk-ozet { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bk-ilerleme { grid-column: 1 / -1; } }

.bk-kart { background: #fff; border: 1px solid var(--cizgi); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(12, 35, 43, .05); }
.bk-kart-ust { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 18px; border-bottom: 1px solid var(--cizgi); }
.bk-kart-ust h2 { font-size: 1rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.bk-kart-ust h2 i { color: var(--sinyal); }
.bk-sayi { font-size: .72rem; font-weight: 600; background: var(--zemin); color: var(--soluk); border-radius: 99px; padding: 1px 8px; }
.bk-lejant { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .72rem; color: var(--soluk); }
.bk-lejant > span { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; }
.bk-lejant > span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--tk-zemin); border-left: 3px solid var(--tk); }

/* takvim ızgarası kartın içinde: kenarlıksız, hafta sonu dar */
.bk-kart .ay-takvim { border: 0; border-radius: 0; grid-template-columns: repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, .6fr)); }
.bk-kart .ay-gun { min-height: 104px; }
.bk-kart .ay-gun.gecmis:not(.bugun) .ay-gun-no { color: #9aabaa; }
.bk-kart .ay-gun.bugun { background: #f2faf8; box-shadow: inset 0 0 0 2px var(--sinyal); }
.bk-is {
    --tk: var(--sinyal); --tk-zemin: #f2faf8;
    display: flex; flex-direction: column; gap: 1px; padding: 4px 7px; border-radius: 6px; min-width: 0;
    background: var(--tk-zemin); border-left: 3px solid var(--tk); color: var(--murekkep); font-size: .72rem; line-height: 1.25;
    transition: box-shadow .12s, transform .12s;
}
.bk-is:hover { text-decoration: none; color: var(--murekkep); box-shadow: 0 2px 8px rgba(12, 35, 43, .14); transform: translateY(-1px); }
.bk-is-ust { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.bk-is-kisi { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid var(--cizgi); font-size: .56rem; font-weight: 700; color: var(--petrol-900); }
.bk-is-uyari { color: #c2410c; font-size: .8rem; }
.bk-is-musteri { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767.98px) {
    .bk-kart .ay-takvim { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .bk-kart .ay-gun { min-height: 64px; padding: 4px; }
    .bk-is-musteri, .bk-is-kisi, .bk-is-uyari { display: none; }
    .bk-is { padding: 2px 4px; }
}

/* müşteri listesi */
.bk-araclar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bk-filtre { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--zemin); padding: 3px; border-radius: 10px; }
.bk-filtre button { border: 0; background: none; padding: 5px 10px; border-radius: 8px; font-size: .8rem; color: var(--soluk); font-weight: 500; }
.bk-filtre button b { font-weight: 600; margin-left: 3px; opacity: .7; }
.bk-filtre button:hover { color: var(--murekkep); }
.bk-filtre button.aktif { background: #fff; color: var(--murekkep); box-shadow: 0 1px 3px rgba(12, 35, 43, .12); }
.bk-ara { position: relative; }
.bk-ara i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--soluk); font-size: .8rem; }
.bk-ara input { border: 1px solid var(--cizgi); border-radius: 10px; padding: 6px 10px 6px 30px; font-size: .85rem; width: 210px; }
.bk-ara input:focus { outline: none; border-color: var(--sinyal); box-shadow: 0 0 0 3px var(--sinyal-acik); }

.bk-musteri {
    display: grid; grid-template-columns: minmax(220px, 1.25fr) 96px minmax(0, 2.6fr) 170px; gap: 14px; align-items: center;
    padding: 14px 18px; border-bottom: 1px solid var(--cizgi);
}
.bk-musteri:last-of-type { border-bottom: 0; }
.bk-musteri:hover { background: #fbfdfc; }
.bk-musteri[data-durum="atanmamis"] { box-shadow: inset 3px 0 0 #c2410c; }
.bk-musteri[data-durum="eksik"] { box-shadow: inset 3px 0 0 var(--kirmizi); }
.bk-musteri[data-durum="tamam"] { box-shadow: inset 3px 0 0 #1f8a4c; }
.bk-m-bilgi { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.bk-m-avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--petrol-900); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.bk-m-ad { display: block; font-weight: 700; color: var(--murekkep); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-m-ad:hover { color: var(--sinyal-koyu); }
.bk-m-kural { font-size: .75rem; color: var(--sinyal-koyu); margin-top: 2px; }
.bk-m-kural.uyari { color: #9a6a00; }
.bk-m-ilerleme { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bk-m-ilerleme small { font-size: .72rem; color: var(--soluk); font-variant-numeric: tabular-nums; }
.bk-noktalar { display: flex; gap: 4px; }
.bk-noktalar span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #c5d3d1; background: #fff; }
.bk-noktalar .planli { border-color: var(--sinyal); background: var(--sinyal-acik); }
.bk-noktalar .yapildi { border-color: var(--sinyal); background: var(--sinyal); }
.bk-m-islem { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.bk-toplu select { border-color: #c2410c; font-weight: 600; color: #c2410c; }
.bk-rozet { display: inline-flex; align-items: center; gap: 4px; justify-content: center; padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; }
.bk-rozet.yesil { background: #e7f6ee; color: #1f8a4c; }
.bk-sonuc-yok { padding: 28px; text-align: center; color: var(--soluk); }
.bakim-slot em { font-style: normal; font-size: .72rem; color: var(--soluk); margin-left: 6px; }
@media (max-width: 991.98px) {
    .bk-musteri { grid-template-columns: 1fr auto; }
    .bk-musteri .bakim-slotlar, .bk-m-islem { grid-column: 1 / -1; }
    .bk-ara input { width: 100%; }
}

/* durum renkleri, kendi varsayılan rengini tanımlayan kartlarda da geçerli olsun */
:is(.bk-is, .bakim-slot).tk-planli   { --tk: #2f6fb3; --tk-zemin: #eef4fb; }
:is(.bk-is, .bakim-slot).tk-gecikmis { --tk: var(--kirmizi); --tk-zemin: #fdf1f0; border-left-style: dashed; }
:is(.bk-is, .bakim-slot).tk-taslak   { --tk: #b07a06; --tk-zemin: #fdf6e6; }
:is(.bk-is, .bakim-slot).tk-onayda   { --tk: #0e8c7a; --tk-zemin: #eaf6f3; }
:is(.bk-is, .bakim-slot).tk-onayli   { --tk: #5d7076; --tk-zemin: #f1f4f4; }
:is(.bk-is, .bakim-slot).tk-atanmamis { --tk: #c2410c; --tk-zemin: #fff1e8; border-left-style: dashed; }

/* ==========================================================================
   Haftalık takvim (yeni düzen)
   ========================================================================== */
.hk-hafta-sec span { min-width: 190px; }
.hk-ozet { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1199.98px) { .hk-ozet { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .hk-ozet { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.bk-filtre a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 8px; font-size: .82rem; color: var(--soluk); font-weight: 500; }
.bk-filtre a:hover { color: var(--murekkep); text-decoration: none; }
.bk-filtre a.aktif { background: #fff; color: var(--murekkep); box-shadow: 0 1px 3px rgba(12, 35, 43, .12); }
.hk-arac { justify-content: flex-start; }
.hk-arac .bk-lejant { margin-left: auto; }
.hk-suzgec { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.hk-suzgec .form-select { width: auto; border-radius: 10px; }
.hk-git { position: relative; display: grid; place-items: center; width: 32px; height: 31px; border: 1px solid var(--cizgi); border-radius: 10px; color: var(--soluk); cursor: pointer; margin: 0; overflow: hidden; }
.hk-git:hover { color: var(--sinyal); border-color: var(--sinyal); }
.hk-git input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hk-git input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.hk-benim { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border: 1px solid var(--cizgi); border-radius: 99px; font-size: .8rem; color: var(--soluk); cursor: pointer; margin: 0; user-select: none; }
.hk-benim:hover { color: var(--murekkep); }
.btn-check:checked + .hk-benim { background: var(--sinyal); border-color: var(--sinyal); color: #fff; }
.btn-check:focus-visible + .hk-benim { box-shadow: 0 0 0 3px var(--sinyal-acik); }

/* günler görünümü */
.hk-hafta { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, .7fr)); }
.hk-gun { display: flex; flex-direction: column; min-width: 0; min-height: 460px; border-right: 1px solid var(--cizgi); }
.hk-gun:last-child { border-right: 0; }
.hk-gun.haftasonu { background: #f8faf9; }
.hk-gun.gecmis:not(.bugun) { background: #fbfcfc; }
.hk-gun.bugun { background: #f3fbf9; }
.hk-gun > header {
    position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px;
    padding: 10px 10px 10px 12px; background: inherit; border-bottom: 1px solid var(--cizgi);
}
.hk-gun-ad { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--soluk); }
.hk-gun-no { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 1rem; font-weight: 700; color: var(--murekkep); }
.hk-gun.bugun .hk-gun-no { background: var(--sinyal); color: #fff; box-shadow: 0 2px 6px rgba(14, 140, 122, .35); }
.hk-gun.bugun .hk-gun-ad { color: var(--sinyal-koyu); }
.hk-gun.gecmis:not(.bugun) .hk-gun-no { color: #9aabaa; }
.hk-gun-sayi { font-size: .68rem; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--zemin); color: var(--soluk); }
.hk-ekle { margin-left: auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--soluk); opacity: 0; transition: opacity .12s; }
.hk-gun:hover .hk-ekle, .hk-ekle:focus-visible { opacity: 1; }
.hk-ekle:hover { background: var(--sinyal); color: #fff; text-decoration: none; }
.hk-isler { display: flex; flex-direction: column; gap: 8px; padding: 10px; flex: 1; }
.hk-bos { color: #b9c6c4; font-size: .78rem; text-align: center; padding: 18px 0; border: 1.5px dashed #e1e8e7; border-radius: 10px; }
.hk-gun.gecmis .hk-bos { border: 0; }

.hk-is {
    --tk: var(--sinyal); --tk-zemin: #f2faf8;
    position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0;
    padding: 8px 10px 8px 12px; border-radius: 10px; background: #fff; color: var(--murekkep);
    border: 1px solid color-mix(in srgb, var(--tk) 22%, #fff); box-shadow: 0 1px 2px rgba(12, 35, 43, .05);
    font-size: .78rem; line-height: 1.3; transition: box-shadow .12s, transform .12s;
}
.hk-is::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--tk); }
.hk-is:hover { color: var(--murekkep); text-decoration: none; box-shadow: 0 6px 16px rgba(12, 35, 43, .12); transform: translateY(-1px); }
.hk-is .tk-saat { color: var(--tk); }
.hk-is-ust { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hk-is-musteri { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk-is-konu { color: var(--soluk); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hk-etiket { font-size: .62rem; font-weight: 700; letter-spacing: .03em; padding: 1px 6px; border-radius: 99px; background: #ede7fb; color: #5b3fb0; }
.hk-kisiler { display: flex; align-items: center; margin-top: 6px; }
.hk-kisiler .hk-avatar + .hk-avatar { margin-left: -6px; }
.hk-adres { margin-left: auto; color: #b9c6c4; }
.hk-avatar {
    display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
    font-size: .6rem; font-weight: 700; color: #fff; border: 2px solid #fff; background: var(--petrol-900);
}
.hk-avatar.buyuk { width: 34px; height: 34px; font-size: .72rem; border: 0; }
.hk-avatar.kr0 { background: #0e8c7a; } .hk-avatar.kr1 { background: #2f6fb3; } .hk-avatar.kr2 { background: #8a4fc4; }
.hk-avatar.kr3 { background: #c2410c; } .hk-avatar.kr4 { background: #b07a06; } .hk-avatar.kr5 { background: #334e58; }
:is(.hk-is).tk-planli   { --tk: #2f6fb3; }
:is(.hk-is).tk-gecikmis { --tk: var(--kirmizi); background: #fff8f7; }
:is(.hk-is).tk-taslak   { --tk: #b07a06; }
:is(.hk-is).tk-onayda   { --tk: #0e8c7a; }
:is(.hk-is).tk-duzeltme { --tk: var(--kirmizi); }
:is(.hk-is).tk-onayli   { --tk: #5d7076; background: #f7f9f9; }
:is(.hk-is).tk-onayli .hk-is-musteri { color: #5d7076; }

/* teknisyen görünümü */
.hk-tablo { width: 100%; min-width: 960px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.hk-tablo th, .hk-tablo td { border-bottom: 1px solid var(--cizgi); border-right: 1px solid var(--cizgi); padding: 8px; vertical-align: top; }
.hk-tablo tr > :last-child { border-right: 0; }
.hk-tablo tbody tr:last-child > * { border-bottom: 0; }
.hk-tablo thead th { background: #f6f9f8; text-align: center; font-weight: 500; }
.hk-tablo thead th span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--soluk); }
.hk-tablo thead th strong { font-size: 1rem; }
.hk-tablo thead th.bugun { background: var(--sinyal); }
.hk-tablo thead th.bugun span, .hk-tablo thead th.bugun strong { color: #fff; }
.hk-tablo .hk-kisi { width: 200px; text-align: left; background: #fff; position: sticky; left: 0; z-index: 1; }
.hk-tablo thead .hk-kisi { background: #f6f9f8; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--soluk); vertical-align: middle; }
.hk-kisi-ad { font-size: .86rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk-kisi-alt { font-size: .72rem; color: var(--soluk); font-weight: 400; }
.hk-tablo td { height: 84px; }
.hk-tablo td.haftasonu { background: #f8faf9; }
.hk-tablo td.bugun { background: #f3fbf9; }
.hk-tablo tr.bos .hk-kisi-ad { color: var(--soluk); }
.hk-is.kucuk { padding: 5px 8px 5px 10px; font-size: .72rem; margin-bottom: 6px; border-radius: 8px; }
.hk-is.kucuk::before { top: 5px; bottom: 5px; width: 3px; }
.hk-hucre-ekle { display: grid; place-items: center; height: 24px; border-radius: 6px; color: transparent; font-size: .9rem; }
.hk-tablo td:hover .hk-hucre-ekle { color: var(--soluk); background: var(--zemin); }
.hk-hucre-ekle:hover { color: #fff !important; background: var(--sinyal) !important; text-decoration: none; }

@media (max-width: 991.98px) {
    .hk-arac .bk-lejant { margin-left: 0; width: 100%; }
    .hk-hafta { grid-template-columns: 1fr; }
    .hk-gun { min-height: 0; border-right: 0; border-bottom: 1px solid var(--cizgi); }
    .hk-gun:last-child { border-bottom: 0; }
    .hk-gun > header { position: static; }
    .hk-gun.bos.gecmis:not(.bugun) { display: none; }
    .hk-gun.bos .hk-isler { padding: 6px 12px; }
    .hk-bos { padding: 6px 0; text-align: left; border: 0; }
    .hk-ekle { opacity: 1; }
    .hk-isler { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media print {
    .hk-arac, .hk-ekle, .hk-hucre-ekle, .bk-ust .btn { display: none !important; }
    .hk-gun { min-height: 0; }
}

/* ==========================================================================
   Pano (yeni düzen)
   ========================================================================== */
.pn-ust { margin-bottom: 18px; }
.pn-tarih { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--soluk); font-weight: 600; }
.pn-selam { font-size: 1.6rem; font-weight: 700; margin: 2px 0 4px; }
.pn-ozet { font-size: .9rem; color: var(--soluk); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pn-ozet strong { color: var(--murekkep); }
.pn-nokta { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.pn-nokta.kirmizi { background: var(--kirmizi); box-shadow: 0 0 0 3px rgba(200, 68, 58, .18); }
.pn-nokta.yesil { background: #1f8a4c; box-shadow: 0 0 0 3px rgba(31, 138, 76, .18); }

/* hızlı işlemler */
.pn-islemler { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.pn-islemler .pn-islem { padding: 18px 16px; }
.pn-islemler .pn-islem-ikon { width: 48px; height: 48px; font-size: 1.35rem; }
@media (max-width: 991.98px) { .pn-islemler { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
    .pn-islemler { gap: 8px; }
    .pn-islemler .pn-islem { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
    .pn-islemler .pn-islem-arti { position: absolute; top: 12px; right: 12px; }
    .pn-islemler .pn-islem-ikon { width: 40px; height: 40px; font-size: 1.15rem; }
}
.pn-ikincil { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; }
.pn-ikincil-etiket { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--soluk); margin-right: 4px; }
.pn-cip {
    --r: var(--sinyal); --r-zemin: var(--sinyal-acik);
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 99px;
    background: #fff; border: 1px solid var(--cizgi); color: var(--murekkep); font-size: .84rem; font-weight: 500;
    transition: border-color .15s, background .15s, color .15s;
}
.pn-cip i { color: var(--r); }
.pn-cip:hover { border-color: var(--r); background: var(--r-zemin); color: var(--murekkep); text-decoration: none; }
.pn-cip.r-petrol { --r: #16404d; --r-zemin: #e6eef0; } .pn-cip.r-gri { --r: #5d7076; --r-zemin: #eef2f2; }
.pn-cip.r-yesil { --r: #1f8a4c; --r-zemin: #e5f5ec; }
.pn-islem {
    --r: var(--sinyal); --r-zemin: var(--sinyal-acik);
    position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 14px; background: #fff;
    border: 1px solid var(--cizgi); border-radius: 14px; color: var(--murekkep); overflow: hidden;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pn-islem::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, var(--r-zemin), transparent 60%); opacity: 0; transition: opacity .15s; }
.pn-islem:hover { color: var(--murekkep); text-decoration: none; border-color: var(--r); box-shadow: 0 8px 22px rgba(12, 35, 43, .1); transform: translateY(-2px); }
.pn-islem:hover::after { opacity: .7; }
.pn-islem > * { position: relative; z-index: 1; }
.pn-islem-ikon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--r-zemin); color: var(--r); font-size: 1.25rem; }
.pn-islem:hover .pn-islem-ikon { background: var(--r); color: #fff; }
.pn-islem-metin { display: flex; flex-direction: column; min-width: 0; }
.pn-islem-metin strong { font-size: .92rem; }
.pn-islem-metin small { font-size: .74rem; color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-islem-arti { margin-left: auto; color: #c3cecc; font-size: .9rem; transition: color .15s, transform .15s; }
.pn-islem:hover .pn-islem-arti { color: var(--r); transform: rotate(90deg); }
.pn-islem.r-sinyal { --r: #0e8c7a; --r-zemin: #e3f4f0; }
.pn-islem.r-mavi { --r: #2f6fb3; --r-zemin: #e8f1fb; }
.pn-islem.r-mor { --r: #7a4fc4; --r-zemin: #f0eafb; }
.pn-islem.r-turuncu { --r: #c2410c; --r-zemin: #fdeee5; }
.pn-islem.r-petrol { --r: #16404d; --r-zemin: #e6eef0; }
.pn-islem.r-yesil { --r: #1f8a4c; --r-zemin: #e5f5ec; }
.pn-islem.r-gri { --r: #5d7076; --r-zemin: #eef2f2; }
/* ilk düğme (yeni ticket) vurgulu */
.pn-islem.r-sinyal:first-child { background: var(--petrol-900); border-color: var(--petrol-900); color: #fff; }
.pn-islem.r-sinyal:first-child .pn-islem-ikon { background: var(--sinyal); color: #fff; }
.pn-islem.r-sinyal:first-child small { color: rgba(255, 255, 255, .65); }
.pn-islem.r-sinyal:first-child .pn-islem-arti { color: rgba(255, 255, 255, .5); }
.pn-islem.r-sinyal:first-child:hover { color: #fff; }
.pn-islem.r-sinyal:first-child::after { background: linear-gradient(120deg, rgba(14, 140, 122, .45), transparent 70%); }

/* göstergeler */
.pn-gruplar { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 8px; }
.pn-grup { background: #fff; border: 1px solid var(--cizgi); border-radius: 14px; padding: 12px; }
.pn-grup-baslik { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--soluk); margin: 2px 4px 10px; }
.pn-gostergeler { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pn-gosterge {
    --g: #2f6fb3; --g-zemin: #eaf2fb;
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
    padding: 10px 12px; background: #fbfcfc; border: 1px solid var(--cizgi); border-radius: 10px; color: var(--murekkep);
    transition: border-color .15s, box-shadow .15s; min-width: 0;
}
.pn-gosterge:hover { color: var(--murekkep); text-decoration: none; border-color: var(--g); box-shadow: 0 4px 14px rgba(12, 35, 43, .08); }
.pn-g-ikon { grid-row: 1 / 3; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--g-zemin); color: var(--g); font-size: 1.05rem; }
.pn-g-sayi { font-size: 1.45rem; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pn-g-ad { font-size: .76rem; color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-gosterge.mavi { --g: #2f6fb3; --g-zemin: #eaf2fb; }
.pn-gosterge.yesil { --g: #1f8a4c; --g-zemin: #e7f6ee; }
.pn-gosterge.amber { --g: #b07a06; --g-zemin: #fdf3dc; }
.pn-gosterge.kirmizi { --g: var(--kirmizi); --g-zemin: #fdecea; }
.pn-gosterge.amber:not(.sifir), .pn-gosterge.kirmizi:not(.sifir) { border-color: color-mix(in srgb, var(--g) 40%, var(--cizgi)); background: color-mix(in srgb, var(--g-zemin) 40%, #fff); }
.pn-gosterge.amber:not(.sifir) .pn-g-sayi, .pn-gosterge.kirmizi:not(.sifir) .pn-g-sayi { color: var(--g); }
.pn-gosterge.sifir { opacity: .55; }
.pn-gosterge.sifir .pn-g-ikon { background: #f1f4f4; color: #9aabaa; }

/* açık işler listesi */
.pn-isler { display: flex; flex-direction: column; }
.pn-is { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--cizgi); color: var(--murekkep); }
.pn-is:last-child { border-bottom: 0; }
.pn-is:hover { background: #f7fbfa; color: var(--murekkep); text-decoration: none; }
.pn-is-oncelik { flex: none; width: 4px; align-self: stretch; border-radius: 4px; padding: 0 !important; }
.pn-is-ana { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pn-is-ust { font-size: .74rem; color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-is-no { font-weight: 700; color: var(--sinyal-koyu); }
.pn-is-baslik { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-avatar { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--petrol-900); color: #fff; font-size: .66rem; font-weight: 700; }
.pn-avatar.bos { background: #fdf3dc; color: #b07a06; font-size: .8rem; }
.pn-is-zaman { flex: none; width: 96px; text-align: right; font-size: .75rem; color: var(--soluk); font-variant-numeric: tabular-nums; }
.pn-is-zaman.sla { color: var(--kirmizi); font-weight: 600; }
.pn-bos { padding: 26px 18px; text-align: center; color: var(--soluk); font-size: .88rem; }
@media (max-width: 575.98px) { .pn-is { padding: 10px 14px; gap: 8px; } .pn-is-zaman { display: none; } }

/* yaklaşan ziyaretler */
.pn-zaman-cizelgesi { display: flex; flex-direction: column; padding: 6px 0; }
.pn-ziyaret { display: flex; gap: 12px; align-items: center; padding: 8px 18px; color: var(--murekkep); }
.pn-ziyaret:hover { background: #f7fbfa; color: var(--murekkep); text-decoration: none; }
.pn-z-tarih { flex: none; width: 54px; display: flex; flex-direction: column; align-items: center; padding: 5px 0; border-radius: 10px; background: var(--zemin); }
.pn-z-tarih strong { font-size: .78rem; text-transform: capitalize; }
.pn-z-tarih small { font-size: .7rem; color: var(--soluk); }
.pn-ziyaret.bugun .pn-z-tarih { background: var(--sinyal); color: #fff; }
.pn-ziyaret.bugun .pn-z-tarih small { color: rgba(255, 255, 255, .8); }
.pn-z-ana { min-width: 0; display: flex; flex-direction: column; }
.pn-z-musteri { font-weight: 600; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-z-alt { font-size: .75rem; color: var(--soluk); }

/* küçük listeler */
.pn-liste { display: flex; flex-direction: column; }
.pn-satir { display: flex; align-items: center; gap: 10px; padding: 9px 18px; border-bottom: 1px solid var(--cizgi); color: var(--murekkep); }
.pn-satir:last-child { border-bottom: 0; }
.pn-satir:hover { background: #f7fbfa; color: var(--murekkep); text-decoration: none; }
.pn-satir-ikon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--zemin); color: var(--petrol-900); }
.pn-satir-ana { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pn-satir-ana strong { font-size: .84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-satir-ana small { font-size: .72rem; color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-tarih-rozet { flex: none; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #fdf3dc; color: #8a5d00; }
.pn-tarih-rozet.gecti { background: #fdecea; color: var(--kirmizi); }
.pn-uyari-kart { border-color: #f1d9a0; }
.pn-uyari-kart .bk-kart-ust { background: #fff8e6; }
.pn-uyari-kart .bk-kart-ust h2 i { color: #b07a06; }
.pn-not { padding: 10px 18px; font-size: .75rem; color: var(--soluk); border-top: 1px solid var(--cizgi); background: #fbfcfc; }
.bk-kart-ust h2 { min-width: 0; }

/* ---------- Pano: renkli ve vurgulu sürüm ---------- */
/* Ana işlem düğmeleri: kendi renginde degrade dolgu */
.pano .pn-islemler .pn-islem {
    --r2: color-mix(in srgb, var(--r) 70%, #000);
    background: linear-gradient(135deg, var(--r) 0%, var(--r2) 100%); border: 0; color: #fff;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--r) 35%, transparent);
}
.pano .pn-islemler .pn-islem::after { background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .28), transparent 55%); opacity: 1; }
.pano .pn-islemler .pn-islem::before {
    content: ""; position: absolute; right: -28px; bottom: -36px; width: 120px; height: 120px; border-radius: 50%;
    background: rgba(255, 255, 255, .09); z-index: 0;
}
.pano .pn-islemler .pn-islem:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 12px 28px color-mix(in srgb, var(--r) 45%, transparent); }
.pano .pn-islemler .pn-islem-ikon { background: rgba(255, 255, 255, .2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.pano .pn-islemler .pn-islem:hover .pn-islem-ikon { background: #fff; color: var(--r); }
.pano .pn-islemler .pn-islem-metin strong { font-size: 1rem; }
.pano .pn-islemler .pn-islem-metin small { color: rgba(255, 255, 255, .8); }
.pano .pn-islemler .pn-islem-arti { color: rgba(255, 255, 255, .7); }
.pano .pn-islemler .pn-islem:hover .pn-islem-arti { color: #fff; }
.pano .pn-islem.r-sinyal { --r: #0e9a85; }
.pano .pn-islem.r-mavi { --r: #2f74c4; }
.pano .pn-islem.r-mor { --r: #7c4fd0; }
.pano .pn-islem.r-turuncu { --r: #e0602a; }
/* "yeni ticket" için önceki koyu zemin kuralını geçersiz kıl */
.pano .pn-islem.r-sinyal:first-child { background: linear-gradient(135deg, #0e9a85 0%, #0b5f63 100%); }
.pano .pn-islem.r-sinyal:first-child small { color: rgba(255, 255, 255, .8); }

/* Diğer yeni kayıt çipleri: renkli zemin + kenarlık */
.pano .pn-cip { background: var(--r-zemin); border-color: color-mix(in srgb, var(--r) 35%, transparent); color: var(--r); font-weight: 600; }
.pano .pn-cip i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--r); color: #fff; font-size: .7rem; }
.pano .pn-cip:hover { background: var(--r); color: #fff; border-color: var(--r); box-shadow: 0 4px 12px color-mix(in srgb, var(--r) 35%, transparent); }
.pano .pn-cip:hover i { background: #fff; color: var(--r); }
.pano .pn-cip.r-petrol { --r: #16404d; --r-zemin: #e3edef; }
.pano .pn-cip.r-gri { --r: #4d6168; --r-zemin: #eaeff0; }
.pano .pn-cip.r-yesil { --r: #1f8a4c; --r-zemin: #e2f4e9; }

/* Gösterge grupları: renkli başlık şeridi */
.pano .pn-grup { --gr: #2f74c4; --gr-zemin: #eaf2fb; padding: 0; overflow: hidden; border-color: color-mix(in srgb, var(--gr) 30%, var(--cizgi)); box-shadow: 0 2px 10px rgba(12, 35, 43, .05); }
.pano .pn-grup.g-mavi { --gr: #2f74c4; --gr-zemin: #eaf2fb; }
.pano .pn-grup.g-sinyal { --gr: #0e9a85; --gr-zemin: #e3f5f1; }
.pano .pn-grup.g-amber { --gr: #c77d06; --gr-zemin: #fdf3dc; }
.pano .pn-grup-baslik {
    display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px;
    background: linear-gradient(90deg, var(--gr-zemin), #fff); border-bottom: 1px solid color-mix(in srgb, var(--gr) 20%, var(--cizgi));
    color: var(--gr); font-size: .74rem;
}
.pano .pn-grup-ikon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--gr); color: #fff; font-size: .8rem; }
.pano .pn-grup-toplam { margin-left: auto; min-width: 26px; text-align: center; padding: 1px 8px; border-radius: 99px; background: var(--gr); color: #fff; font-size: .72rem; }
.pano .pn-gostergeler { padding: 12px; }

/* Gösterge kutuları: değeri olanlar renkli */
.pano .pn-gosterge { position: relative; overflow: hidden; background: #fff; }
.pano .pn-gosterge:not(.sifir) { background: linear-gradient(135deg, color-mix(in srgb, var(--g-zemin) 70%, #fff), #fff); border-color: color-mix(in srgb, var(--g) 30%, var(--cizgi)); }
.pano .pn-gosterge:not(.sifir)::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--g); }
.pano .pn-gosterge:not(.sifir) .pn-g-ikon { background: var(--g); color: #fff; box-shadow: 0 3px 8px color-mix(in srgb, var(--g) 35%, transparent); }
.pano .pn-gosterge:not(.sifir) .pn-g-sayi { color: var(--g); }
.pano .pn-gosterge:not(.sifir) .pn-g-ad { color: var(--murekkep); font-weight: 500; }
.pano .pn-gosterge.kirmizi:not(.sifir) { animation: pn-nabiz 2.4s ease-in-out infinite; }
@keyframes pn-nabiz { 0%, 100% { box-shadow: 0 0 0 0 rgba(200, 68, 58, 0); } 50% { box-shadow: 0 0 0 4px rgba(200, 68, 58, .15); } }
@media (prefers-reduced-motion: reduce) { .pano .pn-gosterge.kirmizi:not(.sifir) { animation: none; } }
.pano .pn-gosterge.sifir { opacity: .6; }

/* Alt kartlar: renkli üst çizgi ve başlık simgesi */
.pano .pn-kart { --k: #2f74c4; --k-zemin: #eaf2fb; border-top: 4px solid var(--k); box-shadow: 0 2px 12px rgba(12, 35, 43, .06); }
.pano .pn-kart.k-mavi { --k: #2f74c4; --k-zemin: #eaf2fb; }
.pano .pn-kart.k-sinyal { --k: #0e9a85; --k-zemin: #e3f5f1; }
.pano .pn-kart.k-turuncu { --k: #e0602a; --k-zemin: #fdeee5; }
.pano .pn-kart.k-mor { --k: #7c4fd0; --k-zemin: #f0eafb; }
.pano .pn-kart .bk-kart-ust { background: linear-gradient(180deg, var(--k-zemin), #fff); }
.pano .pn-kart .bk-kart-ust h2 i { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--k); color: #fff; font-size: .85rem; }
.pano .pn-kart .bk-kart-ust > a { color: var(--k); font-weight: 600; }
.pano .pn-uyari-kart { border-top: 4px solid #c77d06; }
.pano .pn-uyari-kart .bk-kart-ust h2 i { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #c77d06; color: #fff; font-size: .85rem; }
.pano .pn-ziyaret.bugun .pn-z-tarih { background: linear-gradient(135deg, #0e9a85, #0b5f63); }
.pano .pn-is:hover, .pano .pn-satir:hover, .pano .pn-ziyaret:hover { background: color-mix(in srgb, var(--k, #0e9a85) 6%, #fff); }
.pano .pn-selam { background: linear-gradient(90deg, var(--petrol-900), #0e9a85); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Pano: yumuşatılmış tonlar ---------- */
.pano .pn-islem.r-sinyal { --r: #3fae9c; }
.pano .pn-islem.r-mavi { --r: #5b8fd0; }
.pano .pn-islem.r-mor { --r: #9277d6; }
.pano .pn-islem.r-turuncu { --r: #e5875a; }
.pano .pn-islemler .pn-islem {
    --r2: color-mix(in srgb, var(--r) 82%, #1d3a40);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--r) 22%, transparent);
}
.pano .pn-islemler .pn-islem:hover { box-shadow: 0 10px 22px color-mix(in srgb, var(--r) 30%, transparent); }
.pano .pn-islem.r-sinyal:first-child { background: linear-gradient(135deg, #3fae9c 0%, #2f8e86 100%); }
.pano .pn-islemler .pn-islem::after { background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .22), transparent 60%); }

.pano .pn-cip { border-color: color-mix(in srgb, var(--r) 22%, transparent); }
.pano .pn-cip i { background: color-mix(in srgb, var(--r) 75%, #fff); }
.pano .pn-cip:hover { background: color-mix(in srgb, var(--r) 80%, #fff); border-color: transparent; box-shadow: 0 3px 10px color-mix(in srgb, var(--r) 22%, transparent); }

.pano .pn-grup.g-mavi { --gr: #5b8fd0; --gr-zemin: #f0f5fc; }
.pano .pn-grup.g-sinyal { --gr: #3fae9c; --gr-zemin: #eef8f6; }
.pano .pn-grup.g-amber { --gr: #d39a3a; --gr-zemin: #fdf7ea; }
.pano .pn-grup { border-color: color-mix(in srgb, var(--gr) 18%, var(--cizgi)); box-shadow: 0 1px 6px rgba(12, 35, 43, .04); }
.pano .pn-grup-baslik { color: color-mix(in srgb, var(--gr) 80%, #1d3a40); }

.pano .pn-gosterge.mavi { --g: #5b8fd0; --g-zemin: #eef4fc; }
.pano .pn-gosterge.yesil { --g: #4aa775; --g-zemin: #ecf7f1; }
.pano .pn-gosterge.amber { --g: #d39a3a; --g-zemin: #fdf6e7; }
.pano .pn-gosterge.kirmizi { --g: #d9746b; --g-zemin: #fcefed; }
.pano .pn-gosterge:not(.sifir) { background: linear-gradient(135deg, color-mix(in srgb, var(--g-zemin) 55%, #fff), #fff); border-color: color-mix(in srgb, var(--g) 20%, var(--cizgi)); }
.pano .pn-gosterge:not(.sifir) .pn-g-ikon { background: color-mix(in srgb, var(--g) 85%, #fff); box-shadow: 0 2px 6px color-mix(in srgb, var(--g) 22%, transparent); }
.pano .pn-gosterge:not(.sifir) .pn-g-sayi { color: color-mix(in srgb, var(--g) 85%, #1d3a40); }
.pano .pn-gosterge:not(.sifir)::before { width: 3px; }
@keyframes pn-nabiz { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 116, 107, 0); } 50% { box-shadow: 0 0 0 3px rgba(217, 116, 107, .12); } }

.pano .pn-kart.k-mavi { --k: #5b8fd0; --k-zemin: #f3f7fd; }
.pano .pn-kart.k-sinyal { --k: #3fae9c; --k-zemin: #f0f9f7; }
.pano .pn-kart.k-turuncu { --k: #e5875a; --k-zemin: #fdf4ef; }
.pano .pn-kart.k-mor { --k: #9277d6; --k-zemin: #f5f2fc; }
.pano .pn-kart { border-top-width: 3px; box-shadow: 0 1px 8px rgba(12, 35, 43, .05); }
.pano .pn-kart .bk-kart-ust h2 i { background: color-mix(in srgb, var(--k) 85%, #fff); }
.pano .pn-kart .bk-kart-ust > a { color: color-mix(in srgb, var(--k) 85%, #1d3a40); }
.pano .pn-uyari-kart { border-top: 3px solid #d39a3a; }
.pano .pn-ziyaret.bugun .pn-z-tarih { background: linear-gradient(135deg, #3fae9c, #2f8e86); }
