/* MISTER FAST LiveMapChat WEB V2.1.5
   Permanent fixed enterprise workspace.
   Sidebar/Header/Map/Chat stay fixed; only Driver results and chat messages scroll. */
:root{
  --mf215-driver-height:230px;
  --mf215-splitter-height:14px;
}

html,body{height:100%;}
@media (min-width:901px){
  html:has(body.mf-web-fixed-workspace-v215),
  body.mf-web-fixed-workspace-v215{
    overflow:hidden!important;
    overscroll-behavior:none;
  }

  body.mf-web-fixed-workspace-v215 .mf514-window{
    width:100%!important;
    height:100dvh!important;
    min-height:0!important;
    max-height:100dvh!important;
    display:grid!important;
    grid-template-rows:auto minmax(0,1fr) auto!important;
    overflow:hidden!important;
  }

  body.mf-web-fixed-workspace-v215 .mf514-titlebar{
    position:relative!important;
    inset:auto!important;
    z-index:2200!important;
    flex:0 0 auto!important;
  }

  body.mf-web-fixed-workspace-v215 .mf514-grid{
    min-height:0!important;
    height:100%!important;
    max-height:none!important;
    overflow:hidden!important;
    align-items:stretch!important;
  }

  body.mf-web-fixed-workspace-v215 .mf514-sidebar,
  body.mf-web-fixed-workspace-v215 .mf514-chat-pane{
    position:relative!important;
    inset:auto!important;
    top:auto!important;
    bottom:auto!important;
    height:100%!important;
    max-height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
  }

  body.mf-web-fixed-workspace-v215 .mf514-sidebar{
    display:flex!important;
    flex-direction:column!important;
  }
  body.mf-web-fixed-workspace-v215 .mf514-sidebar .mf514-menu{
    min-height:0!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    scrollbar-width:thin;
  }

  body.mf-web-fixed-workspace-v215 .mf514-chat-pane{
    display:flex!important;
    flex-direction:column!important;
  }
  body.mf-web-fixed-workspace-v215 .mf514-chat-head,
  body.mf-web-fixed-workspace-v215 .mf514-chat-tabs,
  body.mf-web-fixed-workspace-v215 .mf514-composer,
  body.mf-web-fixed-workspace-v215 .mf61-composer{
    flex:0 0 auto!important;
  }
  body.mf-web-fixed-workspace-v215 .mf514-chat-body,
  body.mf-web-fixed-workspace-v215 [data-mf514-chat-list],
  body.mf-web-fixed-workspace-v215 .mf61-chat-scroll,
  body.mf-web-fixed-workspace-v215 .mf61-message-list{
    min-height:0!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
  }

  body.mf-web-fixed-workspace-v215 .mf514-map-pane{
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    overflow:hidden!important;
    display:grid!important;
    grid-template-rows:auto minmax(210px,1fr) var(--mf215-splitter-height) minmax(150px,var(--mf215-driver-height))!important;
  }

  body.mf-web-fixed-workspace-v215 .mf514-map-toolbar{
    grid-row:1!important;
    position:relative!important;
    inset:auto!important;
    z-index:1200!important;
    flex:0 0 auto!important;
  }
  body.mf-web-fixed-workspace-v215 .mf514-map-wrap{
    grid-row:2!important;
    position:relative!important;
    inset:auto!important;
    height:auto!important;
    min-height:210px!important;
    max-height:none!important;
    overflow:hidden!important;
  }
  body.mf-web-fixed-workspace-v215 #mf514Map{
    width:100%!important;
    height:100%!important;
    min-height:210px!important;
  }

  body.mf-web-fixed-workspace-v215 .mf215-map-driver-splitter{
    grid-row:3!important;
    position:relative!important;
    z-index:1350!important;
    display:grid!important;
    place-items:center!important;
    width:100%!important;
    height:var(--mf215-splitter-height)!important;
    min-height:var(--mf215-splitter-height)!important;
    padding:0!important;
    border:0!important;
    border-top:1px solid #dce5f0!important;
    border-bottom:1px solid #dce5f0!important;
    background:#f7f9fc!important;
    cursor:row-resize!important;
    touch-action:none!important;
    user-select:none!important;
  }
  body.mf-web-fixed-workspace-v215 .mf215-map-driver-splitter span{
    width:58px;
    height:5px;
    border-radius:999px;
    background:#8ba0bc;
    box-shadow:0 1px 0 rgba(255,255,255,.9);
    transition:width .15s ease,background .15s ease;
  }
  body.mf-web-fixed-workspace-v215 .mf215-map-driver-splitter:hover span,
  body.mf-web-fixed-workspace-v215 .mf215-map-driver-splitter:focus-visible span,
  body.mf-web-fixed-workspace-v215.mf215-row-resizing .mf215-map-driver-splitter span{
    width:84px;
    background:#003DA5;
  }
  body.mf-web-fixed-workspace-v215 .mf215-map-driver-splitter:focus-visible{
    outline:3px solid rgba(255,196,0,.7);
    outline-offset:-3px;
  }

  body.mf-web-fixed-workspace-v215 .mf6192-driver-section{
    grid-row:4!important;
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    border-radius:0!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
    background:#fff!important;
  }
  body.mf-web-fixed-workspace-v215 .mf6192-driver-head{
    flex:0 0 auto!important;
    position:sticky!important;
    top:0!important;
    z-index:5!important;
    background:#fff!important;
  }
  body.mf-web-fixed-workspace-v215 .mf6192-driver-list{
    flex:1 1 auto!important;
    min-height:0!important;
    display:grid!important;
    grid-template-columns:repeat(auto-fill,minmax(270px,1fr))!important;
    align-content:start!important;
    gap:12px!important;
    padding:10px 14px 18px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    scroll-snap-type:none!important;
    overscroll-behavior:contain;
    scrollbar-width:thin;
  }
  body.mf-web-fixed-workspace-v215 .mf6192-driver-list>*{
    min-width:0!important;
    width:auto!important;
    max-width:none!important;
    flex:none!important;
  }
  body.mf-web-fixed-workspace-v215 .mf6192-driver-empty{
    overflow:auto!important;
  }

  body.mf-web-fixed-workspace-v215 .mf52-ticker{
    position:relative!important;
    inset:auto!important;
    z-index:2100!important;
    flex:0 0 auto!important;
  }

  body.mf-web-fixed-workspace-v215.mf215-row-resizing,
  body.mf-web-fixed-workspace-v215.mf215-row-resizing *{
    cursor:row-resize!important;
    user-select:none!important;
  }

  /* Full-window map remains authoritative and hides the splitter/results. */
  body.mf-web-fixed-workspace-v215.mf214-map-window .mf215-map-driver-splitter{
    display:none!important;
  }
}

@media (max-width:900px){
  .mf215-map-driver-splitter{display:none!important}
}
