.admin-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h2 {
    font-weight: 600;
}

.badge-total {
    background: #e9f5ec;
    color: #1f6b3b;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
}

.card-admin {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
}

.card-body {
    padding: 24px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.btn-primary {
    background: #1f6b3b;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #18552e;
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern th,
.table-modern td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.status.active {
    background: #e6f4ea;
    color: #1f6b3b;
}

.status.inactive {
    background: #fdeaea;
    color: #b12b2b;
}

.btn-toggle {
    background: #f3f3f3;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-toggle:hover {
    background: #e0e0e0;
}

.actions {
    display: flex;
    gap: 8px;
}

.btn-edit {
    background: #1f6b3b;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-edit:hover {
    background: #18552e;
}

.btn-delete {
    background: #c0392b;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-delete:hover {
    background: #922b21;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cancel {
    background: #ccc;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}


.user-search-wrapper {
    position: relative;
    max-width: 400px;
}

#user-search {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.search-results {
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.search-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-item:hover {
    background-color: #f2f2f2;
}

.selected-user-card {
    margin-top: 15px;
}

.user-card {
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e3e3e3;
}


.page-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 700px;
}

.page-title {
    margin-bottom: 25px;
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width {
    grid-column: span 2;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 6px;
    color: #555;
}

.input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.2s ease;
}

.input:focus {
    border-color: #1f4ed8;
    outline: none;
    box-shadow: 0 0 0 3px rgba(31,78,216,0.1);
}

.btn-primary {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #1f4ed8;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #163bb0;
}

.user-card {
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e3e3e3;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }
}



.page-wrapper--center {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.page-wrapper--center .card {
    margin: 0 auto;
}


/* =========================
   Layout estrutural fixo
========================= */

html, body {
    height: 100%;
}

.AdminLayout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.AdminMain {
    flex: 1;
    display: flex;
}

.AdminContainer {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Footer fixo na base */
.AdminFooter {
    background: #111827;
    color: #ccc;
    padding: 14px 0;
    text-align: center;
    font-size: 13px;
}

.AdminFooter__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.ProductGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.ProductCard {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: 0.2s ease;
}

.ProductCard:hover {
  transform: translateY(-4px);
}

.ProductImage {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.ProductImagePlaceholder {
  height: 200px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f3f3f3;
  color:#888;
}

.ProductContent {
  padding: 16px;
}

.ProductMeta {
  display:flex;
  flex-direction:column;
  gap:4px;
  margin:12px 0;
  font-size:14px;
}

.ProductStatus {
  padding:6px 12px;
  border-radius:20px;
  font-size:13px;
  display:inline-block;
}

.ProductStatus.active {
  background:#e6f7ed;
  color:#0f7b3e;
}

.ProductStatus.inactive {
  background:#fdeaea;
  color:#b91c1c;
}

/* ================= MODAL PROFISSIONAL ================= */

.ModalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.ModalOverlay.active {
  display: flex;
}

.ModalBox {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  width: 400px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  animation: modalFade 0.25s ease;
}

@keyframes modalFade {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ModalActions {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
}

.btn-danger {
  background: #c62828;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-danger:hover {
  background: #b71c1c;
}

.btn-secondary {
  background: #e0e0e0;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.ModalBox {
  background: #ffffff;
  padding: 30px;
  border-radius: 14px;
  width: 420px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0,0,0,0.35);
}

.ModalBox h3 {
  margin-bottom: 10px;
}

.ModalBox p {
  color: #555;
}

.ModalActions {
  margin-top: 25px;
  display: flex;
  gap: 10px;
}

.ModalActions button {
  flex: 1;
}

.ProductCard {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.ProductCard:hover {
  transform: translateY(-4px);
}

.ProductImage {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.btn-danger.full {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
}

/* ===============================
   CONFIRM MODAL PROFISSIONAL
================================ */

.ConfirmModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.ConfirmModal__box {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  width: 340px;
  text-align: center;
  animation: fadeIn 0.2s ease;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.ConfirmModal__actions {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.btn-secondary {
  flex: 1;
  background: #e0e0e0;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-danger {
  flex: 1;
  background: #c62828;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
}

.AutoModal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  z-index: 100000;
}

.AutoModal__box {
  padding: 18px 30px;
  border-radius: 10px;
  font-weight: 600;
  color: white;
  animation: fadeIn 0.2s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.AutoModal__box.success {
  background: #2e7d32;
}

.AutoModal__box.error {
  background: #c62828;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ===============================
   INPUTS PROFISSIONAIS
================================ */

.ProductCard input[type="text"],
.ProductCard input[type="number"],
.ProductCard input[type="file"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #dcdcdc;
  font-size: 13px;
  transition: 0.2s ease;
  background: #fafafa;
}

.ProductCard input:focus {
  border-color: #2d6cdf;
  outline: none;
  background: white;
}

/* ===============================
   BOTÕES
================================ */

.ProductCard button {
  width: 100%;
  padding: 9px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
  font-size: 13px;
}

/* Atualizar */
.btn-primary {
  background: #2d6cdf;
  color: white;
}

.btn-primary:hover {
  background: #1f4fb5;
}

/* Toggle */
.btn-toggle {
  background: #f0f0f0;
  color: #333;
}

.btn-toggle:hover {
  background: #e0e0e0;
}

/* Excluir */
.btn-delete {
  background: #c62828;
  color: white;
}

.btn-delete:hover {
  background: #a61d1d;
}

/* ===============================
   CHECKBOX MELHORADO
================================ */

.ProductCard label {
  font-size: 13px;
  color: #444;
}

/* ===============================
   CARD NOVO PRODUTO PREMIUM
================================ */

.ProductFormCard {
  max-width: 800px;
  margin: 0 auto 40px auto;
  padding: 25px;
  border-radius: 12px;
}

/* GRID 2 COLUNAS */
.FormGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

/* TEXTAREA */
.ProductForm textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  resize: none;
  min-height: 80px;
  margin-bottom: 14px;
  font-size: 14px;
}

/* INPUTS */
.ProductForm input[type="text"],
.ProductForm input[type="number"],
.ProductForm input[type="file"] {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  font-size: 14px;
  transition: 0.2s ease;
}

.ProductForm input:focus,
.ProductForm textarea:focus {
  border-color: #2d6cdf;
  outline: none;
  background: white;
}

/* CHECKBOX */
.FormCheckbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  color: #444;
}

/* BOTÃO SALVAR */
.FormActions {
  display: flex;
  justify-content: flex-end;
}

.FormActions button {
  width: auto;
  padding: 10px 22px;
  font-size: 14px;
  border-radius: 8px;
}

/* ===============================
   WRAPPER PADRÃO DE PÁGINA
================================ */

.PageWrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 10px 40px 10px;
}

/* Título principal */
.AdminHeader__title {
  margin-bottom: 25px;
  font-size: 24px;
}

/* ===============================
   TÍTULO DA PÁGINA ALINHADO
================================ */

.PageTitle {
  max-width: 800px; /* mesma largura do card */
  margin: 0 auto 20px auto;
}

.PageTitle h1 {
  font-size: 24px;
  font-weight: 600;
}

.AdminContainer {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.AdminHeader__title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 5px;
}

.AdminHeader__subtitle {
  color: #6b7280;
  margin-bottom: 20px;
}

.AdminCard {
  background: #fff;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.AdminButton {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.AdminButton:hover {
  background: #1d4ed8;
}

.AdminButtonDanger {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.AdminButtonDanger:hover {
  background: #b91c1c;
}

.AdminBadge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.AdminBadge--active {
  background: #16a34a;
  color: #fff;
}

.AdminBadge--inactive {
  background: #9ca3af;
  color: #fff;
}

.AdminTable {
  width: 100%;
  border-collapse: collapse;
}

.AdminTable th,
.AdminTable td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.AdminTable th {
  color: #374151;
}

.AdminModal {
  position: fixed;
  inset: 0;
B  background: rgba(0,0,0,.4);
  display: none;
  align-items: center;
  justify-content: center;
}

.AdminModal__content {
  background: white;
  padding: 25px;
  border-radius: 8px;
  width: 350px;
}

.AdminButtonSmall{
  background:#2563eb;
  color:white;
  padding:4px 10px;
  font-size:13px;
  border-radius:5px;
  text-decoration:none;
}

.AdminButtonSmall:hover{
  background:#1d4ed8;
}

/* =========================
   PAGINAÇÃO ADMIN
========================= */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e3e3e3;
    background: white;
    color: #333;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #1f6b3b;
    color: white;
    border-color: #1f6b3b;
}

.pagination .active {
    background: #1f6b3b;
    color: white;
    border-color: #1f6b3b;
    font-weight: 600;
}

/* =========================
   NOTIFICAÇÃO SINO ADMIN
========================= */

.AdminNotification{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    font-size: 20px;
    color: white;
    text-decoration: none;
}

.AdminNotification i{
    font-size: 22px;
}

.AdminNotification__badge{
    position: absolute;
    top: -6px;
    right: -8px;

    background: #ff3b30;
    color: white;

    font-size: 11px;
    font-weight: 600;

    min-width: 18px;
    height: 18px;

    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 2px 5px;
}

.AdminNotificationWrapper{
position:relative;
display:flex;
align-items:center;
}

.AdminNotificationDropdown {

position:absolute;
top:45px;
right:-40px;

width:280px;

background:#ffffff;
border-radius:10px;

box-shadow:0 10px 30px rgba(0,0,0,0.25);

display:none;
flex-direction:column;

z-index:9999;

border:1px solid #e5e5e5;

}

.AdminNotificationHeader{

padding:10px 15px;
font-weight:600;

border-bottom:1px solid #eee;

}

.AdminNotificationItem{

padding:10px 15px;

border-bottom:1px solid #f1f1f1;

font-size:13px;

}

.AdminNotificationItem:hover{

background:#f7f7f7;

}

.AdminNotificationFooter{

padding:10px;
text-align:center;

}

.AdminNotificationFooter a{

text-decoration:none;
font-weight:600;

color:#1f6b3b;

}


/* === FIX FINAL: dropdown do sino legível dentro da topbar escura === */
.AdminTopbar .AdminNotificationDropdown{
  background: #ffffff !important;
  opacity: 1 !important;
  filter: none !important;
  backdrop-filter: none !important;
}

.AdminTopbar .AdminNotificationDropdown *{
  color: #1f2937 !important;   /* texto escuro */
  opacity: 1 !important;
}

/* reforço nos itens */
.AdminTopbar .AdminNotificationItem{
  background: #ffffff !important;
}

.AdminTopbar .AdminNotificationHeader{
  background: #f7f7f7 !important;
  color: #111827 !important;
}

.AdminTopbar .AdminNotificationFooter{
  background: #fafafa !important;
}

.modal-produto{
  position: fixed;
  inset:0;
  background: rgba(0,0,0,.45);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
}

.modal-produto__box{
  background:white;
  width:600px;
  max-width:95%;
  padding:30px;
  border-radius:10px;
  box-shadow:0 10px 40px rgba(0,0,0,.25);
}

.modal-produto__header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

.modal-produto__header button{
  border:none;
  background:none;
  font-size:22px;
  cursor:pointer;
}

.catalogo-header{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:20px;
    margin-bottom:30px;
}

.catalogo-header h2{
    margin:0;
}
.pagination-wrapper{
    margin-top:40px;
    display:flex;
    justify-content:center;
}

.pagination{
    display:flex;
    gap:8px;
}

.pagination a{
    padding:6px 12px;
    border:1px solid #ddd;
    border-radius:6px;
    text-decoration:none;
    color:#333;
}

.pagination a.active{
    background:#2c6bed;
    color:white;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.45);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;
}

.modal {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 10px;

    width: 420px;
    max-width: 90%;

    box-shadow: 0 10px 25px rgba(0,0,0,0.25);

    animation: modalFade .15s ease;
}

.modal h3 {
    margin-bottom: 15px;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cancel {
    background: #bbb;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

@keyframes modalFade {
    from {
        transform: scale(.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== FIX MODAL ADMIN ===== */

#editModal,
#deleteModal{
    position: fixed !important;
    inset: 0 !important;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000 !important;
}

#editModal .modal,
#deleteModal .modal{
    position: relative;
    z-index: 10001;
}

/* =========================================
   FIX DEFINITIVO MODAL ADMIN
   (colocar no FINAL do CSS)
========================================= */

#editModal,
#deleteModal{
    position: fixed !important;
    inset: 0 !important;

    display: none;

    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.45);

    z-index: 999999 !important;
}

#editModal.active,
#deleteModal.active{
    display: flex !important;
}

#editModal .modal,
#deleteModal .modal{
    position: relative;
    z-index: 1000000;
}

.admin-modal-box {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;

    width: 420px;
    max-width: 90%;

    box-shadow: 0 15px 40px rgba(0,0,0,0.3);

    animation: modalFade .2s ease;
}

@keyframes modalFade {
    from {
        transform: scale(.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* HISTORY */

.history-list{
max-width:900px;
margin:30px auto;
}

.history-item{
display:flex;
justify-content:space-between;
align-items:center;
padding:14px 18px;
border-bottom:1px solid #e6e6e6;
}

.history-item:last-child{
border-bottom:none;
}

.history-left{
display:flex;
flex-direction:column;
gap:4px;
}

.history-user{
font-weight:600;
}

.history-movement{
font-size:14px;
color:#444;
}

.history-sub{
font-size:12px;
color:#888;
}

.history-right{
text-align:right;
font-size:13px;
color:#777;
}

/* HISTORY TABLE */

.AdminCard table{
width:100%;
border-collapse:collapse;
}

.AdminCard thead th{
font-size:13px;
text-transform:uppercase;
letter-spacing:.04em;
color:#666;
border-bottom:2px solid #e5e7eb;
padding:12px 10px;
}

.AdminCard tbody tr{
border-bottom:1px solid #f0f0f0;
transition:background .15s;
}

.AdminCard tbody tr:hover{
background:#fafafa;
}

.AdminCard td{
padding:14px 10px;
vertical-align:middle;
}

.AdminCard td strong{
font-weight:600;
}

.AdminCard td div{
line-height:1.3;
}

.AdminCard td div + div{
font-size:12px;
color:#777;
margin-top:4px;
}
.grupo-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.grupo-tabs .tab {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    background: #f1f3f5;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
}

.grupo-tabs .tab:hover {
    background: #dee2e6;
}

.grupo-tabs .tab.active {
    background: #0d6efd;
    color: white;
}
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.page-header h2 {
    margin: 0;
}

.subtitle {
    color: #6c757d;
    font-size: 14px;
}

.stats {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    flex: 1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.card h4 {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

.card p {
    margin: 5px 0 0;
    font-size: 22px;
    font-weight: bold;
}

.grupo-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    background: #f1f3f5;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
}

.tab:hover {
    background: #dee2e6;
}

.tab.active {
    background: #0d6efd;
    color: white;
}

.badge {
    background: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.table-modern th {
    background: #f8f9fa;
    text-align: left;
    padding: 12px;
    font-size: 13px;
    color: #6c757d;
}

.table-modern td {
    padding: 12px;
    border-top: 1px solid #eee;
}

.table-modern tr:hover {
    background: #f9fafb;
}

.btn-danger {
    background: #dc3545;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 13px;
}

.btn-danger:hover {
    background: #bb2d3b;
}
.badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge.destaque {
    background: #0d6efd;
    color: white;
}

.grupo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.grupo-badge {
    background: #198754;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
}

.grupo-badge.low {
    background: #dc3545; /* vermelho */
}

.grupo-badge.medium {
    background: #ffc107; /* amarelo */
    color: black;
}

.grupo-badge.full {
    background: #198754; /* verde */
}
