
.auxiliary-page {
  min-height: 0;
}

.aux-layout {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
}

.aux-categories {
  min-height: 0;
  overflow: auto;
  padding: 12px;
  border: 1px solid #d8e6f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(29, 91, 154, .07);
}

.aux-category-btn {
  width: 100%;
  min-height: 43px;
  margin-bottom: 6px;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #315576;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.aux-category-btn:hover {
  background: #f1f7fe;
}

.aux-category-btn.active {
  background: #e5f2ff;
  color: #0862c3;
  box-shadow: inset 0 0 0 1px #cbe4ff;
}

.aux-main {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.aux-toolbar {
  grid-template-columns: minmax(280px, 1fr) 190px 220px auto;
  align-items: end;
}

.aux-table {
  min-width: 760px;
}

.col-code { width: 16%; }
.col-description { width: 44%; }
.col-order { width: 12%; }
.col-status { width: 14%; }
.col-actions { width: 14%; }

.aux-code {
  display: inline-flex;
  min-width: 48px;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #e9f4ff;
  color: #075fbe;
  font-weight: 900;
}

.aux-description strong,
.aux-description small {
  display: block;
}

.aux-description strong {
  color: #0b315f;
}

.aux-description small {
  margin-top: 4px;
  color: #74879f;
}

.aux-modal-card {
  width: min(720px, calc(100vw - 30px));
}

.checkbox-field {
  display: flex;
  align-items: end;
  padding-bottom: 10px;
}

@media (max-width: 1050px) {
  .aux-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .aux-toolbar {
    grid-template-columns: 1fr 170px;
  }

  .aux-toolbar .search-box {
    grid-column: 1 / -1;
  }
}





/* =========================================================
   MODO DE EXIBIÇÃO POR CATEGORIA
   ========================================================= */
.aux-display-mode-field{
  min-width:0;
  display:grid;
  gap:6px;
}

.aux-display-mode-field > span{
  margin-left:3px;
  font-size:.72rem;
  font-weight:850;
  text-transform:uppercase;
  color:var(--muted);
}

.aux-display-mode-field .filter-select{
  width:100%;
  min-width:0;
}

@media (max-width: 1050px){
  .aux-toolbar{
    grid-template-columns:1fr 170px 210px;
  }

  .aux-toolbar .search-box{
    grid-column:1 / -1;
  }

  #newItemBtn{
    grid-column:auto;
  }
}

@media (max-width: 760px){
  .aux-toolbar{
    grid-template-columns:1fr;
  }

  .aux-toolbar .search-box,
  .aux-display-mode-field,
  #statusFilter,
  #newItemBtn{
    grid-column:auto;
    width:100%;
  }
}

/* =========================================================
   ALINHAMENTO DOS CAMPOS DO MODAL
   ========================================================= */

.aux-modal-card .form-grid {
  align-items: start;
}

/* Reserva o mesmo espaço abaixo dos campos da primeira linha */
.aux-modal-card .field {
  position: relative;
}

/* Sigla e Descrição ficam exatamente na mesma altura */
.aux-modal-card #itemCode,
.aux-modal-card #itemDescription {
  margin-top: 0;
}

/* A observação não altera mais a altura da coluna */
.aux-modal-card #itemCode + .field-help {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  margin: 0;
  white-space: nowrap;
}

/* Cria espaço antes da segunda linha */
.aux-modal-card .form-grid {
  row-gap: 44px;
}


/* =========================================================
   PADRÃO DE BARRAS DE ROLAGEM — RECEBIMENTO DE AMOSTRAS
   Alteração exclusivamente visual.
   ========================================================= */

/* Firefox */
* {
  scrollbar-color: #4a7aa1 #f6e8eb;
}

/* Chrome, Edge, Opera e Safari */
*::-webkit-scrollbar {
  width: 10px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: #f6e8eb;
}

*::-webkit-scrollbar-thumb {
  background: #4a7aa1;
  border: 2px solid #f6e8eb;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb:hover {
  background: #0967b4;
}

/* Mantém ocultas somente as barras que o projeto já definiu
   explicitamente como invisíveis. */
.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

