/* Task Digital yazilim demolarinin ortak mobil panel duzeni. */
.td-panel-dock{display:none}
.td-panel-dock[hidden]{display:none!important}

@media (max-width:840px){
  body.td-panel-open{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
    padding-bottom:calc(78px + env(safe-area-inset-bottom));
  }

  body.td-panel-open > .mobile-nav,
  body.td-panel-open .alt-menu,
  body.td-panel-open .td-global-menu-button,
  body.td-panel-open .td-global-menu-panel{display:none!important}

  body.td-panel-open .view.active:not(#view-giris):not(#view-home) .panel-header,
  body.td-panel-open #view-panel.active .panel-head{
    position:sticky!important;
    top:0!important;
    z-index:650!important;
    min-height:64px!important;
    height:64px!important;
    width:100%!important;
    max-width:100vw!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    flex-wrap:nowrap!important;
    gap:7px!important;
    padding:9px 10px!important;
    overflow:hidden!important;
    border-bottom:1px solid rgba(148,163,184,.2)!important;
    background:rgba(7,12,22,.96)!important;
    -webkit-backdrop-filter:blur(14px)!important;
    backdrop-filter:blur(14px)!important;
  }

  body.td-panel-open .panel-header-sol,
  body.td-panel-open .panel-left{
    min-width:0!important;
    width:auto!important;
    flex:1 1 auto!important;
    display:flex!important;
    align-items:center!important;
    flex-wrap:nowrap!important;
    gap:7px!important;
    padding:0!important;
    overflow:hidden!important;
  }

  body.td-panel-open .panel-header-sol > .marka,
  body.td-panel-open .panel-header-sol > .demo-pill,
  body.td-panel-open .panel-left > .panel-brand,
  body.td-panel-open .panel-header .sekmeler,
  body.td-panel-open .panel-head .tabs{display:none!important}

  body.td-panel-open .panel-header .rol-etiket,
  body.td-panel-open .panel-head .role{
    display:block!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    border:0!important;
    background:transparent!important;
    color:#f8fafc!important;
    font-size:11px!important;
    font-weight:800!important;
    letter-spacing:.045em!important;
    padding:0!important;
  }

  body.td-panel-open .panel-header > .btn[data-action="cikis"],
  body.td-panel-open .panel-head > .btn[data-action="home"]{
    flex:0 0 auto!important;
    position:static!important;
    inset:auto!important;
    min-width:0!important;
    width:auto!important;
    margin:0!important;
    padding:9px 10px!important;
    border:1px solid rgba(148,163,184,.28)!important;
    border-radius:10px!important;
    background:#151e2b!important;
    color:#f8fafc!important;
    font-size:10px!important;
    line-height:1!important;
    font-weight:800!important;
    white-space:nowrap!important;
  }

  .td-panel-dock{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:900;
    display:flex;
    align-items:stretch;
    gap:3px;
    width:100%;
    max-width:100vw;
    min-height:72px;
    padding:6px 8px calc(6px + env(safe-area-inset-bottom));
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
    border-top:1px solid rgba(148,163,184,.22);
    background:rgba(7,13,23,.97);
    -webkit-backdrop-filter:blur(16px);
    backdrop-filter:blur(16px);
    box-shadow:0 -14px 34px rgba(0,0,0,.3);
  }
  .td-panel-dock[hidden]{display:none!important}
  .td-panel-dock::-webkit-scrollbar{display:none}

  .td-panel-dock-button{
    position:relative;
    flex:1 0 74px;
    min-width:74px;
    max-width:112px;
    min-height:58px;
    border:0;
    border-radius:11px;
    padding:5px 4px 4px;
    display:grid;
    place-items:center;
    align-content:center;
    gap:2px;
    background:transparent;
    color:#8f9bad;
    font:700 9px/1.15 Inter,Arial,sans-serif;
    text-align:center;
    white-space:normal;
  }
  .td-panel-dock-button::before{
    content:attr(data-td-icon);
    display:block;
    min-height:20px;
    color:#9ca9bc;
    font:700 17px/1 system-ui,sans-serif;
  }
  .td-panel-dock-button.active{
    background:color-mix(in srgb,var(--neon,var(--accent,#2dd4bf)) 15%,transparent);
    color:#fff;
    box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--neon,var(--accent,#2dd4bf)) 34%,transparent);
  }
  .td-panel-dock-button.active::before{color:var(--neon,var(--accent,#2dd4bf))}
  .td-panel-dock[data-count="1"] .td-panel-dock-button,
  .td-panel-dock[data-count="2"] .td-panel-dock-button,
  .td-panel-dock[data-count="3"] .td-panel-dock-button{
    flex:1 1 0;
    min-width:0;
    max-width:none;
  }

  body.td-panel-open .icerik,
  body.td-panel-open .panel-main,
  body.td-panel-open #app .content{
    width:100%!important;
    max-width:100vw!important;
    min-width:0!important;
    padding-left:14px!important;
    padding-right:14px!important;
    padding-bottom:96px!important;
    overflow-x:hidden!important;
  }
  body.td-panel-open .icerik-baslik,
  body.td-panel-open .page-title,
  body.td-panel-open .view-head{max-width:100%;min-width:0}
  body.td-panel-open .tablo-kapsayici,
  body.td-panel-open .table-wrap,
  body.td-panel-open .table-container{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}

  /* Oto servis gibi masaustunde sol menulu paneller de ayni mobil kaliba girer. */
  body.td-panel-open #app .app-shell{display:block!important;width:100%!important;max-width:100vw!important}
  body.td-panel-open #app .sidebar{display:none!important}
  body.td-panel-open #app .main{min-width:0!important;padding-bottom:0!important}
  body.td-panel-open #app .topbar{
    top:0!important;
    z-index:650!important;
    height:64px!important;
    padding:8px 10px!important;
    gap:7px!important;
    overflow:hidden!important;
  }
  body.td-panel-open #app .topbar > div:first-child{min-width:0!important;flex:1 1 auto!important}
  body.td-panel-open #app .topbar h2{font-size:14px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.td-panel-open #app .topbar small,
  body.td-panel-open #app .topbar .avatar,
  body.td-panel-open #app .top-actions .ghost{display:none!important}
  body.td-panel-open #app .mobile-demo-exit{display:inline-flex!important;order:2;min-height:36px;padding:8px 9px!important;font-size:9px!important}
  body.td-panel-open #app .top-actions{order:3;flex:0 0 auto!important;gap:0!important}
  body.td-panel-open #app .top-actions .cta{min-height:36px!important;max-width:96px;padding:8px 9px!important;font-size:9px!important;white-space:normal!important;line-height:1.05!important}
}

@media (max-width:390px){
  body.td-panel-open .panel-header > .btn[data-action="cikis"],
  body.td-panel-open .panel-head > .btn[data-action="home"]{padding-inline:8px!important;font-size:9px!important}
  .td-panel-dock-button{flex-basis:70px;min-width:70px}
}

@media (min-width:841px){
  .td-panel-dock{display:none!important}
}
