/* Personel mobil linki — yönetim pencereleri (mlk-*) ve telefon kabuğu (m-*).
   Prototip: docs/ortak-servisler/mobil-erisim/PERSONEL_MOBIL_LINK_PROTOTIP.html. Değişince index.html'deki ?v= damgasını artır. */

/* ---------- yönetim: liste ---------- */
.mlk-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.mlk-count { width: 90px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mlk-acts { display: inline-flex; gap: 3px; }
.mlk-sub { font-size: .78rem; color: var(--rz-text-secondary-color, #667085); }
.mlk-loading { padding: 16px; opacity: .75; }

/* ---------- yönetim: pencere ---------- */
.mlk-cap { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--rz-text-secondary-color, #667085); margin: 10px 0 4px; }
.mlk-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 14px; font-size: .86rem; margin-bottom: 6px; }
.mlk-meta > div { display: flex; flex-direction: column; min-width: 0; }
.mlk-meta span { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--rz-text-secondary-color, #667085); }
.mlk-scopes { border: 1px solid var(--rz-base-300, #d5dbe3); border-radius: 4px; }
.mlk-scope { display: grid; grid-template-columns: 20px 140px 1fr; gap: 8px; align-items: start; padding: 7px 10px; border-top: 1px solid var(--rz-base-200, #e8edf1); font-size: .86rem; margin: 0; cursor: pointer; }
.mlk-scope:first-child { border-top: 0; }
.mlk-scope.off { color: var(--rz-text-secondary-color, #667085); background: #fafbfc; cursor: default; }
.mlk-scope small { display: block; font-size: .76rem; color: var(--rz-text-secondary-color, #667085); }
.mlk-scope small.mlk-why { color: #92400e; }
/* Proje seçimli bölümün projeleri (Satın Alma onayları): bölüm satırının altında, ad sütunu hizasında iki sütun; üst satırda sayı + kısa yollar. */
.mlk-projs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; margin: -2px 10px 7px 38px; padding: 6px 8px;
             border: 1px solid var(--rz-base-200, #e8edf1); border-radius: 4px; background: #fff; font-size: .82rem; }
.mlk-projs-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: .76rem; color: var(--rz-text-secondary-color, #667085); }
.mlk-projs-head button { border: 0; background: none; padding: 0; color: var(--rz-primary, #2563eb); text-decoration: underline; cursor: pointer; font: inherit; }
.mlk-projs-head button:disabled { color: var(--rz-text-disabled-color, #98a2b3); cursor: default; }
.mlk-projs-head .mlk-why { margin-left: auto; color: #b42318; font-weight: 600; }
.mlk-proj { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; cursor: pointer; }
.mlk-proj > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mlk-proj small { color: var(--rz-text-secondary-color, #667085); }
.mlk-proj.off { color: var(--rz-text-secondary-color, #667085); cursor: default; }
.mlk-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mlk-msg { min-height: 2.6rem; margin-top: 6px; }
.mlk-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rz-base-200, #e8edf1); }
.mlk-foot-wrap { flex-wrap: wrap; }
.mlk-pick { max-height: 52vh; overflow-y: auto; border: 1px solid var(--rz-base-300, #d5dbe3); border-radius: 4px; margin-top: 8px; }
.mlk-pick-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 0; border-top: 1px solid var(--rz-base-200, #e8edf1); background: #fff; text-align: left; cursor: pointer; font: inherit; }
.mlk-pick-row:first-child { border-top: 0; }
.mlk-pick-row:hover { background: #eff6ff; }
.mlk-pick-name { flex: 1; min-width: 0; font-weight: 600; }
.mlk-pick-name small { display: block; font-weight: 400; font-size: .78rem; color: var(--rz-text-secondary-color, #667085); }
.mlk-pick-tag { flex: none; font-size: .76rem; color: #1d4ed8; }

/* ---------- yönetim: link hazır ---------- */
.mlk-issued-grid { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 14px; align-items: start; margin-top: 8px; }
.mlk-issued-left { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mlk-box { border: 1px solid var(--rz-base-300, #d5dbe3); border-radius: 4px; padding: 8px 10px; background: #f8fafc; }
.mlk-box .mlk-cap { margin-top: 0; }
.mlk-url { display: block; font-size: .78rem; word-break: break-all; }
.mlk-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mlk-wa { text-decoration: none; }
.mlk-pin { font: 700 1.6rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .25em; }
.mlk-issued-qr { display: flex; flex-direction: column; gap: 6px; }
.mlk-seg { display: flex; border: 1px solid var(--rz-base-400, #98a2b3); border-radius: 6px; overflow: hidden; }
.mlk-seg button { flex: 1; border: 0; background: #fff; padding: 6px 4px; font-size: .74rem; font-weight: 600; cursor: pointer; color: #344054; }
.mlk-seg button + button { border-left: 1px solid var(--rz-base-400, #98a2b3); }
.mlk-seg button.on { background: var(--rz-primary, #2563eb); color: #fff; }
.mlk-qr { width: 200px; height: 200px; border: 2px solid #1e293b; border-radius: 8px; padding: 6px; background: #fff; box-sizing: border-box; }
.mlk-qr svg { width: 100%; height: 100%; display: block; }
.mlk-qr-cap { min-height: 3.2em; }
@media (max-width: 640px) {
    .mlk-issued-grid, .mlk-row2 { grid-template-columns: minmax(0, 1fr); }
    .mlk-scope { grid-template-columns: 20px minmax(0, 1fr); }
    .mlk-scope > span { grid-column: 2; }
    .mlk-projs { grid-template-columns: minmax(0, 1fr); margin-left: 10px; }
}

/* ---------- telefon: ana sayfa kartları (rp-mob-* kabuğunun içinde) ---------- */
/* Sıkı kart: simge solda, başlık; altında sayı + açıklama tek satır. Çok bölümlü linkte bütün kartlar ilk ekrana sığsın (kullanıcı isteği 10.10.2026). */
.m-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 10px 0; }
.m-tile { display: flex; flex-direction: row; align-items: flex-start; gap: 8px; min-width: 0; padding: 8px 10px; background: #fff; color: #111827;
          border: 2px solid var(--ph-edge, #475569); border-radius: 8px; text-align: left; cursor: pointer; font: inherit; }
.m-tile:active { border-color: #1d4ed8; background: #eff6ff; }
.m-tile.wide { grid-column: span 2; }
.m-tile.warn { border-color: #b45309; background: #fffbeb; }
.m-tile-ic { flex: none; font-size: 20px; line-height: 1.2; color: #1e293b; }
.m-tile-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.m-tile-txt b { font-size: 13.5px; line-height: 1.25; }
.m-tile-txt small { font-size: 11.5px; line-height: 1.3; color: #475569; min-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-tile.warn .m-tile-txt small { color: #92400e; white-space: normal; }
.m-tile-n { font-size: 14px; font-weight: 700; color: #1d4ed8; font-variant-numeric: tabular-nums; margin-right: 3px; }

/* ---------- telefon: bölüm ekranlarının ortak parçaları (saha kuralları: koyu çizgi, ekranda duran seçim, özetli onay) ---------- */
.m-card { display: block; width: calc(100% - 24px); margin: 8px 12px 0; padding: 10px 12px; background: #fff; border: 2px solid var(--ph-edge, #475569); border-radius: 8px;
          font: inherit; color: #111827; text-align: left; }
button.m-card { cursor: pointer; }
button.m-card:active { border-color: #1d4ed8; background: #eff6ff; }
.m-card .m-r1 { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.m-card .m-r1 .m-dt { margin-left: auto; font-size: 11.5px; color: #475569; white-space: nowrap; }
.m-card .m-cn { font-weight: 650; font-size: 14px; }
.m-card .m-ad { font-size: 12px; color: #475569; }
.m-ptag { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 0 6px; line-height: 17px; border: 1px solid #94a3b8; border-radius: 4px; color: #334155; background: #f1f5f9; }
.m-late { color: #b91c1c; font-weight: 600; }
.m-chs { margin: 8px 12px 0; border: 2px solid var(--ph-edge, #475569); border-radius: 8px; overflow: hidden; background: #fff; }
.m-ch { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 8px 12px; border: 0; border-top: 1px solid #94a3b8; background: #fff;
        color: #111827; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.m-ch:first-child { border-top: 0; }
.m-ch:active { background: #dbeafe; }
.m-ch.on { background: #eff6ff; color: #1d4ed8; font-weight: 650; }
.m-ch:disabled { color: #94a3b8; cursor: default; }
.m-ch-t { flex: 1; min-width: 0; }
.m-ch-t small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: #475569; }
.m-ch .m-ck { flex: none; width: 20px; font-size: 18px; color: #1d4ed8; text-align: right; }
/* Seçim satırının sağındaki sayı (Satın Alma onayları › proje seçimi: kararınızı bekleyen); sıfırsa soluk. */
.m-ch .m-cnt { flex: none; min-width: 30px; text-align: center; font-size: 16px; font-weight: 750; color: #1d4ed8; }
.m-ch .m-cnt.zero { color: #94a3b8; font-weight: 600; }
.m-q { margin: 8px 12px 0; padding: 10px 12px; background: #fff; border: 2px solid var(--ph-edge, #475569); border-radius: 8px; }
.m-q-t { font-size: 14px; margin-bottom: 8px; }
.m-q-block { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-size: 11px; font-weight: 700; }
.m-yn { display: flex; gap: 8px; }
.m-yn button { flex: 1; height: 46px; border: 2px solid var(--ph-edge, #475569); border-radius: 6px; background: #fff; font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; }
.m-yn button.ok { background: #15803d; border-color: #15803d; color: #fff; }
.m-yn button.no { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.m-ta { display: block; width: calc(100% - 24px); margin: 8px 12px 0; min-height: 84px; border: 2px solid var(--ph-edge, #475569); border-radius: 6px; padding: 8px;
        font-family: inherit; font-size: 14px; line-height: 1.4; resize: vertical; box-sizing: border-box; }
.m-in { display: block; width: calc(100% - 24px); margin: 8px 12px 0; height: 44px; border: 2px solid var(--ph-edge, #475569); border-radius: 6px; padding: 0 10px;
        font-family: inherit; font-size: 15px; box-sizing: border-box; background: #fff; }
.m-q .m-in, .m-q .m-ta { width: 100%; margin: 0; }
.m-file { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border: 2px solid var(--ph-edge, #475569); border-radius: 6px; background: #fff;
          font-weight: 600; cursor: pointer; }
.m-file input { display: none; }
.m-files { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 12px 0; }
.m-okline { color: #15803d; font-weight: 600; font-size: 13px; }
.m-warn { margin: 8px 12px 0; padding: 10px; border-radius: 6px; background: #fef3c7; color: #92400e; font-size: 12.5px; border: 1px solid #fcd34d; }
.m-err { min-height: 18px; margin: 6px 12px 0; font-size: 12.5px; color: #b91c1c; }
.m-sum { margin: 8px 12px 0; background: #fff; border: 2px solid var(--ph-edge, #475569); border-radius: 8px; }
.m-sum dl { margin: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); }
.m-sum dt, .m-sum dd { margin: 0; padding: 8px 10px; border-top: 1px solid #94a3b8; font-size: 13px; overflow-wrap: anywhere; }
.m-sum dt { color: #475569; }
.m-sum dl > :nth-child(1), .m-sum dl > :nth-child(2) { border-top: 0; }
.m-cf-q { margin: 12px 12px 0; font-size: 15px; font-weight: 650; }
.m-done { padding: 36px 18px; text-align: center; }
.m-done .m-big { font-size: 46px; color: #15803d; line-height: 1; }
.m-seg { display: flex; margin: 10px 12px 2px; border: 2px solid #1e293b; border-radius: 8px; overflow: hidden; background: #fff; }
.m-seg button { flex: 1; height: 40px; border: 0; background: #fff; color: #1e293b; font-family: inherit; font-weight: 650; font-size: 13px; cursor: pointer; }
.m-seg button + button { border-left: 2px solid #1e293b; }
.m-seg button.on { background: #1d4ed8; color: #fff; }
.m-kv { margin: 8px 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.m-kv div { background: #fff; border: 2px solid var(--ph-edge, #475569); border-radius: 8px; padding: 6px 10px; font-size: 12px; color: #475569; }
.m-kv b { display: block; font-size: 16px; color: #111827; }
.m-qa { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.m-qa a, .m-qa button { flex: 1; min-width: 88px; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 2px solid var(--ph-edge, #475569);
        border-radius: 6px; background: #fff; color: #1e293b; font-family: inherit; font-weight: 600; font-size: 13px; text-decoration: none; cursor: pointer; }
.m-pst { display: inline-block; font-size: 11px; font-weight: 700; padding: 0 7px; line-height: 19px; border-radius: 4px; color: #fff; background: #64748b; white-space: nowrap; }

/* Satın Alma onayları (telefon): tür süzgeci yalnız listeyi süzer, kayıt yapmaz; kart tutarı; belge kalemleri */
/* Tür düğmeleri satırı eşit paylaşır, ekran daraldıkça daralır; metin kesilecek noktaya gelince (min-width: max-content) fazla düğme alt satıra geçer.
   Düğmede iki satır (tür / adet), yükseklik 36px'te sabit. */
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 12px 0; }
.m-chips button { flex: 1 1 0; min-width: max-content; height: 36px; padding: 0 8px; border: 2px solid var(--ph-edge, #475569); border-radius: 6px; background: #fff; color: #1e293b;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
        font-family: inherit; white-space: nowrap; cursor: pointer; line-height: 1.05; }
.m-chips button span { font-size: 11.5px; font-weight: 600; }
.m-chips button b { font-size: 13px; font-weight: 750; }
.m-chips button.on { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.m-amt { margin-left: auto; font-weight: 700; font-size: 15px; color: #111827; white-space: nowrap; }
.m-card.m-dim { opacity: .75; }
/* Onaylar Proje Bağlantısına göre gruplu: grup başlığı (proje adı + belge sayısı); bölüm başlığından (rp-mob-sec) bir kademe hafif */
.m-grp { display: flex; align-items: baseline; gap: 8px; margin: 12px 12px 0; padding: 0 2px 2px; border-bottom: 1px solid #94a3b8; font-size: 13px; font-weight: 650; color: #1e293b; }
.m-grp span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.m-grp b { font-size: 12px; color: #475569; }
.m-lines { margin: 8px 12px 0; background: #fff; border: 2px solid var(--ph-edge, #475569); border-radius: 8px; }
.m-line { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-top: 1px solid #94a3b8; font-size: 13px; }
.m-line:first-child { border-top: 0; }
.m-line-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.m-line-t small { display: block; color: #475569; font-size: 12px; }
.m-line b { white-space: nowrap; }
/* Bağlı belge satırı dokunulabilir: belgenin salt okunur ekranını açar (sağda ›). */
button.m-line { width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: none; color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
button.m-line:first-child { border-top: 0; }
button.m-line:active { background: #dbeafe; }
.m-line .m-go { flex: none; align-self: center; font-size: 18px; line-height: 1; color: #1d4ed8; }

/* ---------- telefon: CRM ziyaret noktası (2026-10-11; prototip CRM_ZIYARET_ROTA_SAHA_PROTOTIP.html ekran 7). Her işlem kendi ekranında + özetli onay. ---------- */
.m-info { margin: 8px 12px 0; padding: 10px 12px; border-radius: 6px; background: #eff6ff; color: #1e3a8a; font-size: 12.5px; border: 1px solid #93c5fd; }
.m-lock { margin: 8px 12px 0; padding: 10px 12px; border-radius: 6px; background: #f1f5f9; color: #334155; font-size: 13px; border: 2px solid var(--ph-edge, #475569); }
.m-wide { display: flex; width: 100%; margin-top: 8px; }
.m-actrow { display: flex; gap: 8px; flex: 1; min-width: 0; }
.m-btnlink { text-decoration: none; }
.m-far { color: #b45309 !important; font-weight: 650; }
.m-qa small { font-size: 10.5px; font-weight: 500; opacity: .75; margin-left: 2px; }
.m-ops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 12px 0; }
.m-op { min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px; background: #fff;
        border: 2px solid var(--ph-edge, #475569); border-radius: 10px; font: inherit; font-size: 13px; font-weight: 650; color: #111827; cursor: pointer; }
.m-op small { font-size: 11px; font-weight: 500; color: #475569; }
.m-op.pri { border-color: #1d4ed8; background: #eff6ff; }
.m-op:active { background: #dbeafe; }
.m-op:disabled { opacity: .4; cursor: default; }
.m-op-ic { font-size: 22px; line-height: 1; }
.m-evl { margin: 8px 12px 0; background: #fff; border: 2px solid var(--ph-edge, #475569); border-radius: 8px; }
.m-ev { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 6px; padding: 8px 10px; border-top: 1px solid #94a3b8; font-size: 13px; align-items: start; }
.m-ev:first-child { border-top: 0; }
.m-ev small { display: block; color: #475569; font-size: 12px; overflow-wrap: anywhere; }
.m-ev-w { font-size: 11.5px; color: #475569; white-space: nowrap; font-variant-numeric: tabular-nums; }
.m-loc { margin: 8px 12px 0; padding: 14px 12px; min-height: 140px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px;
         background: #fff; border: 2px solid var(--ph-edge, #475569); border-radius: 8px; text-align: center; }
.m-loc small { font-size: 12px; color: #475569; }
.m-loc a { color: #1d4ed8; font-weight: 600; font-size: 13px; margin-top: 4px; }
.m-loc-big { font-size: 26px; font-weight: 750; line-height: 1.15; font-variant-numeric: tabular-nums; }
.m-loc-co { font: 600 13px ui-monospace, Consolas, monospace; color: #1e293b; }
.m-tg { display: flex; gap: 10px; align-items: center; margin: 8px 12px 0; padding: 10px 12px; background: #fff; border: 2px solid var(--ph-edge, #475569);
        border-radius: 8px; font-size: 14px; cursor: pointer; }
.m-tg input { width: 22px; height: 22px; flex: none; }
.m-tg small { display: block; margin-top: 2px; font-size: 12px; color: #475569; }
.m-rec { margin: 8px 12px 0; padding: 16px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; background: #fff;
         border: 2px solid var(--ph-edge, #475569); border-radius: 8px; text-align: center; }
.m-rec-tm { width: 7ch; font: 700 30px/1 ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; }
.m-rec-lim { min-height: 17px; font-size: 12.5px; color: #475569; }
.m-rec-row { display: flex; gap: 8px; width: 100%; }
.m-recbtn { width: 84px; height: 84px; display: grid; place-items: center; border: 3px solid #1e293b; border-radius: 50%; background: #fff; cursor: pointer; }
.m-recbtn i { display: block; width: 34px; height: 34px; border-radius: 50%; background: #dc2626; }
.m-recbtn.on i { width: 30px; height: 30px; border-radius: 6px; }
.m-recbtn.on { animation: m-rec-pulse 1.2s infinite; }
@keyframes m-rec-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .35); } 50% { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); } }
.m-x { flex: none; width: 32px; height: 32px; border: 2px solid var(--ph-edge, #475569); border-radius: 50%; background: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.m-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; }
.m-reqs { margin: 8px 12px 0; background: #fff; border: 2px solid var(--ph-edge, #475569); border-radius: 8px; }
.m-rq { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 12px; border-top: 1px solid #94a3b8; font-size: 14px; }
.m-rq:first-child { border-top: 0; }
.m-rq-s { flex: none; width: 22px; font-weight: 750; }
.m-rq-s.y { color: #15803d; } .m-rq-s.n { color: #b91c1c; }
.m-rq-t { flex: 1; min-width: 0; }
.m-rq-t small { display: block; font-size: 12px; color: #475569; }
.m-rq-go { flex: none; height: 34px; padding: 0 10px; border: 2px solid #1d4ed8; border-radius: 6px; background: #fff; color: #1d4ed8; font: inherit; font-size: 12.5px;
           font-weight: 650; cursor: pointer; }
