/* ADATASK_TABLET_LANDSCAPE_TOOLBAR_SIDEBAR_V3695
   Fixes duplicate shell toolbar and gives short landscape tablets a dedicated,
   independently scrollable navigation region. */

/* Narrow mode is authoritative even when a touch tablet reports 1200-1366px.
   The desktop topbar must never coexist with the mobile/tablet header. */
html.adatask-narrow .desk-only{display:none!important}

@media (orientation:landscape) and (min-width:760px) and (max-height:900px){
 html.adatask-narrow .sidebar.adatask-sidebar-premium-v1,
 html.adatask-narrow.adatask-mini-sidebar-v3-r2 .sidebar.adatask-sidebar-premium-v1{
  display:flex!important;
  flex-direction:column!important;
  height:100dvh!important;
  max-height:100dvh!important;
  overflow:hidden!important;
 }

 /* Large occasion artwork is useful on portrait/desktop, but wastes most of
    the vertical budget on a short landscape tablet. Keep company identity,
    close control and logo in a compact strip instead. */
 html.adatask-narrow .sidebar.adatask-sidebar-premium-v1 .adatask-sidebar-brand-v1{
  flex:0 0 auto!important;
  padding:5px 8px!important;
 }
 html.adatask-narrow .sidebar.adatask-sidebar-premium-v1 .adatask-brand-shell-v6,
 html.adatask-narrow .sidebar.adatask-sidebar-premium-v1 .adatask-brand-shell-v6.is-brand-only{
  height:58px!important;
  min-height:58px!important;
  max-height:58px!important;
  overflow:hidden!important;
  border-radius:12px!important;
 }
 html.adatask-narrow .sidebar.adatask-sidebar-premium-v1 .adatask-sidebar-company-strip-v6,
 html.adatask-narrow .sidebar.adatask-sidebar-premium-v1 .adatask-brand-shell-v6.is-brand-only .adatask-sidebar-company-strip-v6{
  top:5px!important;
  right:5px!important;
  left:5px!important;
  bottom:auto!important;
  height:48px!important;
  min-height:48px!important;
  transform:none!important;
  padding:0 6px!important;
 }
 html.adatask-narrow .sidebar.adatask-sidebar-premium-v1 .adatask-sidebar-company-logo-v6{
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
 }
 html.adatask-narrow .sidebar.adatask-sidebar-premium-v1 .adatask-sidebar-occasion-hero-v6,
 html.adatask-narrow .sidebar.adatask-sidebar-premium-v1 .adatask-sidebar-occasion-title-v9,
 html.adatask-narrow .sidebar.adatask-sidebar-premium-v1 .adatask-sidebar-occasion-caption-v6{
  display:none!important;
 }

 html.adatask-narrow .sidebar.adatask-sidebar-premium-v1 .adatask-sidebar-search-v1{
  flex:0 0 34px!important;
  height:34px!important;
  min-height:34px!important;
  width:calc(100% - 16px)!important;
  margin:4px 8px!important;
 }

 /* The navigation owns all remaining height and scrolls by itself. This keeps
    identity/profile controls stable while every module remains reachable. */
 html.adatask-narrow .sidebar.adatask-sidebar-premium-v1 .adatask-sidebar-nav-v1-r2{
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  padding:2px 8px 6px!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(196,181,253,.55) transparent!important;
 }
 html.adatask-narrow .sidebar.adatask-sidebar-premium-v1 .adatask-sidebar-nav-v1-r2::-webkit-scrollbar{width:6px!important}
 html.adatask-narrow .sidebar.adatask-sidebar-premium-v1 .adatask-sidebar-nav-v1-r2::-webkit-scrollbar-thumb{
  background:rgba(196,181,253,.48)!important;border-radius:999px!important
 }
 html.adatask-narrow .sidebar.adatask-sidebar-premium-v1 .adatask-sidebar-navitem-v1-r2{
  min-height:38px!important;
  padding:6px 8px!important;
  margin:1px 0!important;
 }
 html.adatask-narrow .sidebar.adatask-sidebar-premium-v1 .adatask-sidebar-section-title-v1-r2{
  height:20px!important;
  min-height:20px!important;
  margin-bottom:2px!important;
 }

 /* Footer remains available without consuming half the drawer. */
 html.adatask-narrow .sidebar.adatask-sidebar-premium-v1 .adatask-sidebar-team-toggle-v2{
  min-height:32px!important;
  padding-top:4px!important;
  padding-bottom:4px!important;
 }
 html.adatask-narrow .sidebar.adatask-sidebar-premium-v1 .adatask-sidebar-team-list-v2{
  max-height:90px!important;
 }
 html.adatask-narrow .sidebar.adatask-sidebar-premium-v1 .adatask-sidebar-profile-v3-r2{
  flex:0 0 auto!important;
  min-height:42px!important;
  padding:6px 9px!important;
 }
 html.adatask-narrow .sidebar.adatask-sidebar-premium-v1 .adatask-sidebar-logout-v3-r2{
  flex:0 0 auto!important;
  min-height:34px!important;
  margin:5px 9px 7px!important;
  padding:7px!important;
  width:calc(100% - 18px)!important;
  font-size:12px!important;
 }
}
