/* Sistema de Compras - Sabor do Campo */
/* Estilos principais */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    position: relative;
    padding-bottom: 120px;
}

/* Tela Inicial */
.tela-inicial {
    min-height: 100vh;
    background: linear-gradient(135deg, #0284c7 0%, #075985 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.tela-inicial.hidden {
    display: none;
}

.logo-container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-bottom: 40px;
}

.logo-titulo {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.logo-subtitulo {
    font-size: 1rem;
    color: #666;
}

.opcoes-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px;
    align-items: center;
}

.btn-opcao {
    padding: 35px 50px;
    background: white;
    border: none;
    border-radius: 16px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    width: 100%;
}

.btn-opcao:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: #f8fafc;
}

.btn-empresa {
    background: #0ea5e9;
    color: white;
}

/* Container Principal */
#containerApp {
    display: none;
}

.header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.header-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.header-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
}

.btn-voltar {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-voltar:hover {
    background: rgba(255, 255, 255, 0.3);
}

.secao-titulo-clicavel:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3) !important;
}

.secao-titulo-clicavel:active {
    transform: scale(0.98);
}

/* Tabs */
.tabs-container {
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 10px 5px;
    overflow-y: auto;
}

.tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tab-btn {
    padding: 12px 8px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
    color: #6b7280;
    text-align: center;
    line-height: 1.2;
}

