/* ========================================================
   01. CONTROLES SUPERIORES
   ======================================================== */

body.erp-tecnotextil-theme
:is(
  #gp-criar-botao,
  #gp-filtro-pessoal,
  #gp-excluir-lote,
  #gp-concluir-lote
) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  gap: 6px;

  min-height: 34px;
  margin: 0;
  padding: 6px 12px;

  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  cursor: pointer;
}

body.erp-tecnotextil-theme
:is(#gp-criar-botao,#gp-concluir-lote) {
  background: #00663b;
  color: #ffffff;
  border: 1px solid #00663b;
}

body.erp-tecnotextil-theme
:is(#gp-criar-botao,#gp-concluir-lote):hover:not(:disabled) {
  background: #005430;
  color: #ffffff;
  border-color: #005430;
}

body.erp-tecnotextil-theme
#gp-excluir-lote {
  background: #a11217;
  color: #ffffff;
  border: 1px solid #a11217;
}

body.erp-tecnotextil-theme
#gp-excluir-lote:hover:not(:disabled) {
  background: #850b11;
  color: #ffffff;
}

body.erp-tecnotextil-theme
#gp-filtro-pessoal {
  background: #ffffff;
  color: #08345c;
  border: 1px solid #005e9d;
}

body.erp-tecnotextil-theme
#gp-filtro-pessoal[aria-pressed="true"] {
  background: #b3d1ec;
}

body.erp-tecnotextil-theme
.gp-origem-barra {
  display: flex;
  flex-direction: column;
  align-self: flex-end;
  gap: 4px;

  min-width: 155px;
  margin: 0;

  color: #355a72;
  font-size: 11px;
  font-weight: 600;
}

body.erp-tecnotextil-theme
.gp-origem-barra select {
  min-height: 34px;
  margin: 0;
  font-size: 12px;
}

/* ========================================================
   02. BOTÕES INDIVIDUAIS
   ======================================================== */

body.erp-tecnotextil-theme
.gp-acoes-tarefa {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin: 5px 0;
}

body.erp-tecnotextil-theme
.gp-acao-individual {
  min-height: 29px;
  margin: 0;
  padding: 4px 8px;

  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

body.erp-tecnotextil-theme
.gp-acao-concluir {
  background: #ffffff;
  color: #00663b;
  border: 1px solid #00663b;
}

body.erp-tecnotextil-theme
.gp-acao-concluir:hover:not(:disabled) {
  background: #e2f5e9;
  color: #005430;
}

body.erp-tecnotextil-theme
.gp-acao-excluir {
  background: #ffffff;
  color: #a11217;
  border: 1px solid #a11217;
}

body.erp-tecnotextil-theme
.gp-acao-excluir:hover:not(:disabled) {
  background: #fff0f1;
  color: #850b11;
}

body.erp-tecnotextil-theme
.gp-acao-individual:disabled {
  opacity: .55;
  cursor: not-allowed;
}

body.erp-tecnotextil-theme
.gp-acao-preparada {
  color: #526f82;
  font-size: 10px;
  font-weight: 700;
}

/* ========================================================
   03. JANELAS DE CRIAÇÃO E GUT
   ======================================================== */

body.erp-tecnotextil-theme
:is(#gp-modal-criar,#gp-modal-gut) {
  width: min(560px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);

  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;

  color: #263746;
  background: #ffffff;

  border: 1px solid #c3d7e4;
  border-top: 4px solid #005e9d;
  border-radius: 8px;

  box-shadow: 0 18px 48px rgba(8,52,92,.25);

  font-family:
    "Montserrat",
    "Segoe UI",
    Arial,
    sans-serif;

  font-size: 12px;
}

body.erp-tecnotextil-theme
:is(#gp-modal-criar,#gp-modal-gut)::backdrop {
  background: rgba(8,28,45,.35);
}

body.erp-tecnotextil-theme
.gp-modal-conteudo {
  padding: 18px;
}

body.erp-tecnotextil-theme
.gp-modal-cabecalho {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

body.erp-tecnotextil-theme
.gp-modal-cabecalho h2 {
  margin: 0;
  color: #08345c;
  font-size: 17px;
  font-weight: 800;
}

body.erp-tecnotextil-theme
.gp-modal-intro {
  margin: 5px 0 0;
  color: #526f82;
  font-size: 11px;
  line-height: 1.6;
}

body.erp-tecnotextil-theme
.gp-modal-fechar {
  flex: 0 0 30px;

  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;

  color: #08345c;
  background: #ffffff;

  border: 1px solid #c3d7e4;
  border-radius: 5px;

  font-size: 19px;
}

body.erp-tecnotextil-theme
.gp-grade {
  display: grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap: 12px;
}

body.erp-tecnotextil-theme
.gp-grade .gp-largura-total {
  grid-column: 1 / -1;
}

body.erp-tecnotextil-theme
.gp-grade label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;

  color: #355a72;
  font-size: 11px;
  font-weight: 700;
}

body.erp-tecnotextil-theme
.gp-grade :is(input,select,textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  font-size: 12px;
}

body.erp-tecnotextil-theme
.gp-grade textarea {
  min-height: 90px;
  resize: vertical;
}

body.erp-tecnotextil-theme
.gp-origem-fixa {
  padding: 9px 11px;

  color: #08345c;
  background: #eaf4fa;

  border: 1px solid #b3d1ec;
  border-radius: 5px;

  font-size: 11px;
}

body.erp-tecnotextil-theme
.gp-modal-acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 15px;
}

