/* File: assets/css/components/sfv-tela2-fila-prestador.css */
/* =========================================================
   SFV » Tela 2 Fila Prestador
   Responsabilidade:
   - layout estrutural da Tela 2 da Área do Cliente
   - viewport interna da fila
   - distribuição estrutural dos blocos da tela
   - action bar estrutural da Tela 2
   - sem cuidar de card/modal/skin
   - sem bloco redundante de horários
   - sem pill redundante de turno
   ========================================================= */

.sfv-scope{
  --sfv-tela2-stack-gap: 14px;
  --sfv-tela2-stack-gap-mobile: 12px;
  --sfv-tela2-card-maxw: 680px;

  /* action bar mais justa ao conteúdo */
  --sfv-tela2-actionsbar-pad-top: 12px;
  --sfv-tela2-actionsbar-pad-bottom: 8px;
  --sfv-tela2-actionsbar-pad-x: 14px;
  --sfv-tela2-actions-gap: 12px;
}

.sfv-scope .sfv-prestador-screen{
  width: 100%;
  min-width: 0;

  flex: 0 0 auto;
  min-height: 0;
  height: auto;

  display: block;
  overflow: visible;
}

.sfv-scope .sfv-tela2-layout{
  width: 100%;
  min-width: 0;

  flex: 0 0 auto;
  min-height: 0;
  height: auto;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-content: flex-start;
  justify-content: flex-start;
  gap: var(--sfv-tela2-stack-gap);
  overflow: visible;
}

.sfv-scope .sfv-tela2-header{
  width: 100%;
  flex: 0 0 auto;
  min-height: 0;
}

.sfv-scope .sfv-prestador-pinned{
  width: 100%;
  margin: 0;
}

.sfv-scope .sfv-tela2-status{
  width: 100%;
  flex: 0 0 auto;
  min-height: 0;
}

.sfv-scope .sfv-tela2-status #sfv-card-cliente{
  width: 100%;
  max-width: var(--sfv-tela2-card-maxw);
  margin: 0 auto;
}

.sfv-scope .sfv-tela2-meta{
  width: 100%;
  flex: 0 0 auto;
  min-height: 0;
  margin: 0;
}

.sfv-scope .sfv-tela2-actionsbar{
  width: 100%;
  max-width: var(--sfv-tela2-card-maxw);
  margin: 0 auto;
  padding:
    var(--sfv-tela2-actionsbar-pad-top)
    var(--sfv-tela2-actionsbar-pad-x)
    var(--sfv-tela2-actionsbar-pad-bottom);
}

.sfv-scope .sfv-tela2-actionsrow{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: var(--sfv-tela2-actions-gap);
  margin: 0;
}

.sfv-scope .sfv-tela2-actionsrow > .sfv-btn{
  flex: 1 1 220px;
  max-width: 260px;
}

.sfv-scope .sfv-tela2-meta .sfv-erro{
  width: 100%;
  max-width: var(--sfv-tela2-card-maxw);
  margin: 10px auto 0;
}

.sfv-scope .sfv-tela2-fila-wrap{
  width: 100%;
  min-width: 0;

  flex: 0 0 auto;
  min-height: 0;
  height: auto;

  display: block;
  overflow: visible;
}

.sfv-scope #sfv-cliente-fila{
  width: 100%;
  min-width: 0;

  flex: 0 0 auto;
  min-height: 0;
  height: auto;

  overflow: visible;
}

.sfv-scope #sfv-cliente-fila::-webkit-scrollbar{
  width: 0;
  height: 0;
  display: none;
}

@media (max-width: 520px){
  .sfv-scope .sfv-tela2-layout{
    gap: var(--sfv-tela2-stack-gap-mobile);
  }

  .sfv-scope .sfv-tela2-status #sfv-card-cliente{
    max-width: 100%;
  }

  .sfv-scope .sfv-tela2-actionsbar{
    max-width: 100%;
    padding: 10px 12px 6px;
  }

  .sfv-scope .sfv-tela2-actionsrow{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .sfv-scope .sfv-tela2-actionsrow > .sfv-btn{
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }

  .sfv-scope .sfv-tela2-meta .sfv-erro{
    max-width: 100%;
    margin-top: 8px;
  }
}