/* Dra. Stefânia v0.99.35 | Logo aprovada (opção 3) e grids responsivos.
   Estilos restritos ao aplicativo e à demonstração. Nenhuma alteração clínica. */
#stef-demo-runtime.stef16-app,
#stef-demo-runtime.stef16-app *{box-sizing:border-box}

/* Marca: composição horizontal, alinhada à esquerda e legível na barra estreita. */
#stef-demo-runtime.stef-real-app.stef16-app .demo-sidebar .demo-wordmark{
  display:flex!important;flex-direction:row!important;align-items:center!important;
  justify-content:flex-start!important;gap:9px!important;text-align:left!important;
  width:100%!important;max-width:100%!important;min-height:68px!important;
  margin:0 0 20px!important;padding:7px 1px 16px!important;
  color:#22594e!important;background:transparent!important;border:0!important;
  border-bottom:1px solid #e1e7dc!important;box-shadow:none!important;
  text-decoration:none!important;white-space:normal!important;cursor:pointer!important;
}
#stef-demo-runtime.stef-real-app.stef16-app .demo-sidebar .stef35-brand-icon{
  display:block!important;flex:0 0 47px!important;width:47px!important;height:50px!important;
  max-width:47px!important;object-fit:contain!important;margin:0!important;
}
#stef-demo-runtime.stef-real-app.stef16-app .demo-sidebar .stef-wordmark-text{
  display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
  align-items:flex-start!important;justify-content:center!important;min-width:0!important;
  gap:2px!important;text-align:left!important;
}
#stef-demo-runtime.stef-real-app.stef16-app .demo-sidebar .stef-wordmark-text strong{
  display:block!important;font-size:15px!important;line-height:1.12!important;
  font-weight:750!important;letter-spacing:-.035em!important;color:#22594e!important;
  white-space:normal!important;overflow-wrap:normal!important;
}
#stef-demo-runtime.stef-real-app.stef16-app .demo-sidebar .stef-wordmark-text small{
  display:block!important;margin:0!important;font-size:11px!important;line-height:1.3!important;
  letter-spacing:.075em!important;color:#687d72!important;font-weight:500!important;
}

/* A área de trabalho ocupa a largura disponível, sem ultrapassar o confortável para leitura. */
@media (min-width:721px){
  #stef-demo-runtime.stef16-app .demo-layout,
  #stef-demo-runtime.stef16-app.stef29-demo-parity .demo-layout{
    display:grid!important;grid-template-columns:216px minmax(0,1fr)!important;
    width:100%!important;max-width:none!important;gap:0!important;
  }
  #stef-demo-runtime.stef16-app .demo-sidebar,
  #stef-demo-runtime.stef16-app.stef29-demo-parity .demo-sidebar{
    width:216px!important;max-width:216px!important;min-width:0!important;
    padding-left:16px!important;padding-right:16px!important;
  }
  #stef-demo-runtime.stef16-app #demo-main,
  #stef-demo-runtime.stef16-app.stef29-demo-parity #demo-main{
    width:min(1420px,calc(100% - 52px))!important;max-width:1420px!important;
    min-width:0!important;margin:0 auto!important;
    padding:clamp(26px,2.8vw,46px) 0 68px!important;
  }
}
/* Notebook e tablet horizontal: margens menores, sem perder largura da ficha. */
@media (min-width:721px) and (max-width:1199px){
  #stef-demo-runtime.stef16-app .demo-layout,
  #stef-demo-runtime.stef16-app.stef29-demo-parity .demo-layout{
    grid-template-columns:196px minmax(0,1fr)!important;
  }
  #stef-demo-runtime.stef16-app .demo-sidebar,
  #stef-demo-runtime.stef16-app.stef29-demo-parity .demo-sidebar{
    width:196px!important;max-width:196px!important;padding-left:14px!important;padding-right:14px!important;
  }
  #stef-demo-runtime.stef16-app #demo-main,
  #stef-demo-runtime.stef16-app.stef29-demo-parity #demo-main{
    width:calc(100% - 32px)!important;padding:26px 0 58px!important;
  }
}
/* Todos os cartões e formulários das fichas, consultas e medidas devem ocupar a coluna real. */
#stef-demo-runtime.stef16-app #demo-main > .demo-panel,
#stef-demo-runtime.stef16-app #demo-main > .stef16-tabs,
#stef-demo-runtime.stef16-app #demo-main > .stef17-growth,
#stef-demo-runtime.stef16-app #demo-main > .demo-form,
#stef-demo-runtime.stef16-app .demo-panel.demo-form,
#stef-demo-runtime.stef16-app .demo-form:not(.stef16-modal-form){
  width:100%!important;max-width:100%!important;min-width:0!important;
}
#stef-demo-runtime.stef16-app .demo-panel,
#stef-demo-runtime.stef16-app .demo-panel form,
#stef-demo-runtime.stef16-app .stef17-chart,
#stef-demo-runtime.stef16-app .stef17-growth{
  min-width:0;max-width:100%;
}
#stef-demo-runtime.stef16-app .demo-panel form{width:100%}
#stef-demo-runtime.stef16-app .demo-form-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;
  width:100%;max-width:100%;align-items:start;
}
#stef-demo-runtime.stef16-app :is(.demo-form-grid,.demo-panel,.stef17-growth) :is(input,select,textarea){
  max-width:100%;min-width:0;
}
#stef-demo-runtime.stef16-app :is(.demo-form-grid,.demo-panel) .demo-field{min-width:0}
#stef-demo-runtime.stef16-app .stef17-chart{width:100%!important}
#stef-demo-runtime.stef16-app .stef16-table-wrap{width:100%;max-width:100%;overflow-x:auto}
#stef-demo-runtime.stef16-app .demo-form textarea{width:100%;max-width:100%;min-height:112px}