body.erp-tecnotextil-theme
:is(#gp-confirmar-criar,#gp-aplicar-gut) {
  background: #00663b;
  color: #ffffff;
  border-color: #00663b;
}

body.erp-tecnotextil-theme
#gp-abrir-gut {
  display: block;
  width: 100%;
  min-height: 34px;

  background: #ffffff;
  color: #08345c;
  border: 1px solid #005e9d;

  text-align: left;
  font-size: 11px;
  font-weight: 600;
}

body.erp-tecnotextil-theme
:is(#gp-resumo-gut,#gp-resultado-gut) {
  padding: 9px;
  margin-top: 6px;

  background: #eaf4fa;
  border: 1px solid #b3d1ec;
  border-radius: 5px;

  color: #08345c;
  font-size: 11px;
}

body.erp-tecnotextil-theme
.gp-gut-grade {
  display: grid;
  grid-template-columns:
    repeat(3,minmax(0,1fr));
  gap: 10px;
}

body.erp-tecnotextil-theme
.gp-gut-criterio {
  min-width: 0;
}

body.erp-tecnotextil-theme
.gp-gut-criterio button {
  max-width: 100%;
  margin-bottom: 6px;
  font-size: 11px;
}

body.erp-tecnotextil-theme
.gp-gut-criterio select {
  display: block;
  width: 100%;
  min-width: 0;
}

body.erp-tecnotextil-theme
#gp-criar-status {
  margin-top: 10px;
  color: #a11217;
  white-space: pre-wrap;
  font-size: 11px;
}

/* ========================================================
   04. ALTERAÇÕES PENDENTES
   ======================================================== */

body.erp-tecnotextil-theme
.gp-pendencia-tipo {
  display: inline-block;
  margin: 6px 0;
  padding: 4px 7px;

  color: #08345c;
  background: #eaf4fa;

  border: 1px solid #c3d7e4;
  border-radius: 4px;

  font-size: 11px;
  font-weight: 700;
}

body.erp-tecnotextil-theme
.gp-pendencia-excluir {
  color: #850b11;
  background: #fff2f3;
  border-color: #f4b4b6;
}

body.erp-tecnotextil-theme
.gp-pendencia-concluir {
  color: #00663b;
  background: #e2f5e9;
  border-color: #b3eacb;
}

/* ========================================================
   05. FECHAR E ATUALIZAR
   ======================================================== */

body.erp-tecnotextil-theme
#tt-ux-fechar-atualizar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  min-height: 35px;
  padding: 8px 14px;

  background: #00663b;
  color: #ffffff;
  border: 1px solid #00663b;
  border-radius: 5px;

  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

body.erp-tecnotextil-theme
#tt-ux-fechar-atualizar:hover:not(:disabled) {
  background: #005430;
  color: #ffffff;
}

body.erp-tecnotextil-theme
#tt-ux-fechar-atualizar[hidden] {
  display: none !important;
}

/* ========================================================
   06. RESPONSIVIDADE
   ======================================================== */

@media (max-width: 650px) {
  body.erp-tecnotextil-theme
  .gp-grade,
  body.erp-tecnotextil-theme
  .gp-gut-grade {
    grid-template-columns: minmax(0,1fr);
  }

  body.erp-tecnotextil-theme
  .gp-modal-conteudo {
    padding: 13px;
  }

  body.erp-tecnotextil-theme
  :is(#gp-excluir-lote,#gp-concluir-lote) {
    flex: 1 1 auto;
  }

  body.erp-tecnotextil-theme
  #tt-ux-fechar-atualizar {
    flex: 1 1 auto;
    white-space: normal;
  }
}

@media print {
  #gp-criar-botao,
  #gp-filtro-pessoal,
  #gp-excluir-lote,
  #gp-concluir-lote,
  .gp-acoes-tarefa,
  #gp-modal-criar,
  #gp-modal-gut,
  #tt-ux-fechar-atualizar {
    display: none !important;
  }
}
