:root {
  /* Cores baseadas na logo Sweet Mih */
  --primary: #3d2218;
  --primary-light: #5c3528;
  --secondary: #f5e6d3;
  --accent: #d4a574;
  --accent-hover: #c99563;
  
  /* Cores neutras */
  --bg: #faf8f5;
  --card: #ffffff;
  --border: #e8d9c5;
  --text: #2d1810;
  --text-light: #6b4a3a;
  --muted: #8d6e5b;
  --input-bg: #fdfcfb;
  
  /* Estados */
  --success: #4ade80;
  --danger: #ef4444;
  --warning: #fbbf24;
}

/* TOAST NOTIFICATION */
#toastBox {
  visibility: hidden;
  min-width: 280px;
  background-color: var(--primary);
  color: #fff;
  text-align: center;
  border-radius: 50px; /* Bordas arredondadas estilo pílula */
  padding: 14px 24px;
  position: fixed;
  z-index: 10000; /* Fica acima de tudo, inclusive modais */
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
/* Estilo para o item focado via teclado nas sugestões */
.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.suggestions-list {
    position: absolute;
    z-index: 9999;
    background: white;
    width: 100%;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.suggestion-item:hover, .autocomplete-active {
    background-color: #e9e9e9; 
    color: #32b8c6; /* Cor de destaque do seu sistema */
    font-weight: bold;
}


.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 10px;
    width: fit-content;
}

.qty-btn {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 8px;
    transition: transform 0.1s;
}

.qty-btn.minus { color: #ef4444; }
.qty-btn.plus { color: #10b981; }

.qty-btn:active { transform: scale(1.2); }

.qty-val {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}


/* Container Principal */
.kanban-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    padding: 10px;
}

/* Card da Coluna */
.kanban-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(61, 34, 24, 0.05);
    border: 1px solid rgba(232, 217, 197, 0.4);
}

/* Cabeçalhos Coloridos */
.kanban-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.kanban-header h3 { font-size: 18px; color: var(--primary); margin: 0; }
.kanban-header .icon { font-size: 24px; }

/* Input Moderno */
.kanban-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.kanban-input-group input {
    flex: 1;
    border-radius: 12px;
    padding: 10px 15px;
    border: 1px solid var(--border);
    background: #fafafa;
}
.kanban-input-group button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.kanban-input-group button:hover { opacity: 0.9; transform: translateY(-2px); }

/* Itens da Lista */
.task-item {
    background: #fff;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 12px;
    border: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}
.task-item:hover { border-color: var(--accent); transform: translateX(5px); }
.task-item span { color: var(--text); font-weight: 500; }

/* Botão de Concluir */
.btn-check {
    background: #f0fdf4;
    color: #16a34a;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-check:hover { background: #16a34a; color: white; }




/* Quando estiver ativo */
#toastBox.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px; /* Sobe um pouquinho */
}

/* Cores por tipo */
#toastBox.success {
  background: linear-gradient(135deg, #10b981, #059669); /* Verde bonito */
}

