/* SQL4 Lab editor fullscreen owner.
   Scoped to the canonical Lab editor card so no other route/layout is affected. */

body.hlab-editor-fullscreen-open{
  overflow:hidden!important;
}

.hlab-editor-card .hlab-fullscreen-btn{
  min-width:96px;
  height:32px;
  padding:0 12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-family:var(--h-font-sans,system-ui,sans-serif);
  font-weight:700;
  line-height:1;
  white-space:nowrap;
}

.hlab-editor-card.is-fullscreen{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
  width:100vw!important;
  max-width:none!important;
  height:100dvh!important;
  min-height:100vh!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  background:var(--h-surface,#fff)!important;
}

.hlab-editor-card.is-fullscreen .hlab-filebar,
.hlab-editor-card.is-fullscreen .hlab-toolbar,
.hlab-editor-card.is-fullscreen .hlab-editor-foot{
  flex:0 0 auto;
}

.hlab-editor-card.is-fullscreen .hlab-toolbar{
  position:relative;
  z-index:2;
}

.hlab-editor-card.is-fullscreen .hlab-fullscreen-btn{
  min-width:104px;
}

.hlab-editor-card.is-fullscreen .hlab-editor-wrap{
  flex:1 1 auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
}

.hlab-editor-card.is-fullscreen .hlab-editor-wrap.hsql-cm-mounted>.CodeMirror{
  height:100%!important;
  min-height:0!important;
}

.hlab-editor-card.is-fullscreen .hlab-editor-wrap.hsql-cm-mounted .CodeMirror-scroll{
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
}

.hlab-editor-card.is-fullscreen .hlab-editor{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  resize:none!important;
}

@media(max-width:700px){
  .hlab-editor-card .hlab-fullscreen-btn,
  .hlab-editor-card.is-fullscreen .hlab-fullscreen-btn{
    min-width:82px;
    padding:0 9px;
    font-size:12px;
  }
}