.tab-btn:hover {
    transform: translateX(2px);
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

.tab-btn span {
    font-size: 1.5rem;
}

.tab-btn.active {
    background: #0ea5e9;
    color: white;
    border-color: #0ea5e9;
}

/* Container principal com margem para as abas */
.main-content {
    margin-left: 80px;
}

/* Cores específicas das abas */
.tab-btn:nth-child(1).active { background: #3b82f6; } /* Registro - Azul */
.tab-btn:nth-child(2).active { background: #8b5cf6; } /* Pedidos - Roxo */
.tab-btn:nth-child(3).active { background: #f59e0b; } /* Recebimento - Laranja */
.tab-btn:nth-child(4).active { background: #10b981; } /* Recebidos - Verde */
.tab-btn:nth-child(5).active { background: #ef4444; } /* Quebras - Vermelho */
.tab-btn:nth-child(6).active { background: #0ea5e9; } /* Fechamento - Azul claro */
.tab-btn:nth-child(7).active { background: #059669; } /* Fechados - Verde escuro */
.tab-btn:nth-child(8).active { background: #6366f1; } /* Configurações - Índigo */

.badge {
    background: #ef4444;
    color: white;
    font-size: 11px !important;
    padding: 0 !important;
    border-radius: 2px;
    position: absolute;
    top: 1px;
    right: 1px;
    font-weight: 600;
    width: 18px !important;
    height: 18px !important;
    text-align: center;
    display: none;
    line-height: 18px !important;
}

/* Content */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Aba Fechados com largura maior para visualizar tabela */
#abaFechados {
    max-width: none;
}

#abaFechados .secao {
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.secao {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.secao-titulo {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Grid Fornecedores */
.grid-fornecedores {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.btn-fornecedor {
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-fornecedor:hover {
    background: #e5e7eb;
}

.btn-fornecedor.selecionada {
    background: #0ea5e9;
    color: white;
    border-color: #0ea5e9;
}

/* Grid Produtos */
.grid-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.btn-produto {
    padding: 15px 10px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.btn-produto:hover {
    border-color: #0ea5e9;
    transform: translateY(-2px);
}

.btn-produto.selecionado {
    background: #0ea5e9;
    color: white;
    border-color: #0ea5e9;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.produto-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.produto-nome {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
}

.produto-unidade {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 2px;
}

/* Grid Dias */
.grid-dias {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 0;
}

.btn-dia {
    padding: 8px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-dia:hover {
    border-color: #0ea5e9;
    background: #eff6ff;
}

.btn-dia.selecionado {
    background: #0ea5e9;
    color: white;
    border-color: #0ea5e9;
    transform: scale(1.1);
    font-weight: 700;
}

/* Grid Quantidade */
.grid-quantidade {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.btn-qtd {
    padding: 12px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-qtd:hover {
    background: #e5e7eb;
}

.btn-qtd.ativo {
    background: #10b981;
    color: white;
    border-color: #10b981;
    transform: scale(1.05);
    font-weight: 700;
}

/* Input */
.input-group {
    margin-top: 15px;
}

.input-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.input-field {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

/* Botões */
.btn-adicionar {
    width: 100%;
    padding: 15px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s;
}

.btn-adicionar:hover {
    background: #059669;
}

.btn-adicionar:active {
    transform: scale(0.98);
}

.btn-adicionar:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-airtable {
    width: 100%;
    padding: 15px;
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-airtable:hover {
    background: #0284c7;
}

.btn-airtable:active {
    transform: scale(0.98);
}

.btn-airtable:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Lista de Compras */
.lista-vazia {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
    font-size: 0.95rem;
}

.item-compra {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-info {
    flex: 1;
}

.item-produto {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
}

.item-detalhes {
    font-size: 0.85rem;
    color: #666;
}

/* ====================
   PADRONIZAÇÃO DE BOTÕES
   ==================== */

/* Botão Editar - Azul */
.btn-editar {
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-editar:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Botão Excluir/Remover - Vermelho */
.btn-remover, .btn-excluir {
    padding: 8px 15px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-remover:hover, .btn-excluir:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Botão Receber - Verde Escuro */
.btn-receber {
    padding: 8px 16px;
    background: #059669;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    text-shadow: -0.5px -0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px 0.5px 0 #000;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-receber:hover {
    background: #047857;
    transform: translateY(-1px);
}

/* Botão Reverter/Cancelar - Roxo */
.btn-reverter, .btn-cancelar {
    padding: 8px 16px;
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-reverter:hover, .btn-cancelar:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

/* Botão Etiquetas - Índigo */
.btn-etiquetas {
    padding: 8px 12px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    text-shadow: -0.5px -0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px 0.5px 0 #000;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-etiquetas:hover {
    background: #4f46e5;
    transform: translateY(-1px);
}

/* Botão Copiar - Verde WhatsApp */
.btn-copiar {
    padding: 8px 12px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    text-shadow: -0.5px -0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px 0.5px 0 #000;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-copiar:hover {
    background: #1ebe5a;
    transform: translateY(-1px);
}

/* Botão Comprar/Transmitir - Azul Escuro */
.btn-comprar, .btn-transmitir {
    padding: 8px 12px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    text-shadow: -0.5px -0.5px 0 #000, 0.5px -0.5px 0 #000, -0.5px 0.5px 0 #000, 0.5px 0.5px 0 #000;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-comprar:hover, .btn-transmitir:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Contador Fixo */
.contador-fixo {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid #e5e7eb;
    padding: 15px;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    z-index: 500;
    display: none;
    transition: transform 0.3s ease;
}

.contador-fixo.minimizado {
    transform: translateY(calc(100% - 50px));
}

.btn-minimizar {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f3f4f6;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.dashboard-metricas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.metrica-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
}

.metrica-icon {
    font-size: 1.5rem;
}

.metrica-titulo {
    font-size: 0.75rem;
    color: #666;
}

.metrica-valor {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.btn-transmitir-dashboard {
    width: 100%;
    padding: 16px;
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-transmitir-dashboard:hover {
    background: #0284c7;
}

.btn-transmitir-dashboard:active {
    transform: scale(0.98);
}

/* Filtros */
.filtros-registrados {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filtros-registrados input,
.filtros-registrados select {
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
}

.btn-limpar-antigos {
    padding: 8px 15px;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Botão Exportar WhatsApp */
.btn-exportar {
    width: 100%;
    padding: 20px;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-exportar:hover {
    background: #1ebe5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-exportar-icon {
    font-size: 1.5rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal de Produto */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.active {
    display: flex;
}

/* Prevenir movimento do modal quando teclado aparece */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal[style*="display: flex"], .modal[style*="display:flex"] {
    display: flex !important;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.modal-produto-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-produto-icon {
    font-size: 3rem;
}

.modal-produto-nome {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0ea5e9;
}

.btn-fechar-modal {
    background: #f3f4f6;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-fechar-modal:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-unidade-modal {
    flex: 1;
    padding: 12px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-unidade-modal:hover {
    background: #e5e7eb;
}

.btn-unidade-modal.ativo,
.btn-unidade-modal.selecionada {
    background: #0ea5e9;
    color: white;
    border-color: #0ea5e9;
}

.input-modal {
    width: 100%;
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.input-modal:focus {
    outline: none;
    border-color: #0ea5e9;
    /* Prevenir zoom em iOS e movimento do modal */
    font-size: 16px;
}

/* Melhorar comportamento em mobile */
@media (max-width: 768px) {
    .modal-content {
        max-height: 80vh;
        padding: 20px;
    }

    .input-modal {
        font-size: 16px; /* Prevenir zoom automático no iOS */
    }

    /* Garantir que modal não se mova com teclado */
    .modal-overlay {
        align-items: flex-start;
        padding-top: 20px;
    }
}
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.btn-adicionar-modal {
    width: 100%;
    padding: 16px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-adicionar-modal:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

.resumo-item {
    background: #f0f9ff;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #0ea5e9;
}

.resumo-item-linha {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.resumo-item-total {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #0ea5e9;
    font-weight: 700;
    font-size: 1.2rem;
    color: #0ea5e9;
}

/* Responsividade */
@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .header-title {
        font-size: 1.8rem;
    }

    .fornecedor-header {
        font-size: 1rem;
    }

    .btn-voltar {
        width: 100%;
    }

    .grid-fornecedores {
        grid-template-columns: 1fr;
        margin-top: 10px;
    }

    .grid-produtos {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-metricas {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Abas responsivas - mobile */
    .tabs-container {
        width: 60px;
        padding: 8px 3px;
    }

    .tab-btn {
        padding: 8px 4px;
        font-size: 0.6rem;
        gap: 2px;
    }

    .tab-btn span {
        font-size: 1.2rem;
    }

    .main-content {
        margin-left: 60px;
    }

    /* Cards financeiros responsivos */
    .secao-totalizacao > div,
    .secao-valores-financeiros > div {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .secao-totalizacao > div > div,
    .secao-valores-financeiros > div > div {
        padding: 10px !important;
    }

    .secao-totalizacao > div > div > div:first-child,
    .secao-valores-financeiros > div > div > div:first-child {
        font-size: 0.7rem !important;
    }

    .secao-totalizacao > div > div > div:last-child,
    .secao-valores-financeiros > div > div > div:last-child {
        font-size: 1rem !important;
    }
}

.grid-dias {
    font-size: 0.85rem;
}

.btn-dia {
    padding: 8px;
    font-size: 0.8rem;
}

.grid-quantidade {
    grid-template-columns: repeat(4, 1fr);
}

.btn-qtd {
    padding: 10px;
    font-size: 0.9rem;
}