#toastBox.error {
  background: linear-gradient(135deg, #ef4444, #dc2626); /* Vermelho */
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: linear-gradient(135deg, #faf8f5 0%, #f5ede1 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
#itemPedidoInput {
  width: 100%;
  padding: 12px 14px;
  background: var(--input-bg, #fdfcfb);
  color: var(--text, #2d1810);
  border: 1.5px solid var(--border, #e8d9c5);
  border-radius: 10px;
  font-size: 14px;
  transition: border 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
#itemPedidoInput:focus {
  border-color: var(--accent, #d4a574);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.12);
  background: #fff;
}

/* Sugestões */
#itemPedidoSugestoes {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 3px;
  z-index: 999;
  border: 1px solid var(--border, #e8d9c5);
  border-radius: 0 0 10px 10px;
  background: var(--card, #fff);
  box-shadow: 0 4px 16px rgba(61, 34, 24, 0.08);
  max-height: 200px;
  overflow-y: auto;
  font-family: inherit;
}
#itemPedidoSugestoes div {
  padding: 10px 14px;
  cursor: pointer;
  color: var(--text, #2d1810);
  font-size: 14px;
  transition: background 0.12s;
}
#itemPedidoSugestoes div:hover {
  background: var(--secondary, #f5e6d3);
  color: var(--primary, #3d2218);
}

/* Campo quantidade alinhado */
#itemQtdWrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
#itemPedidoQtd {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border, #e8d9c5);
  background: var(--input-bg, #fdfcfb);
  color: var(--text, #2d1810);
  width: 70px;
  font-size: 15px;
}

#adicionarItemBtn {
  background: linear-gradient(135deg, var(--primary, #3d2218), var(--primary-light, #5c3528));
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 22px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
  box-shadow: 0 2px 6px rgba(61, 34, 24, 0.06);
}
#adicionarItemBtn:hover {
  background: linear-gradient(135deg, var(--accent, #d4a574), var(--accent-hover, #c99563));
  color: var(--primary, #3d2218);
}

/* ⚠️ CONTAINER GLOBAL (não aninhado no header!) */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 20px;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(61, 34, 24, 0.05);
}

header .container {
  padding: 16px 20px;
}



.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img{
  width:70px !important;
}
.logo-img {
  width: 48px ;
  height: 48px ;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(212, 165, 116, 0.3);
}

.title {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.3px;
}

.subtitle {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ⚠️ MAIN (estava faltando!) */
main {
  padding: 24px 0;
  min-height: calc(100vh - 120px);
}


/* TABS */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--card);
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(61, 34, 24, 0.06);
  border: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: var(--secondary);
  color: var(--primary);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 12px rgba(61, 34, 24, 0.25);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* GRID */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: 1fr 1fr; /* ⚠️ CORRIGIDO: 1fr 1fr ao invés de 480px 1fr */
  }
}

@media (min-width: 1200px) {
  .grid {
    grid-template-columns: 480px 1fr; /* Só usar largura fixa em telas grandes */
  }
}

/* GRID */
.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: 480px 1fr;
    }
}

/* CARD */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(61, 34, 24, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(61, 34, 24, 0.12);
}

.card-body {
    padding: 24px;
}

.card h2 {
    margin: 0 0 6px 0;
    font-size: 18px;
    color: var(--primary);
    font-weight: 700;
}

.muted {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 20px;
    display: block;
}

/* FORM */
.row {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    margin-bottom: 16px;
}

@media (min-width: 520px) {
    .row-2 {
        grid-template-columns: 1fr 1fr;
    }
    
    .row-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

label {
    font-size: 13px;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 6px;
    display: inline-block;
}

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--input-bg);
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
    background: white;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

/* BUTTONS */
.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    border: 1.5px solid var(--border);
    background: white;
    color: var(--text);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn:hover {
    background: var(--secondary);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(61, 34, 24, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 6px 16px rgba(61, 34, 24, 0.35);
}

.btn-danger {
    background: var(--danger);
    border: none;
    color: white;
}

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

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.status {
    font-size: 13px;
    color: var(--muted);
    padding: 12px 0 0;
    min-height: 28px;
}

/* ITEM SELECTOR */
/* ====== BOTÃO ADICIONAR ITEM (ao lado de "Itens do Pedido") ====== */
.item-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.item-selector-header label {
    margin: 0;
    font-weight: 600;
    font-size: 14px;
    color: var(--text, #1f2937);
}

#btnAdicionarItem {
    padding: 6px 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    white-space: nowrap;
}

#btnAdicionarItem:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

#btnAdicionarItem:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

#btnAdicionarItem:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}


/* TABLE */
.table-wrap {
    overflow-x: auto;
    margin-top: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

th, td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--secondary);
}

tr:hover td {
    background: rgba(245, 230, 211, 0.3);
}

.nowrap {
    white-space: nowrap;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--surface, #fff);
    border-radius: 16px;
    width: 90%;
    max-width: 650px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid var(--border, #e5e7eb);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--text, #1f2937);
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary, #6b7280);
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--error, #dc2626);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    background-color: var(--background, #fafafa);
}

/* Scrollbar customizada */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary, #3b82f6);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover, #2563eb);
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border, #e5e7eb);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background-color: var(--surface, #fff);
}

/* ====== CATEGORIAS (ACCORDION) ====== */
.modal-category {
    margin-bottom: 12px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--surface, #fff);
    transition: all 0.2s;
}

.modal-category:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.modal-category-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--text, #1f2937);
    transition: all 0.2s;
    user-select: none;
}

.modal-category-header:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
}

.modal-category-header.active {
    background: linear-gradient(135deg, var(--primary, #3b82f6) 0%, var(--primary-hover, #2563eb) 100%);
    color: white;
}

.modal-category-icon {
    font-size: 20px;
    transition: transform 0.3s;
}

.modal-category-header.active .modal-category-icon {
    transform: rotate(180deg);
}

.modal-category-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.modal-category-items.active {
    max-height: 1000px;
}
/* ====== AUTOCOMPLETE ====== */
.autocomplete {
  position: relative;
  display: inline-block;
  width: 100%;
}

.autocomplete-items {
  position: absolute;
  border: 1px solid var(--border);
  border-top: none;
  z-index: 9999 !important; /* ⚠️ Aumentar para 9999 */
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: var(--card);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(61, 34, 24, 0.15);
}

.autocomplete-items div {
  padding: 6px 10px; /* Reduzido ainda mais */
  cursor: pointer;
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: all 0.15s ease;
  font-size: 13px; /* Fonte um pouco menor */
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.autocomplete-items div:hover {
  background-color: var(--secondary);
}

.autocomplete-items div:last-child {
  border-bottom: none; /* Remove borda do último item */
}

.autocomplete-active {
  background-color: var(--accent) !important;
  color: white !important;
}



/* ====== ITENS ====== */

.modal-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border, #e5e7eb);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

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

.modal-item:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.modal-item input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--primary, #3b82f6);
    flex-shrink: 0;
}

.modal-item label {
    flex: 1;
    cursor: pointer;
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
}

.modal-item label strong {
    display: block;
    color: var(--text, #1f2937);
    margin-bottom: 4px;
}

.modal-item label small {
    color: var(--text-secondary, #6b7280);
    font-size: 13px;
}

.modal-item input[type="number"] {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid var(--border, #e5e7eb);
    border-radius: 8px;
    background-color: var(--surface, #fff);
    color: var(--text, #1f2937);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.modal-item input[type="number"]:focus {
    outline: none;
    border-color: var(--primary, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ====== SELECTED ITEMS ====== */
.selected-item {
    padding: 12px 16px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--surface, #fff);
    transition: all 0.2s;
}

.selected-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateX(-2px);
}

.selected-item button {
    background: var(--error, #dc2626);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.selected-item button:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

/* ====== EMPTY STATE ====== */
.modal-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary, #6b7280);
}

.modal-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}


/* FOOTER */
footer {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    padding: 32px 20px;
    margin-top: 40px;
}

/* Botões de Filtro de Período */
.filter-btn {
  padding: 8px 16px;
  border: 2px solid var(--border);
  background: white;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  flex: 1;
}

.filter-btn:hover {
  background: var(--secondary);
  border-color: var(--accent);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}


/* RESPONSIVE */
@media (max-width: 520px) {
    .container {
        padding: 12px 16px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
.brand img{
  width:70px !important;
}
}
/* Estilo moderno para os filtros do catálogo */
.btn-filtro-cat {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-filtro-cat:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Quando o botão está selecionado */
.btn-filtro-cat.active {
    background: #6366f1; /* Cor indigo moderna */
    color: white;
    border-color: #6366f1;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2);
}

.webhook-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, #32b8c6, #2563eb);
  color: white;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  z-index: 9999999;
}

.webhook-toggle:hover {
  transform: scale(1.1);
  background: linear-gradient(135deg, #2563eb, #32b8c6);
}

/* Transições suaves ao esconder/mostrar campos */
.row,
.form-group {
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.row[style*="display: none"],
.form-group[style*="display: none"] {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Responsividade das Tabs */
@media (max-width: 768px) {
    .tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    .tab-btn { padding: 8px 4px; font-size: 11px; }
}

/* Estilo do Nome Clicável no Estoque */
.item-link {
    cursor: pointer;
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.2s;
}
.item-link:hover { color: var(--accent); }

/* Container das movimentações */
.mov-section {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px;
    background: #fdfdfd;
}

/* Estilo dos Cards */
.mov-card {
    flex: 1;
    min-width: 280px;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.mov-card header {
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

/* Grid de inputs */
.mov-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mov-grid input, .mov-grid button {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
}

.mov-grid button {
    grid-column: span 2;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

/* Ajuste da Tabela para não sumir no celular */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 15px;
    border-radius: 8px;
}
/* Remove bordas e fundos desnecessários do saldo informativo */
.saldo-box {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    background: #fdfcfb;
    border: 1px solid var(--border);
    min-width: 50px;
    text-align: center;
}

/* Badge de Tipo no Histórico */
.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Nome do item clicável */
.item-link {
    cursor: pointer;
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.item-link:hover {
    color: var(--accent);
}

/* Badge para o tipo de movimentação */
.badge-entrada {
    background: #dcfce7;
    color: #16a34a;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

/* Responsividade do Grid de Estoque */
@media (max-width: 1024px) {
    #estoque .grid {
        grid-template-columns: 1fr !important;
    }
}