/* Tablet vertical: já em um fluxo mais concentrado, com áreas grandes para toque. */
@media (min-width:721px) and (max-width:900px){
  #stef-demo-runtime.stef16-app .demo-form-grid{gap:14px}
  #stef-demo-runtime.stef16-app .demo-panel{padding:19px!important}
  #stef-demo-runtime.stef16-app .demo-sidebar .stef-wordmark-text strong{font-size:14px!important}
}
/* Celulares: apresentação própria, não desktop comprimido. */
@media (max-width:720px){
  #stef-demo-runtime.stef16-app .demo-layout,
  #stef-demo-runtime.stef16-app.stef29-demo-parity .demo-layout{
    display:block!important;width:100%!important;min-width:0!important;
  }
  #stef-demo-runtime.stef16-app .demo-sidebar,
  #stef-demo-runtime.stef16-app.stef29-demo-parity .demo-sidebar{
    position:relative!important;top:auto!important;display:flex!important;
    width:100%!important;max-width:none!important;height:auto!important;
    padding:12px 14px!important;overflow:visible!important;
  }
  #stef-demo-runtime.stef-real-app.stef16-app .demo-sidebar .demo-wordmark{
    display:flex!important;min-height:52px!important;max-width:250px!important;
    margin:0 0 8px!important;padding:0 0 8px!important;border-bottom:0!important;
  }
  #stef-demo-runtime.stef-real-app.stef16-app .demo-sidebar .stef35-brand-icon{
    flex-basis:39px!important;width:39px!important;max-width:39px!important;height:42px!important;
  }
  #stef-demo-runtime.stef16-app #demo-main,
  #stef-demo-runtime.stef16-app.stef29-demo-parity #demo-main{
    width:calc(100% - 28px)!important;max-width:none!important;min-width:0!important;
    margin:0 14px!important;padding:22px 0 52px!important;
  }
  #stef-demo-runtime.stef16-app .demo-panel{padding:clamp(15px,4.2vw,22px)!important}
  #stef-demo-runtime.stef16-app .demo-form-grid,
  #stef-demo-runtime.stef16-app .stef33-section .demo-form-grid{
    grid-template-columns:minmax(0,1fr)!important;gap:13px!important;
  }
  #stef-demo-runtime.stef16-app :is(.demo-panel,.demo-form-grid,.stef17-growth){min-width:0;max-width:100%}
  #stef-demo-runtime.stef16-app .demo-form :is(input,select,textarea){font-size:16px!important}
  #stef-demo-runtime.stef16-app .demo-form-actions{justify-content:center}
  #stef-demo-runtime.stef16-app .demo-form-actions .demo-btn{min-height:44px}
  #stef-demo-runtime.stef16-app .stef16-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
}
@media (max-width:400px){
  #stef-demo-runtime.stef16-app #demo-main,
  #stef-demo-runtime.stef16-app.stef29-demo-parity #demo-main{
    width:calc(100% - 24px)!important;margin:0 12px!important;
  }
}
/* Tablet vertical: single large input per row when the clinical column is narrow. */
@media (min-width:721px) and (max-width:900px){
  #stef-demo-runtime.stef16-app .demo-form-grid,
  #stef-demo-runtime.stef16-app .stef33-section .demo-form-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
}
/* Navigation must remain reachable on small screens without using a desktop sidebar. */
@media (max-width:720px){
  #stef-demo-runtime.stef16-app .demo-sidebar nav,
  #stef-demo-runtime.stef16-app.stef29-demo-parity .demo-sidebar nav{
    display:flex!important;align-items:center!important;justify-content:flex-start!important;
    flex-wrap:nowrap!important;gap:6px!important;width:100%!important;
    max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch;scrollbar-width:thin;
    padding:2px 0 9px!important;
  }
  #stef-demo-runtime.stef16-app .demo-sidebar nav .demo-nav-link,
  #stef-demo-runtime.stef16-app.stef29-demo-parity .demo-sidebar nav .demo-nav-link{
    display:inline-flex!important;flex:0 0 auto!important;min-height:41px!important;
    width:auto!important;white-space:nowrap!important;padding:10px 13px!important;
    font-size:12px!important;text-align:center!important;
  }
  #stef-demo-runtime.stef16-app #demo-main>.demo-page-head{
    text-align:center!important;
  }
}
@media (max-width:720px){
  /* Ações principais isoladas ficam centralizadas; ações em listas permanecem contextuais. */
  #stef-demo-runtime.stef16-app #demo-main > .demo-panel.demo-form > form > .demo-btn.is-primary{
    display:flex;align-items:center;justify-content:center;
    width:min(100%,290px);min-height:44px;margin:14px auto 0;
    text-align:center;
  }
}
