/* SEPARAÇÃO - ESTILOS */
.separacao-painel, .separacao-pedido, .operacoes-painel, .operacoes-reposicao {
    padding: 20px;
}

/* Escopo específico para evitar conflitos com vendedor-painel-novo */
.separacao-painel .painel-header,
.separacao-header {
    margin-bottom: 30px;
}

.separacao-painel .painel-header h1,
.separacao-header h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #3498db;
}

.stat-card.pendentes { border-left-color: #f39c12; }
.stat-card.em-separacao { border-left-color: #3498db; }
.stat-card.concluidos { border-left-color: #27ae60; }

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.stat-card.pendentes .stat-icon { background: linear-gradient(135deg, #f39c12, #e67e22); }
.stat-card.concluidos .stat-icon { background: linear-gradient(135deg, #27ae60, #229954); }

.stat-card-body h3 {
    font-size: 32px;
    margin: 0;
    color: #2c3e50;
}

.stat-card-body p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 4px 0 0 0;
}

.acoes-rapidas {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.acoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.acao-btn {
    padding: 14px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.acao-btn:hover {
    border-color: #3498db;
    background: #f8fbff;
}

.pedidos-pendentes, .pedidos-em-separacao {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.pedidos-pendentes h3, .pedidos-em-separacao h3 {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-count {
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.pedidos-grid {
    display: grid;
    gap: 16px;
}

.pedido-card {
    border: 2px solid #e8ecef;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s;
}

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

.pedido-card.pendente {
    border-left: 4px solid #f39c12;
}

.pedido-card.em-separacao {
    border-left: 4px solid #3498db;
}

.pedido-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pedido-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pedido-badge.pago {
    background: #d4edda;
    color: #155724;
}

.pedido-badge.separacao {
    background: #d1ecf1;
    color: #0c5460;
}

.pedido-card-body {
    margin-bottom: 12px;
}

.pedido-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 14px;
}

.pedido-card-footer {
    display: flex;
    gap: 8px;
}

.btn-primary, .btn-secondary {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-voltar {
    margin-bottom: 20px;
    padding: 10px 16px;
    border: none;
    background: #ecf0f1;
    border-radius: 8px;
    cursor: pointer;
}

/* Página de Separação */
.pedido-info-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: #7f8c8d;
}

.info-value {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.info-value.valor {
    color: #27ae60;
}

.itens-separacao {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.progresso-badge {
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.itens-lista {
    margin-top: 16px;
}

.item-separacao {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.item-separacao.separado {
    background: #f0fdf4;
    border-color: #27ae60;
}

.item-checkbox {
    display: flex;
    align-items: center;
}

.item-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.item-info {
    flex: 1;
}

.item-info h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
}

.item-detalhes {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #7f8c8d;
}

.badge-separado {
    background: #27ae60;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.upload-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #3498db;
    background: #f8fbff;
}

.upload-area.dragover {
    border-color: #3498db;
    background: #e8f4ff;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.preview-item img, .preview-item video {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.btn-remover {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.volumes-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.number-input {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.number-input input {
    width: 80px;
    padding: 10px;
    text-align: center;
    font-size: 18px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
}

.number-input button {
    padding: 10px 14px;
    border: none;
    background: #3498db;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.status-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.status-opcoes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.status-option input[type="radio"] {
    display: none;
}

.status-card {
    border: 2px solid #e8ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.status-option input:checked + .status-card {
    border-color: #3498db;
    background: #f8fbff;
}

.status-card.completo {
    color: #27ae60;
}

.status-card.incompleto {
    color: #e67e22;
}

.itens-faltantes {
    margin-top: 20px;
    padding: 20px;
    background: #fff3cd;
    border-radius: 8px;
}

.item-faltante {
    display: flex;
    gap: 12px;
    margin: 12px 0;
}

.select-produto {
    flex: 2;
    padding: 10px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
}

.input-quantidade {
    width: 80px;
    padding: 10px;
    border: 2px solid #e8ecef;
    border-radius: 8px;
}

.acoes-finais {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .stats-grid, .acoes-grid, .upload-grid, .status-opcoes {
        grid-template-columns: 1fr;
    }
}
