   REGION: CATEGORIAS
   ========================================================= */
table.table--categorias tbody tr {
  height: 44px;
}

table.table--categorias .cat-subcategoria[draggable="true"] {
  cursor: grab;
  user-select: none;
}

table.table--categorias .cat-subcategoria[draggable="true"]:active {
  cursor: grabbing;
}

table.table--categorias tbody tr.is-dragging {
  opacity: .45;
}

table.table--categorias tbody tr.is-sortable-drop-group > td {
  background: #eaf3ff !important;
}

table.table--categorias tbody tr.is-sortable-drop-before > td {
  box-shadow: inset 0 3px 0 #3284ff;
}

table.table--categorias tbody tr.is-sortable-drop-after > td {
  box-shadow: inset 0 -3px 0 #3284ff;
}

table.table--categorias th,
table.table--categorias td {
  padding: 6px 10px;
}

table.table--categorias th.cat-salvar,
table.table--categorias td.cat-salvar {
  position: relative;
  --bs-table-bg-state: transparent;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

table.table--categorias th.cat-salvar::before,
table.table--categorias td.cat-salvar::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -1px;
  right: 0;
  bottom: -1px;
  left: 1px;
  background: var(--theme-surface);
}

table.table--categorias td.cat-salvar > * {
  position: relative;
  z-index: 1;
}

table.table--categorias td.cell-center {
  text-align: center;
}

table.table--categorias .form-select.form-select-sm {
  height: 32px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 32px;
}

table.table--categorias .swatch {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 6px;
  vertical-align: middle;
}

.anchor-forms {
  display: none;
}

@media (max-width: 768px) {
  .table--categorias {
    min-width: 0 !important;
    margin-bottom: 0;
  }

  .table--categorias thead {
    display: none;
  }

  .table--categorias,
  .table--categorias tbody {
    display: block;
    width: 100% !important;
  }

  .table--categorias tr {
    width: 100% !important;
  }

  .table--categorias tbody {
    border-top: 1px solid #eef1f3;
  }

  table.table--categorias tbody tr {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: row;
    column-gap: 10px;
    row-gap: 9px;
    height: auto !important;
    min-height: 0 !important;
    padding: 12px 0;
    border-bottom: 1px solid #eef1f3;
    overflow: visible !important;
  }

  .table--categorias tbody td {
    display: flex !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow: visible !important;
    text-align: left !important;
  }

  .table--categorias .cat-codigo,
  .table--categorias .cat-subcategoria,
  .table--categorias .cat-informe,
  .table--categorias .cat-cor,
  .table--categorias .cat-preview,
  .table--categorias .cat-ordem,
  .table--categorias .cat-salvar {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    color: #212529;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .table--categorias .cat-codigo { grid-column: span 4; order: 1; }
  .table--categorias .cat-subcategoria { grid-column: span 8; order: 2; }
  .table--categorias .cat-informe { grid-column: 1 / -1; order: 3; }
  .table--categorias .cat-cor { grid-column: span 8; order: 4; }
  .table--categorias .cat-preview { grid-column: span 4; order: 5; align-items: center; }
  .table--categorias .cat-ordem { grid-column: span 4; order: 6; }
  .table--categorias .cat-salvar { grid-column: span 8; order: 7; justify-content: flex-end; }

  .table--categorias td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: #6c757d;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .table--categorias .form-control,
  .table--categorias .form-select,
  .table--categorias .btn {
    width: 100%;
    min-width: 0;
  }

  .table--categorias .cat-subcategoria {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .table--categorias .swatch {
    width: 32px;
    height: 32px;
  }
}

/* Domain styles extracted to app.css:
   - domains/configuracoes.css */

/* =========================================================
