:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --success-color: #27ae60;
    --info-color: #3498db;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --border-color: #bdc3c7;
    --text-color: #333;
    --text-light: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: var(--text-color);
    line-height: 1.6;
}

.pdv-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100%;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.pdv-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
}

.pdv-header h1 {
    font-size: 1.5rem;
}

.pdv-main {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-header {
    background-color: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.section-header h2 {
    font-size: 1.2rem;
}

.valores-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.valores-destaque {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background-color: var(--light-color);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.moeda {
    font-weight: bold;
    color: var(--primary-color);
}

.valor {
    font-size: 1.5rem;
    font-weight: bold;
}

.valores-lista {
    display: flex;
    flex: 1;
    justify-content: space-between;
}

.valores-lista div {
    text-align: center;
    flex: 1;
}

.total {
    font-weight: bold;
    color: var(--success-color);
}

.itens-table {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

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

th {
    background-color: var(--light-color);
    font-weight: bold;
}

.acoes {
    text-align: center;
    color: var(--primary-color);
}

.cliente-info, .pagamento-info, .resumo-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row, .pagamento-row, .resumo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.info-group, .pagamento-group, .resumo-group {
    flex: 1;
    min-width: 200px;
}

.full-width {
    flex: 1 0 100%;
}

label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.info-content, .pagamento-content, .resumo-content {
    background-color: var(--light-color);
    padding: 0.5rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-height: 60px;
    resize: vertical;
}

.pdv-footer {
    background-color: var(--light-color);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.botoes-principais, .botoes-secundarios {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}

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

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-info {
    background-color: var(--info-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .pdv-main {
        padding: 0.5rem;
    }
    
    .valores-destaque {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .valores-lista {
        width: 100%;
    }
    
    .info-group, .pagamento-group, .resumo-group {
        min-width: 100%;
    }
    
    .botoes-principais, .botoes-secundarios {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 0.3rem;
    }
}