/* Telefon görünümü (≤ 768 px). Masaüstü görünümüne dokunmaz. */
.mb-only{ display:none !important; }
#mbOverlay{ display:none; }
@media (max-width:768px){
  html{ -webkit-text-size-adjust:100%; }
  body{ overscroll-behavior-y:none; -webkit-tap-highlight-color:transparent; }
  .mb-only{ display:flex !important; }
  .app-shell{ height:100vh; height:100dvh; }
  .main-content{ min-width:0; width:100%; }

  /* çekmece menü */
  .sidebar, .sidebar.collapsed{ position:fixed; left:0; top:0; bottom:0; width:min(84vw,310px); min-width:0; z-index:70; transform:translateX(-102%); transition:transform .2s ease; box-shadow:0 0 40px rgba(0,0,0,.35); padding-top:env(safe-area-inset-top); padding-bottom:env(safe-area-inset-bottom); }
  body.mb-open .sidebar{ transform:none; }
  #mbOverlay{ position:fixed; inset:0; background:rgba(10,12,30,.5); z-index:65; }
  body.mb-open #mbOverlay{ display:block; }
  #collapseSidebarBtn{ display:none; }
  .nav-item, .nav-folder-head{ padding:12px 10px !important; font-size:15px; }
  .nav-fmenu{ opacity:1 !important; padding:4px 8px; }

  /* üst çubuk */
  .topbar{ padding:0 10px; gap:8px; height:54px; min-height:54px; padding-top:env(safe-area-inset-top); box-sizing:content-box; }
  .topbar-left{ flex:1; min-width:0; }
  .topbar-left h1{ font-size:17px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .view-subtitle{ display:none; }
  .topbar-right{ gap:6px; align-items:center; flex-shrink:0; }
  .topbar-actions{ display:flex; gap:6px; }
  .topbar-actions [data-auto]{ font-size:0; width:40px; padding:0; justify-content:center; } .topbar-actions [data-auto]::before{ content:"🤖"; font-size:17px; }
  .topbar-actions [data-share]{ font-size:0; width:40px; padding:0; justify-content:center; } .topbar-actions [data-share]::before{ content:"👥"; font-size:17px; } .topbar-actions [data-seen]{ display:none; }
  .iz-row{ flex-wrap:wrap; } .iz-row > .iz-who{ flex:1 1 100%; } .iz-row > .settings-select{ flex:1; max-width:none; }
  .ou-presence{ display:none; }
  .ou-status{ font-size:0 !important; width:12px; height:12px; padding:0 !important; border-radius:50% !important; background:#00c875 !important; }
  .ou-status.busy{ background:#fdab3d !important; } .ou-status.warn{ background:#fdab3d !important; } .ou-status.err{ background:#e2445c !important; }
  .lvl-pill{ display:none; }
  #bellBtn{ display:none; }
  #mbMenu{ width:42px; height:42px; align-items:center; justify-content:center; flex-shrink:0; }

  /* içerik + alt çubuk */
  .content-area{ padding:12px 12px calc(84px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling:touch; }
  #mbNav{ position:fixed; left:0; right:0; bottom:0; z-index:60; height:60px; padding-bottom:env(safe-area-inset-bottom); background:var(--surface); border-top:1px solid var(--border); justify-content:space-around; align-items:stretch; }
  #mbNav button{ position:relative; flex:1; border:none; background:none; color:var(--text-faint); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font-size:11px; }
  #mbNav button.on{ color:var(--purple); font-weight:700; }
  .mb-badge{ position:absolute; top:7px; left:calc(50% + 6px); min-width:17px; height:17px; border-radius:9px; background:var(--danger); color:#fff; font-size:10.5px; line-height:17px; text-align:center; font-style:normal; display:none; } .mb-badge.on{ display:block; }
  .icon-btn{ min-width:38px; min-height:38px; }
  .btn{ min-height:40px; } .btn-sm{ min-height:38px; padding:6px 12px; }
  input, select, textarea, .bpop-input{ font-size:16px !important; } /* iPhone odaklanınca yakınlaştırmasın */

  /* pano */
  .bp-views{ overflow-x:auto; flex-wrap:nowrap !important; scrollbar-width:none; } .bp-views::-webkit-scrollbar, .bp-toolbar::-webkit-scrollbar{ display:none; }
  .bp-tab{ white-space:nowrap; padding:10px 12px; }
  .bp-toolbar{ flex-wrap:nowrap !important; overflow-x:auto; scrollbar-width:none; padding-bottom:4px; }
  .bp-toolbar > *{ flex:0 0 auto; } .bp-toolbar .board-search{ width:170px; min-width:0; } .bp-toolbar .filter-select{ max-width:130px; }
  .bt-c-sel{ display:none !important; }
  .bt-c-name{ left:0 !important; min-width:168px !important; max-width:168px !important; border-left:5px solid var(--gc, var(--border)) !important; }
  .bt-subtable .bt-c-name{ min-width:150px !important; max-width:150px !important; border-left:none !important; }
  .bt-subwrap > td{ padding:8px 6px 8px 10px !important; }
  .bt-h{ min-width:118px; } .bt-table td{ height:44px; } .bt-namewrap{ height:44px; padding:0 4px; } .bt-table .status-cell{ height:44px; }
  .bt-hmenu, .bt-gmenu{ opacity:1; }
  .bt-namewrap .drag-h, .bt-namewrap [data-rowmenu]{ display:none; } /* basılı tutunca sürüklenir; menü öğe sayfasında */
  .bt-open{ opacity:1; } .sub-tg{ opacity:1; }
  .bt-pin{ position:static !important; box-shadow:none !important; }
  .bt-ghead{ position:sticky; left:0; }
  .bt-rsz{ display:none; }
  .bt-addin{ padding:12px; }
  .bp-bulk{ position:fixed; left:8px; right:8px; bottom:calc(68px + env(safe-area-inset-bottom)); z-index:58; overflow-x:auto; flex-wrap:nowrap; }
  .kb-board{ scroll-snap-type:x mandatory; overflow-x:auto; gap:10px; } .kb-lane{ width:82vw; min-width:82vw; scroll-snap-align:start; max-height:none; } .kb-card{ padding:12px; }
  .cards-grid{ grid-template-columns:1fr !important; }
  .fv-wrap{ flex-direction:column; display:flex; } .fv-card, .fv-side{ width:100%; max-width:none; }
  .bh-grid{ grid-template-columns:1fr !important; } .bh-top{ flex-wrap:wrap; } .bh-top .field-hint{ display:none; }
  .settings-grid{ grid-template-columns:1fr; gap:12px; } .ou-row{ gap:8px; } .ou-pass, .add-owner-row{ flex-direction:column; align-items:stretch; } .ou-pass input:not([hidden]), .add-owner-row input{ flex:none; }
  .mw-row{ grid-template-columns:1fr auto !important; display:grid; gap:4px; } .mw-where{ grid-column:1 / -1; order:3; }
  .cal-grid, .cal-wrap, [class^="cal-month"]{ min-width:640px; } .bv-calendar{ overflow-x:auto; }

  /* öğe sayfası tam ekran */
  .detail-panel{ width:100vw; right:-100vw; height:100vh; height:100dvh; border-left:none; z-index:75; }
  .detail-header{ padding:12px 14px; padding-top:calc(12px + env(safe-area-inset-top)); } .detail-body{ padding:14px 14px calc(30px + env(safe-area-inset-bottom)); }
  .ip-tabs{ overflow-x:auto; flex-wrap:nowrap; scrollbar-width:none; } .ip-tab{ white-space:nowrap; padding:10px 10px; }
  .ip-field{ grid-template-columns:118px 1fr !important; min-height:46px; } .ip-fval{ min-height:44px; }
  .ip-compose textarea{ min-height:96px; }

  /* açılır pencereler alttan çıkar */
  .bpop{ left:0 !important; right:0 !important; top:auto !important; bottom:0 !important; width:100% !important; max-width:none !important; min-width:0 !important; max-height:78vh; max-height:78dvh; border-radius:18px 18px 0 0; padding-bottom:calc(10px + env(safe-area-inset-bottom)); box-shadow:0 -10px 50px rgba(0,0,0,.35), 0 0 0 100vmax rgba(10,12,30,.35); animation:mbUp .18s ease; z-index:95; }
  .bpop::before{ content:""; display:block; width:42px; height:4px; border-radius:2px; background:var(--border); margin:8px auto 2px; }
  @keyframes mbUp{ from{ transform:translateY(40px); opacity:.4; } }
  .bmenu-item{ padding:13px 16px; font-size:15px; }
  .mp-row, .bpop-check{ padding:8px 4px; font-size:15px; }
  .bmodal-ov{ padding:0; align-items:flex-end; } .bmodal, .bmodal.wide{ width:100%; border-radius:18px 18px 0 0; max-height:92vh; max-height:92dvh; overflow:auto; padding:18px 16px calc(18px + env(safe-area-inset-bottom)); }
  .bpop-actions{ position:sticky; bottom:0; background:var(--surface); padding-top:8px; } .bpop-actions .btn{ flex:1; justify-content:center; }
  .filt-row, .au-act, .au-step{ flex-wrap:wrap; } .filt-row > *, .au-act > .bpop-input{ flex:1 1 45%; }
  .qf-cols{ flex-direction:column; max-width:none; max-height:none; } .qf-i{ padding:10px; font-size:14px; }
  .tp-grid{ grid-template-columns:1fr !important; } .colpick-grid{ grid-template-columns:1fr 1fr !important; } .colpick-item{ padding:12px 10px; }
  .ba-line{ flex-wrap:wrap; }
  .notif{ min-width:0; } .notif-row{ padding:12px; font-size:14.5px; }
  .toast-container{ left:10px; right:10px; bottom:calc(72px + env(safe-area-inset-bottom)); top:auto; } .toast{ max-width:none; }
  .oa-card{ width:calc(100vw - 28px) !important; max-width:420px; }
  .gt-left{ width:120px; min-width:120px; } .gt-lrow{ padding:0 6px; font-size:12px; } .wl th:first-child, .wl td.wl-p{ min-width:118px; padding:6px 8px; } .pf-row{ grid-template-columns:1fr 84px; } .pf-tl, .pf-d{ grid-column:1 / -1; } .dep-row{ flex-wrap:wrap; } .dep-row > span{ flex:1 1 100%; }
  .dw-body{ overflow-x:auto; }
  .confirm-box, #confirmModal .modal{ width:calc(100vw - 24px) !important; }
  .dnd-ghost{ font-size:15px; }
}
@media (max-width:768px) and (orientation:landscape){ .kb-lane{ width:46vw; min-width:46vw; } }
/* türe özel giriş */
.ci{ min-width:270px; } .ci-err{ color:var(--danger); font-size:12.5px; min-height:16px; margin-top:6px; } .ci-cc{ flex:0 0 118px; width:118px; } .ci-f{ flex:1; min-width:0; }
.colpick-sug{ border:1px dashed var(--purple); border-radius:10px; padding:8px; margin:8px 0; } .colpick-sug .colpick-h{ color:var(--purple); }
.ip-fval{ position:relative; } .ip-edit{ position:absolute; right:2px; top:50%; transform:translateY(-50%); opacity:0; } .ip-fval:hover .ip-edit{ opacity:1; } @media (pointer:coarse){ .ip-edit{ opacity:1; } }
.status-cell{ min-height:100%; } .bt-table td .status-cell{ height:100%; min-height:38px; }
@media (max-width:768px){
  .sidebar{ box-shadow:none; } body.mb-open .sidebar{ box-shadow:0 0 40px rgba(0,0,0,.35); }
  .detail-panel{ box-shadow:none; }
  ::-webkit-scrollbar{ width:4px; height:4px; }
  .ip-tab{ padding:10px 7px; font-size:13.5px; }
}
