/* ==================== */
/*  GIOVAGNINI PRESUPUESTOS MANUAL v1.2 */
/* ==================== */

#gpmPresupuestoFormulario {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

#gpmPresupuestoFormulario h2 {
  text-align: center;
  color: #28a745;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.gpm-descripcion {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.gpm-ayuda {
  font-size: 12px;
  color: #28a745;
  margin-top: 5px;
  margin-bottom: 10px;
}

#gpmPresupuestoFormulario label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

#gpmPresupuestoFormulario input,
#gpmPresupuestoFormulario textarea,
#gpmPresupuestoFormulario select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 14px;
  font-family: inherit;
}

#gpmPresupuestoFormulario input:focus,
#gpmPresupuestoFormulario textarea:focus,
#gpmPresupuestoFormulario select:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.1);
  outline: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 10px;
}

.form-buttons {
  margin-top: 25px;
  text-align: center;
  display: flex;
  gap: 10px;
  justify-content: center;
}

#gpm_generarPresupuesto {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#gpm_generarPresupuesto:hover {
  background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
  transform: translateY(-2px);
}

#gpm_generarPresupuesto:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secundario {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secundario:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

#gpm_contenedor-cantidades {
  margin-top: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 5px;
  border: 1px solid #e9ecef;
}

#gpm_contenedor-cantidades h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #495057;
  font-size: 15px;
}

.campo-cantidad {
  margin-bottom: 10px;
  padding: 8px;
  background: white;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

.campo-cantidad label {
  margin-top: 0;
  font-weight: normal;
  color: #666;
  font-size: 13px;
  margin-bottom: 5px;
}

.cantidad-precio-wrapper {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 5px;
}

.campo-cantidad-input,
.campo-precio-input,
.campo-precio-fijo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  padding: 5px 10px;
  border-radius: 5px;
}

.campo-cantidad-input span,
.campo-precio-input span,
.campo-precio-fijo span {
  font-size: 12px;
  color: #666;
}

.cantidad-producto {
  width: 70px !important;
  text-align: center;
  padding: 6px !important;
  font-size: 14px;
  margin: 0 !important;
}

.precio-manual {
  width: 120px !important;
  text-align: right;
  padding: 6px !important;
  font-size: 14px;
  margin: 0 !important;
}

.campo-subtotal {
  background: #e7f3ff;
  padding: 5px 12px;
  border-radius: 5px;
  font-weight: bold;
}

.campo-subtotal span {
  color: #0073aa;
}

.campo-subtotal .subtotal-valor {
  font-size: 14px;
  font-weight: bold;
  color: #005a8c;
}

.btn-nuevo {
  background: #6c757d;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-nuevo:hover {
  background: #545b62;
  transform: translateY(-2px);
}

.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--multiple {
  border: 1px solid #ddd !important;
  border-radius: 5px !important;
  min-height: 42px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #28a745 !important;
  border-color: #1e7e34 !important;
  color: white !important;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .form-buttons {
    flex-direction: column;
  }
  
  .cantidad-precio-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
}