.card-prods {
  max-height: 500px;
  overflow: auto;
  font-size: 11pt;
}
.h5,
h5 {
  font-size: 1rem !important;
}
.card-title {
  font-size: 1rem !important;
  font-weight: 400 !important;
}
/* Estilo para normalizar o peso dos labels */
label:not(.form-check-label):not(.custom-file-label) {
  font-weight: 400 !important;
}
.card-header {
  border-bottom: 2px solid #e9ecef;
}
.card-header h5 {
  font-weight: 400;
  color: #ffffff !important;
}
.form-label {
  font-weight: 500;
  color: #333;
}

.disabled {
  background-color: #1a672b;
  pointer-events: none;
}

.hiddenContactos {
  display: none;
}

.select2-container .select2-selection--single {
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  height: 40px !important;
  user-select: none;
  -webkit-user-select: none;
}

/* =========================================================
   🌐 Tema Corporativo Moderno - Luzitic / Cergold
   Compatível com AdminLTE 3.x e Bootstrap 4/5
   ========================================================= */

/* === 1️⃣ Base === */
:root {
  --brand-primary: #0056b3;
  --brand-secondary: #0d6efd;
  --bg-light: #f5f7fa;
  --text-dark: #2c2f36;
  --text-muted: #6c757d;
  --card-bg: #ffffff;
  --border-radius: 0.75rem;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Fonte profissional */
body {
  font-family: "Inter", "Segoe UI", "Poppins", sans-serif;
  font-size: 0.8rem!important;
  background-color: var(--bg-light);
  color: var(--text-dark);
  letter-spacing: 0.01em;
}

/* === 2️⃣ Cartões === */
.card {
  border: none;
  border-radius: var(--border-radius);
  background-color: var(--card-bg);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-header {
  border-bottom: 1px solid #e6e8ec;
  background: linear-gradient(
    90deg,
    var(--brand-primary),
    var(--brand-secondary)
  );
  color: #fff;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* === 3️⃣ Botões === */
.btn {
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-secondary)
  );
  border: none;
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, #198754, #20c997);
  border: none;
}

.btn-success:hover {
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

/* === 4️⃣ Campos e formulários === */
.form-control {
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Select2 integração */
.select2-container--bootstrap4 .select2-selection {
  border-radius: 0.5rem !important;
  border: 1px solid #d1d5db !important;
  height: calc(2.375rem + 2px);
}

.select2-container--bootstrap4 .select2-selection__rendered {
  line-height: 2.3rem;
}

/* === 5️⃣ Sidebar / Navbar === */
.main-sidebar {
  background: #1f2937;
  color: #d1d5db;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
}

.main-sidebar .nav-sidebar > .nav-item > .nav-link.active {
  background: linear-gradient(
    90deg,
    var(--brand-primary),
    var(--brand-secondary)
  );
  color: #fff;
  border-radius: 0.5rem;
}

.main-sidebar a {
  color: #d1d5db !important;
  transition: 0.2s;
}

.main-sidebar a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: #fff !important;
}

/* Navbar */
.main-header.navbar {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  border-bottom: none;
}

/* === 6️⃣ Tabelas e DataTables === */
.table {
  border-radius: 0.5rem;
  overflow: hidden;
}

.table thead {
  background: #f1f3f5;
  font-weight: 600;
}

.table-hover tbody tr:hover {
  background-color: #f8f9fa;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--brand-secondary);
  color: #fff !important;
  border-radius: 0.3rem;
}

/* === 7️⃣ Breadcrumb + Footer === */
.breadcrumb {
  background: transparent;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #adb5bd;
}

.main-footer {
  background: #fff;
  border-top: 1px solid #e6e8ec;
  color: #6c757d;
  font-size: 0.85rem;
}



/* =========================================================
   ✨ DataTables - Estilo Moderno Corporativo
   ========================================================= */

/* Fundo e bordas mais limpas */
.table.dataTable {
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #fff;
}

/* Cabeçalho */
.table.dataTable thead {
  background: linear-gradient(90deg, #0056b3, #0d6efd);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.table.dataTable thead th {
  border: none;
  padding: 12px 16px;
}

/* Linhas */
.table.dataTable tbody tr {
  border-bottom: 1px solid #f1f3f5;
  transition: all 0.15s ease;
}

.table.dataTable tbody tr:hover {
  background-color: #f8fafc;
  transform: scale(1.002);
}

/* Células */
.table.dataTable td {
  padding: 12px 16px;
  vertical-align: middle;
  color: #333;
}

/* Zebra alternada */
.table-striped tbody tr:nth-of-type(odd) {
  background-color: #fafbfc;
}

/* Paginação */
.dataTables_wrapper .dataTables_paginate {
  margin-top: 1rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 0.4rem;
  padding: 6px 12px;
  margin: 0 2px;
  color: #333 !important;
  background-color: #e9ecef !important;
  border: none !important;
  transition: all 0.2s ease-in-out;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #0d6efd !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #0d6efd !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
}

/* Caixa de pesquisa */
.dataTables_filter input {
  border-radius: 0.5rem;
  border: 1px solid #ced4da;
  padding: 6px 12px;
  outline: none;
  transition: 0.2s;
}

.dataTables_filter input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Caixa de seleção de número de linhas */
.dataTables_length select {
  border-radius: 0.5rem;
  border: 1px solid #ced4da;
  padding: 4px 8px;
  margin-right: 8px;
}

/* Texto de info ("Mostrando X de Y") */
.dataTables_info {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 0.75rem;
}

/* Botões de exportação (Excel, PDF, etc.) */
.dt-buttons .dt-button {
  background: linear-gradient(135deg, #0d6efd, #0056b3) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 0.4rem !important;
  padding: 6px 12px !important;
  margin: 0 3px !important;
  transition: all 0.2s ease-in-out;
}

.dt-buttons .dt-button:hover {
  opacity: 0.9;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.25);
}

/* Responsive collapsible rows */
table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child::before {
  background-color: #0d6efd !important;
  border: none !important;
}
/* Remove as setas do Bootstrap nas colunas das DataTables */
table.dataTable > thead .sorting:before,
table.dataTable > thead .sorting:after {
  font-family: none !important;
  content: "" !important;
}

/* Mantém só as setas padrão do DataTables */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
  background-image: none !important;
  position: relative;
}

table.dataTable thead th.sorting:after {
  content: "\25B2\25BC"; /* ▲▼ — setas normais */
  font-size: 10px;
  color: #6c757d;
  position: absolute;
  right: 8px;
}
table.dataTable thead th.sorting_asc:after {
  content: "\25B2"; /* ▲ */
  color: #007bff;
}
table.dataTable thead th.sorting_desc:after {
  content: "\25BC"; /* ▼ */
  color: #007bff;
}
