/* Pedidos Rápidos - Frontend Styles */

.prm-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.prm-form-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.prm-form-wrapper h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.prm-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.prm-form-group {
    display: flex;
    flex-direction: column;
}

.prm-form-group.full {
    grid-column: 1 / -1;
}

.prm-form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.prm-input,
.prm-form-group select,
.prm-form-group textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.prm-input:focus,
.prm-form-group select:focus,
.prm-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.prm-form-group small {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

/* Autocomplete */
.ui-autocomplete {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
}

.ui-autocomplete .ui-menu-item {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ui-autocomplete .ui-menu-item:hover {
    background-color: #f5f5f5;
}

.ui-autocomplete .ui-menu-item.ui-state-focus {
    background-color: #e8f4f8;
    color: #0073aa;
}

/* Tabela de Itens */
.prm-items-wrapper {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.prm-items-wrapper h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.prm-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.prm-items-table thead {
    background-color: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.prm-items-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
}

.prm-items-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.prm-items-table tbody tr:hover {
    background-color: #f9f9f9;
}

.prm-items-table input[type="number"] {
    width: 70px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.prm-remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.prm-remove-btn:hover {
    background: #c82333;
}

/* Total Section */
.prm-total-section {
    grid-column: 1 / -1;
    background: #f0f7ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.prm-total-section h3 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.prm-total-amount {
    font-size: 32px;
    font-weight: 700;
    color: #0073aa;
}

/* Form Actions */
.prm-form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.prm-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.prm-btn-primary {
    background: #0073aa;
    color: white;
}

.prm-btn-primary:hover {
    background: #005a87;
}

.prm-btn-secondary {
    background: #ddd;
    color: #333;
}

.prm-btn-secondary:hover {
    background: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .prm-form {
        grid-template-columns: 1fr;
    }
    
    .prm-items-table {
        font-size: 12px;
    }
    
    .prm-items-table th,
    .prm-items-table td {
        padding: 8px;
    }
    
    .prm-total-amount {
        font-size: 24px;
    }
    
    .prm-form-actions {
        flex-direction: column;
    }
    
    .prm-btn {
        width: 100%;
    }
}

/* Messages */
.prm-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.prm-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.prm-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}
