.content-stack[data-module="produtos"],
.content-stack[data-module="clientes"],
.content-stack[data-module="users"],
.content-stack[data-module="categorias"],
.content-stack[data-module="unidades"],
.content-stack[data-module="formas-pagamento"],
.content-stack[data-module="setor"],
.content-stack[data-module="config-empresa"],
.content-stack[data-module="config-geral"],
.content-stack[data-module="financeiro"],
.content-stack[data-module="relatorios"],
.content-stack[data-module="cadastro_mesa"] {
  padding: 0;
  overflow: hidden;
  overflow-x: hidden;
  background: #fff;
  height: calc(100vh - 68px);
  max-height: calc(100vh - 68px);
  min-height: calc(100vh - 68px);
  position: relative;
}

.cad-page-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #fff;
}

.cad-page-header,
.cad-list-head-card,
.cad-sticky-header {
  position: relative;
  top: auto;
  z-index: 20;
  margin: 0;
  background: #fff;
  box-shadow: none;
  flex-shrink: 0;
}

.cad-page-header.card.module-panel,
.cad-list-head-card.card.module-panel {
  padding: 18px 24px 14px;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  box-shadow: none;
}

.cad-page-header--plain {
  padding: 18px 24px 14px;
  border-bottom: 1px solid #e5e7eb;
}

.cad-page-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  background: #fff;
}

.cad-page-content > .module-panel:first-child {
  margin-top: 0 !important;
}

.cad-page-content > .module-panel {
  border-radius: 0;
  box-shadow: none;
  margin-top: 0 !important;
  border-left: 0;
  border-right: 0;
  padding: 18px 24px;
}

.cad-page-content > .module-panel + .module-panel {
  border-top: 0;
}

.cad-head-row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
}

.cad-head-row2 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 14px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.cad-search-full {
  flex: 1;
  min-width: 200px;
  padding: 8px 14px 8px 36px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #334155;
  background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 10px center;
  outline: none;
}

.cad-search-full:focus {
  border-color: #6366f1;
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.12);
}

.cad-head-row2--flat {
  border-bottom: none;
  padding-bottom: 0;
}

.cad-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.cad-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cad-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.cad-card-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cad-search-input {
  padding: 7px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.88rem;
  color: #334155;
  background: #fff;
  outline: none;
  min-width: 200px;
}

.cad-search-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.12);
}

.cad-count {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 0 4px;
}

.cad-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

.cad-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.cad-table th,
.cad-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.cad-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #64748b;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cad-table tr:hover td {
  background: #f1f5f9;
}

.cad-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cad-badge.ativo,
.cad-badge.disponivel {
  background: #dcfce7;
  color: #15803d;
}

.cad-badge.inativo,
.cad-badge.inativa {
  background: #fee2e2;
  color: #dc2626;
}

.cad-badge.ocupado {
  background: #fef3c7;
  color: #92400e;
}

.cad-badge.reservada {
  background: #dbeafe;
  color: #1d4ed8;
}

.cad-badge.manutencao {
  background: #f3e8ff;
  color: #7c3aed;
}

.cad-badge.ociosa,
.cad-badge.agrupada {
  background: #f1f5f9;
  color: #475569;
}

.cad-badge.fechamento {
  background: #fef9c3;
  color: #854d0e;
}

.cad-row-actions {
  display: flex;
  gap: 6px;
}

.cad-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 14px 0 4px;
  flex-wrap: wrap;
}

.cad-page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}

.cad-page-btn:hover:not(:disabled) { background: #f1f5f9; }
.cad-page-btn.active { background: #6366f1; color: #fff; border-color: #6366f1; }
.cad-page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.cad-page-info {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 8px;
  white-space: nowrap;
}

.cad-page-dots {
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 0 2px;
}

.cad-filters {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 8px 0 10px;
  border-bottom: 1px solid #e2e8f0;
}

.cad-filter-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cad-filter-group label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.cad-filter-group select {
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.88rem;
  background: #fff;
  color: #334155;
  outline: none;
  cursor: pointer;
  min-width: 120px;
}

.cad-filter-group select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.12);
}

.cad-row-inactive td {
  opacity: 0.55;
}
