/* ============================================
   INTERFACE DE LOJA
   ============================================ */

.quantidade-display {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.estoque-product.baixo {
    border-left: 4px solid var(--error);
    background: rgba(220, 53, 69, 0.05);
}

/* Acordeão de Categorias */
.estoque-category-accordion {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.category-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--bg-dark);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.category-accordion-header:hover {
    background: rgba(255, 215, 0, 0.05);
}

.category-accordion-header.active {
    background: rgba(255, 215, 0, 0.1);
    border-bottom: 2px solid var(--primary);
}

.category-accordion-header .estoque-category-title {
    margin: 0;
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: var(--primary);
}

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

.category-accordion-content {
    display: none;
    padding: 1.5rem;
}

/* Movimentação Rápida */
.movimentacao-rapida {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.mov-rapida-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-mov {
    flex: 1;
    min-width: 100px;
    padding: 0.75rem 1rem;
    border: 2px solid;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-entrada {
    background: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #28a745;
}

.btn-entrada:hover {
    background: rgba(40, 167, 69, 0.2);
    transform: translateY(-2px);
}

.btn-saida {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

.btn-saida:hover {
    background: rgba(220, 53, 69, 0.2);
    transform: translateY(-2px);
}

.btn-ajuste {
    background: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #ffc107;
}

.btn-ajuste:hover {
    background: rgba(255, 193, 7, 0.2);
    transform: translateY(-2px);
}

/* Movimentações */
.movimentacoes-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.movimentacoes-historico {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
}

.movimentacoes-historico h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.historico-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.historico-item {
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.historico-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.produto-nome {
    font-weight: 500;
    color: var(--text-primary);
}

.mov-tipo {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.mov-tipo.entrada {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.mov-tipo.saida {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.mov-tipo.ajuste {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.historico-detalhes {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.historico-data {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Lista de Pedidos */
.lista-pedidos-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.lista-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.lista-category-title {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.lista-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}


.lista-product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.lista-product-item:hover {
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.05);
}

.lista-product-item.selected {
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.1);
}

.lista-product-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--primary);
}

.lista-product-item label {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.lista-product-item .produto-nome {
    font-size: 1.1rem;
    font-weight: 500;
}

.lista-quantidade-input {
    width: 90px;
    padding: 0.75rem;
    font-size: 1.1rem;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    text-align: center;
    font-weight: 600;
}

.lista-quantidade-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}


/* Pedidos */
.pedido-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.pedido-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pedido-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.pedido-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pedido-loja {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.pedido-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.pedido-data {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pedido-status {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.pedido-status.pendente {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.pedido-status.enviado {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.pedido-status.cancelado {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.pedido-mensagem {
    color: var(--text-secondary);
    line-height: 1.6;
}

.pedido-mensagem pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: inherit;
}

.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

